aboutsummaryrefslogtreecommitdiff
path: root/gdb/or1k-tdep.h
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-tdep.h
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-tdep.h')
-rw-r--r--gdb/or1k-tdep.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/or1k-tdep.h b/gdb/or1k-tdep.h
index d9dc1ac..81d902a 100644
--- a/gdb/or1k-tdep.h
+++ b/gdb/or1k-tdep.h
@@ -52,4 +52,9 @@
#define OR1K_NUM_TAP_RECORDS 8
#define OR1K_FRAME_RED_ZONE_SIZE 2536
+/* Single step based on where the current instruction will take us. */
+extern std::vector<CORE_ADDR> or1k_software_single_step
+ (struct regcache *regcache);
+
+
#endif /* OR1K_TDEP_H */