Re: [PATCH v2] [gdb/python] Handle error in gdbpy_initialize_gdb_readline

Tom Tromey <[email protected]>
Newsgroups gmane.comp.gdb.patches
Message-ID <[email protected]>
>>>>> "Tom" == Tom de Vries <[email protected]> writes:

Tom>    if (eval_python_command (code, Py_file_input) == 0)
Tom>      PyOS_ReadlineFunctionPointer = gdbpy_readline_wrapper;
Tom> +  else
Tom> +    {
Tom> +      if (PyErr_Occurred ())
Tom> +	gdbpy_print_stack ();

I don't think the check of PyErr_Occurred is needed, as that's part of
the eval_python_command contract.

Ok with that removed.
Approved-By: Tom Tromey <[email protected]>

Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.