public inbox for insight-prs@sourceware.org
help / color / mirror / Atom feed
* insight/153: Using the goto option in the memory window causes a stack trace
@ 2002-05-08  8:43 craig
  0 siblings, 0 replies; only message in thread
From: craig @ 2002-05-08  8:43 UTC (permalink / raw)
  To: insight-gnats


>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
  }
  
  # ------------------------------------------------------------------



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-08 15:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-08  8:43 insight/153: Using the goto option in the memory window causes a stack trace craig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).