1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-23 12:03:41 +01:00

(get_proc_info): Adjust for move of "tables" member into the address-space structure.

(ia64_get_proc_info): Always compile-in script-lookup, but check script-cache only
	if caching is enabled.

(Logical change 1.27)
This commit is contained in:
mostang.com!davidm 2002-11-16 06:50:04 +00:00
parent b5e3d308ef
commit 40e5cd3ca7

View file

@ -725,9 +725,9 @@ get_proc_info (struct ia64_cursor *c)
uint64_t hdr;
int ret;
/* search the kernels and the modules' unwind tables for IP: */
/* search the unwind tables for IP: */
for (table = unw.tables; table; table = table->next)
for (table = c->as->tables; table; table = table->next)
if (ip >= table->info.start && ip < table->info.end)
break;
@ -748,8 +748,8 @@ get_proc_info (struct ia64_cursor *c)
}
table->info = info;
/* XXX LOCK { */
table->next = unw.tables;
unw.tables = table;
table->next = c->as->tables;
c->as->tables = table;
/* XXX LOCK } */
}
@ -915,7 +915,8 @@ ia64_free_state_record (struct ia64_state_record *sr)
int
ia64_get_proc_info (struct ia64_cursor *c)
{
#ifdef IA64_UNW_SCRIPT_CACHE
if (c->as->caching_policy != UNW_CACHE_NONE)
{
struct ia64_script *script = ia64_script_lookup (c);
if (script)
@ -923,7 +924,6 @@ ia64_get_proc_info (struct ia64_cursor *c)
c->pi = script->pi;
return 0;
}
#endif
}
return get_proc_info (c);
}