Patch: check for over- and under-flow in decode_locdesc

Jan Kratochvil jan.kratochvil@redhat.com
Fri Nov 19 16:37:00 GMT 2010


On Fri, 19 Nov 2010 17:32:38 +0100, Tom Tromey wrote:
> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> Jan> I will check in the testcase later and if OK.
> 
> I am curious to know how you made this.
> Did you just write it by hand?

Yes, copy+modify dw2-bad-parameter-type.{exp,S}.

Sometimes thinking after writing so many gdb.dwarf2/ testcases it could be more
time effective to write some script generator for it instead.

OTOH the gdb.dwarf2/ testcases are for various special cases of DWARF and even
about invalid DWARF. So which generated parts can be automated? Maybe not many.


Regards,
Jan



More information about the Gdb-patches mailing list