Re: Sticky breakpoints
Re: Sticky breakpoints
- Subject: Re: Sticky breakpoints
- From: Jim Ingham <email@hidden>
- Date: Wed, 16 Jun 2004 11:01:40 -0700
Ken,
Are you sure that you aren't hitting a real BPT trap? It is fairly
common for various of the system libraries (dyld & Foundation, for
instance) to use a trap instruction as a signal of a serious error.
That way, if you are running in the debugger you will break at the
point of error...
The copy of your app that hit the trap will have written a crash log to
~/Library/CrashReporter, so you can tell from that where you hit the
trap. I have no idea why having a second copy of the app running, but
halted in gdb would cause problems, but if there was some shared
resource that the debugged copy wasn't releasing or had in some
half-baked state, that could very well cause problems.
The stderr should go to the stdio window (just select Debug->Stdio and
you will see this).
Jim
On Jun 16, 2004, at 6:49 AM, Ken Brooks wrote:
I have a networking app, so I'm often running it from Terminal (in two
separate windows). But sometimes I need to run the debugger to see
what's going on inside. And sometimes, after hitting a breakpoint in
the code and then running another instance of the program from
Terminal, that second instance will terminate with this message:
/cmdir ken$ ./cm -c
Trace/BPT trap
And even if I quit the debug session, delete the app, and rebuild it,
this message is still happening - although I made no changes to the
code. I can only recover by retrieving last night's backup of the
whole project! What could be going on here?
BTW, during a Debug session I'm not seeing my output to stderr
anywhere. Where should it be appearing?
Ken Brooks
Sparkling Light Software
_______________________________________________
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.