binutils-gdb/gdb/testsuite/gdb.reverse
Pedro Alves 01d3dedf60 Fix PR gdb/19187 (process record over a fork causes internal error)
Right after a fork is detected, we detach breakpoints from the child
(detach_breakpoints), which calls into target_remove_breakpoint with
inferior_ptid pointing at the child process, but leaves the breakpoint
marked inserted (in the parent).

The problem is that record-full.c always deletes all knowledge of the
breakpoint.  Then when we later really delete the breakpoint from the
parent, we fail the assertion, since the breakpoint is unexpectedly
not found in the record-full.c breakpoint table.

The fix is simply to not forget about the breakpoint if we're
detaching it from a fork child.

gdb/ChangeLog:
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.

gdb/testsuite/ChangeLog:
2016-08-10  Pedro Alves  <palves@redhat.com>

	PR gdb/19187
	* gdb.reverse/waitpid-reverse.exp: Add comment and remove
	setup_kfails.
2016-08-10 23:03:29 +01:00
..
amd64-tailcall-reverse.S GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
amd64-tailcall-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
amd64-tailcall-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
break-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
break-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
break-reverse.exp Add quotation mark in test message 2016-03-24 09:53:50 +00:00
consecutive-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
consecutive-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
consecutive-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
finish-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
finish-reverse-bkpt.exp Fix gdb.reverse/finish-reverse-bkpt.exp 2016-04-07 17:06:14 +01:00
finish-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
finish-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fstatat-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fstatat-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
getresuid-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
getresuid-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i386-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i386-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i386-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i386-sse-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i386-sse-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i387-env-reverse.c
i387-env-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i387-stack-reverse.c
i387-stack-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
insn-reverse.c Fix various bugs in arm_record_exreg_ld_st_insn 2016-02-26 15:00:36 +00:00
insn-reverse.exp Rename gdb.reverse/aarch64.{exp,c} to gdb.reverse/insn-reverse.{exp,c} 2016-02-26 15:00:36 +00:00
machinestate-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
machinestate.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
machinestate.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ms1.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
next-reverse-bkpt-over-sr.exp Fix gdb.reverse/next-reverse-bkpt-over-sr.exp 2016-04-07 16:57:09 +01:00
pipe-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
pipe-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
readv-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
readv-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
recvmsg-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
recvmsg-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
rerun-prec.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
rerun-prec.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-mvcle.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-mvcle.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
shr.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
shr1.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
shr2.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
sigall-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
sigall-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
sigall-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
singlejmp-reverse-nodebug.S GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
singlejmp-reverse-nodebug.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
singlejmp-reverse.S GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
singlejmp-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
singlejmp-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
solib-precsave.exp Rename gdb_load_shlibs to gdb_load_shlib 2016-04-27 18:09:14 -04:00
solib-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
solib-reverse.exp Rename gdb_load_shlibs to gdb_load_shlib 2016-04-27 18:09:14 -04:00
step-precsave.exp Tweak gdb.reverse/step-precsave.exp and gdb.reverse/step-reverse.exp 2016-04-22 12:14:40 +01:00
step-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
step-reverse.exp Tweak gdb.reverse/step-precsave.exp and gdb.reverse/step-reverse.exp 2016-04-22 12:14:40 +01:00
time-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
time-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
until-precsave.exp Simplify gdb.reverse/until-reverse.c 2016-03-30 16:36:51 +01:00
until-reverse.c Simplify gdb.reverse/until-reverse.c 2016-03-30 16:36:51 +01:00
until-reverse.exp Simplify gdb.reverse/until-reverse.c 2016-03-30 16:36:51 +01:00
ur1.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
waitpid-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
waitpid-reverse.exp Fix PR gdb/19187 (process record over a fork causes internal error) 2016-08-10 23:03:29 +01:00
watch-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watch-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watch-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00