Re: Using gdb in Xcode
Re: Using gdb in Xcode
- Subject: Re: Using gdb in Xcode
- From: Chris Friesen <email@hidden>
- Date: Fri, 8 Jul 2005 10:53:19 -0700
You need to build with debugging symbols turned on. Make sure '-g' is
being passed to the compiler. It also helps if you turn off
optimization when debugging by only passing '-O0' (letter 'o' number
zero) and not -Os, -O1, -O2 or -O3. Your makefile might have a debug
target you can build that would pass the correct flags.
-ChrisF
On Jul 7, 2005, at 5:10 PM, Julien Palmas wrote:
I would like to be able to use Xcode and its GUI for GDB for
executables that have not been built using Xcode, but rather "make".
I created a new Xcode project,
added an "New custom executable", specifying the path for the
executable.
Added the source files to the project.
Set a breakpoint at an arbitrary location.
Launche the "Debug executable" function.
And I get the message
No source file named breakpointSourceFile.c
If I use the GDB command "list" I get :
No symbol table is loaded.
Anybody can 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
_______________________________________________
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