summaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-02-24 23:37:02 +0000
committerDavid Carlton <carlton@bactrian.org>2003-02-24 23:37:02 +0000
commited17390777050a85f5d51be5227241055f557aa7 (patch)
tree1d0f1a986582fe4a9c9fe0f92027673d48acbc8b /gdb/symtab.c
parentab9a517dad8317705d7bec7ece751e4ce1478245 (diff)
downloadgdb-ed17390777050a85f5d51be5227241055f557aa7.tar.gz
2003-02-24 David Carlton <carlton@math.stanford.edu>
* symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to do the comparison, not strcmp. * symfile.c (compare_psymbols): Ditto. * defs.h: Declare strcmp_iw_ordered. * utils.c (strcmp_iw_ordered): New function.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 1a123fb4684..1b1e375775e 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1374,9 +1374,10 @@ lookup_partial_symbol (struct partial_symtab *pst, const char *name, int global,
do_linear_search = 0;
/* Binary search. This search is guaranteed to end with center
- pointing at the earliest partial symbol with the correct
- name. At that point *all* partial symbols with that name
- will be checked against the correct namespace. */
+ pointing at the earliest partial symbol whose name might be
+ correct. At that point *all* partial symbols with an
+ appropriate name will be checked against the correct
+ namespace. */
bottom = start;
top = start + length - 1;
@@ -1391,7 +1392,7 @@ lookup_partial_symbol (struct partial_symtab *pst, const char *name, int global,
{
do_linear_search = 1;
}
- if (strcmp (SYMBOL_PRINT_NAME (*center), name) >= 0)
+ if (strcmp_iw_ordered (SYMBOL_PRINT_NAME (*center), name) >= 0)
{
top = center;
}