64/32 threaded app support

Manoj Iyer manjo@austin.ibm.com
Tue Apr 27 23:27:00 GMT 2004


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
>
>



More information about the Gdb mailing list