Re: Unable to debug with gdb on Mac-Intel
Re: Unable to debug with gdb on Mac-Intel
- Subject: Re: Unable to debug with gdb on Mac-Intel
- From: Otto Elle <email@hidden>
- Date: Mon, 7 Jul 2008 07:10:07 -0700 (PDT)
--- On Mon, 7/7/08, Jean-Daniel Dupas <email@hidden> wrote:
> From: Jean-Daniel Dupas <email@hidden>
> Subject: Re: Unable to debug with gdb on Mac-Intel
> To: email@hidden
> Cc: email@hidden
> Date: Monday, July 7, 2008, 3:36 PM
> 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.
Thanks for your reply!
"Architectures" is set to i386 and "SDK" points to $(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk
Is there something else to set taht I missed?
Regards,
Lara.
_______________________________________________
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