From 087ccc6a4f8c754a4f4d31810839a631dbeabe0d Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 9 Mar 2016 15:46:31 +0000 Subject: [PATCH] [FR-V] Handle FR300 Even though "set architecture" presents fr300 as option: (gdb) set architecture fr fr300 fr400 fr450 fr500 fr550 frv Actually selecting fr300 doesn't work: (gdb) set architecture fr300 Architecture `fr300' not recognized. The target architecture is set automatically (currently i386) (gdb) This just looks like an obvious oversight. Looking around gcc and binutils sources, FR300 is basically a FR500 specialized for DSP and low power. gdb/ChangeLog: 2016-03-09 Pedro Alves * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300. --- gdb/ChangeLog | 4 ++++ gdb/frv-tdep.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a6414c10517..56bcc67f2ef 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-03-09 Pedro Alves + + * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300. + 2016-03-09 Pedro Alves * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c index 623577d5efd..7ce08c05150 100644 --- a/gdb/frv-tdep.c +++ b/gdb/frv-tdep.c @@ -1481,6 +1481,7 @@ frv_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) { case bfd_mach_frv: case bfd_mach_frvsimple: + case bfd_mach_fr300: case bfd_mach_fr500: case bfd_mach_frvtomcat: case bfd_mach_fr550: @@ -1562,6 +1563,7 @@ frv_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) { case bfd_mach_frv: case bfd_mach_frvsimple: + case bfd_mach_fr300: case bfd_mach_fr500: case bfd_mach_frvtomcat: /* fr500-style hardware debugging support. */ -- 2.30.2