From: David Carlton <carlton@kealia.com>
To: insight@sources.redhat.com
Subject: [patch] REGISTER_RAW_SIZE => DEPRECATED_REGISTER_RAW_SIZE
Date: Mon, 06 Oct 2003 16:34:00 -0000 [thread overview]
Message-ID: <yf23ce6ba0z.fsf@hawaii.kealia.com> (raw)
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));
}
next reply other threads:[~2003-10-06 16:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-06 16:34 David Carlton [this message]
2003-10-06 18:30 ` Andrew Cagney
2003-10-06 19:49 ` David Carlton
2003-10-06 21:24 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yf23ce6ba0z.fsf@hawaii.kealia.com \
--to=carlton@kealia.com \
--cc=insight@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).