X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fbreakpoints.c;h=08008c226d22f8f4f675e8d250b1e09a2a1ce62c;hp=dd672b9fef22d6aebd340a05054aa5cc600728e1;hb=72b421418f315cb54a01ba4d249082f989d5154a;hpb=e7f65c5a116802c4e510fe212b26e9a020de0b3e diff --git a/src/target/breakpoints.c b/src/target/breakpoints.c index dd672b9fef..08008c226d 100644 --- a/src/target/breakpoints.c +++ b/src/target/breakpoints.c @@ -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, enum watchpoint_rw rw, uint32_t value, uint32_t mask) { - watchpoint_t *watchpoint = target->watchpoints; - watchpoint_t **watchpoint_p = &target->watchpoints; + struct watchpoint *watchpoint = target->watchpoints; + struct watchpoint **watchpoint_p = &target->watchpoints; int retval; char *reason; @@ -206,7 +206,7 @@ int watchpoint_add(target_t *target, uint32_t address, uint32_t length, watchpoint = watchpoint->next; } - (*watchpoint_p) = calloc(1, sizeof(watchpoint_t)); + (*watchpoint_p) = calloc(1, sizeof(struct watchpoint)); (*watchpoint_p)->address = address; (*watchpoint_p)->length = length; (*watchpoint_p)->value = value; @@ -244,10 +244,10 @@ bye: 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; - watchpoint_t **watchpoint_p = &target->watchpoints; + struct watchpoint *watchpoint = target->watchpoints; + struct watchpoint **watchpoint_p = &target->watchpoints; 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) { - watchpoint_t *watchpoint = target->watchpoints; - watchpoint_t **watchpoint_p = &target->watchpoints; + struct watchpoint *watchpoint = target->watchpoints; + struct watchpoint **watchpoint_p = &target->watchpoints; while (watchpoint) { @@ -290,7 +290,7 @@ void watchpoint_remove(target_t *target, uint32_t address) 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 )); while ((watchpoint = target->watchpoints) != NULL) {