aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2000-12-02 17:13:44 +0000
committerStephane Carrez <stcarrez@nerim.fr>2000-12-02 17:13:44 +0000
commited99b3d09ea27050663b28ac014f03d7dbb64624 (patch)
tree366251118dfb95edd82132b12a19a07a15bfe325
parentf91a8b6b5d55cf54e429e3c19da2c5f1223d9a6e (diff)
downloadgdb-ed99b3d09ea27050663b28ac014f03d7dbb64624.zip
gdb-ed99b3d09ea27050663b28ac014f03d7dbb64624.tar.gz
gdb-ed99b3d09ea27050663b28ac014f03d7dbb64624.tar.bz2
2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* m68hc11-tdep.c (m68hc11_gdbarch_init): Remove elf_flags, cleanup. (gdbarch_tdep): Likewise.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/m68hc11-tdep.c13
2 files changed, 6 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 94e3295..6227e9e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
+ * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove elf_flags, cleanup.
+ (gdbarch_tdep): Likewise.
+
+2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
+
* m68hc11-tdep.c (SOFT_D1_REGNUM): Soft registers start at 14.
(m68hc11_register_names): Add null for register 13.
diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c
index 63cb88d..64f7810 100644
--- a/gdb/m68hc11-tdep.c
+++ b/gdb/m68hc11-tdep.c
@@ -81,9 +81,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
struct insn_sequence;
struct gdbarch_tdep
{
- /* from the elf header */
- int elf_flags;
-
/* Stack pointer correction value. For 68hc11, the stack pointer points
to the next push location. An offset of 1 must be applied to obtain
the address where the last value is saved. For 68hc12, the stack
@@ -1030,10 +1027,6 @@ m68hc11_gdbarch_init (struct gdbarch_info info,
{0};
struct gdbarch *gdbarch;
struct gdbarch_tdep *tdep;
- int elf_flags;
-
- /* Extract the elf_flags if available */
- elf_flags = 0;
soft_reg_initialized = 0;
@@ -1042,17 +1035,13 @@ m68hc11_gdbarch_init (struct gdbarch_info info,
arches != NULL;
arches = gdbarch_list_lookup_by_info (arches->next, &info))
{
- /* MIPS needs to be pedantic about which ABI the object is
- using. */
- if (gdbarch_tdep (current_gdbarch)->elf_flags != elf_flags)
- continue;
return arches->gdbarch;
}
/* Need a new architecture. Fill in a target specific vector. */
tdep = (struct gdbarch_tdep *) xmalloc (sizeof (struct gdbarch_tdep));
gdbarch = gdbarch_alloc (&info, tdep);
- tdep->elf_flags = elf_flags;
+
switch (info.bfd_arch_info->arch)
{
case bfd_arch_m68hc11: