Reputation: 12839
I'm stopped at an exception breakpoint. How can I use the LLDB console to tell which exception was thrown?
According to this comment I should be able to type po $r0
to see the exception object "because it is passed as the first argument to objc_exception_throw
" but this register doesn't appear to exist on ARM64.
After reading the iOS ABI Function Call Guide I also tried po $x0
but registers x0
through x18
are all empty.
I'm using XCode 5.1, iOS 7.1 on ARM64.
Upvotes: 2
Views: 254
Reputation: 57188
Are you sure you have the correct stack frame selected (i.e. the objc_exception_throw frame)?
According to this answer, your po $x0
should work.
Upvotes: 1