From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Clifton To: snowball3@bigfoot.com Cc: binutils@sourceware.cygnus.com Subject: Re: objdump --stabs Date: Sat, 24 Jun 2000 12:53:00 -0000 Message-id: <200006241953.MAA23254@elmo.cygnus.com> X-SW-Source: 2000-06/msg00509.html 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 * 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\