This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: fix PR c++/9197
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 3 Feb 2013 06:20:21 +0100
- Subject: Re: RFC: fix PR c++/9197
- References: <87d2xcvjny.fsf@fleche.redhat.com>
On Thu, 10 Jan 2013 21:59:29 +0100, Tom Tromey wrote:
> The PR doesn't really show any symptoms of the bug -- it is one of the
> "cleanup" bugs that remain open in bugzilla -- but PR 11463 shows the
> problem nicely: "print test1.gnu_obj_1" shows something, but "ptype" of
> the same expression yields an error.
This means lookup_struct_elt_type has bug(s). After your patch it is only
used in ada-lang.c and p-exp.c so a TODO item is to convert those calls also
to value_struct_elt. Therefore lookup_struct_elt_type could be at least
renamed to deprecated_lookup_struct_elt_type.
Thanks,
Jan