diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:19:03 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:19:03 +0000 |
commit | 56cc411c4ba10261e0149bdb80d613969c3ab130 (patch) | |
tree | 683d852a50581846ce1488f049781ff7ee36871f /gdb/python/py-utils.c | |
parent | 8919e1746d5618284d7c16bcc5256bcf813ea030 (diff) | |
download | binutils-gdb-56cc411c4ba10261e0149bdb80d613969c3ab130.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.c | 6 |
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. |