diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-02-14 23:07:21 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-02-14 23:07:21 +0000 |
commit | a8e27cc68433cfce8b3c22fd378e30df0505b530 (patch) | |
tree | 85180ffc36b29060e4a920cebea2e6185e5a1228 /binutils/objdump.1 | |
parent | 580102b0261e1a1dde16f005b402dd024362e170 (diff) | |
download | gdb-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/objdump.1')
-rw-r--r-- | binutils/objdump.1 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/objdump.1 b/binutils/objdump.1 index 4a9da61..f5beb33 100644 --- a/binutils/objdump.1 +++ b/binutils/objdump.1 @@ -41,6 +41,7 @@ objdump \- display information from object files. .RB "[\|" \-r | \-\-reloc "\|]" .RB "[\|" \-R | \-\-dynamic\-reloc "\|]" .RB "[\|" \-s | \-\-full\-contents "\|]" +.RB "[\|" \-S | \-\-source "\|]" .RB "[\|" \-\-stabs "\|]" .RB "[\|" \-t | \-\-syms "\|]" .RB "[\|" \-T | \-\-dynamic\-syms "\|]" @@ -228,6 +229,13 @@ libraries. Display the full contents of any sections requested. .TP +.B \-S +.TP +.B \-\-source +Display source code intermixed with disassembly, if possible. Implies +\fB-d\fP. + +.TP .B \-\-stabs Display the contents of the .stab, .stab.index, and .stab.excl sections from an ELF file. This is only useful on systems (such as |