This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How to use linux-thread.c
- From: Kevin Buettner <kevinb at redhat dot com>
- To: "debashis mahata" <debashis dot mahata at wipro dot com>, <gdb at sources dot redhat dot com>
- Date: Sat, 2 Feb 2002 08:11:33 -0700
- Subject: Re: How to use linux-thread.c
- References: <000001c1abf5$f639b9c0$73b17fc0@8420044-mahatad.wipro.com>
On Feb 2, 7:59pm, debashis mahata wrote:
> I am using a i386 Linux system. I am currently using gdb 5.1.1 for
> debugging.
>
> Without using libthread_db.so.1, can I debug a multi-threaded program ?
>
> Is there any way to disable the use of libthread_db.so.1 through initial
> configuration?
I don't know whether or not it'll work, but you might try removing
thread-db.o (and also perhaps proc-service.o) from the NATDEPFILES
line in config/i386/linux.mh. This will leave you with just the LWP
layer.
> I can see 3 thread specific files in gdb-5.1.1 for linux - lin-thread.c,
> lin-lwp.c, linux-thread.c. Is there any documentation on the specific
> usage of each of these files - like when to use which file ?
lin-thread.c and linux-thread.c are deprecated (and should be made
obsolete). You should be using lin-lwp.c, thread-db.c, and
proc-service.c for thread debugging now. (As noted above, it may
be the case that the lwp layer will work by itself, but I haven't
tried it recently on linux...)
Kevin