Use GDB to learn the Objective-C class from crashing (poor HandleDelegateSource access)

I am trying to debug intermittent error on iPhone, crashing with a trace that looks like this:

objc_message_send
__invoking__
[NSInvocation invoke]
HandleDelegateSource
MainRunLoop
....

When GDB stops, I would like to be able to determine the details of which selector is trying to call the system - now I have set a breakpoint around [NSInvocation Invoke], but from this point I can’t understand how I stopped to learn the details of the NSInvocation object.

+3
source share
3 answers

This recently published article at Phrack should answer all your questions. Enlightenment reading.

+5
source

- GDB (Selector lothar). C, , ( , ):

Simulator: display /s $ecx
Device: display /s $r1
+2

objc_msgSend, , . .

objc_msgSend
.
id objc_msgSend (id theReceiver, SEL theSelector,...)


theReceiver
  , , .
theSelector
   , .
...
, .

+1

All Articles