aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.server/solib-list.exp3
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index adb5349..0c2f47b 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2020-06-29 Tom de Vries <tdevries@suse.de>
+
+ PR gdb/25475
+ * gdb.server/solib-list.exp: Verify that the symbol reload
+ confirmation question is asked.
+
2020-06-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* lib/gdb.exp (gdb_test_multiline): New, moved from gdb-guile.exp,
diff --git a/gdb/testsuite/gdb.server/solib-list.exp b/gdb/testsuite/gdb.server/solib-list.exp
index 6f077c6..a326f94 100644
--- a/gdb/testsuite/gdb.server/solib-list.exp
+++ b/gdb/testsuite/gdb.server/solib-list.exp
@@ -93,12 +93,14 @@ foreach nonstop { 0 1 } { with_test_prefix "non-stop $nonstop" {
set test "target $gdbserver_protocol"
set ok 0
+ set new_symbol_table 0
gdb_test_multiple "target $gdbserver_protocol $gdbserver_gdbport" $test {
-re "Remote debugging using" {
set ok 1
exp_continue
}
-re {.*Load new symbol table from ".*"\? \(y or n\) } {
+ set new_symbol_table 1
send_gdb "y\n" answer
exp_continue
}
@@ -111,6 +113,7 @@ foreach nonstop { 0 1 } { with_test_prefix "non-stop $nonstop" {
}
}
}
+ gdb_assert {$new_symbol_table == 1}
gdb_test "continue" "Program received signal SIGUSR1, .*"
gdb_test "sharedlibrary" ".*"