[ARC] Improve parsing instruction operands.
[deliverable/binutils-gdb.git] / gdb / ft32-tdep.c
index 404ec98484f670842d13bed55515aa7bcb8490cf..2d18b0ac3f1b70497828dd5d74434711bedc262c 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for FT32.
 
-   Copyright (C) 2009-2019 Free Software Foundation, Inc.
+   Copyright (C) 2009-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
-
-/* Standard C++ includes.  */
-#include <algorithm>
-
-/* Local non-gdb includes.  */
-#include "arch-utils.h"
-#include "dis-asm.h"
-#include "frame-base.h"
-#include "frame-unwind.h"
 #include "frame.h"
-#include "ft32-tdep.h"
-#include "gdb/sim-ft32.h"
+#include "frame-unwind.h"
+#include "frame-base.h"
+#include "symtab.h"
+#include "gdbtypes.h"
 #include "gdbcmd.h"
 #include "gdbcore.h"
-#include "gdbtypes.h"
+#include "value.h"
 #include "inferior.h"
-#include "language.h"
+#include "symfile.h"
 #include "objfiles.h"
-#include "opcode/ft32.h"
 #include "osabi.h"
-#include "record.h"
+#include "language.h"
+#include "arch-utils.h"
 #include "regcache.h"
-#include "symfile.h"
-#include "symtab.h"
 #include "trad-frame.h"
-#include "value.h"
+#include "dis-asm.h"
+#include "record.h"
+
+#include "opcode/ft32.h"
+
+#include "ft32-tdep.h"
+#include "gdb/sim-ft32.h"
+#include <algorithm>
 
 #define RAM_BIAS  0x800000  /* Bias added to RAM addresses.  */
 
@@ -301,7 +299,7 @@ ft32_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
          /* Found a function.  */
          sym = lookup_symbol (func_name, NULL, VAR_DOMAIN, NULL).symbol;
          /* Don't use line number debug info for assembly source files.  */
-         if ((sym != NULL) && SYMBOL_LANGUAGE (sym) != language_asm)
+         if ((sym != NULL) && sym->language () != language_asm)
            {
              sal = find_pc_line (func_addr, 0);
              if (sal.end && sal.end < func_end)
This page took 0.025779 seconds and 4 git commands to generate.