improve gdb_init() sequence
[fw/openocd] / src / server / gdb_server.h
index 4513e8a06adfdb0fa28ba9055fc52da6ed6eae48..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,7 +52,8 @@ struct gdb_service
        struct target *target;
 };
 
-int gdb_init(void);
+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)