This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix crash of convenience vars with typedefs.
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: tromey at redhat dot com
- Cc: dje at google dot com (Doug Evans), gdb-patches at sourceware dot org
- Date: Mon, 17 Aug 2009 20:22:14 +0200 (CEST)
- Subject: Re: [RFA] Fix crash of convenience vars with typedefs.
Tom Tromey wrote:
> >>>>> "Ulrich" == Ulrich Weigand <uweigand@de.ibm.com> writes:
>
> Ulrich> Shouldn't the result of value_of_internalvar still have the original
> Ulrich> typedef name instead of the type it resolves to?
>
> This would be nice -- the wide character code relies on type names now,
> for instance -- but most of gdb already eagerly strips typedefs. E.g.,
> look at value_cast, where the resulting value is not actually of the
> type you pass in, but rather the type after stripping typedefs.
Indeed. It seems to me that those instances ought to fixed, however,
and we should avoid introducing new instances where possible ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com