gdbserver: include linux-arm-tdesc.h in linux-arm-tdesc.c
[deliverable/binutils-gdb.git] / gdb / compile / compile-loc2c.c
index b5682d80a5537674e504a5e3ca7433a2dc6d44c0..0f911821115b2febcfcd2c842f885d98dbedce88 100644 (file)
@@ -1,6 +1,6 @@
 /* Convert a DWARF location expression to C
 
-   Copyright (C) 2014-2019 Free Software Foundation, Inc.
+   Copyright (C) 2014-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -28,8 +28,9 @@
 #include "compile.h"
 #include "block.h"
 #include "dwarf2-frame.h"
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
 #include "value.h"
+#include "gdbarch.h"
 
 \f
 
@@ -621,18 +622,18 @@ do_compile_dwarf_expr_to_c (int indent, string_file *stream,
       if (frame == NULL)
        error (_("Symbol \"%s\" cannot be used because "
                 "there is no selected frame"),
-              SYMBOL_PRINT_NAME (sym));
+              sym->print_name ());
 
       val = read_var_value (sym, NULL, frame);
       if (VALUE_LVAL (val) != lval_memory)
        error (_("Symbol \"%s\" cannot be used for compilation evaluation "
                 "as its address has not been found."),
-              SYMBOL_PRINT_NAME (sym));
+              sym->print_name ());
 
       warning (_("Symbol \"%s\" is thread-local and currently can only "
                 "be referenced from the current thread in "
                 "compiled code."),
-              SYMBOL_PRINT_NAME (sym));
+              sym->print_name ());
 
       fprintfi_filtered (indent, stream, "%s = %s;\n",
                         result_name,
This page took 0.026631 seconds and 4 git commands to generate.