python / python/cpython

Allow switching to pretty-printer when using `gdb`

未关闭
#129,351 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

triaged type-feature
主要语言
Python
星标
77.2k
派生
35.9k
PR 合并指标
PR 指标待抓取

描述

Can we remove If True: from gdb bindings?

I think it was created for future features, but it was 15 years ago.

Found 2 locations (not testcase for interpreter):

https://github.com/python/cpython/blob/7ec17429d462aee071c067e3b84c8a7e4fcf7263/Tools/gdb/libpython.py#L1587

https://github.com/python/cpython/blob/7ec17429d462aee071c067e3b84c8a7e4fcf7263/Tools/gdb/libpython.py#L1602

Additional information

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Reporter: Burkov Egor (eburkov@rvision.ru).

Organization: R-Vision (support@rvision.ru).

Linked PRs
  • gh-138169

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 issue 中链接的两个位置开始,进入 Tools/gdb/libpython.py,检查周围的 gdb 绑定。确认现有的 If True 守卫如何影响 pretty-printer 切换;完成的标准是删除两个位置上的过时守卫并验证 gdb 行为,同时先检查链接的 PR gh-138169。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
devtools
Issue 类型
功能
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。