(gdb) Won't Answer Me in Debugger Console
(gdb) Won't Answer Me in Debugger Console
- Subject: (gdb) Won't Answer Me in Debugger Console
- From: Jerry Krinock <email@hidden>
- Date: Fri, 6 Mar 2009 08:10:20 -0800
I hope this is a dumb question with an easy answer. I need to debug
one a double free in a Cocoa app. I set a breakpoint in
malloc_error_break as requested. (I also have NSZombieEnabled,
NSAutoreleaseFreedObjectCheckEnabled and the other usual debugging
points enabled.)
And then I try to follow the instructions in "Mac OS X Debugging
Magic", but nothing happens when I type anything into the Debugger
Console. The only thing I can get it to do is "continue" when I push
the green "Continue" button in the GUI.
Here's a snippet from Debugger Console:
[Session started at 2009-03-06 08:01:55 -0800.]
Loading program into debugger…
GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40
UTC 2008)
<snip>
Pending breakpoint 1 - "objc_exception_throw" resolved
Pending breakpoint 2 - "+[NSError errorWithDomain:code:userInfo:]"
resolved
Pending breakpoint 3 -
"handleFailureInMethod:object:file:lineNumber:description:" resolved
Pending breakpoint 4 -
"handleFailureInFunction:file:lineNumber:description:" resolved
Pending breakpoint 5 - "malloc_printf" resolved
Program loaded.
sharedlibrary apply-load-rules all
run
[Switching to process 4344 local thread 0x2d03]
Running…
<snip> Various console messages get logged, then my double free
occurs...
(gdb) Hello?
Is anyone there?
I guess not. I'll push the green "Continue" button in the GUI now.
(gdb) continue
TestApp(4236,0xa0640720) malloc: *** error for object 0x159c7e10:
double free
*** set a breakpoint in malloc_error_break to debug
(gdb) po 0x159c7e10
po $ebp + 8
Hello?
Still no answer??
I'm using Xcode 3.1.1. Replies from gdb do not appear in Console.app
either. Thanks for helping!
Jerry Krinock _______________________________________________
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