diff options
author | Tom de Vries <tdevries@suse.de> | 2023-04-25 08:33:56 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-04-25 08:33:56 +0200 |
commit | c2feffd819867b2d21c5d7e6b3b40377ef692415 (patch) | |
tree | dcd792db56881c2ebb4ff6dd8b36ecdf3612ee0a /gdb/gmp-utils.h | |
parent | 0d00a5f9d429c7cbae87b9d1057fb4f9e4ae18c2 (diff) | |
download | gdb-c2feffd819867b2d21c5d7e6b3b40377ef692415.zip gdb-c2feffd819867b2d21c5d7e6b3b40377ef692415.tar.gz gdb-c2feffd819867b2d21c5d7e6b3b40377ef692415.tar.bz2 |
[gdb/testsuite] Add debug prints in Term::wait_for
The semantics of wait_for are non-trivial, and a bit hard to understand
sometimes.
Add some debug prints in wait_for that make it clear:
- what regexps we're trying to match,
- what strings we compare to the regexps, and
- whether there's a match or mismatch.
I've added this ad-hoc a couple of times, and it seems that it's worth having
readily available.
The debug prints are enabled by adding DEBUG_TUI_MATCHING=1 to the
RUNTESTFLAGS:
...
$ make check RUNTESTFLAGS="gdb.tui/empty.exp DEBUG_TUI_MATCHING=1"
...
Tested on x86_64-linux.
Diffstat (limited to 'gdb/gmp-utils.h')
0 files changed, 0 insertions, 0 deletions