public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [patch] yet another 64-bit patch
@ 2002-09-24 15:23 Martin M. Hunt
  0 siblings, 0 replies; only message in thread
From: Martin M. Hunt @ 2002-09-24 15:23 UTC (permalink / raw)
  To: insight

[-- Attachment #1: Type: text/plain, Size: 197 bytes --]

Checked in another 64-bit fix.

2002-09-24  Martin M. Hunt  <hunt@redhat.com>

	* library/srctextwin.itb (FillMixed): Fix debug
	statement for 64-bit.
	(_highlightAsmLine): Fix 64-bit arithmetic.


[-- Attachment #2: p --]
[-- Type: text/plain, Size: 980 bytes --]

Index: srctextwin.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/srctextwin.itb,v
retrieving revision 1.36
diff -u -u -r1.36 srctextwin.itb
--- srctextwin.itb	20 Sep 2002 06:12:28 -0000	1.36
+++ srctextwin.itb	24 Sep 2002 22:15:15 -0000
@@ -1091,7 +1091,7 @@
     set mode_changed 0
     set oldpane $pane
     if {[LoadFromCache $w $funcname M $lib]} {
-      # debug [format "Disassembling at %x" $addr]
+      # debug "Disassembling at $addr"
       if {[catch {gdb_load_disassembly $win source \
 			     [scope _map] $Cname $addr} mess] } {
 	# print some intelligent error message
@@ -1134,7 +1134,7 @@
   if {[info exists _map($Cname,pc=$addr)]} {
     set current(asm_line) $_map($Cname,pc=$addr)
   } else {
-    set x [format "0x%x" [expr $current(addr)-2]]
+    set x [gdb_incr_addr $current(addr) -2]
     if {[info exists _map($Cname,pc=$x)]} {
       set current(asm_line) $_map($Cname,pc=$x)
     }

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

only message in thread, other threads:[~2002-09-24 22:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-24 15:23 [patch] yet another 64-bit patch Martin M. Hunt

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).