1ADDR2LINE(1)                 GNU Development Tools                ADDR2LINE(1)
2
3
4

NAME

6       addr2line - convert addresses into file names and line numbers.
7

SYNOPSIS

9       addr2line [-b bfdname⎪--target=bfdname]
10                 [-C--demangle[=style]]
11                 [-e filename⎪--exe=filename]
12                 [-f--functions] [-s--basename]
13                 [-H--help] [-V--version]
14                 [addr addr ...]
15

DESCRIPTION

17       addr2line  translates  program  addresses into file names and line num‐
18       bers.  Given an address and an executable, it uses the debugging infor‐
19       mation  in the executable to figure out which file name and line number
20       are associated with a given address.
21
22       The executable to use is specified with the -e option.  The default  is
23       the file a.out.
24
25       addr2line has two modes of operation.
26
27       In  the first, hexadecimal addresses are specified on the command line,
28       and addr2line displays the file name and line number for each address.
29
30       In the second, addr2line  reads  hexadecimal  addresses  from  standard
31       input,  and  prints  the  file name and line number for each address on
32       standard output.  In this mode, addr2line may be used in a pipe to con‐
33       vert dynamically chosen addresses.
34
35       The  format  of  the output is FILENAME:LINENO.  The file name and line
36       number for each address is printed on  a  separate  line.   If  the  -f
37       option  is  used, then each FILENAME:LINENO line is preceded by a FUNC‐
38       TIONNAME line which is the name of the function containing the address.
39
40       If the file name or function name can not be determined, addr2line will
41       print two question marks in their place.  If the line number can not be
42       determined, addr2line will print 0.
43

OPTIONS

45       The long and short forms of options, shown here  as  alternatives,  are
46       equivalent.
47
48       -b bfdname
49       --target=bfdname
50           Specify  that  the  object-code format for the object files is bfd‐
51           name.
52
53       -C
54       --demangle[=style]
55           Decode (demangle) low-level symbol  names  into  user-level  names.
56           Besides  removing  any  initial underscore prepended by the system,
57           this makes C++ function names readable.  Different  compilers  have
58           different  mangling  styles. The optional demangling style argument
59           can be used to choose an appropriate demangling style for your com‐
60           piler.
61
62       -e filename
63       --exe=filename
64           Specify  the  name  of the executable for which addresses should be
65           translated.  The default file is a.out.
66
67       -f
68       --functions
69           Display function names as well as file and line number information.
70
71       -s
72       --basenames
73           Display only the base of each file name.
74

SEE ALSO

76       Info entries for binutils.
77
79       Copyright (c) 1991, 1992, 1993, 1994, 1995,  1996,  1997,  1998,  1999,
80       2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
81
82       Permission  is  granted to copy, distribute and/or modify this document
83       under the terms of the GNU Free Documentation License, Version  1.1  or
84       any  later  version  published by the Free Software Foundation; with no
85       Invariant Sections, with no Front-Cover Texts, and with  no  Back-Cover
86       Texts.  A copy of the license is included in the section entitled ``GNU
87       Free Documentation License''.
88
89
90
91binutils-2.15.97                  2005-04-20                      ADDR2LINE(1)
Impressum