summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 d69127e5..3cdd9125 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 ) )
{