From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12597 invoked by alias); 14 Jul 2005 08:33:02 -0000 Mailing-List: contact insight-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-prs-owner@sourceware.org Received: (qmail 12569 invoked by uid 71); 14 Jul 2005 08:33:01 -0000 Resent-Date: 14 Jul 2005 08:33:01 -0000 Resent-Message-ID: <20050714083301.12568.qmail@sourceware.org> Resent-From: insight-gnats@sources.redhat.com (GNATS Filer) Resent-To: nobody@sources.redhat.com Resent-Cc: insight-prs@sources.redhat.com Resent-Reply-To: insight-gnats@sources.redhat.com, dieter_ruppert@siemens.com Received: (qmail 12153 invoked by uid 48); 14 Jul 2005 08:31:02 -0000 Message-Id: <20050714083102.12152.qmail@sourceware.org> Date: Thu, 14 Jul 2005 08:33:00 -0000 From: dieter_ruppert@siemens.com Reply-To: dieter_ruppert@siemens.com To: insight-gnats@sources.redhat.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: insight/269: Addresses in memory window reset to default when format is changed X-SW-Source: 2005-q3/txt/msg00002.txt.bz2 List-Id: >Number: 269 >Category: insight >Synopsis: Addresses in memory window reset to default when format is changed >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Jul 14 08:33:00 UTC 2005 >Closed-Date: >Last-Modified: >Originator: Insight-6.1 >Release: 6.1 >Organization: >Environment: Solaris 8 (Sparc) >Description: we noticed a small bug in Insight's memory window: when the display format is changed, (from "Word" to "Byte", for example), the address displayed resets back to the default (which is usually the start of the .data section). I looked at the code in memwin.itb, and the reason seems obvious: the member variable MemWin::addr_exp is never updated (after being initialized to .data). MemWin::reconfig, which is called after a format change, uses this value, and therefore resets the address to the default. >How-To-Repeat: >Fix: A simple one-line change fixes this; I include a small patch below. BTW: this was Insight from gdb-6.1, but memwin.itb apparently hasn't changed since then. *** memwin.itb Wed Jul 6 11:04:41 2005 --- memwin.itb.new Wed Jul 6 11:06:34 2005 *************** *** 512,517 **** --- 512,519 ---- incr index -1 set current_addr [string range $current_addr 0 $index] } + + set MemWin::addr_exp $addr_exp # set table background $itk_component(table) config -bg $::Colors(textbg) -state normal >Release-Note: >Audit-Trail: >Unformatted: