Support gdbjit for CPython
未关闭
还没有人认领这个 Issue。
topic-JIT
triaged
type-feature
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
Feature or enhancement
Proposal:
The GDB support a special interface for JIT. The developer can inject some debug info into the JITed code. Both of the LuaJIT and V8 are support GDBJIT
FYI:
- https://sourceware.org/gdb/current/onlinedocs/gdb.html/JIT-Interface.html
- https://v8.dev/docs/gdb-jit
- https://github.com/v8/v8/blob/main/src/diagnostics/gdb-jit.cc
- https://github.com/LuaJIT/LuaJIT/blob/v2.1/src/lj_gdbjit.c
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先阅读 GDB JIT Interface 文档,并比较 V8 的 src/diagnostics/gdb-jit.cc 与 LuaJIT 的 src/lj_gdbjit.c。确定所提议的支持应如何适配 CPython,以及需要哪些调试信息和 JIT 入口点。要视为完成,需要就实现范围和验证方法达成一致,而 issue 目前尚未对此作出规定。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- compilers, devtools
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100