Make target_ops::has_execution take an 'inferior *' instead of a ptid_t
[deliverable/binutils-gdb.git] / gdb / tracefile.h
index e6d4460d3efd2ccec473c60a0ba79a1137e4dce5..9c7fdea72970b386bdaaafb387aa411d58bd1c4b 100644 (file)
@@ -2,6 +2,8 @@
 #define TRACEFILE_H 1
 
 #include "tracepoint.h"
+#include "target.h"
+#include "process-stratum-target.h"
 
 struct trace_file_writer;
 
@@ -113,7 +115,21 @@ struct trace_file_writer
 
 extern struct trace_file_writer *tfile_trace_file_writer_new (void);
 
-extern void init_tracefile_ops (struct target_ops *ops);
+/* Base class for tracefile related targets.  */
+
+class tracefile_target : public process_stratum_target
+{
+public:
+  tracefile_target () = default;
+
+  int get_trace_status (trace_status *ts) override;
+  bool has_all_memory () override;
+  bool has_memory () override;
+  bool has_stack () override;
+  bool has_registers () override;
+  bool has_execution (inferior *inf) override { return false; }
+  bool thread_alive (ptid_t ptid) override;
+};
 
 extern void tracefile_fetch_registers (struct regcache *regcache, int regno);
 
This page took 0.036313 seconds and 4 git commands to generate.