* ia64-tdep.c (ia64_memory_remove_breakpoint): Call do_cleanups
	before a return.
This commit is contained in:
Jan Kratochvil 2009-09-08 18:07:23 +00:00
parent 06a51eac44
commit a58162c257
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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)

View 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;
}