Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
442 views
in Technique[技术] by (71.8m points)

iphone - 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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...