This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] testsuite/gdb.dwarf2: Enable dw2-error.exp tests for arm targets
- From: Tom Tromey <tromey at redhat dot com>
- To: Omair Javaid <omair dot javaid at linaro dot org>
- Cc: gdb-patches at sourceware dot org, Patch Tracking <patches at linaro dot org>
- Date: Thu, 19 Sep 2013 12:37:39 -0600
- Subject: Re: [PATCH] testsuite/gdb.dwarf2: Enable dw2-error.exp tests for arm targets
- Authentication-results: sourceware.org; auth=none
- References: <CANW4E-2JhgU6rNJApL8g_yB1EWWMXKodsbbk9Pwt76e=SKGsMA at mail dot gmail dot com> <87li4y7f69 dot fsf at fleche dot redhat dot com> <CANW4E-18_+FikhAR0tfE7-1vNuMLCiQEybgsdJhZk-UHrW_-ng at mail dot gmail dot com>
>>>>> "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