* ada-lang.c (ada_decode_symbol): Likewise.
+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.
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)
{
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*);