From 43cc4c9e59384ebb6a7de8406edb8879aa8b8d9a Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Thu, 6 Mar 2003 06:14:36 +0000 Subject: [PATCH] (ia64_make_proc_info): If caching is enabled, call ia64_get_cached_proc_info() to pick up cached proc-info (if available). (Logical change 1.59) --- src/ia64/Gparser-ia64.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/ia64/Gparser-ia64.c b/src/ia64/Gparser-ia64.c index 737dadbf..46b9b2eb 100644 --- a/src/ia64/Gparser-ia64.c +++ b/src/ia64/Gparser-ia64.c @@ -1075,15 +1075,9 @@ ia64_free_state_record (struct ia64_state_record *sr) HIDDEN int ia64_make_proc_info (struct cursor *c) { - if (c->as->caching_policy != UNW_CACHE_NONE) - { - struct ia64_script *script = ia64_script_lookup (c); - - if (script) - { - c->pi = script->pi; - return 0; - } - } - return get_proc_info (c, c->ip, 0); + if (c->as->caching_policy == UNW_CACHE_NONE + || ia64_get_cached_proc_info (c) < 0) + /* Lookup it up the slow way... */ + return get_proc_info (c, c->ip, 0); + return 0; }