mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 02:06:48 +08:00
* 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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user