GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
macrocmd.c File Reference
#include "defs.h"
#include "macrotab.h"
#include "macroexp.h"
#include "macroscope.h"
#include "cli/cli-style.h"
#include "cli/cli-utils.h"
#include "command.h"
#include "gdbcmd.h"
#include "linespec.h"

Go to the source code of this file.

Classes

struct  temporary_macro_definition
 

Functions

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 gdb::unique_xmalloc_ptr< char > extract_identifier (const char **expp, int is_parameter)
 
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 ()
 

Variables

static struct cmd_list_elementmacrolist
 

Function Documentation

◆ _initialize_macrocmd()

void _initialize_macrocmd ( )

Definition at line 451 of file macrocmd.c.

Referenced by initialize_all_files().

◆ extract_identifier()

static gdb::unique_xmalloc_ptr< char > extract_identifier ( const char ** expp,
int is_parameter )
static

Definition at line 281 of file macrocmd.c.

References macro_is_digit(), macro_is_identifier_nondigit(), and xmalloc().

Referenced by macro_define_command(), and macro_undef_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_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 442 of file macrocmd.c.

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

◆ 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 267 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 34 of file macrocmd.c.