From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26038 invoked by alias); 24 Jun 2004 22:54:00 -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 25815 invoked from network); 24 Jun 2004 22:53:57 -0000 Received: from unknown (HELO nick.uklinux.net) (194.247.51.201) by sourceware.org with SMTP; 24 Jun 2004 22:53:57 -0000 Received: by nick.uklinux.net (Postfix, from userid 501) id 10AE475FE0; Thu, 24 Jun 2004 23:52:36 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16603.23348.569889.284030@nick.uklinux.net> Date: Thu, 24 Jun 2004 22:54:00 -0000 To: gdb@sources.redhat.com Subject: How does GDB/MI give the current frame X-SW-Source: 2004-06/txt/msg00250.txt.bz2 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.