diff options
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 63a85ee..1e5c55e 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -1299,8 +1299,10 @@ static struct htab *decoded_names_store; const char * ada_decode_symbol (const struct general_symbol_info *gsymbol) { - const char **resultp = - (const char **) &gsymbol->language_specific.mangled_lang.demangled_name; + struct general_symbol_info *gsymbol_rw + = (struct general_symbol_info *) gsymbol; + const char **resultp + = &gsymbol_rw->language_specific.mangled_lang.demangled_name; if (*resultp == NULL) { |