/* 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. */
/* 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)