* symtab.h: Remove objc_specific struct
authorAdam Fedor <fedor@gnu.org>
Fri, 21 Feb 2003 03:00:27 +0000 (03:00 +0000)
committerAdam Fedor <fedor@gnu.org>
Fri, 21 Feb 2003 03:00:27 +0000 (03:00 +0000)
(SYMBOL_OBJC_DEMANGLED_NAME): Remove.
* symtab.c (symbol_init_language_specific, symbol_demangled_name):
Have language_objc use cplus_specific struct.

gdb/ChangeLog
gdb/symtab.c
gdb/symtab.h

index ee6a0bcc0dd7f88beb31b685dc8291a8f81f0101..3020fe35a2960396b69ec422dd98142f0ca983c1 100644 (file)
@@ -1,3 +1,10 @@
+2003-02-20  Adam Fedor  <fedor@gnu.org>
+
+       * symtab.h: Remove objc_specific struct
+       (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
+       * symtab.c (symbol_init_language_specific, symbol_demangled_name):
+       Have language_objc use cplus_specific struct.
+
 2003-02-20  Tom Tromey  <tromey@redhat.com>
 
        * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
index 9ee05e5e166e4b6f183b6e6ec43c1be7c849d832..cc31beb3f9a7c765fd6b41013fc17a88ce47c15e 100644 (file)
@@ -413,14 +413,11 @@ symbol_init_language_specific (struct general_symbol_info *gsymbol,
 {
   gsymbol->language = language;
   if (gsymbol->language == language_cplus
-      || gsymbol->language == language_java)
+      || gsymbol->language == language_java
+      || gsymbol->language == language_objc)
     {
       gsymbol->language_specific.cplus_specific.demangled_name = NULL;
     }
-  else if (gsymbol->language == language_objc)
-    {
-      gsymbol->language_specific.objc_specific.demangled_name = NULL;
-    }
   else
     {
       memset (&gsymbol->language_specific, 0,
@@ -584,12 +581,10 @@ char *
 symbol_demangled_name (struct general_symbol_info *gsymbol)
 {
   if (gsymbol->language == language_cplus
-      || gsymbol->language == language_java)
+      || gsymbol->language == language_java
+      || gsymbol->language == language_objc)
     return gsymbol->language_specific.cplus_specific.demangled_name;
 
-  else if (gsymbol->language == language_objc)
-    return gsymbol->language_specific.objc_specific.demangled_name;
-
   else 
     return NULL;
 }
index 6be479815406c21fdaf2ef995cfb8c73335d9beb..3bde09f0f81efcc26d4448891f8bf099477529b5 100644 (file)
@@ -94,11 +94,6 @@ struct general_symbol_info
       char *demangled_name;
     }
     cplus_specific;
-    struct objc_specific
-    {
-      char *demangled_name;
-    }
-    objc_specific;
   }
   language_specific;
 
@@ -169,9 +164,6 @@ extern void symbol_set_names (struct general_symbol_info *symbol,
   (symbol_demangled_name (&(symbol)->ginfo))
 extern char *symbol_demangled_name (struct general_symbol_info *symbol);
 
-#define SYMBOL_OBJC_DEMANGLED_NAME(symbol)                             \
-   (symbol)->ginfo.language_specific.objc_specific.demangled_name
-
 /* Macro that returns a version of the name of a symbol that is
    suitable for output.  In C++ this is the "demangled" form of the
    name if demangle is on and the "mangled" form of the name if