From f0e6dc6304d8fea1e5fac151581f5deba0b07833 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 23 Apr 2008 10:23:20 -0400 Subject: fix overload-detection uninitialized variable bug Reported-By: Peter Teoh --- ChangeLog | 8 +++++++- tapsets.cxx | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bf638e8b..6ccf17fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ +2008-04-23 Frank Ch. Eigler + + * tapsets.cxx (common_probe_entryfn_prologue): Clear + overload-related context vars. + 2008-04-22 hunt - * staprun.8.in: Add documentation for -d option. + + * staprun.8.in: Add documentation for -d option. 2008-04-22 David Smith diff --git a/tapsets.cxx b/tapsets.cxx index 764f678e..6e776a58 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -216,6 +216,10 @@ common_probe_entryfn_prologue (translator_output* o, string statestr, o->newline() << "#ifdef STP_TIMING"; o->newline() << "c->statp = 0;"; o->newline() << "#endif"; + o->newline() << "#ifdef STP_OVERLOAD"; + o->newline() << "c->cycles_sum = 0;"; + o->newline() << "c->cycles_base = 0;"; + o->newline() << "#endif"; } -- cgit