aarch64-none-linux-gnu-addr2line.1 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. .\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .if !\nF .nr F 0
  58. .if \nF>0 \{\
  59. . de IX
  60. . tm Index:\\$1\t\\n%\t"\\$2"
  61. ..
  62. . if !\nF==2 \{\
  63. . nr % 0
  64. . nr F 2
  65. . \}
  66. .\}
  67. .\"
  68. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. .\" Fear. Run. Save yourself. No user-serviceable parts.
  70. . \" fudge factors for nroff and troff
  71. .if n \{\
  72. . ds #H 0
  73. . ds #V .8m
  74. . ds #F .3m
  75. . ds #[ \f1
  76. . ds #] \fP
  77. .\}
  78. .if t \{\
  79. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  80. . ds #V .6m
  81. . ds #F 0
  82. . ds #[ \&
  83. . ds #] \&
  84. .\}
  85. . \" simple accents for nroff and troff
  86. .if n \{\
  87. . ds ' \&
  88. . ds ` \&
  89. . ds ^ \&
  90. . ds , \&
  91. . ds ~ ~
  92. . ds /
  93. .\}
  94. .if t \{\
  95. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  96. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  97. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  98. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  99. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  100. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  101. .\}
  102. . \" troff and (daisy-wheel) nroff accents
  103. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  104. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  105. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  106. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  107. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  108. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  109. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  110. .ds ae a\h'-(\w'a'u*4/10)'e
  111. .ds Ae A\h'-(\w'A'u*4/10)'E
  112. . \" corrections for vroff
  113. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  114. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  115. . \" for low resolution devices (crt and lpr)
  116. .if \n(.H>23 .if \n(.V>19 \
  117. \{\
  118. . ds : e
  119. . ds 8 ss
  120. . ds o a
  121. . ds d- d\h'-1'\(ga
  122. . ds D- D\h'-1'\(hy
  123. . ds th \o'bp'
  124. . ds Th \o'LP'
  125. . ds ae ae
  126. . ds Ae AE
  127. .\}
  128. .rm #[ #] #H #V #F C
  129. .\" ========================================================================
  130. .\"
  131. .IX Title "ADDR2LINE 1"
  132. .TH ADDR2LINE 1 "2021-07-02" "binutils-2.36.1" "GNU Development Tools"
  133. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  134. .\" way too many mistakes in technical documents.
  135. .if n .ad l
  136. .nh
  137. .SH "NAME"
  138. addr2line \- convert addresses into file names and line numbers
  139. .SH "SYNOPSIS"
  140. .IX Header "SYNOPSIS"
  141. addr2line [\fB\-a\fR|\fB\-\-addresses\fR]
  142. [\fB\-b\fR \fIbfdname\fR|\fB\-\-target=\fR\fIbfdname\fR]
  143. [\fB\-C\fR|\fB\-\-demangle\fR[=\fIstyle\fR]]
  144. [\fB\-r\fR|\fB\-\-no\-recurse\-limit\fR]
  145. [\fB\-R\fR|\fB\-\-recurse\-limit\fR]
  146. [\fB\-e\fR \fIfilename\fR|\fB\-\-exe=\fR\fIfilename\fR]
  147. [\fB\-f\fR|\fB\-\-functions\fR] [\fB\-s\fR|\fB\-\-basename\fR]
  148. [\fB\-i\fR|\fB\-\-inlines\fR]
  149. [\fB\-p\fR|\fB\-\-pretty\-print\fR]
  150. [\fB\-j\fR|\fB\-\-section=\fR\fIname\fR]
  151. [\fB\-H\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR]
  152. [addr addr ...]
  153. .SH "DESCRIPTION"
  154. .IX Header "DESCRIPTION"
  155. \&\fBaddr2line\fR translates addresses into file names and line numbers.
  156. Given an address in an executable or an offset in a section of a relocatable
  157. object, it uses the debugging information to figure out which file name and
  158. line number are associated with it.
  159. .PP
  160. The executable or relocatable object to use is specified with the \fB\-e\fR
  161. option. The default is the file \fIa.out\fR. The section in the relocatable
  162. object to use is specified with the \fB\-j\fR option.
  163. .PP
  164. \&\fBaddr2line\fR has two modes of operation.
  165. .PP
  166. In the first, hexadecimal addresses are specified on the command line,
  167. and \fBaddr2line\fR displays the file name and line number for each
  168. address.
  169. .PP
  170. In the second, \fBaddr2line\fR reads hexadecimal addresses from
  171. standard input, and prints the file name and line number for each
  172. address on standard output. In this mode, \fBaddr2line\fR may be used
  173. in a pipe to convert dynamically chosen addresses.
  174. .PP
  175. The format of the output is \fB\s-1FILENAME:LINENO\s0\fR. By default
  176. each input address generates one line of output.
  177. .PP
  178. Two options can generate additional lines before each
  179. \&\fB\s-1FILENAME:LINENO\s0\fR line (in that order).
  180. .PP
  181. If the \fB\-a\fR option is used then a line with the input address
  182. is displayed.
  183. .PP
  184. If the \fB\-f\fR option is used, then a line with the
  185. \&\fB\s-1FUNCTIONNAME\s0\fR is displayed. This is the name of the function
  186. containing the address.
  187. .PP
  188. One option can generate additional lines after the
  189. \&\fB\s-1FILENAME:LINENO\s0\fR line.
  190. .PP
  191. If the \fB\-i\fR option is used and the code at the given address is
  192. present there because of inlining by the compiler then additional
  193. lines are displayed afterwards. One or two extra lines (if the
  194. \&\fB\-f\fR option is used) are displayed for each inlined function.
  195. .PP
  196. Alternatively if the \fB\-p\fR option is used then each input
  197. address generates a single, long, output line containing the address,
  198. the function name, the file name and the line number. If the
  199. \&\fB\-i\fR option has also been used then any inlined functions will
  200. be displayed in the same manner, but on separate lines, and prefixed
  201. by the text \fB(inlined by)\fR.
  202. .PP
  203. If the file name or function name can not be determined,
  204. \&\fBaddr2line\fR will print two question marks in their place. If the
  205. line number can not be determined, \fBaddr2line\fR will print 0.
  206. .SH "OPTIONS"
  207. .IX Header "OPTIONS"
  208. The long and short forms of options, shown here as alternatives, are
  209. equivalent.
  210. .IP "\fB\-a\fR" 4
  211. .IX Item "-a"
  212. .PD 0
  213. .IP "\fB\-\-addresses\fR" 4
  214. .IX Item "--addresses"
  215. .PD
  216. Display the address before the function name, file and line number
  217. information. The address is printed with a \fB0x\fR prefix to easily
  218. identify it.
  219. .IP "\fB\-b\fR \fIbfdname\fR" 4
  220. .IX Item "-b bfdname"
  221. .PD 0
  222. .IP "\fB\-\-target=\fR\fIbfdname\fR" 4
  223. .IX Item "--target=bfdname"
  224. .PD
  225. Specify that the object-code format for the object files is
  226. \&\fIbfdname\fR.
  227. .IP "\fB\-C\fR" 4
  228. .IX Item "-C"
  229. .PD 0
  230. .IP "\fB\-\-demangle[=\fR\fIstyle\fR\fB]\fR" 4
  231. .IX Item "--demangle[=style]"
  232. .PD
  233. Decode (\fIdemangle\fR) low-level symbol names into user-level names.
  234. Besides removing any initial underscore prepended by the system, this
  235. makes \*(C+ function names readable. Different compilers have different
  236. mangling styles. The optional demangling style argument can be used to
  237. choose an appropriate demangling style for your compiler.
  238. .IP "\fB\-e\fR \fIfilename\fR" 4
  239. .IX Item "-e filename"
  240. .PD 0
  241. .IP "\fB\-\-exe=\fR\fIfilename\fR" 4
  242. .IX Item "--exe=filename"
  243. .PD
  244. Specify the name of the executable for which addresses should be
  245. translated. The default file is \fIa.out\fR.
  246. .IP "\fB\-f\fR" 4
  247. .IX Item "-f"
  248. .PD 0
  249. .IP "\fB\-\-functions\fR" 4
  250. .IX Item "--functions"
  251. .PD
  252. Display function names as well as file and line number information.
  253. .IP "\fB\-s\fR" 4
  254. .IX Item "-s"
  255. .PD 0
  256. .IP "\fB\-\-basenames\fR" 4
  257. .IX Item "--basenames"
  258. .PD
  259. Display only the base of each file name.
  260. .IP "\fB\-i\fR" 4
  261. .IX Item "-i"
  262. .PD 0
  263. .IP "\fB\-\-inlines\fR" 4
  264. .IX Item "--inlines"
  265. .PD
  266. If the address belongs to a function that was inlined, the source
  267. information for all enclosing scopes back to the first non-inlined
  268. function will also be printed. For example, if \f(CW\*(C`main\*(C'\fR inlines
  269. \&\f(CW\*(C`callee1\*(C'\fR which inlines \f(CW\*(C`callee2\*(C'\fR, and address is from
  270. \&\f(CW\*(C`callee2\*(C'\fR, the source information for \f(CW\*(C`callee1\*(C'\fR and \f(CW\*(C`main\*(C'\fR
  271. will also be printed.
  272. .IP "\fB\-j\fR" 4
  273. .IX Item "-j"
  274. .PD 0
  275. .IP "\fB\-\-section\fR" 4
  276. .IX Item "--section"
  277. .PD
  278. Read offsets relative to the specified section instead of absolute addresses.
  279. .IP "\fB\-p\fR" 4
  280. .IX Item "-p"
  281. .PD 0
  282. .IP "\fB\-\-pretty\-print\fR" 4
  283. .IX Item "--pretty-print"
  284. .PD
  285. Make the output more human friendly: each location are printed on one line.
  286. If option \fB\-i\fR is specified, lines for all enclosing scopes are
  287. prefixed with \fB(inlined by)\fR.
  288. .IP "\fB\-r\fR" 4
  289. .IX Item "-r"
  290. .PD 0
  291. .IP "\fB\-R\fR" 4
  292. .IX Item "-R"
  293. .IP "\fB\-\-recurse\-limit\fR" 4
  294. .IX Item "--recurse-limit"
  295. .IP "\fB\-\-no\-recurse\-limit\fR" 4
  296. .IX Item "--no-recurse-limit"
  297. .IP "\fB\-\-recursion\-limit\fR" 4
  298. .IX Item "--recursion-limit"
  299. .IP "\fB\-\-no\-recursion\-limit\fR" 4
  300. .IX Item "--no-recursion-limit"
  301. .PD
  302. Enables or disables a limit on the amount of recursion performed
  303. whilst demangling strings. Since the name mangling formats allow for
  304. an infinite level of recursion it is possible to create strings whose
  305. decoding will exhaust the amount of stack space available on the host
  306. machine, triggering a memory fault. The limit tries to prevent this
  307. from happening by restricting recursion to 2048 levels of nesting.
  308. .Sp
  309. The default is for this limit to be enabled, but disabling it may be
  310. necessary in order to demangle truly complicated names. Note however
  311. that if the recursion limit is disabled then stack exhaustion is
  312. possible and any bug reports about such an event will be rejected.
  313. .Sp
  314. The \fB\-r\fR option is a synonym for the
  315. \&\fB\-\-no\-recurse\-limit\fR option. The \fB\-R\fR option is a
  316. synonym for the \fB\-\-recurse\-limit\fR option.
  317. .Sp
  318. Note this option is only effective if the \fB\-C\fR or
  319. \&\fB\-\-demangle\fR option has been enabled.
  320. .IP "\fB@\fR\fIfile\fR" 4
  321. .IX Item "@file"
  322. Read command-line options from \fIfile\fR. The options read are
  323. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  324. does not exist, or cannot be read, then the option will be treated
  325. literally, and not removed.
  326. .Sp
  327. Options in \fIfile\fR are separated by whitespace. A whitespace
  328. character may be included in an option by surrounding the entire
  329. option in either single or double quotes. Any character (including a
  330. backslash) may be included by prefixing the character to be included
  331. with a backslash. The \fIfile\fR may itself contain additional
  332. @\fIfile\fR options; any such options will be processed recursively.
  333. .SH "SEE ALSO"
  334. .IX Header "SEE ALSO"
  335. Info entries for \fIbinutils\fR.
  336. .SH "COPYRIGHT"
  337. .IX Header "COPYRIGHT"
  338. Copyright (c) 1991\-2021 Free Software Foundation, Inc.
  339. .PP
  340. Permission is granted to copy, distribute and/or modify this document
  341. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
  342. or any later version published by the Free Software Foundation;
  343. with no Invariant Sections, with no Front-Cover Texts, and with no
  344. Back-Cover Texts. A copy of the license is included in the
  345. section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".