Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC] TUI is broken in the cvs head
@ 2007-03-05 17:33 Denis PILAT
  2007-03-05 17:38 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Denis PILAT @ 2007-03-05 17:33 UTC (permalink / raw)
  To: gdb-patches

Attached is a simple patch that fixes a problem with the TUI: it was not 
possible anymore to load a binary file.
I saw that problem on a linux native debugger. The file command outputs 
"No registers." as an error message.

-- 

Denis

2007-03-05  Denis Pilat  <denis.pilat@st.com>


	* tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
	get_selected_frame by deprecated_safe_get_selected_frame.

Index: tui/tui-hooks.c

===================================================================

RCS file: /cvs/src/src/gdb/tui/tui-hooks.c,v

retrieving revision 1.29

diff -u -p -r1.29 tui-hooks.c

--- tui/tui-hooks.c     27 Feb 2007 19:46:04 -0000      1.29

+++ tui/tui-hooks.c     5 Mar 2007 17:24:39 -0000

@@ -230,7 +230,7 @@ tui_selected_frame_level_changed_hook (i

 {

   struct frame_info *fi;


-  fi = get_selected_frame (NULL);

+  fi = deprecated_safe_get_selected_frame ();

   /* Ensure that symbols for this frame are read in.  Also, determine the

      source language of this frame, and switch to it if desired.  */

   if (fi)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-03-08 16:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-05 17:33 [RFC] TUI is broken in the cvs head Denis PILAT
2007-03-05 17:38 ` Daniel Jacobowitz
2007-03-07 10:33   ` Denis PILAT
2007-03-08 16:14     ` Denis PILAT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox