diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-03-21 20:51:16 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-03-21 20:51:16 +0000 |
commit | 30a57d4c40f7fe60ef338b58113ee86e28f7275a (patch) | |
tree | cf9d8d4ecbbc11813c89dcc898211c5ddb9f7a78 /gdb/linespec.c | |
parent | 313b5f131f05e7b86ae5c99311fed0a0b7771f61 (diff) | |
download | gdb-30a57d4c40f7fe60ef338b58113ee86e28f7275a.tar.gz |
* 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c index 6359bae4935..f78751b943a 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; |