mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-11 11:33:43 +01:00
(unw_set_caching_policy): Call ia64_init() first if necessary.
(Logical change 1.49)
This commit is contained in:
parent
71ab0b2a3c
commit
d8023cf208
1 changed files with 6 additions and 0 deletions
|
@ -28,6 +28,12 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||
int
|
||||
unw_set_caching_policy (unw_addr_space_t as, unw_caching_policy_t policy)
|
||||
{
|
||||
if (unw.needs_initialization)
|
||||
{
|
||||
unw.needs_initialization = 0;
|
||||
ia64_init ();
|
||||
}
|
||||
|
||||
#ifndef HAVE___THREAD
|
||||
if (policy == UNW_CACHE_PER_THREAD)
|
||||
return -UNW_EINVAL;
|
||||
|
|
Loading…
Reference in a new issue