inf_ttrace_follow_fork: detach_breakpoints called twice for child.
authorJoel Brobecker <brobecker@gnat.com>
Thu, 16 Aug 2012 23:54:37 +0000 (23:54 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 16 Aug 2012 23:54:37 +0000 (23:54 +0000)
commit2dcc608618e09c68ed83560f2471a8b2ef52db79
tree929740c7605c7fc3ab36312be401168665533244
parent58f594cdb752acbd9e5b910cd39f513bcd6ba800
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.
gdb/ChangeLog
gdb/inf-ttrace.c