diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-11-15 19:39:04 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-11-15 19:39:04 +0000 |
commit | 3a16a68c4f0cdabb4c9a77ffd7b70f2c78d54e98 (patch) | |
tree | c28d565468b2d0f3db2e55760afa785a0e7d2f09 /gdb/symfile.c | |
parent | 38cf6e11c7b688e6f83457079c490a73cc43cca2 (diff) | |
download | gdb-3a16a68c4f0cdabb4c9a77ffd7b70f2c78d54e98.zip gdb-3a16a68c4f0cdabb4c9a77ffd7b70f2c78d54e98.tar.gz gdb-3a16a68c4f0cdabb4c9a77ffd7b70f2c78d54e98.tar.bz2 |
2003-11-15 Andrew Cagney <cagney@redhat.com>
* bcache.h (deprecated_bcache): Declare.
(bcache): Make returned buffer constant.
* bcache.c (deprecated_bcache): New function.
(bcache_data): New function.
(bcache): Call bcache data.
* symfile.c (add_psymbol_to_list): Use deprecated_bcache.
(add_psymbol_with_dem_name_to_list): Ditto.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 6e51f98..d85ec19 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -2680,7 +2680,8 @@ add_psymbol_to_list (char *name, int namelength, domain_enum domain, SYMBOL_SET_NAMES (&psymbol, buf, namelength, objfile); /* Stash the partial symbol away in the cache */ - psym = bcache (&psymbol, sizeof (struct partial_symbol), objfile->psymbol_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) @@ -2717,7 +2718,8 @@ add_psymbol_with_dem_name_to_list (char *name, int namelength, char *dem_name, memcpy (buf, name, namelength); buf[namelength] = '\0'; - DEPRECATED_SYMBOL_NAME (&psymbol) = bcache (buf, namelength + 1, objfile->psymbol_cache); + DEPRECATED_SYMBOL_NAME (&psymbol) = deprecated_bcache (buf, namelength + 1, + objfile->psymbol_cache); buf = alloca (dem_namelength + 1); memcpy (buf, dem_name, dem_namelength); @@ -2728,7 +2730,7 @@ add_psymbol_with_dem_name_to_list (char *name, int namelength, char *dem_name, case language_c: case language_cplus: SYMBOL_CPLUS_DEMANGLED_NAME (&psymbol) = - bcache (buf, dem_namelength + 1, objfile->psymbol_cache); + deprecated_bcache (buf, dem_namelength + 1, objfile->psymbol_cache); break; /* FIXME What should be done for the default case? Ignoring for now. */ } @@ -2749,7 +2751,8 @@ add_psymbol_with_dem_name_to_list (char *name, int namelength, char *dem_name, SYMBOL_INIT_LANGUAGE_SPECIFIC (&psymbol, language); /* Stash the partial symbol away in the cache */ - psym = bcache (&psymbol, sizeof (struct partial_symbol), objfile->psymbol_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) |