From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gdb-patches-return-28216-listarch-gdb-patches=sources.redhat.com@sources.redhat.com>
Received: (qmail 3784 invoked by alias); 27 Oct 2003 06:32:05 -0000
Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm
Precedence: bulk
List-Subscribe: <mailto:gdb-patches-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/gdb-patches/>
List-Post: <mailto:gdb-patches@sources.redhat.com>
List-Help: <mailto:gdb-patches-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: gdb-patches-owner@sources.redhat.com
Received: (qmail 3773 invoked from network); 27 Oct 2003 06:32:02 -0000
Received: from unknown (HELO mx1.redhat.com) (66.187.233.31)
  by sources.redhat.com with SMTP; 27 Oct 2003 06:32:02 -0000
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254])
	by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h9R6W2M08583
	for <gdb-patches@sources.redhat.com>; Mon, 27 Oct 2003 01:32:02 -0500
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h9R6W2615538
	for <gdb-patches@sources.redhat.com>; Mon, 27 Oct 2003 01:32:02 -0500
Received: from localhost.localdomain (vpn50-2.rdu.redhat.com [172.16.50.2])
	by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h9R6W16q029565
	for <gdb-patches@sources.redhat.com>; Mon, 27 Oct 2003 01:32:01 -0500
Received: (from kev@localhost)
	by localhost.localdomain (8.11.6/8.11.6) id h9R6Vtm27693
	for gdb-patches@sources.redhat.com; Sun, 26 Oct 2003 23:31:55 -0700
Date: Mon, 27 Oct 2003 06:32:00 -0000
From: Kevin Buettner <kevinb@redhat.com>
Message-Id: <1031027063154.ZM27692@localhost.localdomain>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Some FR-V de-deprecation
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-SW-Source: 2003-10/txt/msg00777.txt.bz2

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


