gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / displaced-stepping.h
index 7bb02b3bbfc736e1a0984e80ec97bba859fe9ea2..515d4b19034aaeb24ff3985798cad9bde923a04c 100644 (file)
@@ -6,6 +6,7 @@
 
 struct gdbarch;
 struct thread_info;
+struct target_ops;
 
 enum displaced_step_prepare_status
 {
@@ -142,9 +143,22 @@ struct multiple_displaced_buffer_manager
   displaced_step_finish_status finish (gdbarch *arch, thread_info *thread,
                                       gdb_signal sig);
 
+  CORE_ADDR first_buf_addr () const
+    {
+      return m_buffers[0].m_buffer_addr;
+    }
+
 private:
   std::vector<displaced_step_buffer_state> m_buffers;
 };
 
+bool default_supports_displaced_step (target_ops *target, thread_info *thread);
+
+displaced_step_prepare_status
+  default_displaced_step_prepare (target_ops *target, thread_info *thread);
+
+displaced_step_finish_status
+  default_displaced_step_finish (target_ops *target, thread_info *thread,
+                                gdb_signal sig);
 
 #endif /* DISPLACED_STEPPING_H */
This page took 0.025184 seconds and 4 git commands to generate.