]> git.sur5r.net Git - openocd/commitdiff
trace_t -> struct trace
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 17:26:19 +0000 (09:26 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:13 +0000 (11:58 -0800)
Remove misleading typedef and redundant suffix from struct trace.

src/target/target.c
src/target/target.h
src/target/trace.c
src/target/trace.h

index 6f04af695baa44054d4c62fad59d7089a2bfb334..68172f1b2d90db430371605f7c0647f6e331ddff 100644 (file)
@@ -4315,7 +4315,7 @@ static int target_create(Jim_GetOptInfo *goi)
        target->halt_issued                     = false;
 
        /* initialize trace information */
-       target->trace_info = malloc(sizeof(trace_t));
+       target->trace_info = malloc(sizeof(struct trace));
        target->trace_info->num_trace_points         = 0;
        target->trace_info->trace_points_size        = 0;
        target->trace_info->trace_points             = NULL;
index ef3f6ccd748da1e46a5b34f821684d2861a70e3e..3eafc18a30ec7f2db1fbf9e586acdfb3d30fd5e9 100644 (file)
@@ -33,7 +33,7 @@
 #include "command.h"
 
 struct reg_s;
-struct trace_s;
+struct trace;
 struct command_context_s;
 
 
@@ -154,7 +154,7 @@ typedef struct target_s
        struct reg_cache *reg_cache;            /* the first register cache of the target (core regs) */
        struct breakpoint *breakpoints; /* list of breakpoints */
        struct watchpoint *watchpoints; /* list of watchpoints */
-       struct trace_s *trace_info;                     /* generic trace information */
+       struct trace *trace_info;                       /* generic trace information */
        struct debug_msg_receiver *dbgmsg;/* list of debug message receivers */
        uint32_t dbg_msg_enabled;                               /* debug message status */
        void *arch_info;                                        /* architecture specific information */
index 7bfe0191e9de7c0b7afd68f2cfa7be61145e951c..bc6eec7c8ccbef3eb58879daad7868bf423ee201 100644 (file)
@@ -27,7 +27,7 @@
 
 int trace_point(target_t *target, uint32_t number)
 {
-       trace_t *trace = target->trace_info;
+       struct trace *trace = target->trace_info;
 
        LOG_DEBUG("tracepoint: %i", (int)number);
 
@@ -50,7 +50,7 @@ int trace_point(target_t *target, uint32_t number)
 COMMAND_HANDLER(handle_trace_point_command)
 {
        target_t *target = get_current_target(cmd_ctx);
-       trace_t *trace = target->trace_info;
+       struct trace *trace = target->trace_info;
 
        if (argc == 0)
        {
@@ -98,7 +98,7 @@ COMMAND_HANDLER(handle_trace_point_command)
 COMMAND_HANDLER(handle_trace_history_command)
 {
        target_t *target = get_current_target(cmd_ctx);
-       trace_t *trace = target->trace_info;
+       struct trace *trace = target->trace_info;
 
        if (argc > 0)
        {
index 9fa8d606e6af3650e3ef0c02edb962058f4cfabd..cca84d79254e79df030967c81fe6e44e87edd6d1 100644 (file)
@@ -31,7 +31,7 @@ struct trace_point
        uint64_t hit_counter;
 };
 
-typedef struct trace_s
+struct trace
 {
        uint32_t num_trace_points;
        uint32_t trace_points_size;
@@ -40,7 +40,7 @@ typedef struct trace_s
        uint32_t *trace_history;
        uint32_t trace_history_pos;
        int trace_history_overflowed;
-} trace_t;
+};
 
 typedef enum trace_status
 {