X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftarget%2Ftarget.h;h=b2c908a82c349d9e759bbd9deeb756107084215e;hb=d0dee7ccafcf87259fadf6c5de43df8583b0e885;hp=3eafc18a30ec7f2db1fbf9e586acdfb3d30fd5e9;hpb=4952eadd8f04ca3755c30013abc3ea85e35d8654;p=fw%2Fopenocd diff --git a/src/target/target.h b/src/target/target.h index 3eafc18a3..b2c908a82 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -32,7 +32,7 @@ #include "algorithm.h" #include "command.h" -struct reg_s; +struct reg; struct trace; struct command_context_s; @@ -124,13 +124,10 @@ struct working_area struct working_area *next; }; -// target_type.h contains the full definitionof struct target_type_s -struct target_type_s; -typedef struct target_type_s target_type_t; - +// target_type.h contains the full definitionof struct target_type typedef struct target_s { - target_type_t *type; /* target type definition (name, access functions) */ + struct target_type *type; /* target type definition (name, access functions) */ const char *cmd_name; /* tcl Name of target */ int target_number; /* DO NOT USE! field to be removed in 2010 */ struct jtag_tap *tap; /* where on the jtag chain is this */ @@ -342,7 +339,7 @@ int target_remove_watchpoint(struct target_s *target, * This routine is a wrapper for target->type->get_gdb_reg_list. */ int target_get_gdb_reg_list(struct target_s *target, - struct reg_s **reg_list[], int *reg_list_size); + struct reg **reg_list[], int *reg_list_size); /** * Step the target.