aboutsummaryrefslogtreecommitdiff
path: root/gdb/m32r-rom.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-30 17:05:32 +0000
committerTom Tromey <tromey@redhat.com>2013-05-30 17:05:32 +0000
commit4bbc010a2d22fd94bdf00fa0568481701e69eb69 (patch)
treedc7e027c4173cc43e7af25eeb7ad2bda36e1177e /gdb/m32r-rom.c
parentb963592585c05fcfd6817584a9f4e10d038c043a (diff)
downloadfsf-binutils-gdb-4bbc010a2d22fd94bdf00fa0568481701e69eb69.zip
fsf-binutils-gdb-4bbc010a2d22fd94bdf00fa0568481701e69eb69.tar.gz
fsf-binutils-gdb-4bbc010a2d22fd94bdf00fa0568481701e69eb69.tar.bz2
fix cleanup handling in m32r_load
m32r_load is missing a call to do_cleanups along one return path. * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
Diffstat (limited to 'gdb/m32r-rom.c')
-rw-r--r--gdb/m32r-rom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/m32r-rom.c b/gdb/m32r-rom.c
index aab59f0..5b27b60 100644
--- a/gdb/m32r-rom.c
+++ b/gdb/m32r-rom.c
@@ -167,6 +167,7 @@ m32r_load (char *filename, int from_tty)
if (!(catch_errors (m32r_load_1, abfd, "Load aborted!\n", RETURN_MASK_ALL)))
{
monitor_printf ("q\n");
+ do_cleanups (cleanup);
return;
}
#endif