summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1999-09-18 17:38:51 +0000
committerJeff Law <law@redhat.com>1999-09-18 17:38:51 +0000
commit3e8c64ed83cf7e7a1ba1e74c5a67648584c96026 (patch)
tree9943272dad090b74a23ed13e2d41d9df7a2397de /opcodes
parentb237942d78cf619940f7863d0010d0bde88eb535 (diff)
downloadgdb-3e8c64ed83cf7e7a1ba1e74c5a67648584c96026.tar.gz
* hppa-dis.c: Finish constifying various completers, register
names, etc etc.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/hppa-dis.c38
2 files changed, 23 insertions, 20 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index c04827075d3..067efdaacd9 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+Sat Sep 18 11:36:12 1999 Jeffrey A Law (law@cygnus.com)
+
+ * hppa-dis.c: Finish constifying various completers, register
+ names, etc etc.
+
1999-09-14 Michael Meissner <meissner@cygnus.com>
* configure.in (Canonicalization of target names): Remove adding
diff --git a/opcodes/hppa-dis.c b/opcodes/hppa-dis.c
index cde70fa3e39..b726f57bc31 100644
--- a/opcodes/hppa-dis.c
+++ b/opcodes/hppa-dis.c
@@ -59,7 +59,7 @@ typedef unsigned int CORE_ADDR;
/* Some of these have been converted to 2-d arrays because they
consume less storage this way. If the maintenance becomes a
problem, convert them back to const 1-d pointer arrays. */
-static const char control_reg[][6] = {
+static const char *const control_reg[] = {
"rctr", "cr1", "cr2", "cr3", "cr4", "cr5", "cr6", "cr7",
"pidr1", "pidr2", "ccr", "sar", "pidr3", "pidr4",
"iva", "eiem", "itmr", "pcsq", "pcoq", "iir", "isr",
@@ -67,26 +67,26 @@ static const char control_reg[][6] = {
"tr4", "tr5", "tr6", "tr7"
};
-static const char compare_cond_names[][5] = {
+static const char *const compare_cond_names[] = {
"", ",=", ",<", ",<=", ",<<", ",<<=", ",sv", ",od",
",tr", ",<>", ",>=", ",>", ",>>=", ",>>", ",nsv", ",ev"
};
-static const char compare_cond_64_names[][6] = {
+static const char *const compare_cond_64_names[] = {
"", ",*=", ",*<", ",*<=", ",*<<", ",*<<=", ",*sv", ",*od",
",*tr", ",*<>", ",*>=", ",*>", ",*>>=", ",*>>", ",*nsv", ",*ev"
};
-static const char cmpib_cond_64_names[][6] = {
+static const char *const cmpib_cond_64_names[] = {
",*<<", ",*=", ",*<", ",*<=", ",*>>=", ",*<>", ",*>=", ",*>"
};
-static const char add_cond_names[][5] = {
+static const char *const add_cond_names[] = {
"", ",=", ",<", ",<=", ",nuv", ",znv", ",sv", ",od",
",tr", ",<>", ",>=", ",>", ",uv", ",vnz", ",nsv", ",ev"
};
-static const char add_cond_64_names[][6] = {
+static const char *const add_cond_64_names[] = {
"", ",*=", ",*<", ",*<=", ",*nuv", ",*znv", ",*sv", ",*od",
",*tr", ",*<>", ",*>=", ",*>", ",*uv", ",*vnz", ",*nsv", ",*ev"
};
-static const char wide_add_cond_names[][5] = {
+static const char *const wide_add_cond_names[] = {
"", ",=", ",<", ",<=", ",nuv", ",*=", ",*<", ",*<=",
",tr", ",<>", ",>=", ",>", ",uv", ",*<>", ",*>=", ",*>"
};
@@ -104,35 +104,33 @@ static const char *const unit_cond_64_names[] = {
"", ",*swz", ",*sbz", ",*shz", ",*sdc", ",*swc", ",*sbc", ",*shc",
",*tr", ",*nwz", ",*nbz", ",*nhz", ",*ndc", ",*nwc", ",*nbc", ",*nhc"
};
-static const char shift_cond_names[][4] = {
+static const char *const shift_cond_names[] = {
"", ",=", ",<", ",od", ",tr", ",<>", ",>=", ",ev"
};
-static const char shift_cond_64_names[][5] = {
+static const char *const shift_cond_64_names[] = {
"", ",*=", ",*<", ",*od", ",*tr", ",*<>", ",*>=", ",*ev"
};
-static const char bb_cond_64_names[][5] = {
+static const char *const bb_cond_64_names[] = {
",*<", ",*>="
};
-static const char index_compl_names[][4] = {"", ",m", ",s", ",sm"};
-static const char short_ldst_compl_names[][4] = {"", ",ma", "", ",mb"};
+static const char *const index_compl_names[] = {"", ",m", ",s", ",sm"};
+static const char *const short_ldst_compl_names[] = {"", ",ma", "", ",mb"};
static const char *const short_bytes_compl_names[] = {
"", ",b,m", ",e", ",e,m"
};
static const char *const float_format_names[] = {",sgl", ",dbl", "", ",quad"};
-static const char float_comp_names[][8] =
+static const char *const float_comp_names[] =
{
",false?", ",false", ",?", ",!<=>", ",=", ",=t", ",?=", ",!<>",
",!?>=", ",<", ",?<", ",!>=", ",!?>", ",<=", ",?<=", ",!>",
",!?<=", ",>", ",?>", ",!<=", ",!?<", ",>=", ",?>=", ",!<",
",!?=", ",<>", ",!=", ",!=t", ",!?", ",<=>", ",true?", ",true"
};
-static const char *const signed_unsigned_names[][3] = {",u", ",s"};
-static const char *const mix_half_names[][3] = {",l", ",r"};
-static const char *const saturation_names[][4] = {",us", ",ss", 0, ""};
-static const char *const read_write_names[][3] = {",r", ",w"};
-static const char *const add_compl_names[] = {
- 0, "", ",l", ",tsv"
-};
+static const char *const signed_unsigned_names[] = {",u", ",s"};
+static const char *const mix_half_names[] = {",l", ",r"};
+static const char *const saturation_names[] = {",us", ",ss", 0, ""};
+static const char *const read_write_names[] = {",r", ",w"};
+static const char *const add_compl_names[] = { 0, "", ",l", ",tsv" };
/* For a bunch of different instructions form an index into a
completer name table. */