public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* stabs and macro information
@ 2003-04-16 15:58 David Taylor
  2003-04-16 16:47 ` Daniel Berlin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: David Taylor @ 2003-04-16 15:58 UTC (permalink / raw)
  To: gcc, gdb

Currently, when invoked with -gdwarf-2 -g3, gcc will record macro
information in a .debug_macinfo elf section.  And when presented with
an executable containing macro information in a .debug_macinfo
section, gdb will make use of it.

Many companies, including EMC, still use stabs.  So...  it would be
nice if the same was true of stabs.

To that end, I have started to implement this.

The GCC side of things took less than a day to implement; I'm hoping
to get started on the GDB side soon.

One question I have is what stabs types to use -- tentatively I'm using:

    /* GNU extension.  Macro define.  */
    __define_stab(N_MAC_DEFINE, 0x36, "MAC_DEFINE")

    /* GNU extension.  Macro undefine.  */
    __define_stab(N_MAC_UNDEF, 0x3a, "MAC_UNDEF")

as it appears (based on gcc/stab.def, include/aout/stab.def, and
gdb/doc/stabs.texinfo) that 0x36 and 0x3a are available.

Is anyone aware of any other uses of stab types 0x36 and 0x3a --
i.e. is anyone aware of uses that might conflict?

Thanks.

David

p.s. shouldn't include/aout/stab.def and gcc/stab.def be merged?
--
David Taylor
dtaylor@emc.com

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

end of thread, other threads:[~2003-04-24  3:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-16 15:58 stabs and macro information David Taylor
2003-04-16 16:47 ` Daniel Berlin
2003-04-16 17:16   ` David Taylor
2003-04-16 17:25     ` Daniel Jacobowitz
2003-04-16 17:38     ` Andrew Cagney
2003-04-16 17:27 ` Daniel Jacobowitz
2003-04-16 17:59   ` David Taylor
2003-04-16 20:29   ` Daniel Berlin
2003-04-17 16:39     ` David Taylor
2003-04-17 16:46       ` Daniel Jacobowitz
2003-04-24  3:20 ` Jim Blandy

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).