Add _Unwind_GetIPInfo for libstdc++.

This commit is contained in:
joerg 2014-03-13 00:28:20 +00:00
parent b05100a488
commit d952896fa0
2 changed files with 7 additions and 0 deletions

View File

@ -275,6 +275,12 @@ uintptr_t _Unwind_GetIP(struct _Unwind_Context *context) {
return cursor->getIP();
}
uintptr_t _Unwind_GetIPInfo(struct _Unwind_Context *context, int *isSignalFrame) {
ThisUnwindCursor *cursor = (ThisUnwindCursor *)context;
*isSignalFrame = cursor->isSignalFrame() ? 1 : 0;
return cursor->getIP();
}
void _Unwind_SetIP(struct _Unwind_Context *context, uintptr_t new_value) {
ThisUnwindCursor *cursor = (ThisUnwindCursor *)context;
cursor->setIP(new_value);

View File

@ -67,6 +67,7 @@ void _Unwind_DeleteException(struct _Unwind_Exception *);
uintptr_t _Unwind_GetGR(struct _Unwind_Context *, int);
void _Unwind_SetGR(struct _Unwind_Context *, int, uintptr_t);
uintptr_t _Unwind_GetIP(struct _Unwind_Context *);
uintptr_t _Unwind_GetIPInfo(struct _Unwind_Context *, int *);
uintptr_t _Unwind_GetCFA(struct _Unwind_Context *);
void _Unwind_SetIP(struct _Unwind_Context *, uintptr_t);
uintptr_t _Unwind_GetRegionStart(struct _Unwind_Context *);