diff options
author | David Carlton <carlton@bactrian.org> | 2003-02-27 20:48:03 +0000 |
---|---|---|
committer | David Carlton <carlton@bactrian.org> | 2003-02-27 20:48:03 +0000 |
commit | c8be89511da02d0e6b1c1ed244575217d7716e10 (patch) | |
tree | 378adb1247076003091cb6eecc846832510a8752 /gdb/symtab.c | |
parent | e8d359df3a72fcf37cb414f0a962d00018d0ecd0 (diff) | |
download | gdb-c8be89511da02d0e6b1c1ed244575217d7716e10.zip gdb-c8be89511da02d0e6b1c1ed244575217d7716e10.tar.gz gdb-c8be89511da02d0e6b1c1ed244575217d7716e10.tar.bz2 |
2003-02-27 David Carlton <carlton@math.stanford.edu>
* symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
SYMBOL_PRINT_NAME.
(compare_psymbols): Ditto.
* symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index c9541fa..f3f55e1 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1411,7 +1411,7 @@ lookup_partial_symbol (struct partial_symtab *pst, const char *name, int global, { do_linear_search = 1; } - if (strcmp_iw_ordered (SYMBOL_PRINT_NAME (*center), name) >= 0) + if (strcmp_iw_ordered (SYMBOL_NATURAL_NAME (*center), name) >= 0) { top = center; } @@ -1657,15 +1657,15 @@ lookup_block_symbol (register const struct block *block, const char *name, { do_linear_search = 1; } - if (SYMBOL_PRINT_NAME (sym)[0] < name[0]) + if (SYMBOL_NATURAL_NAME (sym)[0] < name[0]) { bot = inc; } - else if (SYMBOL_PRINT_NAME (sym)[0] > name[0]) + else if (SYMBOL_NATURAL_NAME (sym)[0] > name[0]) { top = inc; } - else if (strcmp (SYMBOL_PRINT_NAME (sym), name) < 0) + else if (strcmp (SYMBOL_NATURAL_NAME (sym), name) < 0) { bot = inc; } |