diff options
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 633f6f7..b116375 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -584,6 +584,19 @@ lookup_symbol (const char *name, register const struct block *block, register struct block *b; register struct minimal_symbol *msymbol; + if (case_sensitivity == case_sensitive_off) + { + char *copy; + int len, i; + + len = strlen (name); + copy = (char *) alloca (len + 1); + for (i= 0; i < len; i++) + copy[i] = tolower (name[i]); + copy[len] = 0; + name = copy; + } + /* Search specified block and its superiors. */ while (block != 0) |