gdb: or1k: add single step for linux native debugging
authorStafford Horne <shorne@gmail.com>
Fri, 23 Oct 2020 04:39:53 +0000 (13:39 +0900)
committerStafford Horne <shorne@gmail.com>
Thu, 28 Oct 2021 20:22:13 +0000 (05:22 +0900)
commit5729359001c99ec1c861fde88944926f5fb76ffb
tree93d423f97ddbee6b1f04c00889724bc521af9160
parenta45b1e66c5da4b8f5f9c39245ad4ea4769e3420a
gdb: or1k: add single step for linux native debugging

Needed for single stepping in Linux, this adds the or1k implementation
of or1k_software_single_step.  Most of the implementation is borrowed
from the bare metal single step code from or1k_single_step_through_delay
which has been extracted and shared in helper function
or1k_delay_slot_p.
gdb/or1k-linux-tdep.c
gdb/or1k-tdep.c
gdb/or1k-tdep.h