ADDR2LINE 1 2005-04-20 binutils-2.15.97 GNU Development Tools
NAME
addr2line - convert addresses into file names and line numbers.
SYNOPSIS
addr2line [--bb _b_f_d_n_a_m_e|----ttaarrggeett==_b_f_d_n_a_m_e]
[--CC|----ddeemmaannggllee[=_s_t_y_l_e]]
[--ee _f_i_l_e_n_a_m_e|----eexxee==_f_i_l_e_n_a_m_e]
[--ff|----ffuunnccttiioonnss] [--ss|----bbaasseennaammee]
[--HH|----hheellpp] [--VV|----vveerrssiioonn]
[addr addr ...]
DESCRIPTION
aaddddrr22lliinnee 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 --ee option. The
default is the file _a_._o_u_t.
aaddddrr22lliinnee has two modes of operation.
In the first, hexadecimal addresses are specified on the command line,
and aaddddrr22lliinnee displays the file name and line number for each
address.
In the second, aaddddrr22lliinnee reads hexadecimal addresses from
standard input, and prints the file name and line number for each
address on standard output. In this mode, aaddddrr22lliinnee may be used
in a pipe to convert dynamically chosen addresses.
The format of the output is FFIILLEENNAAMMEE::LLIINNEENNOO. The file name and
line number for each address is printed on a separate line. If the
--ff option is used, then each FFIILLEENNAAMMEE::LLIINNEENNOO line is
preceded by a FFUUNNCCTTIIOONNNNAAMMEE line which is the name of the function
containing the address.
If the file name or function name can not be determined,
aaddddrr22lliinnee will print two question marks in their place. If the
line number can not be determined, aaddddrr22lliinnee will print 0.
OPTIONS
The long and short forms of options, shown here as alternatives, are
equivalent.
-
--bb _b_f_d_n_a_m_e
-
-
----ttaarrggeett==_b_f_d_n_a_m_e
Specify that the object-code format for the object files is
-
_b_f_d_n_a_m_e.
-
--CC
-
-
----ddeemmaannggllee[[==_s_t_y_l_e]]
Decode (_d_e_m_a_n_g_l_e) 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.
-
--ee _f_i_l_e_n_a_m_e
-
-
----eexxee==_f_i_l_e_n_a_m_e
Specify the name of the executable for which addresses should be
-
translated. The default file is _a_._o_u_t.
-
--ff
-
-
----ffuunnccttiioonnss
Display function names as well as file and line number information.
-
-
--ss
-
-
----bbaasseennaammeess
Display only the base of each file name.
-
SEE ALSO
Info entries for _b_i_n_u_t_i_l_s.
COPYRIGHT
Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1
or any later version published by the Free Software Foundation;
with no Invariant Sections, with no Front-Cover Texts, and with no
Back-Cover Texts. A copy of the license is included in the
section entitled ``GNU Free Documentation License''.