3 ms·
Compilers can generate a map file that associates relative addresses with variable and function names. They can also store such information in the compiled exe
by nitrogen 11y ago
Compilers can generate a map file that associates relative addresses with variable and function names. They can also store such information in the compiled executable.
- Gibbon1 11y agoI use this for debugging embedded code, if I get a null pointer exception or bus fault I log the calling address. 99% of the time running addr2line points me directly to the offending lines of code. There are also builtins that allow you to walk back up the stack and and thus fink on who's been naughty.