diff options
author | Tom Tromey <tromey@redhat.com> | 2011-06-27 19:21:51 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-06-27 19:21:51 +0000 |
commit | 5fe41fbfa22275d2a277b408bf52fedec34e8336 (patch) | |
tree | 9aed1be88020a4add3cfcbe7562642ad3236d91a /gdb/valops.c | |
parent | 57eb9b5086fe082ad965e75d199dd9d536e54250 (diff) | |
download | gdb-5fe41fbfa22275d2a277b408bf52fedec34e8336.zip gdb-5fe41fbfa22275d2a277b408bf52fedec34e8336.tar.gz gdb-5fe41fbfa22275d2a277b408bf52fedec34e8336.tar.bz2 |
* valops.c (find_overload_match): Call do_cleanups before early
return.
* top.c (execute_command): Call do_cleanups before early return.
(command_loop): Likewise.
* stack.c (backtrace_command): Make a null cleanup early. Don't
conditionally call do_cleanups.
* python/py-value.c (TRY_CATCH): Move cleanup handling into
TRY_CATCH.
* python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
so cleanups are always run.
* mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
* findcmd.c (parse_find_args): Call do_cleanups on early return
path.
* dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
Don't conditionally call do_cleanups.
* cli/cli-script.c (execute_user_command): Initialize 'old_chain'
later.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index f5458ef..803b73c 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -2670,6 +2670,7 @@ find_overload_match (struct type **arg_types, int nargs, if (func_name == NULL) { *symp = fsym; + do_cleanups (all_cleanups); return 0; } |