diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-06-12 18:59:47 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-06-12 18:59:47 +0000 |
commit | 77dd44697f51b4e836f6102f1e5e92b0a58f981c (patch) | |
tree | 6b2693dbe308cdd56c309d9dbb445ecf16d1c793 /binutils/binutils.texi | |
parent | 0e3bd85ee7a1dfa01b8df79440900d08c71da9e3 (diff) | |
download | gdb-77dd44697f51b4e836f6102f1e5e92b0a58f981c.zip gdb-77dd44697f51b4e836f6102f1e5e92b0a58f981c.tar.gz gdb-77dd44697f51b4e836f6102f1e5e92b0a58f981c.tar.bz2 |
* nm.c (struct get_relocs_info): Define.
(line_numbers): New static variable.
(long_options): Add "line-numbers".
(usage): Mention -l and --line-numbers.
(main): Handle -l.
(print_symbol): Print line numbers if requested.
(get_relocs): New static function.
* binutils.texi, nm.1: Document -l/--line-numbers.
Diffstat (limited to 'binutils/binutils.texi')
-rw-r--r-- | binutils/binutils.texi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi index aff80f8..2632279 100644 --- a/binutils/binutils.texi +++ b/binutils/binutils.texi @@ -580,7 +580,7 @@ nm [ -a | --debug-syms ] [ -g | --extern-only ] [ -r | --reverse-sort ] [ --size-sort ] [ -u | --undefined-only ] [ -t @var{radix} | --radix=@var{radix} ] [ -P | --portability ] [ --target=@var{bfdname} ] [ -f @var{format} | --format=@var{format} ] - [ --defined-only ] + [ --defined-only ] [-l | --line-numbers ] [ --no-demangle ] [ -V | --version ] [ --help ] [ @var{objfile}@dots{} ] @end smallexample @@ -722,6 +722,15 @@ either upper or lower case. @cindex external symbols Display only external symbols. +@item -l +@itemx --line-numbers +@cindex symbol line numbers +For each symbol, use debugging information to try to find a filename and +line number. For a defined symbol, look for the line number of the +address of the symbol. For an undefined symbol, look for the line +number of a relocation entry which refers to the symbol. If line number +information can be found, print it after the other symbol information. + @item -n @itemx -v @itemx --numeric-sort |