+2016-08-10 Pedro Alves <palves@redhat.com>
+
+ PR gdb/19187
+ * record-full.c (record_full_remove_breakpoint): Don't remove the
+ breakpoint from the record_full_breakpoints VEC if we're detaching
+ the breakpoint from a fork child.
+
2016-08-10 Pedro Alves <palves@redhat.com>
PR gdb/19187
return ret;
}
- VEC_unordered_remove (record_full_breakpoint_p,
- record_full_breakpoints, ix);
+ if (reason == REMOVE_BREAKPOINT)
+ {
+ VEC_unordered_remove (record_full_breakpoint_p,
+ record_full_breakpoints, ix);
+ }
return 0;
}
}
+2016-08-10 Pedro Alves <palves@redhat.com>
+
+ PR gdb/19187
+ * gdb.reverse/waitpid-reverse.exp: Add comment and remove
+ setup_kfails.
+
2016-08-09 Pedro Alves <palves@redhat.com>
Simon Marchi <simon.marchi@ericsson.com>
#
# This test tests waitpid syscall for reverse execution.
#
+# Also serves as regression test for gdb/19187 (recording across a
+# fork).
if ![supports_reverse] {
return
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
"set breakpoint at marker2"
-setup_kfail "gdb/19187" *-*-*
gdb_continue_to_breakpoint "marker2" ".*$srcfile:.*"
gdb_test "break marker1" \
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
"set breakpoint at marker1"
-setup_kfail "gdb/19187" *-*-*
gdb_test "reverse-continue" ".*$srcfile:$decimal.*" "reverse to marker1"
# If the variable was recorded properly on syscall, the old contents (-1)