GDB (xrefs)
|
#include "defs.h"
#include "ui.h"
#include "ui-out.h"
#include "command.h"
#include "cli/cli-script.h"
#include "cli/cli-utils.h"
#include "cli/cli-option.h"
#include "completer.h"
#include "gdbcmd.h"
#include "compile.h"
#include "compile-internal.h"
#include "compile-object-load.h"
#include "compile-object-run.h"
#include "language.h"
#include "frame.h"
#include "source.h"
#include "block.h"
#include "arch-utils.h"
#include "gdbsupport/filestuff.h"
#include "target.h"
#include "osabi.h"
#include "gdbsupport/gdb_wait.h"
#include "valprint.h"
#include "gdbsupport/gdb_optional.h"
#include "gdbsupport/gdb_unlinker.h"
#include "gdbsupport/pathstuff.h"
#include "gdbsupport/scoped_ignore_signal.h"
#include "gdbsupport/buildargv.h"
Go to the source code of this file.
Classes | |
struct | symbol_error |
struct | type_map_instance |
struct | compile_options |
Macros | |
#define | TMP_PREFIX "/tmp/gdbobj-" |
#define | TEMPLATE TMP_PREFIX "XXXXXX" |
#define | FORWARD(OP, ...) (m_gcc_fe->ops->OP (m_gcc_fe, ##__VA_ARGS__)) |
Typedefs | |
using | compile_flag_option_def = gdb::option::flag_option_def<compile_options> |
Functions | |
static hashval_t | hash_type_map_instance (const void *p) |
static int | eq_type_map_instance (const void *a, const void *b) |
static hashval_t | hash_symbol_error (const void *a) |
static int | eq_symbol_error (const void *a, const void *b) |
static void | del_symbol_error (void *a) |
static void | show_compile_debug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static gdb::option::option_def_group | make_compile_options_def_group (compile_options *opts) |
static void | compile_file_command (const char *args, int from_tty) |
static void | compile_file_command_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
static void | compile_code_command (const char *args, int from_tty) |
static void | compile_code_command_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
void | compile_print_value (struct value *val, void *data_voidp) |
static void | compile_print_command (const char *arg, int from_tty) |
static void | do_rmdir (void *arg) |
static const char * | get_compile_file_tempdir (void) |
static compile_file_names | get_new_file_names () |
static const struct block * | get_expr_block_and_pc (CORE_ADDR *pc) |
static void | set_compile_args (const char *args, int from_tty, struct cmd_list_element *c) |
static void | show_compile_args (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static void | show_compile_gcc (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static const char * | get_selected_pc_producer_options (void) |
static void | filter_args (char **argv) |
static gdb_argv | get_args (const compile_instance *compiler, struct gdbarch *gdbarch) |
static void | print_callback (void *ignore, const char *message) |
static compile_file_names | compile_to_object (struct command_line *cmd, const char *cmd_string, enum compile_i_scope_types scope) |
static void | compile_command (const char *args, int from_tty) |
void | eval_compile_command (struct command_line *cmd, const char *cmd_string, enum compile_i_scope_types scope, void *scope_data) |
std::string | compile_register_name_mangled (struct gdbarch *gdbarch, int regnum) |
int | compile_register_name_demangle (struct gdbarch *gdbarch, const char *regname) |
void | _initialize_compile () |
Variables | |
static struct cmd_list_element * | compile_command_list |
bool | compile_debug |
static const gdb::option::option_def | compile_command_option_defs [] |
static std::string | compile_args |
static gdb_argv | compile_args_argv |
static std::string | compile_gcc |
cmd_list_element * | compile_cmd_element = nullptr |
#define TEMPLATE TMP_PREFIX "XXXXXX" |
#define TMP_PREFIX "/tmp/gdbobj-" |
Definition at line 53 of file compile.c.
Referenced by do_rmdir().
void _initialize_compile | ( | ) |
Definition at line 959 of file compile.c.
Referenced by initialize_all_files().
|
static |
Definition at line 340 of file compile.c.
References ui::async, compile_control, COMPILE_I_RAW_SCOPE, COMPILE_I_SIMPLE_SCOPE, current_ui, eval_compile_command(), execute_control_command_untraced(), get_command_line(), make_compile_options_def_group(), gdb::option::process_options(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_ERROR, and compile_options::raw.
Referenced by compile_command().
|
static |
Definition at line 368 of file compile.c.
References advance_to_expression_complete_word_point(), gdb::option::complete_options(), make_compile_options_def_group(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_ERROR, and symbol_completer().
|
static |
Definition at line 809 of file compile.c.
References compile_code_command().
|
static |
Definition at line 288 of file compile.c.
References ui::async, COMPILE_I_RAW_SCOPE, COMPILE_I_SIMPLE_SCOPE, current_ui, eval_compile_command(), make_compile_options_def_group(), gdb::option::process_options(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_ERROR, and compile_options::raw.
|
static |
Definition at line 320 of file compile.c.
References advance_to_filename_complete_word_point(), gdb::option::complete_options(), filename_completer(), make_compile_options_def_group(), and gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_ERROR.
|
static |
Definition at line 398 of file compile.c.
References ui::async, compile_control, COMPILE_I_PRINT_ADDRESS_SCOPE, current_ui, eval_compile_command(), execute_control_command_untraced(), get_command_line(), get_user_print_options(), make_value_print_options_def_group(), print_command_parse_format(), gdb::option::process_options(), and gdb::option::PROCESS_OPTIONS_REQUIRE_DELIMITER.
void compile_print_value | ( | struct value * | val, |
void * | data_voidp ) |
Definition at line 385 of file compile.c.
References print_value().
Referenced by do_module_cleanup().
int compile_register_name_demangle | ( | struct gdbarch * | gdbarch, |
const char * | regname ) |
Definition at line 857 of file compile.c.
References gdbarch_num_regs(), gdbarch_register_name(), and regnum.
Referenced by store_regs().
std::string compile_register_name_mangled | ( | struct gdbarch * | gdbarch, |
int | regnum ) |
Definition at line 847 of file compile.c.
References gdbarch_register_name(), and regnum.
Referenced by generate_register_struct(), pushf_register(), and pushf_register_address().
|
static |
Definition at line 670 of file compile.c.
References command_line::body_list_0, string_file::c_str(), code, compile_debug, compile_gcc, language_defn::compute_program(), current_language, gdb_printf(), gdb_stdlog, gdbarch_gnu_triplet_regexp(), gdbarch_osabi(), get_args(), language_defn::get_compile_instance(), get_current_arch(), get_expr_block_and_pc(), get_frame_address_in_block(), get_new_file_names(), get_selected_frame(), command_line::line, language_defn::name(), command_line::next, compile_file_names::object_file(), osabi_triplet_regexp(), print_callback(), ui_file::puts(), compile_file_names::source_file(), and target_has_execution().
Referenced by eval_compile_command().
|
static |
Definition at line 135 of file compile.c.
References symbol_error::message, and xfree().
|
static |
Definition at line 432 of file compile.c.
References TMP_PREFIX.
Referenced by get_compile_file_tempdir().
|
static |
Definition at line 124 of file compile.c.
References symbol_error::sym.
|
static |
Definition at line 103 of file compile.c.
References type_map_instance::type.
void eval_compile_command | ( | struct command_line * | cmd, |
const char * | cmd_string, | ||
enum compile_i_scope_types | scope, | ||
void * | scope_data ) |
Definition at line 819 of file compile.c.
References COMPILE_I_PRINT_ADDRESS_SCOPE, COMPILE_I_PRINT_VALUE_SCOPE, compile_object_load(), compile_object_run(), compile_to_object(), eval_compile_command(), compile_file_names::object_file(), command_line::scope, command_line::scope_data, and compile_file_names::source_file().
Referenced by compile_code_command(), compile_file_command(), compile_print_command(), eval_compile_command(), and execute_control_command_1().
|
static |
|
static |
Definition at line 629 of file compile.c.
References compile_args_argv, filter_args(), compile_instance::gcc_target_options(), gdbarch_gcc_target_options(), and get_selected_pc_producer_options().
Referenced by compile_to_object().
|
static |
Definition at line 450 of file compile.c.
References do_rmdir(), and TEMPLATE.
Referenced by get_new_file_names().
|
static |
Definition at line 490 of file compile.c.
References compunit_symtab::blockvector(), symtab::compunit(), block::entry_pc(), get_current_source_symtab_and_line(), get_selected_block(), symtab_and_line::pc, blockvector::static_block(), and symtab_and_line::symtab.
Referenced by compile_to_object().
|
static |
Definition at line 474 of file compile.c.
References get_compile_file_tempdir().
Referenced by compile_to_object().
|
static |
Definition at line 570 of file compile.c.
References find_pc_compunit_symtab(), get_frame_pc(), get_selected_frame(), and symtab_and_line::pc.
Referenced by get_args().
|
static |
Definition at line 114 of file compile.c.
References symbol_error::sym.
|
static |
Definition at line 93 of file compile.c.
References type_map_instance::type.
|
static |
Definition at line 278 of file compile.c.
References compile_command_option_defs.
Referenced by compile_code_command(), compile_code_command_completer(), compile_file_command(), and compile_file_command_completer().
|
static |
Definition at line 660 of file compile.c.
References gdb_puts(), and gdb_stderr.
Referenced by compile_to_object().
|
static |
Definition at line 534 of file compile.c.
References compile_args, and compile_args_argv.
|
static |
Definition at line 542 of file compile.c.
References gdb_printf().
|
static |
Definition at line 246 of file compile.c.
References gdb_printf().
|
static |
Definition at line 556 of file compile.c.
References gdb_printf().
|
static |
Definition at line 511 of file compile.c.
Referenced by set_compile_args().
|
static |
Definition at line 529 of file compile.c.
Referenced by get_args(), and set_compile_args().
cmd_list_element* compile_cmd_element = nullptr |
Definition at line 955 of file compile.c.
Referenced by process_next_line().
|
static |
|
static |
Definition at line 264 of file compile.c.
Referenced by make_compile_options_def_group().
bool compile_debug |
Definition at line 61 of file compile.c.
Referenced by compile_object_load(), compile_to_object(), convert_symbol_sym(), convert_symbol_sym(), gcc_convert_symbol(), gcc_cplus_convert_symbol(), gcc_cplus_symbol_address(), gcc_symbol_address(), and setup_sections_data::setup_one_section().
|
static |
Definition at line 551 of file compile.c.
Referenced by compile_to_object().