Module Name:    src
Committed By:   joerg
Date:           Thu Mar 13 00:28:20 UTC 2014

Modified Files:
        src/sys/lib/libunwind: libunwind.cxx unwind.h

Log Message:
Add _Unwind_GetIPInfo for libstdc++.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/lib/libunwind/libunwind.cxx
cvs rdiff -u -r1.1 -r1.2 src/sys/lib/libunwind/unwind.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/lib/libunwind/libunwind.cxx
diff -u src/sys/lib/libunwind/libunwind.cxx:1.2 src/sys/lib/libunwind/libunwind.cxx:1.3
--- src/sys/lib/libunwind/libunwind.cxx:1.2	Wed Jan 29 06:59:53 2014
+++ src/sys/lib/libunwind/libunwind.cxx	Thu Mar 13 00:28:20 2014
@@ -275,6 +275,12 @@ uintptr_t _Unwind_GetIP(struct _Unwind_C
   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);

Index: src/sys/lib/libunwind/unwind.h
diff -u src/sys/lib/libunwind/unwind.h:1.1 src/sys/lib/libunwind/unwind.h:1.2
--- src/sys/lib/libunwind/unwind.h:1.1	Mon Oct 14 01:14:57 2013
+++ src/sys/lib/libunwind/unwind.h	Thu Mar 13 00:28:20 2014
@@ -67,6 +67,7 @@ void _Unwind_DeleteException(struct _Unw
 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 *);

Reply via email to