[DragonFlyBSD - Bug #1587] can't gdb across fork

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Thu Feb 20 07:33:13 PST 2014


Issue #1587 has been updated by tuxillo.

Description updated
Category set to Userland
Assignee changed from 0 to tuxillo
Target version set to 3.8.0

Grab.

----------------------------------------
Bug #1587: can't gdb across fork
http://bugs.dragonflybsd.org/issues/1587#change-11799

* Author: corecode
* Status: New
* Priority: Normal
* Assignee: tuxillo
* Category: Userland
* Target version: 3.8.0
----------------------------------------
When the debugged process performs a fork(), gdb/ptrace won't notice and 
will not be able to remove breakpoints in the new child.  When the child 
then hits a breakpoint, it will receive a SIGTRAP and dump core.

gdb needs to be aware of forks, so that it will be able to remove the 
breakpoints in the child.

Test:  gdb sh and break stalloc.



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list