• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(gdb) Won't Answer Me in Debugger Console
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(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


  • Follow-Ups:
    • Re: (gdb) Won't Answer Me in Debugger Console
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Building an agent app into another app's bundle
  • Next by Date: Re: Info.plist preprocessing in single-file tool? [SOLVED]
  • Previous by thread: Re: IB 3.1.2 Bug
  • Next by thread: Re: (gdb) Won't Answer Me in Debugger Console
  • Index(es):
    • Date
    • Thread