gdb.trace: Fix unavailable-dwarf-piece.exp on big endian targets
authorMarcin Kościelnicki <koriakin@0x04.net>
Sat, 23 Jan 2016 12:17:34 +0000 (13:17 +0100)
committerMarcin Kościelnicki <koriakin@0x04.net>
Sat, 23 Jan 2016 13:54:59 +0000 (14:54 +0100)
commitdc29a1ce6a25233e608f90511e67af3c18e19a98
tree8a5dd6e5c8d0597241184e781301eb14d6492a31
parentcc5fd9abe4980e48e2cc27b0225f3c6ba7c0756b
gdb.trace: Fix unavailable-dwarf-piece.exp on big endian targets

The test constructs fake DWARF info for a C structure involving bitfields.
DWARF bitfields are always counted from LSB, while the order in which
bitfields are allocated in a C struct depends on the target endianness -
thus the generated DWARF marks different bitfields as unavailable when
target is big endian.  Accordingly, we need different expected outputs.

Tested on s390 and s390x, no regression on x86_64.

gdb/testsuite/ChangeLog:

* gdb.trace/unavailable-dwarf-piece.exp: Fix bitfield handling on big
endian targets.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp
This page took 0.02771 seconds and 4 git commands to generate.