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: Daniel Jacobowitz <drow at false dot org>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 19 Jan 2006 17:18:01 -0000
- Subject: Re: exp/2070: gdb doesn't resolve namespace when print expression
- Reply-to: Daniel Jacobowitz <drow at false dot org>
The following reply was made to PR exp/2070; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: myan@microstrategy.com
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:11:19 -0500
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.
>
> (gdb) p *(NBase::Frog *) 0x501010
> No symbol "NBase" in current context.
> (gdb) p *(Frog *) 0x501010
> A syntax error in expression, near `) 0x501010'.
>
> It appears, gdb doesn't understand either (Frog *) or (NBase::Frog *) correctly.
What version of G++ are you using?
--
Daniel Jacobowitz
CodeSourcery