This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix register selection in var-access.exp
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 14 Jun 2017 09:19:42 -0400
- Subject: [binutils-gdb] Fix register selection in var-access.exp
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 5524b5250e319f41933605420e9526fb74cfb9ae ***
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Branch: master
Commit: 5524b5250e319f41933605420e9526fb74cfb9ae
Fix register selection in var-access.exp
The new test var-access.exp causes FAILs on i686. This is because the
test chooses the wrong name for DWARF register number 1: It uses
"edx" (which corresponds to DWARF register number 2), but should have used
"ecx" instead.
Also, the current logic in var-access.exp does not correctly distinguish
between a 64-bit and a 32-bit program on an x86-64 target. It uses the
64-bit register names for both.
These problems are fixed. In order to address the latter, the convenience
macros is_*_target are exploited where appropriate.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/var-access.exp: Use register name ecx instead of edx
on 32-bit x86 targets. Exploit is_*_target macros where
appropriate.