aboutsummaryrefslogtreecommitdiff
path: root/gdbserver
diff options
context:
space:
mode:
Diffstat (limited to 'gdbserver')
-rw-r--r--gdbserver/ChangeLog5
-rw-r--r--gdbserver/ax.cc2
-rw-r--r--gdbserver/tracepoint.cc2
3 files changed, 7 insertions, 2 deletions
diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog
index 0c8af7c..3b08ef3 100644
--- a/gdbserver/ChangeLog
+++ b/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2020-09-14 Tom Tromey <tromey@adacore.com>
+
+ * tracepoint.cc (eval_result_names): Now const.
+ * ax.cc (gdb_agent_op_names): Now const.
+
2020-09-10 Kamil Rytarowski <n54@gmx.com>
* netbsd-low.cc: Add.
diff --git a/gdbserver/ax.cc b/gdbserver/ax.cc
index 42d2812..361e7a2 100644
--- a/gdbserver/ax.cc
+++ b/gdbserver/ax.cc
@@ -65,7 +65,7 @@ enum gdb_agent_op
gdb_agent_op_last
};
-static const char *gdb_agent_op_names [gdb_agent_op_last] =
+static const char * const gdb_agent_op_names [gdb_agent_op_last] =
{
"?undef?"
#define DEFOP(NAME, SIZE, DATA_SIZE, CONSUMED, PRODUCED, VALUE) , # NAME
diff --git a/gdbserver/tracepoint.cc b/gdbserver/tracepoint.cc
index e587d65..6881f31 100644
--- a/gdbserver/tracepoint.cc
+++ b/gdbserver/tracepoint.cc
@@ -863,7 +863,7 @@ EXTERN_C_POP
static struct tracepoint *last_tracepoint;
-static const char *eval_result_names[] =
+static const char * const eval_result_names[] =
{
"terror:in the attic", /* this should never be reported */
"terror:empty expression",