This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] [FR-V] Handle FR300
- From: Pedro Alves <palves at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 9 Mar 2016 15:46:49 -0000
- Subject: [binutils-gdb] [FR-V] Handle FR300
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=087ccc6a4f8c754a4f4d31810839a631dbeabe0d
commit 087ccc6a4f8c754a4f4d31810839a631dbeabe0d
Author: Pedro Alves <palves@redhat.com>
Date: Wed Mar 9 15:46:31 2016 +0000
[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.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/frv-tdep.c | 2 ++
2 files changed, 6 insertions(+)
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. */