From: "Kei Sakamoto" <sakamoto.kei@renesas.com>
To: <gdb-patches@sources.redhat.com>
Subject: [RFA/m32r] Add gdbarch_init_osabi call
Date: Thu, 04 Nov 2004 01:19:00 -0000 [thread overview]
Message-ID: <025b01c4c20c$9fa31e00$5169910a@E5A02646> (raw)
[-- Attachment #1: Type: text/plain, Size: 472 bytes --]
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 <sakamoto.kei@renesas.com>
* Makefile.in (m32r-tdep.o): Update dependencies.
* m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
ABI-specific overrides.
[-- Attachment #2: m32r-tdep.patch --]
[-- Type: application/octet-stream, Size: 1899 bytes --]
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.653
diff -u -r1.653 Makefile.in
--- Makefile.in 1 Nov 2004 21:05:46 -0000 1.653
+++ Makefile.in 4 Nov 2004 01:06:31 -0000
@@ -2171,7 +2171,7 @@
$(frame_base_h) $(symtab_h) $(gdbtypes_h) $(gdbcmd_h) $(gdbcore_h) \
$(gdb_string_h) $(value_h) $(inferior_h) $(symfile_h) $(objfiles_h) \
$(language_h) $(arch_utils_h) $(regcache_h) $(trad_frame_h) \
- $(dis_asm_h) $(gdb_assert_h) $(m32r_tdep_h)
+ $(dis_asm_h) $(gdb_assert_h) $(osabi_h) $(m32r_tdep_h)
m68hc11-tdep.o: m68hc11-tdep.c $(defs_h) $(frame_h) $(frame_unwind_h) \
$(frame_base_h) $(dwarf2_frame_h) $(trad_frame_h) $(symtab_h) \
$(gdbtypes_h) $(gdbcmd_h) $(gdbcore_h) $(gdb_string_h) $(value_h) \
Index: m32r-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/m32r-tdep.c,v
retrieving revision 1.34
diff -u -r1.34 m32r-tdep.c
--- m32r-tdep.c 4 Nov 2004 00:40:39 -0000 1.34
+++ m32r-tdep.c 4 Nov 2004 01:06:32 -0000
@@ -33,6 +33,7 @@
#include "inferior.h"
#include "symfile.h"
#include "objfiles.h"
+#include "osabi.h"
#include "language.h"
#include "arch-utils.h"
#include "regcache.h"
@@ -938,7 +939,6 @@
set_gdbarch_frame_align (gdbarch, m32r_frame_align);
- frame_unwind_append_sniffer (gdbarch, m32r_frame_sniffer);
frame_base_set_default (gdbarch, &m32r_frame_base);
/* Methods for saving / extracting a dummy frame's ID. The ID's
@@ -951,6 +951,12 @@
set_gdbarch_print_insn (gdbarch, print_insn_m32r);
+ /* Hook in ABI-specific overrides, if they have been registered. */
+ gdbarch_init_osabi (info, gdbarch);
+
+ /* Hook in the default unwinders. */
+ frame_unwind_append_sniffer (gdbarch, m32r_frame_sniffer);
+
return gdbarch;
}
next reply other threads:[~2004-11-04 1:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-04 1:19 Kei Sakamoto [this message]
2004-11-04 2:07 ` Daniel Jacobowitz
2004-11-04 2:22 ` Kei Sakamoto
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='025b01c4c20c$9fa31e00$5169910a@E5A02646' \
--to=sakamoto.kei@renesas.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