projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b963592
)
fix cleanup handling in m32r_load
author
Tom Tromey
<tromey@redhat.com>
Thu, 30 May 2013 17:05:32 +0000
(17:05 +0000)
committer
Tom Tromey
<tromey@redhat.com>
Thu, 30 May 2013 17:05:32 +0000
(17:05 +0000)
m32r_load is missing a call to do_cleanups along one return path.
* m32r-rom.c (m32r_load): Call do_cleanups at all returns.
gdb/ChangeLog
patch
|
blob
|
history
gdb/m32r-rom.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 53a3eb711ab0d86b1991cb25011acbdd04877da2..fc3829ade6f5043244f2d5a56f5d8a260dae747f 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,3
+1,7
@@
+2013-05-30 Tom Tromey <tromey@redhat.com>
+
+ * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
+
2013-05-30 Tom Tromey <tromey@redhat.com>
* mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
diff --git
a/gdb/m32r-rom.c
b/gdb/m32r-rom.c
index aab59f0d547b4befa4656879494089ba386e40e4..5b27b606b98977fc3b6ecad32bab249cc95c69bd 100644
(file)
--- 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