Addr2Line - Red Hat ENTERPRISE LINUX 4 - USING BINUTILS Using Instructions

Using binutils, the gnu binary utilities
Hide thumbs Also See for ENTERPRISE LINUX 4 - USING BINUTILS:
Table of Contents

Advertisement

addr2line [

-b bfdname
[
|
-C
--demangle
[
-e filename
[
|
-f
--functions
[
|
-H
--help
[addr addr ...]
translates program addresses into file names and line numbers. Given an address and an
addr2line
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
has two modes of operation.
addr2line
In the first, hexadecimal addresses are specified on the command line, and
file name and line number for each address.
In the second,
addr2line
and line number for each address on standard output. In this mode,
to convert dynamically chosen addresses.
The format of the output is
printed on a separate line. If the
a
line which is the name of the function containing the address.
FUNCTIONNAME
If the file name or function name can not be determined,
their place. If the line number can not be determined,
The long and short forms of options, shown here as alternatives, are equivalent.
-b
bfdname
-target=
bfdname
Specify that the object-code format for the object files is
-C
-demangle[=
style
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 compil-
ers have different mangling styles. The optional demangling style argument can be used to choose
an appropriate demangling style for your compiler. Chapter 10 c++filt, for more information on
demangling.
-e
filename
-exe=
filename
Specify the name of the executable for which addresses should be translated. The default file is
.
a.out
|
--target=bfdname
[=
]]
style
|
--exe=filename
] [
|
-s
--basename
] [
|
-V
--version
reads hexadecimal addresses from standard input, and prints the file name
FILENAME:LINENO
option is used, then each
-f
]
]
]
]
]
option. The default is the file
-e
. The file name and line number for each address is
FILENAME:LINENO
addr2line
addr2line
bfdname
Chapter 11.
addr2line
.
a.out
addr2line
may be used in a pipe
addr2line
line is preceded by
will print two question marks in
will print 0.
.
displays the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise linux 4

Table of Contents