aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-objfile.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2019-07-29 11:24:04 +0200
committerTom de Vries <tdevries@suse.de>2019-07-29 11:24:04 +0200
commitb528dae0954436ab103fb8ab6fc1ca632b4a7c51 (patch)
tree139035c9e5022e2879ce3d01c94ee5adcb0a41ae /gdb/python/py-objfile.c
parentd17725d72f25812acc8bd16a368c0e889c4b4d1e (diff)
downloadbinutils-b528dae0954436ab103fb8ab6fc1ca632b4a7c51.zip
binutils-b528dae0954436ab103fb8ab6fc1ca632b4a7c51.tar.gz
binutils-b528dae0954436ab103fb8ab6fc1ca632b4a7c51.tar.bz2
[gdb/testsuite] Fix gdb.base/define.exp with check-read1
When running gdb.base/define.exp with check-read1, we get: ... show prompt^M Gdb's prompt is "(gdb) ".^M (gdb) PASS: gdb.base/define.exp: save gdb_prompt set prompt \(blah\) ^M (blah) PASS: gdb.base/define.exp: set gdb_prompt set prompt (gdb) PASS: gdb.base/define.exp: reset gdb_prompt ^M (gdb) FAIL: gdb.base/define.exp: define do-define ... The problem is that the "$gdb_prompt $" regexp here: ... gdb_test_multiple "set prompt $prior_prompt " "reset gdb_prompt" { -re "$gdb_prompt $" { pass "reset gdb_prompt" } } ... triggers for the echoing of the command "set prompt $prior_prompt " rather than for the prompt after the command has executed. Fix this by changing the regexp to "\r\n$gdb_prompt $". Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2019-07-29 Tom de Vries <tdevries@suse.de> * gdb.base/define.exp: Add "\r\n" to "reset gdb_prompt" regexp.
Diffstat (limited to 'gdb/python/py-objfile.c')
0 files changed, 0 insertions, 0 deletions