diff options
author | Pedro Alves <palves@redhat.com> | 2016-03-09 15:46:31 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-03-09 15:46:31 +0000 |
commit | 087ccc6a4f8c754a4f4d31810839a631dbeabe0d (patch) | |
tree | 21306d08af6b17a53d736cd7992652b7851076cc | |
parent | 4b05e0a74b3fb21b56e821423b8a334e4be9cfe7 (diff) | |
download | gdb-087ccc6a4f8c754a4f4d31810839a631dbeabe0d.zip gdb-087ccc6a4f8c754a4f4d31810839a631dbeabe0d.tar.gz gdb-087ccc6a4f8c754a4f4d31810839a631dbeabe0d.tar.bz2 |
[FR-V] Handle FR300
Even though "set architecture" presents fr300 as option:
(gdb) set architecture fr<TAB>
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 <palves@redhat.com>
* frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/frv-tdep.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a6414c1..56bcc67 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2016-03-09 Pedro Alves <palves@redhat.com> + * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300. + +2016-03-09 Pedro Alves <palves@redhat.com> + * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte order is BFD_ENDIAN_BIG or if the cris version is unsupported. diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c index 623577d..7ce08c0 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. */ |