[PATCH] Update a stab string to reflect gcc3

Daniel Jacobowitz drow@mvista.com
Fri Mar 15 19:43:00 GMT 2002

On Fri, Mar 15, 2002 at 06:24:03PM -0800, Jim Ingham wrote:
> Daniel,
> No real reason (for instance I was NOT planning on cluing a per objfile 
> C++ ABI setting off of it right now.)  But the whole gdb "set cp-abi" 
> bit set me to thinking that there are in fact differences between gcc2 & 
> gcc3 compiled code that gdb does need to know about, so just for grins I 
> wanted it to be right as soon as possible.  Then, if we ever care about 
> some of the differences we will have the info we need to act on it.
> It is, after all, pretty gross that gdb has to grub through symbols 
> looking for functions with an initial _Z to determine that we are using 
> the gnu-v3 ABI.  Wouldn't it be a lot cleaner if there was a 
> gcc3_compiled stab that we could read?

Except, as Daniel pointed out, we hopefully support this ABI in other
compilers too.  I'd rather just forget about this until there's
something we actually need the information for.  In an ideal world,
there never will be; we've made it around every other case so far.

Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

More information about the Gcc-patches mailing list