aboutsummaryrefslogtreecommitdiff
path: root/src/rtos
diff options
context:
space:
mode:
authorAlan Bowman <alan.michael.bowman@gmail.com>2011-05-15 21:20:21 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-05-18 18:51:10 +0200
commit6d9f61fb6540612fc818d31bba2acce550449a7a (patch)
treedac34b3bb2b2d5b6641187f184660999f2e5eac5 /src/rtos
parent129f099ef19dd2082d3903600303fe5f4a2c4486 (diff)
downloadriscv-openocd-6d9f61fb6540612fc818d31bba2acce550449a7a.zip
riscv-openocd-6d9f61fb6540612fc818d31bba2acce550449a7a.tar.gz
riscv-openocd-6d9f61fb6540612fc818d31bba2acce550449a7a.tar.bz2
Corrected test for invalid current_threadid
Diffstat (limited to 'src/rtos')
-rw-r--r--src/rtos/rtos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c
index d69127e..3cdd912 100644
--- a/src/rtos/rtos.c
+++ b/src/rtos/rtos.c
@@ -493,7 +493,7 @@ int gdb_thread_packet(struct connection *connection, struct target *target, char
int rtos_get_gdb_reg_list(struct connection *connection, struct target *target, struct reg **reg_list[], int *reg_list_size)
{
if ( ( target->rtos != NULL ) &&
- ( current_threadid != 1 ) &&
+ ( current_threadid != -1 ) &&
( current_threadid != 0 ) &&
( current_threadid != target->rtos->current_thread ) )
{