From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2736 invoked by alias); 3 Mar 2004 18:54:33 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2674 invoked from network); 3 Mar 2004 18:54:32 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 3 Mar 2004 18:54:32 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 898D02B92; Wed, 3 Mar 2004 13:54:27 -0500 (EST) Message-ID: <404629E3.5020906@gnu.org> Date: Wed, 03 Mar 2004 18:54:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: George Anzinger Cc: Daniel Jacobowitz , Eli Zaretskii , gdb@sources.redhat.com Subject: Re: Making "info thread" sane References: <403FEA02.6040506@mvista.com> <200403011454.35346.amitkale@emsyssoft.com> <4044FEDE.5000105@mvista.com> <20040302214535.GA24405@nevyn.them.org> <40450749.7020304@mvista.com> <20040302221718.GA26931@nevyn.them.org> <404515AA.8040709@mvista.com> <404517E8.1020708@gnu.org> <4045236B.3060104@mvista.com> <20040303142842.GA12777@nevyn.them.org> <4046267E.1080808@mvista.com> In-Reply-To: <4046267E.1080808@mvista.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00028.txt.bz2 >> The interesting thing about George's situation is that there's a lot of >> threads (basically, all but one of them) that we know in advance will >> be stuck in context switching code. One of the nice things about info >> threads is that it shows you the current frame for all your threads; >> but in this case, that's not really very interesting information. >> >> If we could find out where those threads were _before_ they switched >> out, now, that would make for an interesting overview. > > > Also, I am not apposed to a macro solution. But, as far as I know the macros are a bit weak. For example, the info thread command lists the thread number, pid, and an info field (which in my case is the task name from the kernel task struct). So how would a macro keep this info intact and display it along with the "up" result on the same line? In my thoughts on this I have considered a maintaince request to the host which would return the pid and the info field, .... > I also wonder how to determine, when stepping through the threads, that that was the last one. As far as I know the top thread number is not available as a $var (but that would be nice for other macros as well). Sorry, I'm lost here. Can you perhaphs sketch out how you'd expect GDB, the user, and the target to interact? Andrew