"previous frame inner to this frame" error when unwinding fibers
Andrey Turkin via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAA7-Zor4XNXq8c-BY0r89gMNrk4ys=-Ota2=-FKh-61pHQdeVw@mail.gmail.com> |
Hi all, I'm trying to write a custom unwinder in Python to unwind through boost coroutine (so, follow coroutine stack with its caller's stack). It generally works pretty well except for occasional errors about the inner frame. Obviously, coroutine switches stack so comparing frame pointers makes no sense; so, when caller stack happens to be allocated above coroutine's, the bogus error occurs. I can see in gdb sources that it knows about gcc's split-stacks and apparently arch-specific frames, however I found no way for the unwinder to do anything about it. Is there any way to fix this error with the current gdb, or do I need to patch the sources? Thanks, Andrey Turkin