* python/py-arch.c (archpy_disassemble): Update.
* python/py-type.c (typy_get_composite, typy_lookup_typename) (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION. * python/py-utils.c (gdbpy_convert_exception): Return 'void'. * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New macro. (GDB_PY_HANDLE_EXCEPTION): Update. (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
This commit is contained in:
parent
8919e1746d
commit
56cc411c4b
5 changed files with 35 additions and 27 deletions
|
@ -294,9 +294,9 @@ gdbpy_exception_to_string (PyObject *ptype, PyObject *pvalue)
|
|||
|
||||
/* Convert a GDB exception to the appropriate Python exception.
|
||||
|
||||
This sets the Python error indicator, and returns NULL. */
|
||||
This sets the Python error indicator. */
|
||||
|
||||
PyObject *
|
||||
void
|
||||
gdbpy_convert_exception (struct gdb_exception exception)
|
||||
{
|
||||
PyObject *exc_class;
|
||||
|
@ -308,7 +308,7 @@ gdbpy_convert_exception (struct gdb_exception exception)
|
|||
else
|
||||
exc_class = gdbpy_gdb_error;
|
||||
|
||||
return PyErr_Format (exc_class, "%s", exception.message);
|
||||
PyErr_Format (exc_class, "%s", exception.message);
|
||||
}
|
||||
|
||||
/* Converts OBJ to a CORE_ADDR value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue