diff options
author | Tom Tromey <tom@tromey.com> | 2022-12-13 15:00:07 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-01-13 13:18:54 -0700 |
commit | 793862d2f427bdc7b80da5bb917acccb06c4ba61 (patch) | |
tree | 615d1059ec9703698e76b4ca3127e21539130946 /gdb/testsuite/gdb.base/morestack.c | |
parent | 15bdcf4ca1514b89c242eccd3a74599bdd00e3e0 (diff) | |
download | gdb-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.base/morestack.c')
0 files changed, 0 insertions, 0 deletions