trace_point_t -> struct trace_point
Remove misleading typedef and redundant suffix from struct trace_point.
This commit is contained in:
parent
151347585a
commit
73ad5cbb1a
|
@ -82,7 +82,7 @@ COMMAND_HANDLER(handle_trace_point_command)
|
||||||
/* resize array if necessary */
|
/* resize array if necessary */
|
||||||
if (!trace->trace_points || (trace->trace_points_size == trace->num_trace_points))
|
if (!trace->trace_points || (trace->trace_points_size == trace->num_trace_points))
|
||||||
{
|
{
|
||||||
trace->trace_points = realloc(trace->trace_points, sizeof(trace_point_t) * (trace->trace_points_size + 32));
|
trace->trace_points = realloc(trace->trace_points, sizeof(struct trace_point) * (trace->trace_points_size + 32));
|
||||||
trace->trace_points_size += 32;
|
trace->trace_points_size += 32;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,17 +25,17 @@
|
||||||
struct target_s;
|
struct target_s;
|
||||||
struct command_context_s;
|
struct command_context_s;
|
||||||
|
|
||||||
typedef struct trace_point_s
|
struct trace_point
|
||||||
{
|
{
|
||||||
uint32_t address;
|
uint32_t address;
|
||||||
uint64_t hit_counter;
|
uint64_t hit_counter;
|
||||||
} trace_point_t;
|
};
|
||||||
|
|
||||||
typedef struct trace_s
|
typedef struct trace_s
|
||||||
{
|
{
|
||||||
uint32_t num_trace_points;
|
uint32_t num_trace_points;
|
||||||
uint32_t trace_points_size;
|
uint32_t trace_points_size;
|
||||||
trace_point_t *trace_points;
|
struct trace_point *trace_points;
|
||||||
uint32_t trace_history_size;
|
uint32_t trace_history_size;
|
||||||
uint32_t *trace_history;
|
uint32_t *trace_history;
|
||||||
uint32_t trace_history_pos;
|
uint32_t trace_history_pos;
|
||||||
|
|
Loading…
Reference in New Issue