* ada-lang.h (ada_decode_symbol): Make return type const.
* ada-lang.c (ada_decode_symbol): Likewise.
This commit is contained in:
parent
981dc7f155
commit
45e6c716a9
3 changed files with 9 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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*);
|
||||
|
||||
|
|
Loading…
Reference in a new issue