• 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
Trouble getting my project to Build and Debug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble getting my project to Build and Debug


  • Subject: Trouble getting my project to Build and Debug
  • From: David Hoerl <email@hidden>
  • Date: Wed, 15 Aug 2007 21:28:06 -0400

I'm using XCode 2.5 on Tiger. I seldomly use gdb - only when I get a gnarly crash, which I have now after some major refactoring.

Just to be sure it wasn't me or something about my system, I created a new NSDocument based project, then put a breakpoint on main(), and it worked. I try the same on my project, and Xcode does the following:

- set Build config to debug. [make sure symbols are on, no optimization]
- select Build and Debug
- Xcode switches the view to the debug tab.
- it drops down a sheet with this on it:

"Error Starting Executable
Unable to find Mach task port for process-id 4030: (os/kern) failure
(0x5)."

The app starts running, and it ignores breakpoints. the "gdb" area in the Xcode window shows just this:

[Session started at 2007-08-15 20:59:49 -0400.]
GNU gdb 6.3.50-20050815 (Apple version gdb-685) (Fri May 25 05:23:45 GMT 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin".
Loading program into debuggerŠ

warning: --arch option not supported in this gdb.

tty /dev/ttyp2
Program loaded.
sharedlibrary apply-load-rules all
run


There are some really old posts from 2000/2001 on that Error Starting Executable erro I am having, which went unanswered. There was a hint that if you ran the project as root it worked. I then did a recursive ls -ld on both the test project and my app - all owner/group/permissions were the same [Build/Debug/...]


David
_______________________________________________
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


  • Prev by Date: Re: how to disable floating point exceptions?
  • Next by Date: Re: Trouble getting my project to Build and Debug
  • Previous by thread: Re: how to disable floating point exceptions/arithmetic exceptions?
  • Next by thread: Re: Trouble getting my project to Build and Debug
  • Index(es):
    • Date
    • Thread