From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12228 invoked by alias); 19 Dec 2007 13:30:37 -0000 Received: (qmail 12219 invoked by uid 22791); 19 Dec 2007 13:30:36 -0000 X-Spam-Check-By: sourceware.org Received: from s200aog16.obsmtp.com (HELO psmtp.com) (207.126.144.130) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 19 Dec 2007 13:30:23 +0000 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob016.postini.com ([207.126.147.11]) with SMTP; Wed, 19 Dec 2007 13:30:20 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 91B11DA71 for ; Wed, 19 Dec 2007 13:30:19 +0000 (GMT) Received: from mail2.cro.st.com (mail2.cro.st.com [164.129.40.132]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 69BAD4C000 for ; Wed, 19 Dec 2007 13:30:19 +0000 (GMT) Received: from crx595.cro.st.com (crx595.cro.st.com [164.129.44.95]) by mail2.cro.st.com (MOS 3.7.5a-GA) with ESMTP id CKB87237 (AUTH "denis pilat"); Wed, 19 Dec 2007 14:30:18 +0100 (CET) Message-ID: <47691CE9.9020302@st.com> Date: Wed, 19 Dec 2007 13:41:00 -0000 From: Denis PILAT User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: gdb-patches Subject: [RFA] TUI do not display current execution point 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-12/txt/msg00300.txt.bz2 For binary files that have been compiled using a long absolute path, the old constant MAX_LOCATOR_ELEMENT_LEN is not long enough. tui_source_is_displayed() called from "tui-stack.c/tui_show_frame_info()" always returns false and we never execute "tui_set_is_exec_point_at ()" function. The side effect is that the ">" character is never displayed in the left pane of the TUI window. The problem was not easy to find, but the bellow patch is very simple and fix it. OK for commit ? -- Denis --- ../../../../../vendor/GDB6.7.1/gdb/tui/tui-data.h 2007-12-12 18:05:18.000000000 +0100 +++ ./tui-data.h 2007-12-19 14:03:59.000000000 +0100 @@ -196,7 +196,7 @@ struct tui_command_element }; -#define MAX_LOCATOR_ELEMENT_LEN 100 +#define MAX_LOCATOR_ELEMENT_LEN PATH_MAX /* Elements in the locator window content. */ struct tui_locator_element