From ab55a5ae680bdc687e0b057a8b19596106c0885b Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 28 Sep 2005 03:20:10 +0000 Subject: 2005-09-27 Frank Ch. Eigler * tapsets.cxx (query_cu_containing_global_address): Tolerate way out of range addresses that result in null cudie pointers. --- ChangeLog | 5 +++++ tapsets.cxx | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5ce0db21..8e8d1e7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-09-27 Frank Ch. Eigler + + * tapsets.cxx (query_cu_containing_global_address): Tolerate + way out of range addresses that result in null cudie pointers. + 2005-09-27 Frank Ch. Eigler PR 1368. diff --git a/tapsets.cxx b/tapsets.cxx index 7eaf11f4..fae73e56 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -357,7 +357,9 @@ dwflpp get_module_dwarf(); if (false && sess.verbose) clog << "focusing on cu containing global addr " << a << endl; - query_cu (dwfl_module_addrdie(module, a, &bias), arg); + Dwarf_Die* cudie = dwfl_module_addrdie(module, a, &bias); + if (cudie) // address could be wildly out of range + query_cu (cudie, arg); assert(bias == module_bias); } @@ -2269,9 +2271,8 @@ dwarf_derived_probe::register_patterns(match_node * root) // .process("foo") register_function_and_statement_variants(root->bind(TOK_KERNEL), dw); - // XXX: may need to disable these for 2005-08 release register_function_and_statement_variants(root->bind_str(TOK_MODULE), dw); - register_function_and_statement_variants(root->bind_str(TOK_PROCESS), dw); + // register_function_and_statement_variants(root->bind_str(TOK_PROCESS), dw); } static string -- cgit