aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-10-28 23:44:07 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2020-11-04 17:39:42 +0000
commit61f872311c6051c5aab2834195bceb7482caf2e9 (patch)
tree07d9abc276c0814798c0fea6a193d8c43c7d1e5f
parenta8b436c511dc39e0785af4c9256b7723692ba60e (diff)
downloadriscv-openocd-61f872311c6051c5aab2834195bceb7482caf2e9.zip
riscv-openocd-61f872311c6051c5aab2834195bceb7482caf2e9.tar.gz
riscv-openocd-61f872311c6051c5aab2834195bceb7482caf2e9.tar.bz2
rtos: make private the API rtos_try_next()
The function rtos_try_next() is only used internally. Make it private. Change-Id: I68c6b8d8e6bbf3d674b0e0199e63bc02d358c04e Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5899 Tested-by: jenkins
-rw-r--r--src/rtos/rtos.c4
-rw-r--r--src/rtos/rtos.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c
index 62b65aa..d9ba735 100644
--- a/src/rtos/rtos.c
+++ b/src/rtos/rtos.c
@@ -57,6 +57,8 @@ static struct rtos_type *rtos_types[] = {
NULL
};
+static int rtos_try_next(struct target *target);
+
int rtos_thread_packet(struct connection *connection, const char *packet, int packet_size);
int rtos_smp_init(struct target *target)
@@ -629,7 +631,7 @@ int rtos_generic_stack_read(struct target *target,
return ERROR_OK;
}
-int rtos_try_next(struct target *target)
+static int rtos_try_next(struct target *target)
{
struct rtos *os = target->rtos;
struct rtos_type **type = rtos_types;
diff --git a/src/rtos/rtos.h b/src/rtos/rtos.h
index c755eec..b437be0 100644
--- a/src/rtos/rtos.h
+++ b/src/rtos/rtos.h
@@ -119,7 +119,6 @@ int rtos_generic_stack_read(struct target *target,
int64_t stack_ptr,
struct rtos_reg **reg_list,
int *num_regs);
-int rtos_try_next(struct target *target);
int gdb_thread_packet(struct connection *connection, char const *packet, int packet_size);
int rtos_get_gdb_reg(struct connection *connection, int reg_num);
int rtos_get_gdb_reg_list(struct connection *connection);