aboutsummaryrefslogtreecommitdiff
path: root/gdb/or1k-linux-tdep.c
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2020-10-23 13:39:53 +0900
committerStafford Horne <shorne@gmail.com>2021-10-29 05:22:13 +0900
commit5729359001c99ec1c861fde88944926f5fb76ffb (patch)
tree93d423f97ddbee6b1f04c00889724bc521af9160 /gdb/or1k-linux-tdep.c
parenta45b1e66c5da4b8f5f9c39245ad4ea4769e3420a (diff)
downloadgdb-5729359001c99ec1c861fde88944926f5fb76ffb.zip
gdb-5729359001c99ec1c861fde88944926f5fb76ffb.tar.gz
gdb-5729359001c99ec1c861fde88944926f5fb76ffb.tar.bz2
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.
Diffstat (limited to 'gdb/or1k-linux-tdep.c')
-rw-r--r--gdb/or1k-linux-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/or1k-linux-tdep.c b/gdb/or1k-linux-tdep.c
index a71a820..63c4171 100644
--- a/gdb/or1k-linux-tdep.c
+++ b/gdb/or1k-linux-tdep.c
@@ -154,6 +154,8 @@ or1k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
/* GNU/Linux uses the dynamic linker included in the GNU C Library. */
set_gdbarch_skip_solib_resolver (gdbarch, glibc_skip_solib_resolver);
+ set_gdbarch_software_single_step (gdbarch, or1k_software_single_step);
+
/* Enable TLS support. */
set_gdbarch_fetch_tls_load_module_address (gdbarch,
svr4_fetch_objfile_link_map);