GDB (xrefs)

Classes | Functions | Variables
cli-cmds.h File Reference
`#include "common/filestuff.h"`
`#include "common/gdb_optional.h"`

Go to the source code of this file.

## Classes
struct | open_script

## Functions
void | init_cmd_lists (void)
void | init_cli_cmds (void)
int | is_complete_command (struct cmd_list_element *cmd)
void | cd_command (const char *, int)
void | quit_command (const char *, int)
void | source_script (const char *, int)
gdb::optional< open_script > | find_and_open_script (const char *file, int search_path)

## Variables
struct cmd_list_element * | cmdlist
struct cmd_list_element * | infolist
struct cmd_list_element * | enablelist
struct cmd_list_element * | disablelist
struct cmd_list_element * | deletelist
struct cmd_list_element * | detachlist
struct cmd_list_element * | killlist
struct cmd_list_element * | stoplist
struct cmd_list_element * | setlist
struct cmd_list_element * | unsetlist
struct cmd_list_element * | showlist
struct cmd_list_element * | sethistlist
struct cmd_list_element * | showhistlist
struct cmd_list_element * | unsethistlist
struct cmd_list_element * | maintenancelist
struct cmd_list_element * | maintenanceinfolist
struct cmd_list_element * | maintenanceprintlist
struct cmd_list_element * | setprintlist
struct cmd_list_element * | showprintlist
struct cmd_list_element * | setdebuglist
struct cmd_list_element * | showdebuglist
struct cmd_list_element * | setchecklist
struct cmd_list_element * | showchecklist
int | source_verbose
int | trace_commands

## Function Documentation

## ◆ cd_command()

void cd_command | ( | const char * | ,
|  | int |
| ) |  |

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

References current_directory, dont_repeat(), forget_cached_source_info(), perror_with_name(), pwd_command(), savestring(), SLASH_STRING, and xfree().

Referenced by _initialize_cli_cmds(), and captured_main_1().

## ◆ find_and_open_script()

gdb::optional<open_script> find_and_open_script | ( | const char * | file,
|  | int | search_path
| ) |  |

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

References gdb::optional< T >::emplace(), openp(), OPF_RETURN_REALPATH, OPF_SEARCH_IN_PATH, OPF_TRY_CWD_FIRST, and source_path.

Referenced by source_script_file(), and source_script_with_search().

## ◆ init_cli_cmds()

void init_cli_cmds | ( | void |  | ) |

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

References _, add_cmd(), class_support, cmdlist, filename_completer(), gdbinit, set_cmd_completer(), source_command(), and xstrprintf().

Referenced by gdb_init().

## ◆ init_cmd_lists()

void init_cmd_lists | ( | void |  | ) |

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

References max_user_call_depth.

Referenced by gdb_init().

## ◆ is_complete_command()

int is_complete_command | ( | struct cmd_list_element * | cmd | ) |

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

References cmd_cfunc_eq(), and complete_command().

Referenced by execute_command().

## ◆ quit_command()

void quit_command | ( | const char * | ,
|  | int |
| ) |  |

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

## ◆ source_script()

void source_script | ( | const char * | ,
|  | int |
| ) |  |

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

References source_script_with_search().

Referenced by captured_main_1().

## Variable Documentation

## ◆ cmdlist

struct cmd_list_element* cmdlist

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

## ◆ deletelist

struct cmd_list_element* deletelist

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

## ◆ detachlist

struct cmd_list_element* detachlist

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

## ◆ disablelist

struct cmd_list_element* disablelist

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

## ◆ enablelist

struct cmd_list_element* enablelist

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

## ◆ infolist

struct cmd_list_element* infolist

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

## ◆ killlist

struct cmd_list_element* killlist

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

## ◆ maintenanceinfolist

struct cmd_list_element* maintenanceinfolist

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

## ◆ maintenancelist

struct cmd_list_element* maintenancelist

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

## ◆ maintenanceprintlist

struct cmd_list_element* maintenanceprintlist

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

## ◆ setchecklist

struct cmd_list_element* setchecklist

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

## ◆ setdebuglist

struct cmd_list_element* setdebuglist

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

## ◆ sethistlist

struct cmd_list_element* sethistlist

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

## ◆ setlist

struct cmd_list_element* setlist

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

## ◆ setprintlist

struct cmd_list_element* setprintlist

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

## ◆ showchecklist

struct cmd_list_element* showchecklist

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

## ◆ showdebuglist

struct cmd_list_element* showdebuglist

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

## ◆ showhistlist

struct cmd_list_element* showhistlist

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

## ◆ showlist

struct cmd_list_element* showlist

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

## ◆ showprintlist

struct cmd_list_element* showprintlist

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

## ◆ source_verbose

int source_verbose

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

Referenced by print_command_trace(), and source_command().

## ◆ stoplist

struct cmd_list_element* stoplist

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

## ◆ trace_commands

int trace_commands

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

Referenced by _initialize_cli_cmds(), and print_command_trace().

## ◆ unsethistlist

struct cmd_list_element* unsethistlist

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

## ◆ unsetlist

struct cmd_list_element* unsetlist

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