This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog inf-ttrace.c
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 16 Aug 2012 23:54:37 -0000
- Subject: src/gdb ChangeLog inf-ttrace.c
CVSROOT: /cvs/src
Module name: src
Changes by: brobecke@sourceware.org 2012-08-16 23:54:37
Modified files:
gdb : ChangeLog inf-ttrace.c
Log message:
inf_ttrace_follow_fork: detach_breakpoints called twice for child.
When debugging a program that forks with follow-fork set to follow
the parent, we end up calling detach_breakpoints for the child twice.
On ia64-hpux, this leads to a warning when trying to remove the
breakpoints the second time around, because the ia64 code detects
that the address does not point to a breakpoint instruction.
gdb/ChangeLog:
* inf-ttrace.c (inf_ttrace_follow_fork): When following the
parent, only call detach_breakpoints if tts.tts_event ==
TTEVT_VFORK.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14595&r2=1.14596
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/inf-ttrace.c.diff?cvsroot=src&r1=1.63&r2=1.64