• 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: Expanding "this" kills my application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expanding "this" kills my application


  • Subject: Re: Expanding "this" kills my application
  • From: Scott Tooker <email@hidden>
  • Date: Fri, 14 Dec 2007 11:07:01 -0800


On Dec 14, 2007, at 9:06 AM, Ethan Tira-Thompson wrote:

On 08/12/2007, at 9:31 PM, Laurence Harris wrote:
Macintosh:~ Larry$ sudo gdb /usr/libexec/gdb/gdb-i386-apple-darwin
...
Password:
sudo: gdb: command not found

Well, that's a little weird...
There's a couple followups about gdb in /Developer/usr/bin, but I have an additional copy in regular /usr/bin:


$ ls -l /usr/bin/gdb /usr/libexec/gdb/gdb-i386-apple-darwin / Developer/usr/bin/gdb /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
-rwxr-xr-x 1 root wheel 4867 Oct 2 00:19 /Developer/usr/bin/ gdb
-rwxr-sr-x 1 root procmod 6073712 Oct 2 00:19 /Developer/usr/ libexec/gdb/gdb-i386-apple-darwin
-rwxr-xr-x 1 root wheel 4867 Oct 2 00:19 /usr/bin/gdb
-rwxr-sr-x 1 root procmod 6073712 Oct 2 00:19 /usr/libexec/gdb/ gdb-i386-apple-darwin


I'm guessing this is also the case for Jim Ingham who suggested the command... so it might be a good question why it's not true for Laurence... might be a broken install? /usr got deleted on his system or something? Or do I (we) have an extra unintentional copy in /usr that's going to be ignored by future updates and eventually go out of date and bite me later? :)

In order to support side by side installation of different toolsets, the Xcode 3.0 developer tools place gdb in <Xcode directory>/usr/bin/ gdb (where <Xcode directory> defaults to /Developer). However, to provide continued support for makefile-based projects (without developers needing to update their projects), the 3.0 developer tools has a "UNIX Development Support" package that installs a copy of the low-level developer tools into the base system, that's where the /usr/ bin/gdb part is coming from. Currently, the "UNIX Development Support" package is installed by default when installing Xcode developer tools, but that could change in future releases.


Scott



Also, I was going to say 'sudo' isn't necessary, but apparently it is in the specific case of attaching gdb to gdb. Cute trick, I would've seen the error it gives without 'sudo' and just thought it's something that can't be done. (that would suck for the gdb developers! ;)

-ethan

_______________________________________________
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

_______________________________________________ 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: 
 >Re: Expanding "this" kills my application (From: Ethan Tira-Thompson <email@hidden>)

  • Prev by Date: Re: Expanding "this" kills my application
  • Next by Date: Re: documentation window and "Previous"
  • Previous by thread: Re: Expanding "this" kills my application
  • Next by thread: How to make a program look for dylibs other than /usr/local/lib?
  • Index(es):
    • Date
    • Thread