summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorfche <fche>2007-02-12 15:22:35 +0000
committerfche <fche>2007-02-12 15:22:35 +0000
commita9b2f3a56be453950fa876249f88f3ee885f919e (patch)
tree9401c8f5f2130a4fe71fd726b5c20262127d041d /tapsets.cxx
parent07595edc9270134b32153c3e878442758960f47f (diff)
downloadsystemtap-steved-a9b2f3a56be453950fa876249f88f3ee885f919e.tar.gz
systemtap-steved-a9b2f3a56be453950fa876249f88f3ee885f919e.tar.xz
systemtap-steved-a9b2f3a56be453950fa876249f88f3ee885f919e.zip
2007-02-12 Frank Ch. Eigler <fche@elastic.org>
* tapsets.cxx (query_statement): Tolerate null file name string.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index f223d154..f1fee036 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -2363,7 +2363,8 @@ query_statement (string const & func,
throw semantic_error("incomplete: do not know how to interpret .relative",
q->base_probe->tok);
- q->add_probe_point(func, file, line, scope_die, stmt_addr);
+ q->add_probe_point(func, file ? file : "?",
+ line, scope_die, stmt_addr);
}
catch (const semantic_error& e)
{