summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-04-30 11:45:09 -0400
committerDave Brolley <brolley@redhat.com>2009-04-30 11:45:09 -0400
commitb03d329d5ad9d22d684b61859971a7b12b5e5104 (patch)
treec32105776a6c009ed96f5c1a2205849f8cda647d /elaborate.cxx
parent4c797c5eaeb10d8d22501c5ad82766b69d8cf988 (diff)
parent3ba2eb82cafa938c1c3f7ef9d2da06912a49d8e0 (diff)
downloadsystemtap-steved-b03d329d5ad9d22d684b61859971a7b12b5e5104.tar.gz
systemtap-steved-b03d329d5ad9d22d684b61859971a7b12b5e5104.tar.xz
systemtap-steved-b03d329d5ad9d22d684b61859971a7b12b5e5104.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/elaborate.cxx b/elaborate.cxx
index a1c2e652..f6e1bbbf 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -427,6 +427,9 @@ match_node::find_and_build (systemtap_session& s,
sub_map_iterator_t i = sub.find (match);
if (i == sub.end()) // no match
{
+ if (loc->optional) /* PR10102: to tolerate mismatched optional probe */
+ return;
+
string alternatives;
for (sub_map_iterator_t i = sub.begin(); i != sub.end(); i++)
alternatives += string(" ") + i->first.str();