diff options
author | Tristan Gingold <gingold@adacore.com> | 2010-06-11 09:04:39 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2010-06-11 09:04:39 +0000 |
commit | 9bcd0325fea4de9bd1a798f6c94321bd992364be (patch) | |
tree | 919fd27b3369d041bb2abd316c9583181fe7314f /binutils/unwind-ia64.c | |
parent | 9d56a630c7744dd612d48df972d7736ba0100240 (diff) | |
download | gdb-9bcd0325fea4de9bd1a798f6c94321bd992364be.zip gdb-9bcd0325fea4de9bd1a798f6c94321bd992364be.tar.gz gdb-9bcd0325fea4de9bd1a798f6c94321bd992364be.tar.bz2 |
2010-06-11 Tristan Gingold <gingold@adacore.com>
* unwind-ia64.c (unw_print_abreg): Add const to special_reg.
(UNW_DEC_ABI): Ditto for abiname.
(unw_decode_table): Make it const.
Diffstat (limited to 'binutils/unwind-ia64.c')
-rw-r--r-- | binutils/unwind-ia64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/unwind-ia64.c b/binutils/unwind-ia64.c index 5703470..3838235 100644 --- a/binutils/unwind-ia64.c +++ b/binutils/unwind-ia64.c @@ -112,7 +112,7 @@ unw_print_frmask (char *cp, unsigned int mask) static void unw_print_abreg (char *cp, unsigned int abreg) { - static const char *special_reg[16] = + static const char * const special_reg[16] = { "pr", "psp", "@priunat", "rp", "ar.bsp", "ar.bspstore", "ar.rnat", "ar.unat", "ar.fpsr", "ar.pfs", "ar.lc", @@ -303,7 +303,7 @@ typedef bfd_vma unw_word; #define UNW_DEC_ABI(fmt, abi, context, arg) \ do \ { \ - static const char *abiname[] = \ + static const char * const abiname[] = \ { \ "@svr4", "@hpux", "@nt" \ }; \ @@ -1044,7 +1044,7 @@ unw_decode_b3_x4 (const unsigned char *dp, unsigned int code, void *arg) typedef const unsigned char *(*unw_decoder) (const unsigned char *, unsigned int, void *); -static unw_decoder unw_decode_table[2][8] = +static const unw_decoder unw_decode_table[2][8] = { /* prologue table: */ { |