aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-02-27 20:48:03 +0000
committerDavid Carlton <carlton@bactrian.org>2003-02-27 20:48:03 +0000
commitc8be89511da02d0e6b1c1ed244575217d7716e10 (patch)
tree378adb1247076003091cb6eecc846832510a8752 /gdb/symfile.c
parente8d359df3a72fcf37cb414f0a962d00018d0ecd0 (diff)
downloadgdb-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/symfile.c')
-rw-r--r--gdb/symfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 3b88c2f..8380b27 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -210,7 +210,7 @@ compare_symbols (const void *s1p, const void *s2p)
s1 = (struct symbol **) s1p;
s2 = (struct symbol **) s2p;
- return (strcmp (SYMBOL_PRINT_NAME (*s1), SYMBOL_PRINT_NAME (*s2)));
+ return (strcmp (SYMBOL_NATURAL_NAME (*s1), SYMBOL_NATURAL_NAME (*s2)));
}
/* This compares two partial symbols by names, using strcmp_iw_ordered
@@ -222,8 +222,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_PRINT_NAME (*s1),
- SYMBOL_PRINT_NAME (*s2));
+ return strcmp_iw_ordered (SYMBOL_NATURAL_NAME (*s1),
+ SYMBOL_NATURAL_NAME (*s2));
}
void