forked from auracaster/openocd
target: Use 'bool' data type in target_{step,resume}
While at it, adapt data types of related functions and fix some coding style issues. Change-Id: I74db9258fc17b1ee8aa446f35ae722ea7c2f67e6 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8524 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
This commit is contained in:
committed by
Antonio Borneo
parent
f63b41bbe4
commit
297844cf46
@@ -102,8 +102,9 @@ static int mem_ap_halt(struct target *target)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int mem_ap_resume(struct target *target, int current, target_addr_t address,
|
||||
int handle_breakpoints, int debug_execution)
|
||||
static int mem_ap_resume(struct target *target, bool current,
|
||||
target_addr_t address, bool handle_breakpoints,
|
||||
bool debug_execution)
|
||||
{
|
||||
LOG_TARGET_DEBUG(target, "%s", __func__);
|
||||
target->state = TARGET_RUNNING;
|
||||
@@ -111,8 +112,8 @@ static int mem_ap_resume(struct target *target, int current, target_addr_t addre
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int mem_ap_step(struct target *target, int current, target_addr_t address,
|
||||
int handle_breakpoints)
|
||||
static int mem_ap_step(struct target *target, bool current,
|
||||
target_addr_t address, bool handle_breakpoints)
|
||||
{
|
||||
LOG_TARGET_DEBUG(target, "%s", __func__);
|
||||
target->state = TARGET_HALTED;
|
||||
|
||||
Reference in New Issue
Block a user