diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2019-02-07 14:17:03 +0100 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2019-03-12 06:43:49 +0000 |
commit | 380502d82074b799f10d9671c4fe0fe24eb93023 (patch) | |
tree | 6aafdc23c05319848876e3a57d30298054d7ca8e /src | |
parent | d8e1622e4c1043fd05eafb6249afc995ebf03c4d (diff) | |
download | riscv-openocd-380502d82074b799f10d9671c4fe0fe24eb93023.zip riscv-openocd-380502d82074b799f10d9671c4fe0fe24eb93023.tar.gz riscv-openocd-380502d82074b799f10d9671c4fe0fe24eb93023.tar.bz2 |
target/breakpoints: make internal functions static
While on it add two missing new lines.
Change-Id: I0d54740479bc462b734f91686f0931824796b598
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4888
Tested-by: jenkins
Reviewed-by: Marc Schink <openocd-dev@marcschink.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/target/breakpoints.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/target/breakpoints.c b/src/target/breakpoints.c index 94e8a82..7ad1942 100644 --- a/src/target/breakpoints.c +++ b/src/target/breakpoints.c @@ -41,7 +41,7 @@ static const char * const watchpoint_rw_strings[] = { /* monotonic counter/id-number for breakpoints and watch points */ static int bpwp_unique_id; -int breakpoint_add_internal(struct target *target, +static int breakpoint_add_internal(struct target *target, target_addr_t address, uint32_t length, enum breakpoint_type type) @@ -106,7 +106,7 @@ fail: return ERROR_OK; } -int context_breakpoint_add_internal(struct target *target, +static int context_breakpoint_add_internal(struct target *target, uint32_t asid, uint32_t length, enum breakpoint_type type) @@ -158,7 +158,7 @@ int context_breakpoint_add_internal(struct target *target, return ERROR_OK; } -int hybrid_breakpoint_add_internal(struct target *target, +static int hybrid_breakpoint_add_internal(struct target *target, target_addr_t address, uint32_t asid, uint32_t length, @@ -241,6 +241,7 @@ int breakpoint_add(struct target *target, } else return breakpoint_add_internal(target, address, length, type); } + int context_breakpoint_add(struct target *target, uint32_t asid, uint32_t length, @@ -262,6 +263,7 @@ int context_breakpoint_add(struct target *target, } else return context_breakpoint_add_internal(target, asid, length, type); } + int hybrid_breakpoint_add(struct target *target, target_addr_t address, uint32_t asid, @@ -310,7 +312,7 @@ static void breakpoint_free(struct target *target, struct breakpoint *breakpoint free(breakpoint); } -int breakpoint_remove_internal(struct target *target, target_addr_t address) +static int breakpoint_remove_internal(struct target *target, target_addr_t address) { struct breakpoint *breakpoint = target->breakpoints; |