+2021-04-21 Carl Love <cel@us.ibm.com>
+
+ * gdb.base/valgrind-bt.exp: Add gdb_test "break main".
+ Update expected string for gdb_test "bt".
+
+ * lib/valgrind.exp: Add set remotetimeout 3.
+ Increase vgdb wait from 1 to 2.
+ Add max-invoke-ms option to vgdb command line.
+
2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* gdb.mi/mi-break.exp: Extend with checks for invalid breakpoint
set double_free [gdb_get_line_number "double-free"]
+gdb_breakpoint "main"
+
set test "continue"
gdb_test_multiple "continue" $test {
-re "Invalid free\\(\\).*: main \\(${srcfile}:$double_free\\)\r\n.*$gdb_prompt $" {
gdb_test_no_output "set height 0"
gdb_test_no_output "set width 0"
-gdb_test "bt" "in main \\(.*\\) at .*${srcfile}:$double_free"
+gdb_test "bt" "#\[0-9 ]+main \\(.*\\) at .*${srcfile}.*"
# Explicitly kill the program so it doesn't dump core when we quit->detach.
gdb_test "kill" "" "kill program" "Kill the program being debugged.*y or n. $" "y"
clean_restart $testfile
+ set vgdbcmd "set remotetimeout 3"
+
# Make sure we're disconnected, in case we're testing with the
# native-extended-gdbserver board, where gdb_start/gdb_load spawn
# gdbserver and connect to it.
gdb_test "disconnect" ".*"
- set vgdbcmd "target remote | vgdb --wait=1 --pid=$vgdbpid"
+ set vgdbcmd "target remote | vgdb --wait=2 --max-invoke-ms=2500 --pid=$vgdbpid"
+
if { $active_at_startup } {
gdb_test "$vgdbcmd" " in \\.?_start .*" "target remote for vgdb"
} else {