From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10361 invoked by alias); 5 Mar 2007 17:33:32 -0000 Received: (qmail 10352 invoked by uid 22791); 5 Mar 2007 17:33:31 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-02.spheriq.net (HELO lon-del-02.spheriq.net) (195.46.50.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 05 Mar 2007 17:33:18 +0000 Received: from lon-out-02.spheriq.net ([195.46.50.130]) by lon-del-02.spheriq.net with ESMTP id l25HXgAo028990 for ; Mon, 5 Mar 2007 17:33:42 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-02.spheriq.net with ESMTP id l25HXFZY011903 for ; Mon, 5 Mar 2007 17:33:15 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id l25HXF8x013428 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Mon, 5 Mar 2007 17:33:15 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A8F3EDA43 for ; Mon, 5 Mar 2007 17:33:13 +0000 (GMT) Received: from mail1.cro.st.com (mail1.cro.st.com [164.129.40.131]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4EFCD47602 for ; Mon, 5 Mar 2007 17:33:13 +0000 (GMT) Received: from [164.129.44.95] (crx595.cro.st.com [164.129.44.95]) by mail1.cro.st.com (MOS 3.7.5a-GA) with ESMTP id CJX29673 (AUTH "denis pilat"); Mon, 5 Mar 2007 18:33:12 +0100 (CET) Message-ID: <45EC5458.2050603@st.com> Date: Mon, 05 Mar 2007 17:33:00 -0000 From: Denis PILAT User-Agent: Thunderbird 1.5.0.10 (X11/20070221) MIME-Version: 1.0 To: gdb-patches Subject: [RFC] TUI is broken in the cvs head Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00039.txt.bz2 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 * 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)