This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: Check for corruption of cv_type chain
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: drow at mvista dot com, jimb at redhat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 3 May 2002 19:33:09 -0500
- Subject: Re: RFA: Check for corruption of cv_type chain
Jim Blandy writes:
> It doesn't seem to the default pre-3.1. -gstabs is. (I think.)
On native i686-pc-linux-gnu, with gcc 3.0.4 in a usual configuration,
"gcc -g" emits stabs+ format, not stabs format. This is also true for
gcc 2.95.3.
I just checked this with some trial programs, plus I run the test suite
every so often with a lot of different "-g" options, including -g,
-gstabs, -gstabs+, -gdwarf, and -gdwarf-2.
> Given that it's not the default, I guess I'm worried that this test
> won't behave properly as a regression test, because people so rarely
> run the test in that configuration.
You don't have to worry about this, because "-g" maps to "-gstabs+"
rather than "-gstabs".
(Actually you and I probably still have a philosophical difference here.
I would argue for keeping the test agnostic *even if* "-g" mapped to
"-gstabs". But with the facts as they are, I think that difference
between us can be moot.)
Michael C