|
|
|
|
|
by mabynogy
3158 days ago
|
|
The main pain point for me in that domain currently is the wrong results that backtrace() gives when optimizations are enabled. I noticed that clang seems to be better at generating correct infos in such modes. Otherwise I use GDB in "batch mode" to get a callstack triggered by raise(SIGTRAP): > gdb -quiet --batch -ex run -ex backtrace --args $binary $@ |
|
It's better than nothing, but consider using something like libunwind instead.