GDB (API)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/cli/cli-script.c File Reference
#include "defs.h"
#include "value.h"
#include "language.h"
#include <ctype.h>
#include "ui-out.h"
#include "gdb_string.h"
#include "exceptions.h"
#include "top.h"
#include "breakpoint.h"
#include "cli/cli-cmds.h"
#include "cli/cli-decode.h"
#include "cli/cli-script.h"
#include "gdb_assert.h"
#include "python/python.h"
#include "interps.h"

Go to the source code of this file.

Defines

#define MAXUSERARGS   10
#define END_MESSAGE   "End with a line saying just \"end\"."
#define MAX_TMPBUF   128
#define HOOK_STRING   "hook-"
#define HOOK_LEN   5
#define HOOK_POST_STRING   "hookpost-"
#define HOOK_POST_LEN   9

Functions

struct command_lineget_command_line (enum command_control_type type, char *arg)
void print_command_lines (struct ui_out *uiout, struct command_line *cmd, unsigned int depth)
void execute_cmd_pre_hook (struct cmd_list_element *c)
void execute_cmd_post_hook (struct cmd_list_element *c)
void execute_user_command (struct cmd_list_element *c, char *args)
void reset_command_nest_depth (void)
void print_command_trace (const char *cmd)
enum command_control_type execute_control_command (struct command_line *cmd)
enum command_control_type execute_control_command_untraced (struct command_line *cmd)
struct command_lineread_command_lines (char *prompt_arg, int from_tty, int parse_commands, void(*validator)(char *, void *), void *closure)
struct command_lineread_command_lines_1 (char *(*read_next_line_func)(void), int parse_commands, void(*validator)(char *, void *), void *closure)
void free_command_lines (struct command_line **lptr)
struct cleanup * make_cleanup_free_command_lines (struct command_line **arg)
struct command_linecopy_command_lines (struct command_line *cmds)
void script_from_file (FILE *stream, const char *file)
void show_user_1 (struct cmd_list_element *c, const char *prefix, const char *name, struct ui_file *stream)
void _initialize_cli_script (void)

Variables

struct user_argsuser_args
initialize_file_ftype _initialize_cli_script

Define Documentation

#define END_MESSAGE   "End with a line saying just \"end\"."

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

#define HOOK_LEN   5
#define HOOK_POST_LEN   9
#define HOOK_POST_STRING   "hookpost-"
#define HOOK_STRING   "hook-"
#define MAX_TMPBUF   128
#define MAXUSERARGS   10

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


Function Documentation

void _initialize_cli_script ( void  )

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

struct command_line* copy_command_lines ( struct command_line cmds) [read]

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

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

void execute_cmd_pre_hook ( struct cmd_list_element c)

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

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

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

void execute_user_command ( struct cmd_list_element c,
char *  args 
)

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

void free_command_lines ( struct command_line **  lptr)

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

struct command_line* get_command_line ( enum command_control_type  type,
char *  arg 
) [read]

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

struct cleanup* make_cleanup_free_command_lines ( struct command_line **  arg) [read]

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

void print_command_lines ( struct ui_out *  uiout,
struct command_line cmd,
unsigned int  depth 
)

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

void print_command_trace ( const char *  cmd)

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

struct command_line* read_command_lines ( char *  prompt_arg,
int  from_tty,
int  parse_commands,
void(*)(char *, void *)  validator,
void *  closure 
) [read]

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

struct command_line* read_command_lines_1 ( char *(*)(void)  read_next_line_func,
int  parse_commands,
void(*)(char *, void *)  validator,
void *  closure 
) [read]

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

void reset_command_nest_depth ( void  )

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

void script_from_file ( FILE *  stream,
const char *  file 
)

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

void show_user_1 ( struct cmd_list_element c,
const char *  prefix,
const char *  name,
struct ui_file *  stream 
)

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


Variable Documentation

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

struct user_args * user_args
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines