xcode debugging using gcc 4.3

I'm trying to debug a test application built with gcc 4.3 in xcode (I'm using Leopard 10.5.1, xcode 3, gcc from hpc.sourceforge.net).
What should I do to be able to use breakpoints?

I'm using a makefile (it's on the bottom of the post), but when I debug in xcode the executable file, it won't stop at breakpoints. I think I'm missing some flags, but couldn't find any clear documentation.

Thanks in advance
Sincerely
Nicola Montecchio

--- Makefile:

GCC_GENERATE_DEBUGGING_SYMBOLS = YES

prova : main.cpp

main.cpp:
/usr/local/bin/g++ -o prova main.cpp -gstabs+

by the way, in emacs

by the way, in emacs debugging works fine

Re: xcode debugging using gcc 4.3

Hi Nicola,

You need to use either the Organizer or convert you program into a full Xcode project. Then you'll have access to the visual debugger and the ability to set breakpoints.

Regards.

Dave

Thanks for replying. I tried

Thanks for replying.

I tried using the organizer. I dragged the directory containing the Makefile and the main.cpp file onto the window. It builds, runs, but I can't set a breakpoint (the choice in the popup menu is grayed out).

What I did yesterday was creating a full Xcode project:
- started with an empty project
- added the source and Makefile
- created a new target (external target)
- added the output binary as a custom executable
again, build, clean and run work; here I can set breakpoints, but they just get ignored
To be sure, I tried all that again, and it doesn't work.
Here is a link to this project
http://www.dei.unipd.it/~montecc2/prova4.zip

thanks for your help
regards
Nicola