summaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-24 18:04:26 +0000
committerTom Tromey <tromey@redhat.com>2013-01-24 18:04:26 +0000
commit361aca7a3021fd3e31d2b6f5562a909c3e3efcde (patch)
tree4e7aeae50266195aee3075ea66091404dfa972f8 /gdb/ada-lang.c
parent8349ce192b8ac072fb4d294e92a4dc7493d9968f (diff)
downloadgdb-361aca7a3021fd3e31d2b6f5562a909c3e3efcde.tar.gz
* ada-lang.h (ada_decode_symbol): Make return type const.
* ada-lang.c (ada_decode_symbol): Likewise.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 4488b88590b..ef808c4a849 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)
{