• 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: Attaching to newly-exec'd process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Attaching to newly-exec'd process
      • From: Jim Ingham <email@hidden>
References: 
 >Attaching to newly-exec'd process (From: Scott Ribe <email@hidden>)

  • Prev by Date: Attaching to newly-exec'd process
  • Next by Date: Re: Attaching to newly-exec'd process
  • Previous by thread: Attaching to newly-exec'd process
  • Next by thread: Re: Attaching to newly-exec'd process
  • Index(es):
    • Date
    • Thread