summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-03-09 17:23:05 -0700
committerJosh Stone <jistone@redhat.com>2009-03-09 17:23:05 -0700
commitc3add01f692e698995a62c13e154bab35d9212df (patch)
tree712e126f28597f26964af6c1d584af23f10c6e79 /tapsets.cxx
parentba4e4ff4ba0206bb707538bbfb5e07d3cca33d5b (diff)
downloadsystemtap-steved-c3add01f692e698995a62c13e154bab35d9212df.tar.gz
systemtap-steved-c3add01f692e698995a62c13e154bab35d9212df.tar.xz
systemtap-steved-c3add01f692e698995a62c13e154bab35d9212df.zip
Update location of c->probe_point reset
The probe_point clear was nested in the overload processing code, I believe accidentally. This just makes it always cleared on probe exit.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index d99eebe2..18bd75f5 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -300,7 +300,6 @@ common_probe_entryfn_epilogue (translator_output* o,
o->newline() << "c->cycles_base = cycles_atend;";
o->newline() << "c->cycles_sum = 0;";
- o->newline() << "c->probe_point = 0;"; // vacated
o->newline(-1) << "}";
o->newline(-1) << "}";
o->newline() << "#endif";
@@ -309,6 +308,7 @@ common_probe_entryfn_epilogue (translator_output* o,
o->newline(-1) << "}";
o->newline() << "#endif";
+ o->newline() << "c->probe_point = 0;"; // vacated
o->newline() << "if (unlikely (c->last_error && c->last_error[0])) {";
o->newline(1) << "if (c->last_stmt != NULL)";
o->newline(1) << "_stp_softerror (\"%s near %s\", c->last_error, c->last_stmt);";