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: Patch: check for over- and under-flow in decode_locdesc


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


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