diff options
author | Matthias Welwarsky <matthias.welwarsky@sysgo.com> | 2018-03-01 17:43:25 +0100 |
---|---|---|
committer | Matthias Welwarsky <matthias@welwarsky.de> | 2018-03-03 08:29:32 +0000 |
commit | eaeb4191e55c3a23582ecb40b852f95c2e0ea917 (patch) | |
tree | cbd1ed05ce333fc1fde8b78279d0bbbac2ecd30f /src/rtos | |
parent | bae76053dc515252dc5c8235b9a848e461080c66 (diff) | |
download | riscv-openocd-eaeb4191e55c3a23582ecb40b852f95c2e0ea917.zip riscv-openocd-eaeb4191e55c3a23582ecb40b852f95c2e0ea917.tar.gz riscv-openocd-eaeb4191e55c3a23582ecb40b852f95c2e0ea917.tar.bz2 |
rtos: fix rtos no-auto configuration
A previous fix avoiding multiple calls to the
rtos_create function had a side effect if rtos
support was configured explicitly. It affected
all rtos' that rely on symbol resolution from
gdb.
Change-Id: Id7f17c6ec5ce2450322d2748a4b2369aaa524a7b
Fixes: 3aa8bd2d1704118ad9bbee2f21cbc15a848c8c5b
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
Reviewed-on: http://openocd.zylin.com/4438
Tested-by: jenkins
Reviewed-by: Richard Braun <rbraun@sceen.net>
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Diffstat (limited to 'src/rtos')
-rw-r--r-- | src/rtos/rtos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index 497ea8b..1fee5b0 100644 --- a/src/rtos/rtos.c +++ b/src/rtos/rtos.c @@ -349,8 +349,8 @@ int rtos_thread_packet(struct connection *connection, char const *packet, int pa if (target->rtos_auto_detect == true) { target->rtos_auto_detect = false; target->rtos->type->create(target); - target->rtos->type->update_threads(target->rtos); } + target->rtos->type->update_threads(target->rtos); } return ERROR_OK; } else if (strncmp(packet, "qfThreadInfo", 12) == 0) { |