diff options
Diffstat (limited to 'src/x86/Ginit_local.c')
-rw-r--r-- | src/x86/Ginit_local.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/x86/Ginit_local.c b/src/x86/Ginit_local.c index 025c84cb..88c52de3 100644 --- a/src/x86/Ginit_local.c +++ b/src/x86/Ginit_local.c @@ -60,9 +60,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 */ |