aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:45:19 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:12 -0800
commit73ad5cbb1a6d60ee2209ad9faadd19df0295942a (patch)
tree186415a2ce6e0c34565dd031ffc00f6ac7198566
parent151347585a48ef746d8ffbfed7ba9bd621737b0c (diff)
downloadriscv-openocd-73ad5cbb1a6d60ee2209ad9faadd19df0295942a.zip
riscv-openocd-73ad5cbb1a6d60ee2209ad9faadd19df0295942a.tar.gz
riscv-openocd-73ad5cbb1a6d60ee2209ad9faadd19df0295942a.tar.bz2
trace_point_t -> struct trace_point
Remove misleading typedef and redundant suffix from struct trace_point.
-rw-r--r--src/target/trace.c2
-rw-r--r--src/target/trace.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/target/trace.c b/src/target/trace.c
index 2c25970..7bfe019 100644
--- a/src/target/trace.c
+++ b/src/target/trace.c
@@ -82,7 +82,7 @@ COMMAND_HANDLER(handle_trace_point_command)
/* resize array if necessary */
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;
}
diff --git a/src/target/trace.h b/src/target/trace.h
index f6615f5..9fa8d60 100644
--- a/src/target/trace.h
+++ b/src/target/trace.h
@@ -25,17 +25,17 @@
struct target_s;
struct command_context_s;
-typedef struct trace_point_s
+struct trace_point
{
uint32_t address;
uint64_t hit_counter;
-} trace_point_t;
+};
typedef struct trace_s
{
uint32_t num_trace_points;
uint32_t trace_points_size;
- trace_point_t *trace_points;
+ struct trace_point *trace_points;
uint32_t trace_history_size;
uint32_t *trace_history;
uint32_t trace_history_pos;