diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-04-13 14:03:56 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-04-13 14:03:56 +0000 |
commit | 058b9c07a4baa26ee76f57cad946e8533d85d189 (patch) | |
tree | 34e7a389c5c3c3c9901d2c0e75ee4f9818d7d8ec /gdb | |
parent | 54d61198d5ad051d28fccd2fc698ed7f1d013443 (diff) | |
download | gdb-058b9c07a4baa26ee76f57cad946e8533d85d189.zip gdb-058b9c07a4baa26ee76f57cad946e8533d85d189.tar.gz gdb-058b9c07a4baa26ee76f57cad946e8533d85d189.tar.bz2 |
* symfile.c (add_psymbol_with_dem_name_to_list): Remove.
* symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/symfile.c | 69 | ||||
-rw-r--r-- | gdb/symfile.h | 9 |
3 files changed, 5 insertions, 78 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 95dcdcd..8a4e62c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com> + * symfile.c (add_psymbol_with_dem_name_to_list): Remove. + * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype. + +2007-04-13 Daniel Jacobowitz <dan@codesourcery.com> + * NEWS: Mention removal of HP aCC support. 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com> diff --git a/gdb/symfile.c b/gdb/symfile.c index 4523b4b..f9e8bfc 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -2952,75 +2952,6 @@ add_psymbol_to_list (char *name, int namelength, domain_enum domain, return psym; } -/* Add a symbol with a long value to a psymtab. This differs from - * add_psymbol_to_list above in taking both a mangled and a demangled - * name. */ - -void -add_psymbol_with_dem_name_to_list (char *name, int namelength, char *dem_name, - int dem_namelength, domain_enum domain, - enum address_class class, - struct psymbol_allocation_list *list, long val, /* Value as a long */ - CORE_ADDR coreaddr, /* Value as a CORE_ADDR */ - enum language language, - struct objfile *objfile) -{ - struct partial_symbol *psym; - char *buf = alloca (namelength + 1); - /* psymbol is static so that there will be no uninitialized gaps in the - structure which might contain random data, causing cache misses in - bcache. */ - static struct partial_symbol psymbol; - - /* Create local copy of the partial symbol */ - - memcpy (buf, name, namelength); - buf[namelength] = '\0'; - DEPRECATED_SYMBOL_NAME (&psymbol) = deprecated_bcache (buf, namelength + 1, - objfile->psymbol_cache); - - buf = alloca (dem_namelength + 1); - memcpy (buf, dem_name, dem_namelength); - buf[dem_namelength] = '\0'; - - switch (language) - { - case language_c: - case language_cplus: - SYMBOL_CPLUS_DEMANGLED_NAME (&psymbol) = - deprecated_bcache (buf, dem_namelength + 1, objfile->psymbol_cache); - break; - /* FIXME What should be done for the default case? Ignoring for now. */ - } - - /* val and coreaddr are mutually exclusive, one of them *will* be zero */ - if (val != 0) - { - SYMBOL_VALUE (&psymbol) = val; - } - else - { - SYMBOL_VALUE_ADDRESS (&psymbol) = coreaddr; - } - SYMBOL_SECTION (&psymbol) = 0; - SYMBOL_LANGUAGE (&psymbol) = language; - PSYMBOL_DOMAIN (&psymbol) = domain; - PSYMBOL_CLASS (&psymbol) = class; - SYMBOL_INIT_LANGUAGE_SPECIFIC (&psymbol, language); - - /* Stash the partial symbol away in the cache */ - psym = deprecated_bcache (&psymbol, sizeof (struct partial_symbol), - objfile->psymbol_cache); - - /* Save pointer to partial symbol in psymtab, growing symtab if needed. */ - if (list->next >= list->list + list->size) - { - extend_psymbol_list (list, objfile); - } - *list->next++ = psym; - OBJSTAT (objfile, n_psyms++); -} - /* Initialize storage for partial symbols. */ void diff --git a/gdb/symfile.h b/gdb/symfile.h index baf61be..e28b75b 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -160,15 +160,6 @@ struct partial_symbol *add_psymbol_to_list (char *, int, domain_enum, long, CORE_ADDR, enum language, struct objfile *); -extern void add_psymbol_with_dem_name_to_list (char *, int, char *, int, - domain_enum, - enum address_class, - struct psymbol_allocation_list - *, long, CORE_ADDR, - enum language, - struct objfile *); - - extern void init_psymbol_list (struct objfile *, int); extern void sort_pst_symbols (struct partial_symtab *); |