gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 8 Sep 2009 18:07:23 +0000 (18:07 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 8 Sep 2009 18:07:23 +0000 (18:07 +0000)
* ia64-tdep.c (ia64_memory_remove_breakpoint): Call do_cleanups
before a return.

gdb/ChangeLog
gdb/ia64-tdep.c

index d4cdc95..0283607 100644 (file)
@@ -1,5 +1,10 @@
 2009-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
+       * ia64-tdep.c (ia64_memory_remove_breakpoint): Call do_cleanups
+       before a return.
+
+2009-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
        * ia64-tdep.c (ia64_memory_insert_breakpoint)
        (ia64_memory_remove_breakpoint): Return immediately if any of memory
        reads fail.  Do not combine the VAL values.
index d68c044..bc72e40 100644 (file)
@@ -725,6 +725,7 @@ ia64_memory_remove_breakpoint (struct gdbarch *gdbarch,
       warning (_("Cannot remove breakpoint at address %s, "
                 "no break instruction at such address."),
               paddress (gdbarch, bp_tgt->placed_address));
+      do_cleanups (cleanup);
       return -1;
     }