Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDB: Does "catch vfork" work?




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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >GDB: Does "catch vfork" work? (From: Daniel Jalkut <email@hidden>)
 >Re: GDB: Does "catch vfork" work? (From: Damien Bobillot <email@hidden>)
 >Re: GDB: Does "catch vfork" work? (From: Daniel Jalkut <email@hidden>)
 >Re: GDB: Does "catch vfork" work? (From: Damien Bobillot <email@hidden>)
 >Re: GDB: Does "catch vfork" work? (From: Daniel Jalkut <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.