This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: objdump --stabs
- To: snowball3 at bigfoot dot com
- Subject: Re: objdump --stabs
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Sat, 24 Jun 2000 12:53:56 -0700
- CC: binutils at sourceware dot cygnus dot com
Hi Mark,
: 'objdump --help' implies that 'objdump --stabs' is only for ELF, but
: it works just fine with COFF too:
: -G --stabs Display the STABS contents of an ELF format file
This is true. The original intention behind this wording was that in a
COFF file that uses STABS debug information the -g command line switch
would be more useful, since it actually interprets the STABS
directives. For an ELF file the -g switch is general useless, since
objdump does not interpret DWARF2 debug information. If however, the
ELF file contained both STABS and DWARF2 information, then the -G
switch could be used to get at the raw STABS information.
Anyway I have applied the patch below to reword the description of the
switch to be:
-G --stabs Display (in raw form) any STABS info in the file
which I hope you will agree is more accurate.
Cheers
Nick
2000-06-24 Nick Clifton <nickc@cygnus.com>
* objdump.c (usage): Fix description of --stabs switch.
Index: binutils/objdump.c
===================================================================
RCS file: /cvs/src//src/binutils/objdump.c,v
retrieving revision 1.27
diff -p -r1.27 objdump.c
*** objdump.c 2000/05/30 07:47:56 1.27
--- objdump.c 2000/06/24 19:45:05
*************** usage (stream, status)
*** 233,239 ****
-S --source Intermix source code with disassembly\n\
-s --full-contents Display the full contents of all sections requested\n\
-g --debugging Display debug information in object file\n\
! -G --stabs Display the STABS contents of an ELF format file\n\
-t --syms Display the contents of the symbol table(s)\n\
-T --dynamic-syms Display the contents of the dynamic symbol table\n\
-r --reloc Display the relocation entries in the file\n\
--- 233,239 ----
-S --source Intermix source code with disassembly\n\
-s --full-contents Display the full contents of all sections requested\n\
-g --debugging Display debug information in object file\n\
! -G --stabs Display (in raw form) any STABS info in the file\n\
-t --syms Display the contents of the symbol table(s)\n\
-T --dynamic-syms Display the contents of the dynamic symbol table\n\
-r --reloc Display the relocation entries in the file\n\