diff options
Diffstat (limited to 'gdb/findcmd.c')
-rw-r--r-- | gdb/findcmd.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/findcmd.c b/gdb/findcmd.c index 993c487..03c3fcc 100644 --- a/gdb/findcmd.c +++ b/gdb/findcmd.c @@ -18,7 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "arch-utils.h" -#include <ctype.h> #include "cli/cli-cmds.h" #include "value.h" #include "target.h" @@ -76,12 +75,12 @@ parse_find_args (const char *args, ULONGEST *max_countp, { ++s; - while (*s != '\0' && *s != '/' && !isspace (*s)) + while (*s != '\0' && *s != '/' && !c_isspace (*s)) { - if (isdigit (*s)) + if (c_isdigit (*s)) { max_count = atoi (s); - while (isdigit (*s)) + while (c_isdigit (*s)) ++s; continue; } @@ -279,9 +278,7 @@ find_command (const char *args, int from_tty) found_count > 1 ? "s" : ""); } -void _initialize_mem_search (); -void -_initialize_mem_search () +INIT_GDB_FILE (mem_search) { add_cmd ("find", class_vars, find_command, _("\ Search memory for a sequence of bytes.\n\ |