RISC-V: Don't use ps_get_thread_area in libthread_db (bug 23402)
authorAndreas Schwab <schwab@suse.de>
Thu, 12 Jul 2018 07:24:36 +0000 (09:24 +0200)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 6 Aug 2018 19:51:59 +0000 (12:51 -0700)
commit92a4cba76076ce1aa0efa7b859708e057c2a757f
tree67d56ace5042e99bbed8184f6330ae77b2a45f50
parentfb4c32aef64500c65c7fc95ca06d7e17d467be45
RISC-V: Don't use ps_get_thread_area in libthread_db (bug 23402)

Since RISC-V stores the thread pointer in a general register libthread_db
can just ask the debugger for the register contents instead of trying to
call ps_get_thread_area.  This enables thread debugging in gdb.

* sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
of CONST_THREAD_AREA.
ChangeLog
sysdeps/riscv/nptl/tls.h