• 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: re need way to debug tool called by popen--at startup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Jack Repenning <email@hidden>
  • Date: Thu, 30 Apr 2009 11:22:28 -0700

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


  • Follow-Ups:
    • Re: re need way to debug tool called by popen--at startup
      • From: Dennis Christopher <email@hidden>
References: 
 >re need way to debug tool called by popen--at startup (From: Dennis Christopher <email@hidden>)

  • Prev by Date: re need way to debug tool called by popen--at startup
  • Next by Date: AudioQueue Error, Result Code -66626
  • Previous by thread: re need way to debug tool called by popen--at startup
  • Next by thread: Re: re need way to debug tool called by popen--at startup
  • Index(es):
    • Date
    • Thread