summaryrefslogtreecommitdiff
path: root/src/aarch64
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/aarch64
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/aarch64')
-rw-r--r--src/aarch64/Ginit_local.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/aarch64/Ginit_local.c b/src/aarch64/Ginit_local.c
index 45b1b300..d284224a 100644
--- a/src/aarch64/Ginit_local.c
+++ b/src/aarch64/Ginit_local.c
@@ -59,9 +59,20 @@ unw_init_local (unw_cursor_t *cursor, unw_context_t *uc)
}
PROTECTED int
-unw_init_local_signal (unw_cursor_t *cursor, unw_context_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 */