diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:42:06 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:11 -0800 |
commit | 72b421418f315cb54a01ba4d249082f989d5154a (patch) | |
tree | e292d768a61b3ccbc7fe5448dae938ab7e8e4170 /src/target/breakpoints.c | |
parent | e7f65c5a116802c4e510fe212b26e9a020de0b3e (diff) | |
download | riscv-openocd-72b421418f315cb54a01ba4d249082f989d5154a.zip riscv-openocd-72b421418f315cb54a01ba4d249082f989d5154a.tar.gz riscv-openocd-72b421418f315cb54a01ba4d249082f989d5154a.tar.bz2 |
watchpoint_t -> struct watchpoint
Remove misleading typedef and redundant suffix from struct watchpoint.
Diffstat (limited to 'src/target/breakpoints.c')
-rw-r--r-- | src/target/breakpoints.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/target/breakpoints.c b/src/target/breakpoints.c index dd672b9..08008c2 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) { |