2

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.

Community
  • 1
  • 1
bcattle
  • 12,115
  • 6
  • 62
  • 82

1 Answers1

1

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.

Community
  • 1
  • 1
Jesse Rusak
  • 56,530
  • 12
  • 101
  • 102