From: Zachary T Welch Date: Fri, 13 Nov 2009 17:15:32 +0000 (-0800) Subject: breakpoint_t -> struct breakpoint X-Git-Tag: v0.4.0-rc1~637 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=53c05c8b1d5718b2acf5dbe0eb517dd427340041;p=openocd breakpoint_t -> struct breakpoint Remove misleading typedef and redundant suffix from struct breakpoint. --- diff --git a/src/target/arm11.c b/src/target/arm11.c index 549f4767..42c33af7 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -833,7 +833,7 @@ static int arm11_resume(struct target_s *target, int current, { /* check if one matches PC and step over it if necessary */ - breakpoint_t * bp; + struct breakpoint * bp; for (bp = target->breakpoints; bp; bp = bp->next) { @@ -1552,7 +1552,7 @@ static int arm11_checksum_memory(struct target_s *target, * rw: 0 = write, 1 = read, 2 = access */ static int arm11_add_breakpoint(struct target_s *target, - breakpoint_t *breakpoint) + struct breakpoint *breakpoint) { FNC_INFO; @@ -1584,7 +1584,7 @@ static int arm11_add_breakpoint(struct target_s *target, } static int arm11_remove_breakpoint(struct target_s *target, - breakpoint_t *breakpoint) + struct breakpoint *breakpoint) { FNC_INFO; diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c index 19244de3..26b09c7d 100644 --- a/src/target/arm7_9_common.c +++ b/src/target/arm7_9_common.c @@ -66,7 +66,7 @@ static int arm7_9_clear_watchpoints(struct arm7_9_common *arm7_9) * @param arm7_9 Pointer to the common struct for an ARM7/9 target * @param breakpoint Pointer to the breakpoint to be used as a watchpoint */ -static void arm7_9_assign_wp(struct arm7_9_common *arm7_9, breakpoint_t *breakpoint) +static void arm7_9_assign_wp(struct arm7_9_common *arm7_9, struct breakpoint *breakpoint) { if (!arm7_9->wp0_used) { @@ -210,7 +210,7 @@ int arm7_9_get_arch_pointers(target_t *target, armv4_5_common_t **armv4_5_p, str * queue. For software breakpoints, this will be the status of the * required memory reads and writes */ -int arm7_9_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +int arm7_9_set_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { struct arm7_9_common *arm7_9 = target_to_arm7_9(target); int retval = ERROR_OK; @@ -339,7 +339,7 @@ int arm7_9_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint) * queue. For software breakpoints, this will be the status of the * required memory reads and writes */ -int arm7_9_unset_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +int arm7_9_unset_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { int retval = ERROR_OK; struct arm7_9_common *arm7_9 = target_to_arm7_9(target); @@ -434,7 +434,7 @@ int arm7_9_unset_breakpoint(struct target_s *target, breakpoint_t *breakpoint) * @return An error status if there is a problem adding the breakpoint or the * result of setting the breakpoint */ -int arm7_9_add_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +int arm7_9_add_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { struct arm7_9_common *arm7_9 = target_to_arm7_9(target); @@ -484,7 +484,7 @@ int arm7_9_add_breakpoint(struct target_s *target, breakpoint_t *breakpoint) * @return Error status if there was a problem unsetting the breakpoint or the * watchpoints could not be cleared */ -int arm7_9_remove_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +int arm7_9_remove_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { int retval = ERROR_OK; struct arm7_9_common *arm7_9 = target_to_arm7_9(target); @@ -1788,7 +1788,7 @@ void arm7_9_enable_watchpoints(struct target_s *target) */ void arm7_9_enable_breakpoints(struct target_s *target) { - breakpoint_t *breakpoint = target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; /* set any pending breakpoints */ while (breakpoint) @@ -1802,7 +1802,7 @@ int arm7_9_resume(struct target_s *target, int current, uint32_t address, int ha { struct arm7_9_common *arm7_9 = target_to_arm7_9(target); struct armv4_5_common_s *armv4_5 = &arm7_9->armv4_5_common; - breakpoint_t *breakpoint = target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; reg_t *dbg_ctrl = &arm7_9->eice_cache->reg_list[EICE_DBG_CTRL]; int err, retval = ERROR_OK; @@ -2014,7 +2014,7 @@ int arm7_9_step(struct target_s *target, int current, uint32_t address, int hand { struct arm7_9_common *arm7_9 = target_to_arm7_9(target); struct armv4_5_common_s *armv4_5 = &arm7_9->armv4_5_common; - breakpoint_t *breakpoint = NULL; + struct breakpoint *breakpoint = NULL; int err, retval; if (target->state != TARGET_HALTED) diff --git a/src/target/arm7_9_common.h b/src/target/arm7_9_common.h index 0ef5eb64..eb4eb1a9 100644 --- a/src/target/arm7_9_common.h +++ b/src/target/arm7_9_common.h @@ -143,8 +143,8 @@ int arm7_9_blank_check_memory(struct target_s *target, uint32_t address, uint32_ int arm7_9_run_algorithm(struct target_s *target, int num_mem_params, struct mem_param *mem_params, int num_reg_prams, struct reg_param *reg_param, uint32_t entry_point, void *arch_info); -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_add_breakpoint(struct target_s *target, struct breakpoint *breakpoint); +int arm7_9_remove_breakpoint(struct target_s *target, struct breakpoint *breakpoint); int arm7_9_add_watchpoint(struct target_s *target, struct watchpoint *watchpoint); int arm7_9_remove_watchpoint(struct target_s *target, struct watchpoint *watchpoint); diff --git a/src/target/breakpoints.c b/src/target/breakpoints.c index 08008c22..a65ca824 100644 --- a/src/target/breakpoints.c +++ b/src/target/breakpoints.c @@ -44,8 +44,8 @@ static int bpwp_unique_id; int breakpoint_add(target_t *target, uint32_t address, uint32_t length, enum breakpoint_type type) { - breakpoint_t *breakpoint = target->breakpoints; - breakpoint_t **breakpoint_p = &target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; + struct breakpoint **breakpoint_p = &target->breakpoints; int retval; int n; @@ -62,7 +62,7 @@ int breakpoint_add(target_t *target, uint32_t address, uint32_t length, enum bre breakpoint = breakpoint->next; } - (*breakpoint_p) = malloc(sizeof(breakpoint_t)); + (*breakpoint_p) = malloc(sizeof(struct breakpoint)); (*breakpoint_p)->address = address; (*breakpoint_p)->length = length; (*breakpoint_p)->type = type; @@ -107,10 +107,10 @@ int breakpoint_add(target_t *target, uint32_t address, uint32_t length, enum bre } /* free up a breakpoint */ -static void breakpoint_free(target_t *target, breakpoint_t *breakpoint_remove) +static void breakpoint_free(target_t *target, struct breakpoint *breakpoint_remove) { - breakpoint_t *breakpoint = target->breakpoints; - breakpoint_t **breakpoint_p = &target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; + struct breakpoint **breakpoint_p = &target->breakpoints; while (breakpoint) { @@ -133,8 +133,8 @@ static void breakpoint_free(target_t *target, breakpoint_t *breakpoint_remove) void breakpoint_remove(target_t *target, uint32_t address) { - breakpoint_t *breakpoint = target->breakpoints; - breakpoint_t **breakpoint_p = &target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; + struct breakpoint **breakpoint_p = &target->breakpoints; while (breakpoint) { @@ -156,7 +156,7 @@ void breakpoint_remove(target_t *target, uint32_t address) void breakpoint_clear_target(target_t *target) { - breakpoint_t *breakpoint; + struct breakpoint *breakpoint; LOG_DEBUG("Delete all breakpoints for target: %s", target_get_name( target )); while ((breakpoint = target->breakpoints) != NULL) { @@ -164,9 +164,9 @@ void breakpoint_clear_target(target_t *target) } } -breakpoint_t* breakpoint_find(target_t *target, uint32_t address) +struct breakpoint* breakpoint_find(target_t *target, uint32_t address) { - breakpoint_t *breakpoint = target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; while (breakpoint) { diff --git a/src/target/breakpoints.h b/src/target/breakpoints.h index 57c06c73..2a79a9ad 100644 --- a/src/target/breakpoints.h +++ b/src/target/breakpoints.h @@ -35,16 +35,16 @@ enum watchpoint_rw WPT_READ = 0, WPT_WRITE = 1, WPT_ACCESS = 2 }; -typedef struct breakpoint_s +struct breakpoint { uint32_t address; int length; enum breakpoint_type type; int set; uint8_t *orig_instr; - struct breakpoint_s *next; + struct breakpoint *next; int unique_id; -} breakpoint_t; +}; struct watchpoint { @@ -63,7 +63,7 @@ int breakpoint_add(struct target_s *target, uint32_t address, uint32_t length, enum breakpoint_type type); void breakpoint_remove(struct target_s *target, uint32_t address); -breakpoint_t* breakpoint_find(struct target_s *target, uint32_t address); +struct breakpoint* breakpoint_find(struct target_s *target, uint32_t address); void watchpoint_clear_target(struct target_s *target); int watchpoint_add(struct target_s *target, diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c index 983bef85..905860f5 100644 --- a/src/target/cortex_a8.c +++ b/src/target/cortex_a8.c @@ -44,9 +44,9 @@ static int cortex_a8_poll(target_t *target); static int cortex_a8_debug_entry(target_t *target); static int cortex_a8_restore_context(target_t *target); static int cortex_a8_set_breakpoint(struct target_s *target, - breakpoint_t *breakpoint, uint8_t matchmode); + struct breakpoint *breakpoint, uint8_t matchmode); static int cortex_a8_unset_breakpoint(struct target_s *target, - breakpoint_t *breakpoint); + struct breakpoint *breakpoint); static int cortex_a8_dap_read_coreregister_u32(target_t *target, uint32_t *value, int regnum); static int cortex_a8_dap_write_coreregister_u32(target_t *target, @@ -445,7 +445,7 @@ static int cortex_a8_resume(struct target_s *target, int current, struct armv4_5_common_s *armv4_5 = &armv7a->armv4_5_common; struct swjdp_common *swjdp = &armv7a->swjdp_info; -// breakpoint_t *breakpoint = NULL; +// struct breakpoint *breakpoint = NULL; uint32_t resume_pc, dscr; uint8_t saved_apsel = dap_ap_get_select(swjdp); @@ -725,8 +725,8 @@ static int cortex_a8_step(struct target_s *target, int current, uint32_t address { struct armv7a_common *armv7a = target_to_armv7a(target); struct armv4_5_common_s *armv4_5 = &armv7a->armv4_5_common; - breakpoint_t *breakpoint = NULL; - breakpoint_t stepbreakpoint; + struct breakpoint *breakpoint = NULL; + struct breakpoint stepbreakpoint; int timeout = 100; @@ -961,7 +961,7 @@ int cortex_a8_write_core_reg(struct target_s *target, int num, /* Setup hardware Breakpoint Register Pair */ static int cortex_a8_set_breakpoint(struct target_s *target, - breakpoint_t *breakpoint, uint8_t matchmode) + struct breakpoint *breakpoint, uint8_t matchmode) { int retval; int brp_i=0; @@ -1035,7 +1035,7 @@ static int cortex_a8_set_breakpoint(struct target_s *target, return ERROR_OK; } -static int cortex_a8_unset_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +static int cortex_a8_unset_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { int retval; struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target); @@ -1093,7 +1093,7 @@ static int cortex_a8_unset_breakpoint(struct target_s *target, breakpoint_t *bre return ERROR_OK; } -int cortex_a8_add_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +int cortex_a8_add_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target); @@ -1110,7 +1110,7 @@ int cortex_a8_add_breakpoint(struct target_s *target, breakpoint_t *breakpoint) return ERROR_OK; } -static int cortex_a8_remove_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +static int cortex_a8_remove_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target); diff --git a/src/target/cortex_m3.c b/src/target/cortex_m3.c index d304ca36..041f8061 100644 --- a/src/target/cortex_m3.c +++ b/src/target/cortex_m3.c @@ -45,8 +45,8 @@ /* forward declarations */ -static int cortex_m3_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint); -static int cortex_m3_unset_breakpoint(struct target_s *target, breakpoint_t *breakpoint); +static int cortex_m3_set_breakpoint(struct target_s *target, struct breakpoint *breakpoint); +static int cortex_m3_unset_breakpoint(struct target_s *target, struct breakpoint *breakpoint); static void cortex_m3_enable_watchpoints(struct target_s *target); static int cortex_m3_store_core_reg_u32(target_t *target, enum armv7m_regtype type, uint32_t num, uint32_t value); @@ -533,7 +533,7 @@ static int cortex_m3_soft_reset_halt(struct target_s *target) static void cortex_m3_enable_breakpoints(struct target_s *target) { - breakpoint_t *breakpoint = target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; /* set any pending breakpoints */ while (breakpoint) @@ -548,7 +548,7 @@ static int cortex_m3_resume(struct target_s *target, int current, uint32_t address, int handle_breakpoints, int debug_execution) { struct armv7m_common *armv7m = target_to_armv7m(target); - breakpoint_t *breakpoint = NULL; + struct breakpoint *breakpoint = NULL; uint32_t resume_pc; if (target->state != TARGET_HALTED) @@ -638,7 +638,7 @@ static int cortex_m3_step(struct target_s *target, int current, struct cortex_m3_common *cortex_m3 = target_to_cm3(target); struct armv7m_common *armv7m = &cortex_m3->armv7m; struct swjdp_common *swjdp = &armv7m->swjdp_info; - breakpoint_t *breakpoint = NULL; + struct breakpoint *breakpoint = NULL; if (target->state != TARGET_HALTED) { @@ -833,7 +833,7 @@ static int cortex_m3_deassert_reset(target_t *target) } static int -cortex_m3_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +cortex_m3_set_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { int retval; int fp_num = 0; @@ -900,7 +900,7 @@ cortex_m3_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint) } static int -cortex_m3_unset_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +cortex_m3_unset_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { int retval; struct cortex_m3_common *cortex_m3 = target_to_cm3(target); @@ -955,7 +955,7 @@ cortex_m3_unset_breakpoint(struct target_s *target, breakpoint_t *breakpoint) } static int -cortex_m3_add_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +cortex_m3_add_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { struct cortex_m3_common *cortex_m3 = target_to_cm3(target); @@ -1004,7 +1004,7 @@ cortex_m3_add_breakpoint(struct target_s *target, breakpoint_t *breakpoint) } static int -cortex_m3_remove_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +cortex_m3_remove_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { struct cortex_m3_common *cortex_m3 = target_to_cm3(target); diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c index bd248748..095260c3 100644 --- a/src/target/mips_m4k.c +++ b/src/target/mips_m4k.c @@ -359,7 +359,7 @@ int mips_m4k_resume(struct target_s *target, int current, uint32_t address, int { struct mips32_common *mips32 = target->arch_info; struct mips_ejtag *ejtag_info = &mips32->ejtag_info; - breakpoint_t *breakpoint = NULL; + struct breakpoint *breakpoint = NULL; uint32_t resume_pc; if (target->state != TARGET_HALTED) @@ -431,7 +431,7 @@ int mips_m4k_step(struct target_s *target, int current, uint32_t address, int ha /* get pointers to arch-specific information */ struct mips32_common *mips32 = target->arch_info; struct mips_ejtag *ejtag_info = &mips32->ejtag_info; - breakpoint_t *breakpoint = NULL; + struct breakpoint *breakpoint = NULL; if (target->state != TARGET_HALTED) { @@ -480,7 +480,7 @@ int mips_m4k_step(struct target_s *target, int current, uint32_t address, int ha void mips_m4k_enable_breakpoints(struct target_s *target) { - breakpoint_t *breakpoint = target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; /* set any pending breakpoints */ while (breakpoint) @@ -491,7 +491,7 @@ void mips_m4k_enable_breakpoints(struct target_s *target) } } -int mips_m4k_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +int mips_m4k_set_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { struct mips32_common *mips32 = target->arch_info; struct mips32_comparator * comparator_list = mips32->inst_break_list; @@ -582,7 +582,7 @@ int mips_m4k_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint) return ERROR_OK; } -int mips_m4k_unset_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +int mips_m4k_unset_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { /* get pointers to arch-specific information */ struct mips32_common *mips32 = target->arch_info; @@ -657,7 +657,7 @@ int mips_m4k_unset_breakpoint(struct target_s *target, breakpoint_t *breakpoint) return ERROR_OK; } -int mips_m4k_add_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +int mips_m4k_add_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { struct mips32_common *mips32 = target->arch_info; @@ -677,7 +677,7 @@ int mips_m4k_add_breakpoint(struct target_s *target, breakpoint_t *breakpoint) return ERROR_OK; } -int mips_m4k_remove_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +int mips_m4k_remove_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { /* get pointers to arch-specific information */ struct mips32_common *mips32 = target->arch_info; diff --git a/src/target/mips_m4k.h b/src/target/mips_m4k.h index 6044974a..b13dee2a 100644 --- a/src/target/mips_m4k.h +++ b/src/target/mips_m4k.h @@ -39,10 +39,10 @@ int mips_m4k_bulk_write_memory(struct target_s *target, uint32_t address, uint32_t count, uint8_t *buffer); void mips_m4k_enable_breakpoints(struct target_s *target); -int mips_m4k_set_breakpoint(struct target_s *target, breakpoint_t *bp); -int mips_m4k_unset_breakpoint(struct target_s *target, breakpoint_t *bp); -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_set_breakpoint(struct target_s *target, struct breakpoint *bp); +int mips_m4k_unset_breakpoint(struct target_s *target, struct breakpoint *bp); +int mips_m4k_add_breakpoint(struct target_s *target, struct breakpoint *bp); +int mips_m4k_remove_breakpoint(struct target_s *target, struct breakpoint *bp); void mips_m4k_enable_watchpoints(struct target_s *target); int mips_m4k_set_watchpoint(struct target_s *target, struct watchpoint *wp); diff --git a/src/target/target.c b/src/target/target.c index e46dec9c..6f04af69 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -600,12 +600,12 @@ int target_bulk_write_memory(struct target_s *target, } int target_add_breakpoint(struct target_s *target, - struct breakpoint_s *breakpoint) + struct breakpoint *breakpoint) { return target->type->add_breakpoint(target, breakpoint); } int target_remove_breakpoint(struct target_s *target, - struct breakpoint_s *breakpoint) + struct breakpoint *breakpoint) { return target->type->remove_breakpoint(target, breakpoint); } @@ -2712,7 +2712,7 @@ COMMAND_HANDLER(handle_test_image_command) static int handle_bp_command_list(struct command_context_s *cmd_ctx) { target_t *target = get_current_target(cmd_ctx); - breakpoint_t *breakpoint = target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; while (breakpoint) { if (breakpoint->type == BKPT_SOFT) diff --git a/src/target/target.h b/src/target/target.h index e872ec66..ef3f6ccd 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -152,7 +152,7 @@ typedef struct target_s // also see: target_state_name() enum target_state state; /* the current backend-state (running, halted, ...) */ struct reg_cache *reg_cache; /* the first register cache of the target (core regs) */ - struct breakpoint_s *breakpoints; /* list of breakpoints */ + struct breakpoint *breakpoints; /* list of breakpoints */ struct watchpoint *watchpoints; /* list of watchpoints */ struct trace_s *trace_info; /* generic trace information */ struct debug_msg_receiver *dbgmsg;/* list of debug message receivers */ @@ -313,14 +313,14 @@ void target_reset_examined(struct target_s *target); * This routine is a wrapper for target->type->add_breakpoint. */ int target_add_breakpoint(struct target_s *target, - struct breakpoint_s *breakpoint); + struct breakpoint *breakpoint); /** * Remove the @a breakpoint for @a target. * * This routine is a wrapper for target->type->remove_breakpoint. */ int target_remove_breakpoint(struct target_s *target, - struct breakpoint_s *breakpoint); + struct breakpoint *breakpoint); /** * Add the @a watchpoint for @a target. * diff --git a/src/target/target_type.h b/src/target/target_type.h index 21d7295d..33288797 100644 --- a/src/target/target_type.h +++ b/src/target/target_type.h @@ -131,12 +131,12 @@ struct target_type_s * * Upon GDB connection all breakpoints/watchpoints are cleared. */ - int (*add_breakpoint)(struct target_s *target, breakpoint_t *breakpoint); + int (*add_breakpoint)(struct target_s *target, struct breakpoint *breakpoint); /* remove breakpoint. hw will only be updated if the target is currently halted. * 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, struct breakpoint *breakpoint); int (*add_watchpoint)(struct target_s *target, struct watchpoint *watchpoint); /* remove watchpoint. hw will only be updated if the target is currently halted. * However, this method can be invoked on unresponsive targets. diff --git a/src/target/xscale.c b/src/target/xscale.c index 4439b0e2..04a5f64c 100644 --- a/src/target/xscale.c +++ b/src/target/xscale.c @@ -63,9 +63,9 @@ static int xscale_debug_entry(target_t *); static int xscale_restore_context(target_t *); static int xscale_get_reg(reg_t *reg); 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 *, struct breakpoint *); 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 *, struct breakpoint *); static int xscale_read_trace(target_t *); @@ -1130,7 +1130,7 @@ static int xscale_enable_single_step(struct target_s *target, uint32_t next_pc) if (xscale->ibcr0_used) { - breakpoint_t *ibcr0_bp = breakpoint_find(target, buf_get_u32(ibcr0->value, 0, 32) & 0xfffffffe); + struct breakpoint *ibcr0_bp = breakpoint_find(target, buf_get_u32(ibcr0->value, 0, 32) & 0xfffffffe); if (ibcr0_bp) { @@ -1175,7 +1175,7 @@ static void xscale_enable_watchpoints(struct target_s *target) static void xscale_enable_breakpoints(struct target_s *target) { - breakpoint_t *breakpoint = target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; /* set any pending breakpoints */ while (breakpoint) @@ -1191,7 +1191,7 @@ static int xscale_resume(struct target_s *target, int current, { struct xscale_common *xscale = target_to_xscale(target); struct armv4_5_common_s *armv4_5 = &xscale->armv4_5_common; - breakpoint_t *breakpoint = target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; uint32_t current_pc; int retval; int i; @@ -1423,7 +1423,7 @@ static int xscale_step(struct target_s *target, int current, uint32_t address, int handle_breakpoints) { struct armv4_5_common_s *armv4_5 = target_to_armv4_5(target); - breakpoint_t *breakpoint = target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; uint32_t current_pc; int retval; @@ -1518,7 +1518,7 @@ static int xscale_assert_reset(target_t *target) static int xscale_deassert_reset(target_t *target) { struct xscale_common *xscale = target_to_xscale(target); - breakpoint_t *breakpoint = target->breakpoints; + struct breakpoint *breakpoint = target->breakpoints; LOG_DEBUG("-"); @@ -2046,7 +2046,7 @@ static void xscale_enable_mmu_caches(target_t *target, int mmu, } static int xscale_set_breakpoint(struct target_s *target, - breakpoint_t *breakpoint) + struct breakpoint *breakpoint) { int retval; struct xscale_common *xscale = target_to_xscale(target); @@ -2119,7 +2119,7 @@ static int xscale_set_breakpoint(struct target_s *target, } static int xscale_add_breakpoint(struct target_s *target, - breakpoint_t *breakpoint) + struct breakpoint *breakpoint) { struct xscale_common *xscale = target_to_xscale(target); @@ -2150,7 +2150,7 @@ static int xscale_add_breakpoint(struct target_s *target, } static int xscale_unset_breakpoint(struct target_s *target, - breakpoint_t *breakpoint) + struct breakpoint *breakpoint) { int retval; struct xscale_common *xscale = target_to_xscale(target); @@ -2204,7 +2204,7 @@ static int xscale_unset_breakpoint(struct target_s *target, return ERROR_OK; } -static int xscale_remove_breakpoint(struct target_s *target, breakpoint_t *breakpoint) +static int xscale_remove_breakpoint(struct target_s *target, struct breakpoint *breakpoint) { struct xscale_common *xscale = target_to_xscale(target);