From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31677 invoked by alias); 13 Aug 2003 22:00:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31670 invoked from network); 13 Aug 2003 22:00:52 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 13 Aug 2003 22:00:52 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h7DM0pt26587 for ; Wed, 13 Aug 2003 18:00:51 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h7DM0nL11567; Wed, 13 Aug 2003 18:00:49 -0400 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h7DM0nO27044; Wed, 13 Aug 2003 15:00:49 -0700 Message-ID: <3F3AB511.2010509@redhat.com> Date: Wed, 13 Aug 2003 22:00:00 -0000 From: Michael Snyder User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [PATCH] gdbarch upkeep for FRV Content-Type: multipart/mixed; boundary="------------040903050305000401000209" X-SW-Source: 2003-08/txt/msg00225.txt.bz2 This is a multi-part message in MIME format. --------------040903050305000401000209 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 119 Just a few tweaks that have fallen thru the cracks. BTW, this target needs some upkeep WRT the new frame_info model. --------------040903050305000401000209 Content-Type: text/plain; name="frv" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="frv" Content-length: 2930 2003-08-13 Michael Snyder * frv-tdep.c (frv_push_arguments): Use deprecated ftype. (frv_saved_pc_after_call): Use deprecated ftype. (stupid_useless_init_extra_frame_info): Remove orphan prototype. (frv_remote_translate_xfer_address): Remove. (frv_gdbarch_init): Use generic_remote_translate_xfer_address. Index: frv-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/frv-tdep.c,v retrieving revision 1.46 diff -p -r1.46 frv-tdep.c *** frv-tdep.c 13 Jun 2003 20:19:13 -0000 1.46 --- frv-tdep.c 13 Aug 2003 21:58:51 -0000 *************** static gdbarch_skip_prologue_ftype frv_s *** 35,43 **** static gdbarch_deprecated_extract_return_value_ftype frv_extract_return_value; static gdbarch_deprecated_extract_struct_value_address_ftype frv_extract_struct_value_address; static gdbarch_frameless_function_invocation_ftype frv_frameless_function_invocation; ! static gdbarch_init_extra_frame_info_ftype stupid_useless_init_extra_frame_info; ! static gdbarch_push_arguments_ftype frv_push_arguments; ! static gdbarch_saved_pc_after_call_ftype frv_saved_pc_after_call; static void frv_pop_frame_regular (struct frame_info *frame); --- 35,42 ---- static gdbarch_deprecated_extract_return_value_ftype frv_extract_return_value; static gdbarch_deprecated_extract_struct_value_address_ftype frv_extract_struct_value_address; static gdbarch_frameless_function_invocation_ftype frv_frameless_function_invocation; ! static gdbarch_deprecated_push_arguments_ftype frv_push_arguments; ! static gdbarch_deprecated_saved_pc_after_call_ftype frv_saved_pc_after_call; static void frv_pop_frame_regular (struct frame_info *frame); *************** frv_pop_frame_regular (struct frame_info *** 920,935 **** flush_cached_frames (); } - - static void - frv_remote_translate_xfer_address (CORE_ADDR memaddr, int nr_bytes, - CORE_ADDR *targ_addr, int *targ_len) - { - *targ_addr = memaddr; - *targ_len = nr_bytes; - } - - /* Hardware watchpoint / breakpoint support for the FR500 and FR400. */ --- 919,924 ---- *************** frv_gdbarch_init (struct gdbarch_info in *** 1090,1096 **** set_gdbarch_function_start_offset (gdbarch, 0); set_gdbarch_remote_translate_xfer_address ! (gdbarch, frv_remote_translate_xfer_address); /* Hardware watchpoint / breakpoint support. */ switch (info.bfd_arch_info->mach) --- 1079,1085 ---- set_gdbarch_function_start_offset (gdbarch, 0); set_gdbarch_remote_translate_xfer_address ! (gdbarch, generic_remote_translate_xfer_address); /* Hardware watchpoint / breakpoint support. */ switch (info.bfd_arch_info->mach) *************** _initialize_frv_tdep (void) *** 1128,1131 **** deprecated_tm_print_insn = print_insn_frv; } ! --- 1117,1120 ---- deprecated_tm_print_insn = print_insn_frv; } ! --------------040903050305000401000209--