GDB (xrefs)
|
#include "defs.h"
#include "compile-object-load.h"
#include "compile-internal.h"
#include "command.h"
#include "objfiles.h"
#include "gdbcore.h"
#include "readline/tilde.h"
#include "bfdlink.h"
#include "gdbcmd.h"
#include "regcache.h"
#include "inferior.h"
#include "gdbthread.h"
#include "compile.h"
#include "block.h"
#include "arch-utils.h"
#include <algorithm>
Go to the source code of this file.
Classes | |
struct | setup_sections_data |
struct | link_hash_table_cleanup_data |
Functions | |
static void | link_callbacks_multiple_definition (struct bfd_link_info *link_info, struct bfd_link_hash_entry *h, bfd *nbfd, asection *nsec, bfd_vma nval) |
static void | link_callbacks_warning (struct bfd_link_info *link_info, const char *xwarning, const char *symbol, bfd *abfd, asection *section, bfd_vma address) |
static void | link_callbacks_undefined_symbol (struct bfd_link_info *link_info, const char *name, bfd *abfd, asection *section, bfd_vma address, bfd_boolean is_fatal) |
static void | link_callbacks_reloc_overflow (struct bfd_link_info *link_info, struct bfd_link_hash_entry *entry, const char *name, const char *reloc_name, bfd_vma addend, bfd *abfd, asection *section, bfd_vma address) |
static void | link_callbacks_reloc_dangerous (struct bfd_link_info *link_info, const char *message, bfd *abfd, asection *section, bfd_vma address) |
static void | link_callbacks_unattached_reloc (struct bfd_link_info *link_info, const char *name, bfd *abfd, asection *section, bfd_vma address) |
static void | link_callbacks_einfo (const char *fmt,...) ATTRIBUTE_PRINTF(1 |
static void | copy_sections (bfd *abfd, asection *sect, void *data) |
static struct type * | get_out_value_type (struct symbol *func_sym, struct objfile *objfile, enum compile_i_scope_types scope) |
static struct type * | get_regs_type (struct symbol *func_sym, struct objfile *objfile) |
static void | store_regs (struct type *regs_type, CORE_ADDR regs_base) |
compile_module_up | compile_object_load (const compile_file_names &file_names, enum compile_i_scope_types scope, void *scope_data) |
Variables | |
static const struct bfd_link_callbacks | link_callbacks |
compile_module_up compile_object_load | ( | const compile_file_names & | file_names, |
enum compile_i_scope_types | scope, | ||
void * | scope_data ) |
Definition at line 602 of file compile-object-load.c.
References munmap_list::add(), builtin_type(), builtin_type::builtin_void, check_typedef(), compile_debug, COMPILE_I_PRINT_ADDRESS_SCOPE, COMPILE_I_PRINT_VALUE_SCOPE, COMPILE_I_RAW_SCOPE, COMPILE_I_SIMPLE_SCOPE, copy_sections(), gdb_bfd_errmsg(), gdb_bfd_open(), GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE, gdb_printf(), gdb_stdlog, gdbarch_infcall_mmap(), get(), get_out_value_type(), get_regs_type(), GLOBAL_BLOCK, gnu_ifunc_resolve_addr, gnutarget, type::length(), lookup_global_symbol_from_objfile(), lookup_minimal_symbol(), bound_minimal_symbol::minsym, mst_bss, mst_data, mst_text, mst_text_gnu_ifunc, mst_unknown, setup_sections_data::munmap_list, compile_file_names::object_file(), objfile::objfile(), objfile_name(), objfile::objfile_obstack, paddress(), setup_sections_data::setup_one_section(), compile_file_names::source_file(), store_regs(), block_symbol::symbol, symbol_file_add_from_bfd(), target_gdbarch(), minimal_symbol::type(), symbol::type(), types_deeply_equal(), bound_minimal_symbol::value_address(), and VAR_DOMAIN.
Referenced by eval_compile_command().
|
static |
Definition at line 334 of file compile-object-load.c.
References link_hash_table_cleanup_data::abfd, link_callbacks, paddress(), target_gdbarch(), target_write_memory(), and xmalloc().
Referenced by compile_object_load().
|
static |
Definition at line 408 of file compile-object-load.c.
References blockvector::block(), block_lookup_symbol(), compunit_symtab::blockvector(), check_typedef(), type::code(), COMPILE_I_EXPR_PTR_TYPE, COMPILE_I_EXPR_VAL, COMPILE_I_PRINT_ADDRESS_SCOPE, symtab::compunit(), block::function(), block::function_block(), blockvector::global_block(), blockvector::num_blocks(), objfile_name(), block::scope(), SEARCH_NAME, blockvector::static_block(), block::superblock(), symbol_matches_search_name(), symbol::symtab, type::target_type(), symbol::type(), types_deeply_equal(), and VAR_DOMAIN.
Referenced by compile_object_load().
Definition at line 517 of file compile-object-load.c.
References check_typedef(), type::code(), objfile_name(), type::target_type(), and symbol::type().
Referenced by compile_object_load().
|
static |
Definition at line 274 of file compile-object-load.c.
|
static |
Definition at line 195 of file compile-object-load.c.
|
static |
Definition at line 245 of file compile-object-load.c.
|
static |
Definition at line 234 of file compile-object-load.c.
|
static |
Definition at line 258 of file compile-object-load.c.
References name.
|
static |
Definition at line 222 of file compile-object-load.c.
References name.
|
static |
Definition at line 210 of file compile-object-load.c.
|
static |
Definition at line 547 of file compile-object-load.c.
References field::bitsize(), check_typedef(), type::code(), COMPILE_I_SIMPLE_REGISTER_DUMMY, compile_register_name_demangle(), value::contents(), value::entirely_available(), type::field(), get_current_frame(), type::length(), field::loc_bitpos(), field::name(), type::num_fields(), value::optimized_out(), paddress(), reg_offset, regnum, target_gdbarch(), target_write_memory(), field::type(), and value_from_register().
Referenced by compile_object_load().
|
static |
Definition at line 289 of file compile-object-load.c.
Referenced by copy_sections().