diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-08-24 07:57:16 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-08-24 07:57:16 -0400 |
commit | cee35f73e024d1f2eacaa42c25b05075fc9039a3 (patch) | |
tree | 99fe084d454d6a2c8ff7539e7ed2d85603925c9d /tapsets.cxx | |
parent | 41c262f3a37ff68519c4d71234097f63c74ee0eb (diff) | |
download | systemtap-steved-cee35f73e024d1f2eacaa42c25b05075fc9039a3.tar.gz systemtap-steved-cee35f73e024d1f2eacaa42c25b05075fc9039a3.tar.xz systemtap-steved-cee35f73e024d1f2eacaa42c25b05075fc9039a3.zip |
correct probe point reverse-engineering of probes for which we have no source file / line number
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 95a8f967..b924f1fc 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -3395,7 +3395,7 @@ query_statement (string const & func, { try { - q->add_probe_point(func, file ? file : "?", + q->add_probe_point(func, file ? file : "", line, scope_die, stmt_addr); } catch (const semantic_error& e) @@ -4587,9 +4587,11 @@ dwarf_derived_probe::dwarf_derived_probe(const string& funcname, { string retro_name = funcname; if (filename != "") + { retro_name += ("@" + string (filename)); - if (line != -1) + if (line > 0) retro_name += (":" + lex_cast<string> (line)); + } comps.push_back (new probe_point::component (fn_or_stmt, new literal_string (retro_name))); |