Index: gdb/cli/cli-utils.h |
diff --git a/gdb/cli/cli-utils.h b/gdb/cli/cli-utils.h |
index e23c7d82b953a551b13bc736935d4632b4e334ab..9fb12ba962e49c6ba89f6bd3fb0f1b011783ae02 100644 |
--- a/gdb/cli/cli-utils.h |
+++ b/gdb/cli/cli-utils.h |
@@ -94,6 +94,10 @@ extern int number_is_in_list (char *list, int number); |
extern char *skip_spaces (char *inp); |
+/* A const-correct version of the above. */ |
+ |
+extern const char *skip_spaces_const (const char *inp); |
+ |
/* Skip leading non-whitespace characters in INP, returning an updated |
pointer. If INP is NULL, return NULL. */ |
@@ -103,4 +107,17 @@ extern char *skip_to_space (char *inp); |
START. */ |
extern char *remove_trailing_whitespace (const char *start, char *s); |
+ |
+/* A helper function to extract an argument from *ARG. An argument is |
+ delimited by whitespace. The return value is either NULL if no |
+ argument was found, or an xmalloc'd string. */ |
+ |
+extern char *extract_arg (char **arg); |
+ |
+/* A helper function that looks for an argument at the start of a |
+ string. The argument must also either be at the end of the string, |
+ or be followed by whitespace. Returns 1 if it finds the argument, |
+ 0 otherwise. If the argument is found, it updates *STR. */ |
+extern int check_for_argument (char **str, char *arg, int arg_len); |
+ |
#endif /* CLI_UTILS_H */ |