Laurentiu Cocanu <laurentiu.cocanu@zylin.com> - Added additional error checks mostly to src/target/target.c

git-svn-id: svn://svn.berlios.de/openocd/trunk@1041 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe
2008-10-13 06:52:05 +00:00
parent 809a796209
commit 0a3b6213bb
8 changed files with 110 additions and 53 deletions

View File

@@ -119,7 +119,7 @@ static void breakpoint_free(target_t *target, breakpoint_t *breakpoint_remove)
free(breakpoint);
}
int breakpoint_remove(target_t *target, u32 address)
void breakpoint_remove(target_t *target, u32 address)
{
breakpoint_t *breakpoint = target->breakpoints;
breakpoint_t **breakpoint_p = &target->breakpoints;
@@ -140,8 +140,6 @@ int breakpoint_remove(target_t *target, u32 address)
{
LOG_ERROR("no breakpoint at address 0x%8.8x found", address);
}
return ERROR_OK;
}
void breakpoint_clear_target(target_t *target)
@@ -242,7 +240,7 @@ static void watchpoint_free(target_t *target, watchpoint_t *watchpoint_remove)
int watchpoint_remove(target_t *target, u32 address)
void watchpoint_remove(target_t *target, u32 address)
{
watchpoint_t *watchpoint = target->watchpoints;
watchpoint_t **watchpoint_p = &target->watchpoints;
@@ -263,8 +261,6 @@ int watchpoint_remove(target_t *target, u32 address)
{
LOG_ERROR("no watchpoint at address 0x%8.8x found", address);
}
return ERROR_OK;
}