This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix memwin typo


Hi,

This is pretty obivous boo-boo.

Keith

ChangeLog
2001-12-18  Keith Seitz  <keiths@redhat.com>

	* library/memwin.itb (incr_addr): Fix typo.

Patch
Index: gdb/gdbtk/library/memwin.itb
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/gdbtk/library/memwin.itb,v
retrieving revision 1.7
diff -u -p -r1.7 memwin.itb
--- gdb/gdbtk/library/memwin.itb	2001/11/23 18:03:34	1.7
+++ gdb/gdbtk/library/memwin.itb	2001/12/18 21:32:00
@@ -269,7 +269,7 @@ body MemWin::edit { cell } {

   if {$col == $Numcols} {
     # editing the ASCII field
-    set addr [gdb_incr_addr $current_addr + [expr {$bytes_per_row * $row}]]
+    set addr [gdb_incr_addr $current_addr [expr {$bytes_per_row * $row}]]
     set start_addr $addr

     # calculate number of rows to modify
@@ -543,7 +543,7 @@ body MemWin::incr_addr {num} {
     return
   }
   set old_addr $current_addr
-  set current_addr [gdb_incr_addr $current_addr + [expr {$bytes_per_row * $num}]]
+  set current_addr [gdb_incr_addr $current_addr [expr {$bytes_per_row * $num}]]

   # A memory address less than zero is probably not a good thing...
   #


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]