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+

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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

gcc 4.3?

Where did you get a mac version of gcc 4.3 in the first place?

I'm just mooning after a 4.2 that has 4.2 stl instead of 4.0.

hpc.sourceforge.net By the

hpc.sourceforge.net

By the way, don't use Xcode anymore, and prefer Netbeans for 99%. I use a custom makefile which lets me manually tune compilation parameters.
4.4 experimental should be out now.

Nicola

Stupid question (sorry!)

Hello,
this may be a dum question, but how do you tell xcode to use a new compiler? Best regards

Federico Carminati -- CERN

gcc 3.3 in 10.5.6

Hello. I am using a vector an matrix package that has some problem with gcc 4.* family. Essentially while this problem are fix I will need to use gcc 3.* family. Thus anyone know where I can get the gcc 3.3 for 10.5.6.

Thanks a lot

Try to uncheck the "Load

Try to uncheck the "Load symbols lazily" in Xcode preferences - debugging pane. It worked for me.