gdbserver: turn target op 'kill' into a method
[deliverable/binutils-gdb.git] / gdbserver / target.h
index bd99737d4f142bb79380490b9d1c0eb4c87b0c64..0f3cb35f453766fa0889d59349a0dfdab645ff2d 100644 (file)
@@ -70,10 +70,6 @@ class process_target;
    shared code.  */
 struct process_stratum_target
 {
-  /* Kill process PROC.  Return -1 on failure, and 0 on success.  */
-
-  int (*kill) (process_info *proc);
-
   /* Detach from process PROC.  Return -1 on failure, and 0 on
      success.  */
 
@@ -488,6 +484,9 @@ public:
      Returns -1 if attaching is unsupported, 0 on success, and calls
      error() otherwise.  */
   virtual int attach (unsigned long pid) = 0;
+
+  /* Kill process PROC.  Return -1 on failure, and 0 on success.  */
+  virtual int kill (process_info *proc) = 0;
 };
 
 extern process_stratum_target *the_target;
This page took 0.023117 seconds and 4 git commands to generate.