How to get non-dynamic characters in GCC backtrace?

GCC backtrace_symbols()only allows dynamic characters, since handling all types of characters is something that GCC developers do not want to embed .

How do I deal with the extraction of non-dynamic characters derived from the GCC function backtrace()?

+3
source share
2 answers

Check that addr2linebfd is using. This is one of the approaches that I have used successfully. More specifically, backtracefilt gets you mostly completely, you just need to adapt it to accept addresses from backtrace instead of parsing the file.

+1
source

libdw, elfutils, DWARF, , -g.

+1

Source: https://habr.com/ru/post/1792385/


All Articles