This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
RE: exp/2070: gdb doesn't resolve namespace when print expression
- From: "Yan, Michael" <myan at microstrategy dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 19 Jan 2006 17:28:01 -0000
- Subject: RE: exp/2070: gdb doesn't resolve namespace when print expression
- Reply-to: "Yan, Michael" <myan at microstrategy dot com>
The following reply was made to PR exp/2070; it has been noted by GNATS.
From: "Yan, Michael" <myan@microstrategy.com>
To: "Daniel Jacobowitz" <drow@false.org>
Cc: <gdb-gnats@sources.redhat.com>,
<myan@gmail.com>
Subject: RE: exp/2070: gdb doesn't resolve namespace when print expression
Date: Thu, 19 Jan 2006 12:25:34 -0500
g++ (GCC) 3.2.3
thanks,
Michael
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@false.org]
Sent: Thursday, January 19, 2006 12:11 PM
To: Yan, Michael
Cc: gdb-gnats@sources.redhat.com; myan@gmail.com
Subject: Re: exp/2070: gdb doesn't resolve namespace when print
expression
On Thu, Jan 19, 2006 at 04:58:51PM -0000, myan@microstrategy.com wrote:
> Linux 2.4.21-20.Elsmp x86_64
> >Description:
> gdb doesn't resolve class name if it is in user namescape.
>=20
> (gdb) p *(NBase::Frog *) 0x501010
> No symbol "NBase" in current context.
> (gdb) p *(Frog *) 0x501010
> A syntax error in expression, near `) 0x501010'.
>=20
> It appears, gdb doesn't understand either (Frog *) or (NBase::Frog *) =
correctly.
What version of G++ are you using?
--=20
Daniel Jacobowitz
CodeSourcery