aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-01-17 11:33:39 -0500
committerSimon Marchi <simon.marchi@efficios.com>2023-02-10 13:55:45 -0500
commit71bb560755cad815f5159170822cb66df71f916f (patch)
tree716e30b1982fd7774b8c0fd4b69465fb90b44801 /gdb/python
parent25eb2931f6f19d5ef48d240774bab488f6d52bf1 (diff)
downloadgdb-71bb560755cad815f5159170822cb66df71f916f.zip
gdb-71bb560755cad815f5159170822cb66df71f916f.tar.gz
gdb-71bb560755cad815f5159170822cb66df71f916f.tar.bz2
gdb/testsuite: fix gdb.gdb/selftest.exp for native-extended-gdbserver
Following commit 4e2a80ba606 ("gdb/testsuite: expect SIGSEGV from top GDB spawn id"), the next failure I get in gdb.gdb/selftest.exp, using the native-extended-gdbserver, is: (gdb) PASS: gdb.gdb/selftest.exp: send ^C to child process signal SIGINT Continuing with signal SIGINT. FAIL: gdb.gdb/selftest.exp: send SIGINT signal to child process (timeout) The problem is that in this gdb_test_multiple: set description "send SIGINT signal to child process" gdb_test_multiple "signal SIGINT" "$description" { -re "^signal SIGINT\r\nContinuing with signal SIGINT.\r\nQuit\r\n.* $" { pass "$description" } } The "Continuing with signal SIGINT" portion is printed by the top GDB, while the Quit portion is printed by the bottom GDB. As the gdb_test_multiple is written, it expects both the the top GDB's spawn id. Fix this by splitting the gdb_test_multiple in two. The first one expects the "Continuing with signal SIGINT" from the top GDB. The second one expect "Quit" and the "(xgdb)" prompt from $inferior_spawn_id. When debugging natively, this spawn id will be the same as the top GDB's spawn id, but it's different when debugging with GDBserver. Change-Id: I689bd369a041b48f4dc9858d38bf977d09600da2
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions