GDB (API)
Defines | Typedefs | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/command.h File Reference
#include "gdb_vecs.h"

Go to the source code of this file.

Defines

#define CMD_LIST_AMBIGUOUS   ((struct cmd_list_element *) -1)

Typedefs

typedef enum cmd_types cmd_types
typedef enum var_types var_types
typedef void cmd_cfunc_ftype (char *args, int from_tty)
typedef void cmd_sfunc_ftype (char *args, int from_tty, struct cmd_list_element *c)
typedef const char const char *void set_cmd_completer (struct cmd_list_element *, completer_ftype *)
typedef void( show_value_ftype )(struct ui_file *file, int from_tty, struct cmd_list_element *cmd, const char *value)

Enumerations

enum  command_class {
  class_deprecated = -3, all_classes = -2, all_commands = -1, no_class = -1,
  class_run = 0, class_vars, class_stack, class_files,
  class_support, class_info, class_breakpoint, class_trace,
  class_alias, class_bookmark, class_obscure, class_maintenance,
  class_pseudo, class_tui, class_user, class_xdb,
  no_set_class
}
enum  cmd_types { not_set_cmd, set_cmd, show_cmd }
enum  var_types {
  var_boolean, var_auto_boolean, var_uinteger, var_integer,
  var_string, var_string_noescape, var_optional_filename, var_filename,
  var_zinteger, var_zuinteger, var_zuinteger_unlimited, var_enum
}

Functions

int valid_user_defined_cmd_name_p (const char *name)
struct cmd_list_elementadd_cmd (const char *, enum command_class, void(*fun)(char *, int), char *, struct cmd_list_element **)
struct cmd_list_elementadd_alias_cmd (const char *, const char *, enum command_class, int, struct cmd_list_element **)
struct cmd_list_elementadd_prefix_cmd (const char *, enum command_class, void(*fun)(char *, int), char *, struct cmd_list_element **, char *, int, struct cmd_list_element **)
struct cmd_list_elementadd_abbrev_prefix_cmd (const char *, enum command_class, void(*fun)(char *, int), char *, struct cmd_list_element **, char *, int, struct cmd_list_element **)
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)
typedef VEC (char_ptr)*completer_ftype(struct cmd_list_element *
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)
void execute_cmd_pre_hook (struct cmd_list_element *cmd)
void execute_cmd_post_hook (struct cmd_list_element *cmd)
enum cmd_types cmd_type (struct cmd_list_element *cmd)
struct cmd_list_elementlookup_cmd (const char **, struct cmd_list_element *, char *, int, int)
struct cmd_list_elementlookup_cmd_1 (const char **, struct cmd_list_element *, struct cmd_list_element **, int)
struct cmd_list_elementdeprecate_cmd (struct cmd_list_element *, char *)
void deprecated_cmd_warning (const char *)
int lookup_cmd_composition (const char *text, struct cmd_list_element **alias, struct cmd_list_element **prefix_cmd, struct cmd_list_element **cmd)
struct cmd_list_elementadd_com (const char *, enum command_class, void(*fun)(char *, int), char *)
struct cmd_list_elementadd_com_alias (const char *, const char *, enum command_class, int)
struct cmd_list_elementadd_info (const char *, void(*fun)(char *, int), char *)
struct cmd_list_elementadd_info_alias (const char *, char *, int)
const char const char *void help_list (struct cmd_list_element *, char *, enum command_class, struct ui_file *)
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_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_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 cmd_show_list (struct cmd_list_element *, int, char *)
void error_no_arg (char *) ATTRIBUTE_NORETURN
void dont_repeat (void)
struct cleanup * prevent_dont_repeat (void)
void not_just_help_class_command (char *, int)
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 char int
show_value_ftype deprecated_show_value_hack

Define Documentation

#define CMD_LIST_AMBIGUOUS   ((struct cmd_list_element *) -1)

Definition at line 184 of file command.h.


Typedef Documentation

typedef void cmd_cfunc_ftype(char *args, int from_tty)

Definition at line 149 of file command.h.

typedef void cmd_sfunc_ftype(char *args, int from_tty, struct cmd_list_element *c)

Definition at line 153 of file command.h.

typedef enum cmd_types cmd_types
typedef const char const char* void set_cmd_completer(struct cmd_list_element *, completer_ftype *)
typedef void( show_value_ftype)(struct ui_file *file, int from_tty, struct cmd_list_element *cmd, const char *value)

Definition at line 232 of file command.h.

typedef enum var_types var_types

Enumeration Type Documentation

enum cmd_types
Enumerator:
not_set_cmd 
set_cmd 
show_cmd 

Definition at line 51 of file command.h.

Enumerator:
class_deprecated 
all_classes 
all_commands 
no_class 
class_run 
class_vars 
class_stack 
class_files 
class_support 
class_info 
class_breakpoint 
class_trace 
class_alias 
class_bookmark 
class_obscure 
class_maintenance 
class_pseudo 
class_tui 
class_user 
class_xdb 
no_set_class 

Definition at line 33 of file command.h.

enum var_types
Enumerator:
var_boolean 
var_auto_boolean 
var_uinteger 
var_integer 
var_string 
var_string_noescape 
var_optional_filename 
var_filename 
var_zinteger 
var_zuinteger 
var_zuinteger_unlimited 
var_enum 

Definition at line 60 of file command.h.


Function Documentation

struct cmd_list_element* add_abbrev_prefix_cmd ( const char *  ,
enum  command_class,
void(*)(char *, int fun,
char *  ,
struct cmd_list_element **  ,
char *  ,
int  ,
struct cmd_list_element **   
) [read]

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

struct cmd_list_element* add_alias_cmd ( const char *  ,
const char *  ,
enum  command_class,
int  ,
struct cmd_list_element **   
) [read]

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

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

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

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

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

struct cmd_list_element* add_com_alias ( const char *  ,
const char *  ,
enum  command_class,
int   
) [read]

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

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

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

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

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

struct cmd_list_element* add_prefix_cmd ( const char *  ,
enum  command_class,
void(*)(char *, int fun,
char *  ,
struct cmd_list_element **  ,
char *  ,
int  ,
struct cmd_list_element **   
) [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.

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.

void cmd_show_list ( struct cmd_list_element ,
int  ,
char *   
)

Definition at line 673 of file cli-setshow.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 ,
char *   
) [read]

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

void deprecated_cmd_warning ( const char *  )

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

void dont_repeat ( void  )

Definition at line 587 of file top.c.

void error_no_arg ( char *  )

Definition at line 207 of file cli-cmds.c.

void execute_cmd_post_hook ( struct cmd_list_element cmd)

Definition at line 286 of file cli-script.c.

void execute_cmd_pre_hook ( struct cmd_list_element cmd)

Definition at line 274 of file cli-script.c.

void* get_cmd_context ( struct cmd_list_element cmd)

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

const char const char* void help_list ( struct cmd_list_element ,
char *  ,
enum  command_class,
struct ui_file *   
)

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

struct cmd_list_element* lookup_cmd ( const char **  ,
struct cmd_list_element ,
char *  ,
int  ,
int   
) [read]

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

struct cmd_list_element* lookup_cmd_1 ( const char **  ,
struct cmd_list_element ,
struct cmd_list_element **  ,
int   
) [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 *  ,
int   
)

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

struct cleanup* prevent_dont_repeat ( void  ) [read]

Definition at line 603 of file top.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_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.

const char enum type_code const char const char enum type_code const char const char const char const char * VEC ( char_ptr  )

Definition at line 116 of file completer.c.


Variable Documentation

const char const char int

Definition at line 219 of file command.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines