This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How does GDB/MI give the current frame
- From: Daniel Jacobowitz <drow at false dot org>
- To: Nick Roberts <nickrob at gnu dot org>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 24 Jun 2004 19:16:59 -0400
- Subject: Re: How does GDB/MI give the current frame
- References: <16603.23348.569889.284030@nick.uklinux.net>
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