gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / csky-tdep.c
index cabc5e14918c00aea22d0f93d723134b75d2cb67..7e5b71eece0f497f0c44ed89c522d8e0a8bb1135 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for the CSKY architecture, for GDB.
 
-   Copyright (C) 2010-2019 Free Software Foundation, Inc.
+   Copyright (C) 2010-2020 Free Software Foundation, Inc.
 
    Contributed by C-SKY Microsystems and Mentor Graphics.
 
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
-
-/* Standard C++ includes.  */
-#include <algorithm>
-#include <vector>
-
-/* Local non-gdb includes.  */
-#include "arch-utils.h"
-#include "block.h"
-#include "common/gdb_assert.h"
-#include "csky-tdep.h"
-#include "dis-asm.h"
-#include "dwarf2-frame.h"
-#include "elf-bfd.h"
-#include "elf/csky.h"
-#include "floatformat.h"
-#include "frame-base.h"
-#include "frame-unwind.h"
+#include "gdbsupport/gdb_assert.h"
 #include "frame.h"
-#include "gdbcmd.h"
-#include "gdbcore.h"
-#include "gdbtypes.h"
-#include "infcall.h"
 #include "inferior.h"
+#include "symtab.h"
+#include "value.h"
+#include "gdbcmd.h"
 #include "language.h"
+#include "gdbcore.h"
+#include "symfile.h"
 #include "objfiles.h"
-#include "opcode/csky.h"
-#include "osabi.h"
+#include "gdbtypes.h"
+#include "target.h"
+#include "arch-utils.h"
 #include "regcache.h"
+#include "osabi.h"
+#include "block.h"
 #include "reggroups.h"
-#include "regset.h"
-#include "remote.h"
-#include "sim-regno.h"
+#include "elf/csky.h"
+#include "elf-bfd.h"
 #include "symcat.h"
-#include "symfile.h"
-#include "symtab.h"
-#include "target-descriptions.h"
-#include "target.h"
+#include "sim-regno.h"
+#include "dis-asm.h"
+#include "frame-unwind.h"
+#include "frame-base.h"
 #include "trad-frame.h"
+#include "infcall.h"
+#include "floatformat.h"
+#include "remote.h"
+#include "target-descriptions.h"
+#include "dwarf2/frame.h"
 #include "user-regs.h"
 #include "valprint.h"
-#include "value.h"
+#include "csky-tdep.h"
+#include "regset.h"
+#include "opcode/csky.h"
+#include <algorithm>
+#include <vector>
 
 /* Control debugging information emitted in this file.  */
-static int csky_debug = 0;
+static bool csky_debug = false;
 
 static struct reggroup *cr_reggroup;
 static struct reggroup *fr_reggroup;
@@ -271,7 +267,7 @@ csky_vector_type (struct gdbarch *gdbarch)
                               init_vector_type (bt->builtin_int8, 16));
 
   TYPE_VECTOR (t) = 1;
-  TYPE_NAME (t) = "builtin_type_vec128i";
+  t->set_name ("builtin_type_vec128i");
 
   return t;
 }
@@ -2244,8 +2240,9 @@ csky_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_csky_tdep ();
 void
-_initialize_csky_tdep (void)
+_initialize_csky_tdep ()
 {
 
   register_gdbarch_init (bfd_arch_csky, csky_gdbarch_init);
This page took 0.036138 seconds and 4 git commands to generate.