watchpoint_t -> struct watchpoint
Remove misleading typedef and redundant suffix from struct watchpoint.
This commit is contained in:
parent
e7f65c5a11
commit
72b421418f
|
@ -1596,7 +1596,7 @@ static int arm11_remove_breakpoint(struct target_s *target,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int arm11_add_watchpoint(struct target_s *target,
|
static int arm11_add_watchpoint(struct target_s *target,
|
||||||
watchpoint_t *watchpoint)
|
struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
FNC_INFO_NOTIMPLEMENTED;
|
FNC_INFO_NOTIMPLEMENTED;
|
||||||
|
|
||||||
|
@ -1604,7 +1604,7 @@ static int arm11_add_watchpoint(struct target_s *target,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int arm11_remove_watchpoint(struct target_s *target,
|
static int arm11_remove_watchpoint(struct target_s *target,
|
||||||
watchpoint_t *watchpoint)
|
struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
FNC_INFO_NOTIMPLEMENTED;
|
FNC_INFO_NOTIMPLEMENTED;
|
||||||
|
|
||||||
|
|
|
@ -520,7 +520,7 @@ int arm7_9_remove_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
|
||||||
* @return Error status if watchpoint set fails or the result of executing the
|
* @return Error status if watchpoint set fails or the result of executing the
|
||||||
* JTAG queue
|
* JTAG queue
|
||||||
*/
|
*/
|
||||||
int arm7_9_set_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
int arm7_9_set_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
int retval = ERROR_OK;
|
int retval = ERROR_OK;
|
||||||
struct arm7_9_common *arm7_9 = target_to_arm7_9(target);
|
struct arm7_9_common *arm7_9 = target_to_arm7_9(target);
|
||||||
|
@ -591,7 +591,7 @@ int arm7_9_set_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
||||||
* @return Error status while trying to unset the watchpoint or the result of
|
* @return Error status while trying to unset the watchpoint or the result of
|
||||||
* executing the JTAG queue
|
* executing the JTAG queue
|
||||||
*/
|
*/
|
||||||
int arm7_9_unset_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
int arm7_9_unset_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
int retval = ERROR_OK;
|
int retval = ERROR_OK;
|
||||||
struct arm7_9_common *arm7_9 = target_to_arm7_9(target);
|
struct arm7_9_common *arm7_9 = target_to_arm7_9(target);
|
||||||
|
@ -639,7 +639,7 @@ int arm7_9_unset_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
||||||
* @param watchpoint Pointer to the watchpoint to be added
|
* @param watchpoint Pointer to the watchpoint to be added
|
||||||
* @return Error status while trying to add the watchpoint
|
* @return Error status while trying to add the watchpoint
|
||||||
*/
|
*/
|
||||||
int arm7_9_add_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
int arm7_9_add_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
struct arm7_9_common *arm7_9 = target_to_arm7_9(target);
|
struct arm7_9_common *arm7_9 = target_to_arm7_9(target);
|
||||||
|
|
||||||
|
@ -672,7 +672,7 @@ int arm7_9_add_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
||||||
* @param watchpoint Pointer to the watchpoint to be removed
|
* @param watchpoint Pointer to the watchpoint to be removed
|
||||||
* @return Result of trying to unset the watchpoint
|
* @return Result of trying to unset the watchpoint
|
||||||
*/
|
*/
|
||||||
int arm7_9_remove_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
int arm7_9_remove_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
int retval = ERROR_OK;
|
int retval = ERROR_OK;
|
||||||
struct arm7_9_common *arm7_9 = target_to_arm7_9(target);
|
struct arm7_9_common *arm7_9 = target_to_arm7_9(target);
|
||||||
|
@ -1770,7 +1770,7 @@ int arm7_9_restart_core(struct target_s *target)
|
||||||
*/
|
*/
|
||||||
void arm7_9_enable_watchpoints(struct target_s *target)
|
void arm7_9_enable_watchpoints(struct target_s *target)
|
||||||
{
|
{
|
||||||
watchpoint_t *watchpoint = target->watchpoints;
|
struct watchpoint *watchpoint = target->watchpoints;
|
||||||
|
|
||||||
while (watchpoint)
|
while (watchpoint)
|
||||||
{
|
{
|
||||||
|
|
|
@ -145,8 +145,8 @@ int arm7_9_run_algorithm(struct target_s *target, int num_mem_params, struct mem
|
||||||
|
|
||||||
int arm7_9_add_breakpoint(struct target_s *target, breakpoint_t *breakpoint);
|
int arm7_9_add_breakpoint(struct target_s *target, breakpoint_t *breakpoint);
|
||||||
int arm7_9_remove_breakpoint(struct target_s *target, breakpoint_t *breakpoint);
|
int arm7_9_remove_breakpoint(struct target_s *target, breakpoint_t *breakpoint);
|
||||||
int arm7_9_add_watchpoint(struct target_s *target, watchpoint_t *watchpoint);
|
int arm7_9_add_watchpoint(struct target_s *target, struct watchpoint *watchpoint);
|
||||||
int arm7_9_remove_watchpoint(struct target_s *target, watchpoint_t *watchpoint);
|
int arm7_9_remove_watchpoint(struct target_s *target, struct watchpoint *watchpoint);
|
||||||
|
|
||||||
void arm7_9_enable_eice_step(target_t *target, uint32_t next_pc);
|
void arm7_9_enable_eice_step(target_t *target, uint32_t next_pc);
|
||||||
void arm7_9_disable_eice_step(target_t *target);
|
void arm7_9_disable_eice_step(target_t *target);
|
||||||
|
|
|
@ -181,8 +181,8 @@ breakpoint_t* breakpoint_find(target_t *target, uint32_t address)
|
||||||
int watchpoint_add(target_t *target, uint32_t address, uint32_t length,
|
int watchpoint_add(target_t *target, uint32_t address, uint32_t length,
|
||||||
enum watchpoint_rw rw, uint32_t value, uint32_t mask)
|
enum watchpoint_rw rw, uint32_t value, uint32_t mask)
|
||||||
{
|
{
|
||||||
watchpoint_t *watchpoint = target->watchpoints;
|
struct watchpoint *watchpoint = target->watchpoints;
|
||||||
watchpoint_t **watchpoint_p = &target->watchpoints;
|
struct watchpoint **watchpoint_p = &target->watchpoints;
|
||||||
int retval;
|
int retval;
|
||||||
char *reason;
|
char *reason;
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ int watchpoint_add(target_t *target, uint32_t address, uint32_t length,
|
||||||
watchpoint = watchpoint->next;
|
watchpoint = watchpoint->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
(*watchpoint_p) = calloc(1, sizeof(watchpoint_t));
|
(*watchpoint_p) = calloc(1, sizeof(struct watchpoint));
|
||||||
(*watchpoint_p)->address = address;
|
(*watchpoint_p)->address = address;
|
||||||
(*watchpoint_p)->length = length;
|
(*watchpoint_p)->length = length;
|
||||||
(*watchpoint_p)->value = value;
|
(*watchpoint_p)->value = value;
|
||||||
|
@ -244,10 +244,10 @@ bye:
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void watchpoint_free(target_t *target, watchpoint_t *watchpoint_remove)
|
static void watchpoint_free(target_t *target, struct watchpoint *watchpoint_remove)
|
||||||
{
|
{
|
||||||
watchpoint_t *watchpoint = target->watchpoints;
|
struct watchpoint *watchpoint = target->watchpoints;
|
||||||
watchpoint_t **watchpoint_p = &target->watchpoints;
|
struct watchpoint **watchpoint_p = &target->watchpoints;
|
||||||
|
|
||||||
while (watchpoint)
|
while (watchpoint)
|
||||||
{
|
{
|
||||||
|
@ -267,8 +267,8 @@ static void watchpoint_free(target_t *target, watchpoint_t *watchpoint_remove)
|
||||||
|
|
||||||
void watchpoint_remove(target_t *target, uint32_t address)
|
void watchpoint_remove(target_t *target, uint32_t address)
|
||||||
{
|
{
|
||||||
watchpoint_t *watchpoint = target->watchpoints;
|
struct watchpoint *watchpoint = target->watchpoints;
|
||||||
watchpoint_t **watchpoint_p = &target->watchpoints;
|
struct watchpoint **watchpoint_p = &target->watchpoints;
|
||||||
|
|
||||||
while (watchpoint)
|
while (watchpoint)
|
||||||
{
|
{
|
||||||
|
@ -290,7 +290,7 @@ void watchpoint_remove(target_t *target, uint32_t address)
|
||||||
|
|
||||||
void watchpoint_clear_target(target_t *target)
|
void watchpoint_clear_target(target_t *target)
|
||||||
{
|
{
|
||||||
watchpoint_t *watchpoint;
|
struct watchpoint *watchpoint;
|
||||||
LOG_DEBUG("Delete all watchpoints for target: %s", target_get_name( target ));
|
LOG_DEBUG("Delete all watchpoints for target: %s", target_get_name( target ));
|
||||||
while ((watchpoint = target->watchpoints) != NULL)
|
while ((watchpoint = target->watchpoints) != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -46,7 +46,7 @@ typedef struct breakpoint_s
|
||||||
int unique_id;
|
int unique_id;
|
||||||
} breakpoint_t;
|
} breakpoint_t;
|
||||||
|
|
||||||
typedef struct watchpoint_s
|
struct watchpoint
|
||||||
{
|
{
|
||||||
uint32_t address;
|
uint32_t address;
|
||||||
uint32_t length;
|
uint32_t length;
|
||||||
|
@ -54,9 +54,9 @@ typedef struct watchpoint_s
|
||||||
uint32_t value;
|
uint32_t value;
|
||||||
enum watchpoint_rw rw;
|
enum watchpoint_rw rw;
|
||||||
int set;
|
int set;
|
||||||
struct watchpoint_s *next;
|
struct watchpoint *next;
|
||||||
int unique_id;
|
int unique_id;
|
||||||
} watchpoint_t;
|
};
|
||||||
|
|
||||||
void breakpoint_clear_target(struct target_s *target);
|
void breakpoint_clear_target(struct target_s *target);
|
||||||
int breakpoint_add(struct target_s *target,
|
int breakpoint_add(struct target_s *target,
|
||||||
|
|
|
@ -1032,7 +1032,7 @@ cortex_m3_remove_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
cortex_m3_set_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
cortex_m3_set_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
int dwt_num = 0;
|
int dwt_num = 0;
|
||||||
uint32_t mask, temp;
|
uint32_t mask, temp;
|
||||||
|
@ -1097,7 +1097,7 @@ cortex_m3_set_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
cortex_m3_unset_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
cortex_m3_unset_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
struct cortex_m3_common_s *cortex_m3 = target_to_cm3(target);
|
struct cortex_m3_common_s *cortex_m3 = target_to_cm3(target);
|
||||||
cortex_m3_dwt_comparator_t *comparator;
|
cortex_m3_dwt_comparator_t *comparator;
|
||||||
|
@ -1134,7 +1134,7 @@ cortex_m3_unset_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
cortex_m3_add_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
cortex_m3_add_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
struct cortex_m3_common_s *cortex_m3 = target_to_cm3(target);
|
struct cortex_m3_common_s *cortex_m3 = target_to_cm3(target);
|
||||||
|
|
||||||
|
@ -1192,7 +1192,7 @@ cortex_m3_add_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
cortex_m3_remove_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
cortex_m3_remove_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
struct cortex_m3_common_s *cortex_m3 = target_to_cm3(target);
|
struct cortex_m3_common_s *cortex_m3 = target_to_cm3(target);
|
||||||
|
|
||||||
|
@ -1216,7 +1216,7 @@ cortex_m3_remove_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
||||||
|
|
||||||
static void cortex_m3_enable_watchpoints(struct target_s *target)
|
static void cortex_m3_enable_watchpoints(struct target_s *target)
|
||||||
{
|
{
|
||||||
watchpoint_t *watchpoint = target->watchpoints;
|
struct watchpoint *watchpoint = target->watchpoints;
|
||||||
|
|
||||||
/* set any pending watchpoints */
|
/* set any pending watchpoints */
|
||||||
while (watchpoint)
|
while (watchpoint)
|
||||||
|
|
|
@ -699,7 +699,7 @@ int mips_m4k_remove_breakpoint(struct target_s *target, breakpoint_t *breakpoint
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mips_m4k_set_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
int mips_m4k_set_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
mips32_common_t *mips32 = target->arch_info;
|
mips32_common_t *mips32 = target->arch_info;
|
||||||
mips32_comparator_t * comparator_list = mips32->data_break_list;
|
mips32_comparator_t * comparator_list = mips32->data_break_list;
|
||||||
|
@ -767,7 +767,7 @@ int mips_m4k_set_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mips_m4k_unset_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
int mips_m4k_unset_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
/* get pointers to arch-specific information */
|
/* get pointers to arch-specific information */
|
||||||
mips32_common_t *mips32 = target->arch_info;
|
mips32_common_t *mips32 = target->arch_info;
|
||||||
|
@ -793,7 +793,7 @@ int mips_m4k_unset_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mips_m4k_add_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
int mips_m4k_add_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
mips32_common_t *mips32 = target->arch_info;
|
mips32_common_t *mips32 = target->arch_info;
|
||||||
|
|
||||||
|
@ -809,7 +809,7 @@ int mips_m4k_add_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mips_m4k_remove_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
int mips_m4k_remove_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
/* get pointers to arch-specific information */
|
/* get pointers to arch-specific information */
|
||||||
mips32_common_t *mips32 = target->arch_info;
|
mips32_common_t *mips32 = target->arch_info;
|
||||||
|
@ -832,7 +832,7 @@ int mips_m4k_remove_watchpoint(struct target_s *target, watchpoint_t *watchpoint
|
||||||
|
|
||||||
void mips_m4k_enable_watchpoints(struct target_s *target)
|
void mips_m4k_enable_watchpoints(struct target_s *target)
|
||||||
{
|
{
|
||||||
watchpoint_t *watchpoint = target->watchpoints;
|
struct watchpoint *watchpoint = target->watchpoints;
|
||||||
|
|
||||||
/* set any pending watchpoints */
|
/* set any pending watchpoints */
|
||||||
while (watchpoint)
|
while (watchpoint)
|
||||||
|
|
|
@ -45,9 +45,9 @@ int mips_m4k_add_breakpoint(struct target_s *target, breakpoint_t *bp);
|
||||||
int mips_m4k_remove_breakpoint(struct target_s *target, breakpoint_t *bp);
|
int mips_m4k_remove_breakpoint(struct target_s *target, breakpoint_t *bp);
|
||||||
|
|
||||||
void mips_m4k_enable_watchpoints(struct target_s *target);
|
void mips_m4k_enable_watchpoints(struct target_s *target);
|
||||||
int mips_m4k_set_watchpoint(struct target_s *target, watchpoint_t *wp);
|
int mips_m4k_set_watchpoint(struct target_s *target, struct watchpoint *wp);
|
||||||
int mips_m4k_unset_watchpoint(struct target_s *target, watchpoint_t *wp);
|
int mips_m4k_unset_watchpoint(struct target_s *target, struct watchpoint *wp);
|
||||||
int mips_m4k_add_watchpoint(struct target_s *target, watchpoint_t *wp);
|
int mips_m4k_add_watchpoint(struct target_s *target, struct watchpoint *wp);
|
||||||
int mips_m4k_remove_watchpoint(struct target_s *target, watchpoint_t *wp);
|
int mips_m4k_remove_watchpoint(struct target_s *target, struct watchpoint *wp);
|
||||||
|
|
||||||
#endif /*MIPS_M4K_H*/
|
#endif /*MIPS_M4K_H*/
|
||||||
|
|
|
@ -611,12 +611,12 @@ int target_remove_breakpoint(struct target_s *target,
|
||||||
}
|
}
|
||||||
|
|
||||||
int target_add_watchpoint(struct target_s *target,
|
int target_add_watchpoint(struct target_s *target,
|
||||||
struct watchpoint_s *watchpoint)
|
struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
return target->type->add_watchpoint(target, watchpoint);
|
return target->type->add_watchpoint(target, watchpoint);
|
||||||
}
|
}
|
||||||
int target_remove_watchpoint(struct target_s *target,
|
int target_remove_watchpoint(struct target_s *target,
|
||||||
struct watchpoint_s *watchpoint)
|
struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
return target->type->remove_watchpoint(target, watchpoint);
|
return target->type->remove_watchpoint(target, watchpoint);
|
||||||
}
|
}
|
||||||
|
@ -2797,7 +2797,7 @@ COMMAND_HANDLER(handle_wp_command)
|
||||||
|
|
||||||
if (argc == 0)
|
if (argc == 0)
|
||||||
{
|
{
|
||||||
watchpoint_t *watchpoint = target->watchpoints;
|
struct watchpoint *watchpoint = target->watchpoints;
|
||||||
|
|
||||||
while (watchpoint)
|
while (watchpoint)
|
||||||
{
|
{
|
||||||
|
|
|
@ -156,7 +156,7 @@ typedef struct target_s
|
||||||
enum target_state state; /* the current backend-state (running, halted, ...) */
|
enum target_state state; /* the current backend-state (running, halted, ...) */
|
||||||
struct reg_cache_s *reg_cache; /* the first register cache of the target (core regs) */
|
struct reg_cache_s *reg_cache; /* the first register cache of the target (core regs) */
|
||||||
struct breakpoint_s *breakpoints; /* list of breakpoints */
|
struct breakpoint_s *breakpoints; /* list of breakpoints */
|
||||||
struct watchpoint_s *watchpoints; /* list of watchpoints */
|
struct watchpoint *watchpoints; /* list of watchpoints */
|
||||||
struct trace_s *trace_info; /* generic trace information */
|
struct trace_s *trace_info; /* generic trace information */
|
||||||
struct debug_msg_receiver_s *dbgmsg;/* list of debug message receivers */
|
struct debug_msg_receiver_s *dbgmsg;/* list of debug message receivers */
|
||||||
uint32_t dbg_msg_enabled; /* debug message status */
|
uint32_t dbg_msg_enabled; /* debug message status */
|
||||||
|
@ -330,14 +330,14 @@ int target_remove_breakpoint(struct target_s *target,
|
||||||
* This routine is a wrapper for target->type->add_watchpoint.
|
* This routine is a wrapper for target->type->add_watchpoint.
|
||||||
*/
|
*/
|
||||||
int target_add_watchpoint(struct target_s *target,
|
int target_add_watchpoint(struct target_s *target,
|
||||||
struct watchpoint_s *watchpoint);
|
struct watchpoint *watchpoint);
|
||||||
/**
|
/**
|
||||||
* Remove the @a watchpoint for @a target.
|
* Remove the @a watchpoint for @a target.
|
||||||
*
|
*
|
||||||
* This routine is a wrapper for target->type->remove_watchpoint.
|
* This routine is a wrapper for target->type->remove_watchpoint.
|
||||||
*/
|
*/
|
||||||
int target_remove_watchpoint(struct target_s *target,
|
int target_remove_watchpoint(struct target_s *target,
|
||||||
struct watchpoint_s *watchpoint);
|
struct watchpoint *watchpoint);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Obtain the registers for GDB.
|
* Obtain the registers for GDB.
|
||||||
|
|
|
@ -137,11 +137,11 @@ struct target_type_s
|
||||||
* However, this method can be invoked on unresponsive targets.
|
* However, this method can be invoked on unresponsive targets.
|
||||||
*/
|
*/
|
||||||
int (*remove_breakpoint)(struct target_s *target, breakpoint_t *breakpoint);
|
int (*remove_breakpoint)(struct target_s *target, breakpoint_t *breakpoint);
|
||||||
int (*add_watchpoint)(struct target_s *target, watchpoint_t *watchpoint);
|
int (*add_watchpoint)(struct target_s *target, struct watchpoint *watchpoint);
|
||||||
/* remove watchpoint. hw will only be updated if the target is currently halted.
|
/* remove watchpoint. hw will only be updated if the target is currently halted.
|
||||||
* However, this method can be invoked on unresponsive targets.
|
* However, this method can be invoked on unresponsive targets.
|
||||||
*/
|
*/
|
||||||
int (*remove_watchpoint)(struct target_s *target, watchpoint_t *watchpoint);
|
int (*remove_watchpoint)(struct target_s *target, struct watchpoint *watchpoint);
|
||||||
|
|
||||||
/* target algorithm support */
|
/* target algorithm support */
|
||||||
int (*run_algorithm_imp)(struct target_s *target, int num_mem_params, struct mem_param *mem_params, int num_reg_params, struct reg_param *reg_param, uint32_t entry_point, uint32_t exit_point, int timeout_ms, void *arch_info);
|
int (*run_algorithm_imp)(struct target_s *target, int num_mem_params, struct mem_param *mem_params, int num_reg_params, struct reg_param *reg_param, uint32_t entry_point, uint32_t exit_point, int timeout_ms, void *arch_info);
|
||||||
|
|
|
@ -64,7 +64,7 @@ static int xscale_restore_context(target_t *);
|
||||||
static int xscale_get_reg(reg_t *reg);
|
static int xscale_get_reg(reg_t *reg);
|
||||||
static int xscale_set_reg(reg_t *reg, uint8_t *buf);
|
static int xscale_set_reg(reg_t *reg, uint8_t *buf);
|
||||||
static int xscale_set_breakpoint(struct target_s *, breakpoint_t *);
|
static int xscale_set_breakpoint(struct target_s *, breakpoint_t *);
|
||||||
static int xscale_set_watchpoint(struct target_s *, watchpoint_t *);
|
static int xscale_set_watchpoint(struct target_s *, struct watchpoint *);
|
||||||
static int xscale_unset_breakpoint(struct target_s *, breakpoint_t *);
|
static int xscale_unset_breakpoint(struct target_s *, breakpoint_t *);
|
||||||
static int xscale_read_trace(target_t *);
|
static int xscale_read_trace(target_t *);
|
||||||
|
|
||||||
|
@ -1163,7 +1163,7 @@ static int xscale_disable_single_step(struct target_s *target)
|
||||||
|
|
||||||
static void xscale_enable_watchpoints(struct target_s *target)
|
static void xscale_enable_watchpoints(struct target_s *target)
|
||||||
{
|
{
|
||||||
watchpoint_t *watchpoint = target->watchpoints;
|
struct watchpoint *watchpoint = target->watchpoints;
|
||||||
|
|
||||||
while (watchpoint)
|
while (watchpoint)
|
||||||
{
|
{
|
||||||
|
@ -2226,7 +2226,7 @@ static int xscale_remove_breakpoint(struct target_s *target, breakpoint_t *break
|
||||||
}
|
}
|
||||||
|
|
||||||
static int xscale_set_watchpoint(struct target_s *target,
|
static int xscale_set_watchpoint(struct target_s *target,
|
||||||
watchpoint_t *watchpoint)
|
struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
struct xscale_common_s *xscale = target_to_xscale(target);
|
struct xscale_common_s *xscale = target_to_xscale(target);
|
||||||
uint8_t enable = 0;
|
uint8_t enable = 0;
|
||||||
|
@ -2282,7 +2282,7 @@ static int xscale_set_watchpoint(struct target_s *target,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int xscale_add_watchpoint(struct target_s *target,
|
static int xscale_add_watchpoint(struct target_s *target,
|
||||||
watchpoint_t *watchpoint)
|
struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
struct xscale_common_s *xscale = target_to_xscale(target);
|
struct xscale_common_s *xscale = target_to_xscale(target);
|
||||||
|
|
||||||
|
@ -2308,7 +2308,7 @@ static int xscale_add_watchpoint(struct target_s *target,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int xscale_unset_watchpoint(struct target_s *target,
|
static int xscale_unset_watchpoint(struct target_s *target,
|
||||||
watchpoint_t *watchpoint)
|
struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
struct xscale_common_s *xscale = target_to_xscale(target);
|
struct xscale_common_s *xscale = target_to_xscale(target);
|
||||||
reg_t *dbcon = &xscale->reg_cache->reg_list[XSCALE_DBCON];
|
reg_t *dbcon = &xscale->reg_cache->reg_list[XSCALE_DBCON];
|
||||||
|
@ -2343,7 +2343,7 @@ static int xscale_unset_watchpoint(struct target_s *target,
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int xscale_remove_watchpoint(struct target_s *target, watchpoint_t *watchpoint)
|
static int xscale_remove_watchpoint(struct target_s *target, struct watchpoint *watchpoint)
|
||||||
{
|
{
|
||||||
struct xscale_common_s *xscale = target_to_xscale(target);
|
struct xscale_common_s *xscale = target_to_xscale(target);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue