thread-db.c: In function `find_one_thread':
thread-db.c:293: warning: long int format, thread_t arg (arg 3)
thread-db.c:316: error: structure has no member named `th'
line 316 (uncoditional access):
lwp->th = th;
is defined earlier in the function as
struct lwp_info *lwp;
./gdb/gdbserver/linux-low.h (line 245)
/* The thread handle, used for e.g. TLS access. Only valid if
THREAD_KNOWN is set. */
there is no code in the Makefile, configure, or any source file that defines this symbol.
note, compilation was done on a system using musl libc.
> there is no code in the Makefile, configure, or any source file that defines this symbol.
I would expect it to be created by
AC_CHECK_HEADERS( [...] thread_db.h [...] )
If you run configure do you see this check happening?
I tend to suspect that, given the age, this bug is obsolete.