diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-24 18:04:34 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-24 18:04:34 +0000 |
commit | 45e6c716a91b609472e7b807347f9ed3a86c8113 (patch) | |
tree | 63fd5c28cbae3b05f1f1100e041c9e6402b9aee8 | |
parent | 981dc7f155b61420a8d9409d4ba64aee75a098a1 (diff) | |
download | gdb-45e6c716a91b609472e7b807347f9ed3a86c8113.zip gdb-45e6c716a91b609472e7b807347f9ed3a86c8113.tar.gz gdb-45e6c716a91b609472e7b807347f9ed3a86c8113.tar.bz2 |
* ada-lang.h (ada_decode_symbol): Make return type const.
* ada-lang.c (ada_decode_symbol): Likewise.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/ada-lang.c | 6 | ||||
-rw-r--r-- | gdb/ada-lang.h | 2 |
3 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 00f7101..51dec32 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-01-24 Tom Tromey <tromey@redhat.com> + + * ada-lang.h (ada_decode_symbol): Make return type const. + * ada-lang.c (ada_decode_symbol): Likewise. + 2013-01-23 Doug Evans <dje@google.com> * linespec.c (find_linespec_symbols): Make static. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 4488b88..ef808c4 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -1296,11 +1296,11 @@ static struct htab *decoded_names_store; const, but nevertheless modified to a semantically equivalent form when a decoded name is cached in it. */ -char * +const char * ada_decode_symbol (const struct general_symbol_info *gsymbol) { - char **resultp = - (char **) &gsymbol->language_specific.mangled_lang.demangled_name; + const char **resultp = + (const char **) &gsymbol->language_specific.mangled_lang.demangled_name; if (*resultp == NULL) { diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h index 509a229..418f8da 100644 --- a/gdb/ada-lang.h +++ b/gdb/ada-lang.h @@ -219,7 +219,7 @@ extern struct value *ada_get_decoded_value (struct value *value); extern struct type *ada_get_decoded_type (struct type *type); -extern char *ada_decode_symbol (const struct general_symbol_info*); +extern const char *ada_decode_symbol (const struct general_symbol_info *); extern const char *ada_decode (const char*); |