aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-05-05 16:54:26 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-05-05 16:54:26 +0000
commitfaab992242207dfee20afc307aabb28e6e6bfe7f (patch)
treeb57416e33008c176f719796d71ef22afb90db97b /gdb/infcmd.c
parent8733d1bff87f31293dccdd5eb8806dbb7f048140 (diff)
downloadgdb-faab992242207dfee20afc307aabb28e6e6bfe7f.zip
gdb-faab992242207dfee20afc307aabb28e6e6bfe7f.tar.gz
gdb-faab992242207dfee20afc307aabb28e6e6bfe7f.tar.bz2
gdb/
* event-top.c (display_gdb_prompt): Call missing do_cleanups. * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP. * symfile.c (symfile_bfd_open): New variable back_to. Do not leave a stale cleanup. Fix double free of NAME.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index af6a4db..11cdf62 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1452,7 +1452,7 @@ get_return_value (struct value *function, struct type *value_type)
if (!stop_regs)
{
stop_regs = regcache_dup (get_current_regcache ());
- cleanup = make_cleanup_regcache_xfree (stop_regs);
+ make_cleanup_regcache_xfree (stop_regs);
}
gdbarch = get_regcache_arch (stop_regs);