From 40e5cd3ca7730f319fdeca555c02484b85e28a57 Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Sat, 16 Nov 2002 06:50:04 +0000 Subject: [PATCH] (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) --- src/ia64/parser.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ia64/parser.c b/src/ia64/parser.c index 8e5827e9..c71ff6bb 100644 --- a/src/ia64/parser.c +++ b/src/ia64/parser.c @@ -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,15 +915,15 @@ ia64_free_state_record (struct ia64_state_record *sr) int ia64_get_proc_info (struct ia64_cursor *c) { -#ifdef IA64_UNW_SCRIPT_CACHE - struct ia64_script *script = ia64_script_lookup (c); - - if (script) + if (c->as->caching_policy != UNW_CACHE_NONE) { - c->pi = script->pi; - return 0; - } -#endif + struct ia64_script *script = ia64_script_lookup (c); + if (script) + { + c->pi = script->pi; + return 0; + } + } return get_proc_info (c); }