|
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"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, 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) |
| static struct nto_inferior_data * | nto_new_inferior_data (void) |
| static void | nto_inferior_data_cleanup (struct inferior *const inf, void *const dat) |
| struct nto_inferior_data * | nto_inferior_data (struct inferior *const inferior) |
| void | _initialize_nto_tdep (void) |
Variables | |
| static char | default_nto_target [] = "" |
| struct nto_target_ops | current_nto_target |
| static const struct inferior_data * | nto_inferior_data_reg |
| static const char * | nto_thread_state_str [] |
| #define PATH_FMT "%s/lib:%s/usr/lib:%s/usr/photon/lib:%s/usr/photon/dll:%s/lib/dll" |
Referenced by nto_find_and_open_solib().
| #define QNX_INFO_SECT_NAME "QNX_info" |
Definition at line 36 of file nto-tdep.c.
Referenced by nto_sniff_abi_note_section().
| #define QNX_NOTE_NAME "QNX" |
Definition at line 35 of file nto-tdep.c.
Referenced by nto_sniff_abi_note_section().
| void _initialize_nto_tdep | ( | void | ) |
Definition at line 541 of file nto-tdep.c.
References nto_inferior_data_cleanup(), and nto_inferior_data_reg.
|
static |
Definition at line 262 of file nto-tdep.c.
Referenced by nto_relocate_section_addresses().
Definition at line 243 of file nto-tdep.c.
References lm_info_svr4::l_addr, and so_list::lm_info.
Referenced by dsbt_current_sos(), frv_current_sos(), lm_info_read(), nto_relocate_section_addresses(), and target_translate_tls_address().
| void nto_dummy_supply_regset | ( | struct regcache * | regcache, |
| char * | regs | ||
| ) |
Definition at line 303 of file nto-tdep.c.
Referenced by init_i386nto_ops().
| enum gdb_osabi nto_elf_osabi_sniffer | ( | bfd * | abfd | ) |
Definition at line 344 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 381 of file nto-tdep.c.
References get_nto_thread_info(), nto_thread_state_str, thread_info::priv, and nto_thread_info::state.
Referenced by init_procfs_targets().
| int nto_find_and_open_solib | ( | const char * | solib, |
| unsigned | o_flags, | ||
| char ** | temp_pathname | ||
| ) |
Definition at line 90 of file nto-tdep.c.
References gdb_realpath(), gdbarch_bfd_arch_info(), gdbarch_byte_order(), nto_target(), openp(), OPF_RETURN_REALPATH, OPF_TRY_CWD_FIRST, PATH_FMT, target_gdbarch(), and xsnprintf().
Referenced by i386nto_init_abi().
| int nto_in_dynsym_resolve_code | ( | CORE_ADDR | pc | ) |
Definition at line 295 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 522 of file nto-tdep.c.
References current_inferior(), gdb_assert, inferior::inferior(), nto_inferior_data_reg, and nto_new_inferior_data().
Referenced by procfs_stopped_by_watchpoint(), and procfs_wait().
|
static |
Definition at line 513 of file nto-tdep.c.
References xfree().
Referenced by _initialize_nto_tdep().
| void nto_init_solib_absolute_prefix | ( | void | ) |
Definition at line 154 of file nto-tdep.c.
References execute_command(), gdbarch_bfd_arch_info(), gdbarch_byte_order(), nto_target(), target_gdbarch(), and xsnprintf().
Referenced by do_attach().
| void nto_initialize_signals | ( | void | ) |
Definition at line 394 of file nto-tdep.c.
References gdb_signal_from_name(), 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 74 of file nto-tdep.c.
References CPUTYPE_ARM, CPUTYPE_MIPS, CPUTYPE_PPC, CPUTYPE_SH, CPUTYPE_UNKNOWN, and CPUTYPE_X86.
Referenced by procfs_open_1().
|
static |
| char** nto_parse_redirection | ( | char * | pargv[], |
| const char ** | pin, | ||
| const char ** | pout, | ||
| const char ** | perr | ||
| ) |
Definition at line 189 of file nto-tdep.c.
References gdb::argv, err, pin, and XCNEWVEC.
Referenced by procfs_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 418 of file nto-tdep.c.
References extract_unsigned_integer(), gdbarch_byte_order(), memset(), target_gdbarch(), and target_read_memory().
Referenced by procfs_xfer_partial().
| void nto_relocate_section_addresses | ( | struct so_list * | so, |
| struct target_section * | sec | ||
| ) |
Definition at line 280 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 309 of file nto-tdep.c.
References GDB_OSABI_QNXNTO, name, QNX_INFO_SECT_NAME, QNX_NOTE_NAME, XDELETEVEC, and XNEWVEC.
Referenced by nto_elf_osabi_sniffer().
|
static |
Definition at line 55 of file nto-tdep.c.
References default_nto_target.
Referenced by nto_find_and_open_solib(), and nto_init_solib_absolute_prefix().
Definition at line 251 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 50 of file nto-tdep.c.
|
static |
Definition at line 47 of file nto-tdep.c.
Referenced by nto_target().
|
static |
Definition at line 52 of file nto-tdep.c.
Referenced by _initialize_nto_tdep(), and nto_inferior_data().
|
static |
Definition at line 355 of file nto-tdep.c.
Referenced by nto_extra_thread_info().
1.8.14