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
@@ -386,8 +386,8 @@ int target_unregister_trace_callback(
|
||||
* yet it is possible to detect error conditions.
|
||||
*/
|
||||
int target_poll(struct target *target);
|
||||
int target_resume(struct target *target, int current, target_addr_t address,
|
||||
int handle_breakpoints, int debug_execution);
|
||||
int target_resume(struct target *target, bool current, target_addr_t address,
|
||||
bool handle_breakpoints, bool debug_execution);
|
||||
int target_halt(struct target *target);
|
||||
int target_call_event_callbacks(struct target *target, enum target_event event);
|
||||
int target_call_reset_callbacks(struct target *target, enum target_reset_mode reset_mode);
|
||||
@@ -536,7 +536,7 @@ bool target_supports_gdb_connection(const struct target *target);
|
||||
* This routine is a wrapper for target->type->step.
|
||||
*/
|
||||
int target_step(struct target *target,
|
||||
int current, target_addr_t address, int handle_breakpoints);
|
||||
bool current, target_addr_t address, bool handle_breakpoints);
|
||||
/**
|
||||
* Run an algorithm on the @a target given.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user