From 6d9f61fb6540612fc818d31bba2acce550449a7a Mon Sep 17 00:00:00 2001
From: Alan Bowman <alan.michael.bowman@gmail.com>
Date: Sun, 15 May 2011 21:20:21 +0100
Subject: [PATCH] Corrected test for invalid current_threadid

---
 src/rtos/rtos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c
index d69127e5e..3cdd91250 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 ) )
 	{
-- 
GitLab