diff options
author | Tom de Vries <tdevries@suse.de> | 2024-06-12 19:15:45 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-06-12 19:15:45 +0200 |
commit | 9a50e260ee1cf3b7e355371f0f4248407101795d (patch) | |
tree | 196dbeee7e8f55938023114d8f08165e16cd82c0 /gdb/python/py-arch.c | |
parent | 764af878259768bb70c65bdf3f3285c2d6409bbd (diff) | |
download | binutils-9a50e260ee1cf3b7e355371f0f4248407101795d.zip binutils-9a50e260ee1cf3b7e355371f0f4248407101795d.tar.gz binutils-9a50e260ee1cf3b7e355371f0f4248407101795d.tar.bz2 |
[gdb/testsuite] Fix error in gdb.server/server-kill-python.exp
With test-case gdb.server/server-kill-python.exp, I sometimes run into:
...
builtin_spawn gdb -nw -nx -q -iex set height 0 -iex set width 0 \
-data-directory data-directory^M
kill^M
(gdb) kill^M
file server-kill-python^M
The program is not being run.^M
(gdb) ERROR: Couldn't load server-kill-python into GDB.
...
The problem is that the spawn produces a prompt, but it's not explicitly
consumed.
This is a regression since commit 0f077fcae0f ("[gdb/testsuite] Simplify
gdb.server/server-kill-python.exp").
Fix this by consuming the initial prompt.
PR testsuite/31819
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31819
Fixes: 0f077fcae0f ("[gdb/testsuite] Simplify gdb.server/server-kill-python.exp"
Diffstat (limited to 'gdb/python/py-arch.c')
0 files changed, 0 insertions, 0 deletions