|
GDB (xrefs)
|
#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_table * | new_macro_table (struct obstack *obstack, gdb::bcache *bcache, struct compunit_symtab *cust) |
| void | free_macro_table (struct macro_table *table) |
| struct macro_source_file * | macro_set_main (struct macro_table *table, const char *filename) |
| struct macro_source_file * | macro_main (struct macro_table *table) |
| void | macro_allow_redefinitions (struct macro_table *table) |
| struct macro_source_file * | macro_include (struct macro_source_file *source, int line, const char *included) |
| void | macro_define_special (struct macro_table *table) |
| struct macro_source_file * | macro_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_definition * | macro_lookup_definition (struct macro_source_file *source, int line, const char *name) |
| struct macro_source_file * | macro_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 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.
| enum macro_kind |
| Enumerator | |
|---|---|
| macro_object_like | |
| macro_function_like | |
Definition at line 272 of file macrotab.h.
| enum macro_special_kind |
| Enumerator | |
|---|---|
| macro_ordinary | |
| macro_FILE | |
| macro_LINE | |
Definition at line 280 of file macrotab.h.
| void free_macro_table | ( | struct macro_table * | table | ) |
Definition at line 1053 of file macrotab.c.
References macro_table::definitions, free_macro_source_file(), and macro_table::main_source.
Referenced by buildsym_compunit::~buildsym_compunit().
| 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.
| void macro_define_function | ( | struct macro_source_file * | source, |
| int | line, | ||
| const char * | name, | ||
| int | argc, | ||
| const char ** | argv, | ||
| const char * | replacement ) |
Definition at line 815 of file macrotab.c.
References macro_definition::argc, macro_definition::argv, macro_define_internal(), macro_function_like, name, and macro_definition::replacement.
Referenced by macro_define_command(), and parse_macro_definition().
| void macro_define_object | ( | struct macro_source_file * | source, |
| int | line, | ||
| const char * | name, | ||
| const char * | replacement ) |
Definition at line 796 of file macrotab.c.
References macro_define_object_internal(), macro_ordinary, name, and macro_definition::replacement.
Referenced by macro_define_command(), and parse_macro_definition().
| void macro_define_special | ( | struct macro_table * | table | ) |
Definition at line 806 of file macrotab.c.
References macro_define_object_internal(), macro_FILE, macro_LINE, macro_table::main_source, and macro_definition::table.
Referenced by macro_start_file().
| 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().
| void macro_for_each | ( | struct macro_table * | table, |
| gdb::function_view< macro_callback_fn > | fn ) |
Definition at line 970 of file macrotab.c.
References macro_table::definitions, macro_for_each_data::file, macro_for_each_data::fn, foreach_macro(), and macro_for_each_data::line.
Referenced by default_collect_symbol_completion_matches_break_on(), info_macro_command(), and macro_list_command().
| void macro_for_each_in_scope | ( | struct macro_source_file * | file, |
| int | line, | ||
| gdb::function_view< macro_callback_fn > | fn ) |
Definition at line 1005 of file macrotab.c.
References macro_table::definitions, macro_for_each_data::file, macro_for_each_data::fn, foreach_macro_in_scope(), macro_for_each_data::line, and macro_source_file::table.
Referenced by default_collect_symbol_completion_matches_break_on(), info_macros_command(), and write_macro_definitions().
| struct macro_source_file * macro_include | ( | struct macro_source_file * | source, |
| int | line, | ||
| const char * | included ) |
Definition at line 451 of file macrotab.c.
References complaint, macro_source_file::included_at_line, macro_source_file::included_by, macro_source_fullname(), new_source_file(), and macro_source_file::next_included.
Referenced by macro_start_file().
| struct macro_definition * macro_lookup_definition | ( | struct macro_source_file * | source, |
| int | line, | ||
| const char * | name ) |
Definition at line 906 of file macrotab.c.
References find_definition(), fixup_definition(), macro_source_fullname(), and name.
Referenced by info_macro_command(), and standard_macro_lookup().
| struct macro_source_file * macro_lookup_inclusion | ( | struct macro_source_file * | source, |
| const char * | name ) |
Definition at line 508 of file macrotab.c.
References inclusion_depth(), macro_lookup_inclusion(), name, and macro_source_file::next_included.
Referenced by macro_lookup_inclusion(), and sal_macro_scope().
| struct macro_source_file * macro_main | ( | struct macro_table * | table | ) |
Definition at line 434 of file macrotab.c.
References macro_table::main_source.
Referenced by macro_define_command(), macro_undef_command(), sal_macro_scope(), standard_macro_lookup(), and user_macro_scope().
| 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().
|
extern |
Definition at line 1065 of file macrotab.c.
Referenced by check_for_redefinition(), foreach_macro(), foreach_macro_in_scope(), macro_include(), macro_lookup_definition(), macro_undef(), and show_pp_source_pos().
| void macro_undef | ( | struct macro_source_file * | source, |
| int | line, | ||
| const char * | name ) |
Definition at line 826 of file macrotab.c.
References complaint, macro_key::end_file, macro_key::end_line, find_definition(), macro_source_fullname(), name, macro_key::start_file, and macro_key::start_line.
Referenced by dwarf_decode_macro_bytes(), and macro_undef_command().
| struct macro_table * new_macro_table | ( | struct obstack * | obstack, |
| gdb::bcache * | bcache, | ||
| struct compunit_symtab * | cust ) |
Definition at line 1023 of file macrotab.c.
References macro_table::bcache, macro_table::compunit_symtab, macro_table::definitions, macro_alloc(), macro_free(), macro_tree_compare(), macro_tree_delete_key(), macro_tree_delete_value(), macro_table::main_source, macro_table::obstack, and macro_table::redef_ok.
Referenced by buildsym_compunit::get_macro_table().