GDB (xrefs)
|
#include "defs.h"
#include "compile-internal.h"
#include "compile-c.h"
#include "compile-cplus.h"
#include "compile.h"
#include "c-lang.h"
#include "macrotab.h"
#include "macroscope.h"
#include "regcache.h"
#include "gdbsupport/function-view.h"
#include "gdbsupport/gdb-dlfcn.h"
#include "gdbsupport/preprocessor.h"
#include "gdbarch.h"
Go to the source code of this file.
Classes | |
struct | c_push_user_expression |
struct | pop_user_expression_nop |
struct | c_add_code_header |
struct | c_add_code_footer |
struct | c_add_input |
struct | cplus_push_user_expression |
struct | cplus_pop_user_expression |
struct | cplus_add_code_header |
struct | cplus_add_input |
class | compile_program< CompileInstanceType, PushUserExpressionPolicy, PopUserExpressionPolicy, AddCodeHeaderPolicy, AddCodeFooterPolicy, AddInputPolicy > |
Functions | |
const char * | c_get_mode_for_size (int size) |
std::string | c_get_range_decl_name (const struct dynamic_prop *prop) |
template<typename FUNCTYPE > | |
FUNCTYPE * | load_libcompile (const char *fe_libcc, const char *fe_context) |
template<typename INSTTYPE , typename FUNCTYPE , typename CTXTYPE , typename BASE_VERSION_TYPE , typename API_VERSION_TYPE > | |
std::unique_ptr< compile_instance > | get_compile_context (const char *fe_libcc, const char *fe_context, BASE_VERSION_TYPE base_version, API_VERSION_TYPE api_version) |
std::unique_ptr< compile_instance > | c_get_compile_context () |
std::unique_ptr< compile_instance > | cplus_get_compile_context () |
static void | print_one_macro (const char *name, const struct macro_definition *macro, struct macro_source_file *source, int line, ui_file *file) |
static void | write_macro_definitions (const struct block *block, CORE_ADDR pc, struct ui_file *file) |
static void | generate_register_struct (struct ui_file *stream, struct gdbarch *gdbarch, const std::vector< bool > ®isters_used) |
std::string | c_compute_program (compile_instance *inst, const char *input, struct gdbarch *gdbarch, const struct block *expr_block, CORE_ADDR expr_pc) |
std::string | cplus_compute_program (compile_instance *inst, const char *input, struct gdbarch *gdbarch, const struct block *expr_block, CORE_ADDR expr_pc) |
typedef compile_program<compile_c_instance, c_push_user_expression, pop_user_expression_nop, c_add_code_header, c_add_code_footer, c_add_input> c_compile_program |
Definition at line 656 of file compile-c-support.c.
typedef compile_program<compile_cplus_instance, cplus_push_user_expression, cplus_pop_user_expression, cplus_add_code_header, c_add_code_footer, cplus_add_input> cplus_compile_program |
Definition at line 661 of file compile-c-support.c.
std::string c_compute_program | ( | compile_instance * | inst, |
const char * | input, | ||
struct gdbarch * | gdbarch, | ||
const struct block * | expr_block, | ||
CORE_ADDR | expr_pc ) |
Definition at line 666 of file compile-c-support.c.
Referenced by c_language::compute_program().
std::unique_ptr< compile_instance > c_get_compile_context | ( | ) |
Definition at line 127 of file compile-c-support.c.
References get_compile_context().
Referenced by c_language::get_compile_instance().
const char * c_get_mode_for_size | ( | int | size | ) |
Definition at line 37 of file compile-c-support.c.
References size.
Referenced by compile_program< CompileInstanceType, PushUserExpressionPolicy, PopUserExpressionPolicy, AddCodeHeaderPolicy, AddCodeFooterPolicy, AddInputPolicy >::compute(), do_compile_dwarf_expr_to_c(), and generate_register_struct().
std::string c_get_range_decl_name | ( | const struct dynamic_prop * | prop | ) |
Definition at line 65 of file compile-c-support.c.
Referenced by compile_cplus_convert_array(), convert_array(), and generate_vla_size().
std::string cplus_compute_program | ( | compile_instance * | inst, |
const char * | input, | ||
struct gdbarch * | gdbarch, | ||
const struct block * | expr_block, | ||
CORE_ADDR | expr_pc ) |
Definition at line 681 of file compile-c-support.c.
Referenced by cplus_language::compute_program().
std::unique_ptr< compile_instance > cplus_get_compile_context | ( | ) |
Definition at line 139 of file compile-c-support.c.
References get_compile_context().
Referenced by cplus_language::get_compile_instance().
|
static |
Definition at line 215 of file compile-c-support.c.
References c_get_mode_for_size(), check_typedef(), type::code(), COMPILE_I_SIMPLE_REGISTER_DUMMY, COMPILE_I_SIMPLE_REGISTER_STRUCT_TAG, compile_register_name_mangled(), gdb_printf(), gdb_puts(), gdbarch_num_regs(), type::is_unsigned(), type::length(), and register_type().
std::unique_ptr< compile_instance > get_compile_context | ( | const char * | fe_libcc, |
const char * | fe_context, | ||
BASE_VERSION_TYPE | base_version, | ||
API_VERSION_TYPE | api_version ) |
Definition at line 103 of file compile-c-support.c.
References func.
Referenced by c_get_compile_context(), and cplus_get_compile_context().
FUNCTYPE * load_libcompile | ( | const char * | fe_libcc, |
const char * | fe_context ) |
Definition at line 77 of file compile-c-support.c.
References func.
|
static |
Definition at line 153 of file compile-c-support.c.
References macro_definition::argc, macro_definition::argv, gdb_printf(), gdb_puts(), macro_definition::kind, macro_function_like, name, and macro_definition::replacement.
|
static |
Definition at line 186 of file compile-c-support.c.
References default_macro_scope(), find_pc_line(), macro_for_each_in_scope(), name, sal_macro_scope(), and user_macro_scope().