This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]