|
GDB (xrefs)
|
#include "defs.h"#include "target.h"#include "gdbtypes.h"#include "command.h"#include "inferior.h"#include "valprint.h"#include "gdbcore.h"#include "observer.h"#include "filestuff.h"#include "objfiles.h"#include "auxv.h"#include "elf/common.h"#include <unistd.h>#include <fcntl.h>Go to the source code of this file.
Classes | |
| struct | auxv_info |
Macros | |
| #define | TAG(tag, text, kind) case tag: name = #tag; description = text; format = kind; break |
Variables | |
| static const struct inferior_data * | auxv_inferior_data |
| #define TAG | ( | tag, | |
| text, | |||
| kind | |||
| ) | case tag: name = #tag; description = text; format = kind; break |
Referenced by default_print_auxv_entry().
| void _initialize_auxv | ( | void | ) |
Definition at line 571 of file auxv.c.
References _, add_info(), auxv_inferior_data, auxv_inferior_data_cleanup(), info_auxv_command(), invalidate_auxv_cache(), invalidate_auxv_cache_inf(), observer_attach_executable_changed(), observer_attach_inferior_appeared(), and observer_attach_inferior_exit().
|
static |
Definition at line 319 of file auxv.c.
References auxv_inferior_data, auxv_info::data, and xfree().
Referenced by _initialize_auxv(), and invalidate_auxv_cache_inf().
| int default_auxv_parse | ( | struct target_ops * | ops, |
| gdb_byte ** | readptr, | ||
| gdb_byte * | endptr, | ||
| CORE_ADDR * | typep, | ||
| CORE_ADDR * | valp | ||
| ) |
Definition at line 258 of file auxv.c.
References extract_unsigned_integer(), gdbarch_byte_order(), gdbarch_ptr_bit(), TARGET_CHAR_BIT, and target_gdbarch().
Referenced by install_dummy_methods().
| void default_print_auxv_entry | ( | struct gdbarch * | gdbarch, |
| struct ui_file * | file, | ||
| CORE_ADDR | type, | ||
| CORE_ADDR | val | ||
| ) |
Definition at line 445 of file auxv.c.
References _, AUXV_FORMAT_DEC, AUXV_FORMAT_HEX, AUXV_FORMAT_STR, value_print_options::format, fprint_auxv_entry(), name, and TAG.
Referenced by fbsd_print_auxv_entry(), and gdbarch_alloc().
| void fprint_auxv_entry | ( | struct ui_file * | file, |
| const char * | name, | ||
| const char * | description, | ||
| enum auxv_format | format, | ||
| CORE_ADDR | type, | ||
| CORE_ADDR | val | ||
| ) |
Definition at line 413 of file auxv.c.
References value_print_options::addressprint, AUXV_FORMAT_DEC, AUXV_FORMAT_HEX, AUXV_FORMAT_STR, fprintf_filtered(), get_user_print_options(), name, paddress(), plongest(), target_gdbarch(), and val_print_string().
Referenced by default_print_auxv_entry(), and fbsd_print_auxv_entry().
| int fprint_target_auxv | ( | struct ui_file * | file, |
| struct target_ops * | ops | ||
| ) |
Definition at line 527 of file auxv.c.
References gdbarch::data, auxv_info::data, gdbarch_print_auxv_entry(), get_auxv_inferior_data(), auxv_info::length, target_auxv_parse(), target_gdbarch(), and type.
Referenced by info_auxv_command().
|
static |
Definition at line 353 of file auxv.c.
References auxv_inferior_data, current_inferior(), auxv_info::data, auxv_info::length, TARGET_OBJECT_AUXV, target_read_alloc(), and XCNEW.
Referenced by fprint_target_auxv(), and target_auxv_search().
|
static |
Definition at line 555 of file auxv.c.
References _, current_target, error(), fprint_target_auxv(), gdb_stdout, and target_has_stack.
Referenced by _initialize_auxv().
|
static |
Definition at line 343 of file auxv.c.
References current_inferior(), and invalidate_auxv_cache_inf().
Referenced by _initialize_auxv().
|
static |
Definition at line 335 of file auxv.c.
References auxv_inferior_data_cleanup().
Referenced by _initialize_auxv(), and invalidate_auxv_cache().
|
static |
Definition at line 83 of file auxv.c.
References BMSYMBOL_VALUE_ADDRESS, builtin_type::builtin_data_ptr, builtin_type(), extract_typed_address(), gdb_assert, lookup_minimal_symbol(), bound_minimal_symbol::minsym, MSYMBOL_SIZE, offset, target_gdbarch(), target_read_memory(), target_write_memory(), TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, and TYPE_LENGTH.
Referenced by memory_xfer_auxv().
| enum target_xfer_status memory_xfer_auxv | ( | struct target_ops * | ops, |
| enum target_object | object, | ||
| const char * | annex, | ||
| gdb_byte * | readbuf, | ||
| const gdb_byte * | writebuf, | ||
| ULONGEST | offset, | ||
| ULONGEST | len, | ||
| ULONGEST * | xfered_len | ||
| ) |
Definition at line 223 of file auxv.c.
References current_inferior(), gdb_assert, ld_so_xfer_auxv(), offset, procfs_xfer_auxv(), TARGET_OBJECT_AUXV, and TARGET_XFER_E_IO.
|
static |
Definition at line 43 of file auxv.c.
References gdb_open_cloexec(), inferior_ptid, offset, ptid_get_pid(), read(), SEEK_SET, TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, xfree(), and xstrprintf().
Referenced by memory_xfer_auxv().
| int target_auxv_parse | ( | struct target_ops * | ops, |
| gdb_byte ** | readptr, | ||
| gdb_byte * | endptr, | ||
| CORE_ADDR * | typep, | ||
| CORE_ADDR * | valp | ||
| ) |
Definition at line 286 of file auxv.c.
References current_target, gdbarch_auxv_parse(), gdbarch_auxv_parse_p(), target_gdbarch(), and target_ops::to_auxv_parse.
Referenced by fprint_target_auxv(), and target_auxv_search().
| int target_auxv_search | ( | struct target_ops * | ops, |
| CORE_ADDR | match, | ||
| CORE_ADDR * | valp | ||
| ) |
Definition at line 375 of file auxv.c.
References auxv_info::data, get_auxv_inferior_data(), auxv_info::length, target_auxv_parse(), and type.
Referenced by aarch64_linux_core_read_description(), adi_available(), arm_fbsd_read_description_auxv(), arm_linux_core_read_description(), arm_linux_read_description(), elf_gnu_ifunc_resolve_addr(), enable_break(), linux_displaced_step_location(), linux_is_uclinux(), linux_vsyscall_range_raw(), ppc_linux_get_hwcap(), ppc_process_record_op31(), read_program_header(), s390_core_read_description(), s390_read_description(), and svr4_exec_displacement().
|
static |
Definition at line 300 of file auxv.c.
Referenced by _initialize_auxv(), auxv_inferior_data_cleanup(), and get_auxv_inferior_data().
1.8.14