aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-04-28 17:37:06 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-04-28 17:37:06 +0000
commit165195f46ba47b0019806c1cd15e80862e5f89cd (patch)
tree553650b05b9a67ed4d56870b65758bd529baafd0 /gdb
parentfd2f003344354839663892f45f831a2dbfb71f17 (diff)
downloadgdb-165195f46ba47b0019806c1cd15e80862e5f89cd.zip
gdb-165195f46ba47b0019806c1cd15e80862e5f89cd.tar.gz
gdb-165195f46ba47b0019806c1cd15e80862e5f89cd.tar.bz2
gdb/
* symtab.c (expand_partial_symbol_name): New variable NCMP. Support case insensitive comparison.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/symtab.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bcbff9e..96e27346 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/symtab.c b/gdb/symtab.c
index f9e2bca..d98ac57 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -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 **