GDB (xrefs)
Classes | Macros | Functions | Variables
compile-internal.h File Reference
#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_instancenew_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
 

Macro Definition Documentation

#define C_CTX (   I)    ((struct gcc_c_context *) ((I)->base.fe))
#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().

Function Documentation

const char* c_get_mode_for_size ( int  size)

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().

int compile_register_name_demangle ( struct gdbarch gdbarch,
const char *  reg_name 
)

Definition at line 652 of file compile.c.

References _, error(), gdbarch_num_regs(), gdbarch_register_name(), and regnum.

Referenced by store_regs().

char* compile_register_name_mangled ( struct gdbarch gdbarch,
int  regnum 
)
gcc_type convert_type ( struct compile_c_instance context,
struct type type 
)
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 
)
struct compile_instance* new_compile_instance ( struct gcc_c_context *  fe)

Variable Documentation

int compile_debug
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().