This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 4/4] New gdb.reverse test case for aarch64 instructions
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Date: Thu, 21 May 2015 21:22:21 +0100
- Subject: Re: [PATCH 4/4] New gdb.reverse test case for aarch64 instructions
- Authentication-results: sourceware.org; auth=none
- References: <1432041752-4638-1-git-send-email-yao dot qi at linaro dot org> <1432041752-4638-5-git-send-email-yao dot qi at linaro dot org>
On 05/19/2015 02:22 PM, Yao Qi wrote:
> This patch adds a test case to test the process record for some of
> aarch64 instructions.
>
> In each function, GDB turns on process record, and single step until
> program goes to the end of the function. Then, single step backward.
> In each of forward single step and backward single step, the contents
> of registers are saved, and test compares them. If there is any
> differences, a FAIL is emitted.
>
> The test is flexible, and we can test other instructions easily in the
> future.
Nice, this looks like something we could use in other archs too. Did you
consider putting that procedure in shared code?
Thanks,
Pedro Alves