From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6905 invoked by alias); 27 Apr 2004 21:27:15 -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 6897 invoked from network); 27 Apr 2004 21:27:14 -0000 Received: from unknown (HELO e35.co.us.ibm.com) (32.97.110.133) by sources.redhat.com with SMTP; 27 Apr 2004 21:27:14 -0000 Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32]) by e35.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i3RLRCYm167924 for ; Tue, 27 Apr 2004 17:27:12 -0400 Received: from austin.ibm.com (d03av02.boulder.ibm.com [9.17.193.82]) by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i3RLRB7k075852 for ; Tue, 27 Apr 2004 15:27:12 -0600 Received: from lazy.austin.ibm.com (lazy.austin.ibm.com [9.53.94.97]) by austin.ibm.com (8.12.10/8.12.10) with ESMTP id i3RLRA6j056524 for ; Tue, 27 Apr 2004 16:27:11 -0500 Date: Tue, 27 Apr 2004 23:27:00 -0000 From: Manoj Iyer X-X-Sender: manjo@lazy To: gdb@sources.redhat.com Subject: 64/32 threaded app support In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-04/txt/msg00170.txt.bz2 I found that the following patches http://sources.redhat.com/ml/gdb-patches/2004-03/msg00177.html http://sources.redhat.com/ml/gdb-patches/2004-03/msg00176.html fixes my problems(see below), any idea why these dint make it into 6.1? Thanks Manoj Iyer On Tue, 27 Apr 2004, Manoj Iyer wrote: > > I built GDB (6.1) as a 64bit binary on PPC64, when I try to debug a 64bit > threaded application I get the following. > > ---------------------------------------------------- > GNU gdb 6.1.0.90_2004-04-27-cvs > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "powerpc64-gnu-linux"...Using host libthread_db > library "/opt/biarch/2.6/20040408_nptl/lib64/libthread_db.so.1". > > (gdb) run > Starting program: /home/manjo/project/tests/tbug64 > [Thread debugging using libthread_db enabled] > [New Thread 549757731856 (LWP 15225)] > > Program received signal SIGTRAP, Trace/breakpoint trap. > [Switching to Thread 549757731856 (LWP 15225)] > 0x0000000000000000 in ?? () > (gdb) quit > The program is running. Exit anyway? (y or n) y > ------------------------------------------------------- > > > But I notice that this is fixed in the mainline CVS version of GDB, using > mainline version of GDB I get the following: > > > ------------------------------------------------------- > GNU gdb 2004-04-12-cvs > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "powerpc64-gnu-linux"...Using host libthread_db > libra > ry "/opt/biarch/2.6/20040408_nptl/lib64/libthread_db.so.1". > > (gdb) run > Starting program: /home/manjo/project/tests/tbug64 > [Thread debugging using libthread_db enabled] > [New Thread 549757731856 (LWP 15236)] > [New Thread 549766121696 (LWP 15239)] > [New Thread 549774510304 (LWP 15240)] > tf(0): begin > tf(0): end > after create > tf(1): begin > tf(1): end > [Thread 549766121696 (LWP 15239) exited] > [Thread 549774510304 (LWP 15240) exited] > after join > > Program exited normally. > (gdb) quit > [manjo@mars gdb_latest]$ > ---------------------------------------------------------- > > Can someone please point me to patch(s) that I can apply(backport) to GDB > 6.1 to solve this problem. Any help is deeply appreciated. > > Thanks > --- > Manoj Iyer > >