• 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
Re: gdb objc_msgSend: trace messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb objc_msgSend: trace messages


  • Subject: Re: gdb objc_msgSend: trace messages
  • From: Jason Harris <email@hidden>
  • Date: Sat, 29 Mar 2003 15:24:02 -0700

You can get the selector using
x /s $r4

The target object is in $r3.

Jason


Seth Delackner Tried to Tell Me:

> Google knows that in the olden NeXT days, this was possible:
>
> (gdb) b objc_msgSend
> Breakpoint 2 at 0x5002230
> (gdb) comm 2
> printf "%c[%s %s]\n",(((*((**(int***)($sp+4))+4))&2)?'+':'-'),
> (char*)(*((**(int ***)($sp+4))+2)),(char*)sel_getName(*(int*)($sp+8))
>
> And you would see the full output like:
> -[Object message:]
>
> I never used NeXT, but I tried this on OS X, and while the second argument (to
> generate the object or class name) still works, the argument to sel_getName
> produces gibberish.
>
> Anyone know the answer to what goes in sel_getName(mystery) ?
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >gdb objc_msgSend: trace messages (From: Seth Delackner <email@hidden>)

  • Prev by Date: Re: selector not recognized problem (newbie question)
  • Next by Date: Re: Is there a ready chart plotting view?
  • Previous by thread: gdb objc_msgSend: trace messages
  • Next by thread: Re: gdb objc_msgSend: trace messages
  • Index(es):
    • Date
    • Thread