From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4452 invoked by alias); 8 May 2002 15:43:03 -0000 Mailing-List: contact insight-prs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-prs-owner@sources.redhat.com Received: (qmail 4423 invoked by uid 71); 8 May 2002 15:43:01 -0000 Resent-Date: 8 May 2002 15:43:01 -0000 Resent-Message-ID: <20020508154301.4422.qmail@sources.redhat.com> 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, craig@triscend.com Received:(qmail 2453 invoked by uid 61); 8 May 2002 15:38:51 -0000 Message-Id:<20020508153850.2451.qmail@sources.redhat.com> Date: Wed, 08 May 2002 08:43:00 -0000 From: craig@triscend.com Reply-To: craig@triscend.com To: insight-gnats@sources.redhat.com X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: insight/153: Using the goto option in the memory window causes a stack trace X-SW-Source: 2002-q2/txt/msg00022.txt.bz2 List-Id: >Number: 153 >Category: insight >Synopsis: Using the goto option in the memory window causes a stack trace >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed May 08 08:43:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: craig@triscend.com >Release: unknown-1.0 >Organization: >Environment: Windows 2000/Cygwin & Linux, GDB for ARM >Description: Stack trace error when using goto within the memory window. the goto function in memwin.itb calls _update_address with the wrong number of params. It should pass 1 to the _update_address function. >How-To-Repeat: Connect to a target, open the memory window, right click on one of the memory locations and select goto... the stack trace is displayed. >Fix: The attached patch file fixes this problem, the patch also contains a fix for bug report 143. >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="memwin.itb.pat" Content-Disposition: inline; filename="memwin.itb.pat" Index: memwin.itb =================================================================== RCS file: /cvs/src/src/gdb/gdbtk/library/memwin.itb,v retrieving revision 1.17 diff -c -p -r1.17 memwin.itb *** memwin.itb 6 Mar 2002 23:56:03 -0000 1.17 --- memwin.itb 8 May 2002 15:32:37 -0000 *************** body MemWin::build_win {} { *** 116,122 **** $itk_interior.t configure -rowstretchmode none } scrollbar $itk_interior.sx -command [list $itk_interior.t xview] -orient horizontal ! $itk_interior.t tag config sel -bg [$itk_interior.t cget -bg] -relief sunken $itk_interior.t tag config active -bg lightgray -relief sunken -wrap 0 $itk_interior.t tag config title -bg [pref get gdb/font/header_bg] \ -fg [pref get gdb/font/header_fg] --- 116,123 ---- $itk_interior.t configure -rowstretchmode none } scrollbar $itk_interior.sx -command [list $itk_interior.t xview] -orient horizontal ! $itk_interior.t tag config sel -bg [$itk_interior.t cget -bg] \ ! -fg [$itk_interior.t cget -fg] -relief sunken $itk_interior.t tag config active -bg lightgray -relief sunken -wrap 0 $itk_interior.t tag config title -bg [pref get gdb/font/header_bg] \ -fg [pref get gdb/font/header_fg] *************** body MemWin::goto { addr } { *** 671,677 **** set current_addr $addr $itk_interior.f.cntl delete 0 end $itk_interior.f.cntl insert end $addr ! _update_address } # ------------------------------------------------------------------ --- 672,678 ---- set current_addr $addr $itk_interior.f.cntl delete 0 end $itk_interior.f.cntl insert end $addr ! _update_address 1 } # ------------------------------------------------------------------