This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: MI: getting qualified type name
On Friday 14 April 2006 16:47, Daniel Jacobowitz wrote:
> namespace bar
> {
> struct whatever
> {
> int someval;
> };
> typedef whatever zot;
> };
>
> (gdb) interpreter-exec mi "-var-create - * b"
> ^done,name="var2",numchild="1",type="bar::whatever"
> (gdb)
> (gdb) interpreter-exec mi "-var-create - * c"
> ^done,name="var3",numchild="1",type="zot"
> (gdb)
>
> I don't know what compiler you're using, Vladimir, but in GCC 4.0.3
> this appears to be a compiler bug. The typedef gets emitted inside
> main, not inside the namespace. Same in 3.3. Slightly different,
> but similar problem in 4.1.
>
> This is now GCC PR 27160.
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27160
Ah! I'm using 3.3 so it's affected by this bug. Thanks for diagnosing, hope
it'll be fixed soon.
Thanks,
Volodya