diff options
Diffstat (limited to 'src/x86/Ginit_remote.c')
-rw-r--r-- | src/x86/Ginit_remote.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/x86/Ginit_remote.c b/src/x86/Ginit_remote.c index 5d3827d9..6949a73e 100644 --- a/src/x86/Ginit_remote.c +++ b/src/x86/Ginit_remote.c @@ -41,6 +41,16 @@ unw_init_remote (unw_cursor_t *cursor, unw_addr_space_t as, void *as_arg) c->dwarf.as = as; c->dwarf.as_arg = as_arg; + if (as == unw_local_addr_space) + { + c->dwarf.as_arg = c; + c->uc = as_arg; + } + else + { + c->dwarf.as_arg = as_arg; + c->uc = 0; + } return common_init (c); #endif /* !UNW_LOCAL_ONLY */ } |