* symtab.c (expand_partial_symbol_name): New variable NCMP. Support
case insensitive comparison.
+2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
+ case insensitive comparison.
+
2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
* infrun.c (proceed): Revert previous change.
expand_partial_symbol_name (const char *name, void *user_data)
{
struct add_name_data *datum = (struct add_name_data *) user_data;
+ int (*ncmp) (const char *, const char *, size_t);
+
+ ncmp = (case_sensitivity == case_sensitive_on ? strncmp : strncasecmp);
- return strncmp (name, datum->sym_text, datum->sym_text_len) == 0;
+ return ncmp (name, datum->sym_text, datum->sym_text_len) == 0;
}
char **