forked from Imagelibrary/rtems
cpukit/libdebugger/server: Use generic TLS accessor
This updates the libdebugger server to use a generic TLS area access mechanism so that it works across all supported architectures. Closes #5313
This commit is contained in:
committed by
Chris Johns
parent
0cf6de01df
commit
a79813c96e
@@ -1134,7 +1134,8 @@ remote_gq_get_tls_addr(uint8_t* buffer, int size)
|
||||
return 0;
|
||||
}
|
||||
|
||||
target_address = thread->tcb->Registers.thread_id;
|
||||
target_address =
|
||||
(uintptr_t)_CPU_Get_TLS_thread_pointer(&thread->tcb->Registers);
|
||||
target_address += sizeof(TLS_Thread_control_block) + offset;
|
||||
|
||||
remote_packet_out_reset();
|
||||
|
||||
Reference in New Issue
Block a user