Re: Attaching to newly-exec'd process
Re: Attaching to newly-exec'd process
- Subject: Re: Attaching to newly-exec'd process
- From: Peter O'Gorman <email@hidden>
- Date: Fri, 18 Jan 2008 15:55:00 -0600
Scott Ribe wrote:
> Given a process-per-connection server, process A gets the socket, vforks,
> dups the socket, and execs a different executable image B--how to attach to
> B and debug??? Specifically, I want to step main from the start, not attach
> to the process after it's been running a while. Is there a way to do that,
> besides sleeping main in the first line?
>
http://sourceware.org/gdb/current/onlinedocs/gdb_5.html#SEC28
Have not tried, but I assume it works as described for Mac OS X too.
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
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