From a58162c257d51ee5309bbd92efe7eda60dbef8aa Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Tue, 8 Sep 2009 18:07:23 +0000 Subject: [PATCH] gdb/ * ia64-tdep.c (ia64_memory_remove_breakpoint): Call do_cleanups before a return. --- gdb/ChangeLog | 5 +++++ gdb/ia64-tdep.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d4cdc95ad54..0283607cf0b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-09-08 Jan Kratochvil + + * ia64-tdep.c (ia64_memory_remove_breakpoint): Call do_cleanups + before a return. + 2009-09-08 Jan Kratochvil * ia64-tdep.c (ia64_memory_insert_breakpoint) diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index d68c04483c8..bc72e405767 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -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; } -- 2.30.2