semihosting: use macro COMMAND_HANDLER
We have the macro #define COMMAND_HANDLER(name) \ static __COMMAND_HANDLER(name) Use it! Change-Id: I0e5385cb54197c743348f0d2ce215c93b8e396a4 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6786 Tested-by: jenkins
This commit is contained in:
parent
5795f4d3ef
commit
9828c0a440
|
@ -1474,7 +1474,7 @@ static void semihosting_set_field(struct target *target, uint64_t value,
|
||||||
/* -------------------------------------------------------------------------
|
/* -------------------------------------------------------------------------
|
||||||
* Common semihosting commands handlers. */
|
* Common semihosting commands handlers. */
|
||||||
|
|
||||||
static __COMMAND_HANDLER(handle_common_semihosting_command)
|
COMMAND_HANDLER(handle_common_semihosting_command)
|
||||||
{
|
{
|
||||||
struct target *target = get_current_target(CMD_CTX);
|
struct target *target = get_current_target(CMD_CTX);
|
||||||
|
|
||||||
|
@ -1515,7 +1515,7 @@ static __COMMAND_HANDLER(handle_common_semihosting_command)
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __COMMAND_HANDLER(handle_common_semihosting_fileio_command)
|
COMMAND_HANDLER(handle_common_semihosting_fileio_command)
|
||||||
{
|
{
|
||||||
struct target *target = get_current_target(CMD_CTX);
|
struct target *target = get_current_target(CMD_CTX);
|
||||||
|
|
||||||
|
@ -1545,7 +1545,7 @@ static __COMMAND_HANDLER(handle_common_semihosting_fileio_command)
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __COMMAND_HANDLER(handle_common_semihosting_cmdline)
|
COMMAND_HANDLER(handle_common_semihosting_cmdline)
|
||||||
{
|
{
|
||||||
struct target *target = get_current_target(CMD_CTX);
|
struct target *target = get_current_target(CMD_CTX);
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
@ -1578,7 +1578,7 @@ static __COMMAND_HANDLER(handle_common_semihosting_cmdline)
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __COMMAND_HANDLER(handle_common_semihosting_resumable_exit_command)
|
COMMAND_HANDLER(handle_common_semihosting_resumable_exit_command)
|
||||||
{
|
{
|
||||||
struct target *target = get_current_target(CMD_CTX);
|
struct target *target = get_current_target(CMD_CTX);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue