Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error from Debugger: Previous frame inner to this frame (gdb could not unwind past this frame)

I am getting the following debugger error when I encounter a breakpoint on the device:

Error from Debugger: Previous frame inner to this frame (gdb could not unwind past this frame)

This occurs when the app hits a breakpoint. If I hit the continue button in the debugger, it continues happily until the next breakpoint, when it pops up the same issue.

What does this message mean, and more importantly how can I fix it? I have been debugging this app for a long time without ever encountering this error.

I tried a clean build, as well as rebooting my Mac. I am on XCode 3.2.3, iOS 4.0.1.

like image 997
Chris Garrett Avatar asked Jul 19 '10 22:07

Chris Garrett


1 Answers

I started having this problem also, and for me it was caused by LLVM code generation. I switched the compiler setting in my target from "LLVM GC 4.2" to "GCC 4.2", did a clean rebuild, and the debugger was happy again.

This can also be caused by stack corruption, so its possible you may have a legitimate bug. In my case though, I couldn't set breakpoints anywhere, anytime, even in applicationDidFinishLaunching:. That pointed the finger at a build setting.

I hope this helps!

like image 57
Quinn Dunki Avatar answered Sep 18 '22 12:09

Quinn Dunki