improve gdb_init() sequence
[fw/openocd] / src / server / gdb_server.h
index de84e200a72f3256e74f4d8098038b95c6336aa4..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
@@ -54,8 +52,9 @@ struct gdb_service
        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)