diff options
author | Dave Watson <davejwatson@fb.com> | 2017-08-16 12:15:16 -0700 |
---|---|---|
committer | Dave Watson <davejwatson@fb.com> | 2017-08-16 13:11:24 -0700 |
commit | bd3fb89e113a84560808ee6c286a4f93c5ca879c (patch) | |
tree | 59b180e0b49e1ef8a1f30cc445567045b63dd001 /src/hppa | |
parent | 644cce3d722e677073d0529c5a969e025888af86 (diff) | |
download | libunwind-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/hppa')
-rw-r--r-- | src/hppa/Ginit_local.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/hppa/Ginit_local.c b/src/hppa/Ginit_local.c index 94583d9d..5c59f48f 100644 --- a/src/hppa/Ginit_local.c +++ b/src/hppa/Ginit_local.c @@ -58,9 +58,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 */ |