From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18501 invoked by alias); 2 Feb 2002 15:12:54 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18461 invoked from network); 2 Feb 2002 15:12:52 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 2 Feb 2002 15:12:52 -0000 Received: from cse.cygnus.com (cse.sfbay.redhat.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id HAA03146; Sat, 2 Feb 2002 07:12:47 -0800 (PST) Received: (from kev@localhost) by cse.cygnus.com (8.11.6/8.11.6) id g12FBXx01484; Sat, 2 Feb 2002 08:11:33 -0700 Date: Sat, 02 Feb 2002 07:12:00 -0000 From: Kevin Buettner Message-Id: <1020202151133.ZM1483@localhost.localdomain> In-Reply-To: "debashis mahata" "How to use linux-thread.c" (Feb 2, 7:59pm) References: <000001c1abf5$f639b9c0$73b17fc0@8420044-mahatad.wipro.com> X-Mailer: Z-Mail (4.0.1 13Jan97 Caldera) To: "debashis mahata" , Subject: Re: How to use linux-thread.c MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-02/txt/msg00048.txt.bz2 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