GDB (xrefs)
Classes | Macros | Functions | Variables
compile-internal.h File Reference
#include "hashtab.h"
#include "gcc-c-interface.h"
#include "common/enum-flags.h"

Go to the source code of this file.

Classes

struct  compile_instance
 
struct  compile_c_instance
 
class  compile_file_names
 

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

 DEF_ENUM_FLAGS_TYPE (enum gcc_qualifiers, gcc_qualifiers_flags)
 
std::string 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, string_file &stream, struct gdbarch *gdbarch, const struct block *block, CORE_ADDR pc)
 
const char * c_get_mode_for_size (int size)
 
std::string 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

◆ C_CTX

#define C_CTX (   I)    ((struct gcc_c_context *) ((I)->base.fe))

◆ COMPILE_I_EXPR_PTR_TYPE

#define COMPILE_I_EXPR_PTR_TYPE   "__gdb_expr_ptr_type"

Definition at line 94 of file compile-internal.h.

Referenced by c_compute_program(), and get_out_value_type().

◆ COMPILE_I_EXPR_VAL

#define COMPILE_I_EXPR_VAL   "__gdb_expr_val"

Definition at line 93 of file compile-internal.h.

Referenced by c_compute_program(), and get_out_value_type().

◆ COMPILE_I_PRINT_OUT_ARG

#define COMPILE_I_PRINT_OUT_ARG   "__gdb_out_param"

Definition at line 92 of file compile-internal.h.

Referenced by add_code_header(), and c_compute_program().

◆ COMPILE_I_PRINT_OUT_ARG_TYPE

#define COMPILE_I_PRINT_OUT_ARG_TYPE   "void *"

Definition at line 91 of file compile-internal.h.

Referenced by add_code_header().

◆ COMPILE_I_SIMPLE_REGISTER_ARG_NAME

#define COMPILE_I_SIMPLE_REGISTER_ARG_NAME   "__regs"

Definition at line 89 of file compile-internal.h.

Referenced by add_code_header(), pushf_register(), and pushf_register_address().

◆ COMPILE_I_SIMPLE_REGISTER_DUMMY

#define COMPILE_I_SIMPLE_REGISTER_DUMMY   "_dummy"

Definition at line 90 of file compile-internal.h.

Referenced by generate_register_struct(), and store_regs().

◆ COMPILE_I_SIMPLE_REGISTER_STRUCT_TAG

#define COMPILE_I_SIMPLE_REGISTER_STRUCT_TAG   "__gdb_regs"

Definition at line 88 of file compile-internal.h.

Referenced by add_code_header(), and generate_register_struct().

Function Documentation

◆ c_get_mode_for_size()

const char* c_get_mode_for_size ( int  size)

◆ c_get_range_decl_name()

std::string c_get_range_decl_name ( const struct dynamic_prop prop)

Definition at line 62 of file compile-c-support.c.

References host_address_to_string, and string_printf().

Referenced by convert_array(), and generate_vla_size().

◆ compile_register_name_demangle()

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

Definition at line 661 of file compile.c.

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

Referenced by store_regs().

◆ compile_register_name_mangled()

std::string compile_register_name_mangled ( struct gdbarch gdbarch,
int  regnum 
)

◆ convert_type()

gcc_type convert_type ( struct compile_c_instance context,
struct type type 
)

◆ DEF_ENUM_FLAGS_TYPE()

DEF_ENUM_FLAGS_TYPE ( enum  gcc_qualifiers,
gcc_qualifiers_flags   
)

◆ generate_c_for_variable_locations()

unsigned char* generate_c_for_variable_locations ( struct compile_c_instance compiler,
string_file stream,
struct gdbarch gdbarch,
const struct block block,
CORE_ADDR  pc 
)

◆ new_compile_instance()

struct compile_instance* new_compile_instance ( struct gcc_c_context *  fe)

Variable Documentation

◆ compile_debug

int compile_debug

◆ gcc_convert_symbol

gcc_c_oracle_function gcc_convert_symbol

Referenced by new_compile_instance().

◆ gcc_symbol_address

gcc_c_symbol_address_function gcc_symbol_address

Referenced by new_compile_instance().