

10. addr2line

addr2line [`-b' bfdname|`--target='bfdname]
          [`-e' filename|`--exe='filename]
          [`-f'|`--functions'] [`-s'|`--basename']
          [`-H'|`--help'] [`-V'|`--version']
          [addr addr ...]

addr2line translates program addresses into file names and line numbers. Given an address and an executable, it uses the debugging information in the executable to figure out which file name and line number are associated with a given address.

The executable to use is specified with the `-e' option. The default is the file `a.out'.

addr2line has two modes of operation.






-b bfdname

Decode (demangle) low-level symbol names into user-level names. Besides removing any initial underscore prepended by the system, this makes C++ function names readable. Different compilers have different mangling styles. The optional demangling style argument can be used to choose an appropriate demangling style for your compiler. See section 9. c++filt, for more information on demangling.

-e filename
Specify the name of the executable for which addresses should be translated. The default file is `a.out'.

Display function names as well as file and line number information.

Display only the base of each file name.


This document was generated on May 3, 2002 using texi2html