summaryrefslogtreecommitdiff
path: root/src/ppc
diff options
context:
space:
mode:
authorDave Watson <davejwatson@fb.com>2017-08-16 12:15:16 -0700
committerDave Watson <davejwatson@fb.com>2017-08-16 13:11:24 -0700
commitbd3fb89e113a84560808ee6c286a4f93c5ca879c (patch)
tree59b180e0b49e1ef8a1f30cc445567045b63dd001 /src/ppc
parent644cce3d722e677073d0529c5a969e025888af86 (diff)
downloadlibunwind-bd3fb89e113a84560808ee6c286a4f93c5ca879c.tar.gz
Change unw_init_local_signal to unw_init_local2(..., UNW_INIT_SIGNAL_FRAME)
Add unw_init_local2 with a flag for better extensibility in the future
Diffstat (limited to 'src/ppc')
-rw-r--r--src/ppc/Ginit_local.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/ppc/Ginit_local.c b/src/ppc/Ginit_local.c
index 6c83b3b7..a05d4c8a 100644
--- a/src/ppc/Ginit_local.c
+++ b/src/ppc/Ginit_local.c
@@ -69,9 +69,20 @@ unw_init_local(unw_cursor_t *cursor, ucontext_t *uc)
}
PROTECTED int
-unw_init_local_signal(unw_cursor_t *cursor, ucontext_t *uc)
+unw_init_local2 (unw_cursor_t *cursor, ucontext_t *uc, int flag)
{
- return unw_init_local_common(cursor, uc, 0);
+ if (!flag)
+ {
+ return unw_init_local_common(cursor, uc, 1);
+ }
+ else if (flag == UNW_INIT_SIGNAL_FRAME)
+ {
+ return unw_init_local_common(cursor, uc, 0);
+ }
+ else
+ {
+ return -UNW_EINVAL;
+ }
}
#endif /* !UNW_REMOTE_ONLY */