From 6e3347a9815f4a457b6393a22f21b6f2c6b588af Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 2 Jun 2006 18:09:29 +0000 Subject: 2006-06-02 Frank Ch. Eigler PR 2645. * stapprobes.5.in: Document "?" probe point suffix. * parse.cxx (parse_probe_point): Recognize "?" optional suffix. * elaborate.cxx (derive_probes): Observe probe_point->optional. * staptree.h, staptree.cxx: Corresponding changes. * tapsets.cxx (never_derived_probe, never_builder): New classes. (register_standard_tapsets): Support "never" probe point. * testsuite/buildok/six.stp, parseok/five.stp: Modifed tests. * translate.cxx (emit_module_init): Format "-t" (benchmarking) cycle-time reports similarly to "-v" (verbose) times. --- elaborate.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elaborate.cxx') diff --git a/elaborate.cxx b/elaborate.cxx index 82e767e5..73ac6591 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -494,7 +494,7 @@ derive_probes (systemtap_session& s, s.pattern_root->find_and_build (s, p, loc, 0, dps); unsigned num_atend = dps.size(); - if (num_atbegin == num_atend) // nothing new derived! + if (! loc->optional && num_atbegin == num_atend) // nothing new derived! throw semantic_error ("no match for probe point"); } catch (const semantic_error& e) -- cgit