4 ms·
The GDB JIT Interface
- rurban 10mo agoThis 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.
- saagarjha 10mo agoAnyone 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
- torginus 10mo agoI remember tinkering with the Chrome build system, and you can make it emit debug symbols but the compile time and memory use goes through the roof. I work with CEF, and Spotify provides builds for the source, which have debug symbols, I think it's much more practical to use that.
- saagarjha 10mo agoUnfortunately I need to debug other people’s code and don’t have control over what runtime they’re using :(
- amelius 10mo agoRelated, 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.
- albertzeyer 10mo agohttps://wiki.python.org/moin/DebuggingWithGdb https://wiki.python.org/moin/DebuggingWithGdb
- torginus 10mo agoI haven't really worked with the GDB source, but for GCC, I found that there was very little documentation (not for users but for developers), and even that was mostly outdated. This is in stark contrast to LLVM.