Remove misleading typedef and redundant suffix from struct trace.
target->halt_issued = false;
/* initialize trace information */
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;
target->trace_info->num_trace_points = 0;
target->trace_info->trace_points_size = 0;
target->trace_info->trace_points = NULL;
#include "command.h"
struct reg_s;
#include "command.h"
struct reg_s;
struct command_context_s;
struct command_context_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 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 */
struct debug_msg_receiver *dbgmsg;/* list of debug message receivers */
uint32_t dbg_msg_enabled; /* debug message status */
void *arch_info; /* architecture specific information */
int trace_point(target_t *target, uint32_t number)
{
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);
LOG_DEBUG("tracepoint: %i", (int)number);
COMMAND_HANDLER(handle_trace_point_command)
{
target_t *target = get_current_target(cmd_ctx);
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;
COMMAND_HANDLER(handle_trace_history_command)
{
target_t *target = get_current_target(cmd_ctx);
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;
{
uint32_t num_trace_points;
uint32_t trace_points_size;
{
uint32_t num_trace_points;
uint32_t trace_points_size;
uint32_t *trace_history;
uint32_t trace_history_pos;
int trace_history_overflowed;
uint32_t *trace_history;
uint32_t trace_history_pos;
int trace_history_overflowed;
typedef enum trace_status
{
typedef enum trace_status
{