GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
macrotab.h File Reference
#include "gdbsupport/function-view.h"

Go to the source code of this file.

Classes

struct  macro_source_file
 
struct  macro_definition
 

Namespaces

namespace  gdb
 

Typedefs

typedef void macro_callback_fn(const char *name, const struct macro_definition *definition, struct macro_source_file *source, int line)
 

Enumerations

enum  macro_kind { macro_object_like , macro_function_like }
 
enum  macro_special_kind { macro_ordinary , macro_FILE , macro_LINE }
 

Functions

struct macro_tablenew_macro_table (struct obstack *obstack, gdb::bcache *bcache, struct compunit_symtab *cust)
 
void free_macro_table (struct macro_table *table)
 
struct macro_source_filemacro_set_main (struct macro_table *table, const char *filename)
 
struct macro_source_filemacro_main (struct macro_table *table)
 
void macro_allow_redefinitions (struct macro_table *table)
 
struct macro_source_filemacro_include (struct macro_source_file *source, int line, const char *included)
 
void macro_define_special (struct macro_table *table)
 
struct macro_source_filemacro_lookup_inclusion (struct macro_source_file *source, const char *name)
 
void macro_define_object (struct macro_source_file *source, int line, const char *name, const char *replacement)
 
void macro_define_function (struct macro_source_file *source, int line, const char *name, int argc, const char **argv, const char *replacement)
 
void macro_undef (struct macro_source_file *source, int line, const char *name)
 
struct macro_definitionmacro_lookup_definition (struct macro_source_file *source, int line, const char *name)
 
struct macro_source_filemacro_definition_location (struct macro_source_file *source, int line, const char *name, int *definition_line)
 
void macro_for_each (struct macro_table *table, gdb::function_view< macro_callback_fn > fn)
 
void macro_for_each_in_scope (struct macro_source_file *file, int line, gdb::function_view< macro_callback_fn > fn)
 
std::string macro_source_fullname (struct macro_source_file *file)
 

Typedef Documentation

◆ macro_callback_fn

typedef void macro_callback_fn(const char *name, const struct macro_definition *definition, struct macro_source_file *source, int line)

Definition at line 341 of file macrotab.h.

Enumeration Type Documentation

◆ macro_kind

enum macro_kind
Enumerator
macro_object_like 
macro_function_like 

Definition at line 272 of file macrotab.h.

◆ macro_special_kind

Enumerator
macro_ordinary 
macro_FILE 
macro_LINE 

Definition at line 280 of file macrotab.h.

Function Documentation

◆ free_macro_table()

void free_macro_table ( struct macro_table * table)

◆ macro_allow_redefinitions()

void macro_allow_redefinitions ( struct macro_table * table)

Definition at line 443 of file macrotab.c.

References macro_table::obstack, and macro_table::redef_ok.

◆ macro_define_function()

void macro_define_function ( struct macro_source_file * source,
int line,
const char * name,
int argc,
const char ** argv,
const char * replacement )

◆ macro_define_object()

void macro_define_object ( struct macro_source_file * source,
int line,
const char * name,
const char * replacement )

◆ macro_define_special()

void macro_define_special ( struct macro_table * table)

◆ macro_definition_location()

struct macro_source_file * macro_definition_location ( struct macro_source_file * source,
int line,
const char * name,
int * definition_line )

Definition at line 923 of file macrotab.c.

References find_definition(), name, macro_key::start_file, and macro_key::start_line.

Referenced by info_macro_command().

◆ macro_for_each()

void macro_for_each ( struct macro_table * table,
gdb::function_view< macro_callback_fn > fn )

◆ macro_for_each_in_scope()

void macro_for_each_in_scope ( struct macro_source_file * file,
int line,
gdb::function_view< macro_callback_fn > fn )

◆ macro_include()

struct macro_source_file * macro_include ( struct macro_source_file * source,
int line,
const char * included )

◆ macro_lookup_definition()

struct macro_definition * macro_lookup_definition ( struct macro_source_file * source,
int line,
const char * name )

◆ macro_lookup_inclusion()

struct macro_source_file * macro_lookup_inclusion ( struct macro_source_file * source,
const char * name )

◆ macro_main()

struct macro_source_file * macro_main ( struct macro_table * table)

◆ macro_set_main()

struct macro_source_file * macro_set_main ( struct macro_table * table,
const char * filename )

Definition at line 420 of file macrotab.c.

References macro_source_file::filename, macro_table::main_source, and new_source_file().

Referenced by macro_start_file().

◆ macro_source_fullname()

std::string macro_source_fullname ( struct macro_source_file * file)
extern

◆ macro_undef()

void macro_undef ( struct macro_source_file * source,
int line,
const char * name )

◆ new_macro_table()

struct macro_table * new_macro_table ( struct obstack * obstack,
gdb::bcache * bcache,
struct compunit_symtab * cust )