diff options
author | Tom Tromey <tromey@redhat.com> | 2011-06-27 19:21:48 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-06-27 19:21:48 +0000 |
commit | 60595f5820e3987b84b49887de7ce27aa7c13430 (patch) | |
tree | 1d410f0e697d22f7092a01f3e2f00e0aec2d3b8b /gdb/findcmd.c | |
parent | f79d447e41fbeb163044c365335b08f8d363c854 (diff) | |
download | gdb-60595f5820e3987b84b49887de7ce27aa7c13430.tar.gz |
* 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/findcmd.c')
-rw-r--r-- | gdb/findcmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/findcmd.c b/gdb/findcmd.c index c21c02895a7..0255613e493 100644 --- a/gdb/findcmd.c +++ b/gdb/findcmd.c @@ -132,6 +132,7 @@ parse_find_args (char *args, ULONGEST *max_countp, len = value_as_long (v); if (len == 0) { + do_cleanups (old_cleanups); printf_filtered (_("Empty search range.\n")); return; } |