Addr2line

addr2line shows file names and line numbers for a specified program addresses.

= Example = int main {  std::cout << "hello world" << std::endl; } g++ main.cpp objdump -M intel -d a.out [...] 00000000004007c0 <_init>: 4007c0:      48 83 ec 08             sub    rsp,0x8 4007c4:      e8 47 01 00 00          call   400910  4007c9:      e8 d2 01 00 00          call   4009a0  [...] /usr/src/packages/BUILD/glibc-2.9/cc-nptl/csu/crti.S:25
 * Have a file main.cpp:
 * 1) include
 * build it:
 * show it disassembled:
 * Now if you ask yourself from which library the call at 0x4007c0 comes, call:
 * 1) addr2line -e a.out 4007c0

= See also =
 * programming-related commands
 * addr2line man page