Solved

Debug 'fork' with Xcode and continue in child

Posted on 2004-10-20
4
856 Views
Last Modified: 2013-12-26
I have a unix source which forks right at the start. Xcode continues in parent then... and therefore exits.
Can I somehow debug the client with a GUI?
0
Comment
Question by:Daij-Djan
4 Comments
 
LVL 5

Author Comment

by:Daij-Djan
ID: 12356994
Found it! sorry
If you want to follow the child process instead of the parent process, use the command set follow-fork-mode.


set follow-fork-mode mode
Set the debugger response to a program call of fork or vfork. A call to fork or vfork creates a new process. The mode can be:

parent
The original process is debugged after a fork. The child process runs unimpeded. This is the default.
child
The new process is debugged after a fork. The parent process runs unimpeded.
ask
The debugger will ask for one of the above choices.

show follow-fork-mode
Display the current debugger response to a fork or vfork call.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 12553289
Please post a message in the Community Support area and have this question PAQ'ed and your points refunded.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12808085
PAQed with points refunded (250)

modulo
Community Support Moderator
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
paragon account problem 9 96
viewing source code from eclipse 13 74
Doc'in system (example?) BA 7 78
unix example issues 18 49
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now