From cf314c0fcb625876d8440291af6a21b86abf66f4 Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Thu, 22 May 2008 07:40:24 -0400 Subject: PR5643: fix .statement(NUM) regression --- tapsets.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tapsets.cxx') diff --git a/tapsets.cxx b/tapsets.cxx index f3f9b590..96999d26 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -2527,6 +2527,15 @@ dwflpp::iterate_over_functions (int (* callback)(Dwarf_Die * func, void * arg), } } } + else if (q->has_statement_num) // searching all for kernel.statement + { + for (cu_function_cache_t::iterator it = v->begin(); it != v->end(); it++) + { + Dwarf_Die die = it->second; + rc = (*callback)(& die, data); + if (rc != DWARF_CB_OK) break; + } + } else // not a wildcard and no match in this CU { // do nothing -- cgit