This is an automated email from Gerrit.

"Erhan Kurubas <erhan.kuru...@espressif.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7075

-- gerrit

commit 46c6528f1401c6ad3da92c2ff70876739ec31877
Author: Erhan Kurubas <erhan.kuru...@espressif.com>
Date:   Sun Jul 3 11:38:17 2022 +0300

    target/semihosting: export semihosting_common_handlers[] from header file
    
    Signed-off-by: Erhan Kurubas <erhan.kuru...@espressif.com>
    Change-Id: I4add0c1dc7888497ee90fd02754607a16434b66f

diff --git a/src/target/aarch64.c b/src/target/aarch64.c
index e4d420f07a..945d3a946c 100644
--- a/src/target/aarch64.c
+++ b/src/target/aarch64.c
@@ -3156,8 +3156,6 @@ static const struct command_registration 
aarch64_exec_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
-extern const struct command_registration semihosting_common_handlers[];
-
 static const struct command_registration aarch64_command_handlers[] = {
        {
                .name = "arm",
diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c
index b861cf5dbd..6167a37abc 100644
--- a/src/target/armv4_5.c
+++ b/src/target/armv4_5.c
@@ -1127,8 +1127,6 @@ static int jim_mcrmrc(Jim_Interp *interp, int argc, 
Jim_Obj * const *argv)
        return JIM_OK;
 }
 
-extern const struct command_registration semihosting_common_handlers[];
-
 static const struct command_registration arm_exec_command_handlers[] = {
        {
                .name = "reg",
diff --git a/src/target/espressif/esp32.c b/src/target/espressif/esp32.c
index 9d5099be03..dc4274927f 100644
--- a/src/target/espressif/esp32.c
+++ b/src/target/espressif/esp32.c
@@ -643,7 +643,6 @@ static const struct command_registration 
esp32_any_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
-extern const struct command_registration semihosting_common_handlers[];
 static const struct command_registration esp32_command_handlers[] = {
        {
                .chain = esp_xtensa_smp_command_handlers,
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index c673175443..f79239a9d4 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -3114,7 +3114,6 @@ static const struct command_registration 
riscv_exec_command_handlers[] = {
  * protocol, then a command like `riscv semihosting enable` will make
  * sense, but for now all semihosting commands are prefixed with `arm`.
  */
-extern const struct command_registration semihosting_common_handlers[];
 
 const struct command_registration riscv_command_handlers[] = {
        {
diff --git a/src/target/semihosting_common.h b/src/target/semihosting_common.h
index 9fe76bafef..e76f111a4f 100644
--- a/src/target/semihosting_common.h
+++ b/src/target/semihosting_common.h
@@ -212,4 +212,6 @@ void semihosting_set_field(struct target *target, uint64_t 
value,
        size_t index,
        uint8_t *fields);
 
+extern const struct command_registration semihosting_common_handlers[];
+
 #endif /* OPENOCD_TARGET_SEMIHOSTING_COMMON_H */

-- 

Reply via email to