From 56cc411c4ba10261e0149bdb80d613969c3ab130 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 20 May 2013 20:19:03 +0000 Subject: * 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. --- gdb/python/py-utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/python/py-utils.c') diff --git a/gdb/python/py-utils.c b/gdb/python/py-utils.c index 890b65d346e..9188e3883ac 100644 --- a/gdb/python/py-utils.c +++ b/gdb/python/py-utils.c @@ -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. -- cgit v1.2.1