This is the mail archive of the gdb-prs@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: threads/1529: turn off thread support?


The following reply was made to PR threads/1529; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@false.org>
To: Peter D HUERTER <pete.huerter@st.com>, gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: threads/1529: turn off thread support?
Date: Thu, 22 Apr 2004 10:20:18 -0400

 On Thu, Apr 22, 2004 at 04:28:01AM -0000, Peter D HUERTER wrote:
 >  When I try to debug a statically linked NPTL program on:
 >  
 >  Red Hat Enterprise Linux release 2.9.5WS (Taroon)
 >  Kernel 2.4.21-1.1931.2.393.ent on an x86_64
 >  
 >  using:
 >  
 >  [pete@rhel30_64 ~]$ /usr/bin/gdb examples/omp
 >  GNU gdb Red Hat Linux (5.3.90-0.20030710.19rh)
 >  Copyright 2003 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 "x86_64-redhat-linux-gnu"...Using host 
 >  libthread_db library "/lib64/tls/libthread_db.so.1".
 >  
 >  GDB tries to use libthread_db.so.1 off of /lib/tls, and fails to attach 
 >  to detect the threads:
 
 >  If GDB were to use /lib/libthread_db.so instead it would probably work 
 >  (since I work on a debugger that fails in this case to debug threads 
 >  using /lib/tls/libthread_db.so, but works when instead it uses 
 >  /lib/libthread_db.so.
 >  
 >  Does anyone have any information about this behavior?
 
 It sounds like you'll have to ask this question of Red Hat - it's very
 system-dependent.  In general the latest versions of NPTL can handle
 debugging a 32-bit binary from a 64-bit debugger.  I don't know if the
 version in RHEL can.
 
 -- 
 Daniel Jacobowitz
 MontaVista Software                         Debian GNU/Linux Developer


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