Re: re need way to debug tool called by popen--at startup
Re: re need way to debug tool called by popen--at startup
- Subject: Re: re need way to debug tool called by popen--at startup
- From: Dennis Christopher <email@hidden>
- Date: Thu, 30 Apr 2009 14:34:48 -0400
Jack,
Thanks....and thanks to all who replied to my original question..I
will investigate other methods later. 20 seconds does it quite nicely!
Dennis
On Apr 30, 2009, at 2:22 PM, Jack Repenning wrote:
On Apr 30, 2009, at 11:07 AM, Dennis Christopher wrote:
I tried sleep(10) in the called tool near the start, placing a
breakpoint after it. what happens is that I do Attach to
process..and nothing happens until finally gdb opens and hits one of
the breakpoints further on in the program..I noticed that sometimes
gdb seems to break in assembly underneath the actual break point in
the source. Not sure if this last fact is relevant.
YMMV, but ten seconds seems pretty optimistic for how long it might
take gdb to actually attach to my program. Given your report, I'd try
20 or more.
When gdb attaches, it stops the program at whichever exact instruction
it happens to be executing at the very femtosecond that gdb actually
attaches. Your report that it seems to be near, yet not identically,
where you expect might mean that the program wasn't sleeping but was
actually running at that instant, having finished up its ten-second
sleep and rolled on.
-==-
Jack Repenning
email@hidden
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"
_______________________________________________
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