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