[PATCH v2 0/3] Support --enable-newlib-reent-thread-local Newlib configuration option

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jul 21 08:11:39 UTC 2022


On 21.07.22 10:03, Chris Johns wrote:
> As an aside, does gdb know about TLS variables and so will `errno` be visible?

Good question, there seems to be some support missing. For example for 
arm/xilinx_zynq_a9_qemu:

Breakpoint 7, Init (ignored=2118804) at 
/home/EB/sebastian_h/src/rtems/testsuites/samples/fileio/init.c:1169
1169      TEST_BEGIN();
(gdb) watch _tls_errno
Cannot find thread-local variables on this target
(gdb) p _tls_errno
Cannot find thread-local variables on this target

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list