symtab.h (general_symbol_info) <mangled_lang>: delete and move up only member.
authorDoug Evans <xdje42@gmail.com>
Sat, 19 Sep 2015 05:30:22 +0000 (22:30 -0700)
committerDoug Evans <xdje42@gmail.com>
Sat, 19 Sep 2015 05:30:22 +0000 (22:30 -0700)
gdb/ChangeLog:

* symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
move only member demangled_name up.  All uses updated.

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

index d0d35b0581b450b8c2076eeb63fd8ba562370908..027a10f75654ba11583023b6fb6701dd67710548 100644 (file)
@@ -1,3 +1,8 @@
+2015-09-18  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
+       move only member demangled_name up.  All uses updated.
+
 2015-09-18  Doug Evans  <xdje42@gmail.com>
 
        * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
index 49f3d9a13269f324ad8d80feba1d99c9a1b8e1da..6ec2e9dfdb630ecd07629c7411cd2a8217d66d74 100644 (file)
@@ -1414,7 +1414,7 @@ ada_decode_symbol (const struct general_symbol_info *arg)
 {
   struct general_symbol_info *gsymbol = (struct general_symbol_info *) arg;
   const char **resultp =
-    &gsymbol->language_specific.mangled_lang.demangled_name;
+    &gsymbol->language_specific.demangled_name;
 
   if (!gsymbol->ada_mangled)
     {
index f65e809cb28c7d48b163d4c0ea52e2ea9fd7ec48..90204cd195362697de4c020b037d857ecefd3fce 100644 (file)
@@ -596,11 +596,11 @@ symbol_set_demangled_name (struct general_symbol_info *gsymbol,
       else
        {
          gsymbol->ada_mangled = 1;
-         gsymbol->language_specific.mangled_lang.demangled_name = name;
+         gsymbol->language_specific.demangled_name = name;
        }
     }
   else
-    gsymbol->language_specific.mangled_lang.demangled_name = name;
+    gsymbol->language_specific.demangled_name = name;
 }
 
 /* Return the demangled name of GSYMBOL.  */
@@ -615,7 +615,7 @@ symbol_get_demangled_name (const struct general_symbol_info *gsymbol)
       /* Fall through.  */
     }
 
-  return gsymbol->language_specific.mangled_lang.demangled_name;
+  return gsymbol->language_specific.demangled_name;
 }
 
 \f
index e6fc174abfefa0f77ab0065e3151fffd0663a02d..d3f6370666b00598f697e07e4ba7fd84fc473aa1 100644 (file)
@@ -137,11 +137,7 @@ struct general_symbol_info
 
     /* This is used by languages which wish to store a demangled name.
        currently used by Ada, C++, Java, and Objective C.  */
-    struct mangled_lang
-    {
-      const char *demangled_name;
-    }
-    mangled_lang;
+    const char *demangled_name;
   }
   language_specific;