diff options
author | Marcin KoĆcielnicki <koriakin@0x04.net> | 2015-11-10 09:52:29 +0100 |
---|---|---|
committer | Marcin KoĆcielnicki <koriakin@0x04.net> | 2015-11-10 20:05:49 +0100 |
commit | 6e7675a70f5a375159f94354fb6f38519303a73d (patch) | |
tree | dc2be4cddf5ff77dcf9817f29555a0de4ad58fd9 /gdb/testsuite/gdb.trace/collection.exp | |
parent | 6b21c2bf57ecb18d7df949391ffc178f00b85630 (diff) | |
download | binutils-gdb-6e7675a70f5a375159f94354fb6f38519303a73d.tar.gz |
gdb/testsuite/gdb.trace: Deduplicate pcreg/spreg/fpreg.
These variables were used in many gdb.trace tests. Keep them in one place,
to reduce work needed for new targets.
gdb/testsuite/ChangeLog:
* gdb.trace/backtrace.exp: Use global fpreg/spreg definition, add $
in front.
* gdb.trace/change-loc.exp: Use global pcreg definition.
* gdb.trace/collection.exp: Use global pcreg/fpreg/spreg definition.
* gdb.trace/entry-values.exp: Use global spreg definition, add $
in front.
* gdb.trace/mi-trace-frame-collected.exp: Use global pcreg definition.
* gdb.trace/pending.exp: Likewise.
* gdb.trace/report.exp: Use global pcreg/fpreg/spreg definition.
* gdb.trace/trace-break.exp: Likewise.
* gdb.trace/trace-condition.exp: Use global pcreg definition, add $
in front.
* gdb.trace/unavailable.exp: Use global pcreg/fpreg/spreg definition.
* gdb.trace/while-dyn.exp: Use global fpreg definition, add $
in front.
* lib/trace-support.exp: Define fpreg, spreg, pcreg variables.
Diffstat (limited to 'gdb/testsuite/gdb.trace/collection.exp')
-rw-r--r-- | gdb/testsuite/gdb.trace/collection.exp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gdb/testsuite/gdb.trace/collection.exp b/gdb/testsuite/gdb.trace/collection.exp index 69ad6ee66d4..987fb6f900d 100644 --- a/gdb/testsuite/gdb.trace/collection.exp +++ b/gdb/testsuite/gdb.trace/collection.exp @@ -36,24 +36,6 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug nowarnings}]} { set ws "\[\r\n\t \]+" set cr "\[\r\n\]+" -if [is_amd64_regs_target] { - set fpreg "rbp" - set spreg "rsp" - set pcreg "rip" -} elseif [is_x86_like_target] { - set fpreg "ebp" - set spreg "esp" - set pcreg "eip" -} elseif [is_aarch64_target] { - set fpreg "x29" - set spreg "sp" - set pcreg "pc" -} else { - set fpreg "fp" - set spreg "sp" - set pcreg "pc" -} - # # Utility procs # |