aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python-config.py
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-05-10 08:46:21 +0200
committerTom de Vries <tdevries@suse.de>2024-05-10 08:46:21 +0200
commit408bc9c5fc757bd4b8adb1c3d54ecd672beaedb7 (patch)
tree9560990d965f8dc9477ca40c1d4ad9afd8f421ad /gdb/python/python-config.py
parent65924bda46ffd8d9746ef0100789ddacf3f51097 (diff)
downloadbinutils-408bc9c5fc757bd4b8adb1c3d54ecd672beaedb7.zip
binutils-408bc9c5fc757bd4b8adb1c3d54ecd672beaedb7.tar.gz
binutils-408bc9c5fc757bd4b8adb1c3d54ecd672beaedb7.tar.bz2
[gdb/python] Make gdb.UnwindInfo.add_saved_register more robust (fixup)
In commit 2236c5e384d ("[gdb/python] Make gdb.UnwindInfo.add_saved_register more robust") I added this code in unwind_infopy_add_saved_register: ... if (value->optimized_out () || !value->entirely_available ()) ... which may throw c++ exceptions. This needs to be caught and transformed into a python exception. Fix this by using GDB_PY_HANDLE_EXCEPTION. Tested on x86_64-linux. Approved-By: Tom Tromey <tom@tromey.com> Fixes: 2236c5e384d ("[gdb/python] Make gdb.UnwindInfo.add_saved_register more robust")
Diffstat (limited to 'gdb/python/python-config.py')
0 files changed, 0 insertions, 0 deletions