gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 28 Apr 2011 17:37:06 +0000 (17:37 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 28 Apr 2011 17:37:06 +0000 (17:37 +0000)
* symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
case insensitive comparison.

gdb/ChangeLog
gdb/symtab.c

index bcbff9e58e6d5726058be58e3bd7e70db4e92692..96e27346e8a5de613fa4d4a3b5dec2d42d88a455 100644 (file)
@@ -1,3 +1,8 @@
+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.
index f9e2bca8dbc97e534e1b8dd7374ad1df36e53c77..d98ac5720e63ec37c3fdaaa8fbcd3f925fae8d4d 100644 (file)
@@ -3707,8 +3707,11 @@ static int
 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 **