This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: TUI + gdbserver broken?
On Mon, Mar 19, 2007 at 10:57:53PM +0000, Pedro Alves wrote:
> That has exactly the same effect as it was before the your select frame
> changes.
> That is, only try to get the selected frame when there is one. Maybe there
> should
> still be a function like this in frame.c ?
> struct frame_info *
> deprecated_get_selected_frame ()
> {
> return selected_frame;
> }
> (or perhaps call it get_selected_frame_if_any)
The problem is that when we reinitialize the frame cache, the selected
frame is indeterminate - the selected_frame global may randomly be
initialized or NULL depending on what else has been called since we
last did reinit_frame_cache.
--
Daniel Jacobowitz
CodeSourcery