]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdbserver/target.h
gdbserver: turn target op 'read_loadmap' into a method
[thirdparty/binutils-gdb.git] / gdbserver / target.h
index 96d986a09abb4076cc924c81ce1c34c84c0db630..f69bd9d0e01aec92f3d5025e01828b56ae0992a9 100644 (file)
@@ -70,10 +70,6 @@ class process_target;
    shared code.  */
 struct process_stratum_target
 {
-  /* Read loadmaps.  Read LEN bytes at OFFSET into a buffer at MYADDR.  */
-  int (*read_loadmap) (const char *annex, CORE_ADDR offset,
-                      unsigned char *myaddr, unsigned int len);
-
   /* Target specific qSupported support.  FEATURES is an array of
      features with COUNT elements.  */
   void (*process_qsupported) (char **features, int count);
@@ -486,6 +482,13 @@ public:
 
   /* Returns the core given a thread, or -1 if not known.  */
   virtual int core_of_thread (ptid_t ptid);
+
+  /* Returns true if the read_loadmap target op is supported.  */
+  virtual bool supports_read_loadmap ();
+
+  /* Read loadmaps.  Read LEN bytes at OFFSET into a buffer at MYADDR.  */
+  virtual int read_loadmap (const char *annex, CORE_ADDR offset,
+                           unsigned char *myaddr, unsigned int len);
 };
 
 extern process_stratum_target *the_target;