From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16584 invoked by alias); 24 Jun 2004 23:17:03 -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 16573 invoked from network); 24 Jun 2004 23:17:00 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 24 Jun 2004 23:17:00 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1BddSl-0004LL-Ok; Thu, 24 Jun 2004 19:16:59 -0400 Date: Thu, 24 Jun 2004 23:17:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: gdb@sources.redhat.com Subject: Re: How does GDB/MI give the current frame Message-ID: <20040624231659.GA16577@nevyn.them.org> Mail-Followup-To: Nick Roberts , gdb@sources.redhat.com References: <16603.23348.569889.284030@nick.uklinux.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16603.23348.569889.284030@nick.uklinux.net> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-06/txt/msg00251.txt.bz2 On Thu, Jun 24, 2004 at 11:52:36PM +0100, Nick Roberts wrote: > > Changing the frame with a CLI command (up, down, frame) using annotations > (level 1 or 2), GDB returns an annotation giving the new current frame. > In contrast, the MI command is -stack-select-frame is silent. > > Assuming that future front ends shouldn't use CLI commands, how do you > get the current frame using MI only? > > Nick > > > Context: gdb-ui.el can have a window showing the call stack from which a stack > frame can be made current by selection with the mouse. The displayed source > updates automatically. I don't see how I can do this with gdb-mi.el without > using the CLI. Why not use -stack-info-frame? -- Daniel Jacobowitz