1 .\" Copyright (c) 1997 Free Software Foundation
2 .\" See COPYING for conditions for redistribution
3 .TH addr2line 1 "27 March 1997" "Cygnus Solutions" "GNU Development Tools"
11 addr2line \- convert addresses into file names and line numbers
20 .RB " | " "\-\-target="\c
23 .RB "[\|" \-C | \-\-demangle "\|]"
26 .RB " | " "\-\-exe="\c
29 .RB "[\|" \-f | \-\-functions "\|]"
30 .RB "[\|" \-s | \-\-basenames "\|]"
31 .RB "[\|" \-H | \-\-help "\|]"
32 .RB "[\|" \-V | \-\-version "\|]"
33 .RB "[\|" addr addr ... "\|]"
39 translates program addresses into file names and line numbers. Given
40 an address and an executable, it uses the debugging information in the
41 executable to figure out which file name and line number are
42 associated with a given address.
44 The executable to use is specified with the
46 option. The default is
51 has two modes of operation.
53 In the first, hexadecimal addresses are specified on the command line,
56 displays the file name and line number for each address.
60 reads hexadecimal addresses from standard input, and prints the file
61 name and line number for each address on standard output. In this
64 may be used in a pipe to convert dynamically chosen addresses.
66 The format of the output is FILENAME:LINENO. The file name and line
67 number for each address is printed on a separate line. If the
69 option is used, then each FILENAME:LINENO line is preceded by a
70 FUNCTIONNAME line which is the name of the function containing the
73 If the file name or function name can not be determined,
75 will print two question marks in their place. If the line number can
82 .BI "\-b " "bfdname"\c
84 .BI "\-\-target=" "bfdname"
85 Specify the object-code format for the object files to be
94 Decode (\fIdemangle\fP) low-level symbol names into user-level names.
95 Besides removing any initial underscore prepended by the system, this
96 makes C++ function names readable.
99 .BI "\-e " "filename"\c
101 .BI "\-\-exe=" "filename"
102 Specify the name of the executable for which addresses should be
103 translated. The default file is
111 Display function names as well as file and line number information.
117 Display only the base of each file name.
120 .RB "`\|" binutils "\|'"
126 The GNU Binary Utilities\c
127 \&, Roland H. Pesch (October 1991).