aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-12-16 00:01:26 +0000
committerDavid Carlton <carlton@bactrian.org>2003-12-16 00:01:26 +0000
commit5f2fbaa631ada809193f3619152ecdcd956cc63d (patch)
tree2a358a136245d1f01e08e0e00fa0a65f727bd87a /gdb/symfile.c
parenta8970facae7aaf63d5815798879c87d3a172344b (diff)
downloadgdb-5f2fbaa631ada809193f3619152ecdcd956cc63d.zip
gdb-5f2fbaa631ada809193f3619152ecdcd956cc63d.tar.gz
gdb-5f2fbaa631ada809193f3619152ecdcd956cc63d.tar.bz2
2003-12-15 David Carlton <carlton@kealia.com>
* Merge with mainline; tag is carlton_dictionary-20031215-merge. * cp-support.c (class_name_from_physname): Add DMGL_PARAMS to call to cplus_demangle. (method_name_from_physname): Ditto.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index f2656fb..d58a8ec 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1226,7 +1226,7 @@ symbol_file_command (char *args, int from_tty)
if (strcmp (*argv, "-mapped") == 0)
flags |= OBJF_MAPPED;
else
- if (STREQ (*argv, "-readnow"))
+ if (strcmp (*argv, "-readnow") == 0)
flags |= OBJF_READNOW;
else
if (**argv == '-')
@@ -2682,7 +2682,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)
@@ -2719,7 +2720,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);
@@ -2730,7 +2732,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. */
}
@@ -2751,7 +2753,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)