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>
This commit is contained in:
parent
d8e1622e4c
commit
380502d820
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue