summaryrefslogtreecommitdiff
path: root/gdb/python/py-utils.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-20 20:19:03 +0000
committerTom Tromey <tromey@redhat.com>2013-05-20 20:19:03 +0000
commit5ce3c185948cce3e2d7e1801bb19aac009ca7ebb (patch)
treef09dd04397a554636e53b10fef3ef1fe646fcbef /gdb/python/py-utils.c
parent6a7ee8d8ad61cfb463d7e9bb95dd7dd23f5d8110 (diff)
downloadgdb-5ce3c185948cce3e2d7e1801bb19aac009ca7ebb.tar.gz
* 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.
Diffstat (limited to 'gdb/python/py-utils.c')
-rw-r--r--gdb/python/py-utils.c6
1 files changed, 3 insertions, 3 deletions
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.