This is the mail archive of the gdb-patches@sources.redhat.com 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: handle zero-length types in value_from_register


Andrew Cagney <cagney@gnu.org> writes:


> 2004-01-27  Jim Blandy  <jimb@redhat.com>
> 	* findvar.c (value_from_register): If the type has no length,
> just
> 	return an acceptable value --- don't report an internal error.
>

This looks to need a test case.


I tried to put one together, but the bug only occurs when the
zero-length value is allocated to a register.  I couldn't find any way
to make that happen at all.  So the only known instance of this bug
depends on bad debug info.

The commentary should really reflect this important detail (also mention the compiler that's broken for instance). Should GDB also complain about the bogus info?


Andrew



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