Corrected test for invalid current_threadid

This commit is contained in:
Alan Bowman 2011-05-15 21:20:21 +01:00 committed by Øyvind Harboe
parent 129f099ef1
commit 6d9f61fb65
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) )
{