Big-endian targets: Fix implptrpiece.exp
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 14 Feb 2017 17:17:19 +0000 (18:17 +0100)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 14 Feb 2017 17:17:19 +0000 (18:17 +0100)
commit075beec08ae857d918890c30d290863abb3f7f57
treef9988140ee06ccbd45d91e7829aac45589cebf4a
parentbc303e5d6c2dd33086478f80fd1d3096d4e1bc01
Big-endian targets: Fix implptrpiece.exp

The test case implptrpiece.exp accesses the second byte of the short
integer number 1 and expects it to be zero.  This is valid for
little-endian targets, but fails on big-endian targets.

This is fixed by distinguishing the expected value by endianness.

gdb/testsuite/ChangeLog:

* gdb.dwarf2/implptrpiece.exp: Fix check for big-endian targets.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/implptrpiece.exp
This page took 0.025716 seconds and 4 git commands to generate.