This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] const qualifiers in gdb.c++/method.exp
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: drow at mvista dot com
- Cc: fnf at redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Fri, 11 Jan 2002 07:13:02 -0600
- Subject: Re: [RFC] const qualifiers in gdb.c++/method.exp
Daniel Jacobowitz wrote:
> Mind trying again? I think Fred fixed these - or someone else did...
Okay, here's some fresh test results. The type of "print this" in
a const method is:
"A *"
native i686-pc-linux-gnu, gdb HEAD, gcc 2.95.3, -gstabs+
native i686-pc-linux-gnu, gdb HEAD, gcc 3.0.2, -gstabs+
native i686-pc-linux-gnu, gdb HEAD, gcc HEAD, -gstabs+
native i686-pc-linux-gnu, gdb HEAD, gcc gcc-3_0-branch, -gstabs+
"const A * const"
native i686-pc-linux-gnu, gdb HEAD, gcc 2.95.3, -gdwarf-2
native i686-pc-linux-gnu, gdb HEAD, gcc 3.0.2, -gdwarf-2
native i686-pc-linux-gnu, gdb HEAD, gcc HEAD, -gdwarf-2
native i686-pc-linux-gnu, gdb HEAD, gcc gcc-3_0-branch, -gdwarf-2
This is an improvement from 2001-12-22, when dwarf-2 + v3 compiler
resulted in "A * const".
So over in Fred Fish's patch, I'd like to see fragment #2 look
something like this:
get_debug_format
setup_xfail_format stabs
...
-re "\\$\[0-9\]* = \\(const A \\*( const)?\\) $hex\r\n$gdb_prompt $" {
I'd like the first const to be mandatory, with an xfail for stabs.
(My paperwork is almost done, and then I can commit my own patches
as well as approve other people's).
Michael C