diff options
author | Tom Tromey <tromey@redhat.com> | 2011-02-21 18:13:17 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-02-21 18:13:17 +0000 |
commit | e9cafbccd26b045ba6a3db2fde83dd33228e473b (patch) | |
tree | 2ff85b840a2849b1564202ebac2e3d2f17b541ce /gdb/cli/cli-dump.c | |
parent | f67fd822d03bd263034b549d89d98e98356ff194 (diff) | |
download | gdb-e9cafbccd26b045ba6a3db2fde83dd33228e473b.zip gdb-e9cafbccd26b045ba6a3db2fde83dd33228e473b.tar.gz gdb-e9cafbccd26b045ba6a3db2fde83dd33228e473b.tar.bz2 |
* reverse.c: Include cli-utils.h.
* printcmd.c: Include cli-utils.h.
(string_printf): Use skip_spaces.
* cli/cli-utils.h: New file.
* cli/cli-utils.c: New file.
* cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
* cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
* breakpoint.h (get_number, get_number_or_range): Move to
cli-utils.h.
* breakpoint.c: Include cli-utils.h.
(get_number_trailer, get_number, get_number_or_range)
(ep_skip_leading_whitespace): Move to cli-utils.c.
(create_breakpoint_sal, find_condition_and_thread)
(decode_static_tracepoint_spec, watch_command_1)
(watch_maybe_just_location, ep_parse_optional_if_clause)
(catch_fork_command_1, catch_exec_command_1)
(catch_syscall_command_1): Use skip_spaces, skip_to_space.
* Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
(SUBDIR_CLI_SRCS): Add cli-utils.c.
(HFILES_NO_SRCDIR): Add cli-utils.h.
(cli-utils.o): New target.
Diffstat (limited to 'gdb/cli/cli-dump.c')
-rw-r--r-- | gdb/cli/cli-dump.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 95c1b34..e288ee6 100644 --- a/gdb/cli/cli-dump.c +++ b/gdb/cli/cli-dump.c @@ -32,21 +32,12 @@ #include "target.h" #include "readline/readline.h" #include "gdbcore.h" +#include "cli/cli-utils.h" #define XMALLOC(TYPE) ((TYPE*) xmalloc (sizeof (TYPE))) char * -skip_spaces (char *chp) -{ - if (chp == NULL) - return NULL; - while (isspace (*chp)) - chp++; - return chp; -} - -char * scan_expression_with_cleanup (char **cmd, const char *def) { if ((*cmd) == NULL || (**cmd) == '\0') |