GDB (xrefs)
Functions | Variables
/tmp/gdb-8.1/gdb/macrocmd.c File Reference
#include "defs.h"
#include "macrotab.h"
#include "macroexp.h"
#include "macroscope.h"
#include "cli/cli-utils.h"
#include "command.h"
#include "gdbcmd.h"
#include "linespec.h"

Go to the source code of this file.

Functions

static void macro_command (const char *arg, int from_tty)
 
static void macro_inform_no_debuginfo (void)
 
static void macro_expand_command (const char *exp, int from_tty)
 
static void macro_expand_once_command (const char *exp, int from_tty)
 
static void show_pp_source_pos (struct ui_file *stream, struct macro_source_file *file, int line)
 
static void print_macro_definition (const char *name, const struct macro_definition *d, struct macro_source_file *file, int line)
 
static void info_macro_command (const char *args, int from_tty)
 
static void info_macros_command (const char *args, int from_tty)
 
static void skip_ws (const char **expp)
 
static char * extract_identifier (const char **expp, int is_parameter)
 
static void free_macro_definition_ptr (void *ptr)
 
static void macro_define_command (const char *exp, int from_tty)
 
static void macro_undef_command (const char *exp, int from_tty)
 
static void print_one_macro (const char *name, const struct macro_definition *macro, struct macro_source_file *source, int line)
 
static void macro_list_command (const char *exp, int from_tty)
 
void _initialize_macrocmd (void)
 

Variables

static struct cmd_list_elementmacrolist
 

Function Documentation

◆ _initialize_macrocmd()

void _initialize_macrocmd ( void  )

◆ extract_identifier()

static char* extract_identifier ( const char **  expp,
int  is_parameter 
)
static

◆ free_macro_definition_ptr()

static void free_macro_definition_ptr ( void *  ptr)
static

Definition at line 348 of file macrocmd.c.

References loc, and xfree().

Referenced by macro_define_command().

◆ info_macro_command()

static void info_macro_command ( const char *  args,
int  from_tty 
)
static

◆ info_macros_command()

static void info_macros_command ( const char *  args,
int  from_tty 
)
static

◆ macro_command()

static void macro_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 36 of file macrocmd.c.

References all_commands, gdb_stdout, help_list(), macrolist, and printf_unfiltered().

Referenced by _initialize_macrocmd().

◆ macro_define_command()

static void macro_define_command ( const char *  exp,
int  from_tty 
)
static

◆ macro_expand_command()

static void macro_expand_command ( const char *  exp,
int  from_tty 
)
static

◆ macro_expand_once_command()

static void macro_expand_once_command ( const char *  exp,
int  from_tty 
)
static

◆ macro_inform_no_debuginfo()

static void macro_inform_no_debuginfo ( void  )
static

◆ macro_list_command()

static void macro_list_command ( const char *  exp,
int  from_tty 
)
static

Definition at line 478 of file macrocmd.c.

References macro_for_each(), macro_user_macros, and print_one_macro().

Referenced by _initialize_macrocmd().

◆ macro_undef_command()

static void macro_undef_command ( const char *  exp,
int  from_tty 
)
static

◆ print_macro_definition()

static void print_macro_definition ( const char *  name,
const struct macro_definition d,
struct macro_source_file file,
int  line 
)
static

◆ print_one_macro()

static void print_one_macro ( const char *  name,
const struct macro_definition macro,
struct macro_source_file source,
int  line 
)
static

◆ show_pp_source_pos()

static void show_pp_source_pos ( struct ui_file stream,
struct macro_source_file file,
int  line 
)
static

◆ skip_ws()

static void skip_ws ( const char **  expp)
static

Definition at line 300 of file macrocmd.c.

References macro_is_whitespace().

Referenced by macro_define_command(), and macro_undef_command().

Variable Documentation

◆ macrolist

struct cmd_list_element* macrolist
static

Definition at line 33 of file macrocmd.c.

Referenced by _initialize_macrocmd(), and macro_command().