public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: objdump --stabs
@ 2000-06-24 12:53 Nick Clifton
  2000-06-24 15:45 ` Mark E.
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Clifton @ 2000-06-24 12:53 UTC (permalink / raw)
  To: snowball3; +Cc: binutils

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\

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: objdump --stabs
  2000-06-24 12:53 objdump --stabs Nick Clifton
@ 2000-06-24 15:45 ` Mark E.
  0 siblings, 0 replies; 3+ messages in thread
From: Mark E. @ 2000-06-24 15:45 UTC (permalink / raw)
  To: Nick Clifton, binutils

>   -G  --stabs              Display (in raw form) any STABS info in the file
> which I hope you will agree is more accurate.
> 

Thanks! This makes the difference quite clear.

Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

* objdump --stabs
@ 2000-06-23 17:07 Mark E.
  0 siblings, 0 replies; 3+ messages in thread
From: Mark E. @ 2000-06-23 17:07 UTC (permalink / raw)
  To: binutils

Greetings,

'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

Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-06-24 15:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-24 12:53 objdump --stabs Nick Clifton
2000-06-24 15:45 ` Mark E.
  -- strict thread matches above, loose matches on Subject: below --
2000-06-23 17:07 Mark E.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).