aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-06-12 12:57:21 +0000
committerMark Kettenis <kettenis@gnu.org>2005-06-12 12:57:21 +0000
commit4bd7b4271e8106f25316aaaeb0c2073ab08e418b (patch)
tree92b1e54f62d52e405716cc0a9808fb66f185c446
parent5b81956883339ad43e09d3e3a4a6f9bc54f4727c (diff)
downloadgdb-4bd7b4271e8106f25316aaaeb0c2073ab08e418b.zip
gdb-4bd7b4271e8106f25316aaaeb0c2073ab08e418b.tar.gz
gdb-4bd7b4271e8106f25316aaaeb0c2073ab08e418b.tar.bz2
* arm-tdep.c (set_disassembly_style, _initialize_arm_tdep):
Consitify regnames.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/arm-tdep.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 15ee8ac..647b041 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2005-06-12 Mark Kettenis <kettenis@gnu.org>
+ * arm-tdep.c (set_disassembly_style, _initialize_arm_tdep):
+ Consitify regnames.
+
* alpha-tdep.c (alpha_sigtramp_frame_prev_register)
(alpha_heuristic_frame_prev_register): Change type of last
argument to `gdb_byte *'.
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 339205e..6954789 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -2481,7 +2481,7 @@ arm_register_name (int i)
static void
set_disassembly_style (void)
{
- const char *setname, *setdesc, **regnames;
+ const char *setname, *setdesc, *const *regnames;
int numregs, j;
/* Find the style that the user wants in the opcodes table. */
@@ -2875,7 +2875,7 @@ _initialize_arm_tdep (void)
struct cmd_list_element *new_set, *new_show;
const char *setname;
const char *setdesc;
- const char **regnames;
+ const char *const *regnames;
int numregs, i, j;
static char *helptext;
char regdesc[1024], *rdptr = regdesc;