improve gdb_init() sequence
[fw/openocd] / src / server / gdb_server.h
index d3c5f67e9c5a97ebc8bddb152cd7f0cf0d4b3685..041497510cd15b8ec865a13c807d29d8d0d47c1c 100644 (file)
@@ -26,8 +26,6 @@
 #ifndef GDB_SERVER_H
 #define GDB_SERVER_H
 
-#include "target.h"
-
 struct image;
 
 #define GDB_BUFFER_SIZE        16384
@@ -51,11 +49,12 @@ struct gdb_connection
 
 struct gdb_service
 {
-       struct target_s *target;
+       struct target *target;
 };
 
-int gdb_init(void);
-int gdb_register_commands(command_context_t *command_context);
+int gdb_target_add_one(struct target *target);
+int gdb_target_add_all(struct target *target);
+int gdb_register_commands(struct command_context *command_context);
 
 #define ERROR_GDB_BUFFER_TOO_SMALL (-800)
 #define ERROR_GDB_TIMEOUT (-801)