aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2025-01-14 14:16:22 -0500
committerSimon Marchi <simon.marchi@efficios.com>2025-02-25 11:35:16 -0500
commit7f7e6755c55041766b974d649e2ca841fdb1ed94 (patch)
tree0c32e8154d4a7f9927db7dfaaeec3428eef78c69 /gdb/python
parent6997fbcd06f858800baaa5c0027396c78e0b41c4 (diff)
downloadbinutils-7f7e6755c55041766b974d649e2ca841fdb1ed94.zip
binutils-7f7e6755c55041766b974d649e2ca841fdb1ed94.tar.gz
binutils-7f7e6755c55041766b974d649e2ca841fdb1ed94.tar.bz2
gdb: add target displaced stepping support
The amd-dbgapi library, used in the AMD GPU port, has the capability to prepare and cleanup displaced step operations. In order to use it, add the following target_ops methods: - supports_displaced_step - displaced_step_prepare - displaced_step_finish - displaced_step_restore_all_in_ptid Prior to this patch, displaced stepping preparation and cleanup is done solely by gdbarches. Update infrun to use these new target methods instead of gdbarch hooks. To keep the behavior for other architectures unchanged, make the default implementations of the new target_ops method forward to the thread's gdbarch. displaced_step_restore_all_in_ptid won't be needed for the AMD GPU port, but was added for completeness. It would be weird for infrun displaced stepping code to call target methods except for that one thing where it calls a gdbarch method. Since this patch only adds infrastructure, no behavior change is expected. Change-Id: I07c68dddb5759a55cd137a711d2679eedc0d9285
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions