Convert struct target_ops to C++
[deliverable/binutils-gdb.git] / gdb / tracefile.h
index db454e310774c48e930fbc9cd4b8bd17f3667121..accd038ebd0911dff8fb2e579b8d8ae002cc8fdf 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef TRACEFILE_H
 #define TRACEFILE_H 1
 
-#include "defs.h"
 #include "tracepoint.h"
+#include "target.h"
 
 struct trace_file_writer;
 
@@ -85,6 +85,9 @@ struct trace_file_write_ops
   void (*write_uploaded_tp) (struct trace_file_writer *self,
                             struct uploaded_tp *tp);
 
+  /* Write target description.  */
+  void (*write_tdesc) (struct trace_file_writer *self);
+
   /* Write to mark the end of the definition part.  */
   void (*write_definition_end) (struct trace_file_writer *self);
 
@@ -111,6 +114,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 target_ops
+{
+public:
+  tracefile_target ();
+
+  int get_trace_status (trace_status *ts) override;
+  int has_all_memory () override;
+  int has_memory () override;
+  int has_stack () override;
+  int has_registers () override;
+  int thread_alive (ptid_t ptid) override;
+};
+
+extern void tracefile_fetch_registers (struct regcache *regcache, int regno);
 
 #endif /* TRACEFILE_H */
This page took 0.028223 seconds and 4 git commands to generate.