From: OpenOCD-Gerrit <ope...@us...> - 2021-12-24 15:08:27
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 9828c0a440364fac11eb80fdea5dfaaaee42ab2d (commit) from 5795f4d3ef938172e3d7a942ed57023572650037 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 9828c0a440364fac11eb80fdea5dfaaaee42ab2d Author: Antonio Borneo <bor...@gm...> Date: Fri Dec 17 00:53:11 2021 +0100 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 <bor...@gm...> Reviewed-on: https://review.openocd.org/c/openocd/+/6786 Tested-by: jenkins diff --git a/src/target/semihosting_common.c b/src/target/semihosting_common.c index 5c96e1cd6..1b65e126c 100644 --- a/src/target/semihosting_common.c +++ b/src/target/semihosting_common.c @@ -1474,7 +1474,7 @@ static void semihosting_set_field(struct target *target, uint64_t value, /* ------------------------------------------------------------------------- * 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); @@ -1515,7 +1515,7 @@ static __COMMAND_HANDLER(handle_common_semihosting_command) 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); @@ -1545,7 +1545,7 @@ static __COMMAND_HANDLER(handle_common_semihosting_fileio_command) return ERROR_OK; } -static __COMMAND_HANDLER(handle_common_semihosting_cmdline) +COMMAND_HANDLER(handle_common_semihosting_cmdline) { struct target *target = get_current_target(CMD_CTX); unsigned int i; @@ -1578,7 +1578,7 @@ static __COMMAND_HANDLER(handle_common_semihosting_cmdline) 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); ----------------------------------------------------------------------- Summary of changes: src/target/semihosting_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) hooks/post-receive -- Main OpenOCD repository |