The GDB JIT Interface
43 points
4 days ago
| 3 comments
| bernsteinbear.com
| HN
amelius
29 minutes ago
[-]
Related, is there a way to get better backtraces for a Python program, in GDB?

I.e., showing the function names as they exist in Python, where relevant, and otherwise just the C names.

reply
saagarjha
29 minutes ago
[-]
Anyone know how to actually enable this for, say, v8? I’ve debugged Chrome compiled code without symbols and it’s miserable and I’d really like to not have to do that
reply
rurban
2 days ago
[-]
This was always too much work for not enough benefit. What I did in the case to debug into such cases, I constructed the C equivalent temporarily, compiled it on the fly also with -g, set the source to this file and could easily debug the function.
reply
setheron
4 hours ago
[-]
How do you know what the equivalent C is for the JIT assembly ?
reply
rurban
3 hours ago
[-]
Since I generate the asm part, generating the C part is easier.

I usually do just simple method JITs, which are C parts. Usually just calling an API method.

reply