aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-03-21 20:51:16 +0000
committerJim Blandy <jimb@codesourcery.com>2001-03-21 20:51:16 +0000
commit13b57657099c839e1508400a4a73b222d4da2c25 (patch)
tree4ada6d1d1f5ce0db3b38fac0b7208c8e2d06636f /gdb/linespec.c
parent1dffcc66386145e0eda2bb842a9bccb7eca33981 (diff)
downloadgdb-13b57657099c839e1508400a4a73b222d4da2c25.zip
gdb-13b57657099c839e1508400a4a73b222d4da2c25.tar.gz
gdb-13b57657099c839e1508400a4a73b222d4da2c25.tar.bz2
* gdb/linespec.c (find_methods): Whitespace differences aren't
significant in *un*mangled method names. Use strcmp_iw to compare them, not STREQ. (Fix from Daniel Berlin.) * gdb/testsuite/gdb.c++/userdef.exp: Check that GDB tolerates whitespace in unmangled operator names.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 6359bae..f78751b 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -140,7 +140,7 @@ find_methods (struct type *t, char *name, struct symbol **sym_arr)
method_name = dem_opname;
}
- if (STREQ (name, method_name))
+ if (strcmp_iw (name, method_name) == 0)
/* Find all the overloaded methods with that name. */
for (field_counter = TYPE_FN_FIELDLIST_LENGTH (t, method_counter) - 1;
field_counter >= 0;