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.
This commit is contained in:
Kinsey Moore
2025-07-30 13:41:29 +10:00
committed by Chris Johns
parent d8c5b7fa85
commit d19852f3f7
+2 -1
View File
@@ -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();