This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][PATCH] Fix for Bugzilla #14062 (Exceptions in callbacks posted by gdb.post_event are silently ignored)


>>>>> "Leonardo" == Leonardo Boquillon <leonardo.boquillon@tallertechnologies.com> writes:

Leonardo> -	PyErr_Clear ();
Leonardo> +	{
Leonardo> +	  gdbpy_print_stack ();
Leonardo> +	  PyErr_Clear ();
Leonardo> +	}

gdbpy_print_stack implicitly clears the error, so the call to
PyErr_Clear can just be removed here.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]