• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: GDB: Does "catch vfork" work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

From http://ftp.gnu.org/gnu/Manuals/gdb-5.1.1/html_node/gdb_25.html:
       "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

  • Follow-Ups:
    • Re: GDB: Does "catch vfork" work?
      • From: Daniel Jalkut <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>)

  • Prev by Date: Re: Cross-SDK CGImageCreate
  • Next by Date: Re: GDB: Does "catch vfork" work?
  • Previous by thread: Re: GDB: Does "catch vfork" work?
  • Next by thread: Re: GDB: Does "catch vfork" work?
  • Index(es):
    • Date
    • Thread