diff options
author | Adam Fedor <fedor@gnu.org> | 2003-02-21 03:00:27 +0000 |
---|---|---|
committer | Adam Fedor <fedor@gnu.org> | 2003-02-21 03:00:27 +0000 |
commit | 5784d15e43727824b660b3b26c3b51b45caab148 (patch) | |
tree | c1837647f82144e67c4ca966e5bafcb874de461d /gdb/symtab.c | |
parent | d4cad8db8c3e700898454d5b67276378955e4bec (diff) | |
download | gdb-5784d15e43727824b660b3b26c3b51b45caab148.zip gdb-5784d15e43727824b660b3b26c3b51b45caab148.tar.gz gdb-5784d15e43727824b660b3b26c3b51b45caab148.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 9ee05e5..cc31beb 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -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; } |