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.
This commit is contained in:
parent
8733d1bff8
commit
faab992242
4 changed files with 15 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue