gdb/testsuite/gdb.trace: Deduplicate pcreg/spreg/fpreg.
authorMarcin Kościelnicki <koriakin@0x04.net>
Tue, 10 Nov 2015 08:52:29 +0000 (09:52 +0100)
committerMarcin Kościelnicki <koriakin@0x04.net>
Tue, 10 Nov 2015 19:05:49 +0000 (20:05 +0100)
commit6e7675a70f5a375159f94354fb6f38519303a73d
treedc2be4cddf5ff77dcf9817f29555a0de4ad58fd9
parent6b21c2bf57ecb18d7df949391ffc178f00b85630
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.
13 files changed:
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/backtrace.exp
gdb/testsuite/gdb.trace/change-loc.exp
gdb/testsuite/gdb.trace/collection.exp
gdb/testsuite/gdb.trace/entry-values.exp
gdb/testsuite/gdb.trace/mi-trace-frame-collected.exp
gdb/testsuite/gdb.trace/pending.exp
gdb/testsuite/gdb.trace/report.exp
gdb/testsuite/gdb.trace/trace-break.exp
gdb/testsuite/gdb.trace/trace-condition.exp
gdb/testsuite/gdb.trace/unavailable.exp
gdb/testsuite/gdb.trace/while-dyn.exp
gdb/testsuite/lib/trace-support.exp