GDB (API)
Functions | Variables
/home/stan/gdb/src/gdb/cli/cli-decode.c File Reference
#include "defs.h"
#include "symtab.h"
#include <ctype.h>
#include "gdb_regex.h"
#include "gdb_string.h"
#include "completer.h"
#include "ui-out.h"
#include "cli/cli-cmds.h"
#include "cli/cli-decode.h"
#include "gdb_assert.h"

Go to the source code of this file.

Functions

void set_cmd_cfunc (struct cmd_list_element *cmd, cmd_cfunc_ftype *cfunc)
void set_cmd_sfunc (struct cmd_list_element *cmd, cmd_sfunc_ftype *sfunc)
int cmd_cfunc_eq (struct cmd_list_element *cmd, void(*cfunc)(char *args, int from_tty))
void set_cmd_context (struct cmd_list_element *cmd, void *context)
void * get_cmd_context (struct cmd_list_element *cmd)
enum cmd_types cmd_type (struct cmd_list_element *cmd)
void set_cmd_completer (struct cmd_list_element *cmd, completer_ftype *completer)
struct cmd_list_elementadd_cmd (const char *name, enum command_class class, void(*fun)(char *, int), char *doc, struct cmd_list_element **list)
struct cmd_list_elementdeprecate_cmd (struct cmd_list_element *cmd, char *replacement)
struct cmd_list_elementadd_alias_cmd (const char *name, const char *oldname, enum command_class class, int abbrev_flag, struct cmd_list_element **list)
struct cmd_list_elementadd_prefix_cmd (const char *name, enum command_class class, void(*fun)(char *, int), char *doc, struct cmd_list_element **prefixlist, char *prefixname, int allow_unknown, struct cmd_list_element **list)
struct cmd_list_elementadd_abbrev_prefix_cmd (const char *name, enum command_class class, void(*fun)(char *, int), char *doc, struct cmd_list_element **prefixlist, char *prefixname, int allow_unknown, struct cmd_list_element **list)
void not_just_help_class_command (char *args, int from_tty)
void add_setshow_enum_cmd (const char *name, enum command_class class, const char *const *enumlist, const char **var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
void add_setshow_auto_boolean_cmd (const char *name, enum command_class class, enum auto_boolean *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
void add_setshow_boolean_cmd (const char *name, enum command_class class, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
void add_setshow_filename_cmd (const char *name, enum command_class class, char **var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
void add_setshow_string_cmd (const char *name, enum command_class class, char **var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
struct cmd_list_elementadd_setshow_string_noescape_cmd (const char *name, enum command_class class, char **var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
void add_setshow_optional_filename_cmd (const char *name, enum command_class class, char **var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
void add_setshow_integer_cmd (const char *name, enum command_class class, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
void add_setshow_uinteger_cmd (const char *name, enum command_class class, unsigned int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
void add_setshow_zinteger_cmd (const char *name, enum command_class class, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
void add_setshow_zuinteger_unlimited_cmd (const char *name, enum command_class class, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
void add_setshow_zuinteger_cmd (const char *name, enum command_class class, unsigned int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
struct cmd_list_elementadd_info (const char *name, void(*fun)(char *, int), char *doc)
struct cmd_list_elementadd_info_alias (const char *name, char *oldname, int abbrev_flag)
struct cmd_list_elementadd_com (const char *name, enum command_class class, void(*fun)(char *, int), char *doc)
struct cmd_list_elementadd_com_alias (const char *name, const char *oldname, enum command_class class, int abbrev_flag)
void apropos_cmd (struct ui_file *stream, struct cmd_list_element *commandlist, struct re_pattern_buffer *regex, char *prefix)
void help_cmd (char *arg, struct ui_file *stream)
void help_list (struct cmd_list_element *list, char *cmdtype, enum command_class class, struct ui_file *stream)
void print_doc_line (struct ui_file *stream, char *str)
void help_cmd_list (struct cmd_list_element *list, enum command_class class, char *prefix, int recurse, struct ui_file *stream)
int valid_user_defined_cmd_name_p (const char *name)
struct cmd_list_elementlookup_cmd_1 (const char **text, struct cmd_list_element *clist, struct cmd_list_element **result_list, int ignore_help_classes)
struct cmd_list_elementlookup_cmd (const char **line, struct cmd_list_element *list, char *cmdtype, int allow_unknown, int ignore_help_classes)
void deprecated_cmd_warning (const char *text)
int lookup_cmd_composition (const char *text, struct cmd_list_element **alias, struct cmd_list_element **prefix_cmd, struct cmd_list_element **cmd)
int cmd_func_p (struct cmd_list_element *cmd)
void cmd_func (struct cmd_list_element *cmd, char *args, int from_tty)

Variables

const char *const auto_boolean_enums [] = { "on", "off", "auto", NULL }

Function Documentation

struct cmd_list_element* add_abbrev_prefix_cmd ( const char *  name,
enum command_class  class,
void(*)(char *, int fun,
char *  doc,
struct cmd_list_element **  prefixlist,
char *  prefixname,
int  allow_unknown,
struct cmd_list_element **  list 
) [read]

Definition at line 355 of file cli-decode.c.

struct cmd_list_element* add_alias_cmd ( const char *  name,
const char *  oldname,
enum command_class  class,
int  abbrev_flag,
struct cmd_list_element **  list 
) [read]

Definition at line 275 of file cli-decode.c.

struct cmd_list_element* add_cmd ( const char *  name,
enum command_class  class,
void(*)(char *, int fun,
char *  doc,
struct cmd_list_element **  list 
) [read]

Definition at line 186 of file cli-decode.c.

struct cmd_list_element* add_com ( const char *  name,
enum command_class  class,
void(*)(char *, int fun,
char *  doc 
) [read]

Definition at line 861 of file cli-decode.c.

struct cmd_list_element* add_com_alias ( const char *  name,
const char *  oldname,
enum command_class  class,
int  abbrev_flag 
) [read]

Definition at line 870 of file cli-decode.c.

struct cmd_list_element* add_info ( const char *  name,
void(*)(char *, int fun,
char *  doc 
) [read]

Definition at line 845 of file cli-decode.c.

struct cmd_list_element* add_info_alias ( const char *  name,
char *  oldname,
int  abbrev_flag 
) [read]

Definition at line 853 of file cli-decode.c.

struct cmd_list_element* add_prefix_cmd ( const char *  name,
enum command_class  class,
void(*)(char *, int fun,
char *  doc,
struct cmd_list_element **  prefixlist,
char *  prefixname,
int  allow_unknown,
struct cmd_list_element **  list 
) [read]

Definition at line 327 of file cli-decode.c.

void add_setshow_auto_boolean_cmd ( const char *  name,
enum command_class  class,
enum auto_boolean var,
const char *  set_doc,
const char *  show_doc,
const char *  help_doc,
cmd_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
)

Definition at line 504 of file cli-decode.c.

void add_setshow_boolean_cmd ( const char *  name,
enum command_class  class,
int var,
const char *  set_doc,
const char *  show_doc,
const char *  help_doc,
cmd_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
)

Definition at line 529 of file cli-decode.c.

void add_setshow_enum_cmd ( const char *  name,
enum command_class  class,
const char *const enumlist,
const char **  var,
const char *  set_doc,
const char *  show_doc,
const char *  help_doc,
cmd_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
)

Definition at line 475 of file cli-decode.c.

void add_setshow_filename_cmd ( const char *  name,
enum command_class  class,
char **  var,
const char *  set_doc,
const char *  show_doc,
const char *  help_doc,
cmd_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
)

Definition at line 551 of file cli-decode.c.

void add_setshow_integer_cmd ( const char *  name,
enum command_class  class,
int var,
const char *  set_doc,
const char *  show_doc,
const char *  help_doc,
cmd_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
)

Definition at line 657 of file cli-decode.c.

void add_setshow_optional_filename_cmd ( const char *  name,
enum command_class  class,
char **  var,
const char *  set_doc,
const char *  show_doc,
const char *  help_doc,
cmd_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
)

Definition at line 614 of file cli-decode.c.

void add_setshow_string_cmd ( const char *  name,
enum command_class  class,
char **  var,
const char *  set_doc,
const char *  show_doc,
const char *  help_doc,
cmd_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
)

Definition at line 573 of file cli-decode.c.

struct cmd_list_element* add_setshow_string_noescape_cmd ( const char *  name,
enum command_class  class,
char **  var,
const char *  set_doc,
const char *  show_doc,
const char *  help_doc,
cmd_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
) [read]

Definition at line 592 of file cli-decode.c.

void add_setshow_uinteger_cmd ( const char *  name,
enum command_class  class,
unsigned int var,
const char *  set_doc,
const char *  show_doc,
const char *  help_doc,
cmd_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
)

Definition at line 682 of file cli-decode.c.

void add_setshow_zinteger_cmd ( const char *  name,
enum command_class  class,
int var,
const char *  set_doc,
const char *  show_doc,
const char *  help_doc,
cmd_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
)

Definition at line 707 of file cli-decode.c.

void add_setshow_zuinteger_cmd ( const char *  name,
enum command_class  class,
unsigned int var,
const char *  set_doc,
const char *  show_doc,
const char *  help_doc,
cmd_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
)

Definition at line 751 of file cli-decode.c.

void add_setshow_zuinteger_unlimited_cmd ( const char *  name,
enum command_class  class,
int var,
const char *  set_doc,
const char *  show_doc,
const char *  help_doc,
cmd_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
)

Definition at line 724 of file cli-decode.c.

void apropos_cmd ( struct ui_file *  stream,
struct cmd_list_element commandlist,
struct re_pattern_buffer *  regex,
char *  prefix 
)

Definition at line 881 of file cli-decode.c.

int cmd_cfunc_eq ( struct cmd_list_element cmd,
void(*)(char *args, int from_tty)  cfunc 
)

Definition at line 137 of file cli-decode.c.

void cmd_func ( struct cmd_list_element cmd,
char *  args,
int  from_tty 
)

Definition at line 1879 of file cli-decode.c.

int cmd_func_p ( struct cmd_list_element cmd)

Definition at line 1871 of file cli-decode.c.

enum cmd_types cmd_type ( struct cmd_list_element cmd)

Definition at line 156 of file cli-decode.c.

struct cmd_list_element* deprecate_cmd ( struct cmd_list_element cmd,
char *  replacement 
) [read]

Definition at line 262 of file cli-decode.c.

void deprecated_cmd_warning ( const char *  text)

Definition at line 1593 of file cli-decode.c.

void* get_cmd_context ( struct cmd_list_element cmd)

Definition at line 150 of file cli-decode.c.

void help_cmd ( char *  arg,
struct ui_file *  stream 
)

Definition at line 936 of file cli-decode.c.

void help_cmd_list ( struct cmd_list_element list,
enum command_class  class,
char *  prefix,
int  recurse,
struct ui_file *  stream 
)

Definition at line 1179 of file cli-decode.c.

void help_list ( struct cmd_list_element list,
char *  cmdtype,
enum command_class  class,
struct ui_file *  stream 
)

Definition at line 1012 of file cli-decode.c.

struct cmd_list_element* lookup_cmd ( const char **  line,
struct cmd_list_element list,
char *  cmdtype,
int  allow_unknown,
int  ignore_help_classes 
) [read]

Definition at line 1471 of file cli-decode.c.

struct cmd_list_element* lookup_cmd_1 ( const char **  text,
struct cmd_list_element clist,
struct cmd_list_element **  result_list,
int  ignore_help_classes 
) [read]

Definition at line 1328 of file cli-decode.c.

int lookup_cmd_composition ( const char *  text,
struct cmd_list_element **  alias,
struct cmd_list_element **  prefix_cmd,
struct cmd_list_element **  cmd 
)

Definition at line 1667 of file cli-decode.c.

void not_just_help_class_command ( char *  args,
int  from_tty 
)

Definition at line 371 of file cli-decode.c.

void print_doc_line ( struct ui_file *  stream,
char *  str 
)

Definition at line 1111 of file cli-decode.c.

void set_cmd_cfunc ( struct cmd_list_element cmd,
cmd_cfunc_ftype cfunc 
)

Definition at line 111 of file cli-decode.c.

void set_cmd_completer ( struct cmd_list_element cmd,
completer_ftype *  completer 
)

Definition at line 162 of file cli-decode.c.

void set_cmd_context ( struct cmd_list_element cmd,
void *  context 
)

Definition at line 144 of file cli-decode.c.

void set_cmd_sfunc ( struct cmd_list_element cmd,
cmd_sfunc_ftype sfunc 
)

Definition at line 127 of file cli-decode.c.

Definition at line 1268 of file cli-decode.c.


Variable Documentation

const char* const auto_boolean_enums[] = { "on", "off", "auto", NULL }

Definition at line 497 of file cli-decode.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines