GDB (xrefs)
|
#include "defs.h"
#include "compile-internal.h"
#include "compile.h"
#include "gdb-dlfcn.h"
#include "c-lang.h"
#include "macrotab.h"
#include "macroscope.h"
#include "regcache.h"
Go to the source code of this file.
Macros | |
#define | STR(x) #x |
#define | STRINGIFY(x) STR(x) |
Functions | |
const char * | c_get_mode_for_size (int size) |
char * | c_get_range_decl_name (const struct dynamic_prop *prop) |
static gcc_c_fe_context_function * | load_libcc (void) |
struct compile_instance * | c_get_compile_context (void) |
static void | print_one_macro (const char *name, const struct macro_definition *macro, struct macro_source_file *source, int line, void *user_data) |
static void | write_macro_definitions (const struct block *block, CORE_ADDR pc, struct ui_file *file) |
static void | add_code_header (enum compile_i_scope_types type, struct ui_file *buf) |
static void | add_code_footer (enum compile_i_scope_types type, struct ui_file *buf) |
static void | generate_register_struct (struct ui_file *stream, struct gdbarch *gdbarch, const unsigned char *registers_used) |
char * | c_compute_program (struct compile_instance *inst, const char *input, struct gdbarch *gdbarch, const struct block *expr_block, CORE_ADDR expr_pc) |
#define STR | ( | x | ) | #x |
Definition at line 67 of file compile-c-support.c.
#define STRINGIFY | ( | x | ) | STR(x) |
Definition at line 68 of file compile-c-support.c.
Referenced by load_libcc().
|
static |
Definition at line 223 of file compile-c-support.c.
References _, COMPILE_I_PRINT_ADDRESS_SCOPE, COMPILE_I_PRINT_VALUE_SCOPE, COMPILE_I_RAW_SCOPE, COMPILE_I_SIMPLE_SCOPE, fputs_unfiltered(), and gdb_assert_not_reached.
Referenced by c_compute_program().
|
static |
Definition at line 179 of file compile-c-support.c.
References _, COMPILE_I_PRINT_ADDRESS_SCOPE, COMPILE_I_PRINT_OUT_ARG, COMPILE_I_PRINT_OUT_ARG_TYPE, COMPILE_I_PRINT_VALUE_SCOPE, COMPILE_I_RAW_SCOPE, COMPILE_I_SIMPLE_REGISTER_ARG_NAME, COMPILE_I_SIMPLE_REGISTER_STRUCT_TAG, COMPILE_I_SIMPLE_SCOPE, fputs_unfiltered(), and gdb_assert_not_reached.
Referenced by c_compute_program().
char* c_compute_program | ( | struct compile_instance * | inst, |
const char * | input, | ||
struct gdbarch * | gdbarch, | ||
const struct block * | expr_block, | ||
CORE_ADDR | expr_pc | ||
) |
Definition at line 330 of file compile-c-support.c.
References add_code_footer(), add_code_header(), c_get_mode_for_size(), code, COMPILE_I_EXPR_PTR_TYPE, COMPILE_I_EXPR_VAL, COMPILE_I_PRINT_ADDRESS_SCOPE, COMPILE_I_PRINT_OUT_ARG, COMPILE_I_PRINT_VALUE_SCOPE, COMPILE_I_RAW_SCOPE, COMPILE_I_SIMPLE_SCOPE, do_cleanups(), fprintf_unfiltered(), fputs_unfiltered(), gdb_assert, generate_c_for_variable_locations(), generate_register_struct(), make_cleanup(), make_cleanup_ui_file_delete(), mem_fileopen(), compile_instance::scope, ui_file_put(), ui_file_write_for_put(), ui_file_xstrdup(), write_macro_definitions(), and xfree().
struct compile_instance* c_get_compile_context | ( | void | ) |
Definition at line 98 of file compile-c-support.c.
References _, error(), func, gdb_assert, load_libcc(), and new_compile_instance().
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().
|
static |
Definition at line 243 of file compile-c-support.c.
References c_get_mode_for_size(), check_typedef(), COMPILE_I_SIMPLE_REGISTER_DUMMY, COMPILE_I_SIMPLE_REGISTER_STRUCT_TAG, compile_register_name_mangled(), do_cleanups(), fprintf_filtered(), fprintf_unfiltered(), fputs_unfiltered(), gdbarch_num_regs(), make_cleanup(), register_type(), TYPE_CODE, TYPE_CODE_INT, TYPE_CODE_PTR, TYPE_LENGTH, TYPE_UNSIGNED, and xfree().
Referenced by c_compute_program().
|
static |
Definition at line 75 of file compile-c-support.c.
References _, error(), func, gdb_dlopen(), gdb_dlsym(), and STRINGIFY.
Referenced by c_get_compile_context().
|
static |
Definition at line 123 of file compile-c-support.c.
References macro_definition::argc, macro_definition::argv, fprintf_filtered(), fputs_filtered(), macro_definition::kind, macro_function_like, and macro_definition::replacement.
Referenced by write_macro_definitions().
|
static |
Definition at line 158 of file compile-c-support.c.
References default_macro_scope(), macro_scope::file, find_pc_line(), macro_scope::line, macro_for_each_in_scope(), print_one_macro(), sal_macro_scope(), macro_source_file::table, and user_macro_scope().
Referenced by c_compute_program().