RTEMS | GDB cannot see TLS variables (#4883)

Kinsey Moore (@opticron) gitlab at rtems.org
Fri Jun 20 20:42:58 UTC 2025




Kinsey Moore commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/4883#note_125027


Attached is a more polished version of the GDB patch which should be far more acceptable upstream.[0001-gdb-Add-support-for-TLS-under-RTEMS.patch](/uploads/ac8467cb05964de8569d62798681d5fd/0001-gdb-Add-support-for-TLS-under-RTEMS.patch)

I managed to get all the RTEMS-related support in one place so we don't have to proliferate files throughout GDB just to support RTEMS. This was built by adding it to the 15.2 GDB recipe in RSB on 6 branch and it was tested with libbsd 6-freebsd-12 with the patch support the vGetTLSAddr query. The version of libbsd should be irrelevant. This is the patch for RSB main GDB recipe (16.2): [0001-gdb-Add-support-for-TLS-under-RTEMSv16.2.patch](/uploads/e042ed8055d18095de6c13018bf4a628/0001-gdb-Add-support-for-TLS-under-RTEMSv16.2.patch)

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/4883#note_125027
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250620/f6424eae/attachment.htm>


More information about the bugs mailing list