This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] testsuite: fix is_amd64_regs_target
>>>>> "Markus" == Markus Metzger <markus.t.metzger@intel.com> writes:
Markus> testsuite/
Markus> * lib/gdb.exp (is_amd64_regs_target): Change assembly to C inline
Markus> assembly.
Markus> - set list {}
Markus> - foreach reg \
Markus> - {rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15} {
Markus> - lappend list "\tincq %$reg"
Markus> - }
Markus> + return [gdb_can_simple_compile is_amd64_regs_target {
Markus> + int main (void) {
Markus> + asm ("incq %rax");
Markus> + asm ("incq %r15");
I suppose reducing the number of registers tested doesn't materially
affect the test.
Assuming that's the case, this is ok. Thank you.
Tom