aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.reverse
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-12-13 15:00:07 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:54 -0700
commit793862d2f427bdc7b80da5bb917acccb06c4ba61 (patch)
tree615d1059ec9703698e76b4ca3127e21539130946 /gdb/testsuite/gdb.reverse
parent15bdcf4ca1514b89c242eccd3a74599bdd00e3e0 (diff)
downloadgdb-793862d2f427bdc7b80da5bb917acccb06c4ba61.zip
gdb-793862d2f427bdc7b80da5bb917acccb06c4ba61.tar.gz
gdb-793862d2f427bdc7b80da5bb917acccb06c4ba61.tar.bz2
Change 'require' to accept a list of predicates
This changes 'require' to accept a list of simple predicates. For now, each predicate is just the name of a proc, optionally prefixed with "!" to indicate that the result should be inverted. It's possible to make this fancier, but so far I haven't done so. One idea I had is to allow a predicate to have associated text to display on failure. Another is to convert the predicates that need a running gdb (e.g., skip_python_tests) to start their own gdb, and then 'require' could enforce the rule that gdb not be running when it is called.
Diffstat (limited to 'gdb/testsuite/gdb.reverse')
-rw-r--r--gdb/testsuite/gdb.reverse/insn-reverse.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.reverse/insn-reverse.exp b/gdb/testsuite/gdb.reverse/insn-reverse.exp
index 9cefea9..a732206 100644
--- a/gdb/testsuite/gdb.reverse/insn-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/insn-reverse.exp
@@ -18,7 +18,7 @@ if ![supports_reverse] {
}
# Check if start command is supported.
-require use_gdb_stub 0
+require !use_gdb_stub
standard_testfile