Re: GDB: Does "catch vfork" work?
Re: GDB: Does "catch vfork" work?
- Subject: Re: GDB: Does "catch vfork" work?
- From: Damien Bobillot <email@hidden>
- Date: Sun, 9 Oct 2005 01:17:17 +0200
Daniel Jalkut wrote : I'm sure I'm technically wrong in some ways, but I am going on what I've observed, and trying to make sense of it in terms of what I have read, for instance:
"When a child process is spawned by vfork, you cannot debug the child or parent until an exec call completes."
What I experience is that when I change the mode to "follow child," the behavior is no different. My breakpoint that should be triggered in the child process yields a Crash Reporter dialog (EXC_BREAKPOINT), while debugging carries on in the parent.
OK, my memories were not very good…
Perhaps try to replace the call to vfork by a call to fork. You may do this by executing "p (int)fork()" and then "set $pc=$pc+4" when you are on the bl call to vfork. Or manually move the pc to the begining of the fork function when your are at the beging of the vfork function.
-- Damien Bobillot
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden