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

心不动则不痛 提交于 2019-12-18 02:49:11

问题


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.


回答1:


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!



来源:https://stackoverflow.com/questions/3285493/error-from-debugger-previous-frame-inner-to-this-frame-gdb-could-not-unwind-pa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!