aboutsummaryrefslogtreecommitdiff
path: root/binutils/binutils.texi
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-02-14 23:07:21 +0000
committerIan Lance Taylor <ian@airs.com>1995-02-14 23:07:21 +0000
commita8e27cc68433cfce8b3c22fd378e30df0505b530 (patch)
tree85180ffc36b29060e4a920cebea2e6185e5a1228 /binutils/binutils.texi
parent580102b0261e1a1dde16f005b402dd024362e170 (diff)
downloadgdb-a8e27cc68433cfce8b3c22fd378e30df0505b530.zip
gdb-a8e27cc68433cfce8b3c22fd378e30df0505b530.tar.gz
gdb-a8e27cc68433cfce8b3c22fd378e30df0505b530.tar.bz2
* objdump.c (with_source_code): New global variable.
(usage): Mention -S/--source. (long_options): Add --source. (prev_functionname, prev_line): New static variables. (struct print_file_list): Define. (print_files): New static variable. (skip_to_line, show_line): New static functions. (disassemble_data): Call show_line to handle -l and -S. (main): Handle -S. * binutils.texi, objdump.1: Document -S/--source.
Diffstat (limited to 'binutils/binutils.texi')
-rw-r--r--binutils/binutils.texi9
1 files changed, 8 insertions, 1 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi
index 4d50e72..5c977bd 100644
--- a/binutils/binutils.texi
+++ b/binutils/binutils.texi
@@ -929,7 +929,7 @@ objdump [ -a | --archive-headers ]
[ -f | --file-headers ]
[ -h | --section-headers | --headers ] [ -i | --info ]
[ -j @var{section} | --section=@var{section} ]
- [ -l | --line-numbers ]
+ [ -l | --line-numbers ] [ -S | --source ]
[ -m @var{machine} | --architecture=@var{machine} ]
[ -r | --reloc ] [ -R | --dynamic-reloc ]
[ -s | --full-contents ] [ --stabs ]
@@ -1061,6 +1061,13 @@ libraries.
@cindex object file sections
Display the full contents of any sections requested.
+@item -S
+@itemx --source
+@cindex source disassembly
+@cindex disassembly, with source
+Display source code intermixed with disassembly, if possible. Implies
+@samp{-d}.
+
@item --stabs
@cindex stab
@cindex .stab