From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29678 invoked by alias); 26 Jun 2004 14:59:36 -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 29671 invoked from network); 26 Jun 2004 14:59:35 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 26 Jun 2004 14:59:35 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1BeEeV-0006qM-4L; Sat, 26 Jun 2004 10:59:35 -0400 Date: Sat, 26 Jun 2004 14:59:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: Andrew Cagney , gdb@sources.redhat.com Subject: Re: How does GDB/MI give the current frame Message-ID: <20040626145935.GA26129@nevyn.them.org> Mail-Followup-To: Nick Roberts , Andrew Cagney , gdb@sources.redhat.com References: <16603.23348.569889.284030@nick.uklinux.net> <20040624231659.GA16577@nevyn.them.org> <16605.15641.474398.42157@nick.uklinux.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16605.15641.474398.42157@nick.uklinux.net> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-06/txt/msg00258.txt.bz2 On Sat, Jun 26, 2004 at 10:08:41AM +0100, Nick Roberts wrote: > > Daniel Jacobowitz writes: > DJ> > DJ> Why not use -stack-info-frame? > > Because AFAIK this MI command has not been implemented (yet). So it hasn't! Silly me, I was fooled by it being documented in the manual. > Andrew Cagney writes: > > AC> When the user does "up", "down", the debugger should generate a selected > AC> CLI frame changed event (it currently doesn't). If the GUI so chooses, > AC> it can track the users "selected" frame, by responding to these events. > > I don't know what a selected CLI frame changed event is but up, down, and > frame generate MI output, so I imagine its just a case of hooking > -stack-info-frame and -stack-select-frame to that output. I will try to do > this if you think it's appropriate. I think that Andrew's answering a related question: for debuggers which allow entry of console commands, the interface needs a way to update its windows when the user types "up". Since you're just interested in MI at the moment, I suspect that filling in -stack-info-frame is the way to go. I'm not sure whether -stack-select-frame should have output or not. -- Daniel Jacobowitz