+2020-10-28 Tom de Vries <tdevries@suse.de>
+
+ * gdb.ada/exec_changed.exp: Add KFAILs for -readnow.
+ * gdb.base/reread.exp: Same.
+
2020-10-28 Tom de Vries <tdevries@suse.de>
* lib/gdb.exp (readnow): Handle arg.
gdb_test "shell mv ${binfile} ${common_binfile}" ".*" ""
gdb_load ${common_binfile}
+set readnow_p [readnow ${common_binfile}]
+
# Start the program, we should land in the program main procedure
if { [gdb_start_cmd] < 0 } {
untested start
if { [gdb_start_cmd] < 0 } {
fail "start second"
} else {
+ if { $readnow_p } {
+ setup_kfail "gdb/26800" *-*-*
+ }
gdb_test "" \
"second \\(\\) at .*second.adb.*" \
"start second"
gdb_test_no_output "set \$check_gdb_running = 0" "check gdb running"
fail "start just first"
} else {
+ if { $readnow_p } {
+ setup_kfail "gdb/26800" *-*-*
+ }
gdb_test "" \
"first \\(\\) at .*first.adb.*" \
"start just first"
gdb_rename_execfile ${binfile1} ${binfile}
gdb_load ${binfile}
+ set readnow_p [readnow ${binfile}]
+
# Set a breakpoint at foo
gdb_test "break foo" \
unsupported $test
} else {
gdb_run_cmd
+ if { $readnow_p } {
+ setup_kfail "gdb/26800" *-*-*
+ }
gdb_test "" "Breakpoint.* foo .* at .*:9.*" $test
}
gdb_rename_execfile ${binfile} ${binfile1}
gdb_rename_execfile ${binfile2} ${binfile}
gdb_run_cmd
+ if { $readnow_p } {
+ setup_kfail "gdb/26800" *-*-*
+ }
gdb_test "" "Breakpoint.* foo .* at .*:9.*" \
"second pass: run to foo() second time"
}