This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] gdb.c++/method.exp
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 8 Apr 2002 10:37:02 -0400
- Subject: Re: [PATCH] gdb.c++/method.exp
- References: <200204080721.g387Lfe09282@duracef.shout.net>
On Mon, Apr 08, 2002 at 02:21:41AM -0500, Michael Elizabeth Chastain wrote:
> I am committing the following patch to gdb.c++/method.exp.
>
> This cleans up the script considerably. It also fixes several spurious
> FAILs by accepting "A * const" and "const A * const".
>
> After applying this patch, there is still 1 FAIL in two configurations:
> "print this in A::bar" still FAILs on native i686-pc-linux-gnu with
> gcc gcc-3_1-branch and gcc HEAD.
Erm... did we reach a conclusion about whether those const's were
really optional? In a const method, there should be a const on the
type of 'this'. Obviously we won't get it in g++2.95/stabs, and I
think we agreed that the latter const is optional (on the *); but the
const on 'A' should be part of the type of this for a const method.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer