gdb/gdb-stale-bpstat-3of3.patch

12 lines
660 B
Diff

--- ./gdb/testsuite/gdb.cp/infcall-dlopen.exp.orig 2011-01-13 21:16:47.000000000 +0100
+++ ./gdb/testsuite/gdb.cp/infcall-dlopen.exp 2011-01-13 21:17:19.000000000 +0100
@@ -40,6 +40,8 @@ if { ![runto_main] } {
for {set i 0} {$i < 10} {incr i} {
gdb_test "p openlib (\"${libfile}\")" " = 1" "test $i"
+ # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=660197
+ gdb_test "info program" "\r\nProgram stopped at .*\r\nIt stopped at breakpoint 1\\." "test $i info program"
# Try to exploit the GDB trashed memory.
gdb_test "b openlib" {Breakpoint [0-9]+ at .*} "test $i stub 1"
gdb_test_no_output {delete $bpnum} "test $i stub 2"