GDB (xrefs)
|
#include "hashtab.h"
#include "gcc-c-interface.h"
Go to the source code of this file.
Classes | |
struct | compile_instance |
struct | compile_c_instance |
Macros | |
#define | C_CTX(I) ((struct gcc_c_context *) ((I)->base.fe)) |
#define | COMPILE_I_SIMPLE_REGISTER_STRUCT_TAG "__gdb_regs" |
#define | COMPILE_I_SIMPLE_REGISTER_ARG_NAME "__regs" |
#define | COMPILE_I_SIMPLE_REGISTER_DUMMY "_dummy" |
#define | COMPILE_I_PRINT_OUT_ARG_TYPE "void *" |
#define | COMPILE_I_PRINT_OUT_ARG "__gdb_out_param" |
#define | COMPILE_I_EXPR_VAL "__gdb_expr_val" |
#define | COMPILE_I_EXPR_PTR_TYPE "__gdb_expr_ptr_type" |
Functions | |
char * | compile_register_name_mangled (struct gdbarch *gdbarch, int regnum) |
int | compile_register_name_demangle (struct gdbarch *gdbarch, const char *reg_name) |
gcc_type | convert_type (struct compile_c_instance *context, struct type *type) |
struct compile_instance * | new_compile_instance (struct gcc_c_context *fe) |
unsigned char * | generate_c_for_variable_locations (struct compile_c_instance *compiler, struct ui_file *stream, struct gdbarch *gdbarch, const struct block *block, CORE_ADDR pc) |
const char * | c_get_mode_for_size (int size) |
char * | c_get_range_decl_name (const struct dynamic_prop *prop) |
Variables | |
int | compile_debug |
gcc_c_oracle_function | gcc_convert_symbol |
gcc_c_symbol_address_function | gcc_symbol_address |
Definition at line 77 of file compile-internal.h.
Referenced by convert_array(), convert_bool(), convert_complex(), convert_enum(), convert_float(), convert_func(), convert_int(), convert_one_symbol(), convert_pointer(), convert_qualified(), convert_struct_or_union(), convert_symbol_bmsym(), convert_type_basic(), convert_void(), gcc_convert_symbol(), and gcc_symbol_address().
#define COMPILE_I_EXPR_PTR_TYPE "__gdb_expr_ptr_type" |
Definition at line 90 of file compile-internal.h.
Referenced by c_compute_program(), and get_out_value_type().
#define COMPILE_I_EXPR_VAL "__gdb_expr_val" |
Definition at line 89 of file compile-internal.h.
Referenced by c_compute_program(), and get_out_value_type().
#define COMPILE_I_PRINT_OUT_ARG "__gdb_out_param" |
Definition at line 88 of file compile-internal.h.
Referenced by add_code_header(), and c_compute_program().
#define COMPILE_I_PRINT_OUT_ARG_TYPE "void *" |
Definition at line 87 of file compile-internal.h.
Referenced by add_code_header().
#define COMPILE_I_SIMPLE_REGISTER_ARG_NAME "__regs" |
Definition at line 85 of file compile-internal.h.
Referenced by add_code_header(), pushf_register(), and pushf_register_address().
#define COMPILE_I_SIMPLE_REGISTER_DUMMY "_dummy" |
Definition at line 86 of file compile-internal.h.
Referenced by generate_register_struct(), and store_regs().
#define COMPILE_I_SIMPLE_REGISTER_STRUCT_TAG "__gdb_regs" |
Definition at line 84 of file compile-internal.h.
Referenced by add_code_header(), and generate_register_struct().
Definition at line 32 of file compile-c-support.c.
References _, and internal_error().
Referenced by c_compute_program(), do_compile_dwarf_expr_to_c(), and generate_register_struct().
char* c_get_range_decl_name | ( | const struct dynamic_prop * | prop | ) |
Definition at line 60 of file compile-c-support.c.
References host_address_to_string(), and xstrprintf().
Referenced by convert_array(), and generate_vla_size().
Definition at line 652 of file compile.c.
References _, error(), gdbarch_num_regs(), gdbarch_register_name(), and regnum.
Referenced by store_regs().
Definition at line 642 of file compile.c.
References gdbarch_register_name(), and xstrprintf().
Referenced by generate_register_struct(), pushf_register(), and pushf_register_address().
gcc_type convert_type | ( | struct compile_c_instance * | context, |
struct type * | type | ||
) |
Definition at line 379 of file compile-c-types.c.
References CHECK_TYPEDEF, convert_type_basic(), type_map_instance::gcc_type, insert_type(), type_map_instance::type, type, and compile_c_instance::type_map.
Referenced by convert_array(), convert_complex(), convert_func(), convert_one_symbol(), convert_pointer(), convert_qualified(), convert_struct_or_union(), and convert_symbol_bmsym().
unsigned char* generate_c_for_variable_locations | ( | struct compile_c_instance * | compiler, |
struct ui_file * | stream, | ||
struct gdbarch * | gdbarch, | ||
const struct block * | block, | ||
CORE_ADDR | pc | ||
) |
Definition at line 721 of file compile-c-symbols.c.
References BLOCK_FUNCTION, block_iterator_first(), block_iterator_next(), block_static_block(), BLOCK_SUPERBLOCK, discard_cleanups(), do_cleanups(), eq_symname(), gdbarch_num_regs(), generate_c_for_for_one_variable(), hash_symname(), make_cleanup(), make_cleanup_htab_delete(), symbol_seen(), xcalloc(), and xfree().
Referenced by c_compute_program().
struct compile_instance* new_compile_instance | ( | struct gcc_c_context * | fe | ) |
Definition at line 417 of file compile-c-types.c.
References compile_c_instance::base, delete_instance(), compile_instance::destroy, eq_type_map_instance(), compile_instance::fe, gcc_convert_symbol, gcc_symbol_address, compile_instance::gcc_target_options, hash_type_map_instance(), compile_c_instance::type_map, xcalloc(), and xfree().
Referenced by c_get_compile_context().
int compile_debug |
Definition at line 55 of file compile.c.
Referenced by _initialize_compile(), compile_object_load(), compile_to_object(), convert_symbol_sym(), gcc_convert_symbol(), gcc_symbol_address(), and setup_sections().
gcc_c_oracle_function gcc_convert_symbol |
Referenced by new_compile_instance().
gcc_c_symbol_address_function gcc_symbol_address |
Referenced by new_compile_instance().