This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFA: Fix to build arc-tdep.c with new ARC machine numbers
- To: gdb-patches at sources dot redhat dot com
- Subject: RFA: Fix to build arc-tdep.c with new ARC machine numbers
- From: Nick Clifton <nickc at redhat dot com>
- Date: Thu, 11 Jan 2001 13:31:19 -0800
Hi Guys,
The ARC port in binutils was recently changes by a submission from
Peter Taggert at arccores.com. This change introduced some new
machine numbers for the ARC and also changed how the disassembler is
invoked. The patch below makes adjustments to arc-tdep.c for both
of these changes.
OK to apply ?
Cheers
Nick
2001-01-11 Nick Clifton <nickc@redhat.com>
* arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
(arc_print_insn): No bfd available, so pass NULL to
arc_get_disassembler.
Index: gdb/arc-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arc-tdep.c,v
retrieving revision 1.3
diff -p -r1.3 arc-tdep.c
*** arc-tdep.c 2000/07/30 01:48:24 1.3
--- arc-tdep.c 2001/01/11 21:27:27
*************** struct
*** 44,56 ****
}
arc_cpu_type_table[] =
{
! {
! "base", bfd_mach_arc_base
! }
! ,
! {
! NULL, 0
! }
};
/* Used by simulator. */
--- 44,54 ----
}
arc_cpu_type_table[] =
{
! { "arc5", bfd_mach_arc_5 },
! { "arc6", bfd_mach_arc_6 },
! { "arc7", bfd_mach_arc_7 },
! { "arc8", bfd_mach_arc_8 },
! { NULL, 0 }
};
/* Used by simulator. */
*************** arc_print_insn (bfd_vma vma, disassemble
*** 618,625 ****
{
current_mach = arc_bfd_mach_type;
current_endian = TARGET_BYTE_ORDER;
! current_disasm = arc_get_disassembler (current_mach,
! current_endian == BIG_ENDIAN);
}
return (*current_disasm) (vma, info);
--- 616,622 ----
{
current_mach = arc_bfd_mach_type;
current_endian = TARGET_BYTE_ORDER;
! current_disasm = arc_get_disassembler (NULL);
}
return (*current_disasm) (vma, info);