This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[patch] REGISTER_RAW_SIZE => DEPRECATED_REGISTER_RAW_SIZE
- From: David Carlton <carlton at kealia dot com>
- To: insight at sources dot redhat dot com
- Date: Mon, 06 Oct 2003 09:34:04 -0700
- Subject: [patch] REGISTER_RAW_SIZE => DEPRECATED_REGISTER_RAW_SIZE
Andrew's latest deprecation missed occurrences in insight. Andrew,
can you please test these patches on a tree containing insight? And
if the insight people were to get around to making it possible to
build GDB in a tree containing insight, even if there are compilation
problems on the insight side, that would be greatly appreciated as
well.
Committed as obvious.
David Carlton
carlton@kealia.com
2003-10-06 David Carlton <carlton@kealia.com>
* generic/gdbtk-register.c (get_register_size): Replace
REGISTER_RAW_SIZE by DEPRECATED_REGISTER_RAW_SIZE.
(get_register, register_changed_p): Ditto.
Index: gdbtk-register.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-register.c,v
retrieving revision 1.21
diff -u -p -r1.21 gdbtk-register.c
--- gdbtk-register.c 30 Sep 2003 23:10:55 -0000 1.21
+++ gdbtk-register.c 6 Oct 2003 16:30:05 -0000
@@ -202,7 +202,8 @@ static void
get_register_size (int regnum, void *arg)
{
Tcl_ListObjAppendElement (gdbtk_interp, result_ptr->obj_ptr,
- Tcl_NewIntObj (REGISTER_RAW_SIZE (regnum)));
+ Tcl_NewIntObj (DEPRECATED_REGISTER_RAW_SIZE
+ (regnum)));
}
/* returns a list of valid types for a register */
@@ -321,10 +322,10 @@ get_register (int regnum, void *arg)
strcpy (buf, "0x");
ptr = buf + 2;
- for (j = 0; j < REGISTER_RAW_SIZE (regnum); j++)
+ for (j = 0; j < DEPRECATED_REGISTER_RAW_SIZE (regnum); j++)
{
int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j
- : REGISTER_RAW_SIZE (regnum) - 1 - j;
+ : DEPRECATED_REGISTER_RAW_SIZE (regnum) - 1 - j;
sprintf (ptr, "%02x", (unsigned char) raw_buffer[idx]);
ptr += 2;
}
@@ -447,13 +448,13 @@ register_changed_p (int regnum, void *ar
return;
if (memcmp (&old_regs[regnum * MAX_REGISTER_SIZE], raw_buffer,
- REGISTER_RAW_SIZE (regnum)) == 0)
+ DEPRECATED_REGISTER_RAW_SIZE (regnum)) == 0)
return;
/* Found a changed register. Save new value and return its number. */
memcpy (&old_regs[regnum * MAX_REGISTER_SIZE], raw_buffer,
- REGISTER_RAW_SIZE (regnum));
+ DEPRECATED_REGISTER_RAW_SIZE (regnum));
Tcl_ListObjAppendElement (NULL, result_ptr->obj_ptr, Tcl_NewIntObj (regnum));
}