From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19286 invoked by alias); 22 Oct 2006 20:03:41 -0000 Received: (qmail 19278 invoked by uid 22791); 22 Oct 2006 20:03:41 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO brahms.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 22 Oct 2006 20:03:39 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by brahms.sibelius.xs4all.nl (8.13.8/8.13.6) with ESMTP id k9MK3QnD001488; Sun, 22 Oct 2006 22:03:26 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.8/8.13.6) with ESMTP id k9MK3Q60011814; Sun, 22 Oct 2006 22:03:26 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.8/8.13.8/Submit) id k9MK3QPN023611; Sun, 22 Oct 2006 22:03:26 +0200 (CEST) Date: Sun, 22 Oct 2006 20:03:00 -0000 Message-Id: <200610222003.k9MK3QPN023611@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: kevinb@redhat.com CC: gdb-patches@sources.redhat.com In-reply-to: <20061020100100.49fb9285@ironwood.lan> (message from Kevin Buettner on Fri, 20 Oct 2006 10:01:00 -0700) Subject: Re: [RFC/RFA] new command: maintenance print target-stack References: <20061017225247.GQ1903@adacore.com> <20061020100100.49fb9285@ironwood.lan> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00271.txt.bz2 > Date: Fri, 20 Oct 2006 10:01:00 -0700 > From: Kevin Buettner > > On Tue, 17 Oct 2006 18:52:47 -0400 > Joel Brobecker wrote: > > > While working to "auto-solib-add", I found that I was very frequently > > in need to dumping the current target stack (I just need the names), > > to see if the multi-thread layer has been pushed or not. So I > > implemented a new "maintenance" command, hoping that others might > > find it useful. > > > > (gdb) maintenance print target-stack > > The current target stack is: > > - multi-thread (multi-threaded child process.) > > - child (Unix child process) > > - exec (Local exec file) > > - None (None) > > > > Opinions? Eventually, we might want to actually dump more > > information if that's useful to others, but that's a start. > > As a developer, I know that I'd find this to be useful from time to > time. I'm in favor of this patch. No objections from me either. I don't think we make any guarantees about the availibility of the maintenance commands, so we can always improve this later (if necessary). Mark