diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2017-06-13 15:20:26 +0200 |
---|---|---|
committer | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2017-06-13 15:20:26 +0200 |
commit | 805acca042afed8e8431c92ab031167b03475676 (patch) | |
tree | 0339b2c96446dc5ae36642e7852048a9500358ce /gdb/testsuite/gdb.trace | |
parent | ddd7882a582637d86a321c1ab835f6cdbeb6d017 (diff) | |
download | gdb-805acca042afed8e8431c92ab031167b03475676.zip gdb-805acca042afed8e8431c92ab031167b03475676.tar.gz gdb-805acca042afed8e8431c92ab031167b03475676.tar.bz2 |
gdb/testsuite: Add "get_endianness" convenience proc
The test suite contains multiple instances of determining the target's
endianness with GDB's "show endian" command. This patch replaces these by
an invocation of a new convenience proc 'get_endianness'.
gdb/testsuite/ChangeLog:
* lib/gdb.exp (get_endianness): New proc.
* gdb.arch/aarch64-fp.exp: Use it.
* gdb.arch/altivec-regs.exp: Likewise.
* gdb.arch/e500-regs.exp: Likewise.
* gdb.arch/vsx-regs.exp: Likewise.
* gdb.base/dump.exp: Likewise.
* gdb.base/funcargs.exp: Likewise.
* gdb.base/gnu_vector.exp: Likewise.
* gdb.dwarf2/formdata16.exp: Likewise.
* gdb.dwarf2/implptrpiece.exp: Likewise.
* gdb.dwarf2/nonvar-access.exp: Likewise.
* gdb.python/py-inferior.exp: Likewise.
* gdb.trace/unavailable-dwarf-piece.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.trace')
-rw-r--r-- | gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp b/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp index 3b14bea..d8a75d4 100644 --- a/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp +++ b/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp @@ -325,13 +325,7 @@ with_test_prefix "tracing bar" { gdb_test "continue" "Continuing\\.\[ \r\n\]+Breakpoint.*" gdb_test_no_output "tstop" - set endian "" - gdb_test_multiple "show endian" "show endian" { - -re ".* (big|little) endian.*$gdb_prompt $" { - set endian $expect_out(1,string) - pass "endianness: $endian" - } - } + set endian [get_endianness] gdb_test "tfind 0" "Found trace frame 0, tracepoint .*" if { $endian == "little" } { |