gdbserver: turn target op 'qxfer_osdata' into a method
[deliverable/binutils-gdb.git] / gdbserver / target.h
index 2c818b3fb124b171b82c124a975674cfde4ee43f..53f88a02bac9b0407e7913cb0b584a7c2b873bee 100644 (file)
@@ -70,15 +70,6 @@ class process_target;
    shared code.  */
 struct process_stratum_target
 {
-  /* Fill BUF with an hostio error packet representing the last hostio
-     error.  */
-  void (*hostio_last_error) (char *buf);
-
-  /* Read/Write OS data using qXfer packets.  */
-  int (*qxfer_osdata) (const char *annex, unsigned char *readbuf,
-                      unsigned const char *writebuf, CORE_ADDR offset,
-                      int len);
-
   /* Read/Write extra signal info.  */
   int (*qxfer_siginfo) (const char *annex, unsigned char *readbuf,
                        unsigned const char *writebuf,
@@ -479,6 +470,18 @@ public:
      support the operation.  */
   virtual int get_tls_address (thread_info *thread, CORE_ADDR offset,
                               CORE_ADDR load_module, CORE_ADDR *address);
+
+  /* Fill BUF with an hostio error packet representing the last hostio
+     error.  */
+  virtual void hostio_last_error (char *buf);
+
+  /* Return true if the qxfer_osdata target op is supported.  */
+  virtual bool supports_qxfer_osdata ();
+
+  /* Read/Write OS data using qXfer packets.  */
+  virtual int qxfer_osdata (const char *annex, unsigned char *readbuf,
+                           unsigned const char *writebuf,
+                           CORE_ADDR offset, int len);
 };
 
 extern process_stratum_target *the_target;
This page took 0.023924 seconds and 4 git commands to generate.