mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-22 16:20:29 +01:00
(unw_init_remote): Redirect to unw_init_local() if we're initializing for
the local address-space. This makes test-init-remote.c work. (Logical change 1.243)
This commit is contained in:
parent
d5933d6e74
commit
2f6b56efda
1 changed files with 9 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* libunwind - a platform-independent unwind library
|
/* libunwind - a platform-independent unwind library
|
||||||
Copyright (C) 2001-2002 Hewlett-Packard Co
|
Copyright (C) 2001-2002, 2004 Hewlett-Packard Co
|
||||||
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
|
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
|
||||||
|
|
||||||
This file is part of libunwind.
|
This file is part of libunwind.
|
||||||
|
@ -39,6 +39,14 @@ unw_init_remote (unw_cursor_t *cursor, unw_addr_space_t as, void *as_arg)
|
||||||
|
|
||||||
Debug (2, "(cursor=%p)\n", c);
|
Debug (2, "(cursor=%p)\n", c);
|
||||||
|
|
||||||
|
if (as == unw_local_addr_space)
|
||||||
|
/* This special-casing is unfortunate and shouldn't be needed;
|
||||||
|
however, both Linux and HP-UX need to adjust the context a bit
|
||||||
|
before it's usable. Try to think of a cleaner way of doing
|
||||||
|
this. Not sure it's possible though, as long as we want to be
|
||||||
|
able to use the context returned by getcontext() et al. */
|
||||||
|
return unw_init_local (cursor, as_arg);
|
||||||
|
|
||||||
c->as = as;
|
c->as = as;
|
||||||
c->as_arg = as_arg;
|
c->as_arg = as_arg;
|
||||||
return common_init (c);
|
return common_init (c);
|
||||||
|
|
Loading…
Reference in a new issue