From cee35f73e024d1f2eacaa42c25b05075fc9039a3 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Sun, 24 Aug 2008 07:57:16 -0400 Subject: correct probe point reverse-engineering of probes for which we have no source file / line number --- tapsets.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tapsets.cxx') 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 (line)); + } comps.push_back (new probe_point::component (fn_or_stmt, new literal_string (retro_name))); -- cgit