From e679283a5ae5555db19d613fa3299f96cfc94eb7 Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Mon, 10 Aug 2009 19:29:50 -0400 Subject: Avoid assertion error for no matched function in statement probe * dwflpp.cxx (iterate_over_functions): Return for NULL pointer. * testsuite/systemtap.base/statement.exp: Add test case. --- dwflpp.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dwflpp.cxx') diff --git a/dwflpp.cxx b/dwflpp.cxx index c31fbe4e..d02698b2 100644 --- a/dwflpp.cxx +++ b/dwflpp.cxx @@ -791,6 +791,8 @@ dwflpp::iterate_over_srcfile_lines (char const * srcfile, auto_free_ref free_srcsp(srcsp); get_module_dwarf(); + if (!this->function) + return; if (line_type == RELATIVE) { -- cgit