Re: Breakpoints not working
Re: Breakpoints not working
- Subject: Re: Breakpoints not working
- From: Jim Ingham <email@hidden>
- Date: Wed, 31 Mar 2004 09:16:43 -0800
Jamie,
First make sure you didn't inadvertently turn off the generation of
debug info in the compiler. The simplest way to do this is to find the
binary that you expected to set the breakpoints in (if you run under
Xcode, the "info shared" command will list all the libraries and their
locations, which will help you find it.) Then do:
nm -ap <This binary> | grep 'SO '
That should produce a bunch of file names, including all the ones you
have listed below... If it doesn't, then you have somehow turned off
debug info. Maybe you are building the Deployment not the Development
build style?
Jim
On Mar 31, 2004, at 8:10 AM, James Tittle II wrote:
...sorry for dredging up old subject matter, but I've recently been
bit by this problem...
On Feb 27, 2004, at 2:26 PM, Jim Ingham wrote:
On Feb 26, 2004, at 6:20 PM, James J. Merkel wrote:
I know that questions have been asked in the past about breakpoints
not working in xcode -- however I still cannot get the debugger to
stop at any breakpoints. I am in development mode with the option
set to Generate Debug Symbols. I can see the breakpoint in the
breakpoint window. Still no effect.
If you interrupt the program once it is up and running and go to the
console and type:
(gdb) info break
do the breakpoints have reasonable seeming addresses. If the
addresses are all 0x0, then that means we couldn't resolve the
symbols. If there are addresses, but you are not hitting them, then
something went wrong in setting the breakpoints? I would have to
have a look at the binary to see what was going wrong in this case.
...all of a sudden, I can't get gdb to break anywhere either...I did
"info break", and indeed there's nothing but 0x0 for the addresses:
(gdb) info break
Num Type Disp Enb Address What
1 breakpoint keep s 0x00000000 "model_loader.cpp:705
2 breakpoint keep s 0x00000000 "pix_filmDarwinYUV.cpp:105
3 breakpoint keep s 0x00000000 "pix_film.cpp:122
4 breakpoint keep s 0x00000000 "GemWinCreateMac.cpp:768
5 breakpoint keep s 0x00000000 "GemPixImageSave.cpp:127
6 breakpoint keep s 0x00000000 "GemPixImageSave.cpp:192
7 breakpoint keep s 0x00000000 "pix_write.cpp:128
8 breakpoint keep s 0x00000000 "GemWinCreateMac.cpp:186
(gdb)
...what can I do now? This is a library/bundle loaded into pure-data,
built using the "classic target", because everytime I try to import it
as a native build target, the name gets screwed (goes from
"gem.pd_darwin" to "libgem.pd_darwina"), and there doesn't seem to be
a place to rename things like this...I have the "generate debugging
symbols" checked, and am using gcc3.3...what to do next?
help!
jamie
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
--
Jim Ingham email@hidden
Developer Tools
Apple Computer
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.