+2020-09-15 Tom Tromey <tromey@adacore.com>
+
+ * unittests/memory-map-selftests.c (valid_mem_map): Now array.
+ * ui-style.c (ansi_regex_text): Now array.
+ * rust-exp.y (number_regex_text): Now array.
+ * linespec.c (linespec_quote_characters): Now array.
+ * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
+ Now arrays.
+
2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
* debuginfod-support.c (debuginfod_client_deleter): New.
static std::string jit_reader_dir;
-static const char *const jit_break_name = "__jit_debug_register_code";
+static const char jit_break_name[] = "__jit_debug_register_code";
-static const char *const jit_descriptor_name = "__jit_debug_descriptor";
+static const char jit_descriptor_name[] = "__jit_debug_descriptor";
static void jit_inferior_init (struct gdbarch *gdbarch);
static void jit_inferior_exit_hook (struct inferior *inf);
static struct jit_reader *loaded_jit_reader = NULL;
typedef struct gdb_reader_funcs * (reader_init_fn_type) (void);
-static const char *reader_init_fn_sym = "gdb_init_reader";
+static const char reader_init_fn_sym[] = "gdb_init_reader";
/* Try to load FILE_NAME as a JIT debug info reader. */
/* Permitted quote characters for the parser. This is different from the
completer's quote characters to allow backward compatibility with the
previous parser. */
-static const char *const linespec_quote_characters = "\"\'";
+static const char linespec_quote_characters[] = "\"\'";
/* Lexer functions. */
since it is very long and this gives us a way to comment the
sections. */
-static const char *number_regex_text =
+static const char number_regex_text[] =
/* subexpression 1: allows use of alternation, otherwise uninteresting */
"^("
/* First comes floating point. */
/* A regular expression that is used for matching ANSI terminal escape
sequences. */
-static const char *ansi_regex_text =
+static const char ansi_regex_text[] =
/* Introduction. */
"^\033\\["
#define DATA_SUBEXP 1
/* A simple valid test input for parse_memory_map. */
-static const char *valid_mem_map = R"(<?xml version="1.0"?>
+static const char valid_mem_map[] = R"(<?xml version="1.0"?>
<!DOCTYPE memory-map
PUBLIC "+//IDN gnu.org//DTD GDB Memory Map V1.0//EN"
"http://sourceware.org/gdb/gdb-memory-map.dtd">
+2020-09-15 Tom Tromey <tromey@adacore.com>
+
+ * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
+ (xmltarget_amd64_linux_no_xml): Now arrays.
+
2020-09-14 Tom Tromey <tromey@adacore.com>
* tracepoint.cc (eval_result_names): Now const.
/* Backward compatibility for gdb without XML support. */
-static const char *xmltarget_i386_linux_no_xml = "@<target>\
+static const char xmltarget_i386_linux_no_xml[] = "@<target>\
<architecture>i386</architecture>\
<osabi>GNU/Linux</osabi>\
</target>";
#ifdef __x86_64__
-static const char *xmltarget_amd64_linux_no_xml = "@<target>\
+static const char xmltarget_amd64_linux_no_xml[] = "@<target>\
<architecture>i386:x86-64</architecture>\
<osabi>GNU/Linux</osabi>\
</target>";