diff options
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/dictionary.c | 1 | ||||
-rw-r--r-- | gdb/minsyms.c | 1 | ||||
-rw-r--r-- | gdb/minsyms.h | 2 |
4 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4e0b45efbc8..61db1b1fa88 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2017-11-25 Pedro Alves <palves@redhat.com> + + * dictionary.c: Include "safe-ctype.h". + * minsyms.c: Include "safe-ctype.h". + * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower. + 2017-11-25 Pedro Alves <palves@redhat.com> * completer.c (complete_line_internal_1): Skip spaces until the diff --git a/gdb/dictionary.c b/gdb/dictionary.c index fb307538ae1..7d26efba975 100644 --- a/gdb/dictionary.c +++ b/gdb/dictionary.c @@ -26,6 +26,7 @@ #include "symtab.h" #include "buildsym.h" #include "dictionary.h" +#include "safe-ctype.h" /* This file implements dictionaries, which are tables that associate symbols to names. They are represented by an opaque type 'struct diff --git a/gdb/minsyms.c b/gdb/minsyms.c index a0d3bd5a717..4898da17aa7 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -52,6 +52,7 @@ #include "cli/cli-utils.h" #include "symbol.h" #include <algorithm> +#include "safe-ctype.h" /* See minsyms.h. */ diff --git a/gdb/minsyms.h b/gdb/minsyms.h index f326be9462d..5c0dde4de15 100644 --- a/gdb/minsyms.h +++ b/gdb/minsyms.h @@ -177,7 +177,7 @@ unsigned int msymbol_hash_iw (const char *); requirements. */ #define SYMBOL_HASH_NEXT(hash, c) \ - ((hash) * 67 + tolower ((unsigned char) (c)) - 113) + ((hash) * 67 + TOLOWER ((unsigned char) (c)) - 113) |