* target.h (TARGET_SIGNAL_REALTIME_64): Added for IRIX 6.
[deliverable/binutils-gdb.git] / binutils / addr2line.1
CommitLineData
cf055d54 1.\" Copyright (c) 1997, 2000 Free Software Foundation
252b5132 2.\" See COPYING for conditions for redistribution
cf055d54 3.TH addr2line 1 "27 March 1997" "Free Software Foundation" "GNU Development Tools"
252b5132
RH
4.de BP
5.sp
6.ti \-.2i
7\(**
8..
9
10.SH NAME
11addr2line \- convert addresses into file names and line numbers
12
13.SH SYNOPSIS
14.hy 0
15.na
16.TP
17.B addr2line
18.RB "[\|" "\-b\ "\c
19.I bfdname\c
20.RB " | " "\-\-target="\c
21.I bfdname\c
22\&\|]
23.RB "[\|" \-C | \-\-demangle "\|]"
24.RB "[\|" "\-e\ "\c
25.I filename\c
26.RB " | " "\-\-exe="\c
27.I filename\c
28\&\|]
29.RB "[\|" \-f | \-\-functions "\|]"
30.RB "[\|" \-s | \-\-basenames "\|]"
31.RB "[\|" \-H | \-\-help "\|]"
32.RB "[\|" \-V | \-\-version "\|]"
33.RB "[\|" addr addr ... "\|]"
34.ad b
35.hy 1
36.SH DESCRIPTION
37\c
38.B addr2line
39translates program addresses into file names and line numbers. Given
40an address and an executable, it uses the debugging information in the
41executable to figure out which file name and line number are
42associated with a given address.
43
44The executable to use is specified with the
45.B \-e
46option. The default is
47.B a.out\c
48\&.
49
50.B addr2line
51has two modes of operation.
52
53In the first, hexadecimal addresses are specified on the command line,
54and
55.B addr2line
56displays the file name and line number for each address.
57
58In the second,
59.B addr2line
60reads hexadecimal addresses from standard input, and prints the file
61name and line number for each address on standard output. In this
62mode,
63.B addr2line
64may be used in a pipe to convert dynamically chosen addresses.
65
66The format of the output is FILENAME:LINENO. The file name and line
67number for each address is printed on a separate line. If the
68.B \-f
69option is used, then each FILENAME:LINENO line is preceded by a
70FUNCTIONNAME line which is the name of the function containing the
71address.
72
73If the file name or function name can not be determined,
74.B addr2line
75will print two question marks in their place. If the line number can
76not be determined,
77.B addr2line
78will print 0.
79
80.SH OPTIONS
81.TP
82.BI "\-b " "bfdname"\c
83.TP
84.BI "\-\-target=" "bfdname"
85Specify the object-code format for the object files to be
86\c
87.I bfdname\c
88\&.
89
90.TP
91.B \-C
92.TP
93.B \-\-demangle
94Decode (\fIdemangle\fP) low-level symbol names into user-level names.
95Besides removing any initial underscore prepended by the system, this
96makes C++ function names readable.
97
98.TP
99.BI "\-e " "filename"\c
100.TP
101.BI "\-\-exe=" "filename"
102Specify the name of the executable for which addresses should be
103translated. The default file is
104.B a.out\c
105\&.
106
107.TP
108.B \-f
109.TP
110.B \-\-functions
111Display function names as well as file and line number information.
112
113.TP
114.B \-s
115.TP
116.B \-\-basenames
117Display only the base of each file name.
118
119.SH "SEE ALSO"
120.RB "`\|" binutils "\|'"
121entry in
122.B
123info\c
124\&;
125.I
126The GNU Binary Utilities\c
127\&, Roland H. Pesch (October 1991).
cf055d54
NC
128
129.SH COPYING
130Copyright (c) 1993, 94, 95, 96, 97, 98, 1999, 2000 Free Software Foundation, Inc.
131.PP
132This document is distributed under the terms of the GNU Free
133Documenation License. That license is described in the GNU Free
134Documentation License section.
135
136.SH GNU Free Documentation License
137 Version 1.1, March 2000
138
139 Copyright (C) 2000 Free Software Foundation, Inc.
140 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
141
142 Everyone is permitted to copy and distribute verbatim
143 copies of this license document, but changing it is
144 not allowed.
145.PP
1460. PREAMBLE
147.PP
148The purpose of this License is to make a manual, textbook, or other
149written document "free" in the sense of freedom: to assure everyone
150the effective freedom to copy and redistribute it, with or without
151modifying it, either commercially or noncommercially. Secondarily,
152this License preserves for the author and publisher a way to get
153credit for their work, while not being considered responsible for
154modifications made by others.
155.PP
156This License is a kind of "copyleft", which means that derivative
157works of the document must themselves be free in the same sense. It
158complements the GNU General Public License, which is a copyleft
159license designed for free software.
160.PP
161We have designed this License in order to use it for manuals for free
162software, because free software needs free documentation: a free
163program should come with manuals providing the same freedoms that the
164software does. But this License is not limited to software manuals;
165it can be used for any textual work, regardless of subject matter or
166whether it is published as a printed book. We recommend this License
167principally for works whose purpose is instruction or reference.
168.PP
1691. APPLICABILITY AND DEFINITIONS
170.PP
171This License applies to any manual or other work that contains a
172notice placed by the copyright holder saying it can be distributed
173under the terms of this License. The "Document", below, refers to any
174such manual or work. Any member of the public is a licensee, and is
175addressed as "you".
176.PP
177A "Modified Version" of the Document means any work containing the
178Document or a portion of it, either copied verbatim, or with
179modifications and/or translated into another language.
180.PP
181A "Secondary Section" is a named appendix or a front-matter section of
182the Document that deals exclusively with the relationship of the
183publishers or authors of the Document to the Document's overall subject
184(or to related matters) and contains nothing that could fall directly
185within that overall subject. (For example, if the Document is in part a
186textbook of mathematics, a Secondary Section may not explain any
187mathematics.) The relationship could be a matter of historical
188connection with the subject or with related matters, or of legal,
189commercial, philosophical, ethical or political position regarding
190them.
191.PP
192The "Invariant Sections" are certain Secondary Sections whose titles
193are designated, as being those of Invariant Sections, in the notice
194that says that the Document is released under this License.
195.PP
196The "Cover Texts" are certain short passages of text that are listed,
197as Front-Cover Texts or Back-Cover Texts, in the notice that says that
198the Document is released under this License.
199.PP
200A "Transparent" copy of the Document means a machine-readable copy,
201represented in a format whose specification is available to the
202general public, whose contents can be viewed and edited directly and
203straightforwardly with generic text editors or (for images composed of
204pixels) generic paint programs or (for drawings) some widely available
205drawing editor, and that is suitable for input to text formatters or
206for automatic translation to a variety of formats suitable for input
207to text formatters. A copy made in an otherwise Transparent file
208format whose markup has been designed to thwart or discourage
209subsequent modification by readers is not Transparent. A copy that is
210not "Transparent" is called "Opaque".
211.PP
212Examples of suitable formats for Transparent copies include plain
213ASCII without markup, Texinfo input format, LaTeX input format, SGML
214or XML using a publicly available DTD, and standard-conforming simple
215HTML designed for human modification. Opaque formats include
216PostScript, PDF, proprietary formats that can be read and edited only
217by proprietary word processors, SGML or XML for which the DTD and/or
218processing tools are not generally available, and the
219machine-generated HTML produced by some word processors for output
220purposes only.
221.PP
222The "Title Page" means, for a printed book, the title page itself,
223plus such following pages as are needed to hold, legibly, the material
224this License requires to appear in the title page. For works in
225formats which do not have any title page as such, "Title Page" means
226the text near the most prominent appearance of the work's title,
227preceding the beginning of the body of the text.
228.PP
2292. VERBATIM COPYING
230.PP
231You may copy and distribute the Document in any medium, either
232commercially or noncommercially, provided that this License, the
233copyright notices, and the license notice saying this License applies
234to the Document are reproduced in all copies, and that you add no other
235conditions whatsoever to those of this License. You may not use
236technical measures to obstruct or control the reading or further
237copying of the copies you make or distribute. However, you may accept
238compensation in exchange for copies. If you distribute a large enough
239number of copies you must also follow the conditions in section 3.
240.PP
241You may also lend copies, under the same conditions stated above, and
242you may publicly display copies.
243.PP
2443. COPYING IN QUANTITY
245.PP
246If you publish printed copies of the Document numbering more than 100,
247and the Document's license notice requires Cover Texts, you must enclose
248the copies in covers that carry, clearly and legibly, all these Cover
249Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
250the back cover. Both covers must also clearly and legibly identify
251you as the publisher of these copies. The front cover must present
252the full title with all words of the title equally prominent and
253visible. You may add other material on the covers in addition.
254Copying with changes limited to the covers, as long as they preserve
255the title of the Document and satisfy these conditions, can be treated
256as verbatim copying in other respects.
257.PP
258If the required texts for either cover are too voluminous to fit
259legibly, you should put the first ones listed (as many as fit
260reasonably) on the actual cover, and continue the rest onto adjacent
261pages.
262.PP
263If you publish or distribute Opaque copies of the Document numbering
264more than 100, you must either include a machine-readable Transparent
265copy along with each Opaque copy, or state in or with each Opaque copy
266a publicly-accessible computer-network location containing a complete
267Transparent copy of the Document, free of added material, which the
268general network-using public has access to download anonymously at no
269charge using public-standard network protocols. If you use the latter
270option, you must take reasonably prudent steps, when you begin
271distribution of Opaque copies in quantity, to ensure that this
272Transparent copy will remain thus accessible at the stated location
273until at least one year after the last time you distribute an Opaque
274copy (directly or through your agents or retailers) of that edition to
275the public.
276.PP
277It is requested, but not required, that you contact the authors of the
278Document well before redistributing any large number of copies, to give
279them a chance to provide you with an updated version of the Document.
280.PP
2814. MODIFICATIONS
282.PP
283You may copy and distribute a Modified Version of the Document under
284the conditions of sections 2 and 3 above, provided that you release
285the Modified Version under precisely this License, with the Modified
286Version filling the role of the Document, thus licensing distribution
287and modification of the Modified Version to whoever possesses a copy
288of it. In addition, you must do these things in the Modified Version:
289.PP
290A. Use in the Title Page (and on the covers, if any) a title distinct
291from that of the Document, and from those of previous versions
292(which should, if there were any, be listed in the History section
293of the Document). You may use the same title as a previous version
294if the original publisher of that version gives permission.
295.PP
296B. List on the Title Page, as authors, one or more persons or entities
297responsible for authorship of the modifications in the Modified
298Version, together with at least five of the principal authors of the
299Document (all of its principal authors, if it has less than five).
300.PP
301C. State on the Title page the name of the publisher of the
302Modified Version, as the publisher.
303.PP
304D. Preserve all the copyright notices of the Document.
305.PP
306E. Add an appropriate copyright notice for your modifications
307adjacent to the other copyright notices.
308.PP
309F. Include, immediately after the copyright notices, a license notice
310giving the public permission to use the Modified Version under the
311terms of this License, in the form shown in the Addendum below.
312Preserve in that license notice the full lists of Invariant Sections
313and required Cover Texts given in the Document's license notice.
314.PP
315H. Include an unaltered copy of this License.
316.PP
317I. Preserve the section entitled "History", and its title, and add to
318it an item stating at least the title, year, new authors, and
319publisher of the Modified Version as given on the Title Page. If
320there is no section entitled "History" in the Document, create one
321stating the title, year, authors, and publisher of the Document as
322given on its Title Page, then add an item describing the Modified
323Version as stated in the previous sentence.
324.PP
325J. Preserve the network location, if any, given in the Document for
326public access to a Transparent copy of the Document, and likewise
327the network locations given in the Document for previous versions
328it was based on. These may be placed in the "History" section.
329You may omit a network location for a work that was published at
330least four years before the Document itself, or if the original
331publisher of the version it refers to gives permission.
332.PP
333K. In any section entitled "Acknowledgements" or "Dedications",
334preserve the section's title, and preserve in the section all the
335substance and tone of each of the contributor acknowledgements
336and/or dedications given therein.
337.PP
338L. Preserve all the Invariant Sections of the Document,
339unaltered in their text and in their titles. Section numbers
340or the equivalent are not considered part of the section titles.
341.PP
342M. Delete any section entitled "Endorsements". Such a section
343may not be included in the Modified Version.
344.PP
345N. Do not retitle any existing section as "Endorsements"
346or to conflict in title with any Invariant Section.
347.PP
348If the Modified Version includes new front-matter sections or
349appendices that qualify as Secondary Sections and contain no material
350copied from the Document, you may at your option designate some or all
351of these sections as invariant. To do this, add their titles to the
352list of Invariant Sections in the Modified Version's license notice.
353These titles must be distinct from any other section titles.
354.PP
355You may add a section entitled "Endorsements", provided it contains
356nothing but endorsements of your Modified Version by various
357parties--for example, statements of peer review or that the text has
358been approved by an organization as the authoritative definition of a
359standard.
360.PP
361You may add a passage of up to five words as a Front-Cover Text, and a
362passage of up to 25 words as a Back-Cover Text, to the end of the list
363of Cover Texts in the Modified Version. Only one passage of
364Front-Cover Text and one of Back-Cover Text may be added by (or
365through arrangements made by) any one entity. If the Document already
366includes a cover text for the same cover, previously added by you or
367by arrangement made by the same entity you are acting on behalf of,
368you may not add another; but you may replace the old one, on explicit
369permission from the previous publisher that added the old one.
370.PP
371The author(s) and publisher(s) of the Document do not by this License
372give permission to use their names for publicity for or to assert or
373imply endorsement of any Modified Version.
374.PP
375
3765. COMBINING DOCUMENTS
377.PP
378You may combine the Document with other documents released under this
379License, under the terms defined in section 4 above for modified
380versions, provided that you include in the combination all of the
381Invariant Sections of all of the original documents, unmodified, and
382list them all as Invariant Sections of your combined work in its
383license notice.
384.PP
385The combined work need only contain one copy of this License, and
386multiple identical Invariant Sections may be replaced with a single
387copy. If there are multiple Invariant Sections with the same name but
388different contents, make the title of each such section unique by
389adding at the end of it, in parentheses, the name of the original
390author or publisher of that section if known, or else a unique number.
391Make the same adjustment to the section titles in the list of
392Invariant Sections in the license notice of the combined work.
393.PP
394In the combination, you must combine any sections entitled "History"
395in the various original documents, forming one section entitled
396"History"; likewise combine any sections entitled "Acknowledgements",
397and any sections entitled "Dedications". You must delete all sections
398entitled "Endorsements."
399.PP
400
4016. COLLECTIONS OF DOCUMENTS
402.PP
403You may make a collection consisting of the Document and other documents
404released under this License, and replace the individual copies of this
405License in the various documents with a single copy that is included in
406the collection, provided that you follow the rules of this License for
407verbatim copying of each of the documents in all other respects.
408.PP
409You may extract a single document from such a collection, and distribute
410it individually under this License, provided you insert a copy of this
411License into the extracted document, and follow this License in all
412other respects regarding verbatim copying of that document.
413.PP
414
4157. AGGREGATION WITH INDEPENDENT WORKS
416.PP
417A compilation of the Document or its derivatives with other separate
418and independent documents or works, in or on a volume of a storage or
419distribution medium, does not as a whole count as a Modified Version
420of the Document, provided no compilation copyright is claimed for the
421compilation. Such a compilation is called an "aggregate", and this
422License does not apply to the other self-contained works thus compiled
423with the Document, on account of their being thus compiled, if they
424are not themselves derivative works of the Document.
425.PP
426If the Cover Text requirement of section 3 is applicable to these
427copies of the Document, then if the Document is less than one quarter
428of the entire aggregate, the Document's Cover Texts may be placed on
429covers that surround only the Document within the aggregate.
430Otherwise they must appear on covers around the whole aggregate.
431.PP
432
4338. TRANSLATION
434.PP
435Translation is considered a kind of modification, so you may
436distribute translations of the Document under the terms of section 4.
437Replacing Invariant Sections with translations requires special
438permission from their copyright holders, but you may include
439translations of some or all Invariant Sections in addition to the
440original versions of these Invariant Sections. You may include a
441translation of this License provided that you also include the
442original English version of this License. In case of a disagreement
443between the translation and the original English version of this
444License, the original English version will prevail.
445.PP
446
4479. TERMINATION
448.PP
449You may not copy, modify, sublicense, or distribute the Document except
450as expressly provided for under this License. Any other attempt to
451copy, modify, sublicense or distribute the Document is void, and will
452automatically terminate your rights under this License. However,
453parties who have received copies, or rights, from you under this
454License will not have their licenses terminated so long as such
455parties remain in full compliance.
456.PP
457
45810. FUTURE REVISIONS OF THIS LICENSE
459.PP
460The Free Software Foundation may publish new, revised versions
461of the GNU Free Documentation License from time to time. Such new
462versions will be similar in spirit to the present version, but may
463differ in detail to address new problems or concerns. See
464http://www.gnu.org/copyleft/.
465.PP
466Each version of the License is given a distinguishing version number.
467If the Document specifies that a particular numbered version of this
468License "or any later version" applies to it, you have the option of
469following the terms and conditions either of that specified version or
470of any later version that has been published (not as a draft) by the
471Free Software Foundation. If the Document does not specify a version
472number of this License, you may choose any version ever published (not
473as a draft) by the Free Software Foundation.
474.PP
475
476ADDENDUM: How to use this License for your documents
477.PP
478To use this License in a document you have written, include a copy of
479the License in the document and put the following copyright and
480license notices just after the title page:
481.PP
482 Copyright (c) YEAR YOUR NAME.
483 Permission is granted to copy, distribute and/or
484 modify this document under the terms of the GNU
485 Free Documentation License, Version 1.1 or any later
486 version published by the Free Software Foundation;
487 with the Invariant Sections being LIST THEIR TITLES,
488 with the Front-Cover Texts being LIST, and with the
489 Back-Cover Texts being LIST. A copy of the license
490 is included in the section entitled "GNU Free
491 Documentation License".
492.PP
493If you have no Invariant Sections, write "with no Invariant Sections"
494instead of saying which ones are invariant. If you have no
495Front-Cover Texts, write "no Front-Cover Texts" instead of
496"Front-Cover Texts being LIST"; likewise for Back-Cover Texts.
497.PP
498If your document contains nontrivial examples of program code, we
499recommend releasing these examples in parallel under your choice of
500free software license, such as the GNU General Public License,
501to permit their use in free software.
This page took 0.083152 seconds and 4 git commands to generate.