This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: threads/1576: Linux 2.6 thread status path in /proc has changed
- From: Daniel Jacobowitz <drow at false dot org>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 27 Feb 2004 17:28:01 -0000
- Subject: Re: threads/1576: Linux 2.6 thread status path in /proc has changed
- Reply-to: Daniel Jacobowitz <drow at false dot org>
The following reply was made to PR threads/1576; it has been noted by GNATS.
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