diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-09-08 18:07:22 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-09-08 18:07:22 +0000 |
commit | 33af831fe34e4fc1dc2fd785bb7d522c5e9f7986 (patch) | |
tree | c986a614cfff326a05b16c3d286d5b91742aa41b | |
parent | 6c0f7d28d7d04265b572da3ed4b89dd51feff238 (diff) | |
download | gdb-33af831fe34e4fc1dc2fd785bb7d522c5e9f7986.tar.gz |
gdb/
* ia64-tdep.c (ia64_memory_remove_breakpoint): Call do_cleanups
before a return.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/ia64-tdep.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d4cdc95ad54..0283607cf0b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. 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; } |