diff options
author | Bob Rossi <bob@brasko.net> | 2003-04-02 22:10:35 +0000 |
---|---|---|
committer | Bob Rossi <bob@brasko.net> | 2003-04-02 22:10:35 +0000 |
commit | 1abaf70c9430cffb9779153a4518e1c5093d742a (patch) | |
tree | d264a2ef537b7cc304279083e94a2ebcdc0c74b4 /gdb/mi/mi-getopt.h | |
parent | af22f5b24a0ca6ff93ca536bf12a6b6afb3713a2 (diff) | |
download | gdb-1abaf70c9430cffb9779153a4518e1c5093d742a.zip gdb-1abaf70c9430cffb9779153a4518e1c5093d742a.tar.gz gdb-1abaf70c9430cffb9779153a4518e1c5093d742a.tar.bz2 |
Adding -file-list-exec-source-file command to MI
Diffstat (limited to 'gdb/mi/mi-getopt.h')
-rw-r--r-- | gdb/mi/mi-getopt.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gdb/mi/mi-getopt.h b/gdb/mi/mi-getopt.h index 6b31adf..17d66fb 100644 --- a/gdb/mi/mi-getopt.h +++ b/gdb/mi/mi-getopt.h @@ -57,4 +57,24 @@ struct mi_opt struct mi_opt; +/* mi_valid_noargs + + Determines if ARGC/ARGV are a valid set of parameters to satisfy + an MI function that is not supposed to recieve any arguments. + + An MI function that should not recieve arguments can still be + passed parameters after the special option '--' such as below. + + Example: The MI function -exec-run takes no args. + However, the client may pass '-exec-run -- -a ...' + See PR-783 + + PREFIX is passed to mi_getopt for an error message. + + This function Returns 1 if the parameter pair ARGC/ARGV are valid + for an MI function that takes no arguments. Otherwise, it returns 0 + and the appropriate error message is displayed by mi_getopt. */ + +extern int mi_valid_noargs (const char *prefix, int argc, char **argv); + #endif |