diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tapsets.cxx | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2005-10-17 Martin Hunt <hunt@redhat.com> + PR 1482 + * tapsets.cxx (emit_registrations): On failure, don't + forget to unregister probe 0; + 2005-10-17 Frank Ch. Eigler <fche@elastic.org> 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) { |