Support gdbjit for CPython
Open
Nobody has claimed this yet.
topic-JIT
triaged
type-feature
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the GDB JIT Interface documentation and comparing V8's src/diagnostics/gdb-jit.cc with LuaJIT's src/lj_gdbjit.c. Determine how the proposed support would fit CPython and what debug information and JIT entry points are required. Done would require an agreed implementation scope and validation approach, which the issue does not currently specify.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers, devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100