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/1576: Linux 2.6 thread status path in /proc has changed


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

From: George J Karabin <gkarabin@ti.com>
To: drow@false.org
Cc: gdb-gnats@sources.redhat.com, gdb-patches@sources.redhat.com
Subject: Re: threads/1576: Linux 2.6 thread status path in /proc has changed
Date: Fri, 27 Feb 2004 10:26:31 -0800

 Yes, that's the change I was having problems with - thanks for the heads 
 up. Thanks for the info on ptid_get_pid - that's not obvious from 
 looking at the code - the creation of the ptids themselves is a little 
 hard to trace, and I didn't go back that far.
 
 >From: Daniel Jacobowitz <drow@false.org>
 >To: gkarabin@pobox.com
 >Cc: gdb-gnats@sources.redhat.com
 >Subject: Re: threads/1576: Linux 2.6 thread status path in /proc has changed
 >Date: Fri, 27 Feb 2004 12:24:45 -0500
 >
 > On Fri, Feb 27, 2004 at 07:51:28AM -0000, gkarabin@pobox.com wrote:
 > > Fedora Core 2 test1 + development
 > 
 > What kernel version?
 > 
 > > >Description:
 > > Linux kernel 2.6 no longer stores all LWP information directly under /proc/<lwp>. Instead, it's stored under /proc/<pid>/task/<lwp>. This causes problems in linux-lwp.c, when it tries to fetch lwp info from the old location.
 > 
 > If you're reporting this because of a kernel newer than 2.6.3-rc3, the
 > problematic change is being reverted.  Peter Chubb and Andrew Morton
 > discussed this on lkml yesterday.
 > 
 > GDB's ptid_get_pid is not always the process ID of the thread group
 > leader; there is no easy way to find the thread group leader.  So we
 > can't easily use the task subdirectory.
 > 
 > -- 
 > 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]