This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to use linux-thread.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]