summaryrefslogtreecommitdiff
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
commitcbc2f1cd213ffcc8d77dbed2654f5eb013182f2f (patch)
treece39f8bd873e33362930059e40fc246ec6a7bd06 /gdb/infcmd.c
parent548fe3aeed52402480a707202c78933b7f0d3748 (diff)
downloadgdb-cbc2f1cd213ffcc8d77dbed2654f5eb013182f2f.tar.gz
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 af6a4db0951..11cdf627937 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);