mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 10:17:53 +08:00
* 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.
This commit is contained in:
@ -771,10 +771,9 @@ gdbpy_breakpoint_has_py_cond (struct breakpoint_object *bp_obj)
|
||||
get_current_arch ();
|
||||
struct cleanup *cleanup = ensure_python_env (garch, current_language);
|
||||
|
||||
if (py_bp == NULL)
|
||||
return 0;
|
||||
if (py_bp != NULL)
|
||||
has_func = PyObject_HasAttrString (py_bp, stop_func);
|
||||
|
||||
has_func = PyObject_HasAttrString (py_bp, stop_func);
|
||||
do_cleanups (cleanup);
|
||||
|
||||
return has_func;
|
||||
|
Reference in New Issue
Block a user