summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--tapsets.cxx6
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3473b3ca..ebbef729 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-08-24 Frank Ch. Eigler <fche@elastic.org>
+
+ * tapsets.cxx (query_statement): Leave empty string for unknown file
+ name.
+ (dwarf_derived_probe ctor): Don't synthesize "@filename:lineno"
+ probe point pieces for unknown files/lines.
+
2008-08-21 David Smith <dsmith@redhat.com>
* tapsets.cxx (itrace_derived_probe_group::emit_module_decls):
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)));