This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix illogical variable names in sparc-tdep.c
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 7 Feb 2004 21:40:38 +0100 (CET)
- Subject: [PATCH] Fix illogical variable names in sparc-tdep.c
Silly me. Having a variable named `i6' containing the value of the
register %i7 is just plain confusing.
Committed,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* sparc-tdep.c (sparc32_frame_prev_register): Rename local
variable `i6' to `i7'.
(sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
Index: sparc-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc-tdep.c,v
retrieving revision 1.148
diff -u -p -r1.148 sparc-tdep.c
--- sparc-tdep.c 4 Feb 2004 21:49:55 -0000 1.148
+++ sparc-tdep.c 7 Feb 2004 20:36:12 -0000
@@ -729,11 +729,11 @@ sparc32_frame_prev_register (struct fram
if (valuep)
{
CORE_ADDR addr = cache->base + (regnum - SPARC_L0_REGNUM) * 4;
- ULONGEST i6;
+ ULONGEST i7;
/* Read the value in from memory. */
- i6 = get_frame_memory_unsigned (next_frame, addr, 4);
- store_unsigned_integer (valuep, 4, i6 ^ wcookie);
+ i7 = get_frame_memory_unsigned (next_frame, addr, 4);
+ store_unsigned_integer (valuep, 4, i7 ^ wcookie);
}
return;
}
@@ -1241,9 +1241,9 @@ sparc_supply_rwindow (struct regcache *r
if (i == SPARC_I7_REGNUM)
{
ULONGEST wcookie = sparc_fetch_wcookie ();
- ULONGEST i6 = extract_unsigned_integer (buf + offset, 4);
+ ULONGEST i7 = extract_unsigned_integer (buf + offset, 4);
- store_unsigned_integer (buf + offset, 4, i6 ^ wcookie);
+ store_unsigned_integer (buf + offset, 4, i7 ^ wcookie);
}
regcache_raw_supply (regcache, i, buf);
@@ -1294,9 +1294,9 @@ sparc_collect_rwindow (const struct regc
if (i == SPARC_I7_REGNUM)
{
ULONGEST wcookie = sparc_fetch_wcookie ();
- ULONGEST i6 = extract_unsigned_integer (buf + offset, 4);
+ ULONGEST i7 = extract_unsigned_integer (buf + offset, 4);
- store_unsigned_integer (buf + offset, 4, i6 ^ wcookie);
+ store_unsigned_integer (buf + offset, 4, i7 ^ wcookie);
}
target_write_memory (sp + ((i - SPARC_L0_REGNUM) * 4),