public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* pls pls point me to patch
@ 2004-04-27 19:06 Manoj Iyer
  2004-04-27 23:27 ` 64/32 threaded app support Manoj Iyer
  0 siblings, 1 reply; 3+ messages in thread
From: Manoj Iyer @ 2004-04-27 19:06 UTC (permalink / raw)
  To: gdb


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* 64/32 threaded app support
  2004-04-27 19:06 pls pls point me to patch Manoj Iyer
@ 2004-04-27 23:27 ` Manoj Iyer
  2004-04-28 16:48   ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Manoj Iyer @ 2004-04-27 23:27 UTC (permalink / raw)
  To: gdb


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 64/32 threaded app support
  2004-04-27 23:27 ` 64/32 threaded app support Manoj Iyer
@ 2004-04-28 16:48   ` Andrew Cagney
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2004-04-28 16:48 UTC (permalink / raw)
  To: Manoj Iyer; +Cc: gdb

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

I dropped them as it was getting late in the release cycle, and there 
are too many other patches needed before 64-bit PPC really starts to 
work (sigtramp, frame rewrite).  Hopefully 6.2 will be a viable for 
64-bit PPC.

However, Kevin might be interested in a backport of these and some other 
changes.

Andrew


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-28 16:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-27 19:06 pls pls point me to patch Manoj Iyer
2004-04-27 23:27 ` 64/32 threaded app support Manoj Iyer
2004-04-28 16:48   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).