aboutsummaryrefslogtreecommitdiff
path: root/include/plugin-api.h
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-01-14 09:36:12 +0100
committerTom de Vries <tdevries@suse.de>2024-01-14 09:36:12 +0100
commitef3a9d685e677e18c36a30c3d3bd7a4206b30003 (patch)
tree0f10262f6303dedae99c0ba2509151617a56031e /include/plugin-api.h
parentf4be2092294eb23cbc52c8b891993351de7a134e (diff)
downloadgdb-ef3a9d685e677e18c36a30c3d3bd7a4206b30003.zip
gdb-ef3a9d685e677e18c36a30c3d3bd7a4206b30003.tar.gz
gdb-ef3a9d685e677e18c36a30c3d3bd7a4206b30003.tar.bz2
[gdb/testsuite] Fix gdb.cp/namespace.exp with read1
With check-read1 we run into: ... (gdb) break DNE>::DNE^M Function "DNE>::DNE" not defined.^M Make breakpoint pending on future shared library load? (y or [n]) y^M Breakpoint 9 (DNE>::DNE) pending.^M n^M (gdb) FAIL: gdb.cp/namespace.exp: br malformed '>' (got interactive prompt) n^M ... The question is supposed to be handled by the question and response arguments to this gdb_test call: ... gdb_test "break DNE>::DNE" "" "br malformed \'>\'" \ "Make breakpoint pending on future shared library load?.*" "y" ... but both this and the builtin handling in gdb_test_multiple triggers. The cause of this is that the question argument regexp is incomplete. Fix this by making sure that the entire question is matched in the regexp: ... set yn_re [string_to_regexp {(y or [n])}] ... "Make breakpoint pending on future shared library load\\? $yn_re " "Y" ... Tested on x86_64-linux.
Diffstat (limited to 'include/plugin-api.h')
0 files changed, 0 insertions, 0 deletions