This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb/gdbserver ChangeLog Makefile.in linux- ...
- From: palves at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Tue, 16 Apr 2013 18:20:40 +0000
- Subject: src/gdb/gdbserver ChangeLog Makefile.in linux- ...
CVSROOT: /cvs/src
Module name: src
Changes by: palves@sourceware.org 2013-04-16 18:20:40
Modified files:
gdb/gdbserver : ChangeLog Makefile.in linux-low.h
Log message:
Fix remaining GDBserver issues with !HAVE_THREAD_DB_H.
The previous patches are still not sufficient to build gdbserver with
our copy of thread_db.h.
../../../src/gdb/gdbserver/thread-db.c: In function âfind_one_threadâ:
../../../src/gdb/gdbserver/thread-db.c:316:6: error: âstruct lwp_infoâ has no member named âthâ
../../../src/gdb/gdbserver/thread-db.c: In function âattach_threadâ:
../../../src/gdb/gdbserver/thread-db.c:341:6: error: âstruct lwp_infoâ has no member named âthâ
../../../src/gdb/gdbserver/thread-db.c: In function âthread_db_get_tls_addressâ:
../../../src/gdb/gdbserver/thread-db.c:514:47: error: âstruct lwp_infoâ has no member named âthâ
make: *** [thread-db.o] Error 1
First, linux-low.h is including <thread_db.h> directly instead of our
gdb_thread_db.h, although thread-db.c includes the latter. Then the
'th' field of struct lwp_info is only defined if HAVE_THREAD_DB_H is
defined, which is not true if we're using our replacement copy of
thread_db.h. We have a USE_THREAD_DB symbol defined if we're building
thread-db.c that's ideal for this, however, it's currently only
defined when compiling linux-low.c (through a Makefile rule). The
patch makes it defined when compiling any file.
gdb/gdbserver/
2013-04-16 Pedro Alves <palves@redhat.com>
* Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
(linux-low.o): Delete rule.
* linux-low.h: Always include "gdb_thread_db.h" instead of
conditionally including thread_db.h.
(struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
HAVE_THREAD_DB_H.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/ChangeLog.diff?cvsroot=src&r1=1.704&r2=1.705
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/Makefile.in.diff?cvsroot=src&r1=1.147&r2=1.148
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/linux-low.h.diff?cvsroot=src&r1=1.58&r2=1.59