-# Copyright 1998-2020 Free Software Foundation, Inc.
+# Copyright 1998-2021 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
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"
}