GDB (xrefs)
|
#include "defs.h"
#include <sys/stat.h>
#include "nto-tdep.h"
#include "top.h"
#include "inferior.h"
#include "infrun.h"
#include "gdbarch.h"
#include "bfd.h"
#include "elf-bfd.h"
#include "solib-svr4.h"
#include "gdbcore.h"
#include "objfiles.h"
#include "source.h"
#include "gdbsupport/pathstuff.h"
Go to the source code of this file.
Macros | |
#define | QNX_NOTE_NAME "QNX" |
#define | QNX_INFO_SECT_NAME "QNX_info" |
#define | PATH_FMT "%s/lib:%s/usr/lib:%s/usr/photon/lib:%s/usr/photon/dll:%s/lib/dll" |
Functions | |
static char * | nto_target (void) |
int | nto_map_arch_to_cputype (const char *arch) |
int | nto_find_and_open_solib (const char *solib, unsigned o_flags, gdb::unique_xmalloc_ptr< char > *temp_pathname) |
void | nto_init_solib_absolute_prefix (void) |
char ** | nto_parse_redirection (char *pargv[], const char **pin, const char **pout, const char **perr) |
static CORE_ADDR | lm_addr (struct so_list *so) |
static CORE_ADDR | nto_truncate_ptr (CORE_ADDR addr) |
static Elf_Internal_Phdr * | find_load_phdr (bfd *abfd) |
void | nto_relocate_section_addresses (struct so_list *so, struct target_section *sec) |
int | nto_in_dynsym_resolve_code (CORE_ADDR pc) |
void | nto_dummy_supply_regset (struct regcache *regcache, char *regs) |
static void | nto_sniff_abi_note_section (bfd *abfd, asection *sect, void *obj) |
enum gdb_osabi | nto_elf_osabi_sniffer (bfd *abfd) |
const char * | nto_extra_thread_info (struct target_ops *self, struct thread_info *ti) |
void | nto_initialize_signals (void) |
LONGEST | nto_read_auxv_from_initial_stack (CORE_ADDR initial_stack, gdb_byte *readbuf, LONGEST len, size_t sizeof_auxv_t) |
struct nto_inferior_data * | nto_inferior_data (struct inferior *const inferior) |
Variables | |
static char | default_nto_target [] = "" |
struct nto_target_ops | current_nto_target |
static const registry< inferior >::key< struct nto_inferior_data > | nto_inferior_data_reg |
static const char *const | nto_thread_state_str [] |
#define PATH_FMT "%s/lib:%s/usr/lib:%s/usr/photon/lib:%s/usr/photon/dll:%s/lib/dll" |
#define QNX_INFO_SECT_NAME "QNX_info" |
Definition at line 38 of file nto-tdep.c.
Referenced by nto_sniff_abi_note_section().
#define QNX_NOTE_NAME "QNX" |
Definition at line 37 of file nto-tdep.c.
Referenced by nto_sniff_abi_note_section().
|
static |
Definition at line 265 of file nto-tdep.c.
Referenced by nto_relocate_section_addresses().
|
static |
Definition at line 246 of file nto-tdep.c.
References lm_info_svr4::l_addr, and so_list::lm_info.
Referenced by aarch64_fbsd_get_thread_local_address(), amd64fbsd_get_thread_local_address(), arm_fbsd_get_thread_local_address(), dsbt_current_sos(), fbsd_get_thread_local_address(), fbsd_get_tls_index(), frv_current_sos(), gdbarch_get_thread_local_address(), i386fbsd_get_thread_local_address(), lm_info_read(), nto_relocate_section_addresses(), ppcfbsd_get_thread_local_address(), riscv_fbsd_get_thread_local_address(), and target_translate_tls_address().
void nto_dummy_supply_regset | ( | struct regcache * | regcache, |
char * | regs ) |
Definition at line 306 of file nto-tdep.c.
Referenced by init_i386nto_ops().
enum gdb_osabi nto_elf_osabi_sniffer | ( | bfd * | abfd | ) |
Definition at line 347 of file nto-tdep.c.
References GDB_OSABI_UNKNOWN, and nto_sniff_abi_note_section().
Referenced by _initialize_i386nto_tdep().
const char * nto_extra_thread_info | ( | struct target_ops * | self, |
struct thread_info * | ti ) |
Definition at line 384 of file nto-tdep.c.
References get_nto_thread_info(), nto_thread_state_str, thread_info::priv, and nto_thread_info::state.
int nto_find_and_open_solib | ( | const char * | solib, |
unsigned | o_flags, | ||
gdb::unique_xmalloc_ptr< char > * | temp_pathname ) |
Definition at line 93 of file nto-tdep.c.
References gdbarch_bfd_arch_info(), gdbarch_byte_order(), nto_target(), openp(), OPF_RETURN_REALPATH, OPF_TRY_CWD_FIRST, PATH_FMT, and target_gdbarch().
Referenced by i386nto_init_abi().
int nto_in_dynsym_resolve_code | ( | CORE_ADDR | pc | ) |
Definition at line 298 of file nto-tdep.c.
References in_plt_section().
Referenced by i386nto_init_abi().
struct nto_inferior_data * nto_inferior_data | ( | struct inferior *const | inferior | ) |
Definition at line 506 of file nto-tdep.c.
References current_inferior(), registry< T >::get(), inferior::inferior(), and nto_inferior_data_reg.
Referenced by nto_procfs_target::stopped_by_watchpoint(), and nto_procfs_target::wait().
void nto_init_solib_absolute_prefix | ( | void | ) |
Definition at line 157 of file nto-tdep.c.
References execute_command(), gdbarch_bfd_arch_info(), gdbarch_byte_order(), nto_target(), and target_gdbarch().
Referenced by do_attach().
void nto_initialize_signals | ( | void | ) |
Definition at line 397 of file nto-tdep.c.
References signal_pass_update(), signal_print_update(), and signal_stop_update().
Referenced by i386nto_init_abi().
int nto_map_arch_to_cputype | ( | const char * | arch | ) |
Definition at line 77 of file nto-tdep.c.
References CPUTYPE_ARM, CPUTYPE_MIPS, CPUTYPE_PPC, CPUTYPE_SH, CPUTYPE_UNKNOWN, and CPUTYPE_X86.
Referenced by nto_procfs_target::open().
char ** nto_parse_redirection | ( | char * | pargv[], |
const char ** | pin, | ||
const char ** | pout, | ||
const char ** | perr ) |
Definition at line 192 of file nto-tdep.c.
Referenced by nto_procfs_target::create_inferior().
LONGEST nto_read_auxv_from_initial_stack | ( | CORE_ADDR | initial_stack, |
gdb_byte * | readbuf, | ||
LONGEST | len, | ||
size_t | sizeof_auxv_t ) |
Definition at line 421 of file nto-tdep.c.
References extract_unsigned_integer(), gdbarch_byte_order(), target_gdbarch(), and target_read_memory().
Referenced by nto_procfs_target::xfer_partial().
void nto_relocate_section_addresses | ( | struct so_list * | so, |
struct target_section * | sec ) |
Definition at line 283 of file nto-tdep.c.
References target_section::addr, target_section::endaddr, find_load_phdr(), lm_addr(), nto_truncate_ptr(), and target_section::the_bfd_section.
Referenced by i386nto_init_abi().
|
static |
Definition at line 312 of file nto-tdep.c.
References GDB_OSABI_QNXNTO, name, QNX_INFO_SECT_NAME, and QNX_NOTE_NAME.
Referenced by nto_elf_osabi_sniffer().
|
static |
Definition at line 58 of file nto-tdep.c.
References default_nto_target.
Referenced by nto_find_and_open_solib(), and nto_init_solib_absolute_prefix().
|
static |
Definition at line 254 of file nto-tdep.c.
References gdbarch_ptr_bit(), and target_gdbarch().
Referenced by nto_relocate_section_addresses().
struct nto_target_ops current_nto_target |
Definition at line 52 of file nto-tdep.c.
|
static |
Definition at line 49 of file nto-tdep.c.
Referenced by nto_target().
|
static |
Definition at line 55 of file nto-tdep.c.
Referenced by nto_inferior_data().
|
static |
Definition at line 358 of file nto-tdep.c.
Referenced by nto_extra_thread_info().