exp/2070: gdb doesn't resolve namespace when print expression

Daniel Jacobowitz drow@false.org
Thu Jan 19 17:18:00 GMT 2006


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



More information about the Gdb-prs mailing list