GDB (xrefs)
Functions
/home/stan/gdb/src/gdb/mi/mi-getopt.c File Reference
#include "defs.h"
#include "mi-getopt.h"
#include "gdb_string.h"

Go to the source code of this file.

Functions

static int mi_getopt_1 (const char *prefix, int argc, char **argv, const struct mi_opt *opts, int *oind, char **oarg, int error_on_unknown)
int mi_getopt (const char *prefix, int argc, char **argv, const struct mi_opt *opts, int *oind, char **oarg)
int mi_getopt_allow_unknown (const char *prefix, int argc, char **argv, const struct mi_opt *opts, int *oind, char **oarg)
int mi_valid_noargs (const char *prefix, int argc, char **argv)

Function Documentation

int mi_getopt ( const char *  prefix,
int  argc,
char **  argv,
const struct mi_opt opts,
int oind,
char **  oarg 
)
static int mi_getopt_1 ( const char *  prefix,
int  argc,
char **  argv,
const struct mi_opt opts,
int oind,
char **  oarg,
int  error_on_unknown 
) [static]

Definition at line 29 of file mi-getopt.c.

References _, mi_opt::arg_p, error(), mi_opt::index, internal_error(), and mi_opt::name.

Referenced by mi_getopt(), and mi_getopt_allow_unknown().

int mi_getopt_allow_unknown ( const char *  prefix,
int  argc,
char **  argv,
const struct mi_opt opts,
int oind,
char **  oarg 
)

Definition at line 94 of file mi-getopt.c.

References mi_getopt_1().

Referenced by mi_cmd_stack_list_args().

int mi_valid_noargs ( const char *  prefix,
int  argc,
char **  argv 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines