summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2009-08-10 19:29:50 -0400
committerWenji Huang <wenji.huang@oracle.com>2009-08-10 19:29:50 -0400
commite679283a5ae5555db19d613fa3299f96cfc94eb7 (patch)
treedbe790f3244fe69af6c833f7995242dfcce7d791 /dwflpp.cxx
parentaeb2727bd6742d8e4ff98882e57078f72da21b68 (diff)
downloadsystemtap-steved-e679283a5ae5555db19d613fa3299f96cfc94eb7.tar.gz
systemtap-steved-e679283a5ae5555db19d613fa3299f96cfc94eb7.tar.xz
systemtap-steved-e679283a5ae5555db19d613fa3299f96cfc94eb7.zip
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.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r--dwflpp.cxx2
1 files changed, 2 insertions, 0 deletions
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<Dwarf_Line**> free_srcsp(srcsp);
get_module_dwarf();
+ if (!this->function)
+ return;
if (line_type == RELATIVE)
{