This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch/mn10300] mips vs mn10300


FYI,

I've committed the attatched.

	Andrew
2000-08-11  Andrew Cagney  <cagney@ops1.cygnus.com>

	* mn10300-tdep.c (mn10300_gdbarch_init): Check for mn10300 variant
	and not mips variant in the info struct.

Index: mn10300-tdep.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/mn10300-tdep.c,v
retrieving revision 1.38
diff -p -r1.38 mn10300-tdep.c
*** mn10300-tdep.c	2000/08/11 09:07:17	1.38
--- mn10300-tdep.c	2000/08/11 22:09:48
*************** mn10300_gdbarch_init (struct gdbarch_inf
*** 881,893 ****
    gdbarch = gdbarch_alloc (&info, tdep);
  
    if (info.bfd_arch_info != NULL
!       && info.bfd_arch_info->arch == bfd_arch_mips)
      mach = info.bfd_arch_info->mach;
    else
      mach = 0;
    switch (mach)
      {
      case 0:
        am33_mode = 0;
        register_name = mn10300_generic_register_name;
        num_regs = 32;
--- 881,894 ----
    gdbarch = gdbarch_alloc (&info, tdep);
  
    if (info.bfd_arch_info != NULL
!       && info.bfd_arch_info->arch == bfd_arch_mn10300)
      mach = info.bfd_arch_info->mach;
    else
      mach = 0;
    switch (mach)
      {
      case 0:
+     case bfd_mach_mn10300:
        am33_mode = 0;
        register_name = mn10300_generic_register_name;
        num_regs = 32;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]