[PATCH] RISC-V: Don't use ps_get_thread_area in libthread_db (bug 23402)

DJ Delorie dj@redhat.com
Fri Jul 27 23:28:00 GMT 2018


Andreas Schwab <schwab@suse.de> writes:
> 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.

I'm OK with this but... will the definition be the same for riscv32 ?



More information about the Libc-alpha mailing list