From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Some FR-V de-deprecation
Date: Mon, 27 Oct 2003 06:32:00 -0000 [thread overview]
Message-ID: <1031027063154.ZM27692@localhost.localdomain> (raw)
I've just committed the patch below.
* frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
Delete.
(frv_register_type): Rename from frv_register_virtual_type. Add
``struct gdbarch *'' parameter.
(frv_gdbarch_init): Delete calls to the following functions:
set_gdbarch_deprecated_size(),
set_gdbarch_deprecated_register_bytes(),
set_gdbarch_deprecated_register_raw_size(),
set_gdbarch_deprecated_max_register_raw_size(),
set_gdbarch_deprecated_register_virtual_size(),
set_gdbarch_deprecated_max_register_virtual_size(),
set_gdbarch_deprecated_register_virtual_size(),
set_gdbarch_deprecated_register_virtual_type().
Add call to function set_gdbarch_register_type().
Index: frv-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/frv-tdep.c,v
retrieving revision 1.55
diff -u -p -r1.55 frv-tdep.c
--- frv-tdep.c 14 Oct 2003 20:44:46 -0000 1.55
+++ frv-tdep.c 27 Oct 2003 06:19:28 -0000
@@ -236,21 +236,8 @@ frv_register_name (int reg)
return CURRENT_VARIANT->register_names[reg];
}
-
-static int
-frv_register_raw_size (int reg)
-{
- return 4;
-}
-
-static int
-frv_register_virtual_size (int reg)
-{
- return 4;
-}
-
static struct type *
-frv_register_virtual_type (int reg)
+frv_register_type (struct gdbarch *gdbarch, int reg)
{
if (reg >= 64 && reg <= 127)
return builtin_type_float;
@@ -1149,14 +1138,8 @@ frv_gdbarch_init (struct gdbarch_info in
set_gdbarch_pc_regnum (gdbarch, pc_regnum);
set_gdbarch_register_name (gdbarch, frv_register_name);
- set_gdbarch_deprecated_register_size (gdbarch, 4);
- set_gdbarch_deprecated_register_bytes (gdbarch, frv_num_regs * 4);
set_gdbarch_deprecated_register_byte (gdbarch, frv_register_byte);
- set_gdbarch_deprecated_register_raw_size (gdbarch, frv_register_raw_size);
- set_gdbarch_deprecated_max_register_raw_size (gdbarch, 4);
- set_gdbarch_deprecated_register_virtual_size (gdbarch, frv_register_virtual_size);
- set_gdbarch_deprecated_max_register_virtual_size (gdbarch, 4);
- set_gdbarch_deprecated_register_virtual_type (gdbarch, frv_register_virtual_type);
+ set_gdbarch_register_type (gdbarch, frv_register_type);
set_gdbarch_skip_prologue (gdbarch, frv_skip_prologue);
set_gdbarch_breakpoint_from_pc (gdbarch, frv_breakpoint_from_pc);
reply other threads:[~2003-10-27 6:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1031027063154.ZM27692@localhost.localdomain \
--to=kevinb@redhat.com \
--cc=gdb-patches@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