summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 09:26:19 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:13 -0800
commit4952eadd8f04ca3755c30013abc3ea85e35d8654 (patch)
tree70987539f0a0e9b3cadc6168e4944ede228bcf7b /src
parentd90063ffc54ea042c0ff37e6cec1e95848bf1e26 (diff)
downloadopenocd+libswd-4952eadd8f04ca3755c30013abc3ea85e35d8654.tar.gz
openocd+libswd-4952eadd8f04ca3755c30013abc3ea85e35d8654.tar.bz2
openocd+libswd-4952eadd8f04ca3755c30013abc3ea85e35d8654.tar.xz
openocd+libswd-4952eadd8f04ca3755c30013abc3ea85e35d8654.zip
trace_t -> struct trace
Remove misleading typedef and redundant suffix from struct trace.
Diffstat (limited to 'src')
-rw-r--r--src/target/target.c2
-rw-r--r--src/target/target.h4
-rw-r--r--src/target/trace.c6
-rw-r--r--src/target/trace.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/src/target/target.c b/src/target/target.c
index 6f04af69..68172f1b 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -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;
diff --git a/src/target/target.h b/src/target/target.h
index ef3f6ccd..3eafc18a 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -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 */
diff --git a/src/target/trace.c b/src/target/trace.c
index 7bfe0191..bc6eec7c 100644
--- a/src/target/trace.c
+++ b/src/target/trace.c
@@ -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)
{
diff --git a/src/target/trace.h b/src/target/trace.h
index 9fa8d606..cca84d79 100644
--- a/src/target/trace.h
+++ b/src/target/trace.h
@@ -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
{