From 75eaeba72745c796c3d3ab0374b9f301ad7aae33 Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 18 Oct 2005 04:30:46 +0000 Subject: 2005-10-17 Martin Hunt PR 1482 * tapsets.cxx (emit_registrations): On failure, don't forget to unregister probe 0; --- ChangeLog | 5 +++++ tapsets.cxx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b30301a4..e57bf856 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-10-17 Martin Hunt + PR 1482 + * tapsets.cxx (emit_registrations): On failure, don't + forget to unregister probe 0; + 2005-10-17 Frank Ch. Eigler PR 1338. diff --git a/tapsets.cxx b/tapsets.cxx index 5211d403..c174db2f 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -2556,7 +2556,7 @@ dwarf_derived_probe::emit_registrations (translator_output* o, o->newline(-1) << "}"; // if one failed, must roll back completed registations for this probe - o->newline() << "if (unlikely (rc)) while (--i > 0)"; + o->newline() << "if (unlikely (rc)) while (--i >= 0)"; o->indent(1); if (has_return) { -- cgit