diff options
author | Paul N. Hilfinger <hilfinger@adacore.com> | 2004-05-20 09:51:34 +0000 |
---|---|---|
committer | Paul N. Hilfinger <hilfinger@adacore.com> | 2004-05-20 09:51:34 +0000 |
commit | 4725b72191dff6324b78a2fe4edb62d0abf3a204 (patch) | |
tree | 049138310c6a7358e88287e547b73f48f29bb401 /gdb/minsyms.c | |
parent | 82d69f8b4ce0078cd7387634c2b5f9f6d0a42309 (diff) | |
download | gdb-4725b72191dff6324b78a2fe4edb62d0abf3a204.zip gdb-4725b72191dff6324b78a2fe4edb62d0abf3a204.tar.gz gdb-4725b72191dff6324b78a2fe4edb62d0abf3a204.tar.bz2 |
* symtab.h (SYMBOL_SEARCH_NAME): New definition.
(SYMBOL_MATCHES_SEARCH_NAME): New definition.
(symbol_search_name): Declare.
* dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
(iter_name_next_hashed): Ditto.
(iter_name_next_linear): Ditto.
(insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
* symtab.c (lookup_partial_symbol): Assume symbols ordered by
search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
(symbol_search_name): New function.
* symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
* minsyms.c (build_minimal_symbol_hash_tables): Change
test for adding to demangled hash table to check for difference
between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index b06c3f0..3aeda7d 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -791,7 +791,7 @@ build_minimal_symbol_hash_tables (struct objfile *objfile) add_minsym_to_hash_table (msym, objfile->msymbol_hash); msym->demangled_hash_next = 0; - if (SYMBOL_DEMANGLED_NAME (msym) != NULL) + if (SYMBOL_SEARCH_NAME (msym) != SYMBOL_LINKAGE_NAME (msym)) add_minsym_to_demangled_hash_table (msym, objfile->msymbol_demangled_hash); } |