• 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: GDB Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDB Problem


  • Subject: Re: GDB Problem
  • From: Dylan Markow <email@hidden>
  • Date: Fri, 28 Mar 2008 19:36:28 -0700

On Mar 28, 2008, at 5:46 PM, Dylan Markow wrote:
On Mar 28, 2008, at 4:17 PM, Jim Ingham wrote:
You can get gdb to avoid the use of arch altogether by making a file called .gdbinit in your home directory, and put:

set start-with-shell 0

in there.

Running `/usr/bin/arch -arch i386 /bin/ls` worked fine, but the .gdbinit file "fixed" the problem. I'm still curious as to why this might have happened though. Thanks!

Well after digging around I found the problem. In order to get rspec testing to work from within TextMate for some ruby programming, I had created a ~/.MacOSX/environment.plist file with a hard-coded path so I could access some stuff under /opt/local/bin and /usr/local/bin through TextMate.


Sure enough, I omitted /usr/bin and /usr/sbin as they were irrelevant to what I needed that specific file for. As soon as I added a symbolic link for "arch" to /usr/local/bin, debugging worked fine. Failed to realize that it would affect all other OS X apps as well ;)

Added /usr/bin and /usr/sbin back into the plist, logged out and back in, and it works fine now. Sorry for the wild goose chase, and thanks for all the help!


_______________________________________________ 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
References: 
 >GDB Problem (From: "Dylan Markow" <email@hidden>)
 >Re: GDB Problem (From: Chris Espinosa <email@hidden>)
 >Re: GDB Problem (From: "Dylan Markow" <email@hidden>)
 >Re: GDB Problem (From: Chris Espinosa <email@hidden>)
 >Re: GDB Problem (From: Dylan Markow <email@hidden>)
 >Re: GDB Problem (From: Jim Ingham <email@hidden>)
 >Re: GDB Problem (From: Dylan Markow <email@hidden>)

  • Prev by Date: Re: Where is kinfo_proc defined?
  • Next by Date: Re: GDB debug console not showing iPhone NSLog output
  • Previous by thread: Re: GDB Problem
  • Next by thread: Re: GDB Problem
  • Index(es):
    • Date
    • Thread