• 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: Unable to debug with gdb on Mac-Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to debug with gdb on Mac-Intel


  • Subject: Re: Unable to debug with gdb on Mac-Intel
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Mon, 7 Jul 2008 15:36:18 +0200


Le 7 juil. 08 à 15:14, Otto Elle a écrit :

Hello,

my XCode is unable to debug any old or newly created C/C++/Objective- C/Carbon/Cocoa project on my Mac mini running 1.66 Ghz Intel Core Duo!
It compiles and runs fine but doesn't debug anyhow...


Upon debug launch (Cmd + Opt + Y) it used to throw an error with XCode 2.1:

"Error Starting Executable

Check its arguments and the debugger console
Unable to find Mach task port for
process-id 968:
(os/kern) failure (0x5)."


Updating XCode tools to 2.5 leads to a similiar error:

"Error Starting Executable

Check its arguments and the debugger console.

error on line 433 of "/SourceCache/gdb/gdb-696/
src/gdb/macosx/i386-macosx-nat-exec.c" in
function "i386_macosx_dr_get": (os/kern) invalid
argument (0x4) "


And the debugger console shows:

"[Session started at 2008-05-16 16:34:09 +0200.]
GNU gdb 6.3.50-20050815 (Apple version gdb-696) (Sat Oct 20 18:16:54 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
[Switching to process 12377 local thread 0xf03]
Error reading debug registers thread 0xf03 via thread_get_state
"

What could I do?
Is their a way to debug C-based code under MacIntel with GDB?

Thanks in advance for your help.

Regards,
Lara.

You can only debug Intel exec on Intel machine with Xcode 2.5. Check the architecture in your target settings.



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Unable to debug with gdb on Mac-Intel
      • From: Otto Elle <email@hidden>
References: 
 >Unable to debug with gdb on Mac-Intel (From: Otto Elle <email@hidden>)

  • Prev by Date: Re: Xcode 3.0 help issues
  • Next by Date: not able to create NSIMage using init methods
  • Previous by thread: Unable to debug with gdb on Mac-Intel
  • Next by thread: Re: Unable to debug with gdb on Mac-Intel
  • Index(es):
    • Date
    • Thread