mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-07-07 23:55:35 +02:00
(unw_set_caching_policy): Call ia64_init() first if necessary.
(Logical change 1.49)
This commit is contained in:
parent
71ab0b2a3c
commit
d8023cf208
|
@ -28,6 +28,12 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
int
|
int
|
||||||
unw_set_caching_policy (unw_addr_space_t as, unw_caching_policy_t policy)
|
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
|
#ifndef HAVE___THREAD
|
||||||
if (policy == UNW_CACHE_PER_THREAD)
|
if (policy == UNW_CACHE_PER_THREAD)
|
||||||
return -UNW_EINVAL;
|
return -UNW_EINVAL;
|
||||||
|
|
Loading…
Reference in a new issue