* ada-lang.h (ada_decode_symbol): Make return type const.
authorTom Tromey <tromey@redhat.com>
Thu, 24 Jan 2013 18:04:34 +0000 (18:04 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 24 Jan 2013 18:04:34 +0000 (18:04 +0000)
* ada-lang.c (ada_decode_symbol): Likewise.

gdb/ChangeLog
gdb/ada-lang.c
gdb/ada-lang.h

index 00f7101684a3670851d3b3528fb503df415297e4..51dec32b410a32a8d2f5e0ab1d6dcb17d04db3a0 100644 (file)
@@ -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.
index 4488b88590b74f386455df35a162c7dc7d9b885a..ef808c4a849b6f41b60985712ece14018042748e 100644 (file)
@@ -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)
     {
index 509a2296b945f5010be217e5cc7e48d4e7673fd0..418f8daa30c33b8630ba1b2baf1781ebca369f1f 100644 (file)
@@ -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*);
 
This page took 0.031235 seconds and 4 git commands to generate.