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] testsuite/gdb.dwarf2: Enable dw2-error.exp tests for arm targets


>>>>> "Omair" == Omair Javaid <omair.javaid@linaro.org> writes:

Omair> Can you kindly direct me to DWARF assembler and how can I use to write
Omair> the above testcase.

The DWARF assembler is in gdb/testsuite/lib/dwarf.exp.
It has a large comment that explains most of how to use it;
plus a few specific comments next to some exported procs.
Search gdb.dwarf2 for Dwarf::assemble for some examples.

In this case I think the test case is just testing that gdb reacts
properly when the DWARF has an invalid version.  This is simple to do
with the assembler; just pass something unusual to the "cu" proc.

Tom


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