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/symfile.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/symfile.c')
-rw-r--r-- | gdb/symfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index b688cae..2332037 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -207,8 +207,8 @@ compare_psymbols (const void *s1p, const void *s2p) struct partial_symbol *const *s1 = s1p; struct partial_symbol *const *s2 = s2p; - return strcmp_iw_ordered (SYMBOL_NATURAL_NAME (*s1), - SYMBOL_NATURAL_NAME (*s2)); + return strcmp_iw_ordered (SYMBOL_SEARCH_NAME (*s1), + SYMBOL_SEARCH_NAME (*s2)); } void |