aboutsummaryrefslogtreecommitdiff
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
commit0fe19209f9dde2fd4450b13a9e772203cf313eff (patch)
tree5c56927bc27c7bdb16a65cbc6664f872ddbbe207 /gdb/symtab.c
parentc8d6825d9aa09b432701bb990fe9610442fcbaa1 (diff)
downloadgdb-0fe19209f9dde2fd4450b13a9e772203cf313eff.zip
gdb-0fe19209f9dde2fd4450b13a9e772203cf313eff.tar.gz
gdb-0fe19209f9dde2fd4450b13a9e772203cf313eff.tar.bz2
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 1a123fb..1b1e375 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;
}