diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2008-05-22 07:40:24 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-05-22 07:42:48 -0400 |
commit | cf314c0fcb625876d8440291af6a21b86abf66f4 (patch) | |
tree | d8d4625d0060c04adfb311b30405d75dbd5c1662 | |
parent | dbb280c79ba5b82f125153f067cbe6fa24aaae0c (diff) | |
download | systemtap-steved-cf314c0fcb625876d8440291af6a21b86abf66f4.tar.gz systemtap-steved-cf314c0fcb625876d8440291af6a21b86abf66f4.tar.xz systemtap-steved-cf314c0fcb625876d8440291af6a21b86abf66f4.zip |
PR5643: fix .statement(NUM) regression
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tapsets.cxx | 9 |
2 files changed, 14 insertions, 0 deletions
@@ -1,4 +1,9 @@ +2008-05-22 Wenji Huang <wenji.huang@oracle.com> + + * tapsets.cxx (iterate_over_functions): Fix .statement(NUM) regression. + 2008-05-22 Ananth N Mavinakayanahalli <ananth@in.ibm.com> + * tapset/ppc64/registers.stp: Support powerpc register + arg lookup * stapfuncs.5.in: Add powerpc bits; indicate scope of uarg_* access 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 |