This is the mail archive of the
mailing list for the GDB project.
Re: RFA: handle zero-length types in value_from_register
Andrew Cagney <firstname.lastname@example.org> writes:
> 2004-01-27 Jim Blandy <email@example.com>
> * findvar.c (value_from_register): If the type has no length,
> 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?