From: Tom de Vries Date: Tue, 24 Sep 2024 11:06:32 +0000 (+0200) Subject: [gdb/python] Use gdbpy_handle_gdb_exception in valpy_assign_core X-Git-Tag: gdb-16-branchpoint~834 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1863c7d7cf84e3a5ef4eaa880f024c94202eb84;p=thirdparty%2Fbinutils-gdb.git [gdb/python] Use gdbpy_handle_gdb_exception in valpy_assign_core In valpy_assign_core we have: ... catch (const gdb_exception &except) { gdbpy_convert_exception (except); return false; } ... Use instead: ... catch (const gdb_exception &except) { return gdbpy_handle_gdb_exception (false, except); } ... No functional changes. Tested on x86_64-linux. Approved-By: Tom Tromey --- diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index cce7bcbf7cb..119bf9f76d7 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -921,8 +921,7 @@ valpy_assign_core (value_object *self, struct value *new_value) } catch (const gdb_exception &except) { - gdbpy_convert_exception (except); - return false; + return gdbpy_handle_gdb_exception (false, except); } return true;