aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-arch.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
commit56cc411c4ba10261e0149bdb80d613969c3ab130 (patch)
tree683d852a50581846ce1488f049781ff7ee36871f /gdb/python/py-arch.c
parent8919e1746d5618284d7c16bcc5256bcf813ea030 (diff)
downloadgdb-56cc411c4ba10261e0149bdb80d613969c3ab130.zip
gdb-56cc411c4ba10261e0149bdb80d613969c3ab130.tar.gz
gdb-56cc411c4ba10261e0149bdb80d613969c3ab130.tar.bz2
* 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-arch.c')
-rw-r--r--gdb/python/py-arch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/py-arch.c b/gdb/python/py-arch.c
index 7eb6eea..146a642 100644
--- a/gdb/python/py-arch.c
+++ b/gdb/python/py-arch.c
@@ -200,7 +200,8 @@ archpy_disassemble (PyObject *self, PyObject *args, PyObject *kw)
Py_DECREF (result_list);
ui_file_delete (memfile);
- return gdbpy_convert_exception (except);
+ gdbpy_convert_exception (except);
+ return NULL;
}
as = ui_file_xstrdup (memfile, NULL);