This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC] TUI is broken in the cvs head
- From: Denis PILAT <denis dot pilat at st dot com>
- To: gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 05 Mar 2007 18:33:12 +0100
- Subject: [RFC] TUI is broken in the cvs head
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)