aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python-internal.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-20 20:24:49 +0000
committerTom Tromey <tromey@redhat.com>2013-05-20 20:24:49 +0000
commitb86af38a5a769f23d1af78761c654d68703c6237 (patch)
treef0b939b8e2ee986c74feff7b493e679a6a226b10 /gdb/python/python-internal.h
parente19d3afbf8ff364534b0be74980377113082d02f (diff)
downloadfsf-binutils-gdb-b86af38a5a769f23d1af78761c654d68703c6237.zip
fsf-binutils-gdb-b86af38a5a769f23d1af78761c654d68703c6237.tar.gz
fsf-binutils-gdb-b86af38a5a769f23d1af78761c654d68703c6237.tar.bz2
* python/py-inferior.c (gdbpy_inferiors): Update. Hoist
get_addr_from_python calls out of TRY_CATCH. (infpy_write_memory, infpy_search_memory): Likewise. * python/py-utils.c (get_addr_from_python): Return negative value on error. Use TRY_CATCH. * python/python-internal.h (get_addr_from_python): Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
Diffstat (limited to 'gdb/python/python-internal.h')
-rw-r--r--gdb/python/python-internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index 2e09096..29c22f7 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -433,7 +433,8 @@ extern PyObject *gdbpy_gdberror_exc;
extern void gdbpy_convert_exception (struct gdb_exception)
CPYCHECKER_SETS_EXCEPTION;
-int get_addr_from_python (PyObject *obj, CORE_ADDR *addr);
+int get_addr_from_python (PyObject *obj, CORE_ADDR *addr)
+ CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION;
PyObject *gdb_py_object_from_longest (LONGEST l);
PyObject *gdb_py_object_from_ulongest (ULONGEST l);