* Re: stabs changes for 64 bit targets [not found] <18975.1368456346@usendtaylorx2l> @ 2013-05-13 14:52 ` Jakub Jelinek 2013-05-13 16:15 ` Joern Rennecke 2013-05-14 14:38 ` David Taylor 0 siblings, 2 replies; 4+ messages in thread From: Jakub Jelinek @ 2013-05-13 14:52 UTC (permalink / raw) To: David Taylor; +Cc: gcc, gdb, binutils On Mon, May 13, 2013 at 10:45:46AM -0400, David Taylor wrote: > There are problems when using current STABS debug format for 64 bit > targets. Why are you considering extending STABS at this point? STABS support might very well be dropped altogether from GCC 4.9 or the next release, people just should use DWARF[234] everywhere. Jakub ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stabs changes for 64 bit targets 2013-05-13 14:52 ` stabs changes for 64 bit targets Jakub Jelinek @ 2013-05-13 16:15 ` Joern Rennecke 2013-05-14 14:38 ` David Taylor 1 sibling, 0 replies; 4+ messages in thread From: Joern Rennecke @ 2013-05-13 16:15 UTC (permalink / raw) To: Jakub Jelinek; +Cc: David Taylor, gcc, gdb, binutils Quoting Jakub Jelinek <jakub@redhat.com>: > On Mon, May 13, 2013 at 10:45:46AM -0400, David Taylor wrote: >> There are problems when using current STABS debug format for 64 bit >> targets. > > Why are you considering extending STABS at this point? > STABS support might very well be dropped altogether from GCC 4.9 or the next > release, people just should use DWARF[234] everywhere. I find stabs is still helpful when you try to inspect the assembly output by hand (or more precisely, by visual inspection in a text editor / pager). ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stabs changes for 64 bit targets 2013-05-13 14:52 ` stabs changes for 64 bit targets Jakub Jelinek 2013-05-13 16:15 ` Joern Rennecke @ 2013-05-14 14:38 ` David Taylor 2013-05-14 15:24 ` David Edelsohn 1 sibling, 1 reply; 4+ messages in thread From: David Taylor @ 2013-05-14 14:38 UTC (permalink / raw) To: Jakub Jelinek; +Cc: gcc, gdb, binutils Jakub Jelinek <jakub@redhat.com> wrote: > On Mon, May 13, 2013 at 10:45:46AM -0400, David Taylor wrote: > > There are problems when using current STABS debug format for 64 bit > > targets. > > Why are you considering extending STABS at this point? > STABS support might very well be dropped altogether from GCC 4.9 or the next > release, people just should use DWARF[234] everywhere. There are multiple reasons. One of the big reasons is... Prior to GCC 4.7, DWARF is too verbose compared to STABS. In STABS, all strings go into the string table; identical strings get put into the table just once. In DWARF, prior to GCC 4.7, macro strings do not go into the string table. If 1000 files all include a given header file, each #define in that header gets its own string in the debug information -- so the string is present 1000 times. GCC 4.7 (DWARF4) fixes this. We have STABS extensions (posted years ago, but never merged) that record macros in the STABS debug information -- at the -g3 level, just like for DWARF. [Posting updated MACRO extensions and trying to get them merged in is on my plate as part of the internal upgrade from gdb 7.1 to gdb 7.6. The extensions predate 7.1.] We are currently using GCC 4.5.4 for most things; 4.6.x for others. I don't knbow the details, but 4.7 was (is?) considered unacceptable, so we're planning on skipping it and waiting for 4.8.1 or later. There are other reasons besides the DWARF verboseness, but they are solvable. The verboseness (over 10x increase in the size of the elf file) is a show stopper. So, for now, we're sticking with STABS. I would like the 16 bytes STABS to be done in a manner that they would be considered for inclusion. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stabs changes for 64 bit targets 2013-05-14 14:38 ` David Taylor @ 2013-05-14 15:24 ` David Edelsohn 0 siblings, 0 replies; 4+ messages in thread From: David Edelsohn @ 2013-05-14 15:24 UTC (permalink / raw) To: David Taylor; +Cc: Jakub Jelinek, gcc, gdb, binutils On Tue, May 14, 2013 at 10:38 AM, David Taylor <dtaylor@emc.com> wrote: > Jakub Jelinek <jakub@redhat.com> wrote: > >> On Mon, May 13, 2013 at 10:45:46AM -0400, David Taylor wrote: >> > There are problems when using current STABS debug format for 64 bit >> > targets. >> >> Why are you considering extending STABS at this point? >> STABS support might very well be dropped altogether from GCC 4.9 or the next >> release, people just should use DWARF[234] everywhere. > > There are multiple reasons. One of the big reasons is... > > Prior to GCC 4.7, DWARF is too verbose compared to STABS. > > In STABS, all strings go into the string table; identical strings get > put into the table just once. > > In DWARF, prior to GCC 4.7, macro strings do not go into the string > table. If 1000 files all include a given header file, each #define in > that header gets its own string in the debug information -- so the > string is present 1000 times. GCC 4.7 (DWARF4) fixes this. > > We have STABS extensions (posted years ago, but never merged) that > record macros in the STABS debug information -- at the -g3 level, just > like for DWARF. Please keep in mind that AIX continues to use STABS with its XCOFF file format, so please do not make changes to STABS under the assumption that you are the only producer and consumer. AIX added support for DWARF and I believe that there are some patches to support DWARF on AIX from Adacore, but those have not been merged into FSF GCC, Binutils and GDB yet. Thanks, David ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-14 15:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <18975.1368456346@usendtaylorx2l>
2013-05-13 14:52 ` stabs changes for 64 bit targets Jakub Jelinek
2013-05-13 16:15 ` Joern Rennecke
2013-05-14 14:38 ` David Taylor
2013-05-14 15:24 ` David Edelsohn
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox