aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.server/server-kill.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.server/server-kill.exp b/gdb/testsuite/gdb.server/server-kill.exp
index 0e9df6e..4b40913 100644
--- a/gdb/testsuite/gdb.server/server-kill.exp
+++ b/gdb/testsuite/gdb.server/server-kill.exp
@@ -137,6 +137,12 @@ proc_with_prefix test_stepi {} {
return
}
+ # Ensure GDB has computed the frame-id for the current frame
+ # before we kill the gdbserver. With the frame-id cached when we
+ # stepi below the first packets we try to send to gdbserver will
+ # be from within the breakpoint insertion process.
+ gdb_test "info frame" "Stack level 0, .*"
+
kill_server
gdb_test "stepi" "(Target disconnected|Remote connection closed|Remote communication error).*"