GDB (xrefs)
|
#include "defs.h"
#include "auxv.h"
#include "solib-svr4.h"
#include "netbsd-tdep.h"
#include "gdbarch.h"
#include "objfiles.h"
#include "xml-syscall.h"
Go to the source code of this file.
Classes | |
struct | nbsd_gdbarch_data |
Macros | |
#define | KINFO_VME_PROT_READ 0x00000001 |
#define | KINFO_VME_PROT_WRITE 0x00000002 |
#define | KINFO_VME_PROT_EXEC 0x00000004 |
#define | KINFO_VME_FLAG_COW 0x00000001 |
#define | KINFO_VME_FLAG_NEEDS_COPY 0x00000002 |
#define | KINFO_VME_FLAG_NOCOREDUMP 0x00000004 |
#define | KINFO_VME_FLAG_PAGEABLE 0x00000008 |
#define | KINFO_VME_FLAG_GROWS_UP 0x00000010 |
#define | KINFO_VME_FLAG_GROWS_DOWN 0x00000020 |
Enumerations | |
enum | { NBSD_SIGHUP = 1 , NBSD_SIGINT = 2 , NBSD_SIGQUIT = 3 , NBSD_SIGILL = 4 , NBSD_SIGTRAP = 5 , NBSD_SIGABRT = 6 , NBSD_SIGEMT = 7 , NBSD_SIGFPE = 8 , NBSD_SIGKILL = 9 , NBSD_SIGBUS = 10 , NBSD_SIGSEGV = 11 , NBSD_SIGSYS = 12 , NBSD_SIGPIPE = 13 , NBSD_SIGALRM = 14 , NBSD_SIGTERM = 15 , NBSD_SIGURG = 16 , NBSD_SIGSTOP = 17 , NBSD_SIGTSTP = 18 , NBSD_SIGCONT = 19 , NBSD_SIGCHLD = 20 , NBSD_SIGTTIN = 21 , NBSD_SIGTTOU = 22 , NBSD_SIGIO = 23 , NBSD_SIGXCPU = 24 , NBSD_SIGXFSZ = 25 , NBSD_SIGVTALRM = 26 , NBSD_SIGPROF = 27 , NBSD_SIGWINCH = 28 , NBSD_SIGINFO = 29 , NBSD_SIGUSR1 = 30 , NBSD_SIGUSR2 = 31 , NBSD_SIGPWR = 32 , NBSD_SIGRTMIN = 33 , NBSD_SIGRTMAX = 63 } |
Functions | |
int | nbsd_pc_in_sigtramp (CORE_ADDR pc, const char *func_name) |
static enum gdb_signal | nbsd_gdb_signal_from_target (struct gdbarch *gdbarch, int signal) |
static int | nbsd_gdb_signal_to_target (struct gdbarch *gdbarch, enum gdb_signal signal) |
static CORE_ADDR | nbsd_skip_solib_resolver (struct gdbarch *gdbarch, CORE_ADDR pc) |
static struct nbsd_gdbarch_data * | get_nbsd_gdbarch_data (struct gdbarch *gdbarch) |
static struct type * | nbsd_get_siginfo_type (struct gdbarch *gdbarch) |
void | nbsd_info_proc_mappings_header (int addr_bit) |
static const char * | nbsd_vm_map_entry_flags (int kve_flags, int kve_protection) |
void | nbsd_info_proc_mappings_entry (int addr_bit, ULONGEST kve_start, ULONGEST kve_end, ULONGEST kve_offset, int kve_flags, int kve_protection, const char *kve_path) |
static LONGEST | nbsd_get_syscall_number (struct gdbarch *gdbarch, thread_info *thread) |
void | nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) |
Variables | |
static const registry< gdbarch >::key< nbsd_gdbarch_data > | nbsd_gdbarch_data_handle |
#define KINFO_VME_FLAG_COW 0x00000001 |
Definition at line 40 of file netbsd-tdep.c.
Referenced by nbsd_vm_map_entry_flags().
#define KINFO_VME_FLAG_GROWS_DOWN 0x00000020 |
Definition at line 45 of file netbsd-tdep.c.
Referenced by nbsd_vm_map_entry_flags().
#define KINFO_VME_FLAG_GROWS_UP 0x00000010 |
Definition at line 44 of file netbsd-tdep.c.
Referenced by nbsd_vm_map_entry_flags().
#define KINFO_VME_FLAG_NEEDS_COPY 0x00000002 |
Definition at line 41 of file netbsd-tdep.c.
Referenced by nbsd_vm_map_entry_flags().
#define KINFO_VME_FLAG_NOCOREDUMP 0x00000004 |
Definition at line 42 of file netbsd-tdep.c.
#define KINFO_VME_FLAG_PAGEABLE 0x00000008 |
Definition at line 43 of file netbsd-tdep.c.
Referenced by nbsd_vm_map_entry_flags().
#define KINFO_VME_PROT_EXEC 0x00000004 |
Definition at line 35 of file netbsd-tdep.c.
Referenced by nbsd_vm_map_entry_flags().
#define KINFO_VME_PROT_READ 0x00000001 |
Definition at line 33 of file netbsd-tdep.c.
Referenced by nbsd_vm_map_entry_flags().
#define KINFO_VME_PROT_WRITE 0x00000002 |
Definition at line 34 of file netbsd-tdep.c.
Referenced by nbsd_vm_map_entry_flags().
anonymous enum |
Definition at line 59 of file netbsd-tdep.c.
|
static |
Definition at line 370 of file netbsd-tdep.c.
References registry< T >::get(), and nbsd_gdbarch_data_handle.
Referenced by nbsd_get_siginfo_type().
|
static |
Definition at line 100 of file netbsd-tdep.c.
References NBSD_SIGABRT, NBSD_SIGALRM, NBSD_SIGBUS, NBSD_SIGCHLD, NBSD_SIGCONT, NBSD_SIGEMT, NBSD_SIGFPE, NBSD_SIGHUP, NBSD_SIGILL, NBSD_SIGINFO, NBSD_SIGINT, NBSD_SIGIO, NBSD_SIGKILL, NBSD_SIGPIPE, NBSD_SIGPROF, NBSD_SIGPWR, NBSD_SIGQUIT, NBSD_SIGRTMAX, NBSD_SIGRTMIN, NBSD_SIGSEGV, NBSD_SIGSTOP, NBSD_SIGSYS, NBSD_SIGTERM, NBSD_SIGTRAP, NBSD_SIGTSTP, NBSD_SIGTTIN, NBSD_SIGTTOU, NBSD_SIGURG, NBSD_SIGUSR1, NBSD_SIGUSR2, NBSD_SIGVTALRM, NBSD_SIGWINCH, NBSD_SIGXCPU, and NBSD_SIGXFSZ.
Referenced by nbsd_init_abi().
|
static |
Definition at line 225 of file netbsd-tdep.c.
References NBSD_SIGABRT, NBSD_SIGALRM, NBSD_SIGBUS, NBSD_SIGCHLD, NBSD_SIGCONT, NBSD_SIGEMT, NBSD_SIGFPE, NBSD_SIGHUP, NBSD_SIGILL, NBSD_SIGINFO, NBSD_SIGINT, NBSD_SIGIO, NBSD_SIGKILL, NBSD_SIGPIPE, NBSD_SIGPROF, NBSD_SIGPWR, NBSD_SIGQUIT, NBSD_SIGRTMAX, NBSD_SIGRTMIN, NBSD_SIGSEGV, NBSD_SIGSTOP, NBSD_SIGSYS, NBSD_SIGTERM, NBSD_SIGTRAP, NBSD_SIGTSTP, NBSD_SIGTTIN, NBSD_SIGTTOU, NBSD_SIGUSR1, NBSD_SIGUSR2, NBSD_SIGVTALRM, NBSD_SIGWINCH, NBSD_SIGXCPU, and NBSD_SIGXFSZ.
Referenced by nbsd_init_abi().
Definition at line 381 of file netbsd-tdep.c.
References append_composite_type_field(), arch_composite_type(), builtin_type::builtin_char, builtin_type::builtin_int, builtin_type::builtin_int32, builtin_type::builtin_long, builtin_type(), builtin_type::builtin_uint32, builtin_type::builtin_uint64, gdbarch_addressable_memory_unit_size(), gdbarch_obstack_strdup(), get_nbsd_gdbarch_data(), init_vector_type(), type::length(), lookup_pointer_type(), type_allocator::new_type(), type::set_name(), type::set_target_type(), and nbsd_gdbarch_data::siginfo_type.
Referenced by nbsd_init_abi().
|
static |
Definition at line 584 of file netbsd-tdep.c.
Referenced by nbsd_init_abi().
void nbsd_info_proc_mappings_entry | ( | int | addr_bit, |
ULONGEST | kve_start, | ||
ULONGEST | kve_end, | ||
ULONGEST | kve_offset, | ||
int | kve_flags, | ||
int | kve_protection, | ||
const char * | kve_path ) |
Definition at line 554 of file netbsd-tdep.c.
References gdb_printf(), and nbsd_vm_map_entry_flags().
Referenced by nbsd_nat_target::info_proc().
void nbsd_info_proc_mappings_header | ( | int | addr_bit | ) |
Definition at line 512 of file netbsd-tdep.c.
References gdb_printf().
Referenced by nbsd_nat_target::info_proc().
void nbsd_init_abi | ( | struct gdbarch_info | info, |
struct gdbarch * | gdbarch ) |
Definition at line 599 of file netbsd-tdep.c.
References nbsd_gdb_signal_from_target(), nbsd_gdb_signal_to_target(), nbsd_get_siginfo_type(), nbsd_get_syscall_number(), nbsd_skip_solib_resolver(), set_gdbarch_auxv_parse(), set_gdbarch_gdb_signal_from_target(), set_gdbarch_gdb_signal_to_target(), set_gdbarch_get_siginfo_type(), set_gdbarch_get_syscall_number(), set_gdbarch_skip_solib_resolver(), set_xml_syscall_file_name(), and svr4_auxv_parse().
Referenced by alphanbsd_init_abi(), amd64nbsd_init_abi(), arm_netbsd_elf_init_abi(), hppanbsd_init_abi(), i386nbsd_init_abi(), mipsnbsd_init_abi(), ppcnbsd_init_abi(), shnbsd_init_abi(), sparc32nbsd_init_abi(), sparc64nbsd_init_abi(), and vaxnbsd_elf_init_abi().
int nbsd_pc_in_sigtramp | ( | CORE_ADDR | pc, |
const char * | func_name ) |
Definition at line 48 of file netbsd-tdep.c.
Referenced by alphanbsd_pc_in_sigtramp(), amd64nbsd_sigtramp_p(), sparc32nbsd_pc_in_sigtramp(), and sparc64nbsd_pc_in_sigtramp().
|
static |
Definition at line 350 of file netbsd-tdep.c.
References find_solib_trampoline_target(), frame_unwind_caller_pc(), get_current_frame(), lookup_minimal_symbol(), bound_minimal_symbol::minsym, and bound_minimal_symbol::value_address().
Referenced by nbsd_init_abi().
|
static |
Definition at line 535 of file netbsd-tdep.c.
References KINFO_VME_FLAG_COW, KINFO_VME_FLAG_GROWS_DOWN, KINFO_VME_FLAG_GROWS_UP, KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_PAGEABLE, KINFO_VME_PROT_EXEC, KINFO_VME_PROT_READ, and KINFO_VME_PROT_WRITE.
Referenced by nbsd_info_proc_mappings_entry().
|
static |
Definition at line 367 of file netbsd-tdep.c.
Referenced by get_nbsd_gdbarch_data().