target/semihosting: export semihosting_common_handlers[] from header file 75/7075/2
authorErhan Kurubas <erhan.kurubas@espressif.com>
Sun, 3 Jul 2022 08:38:17 +0000 (11:38 +0300)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 23 Jul 2022 14:00:26 +0000 (14:00 +0000)
Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com>
Change-Id: I4add0c1dc7888497ee90fd02754607a16434b66f
Reviewed-on: https://review.openocd.org/c/openocd/+/7075
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/aarch64.c
src/target/armv4_5.c
src/target/espressif/esp32.c
src/target/riscv/riscv.c
src/target/semihosting_common.h

index e9144edd6ca6351f0cb5870eb669662937c4a55d..20e212e2b31bf22049d4c6c50daadf113ef666ce 100644 (file)
@@ -3144,8 +3144,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",
index 2759b4633af90094cf9d1b83d78d7889620ce90f..2b347924fed12432b3b13c1207686873414b584b 100644 (file)
@@ -1116,8 +1116,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",
index 5a0d69bed61f0ff43f415db0576614342c6fb783..29d94a272bcd2b1c1cbbecc67964abed1ef2d649 100644 (file)
@@ -632,7 +632,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,
index c6731754438e828b3601a16b75866873b4a7e211..f79239a9d47af0b861e7f3e15659e30b6236f718 100644 (file)
@@ -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[] = {
        {
index 32a7218e7035dfbcae8c58805c0666d5da9573f1..8ecf2e5263ad4f669db507b9344ad2c17ad38af2 100644 (file)
@@ -201,4 +201,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 */

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)