From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16494 invoked by alias); 4 Nov 2004 01:19:22 -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 16481 invoked from network); 4 Nov 2004 01:19:21 -0000 Received: from unknown (HELO mail01.idc.renesas.com) (202.234.163.13) by sourceware.org with SMTP; 4 Nov 2004 01:19:21 -0000 Received: (from root@localhost) by guardian05.idc.renesas.com with id iA41JJkB004836 for gdb-patches@sources.redhat.com; Thu, 4 Nov 2004 10:19:19 +0900 (JST) Received: from unknown [172.20.8.71] by guardian05.idc.renesas.com with SMTP id LAA04835 ; Thu, 4 Nov 2004 10:19:19 +0900 Received: from mrkaisv.hoku.renesas.com ([10.145.105.245]) by rnsmtp01.hoku_r.renesas.com (8.9.3/3.7W) with ESMTP id KAA28158 for ; Thu, 4 Nov 2004 10:19:18 +0900 (JST) Received: from E5A02646 (unknown [10.145.105.81]) by mrkaisv.hoku.renesas.com (Postfix) with SMTP id 098F37981B7 for ; Thu, 4 Nov 2004 10:19:18 +0900 (JST) Message-ID: <025b01c4c20c$9fa31e00$5169910a@E5A02646> From: "Kei Sakamoto" To: Subject: [RFA/m32r] Add gdbarch_init_osabi call Date: Thu, 04 Nov 2004 01:19:00 -0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0258_01C4C258.0F6F27B0" X-SW-Source: 2004-11/txt/msg00055.txt.bz2 This is a multi-part message in MIME format. ------=_NextPart_000_0258_01C4C258.0F6F27B0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Content-length: 472 Hello, m32r-linux-tdep.c calls gdbarch_register_osabi in _initialize_m32r_linux_tdep. But gdbarch_init_osabi is not called anywhere. The following patch adds gdbarch_init_osabi call to m32r_gdbarch_init and enables functions in m32r-linux-tdep.c. OK to commit? 2004-11-04 Kei Sakamoto * Makefile.in (m32r-tdep.o): Update dependencies. * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for ABI-specific overrides. ------=_NextPart_000_0258_01C4C258.0F6F27B0 Content-Type: application/octet-stream; name="m32r-tdep.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="m32r-tdep.patch" Content-length: 2343 Index: Makefile.in=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvs/src/src/gdb/Makefile.in,v=0A= retrieving revision 1.653=0A= diff -u -r1.653 Makefile.in=0A= --- Makefile.in 1 Nov 2004 21:05:46 -0000 1.653=0A= +++ Makefile.in 4 Nov 2004 01:06:31 -0000=0A= @@ -2171,7 +2171,7 @@=0A= $(frame_base_h) $(symtab_h) $(gdbtypes_h) $(gdbcmd_h) $(gdbcore_h) \=0A= $(gdb_string_h) $(value_h) $(inferior_h) $(symfile_h) $(objfiles_h) \=0A= $(language_h) $(arch_utils_h) $(regcache_h) $(trad_frame_h) \=0A= - $(dis_asm_h) $(gdb_assert_h) $(m32r_tdep_h)=0A= + $(dis_asm_h) $(gdb_assert_h) $(osabi_h) $(m32r_tdep_h)=0A= m68hc11-tdep.o: m68hc11-tdep.c $(defs_h) $(frame_h) $(frame_unwind_h) \=0A= $(frame_base_h) $(dwarf2_frame_h) $(trad_frame_h) $(symtab_h) \=0A= $(gdbtypes_h) $(gdbcmd_h) $(gdbcore_h) $(gdb_string_h) $(value_h) \=0A= Index: m32r-tdep.c=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvs/src/src/gdb/m32r-tdep.c,v=0A= retrieving revision 1.34=0A= diff -u -r1.34 m32r-tdep.c=0A= --- m32r-tdep.c 4 Nov 2004 00:40:39 -0000 1.34=0A= +++ m32r-tdep.c 4 Nov 2004 01:06:32 -0000=0A= @@ -33,6 +33,7 @@=0A= #include "inferior.h"=0A= #include "symfile.h"=0A= #include "objfiles.h"=0A= +#include "osabi.h"=0A= #include "language.h"=0A= #include "arch-utils.h"=0A= #include "regcache.h"=0A= @@ -938,7 +939,6 @@=0A= =20=0A= set_gdbarch_frame_align (gdbarch, m32r_frame_align);=0A= =20=0A= - frame_unwind_append_sniffer (gdbarch, m32r_frame_sniffer);=0A= frame_base_set_default (gdbarch, &m32r_frame_base);=0A= =20=0A= /* Methods for saving / extracting a dummy frame's ID. The ID's=0A= @@ -951,6 +951,12 @@=0A= =20=0A= set_gdbarch_print_insn (gdbarch, print_insn_m32r);=0A= =20=0A= + /* Hook in ABI-specific overrides, if they have been registered. */=0A= + gdbarch_init_osabi (info, gdbarch);=0A= +=0A= + /* Hook in the default unwinders. */=0A= + frame_unwind_append_sniffer (gdbarch, m32r_frame_sniffer);=0A= +=0A= return gdbarch;=0A= }=0A= =20=0A= ------=_NextPart_000_0258_01C4C258.0F6F27B0--