GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Enumerations | Functions | Variables
netbsd-tdep.c File Reference
#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_dataget_nbsd_gdbarch_data (struct gdbarch *gdbarch)
 
static struct typenbsd_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_datanbsd_gdbarch_data_handle
 

Macro Definition Documentation

◆ KINFO_VME_FLAG_COW

#define KINFO_VME_FLAG_COW   0x00000001

Definition at line 40 of file netbsd-tdep.c.

Referenced by nbsd_vm_map_entry_flags().

◆ KINFO_VME_FLAG_GROWS_DOWN

#define KINFO_VME_FLAG_GROWS_DOWN   0x00000020

Definition at line 45 of file netbsd-tdep.c.

Referenced by nbsd_vm_map_entry_flags().

◆ KINFO_VME_FLAG_GROWS_UP

#define KINFO_VME_FLAG_GROWS_UP   0x00000010

Definition at line 44 of file netbsd-tdep.c.

Referenced by nbsd_vm_map_entry_flags().

◆ KINFO_VME_FLAG_NEEDS_COPY

#define KINFO_VME_FLAG_NEEDS_COPY   0x00000002

Definition at line 41 of file netbsd-tdep.c.

Referenced by nbsd_vm_map_entry_flags().

◆ KINFO_VME_FLAG_NOCOREDUMP

#define KINFO_VME_FLAG_NOCOREDUMP   0x00000004

Definition at line 42 of file netbsd-tdep.c.

◆ KINFO_VME_FLAG_PAGEABLE

#define KINFO_VME_FLAG_PAGEABLE   0x00000008

Definition at line 43 of file netbsd-tdep.c.

Referenced by nbsd_vm_map_entry_flags().

◆ KINFO_VME_PROT_EXEC

#define KINFO_VME_PROT_EXEC   0x00000004

Definition at line 35 of file netbsd-tdep.c.

Referenced by nbsd_vm_map_entry_flags().

◆ KINFO_VME_PROT_READ

#define KINFO_VME_PROT_READ   0x00000001

Definition at line 33 of file netbsd-tdep.c.

Referenced by nbsd_vm_map_entry_flags().

◆ KINFO_VME_PROT_WRITE

#define KINFO_VME_PROT_WRITE   0x00000002

Definition at line 34 of file netbsd-tdep.c.

Referenced by nbsd_vm_map_entry_flags().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NBSD_SIGHUP 
NBSD_SIGINT 
NBSD_SIGQUIT 
NBSD_SIGILL 
NBSD_SIGTRAP 
NBSD_SIGABRT 
NBSD_SIGEMT 
NBSD_SIGFPE 
NBSD_SIGKILL 
NBSD_SIGBUS 
NBSD_SIGSEGV 
NBSD_SIGSYS 
NBSD_SIGPIPE 
NBSD_SIGALRM 
NBSD_SIGTERM 
NBSD_SIGURG 
NBSD_SIGSTOP 
NBSD_SIGTSTP 
NBSD_SIGCONT 
NBSD_SIGCHLD 
NBSD_SIGTTIN 
NBSD_SIGTTOU 
NBSD_SIGIO 
NBSD_SIGXCPU 
NBSD_SIGXFSZ 
NBSD_SIGVTALRM 
NBSD_SIGPROF 
NBSD_SIGWINCH 
NBSD_SIGINFO 
NBSD_SIGUSR1 
NBSD_SIGUSR2 
NBSD_SIGPWR 
NBSD_SIGRTMIN 
NBSD_SIGRTMAX 

Definition at line 59 of file netbsd-tdep.c.

Function Documentation

◆ get_nbsd_gdbarch_data()

static struct nbsd_gdbarch_data * get_nbsd_gdbarch_data ( struct gdbarch * gdbarch)
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().

◆ nbsd_gdb_signal_from_target()

static enum gdb_signal nbsd_gdb_signal_from_target ( struct gdbarch * gdbarch,
int signal )
static

◆ nbsd_gdb_signal_to_target()

static int nbsd_gdb_signal_to_target ( struct gdbarch * gdbarch,
enum gdb_signal signal )
static

◆ nbsd_get_siginfo_type()

static struct type * nbsd_get_siginfo_type ( struct gdbarch * gdbarch)
static

◆ nbsd_get_syscall_number()

static LONGEST nbsd_get_syscall_number ( struct gdbarch * gdbarch,
thread_info * thread )
static

Definition at line 584 of file netbsd-tdep.c.

Referenced by nbsd_init_abi().

◆ nbsd_info_proc_mappings_entry()

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().

◆ nbsd_info_proc_mappings_header()

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().

◆ nbsd_init_abi()

void nbsd_init_abi ( struct gdbarch_info info,
struct gdbarch * gdbarch )

◆ nbsd_pc_in_sigtramp()

int nbsd_pc_in_sigtramp ( CORE_ADDR pc,
const char * func_name )

◆ nbsd_skip_solib_resolver()

static CORE_ADDR nbsd_skip_solib_resolver ( struct gdbarch * gdbarch,
CORE_ADDR pc )
static

◆ nbsd_vm_map_entry_flags()

static const char * nbsd_vm_map_entry_flags ( int kve_flags,
int kve_protection )
static

Variable Documentation

◆ nbsd_gdbarch_data_handle

const registry<gdbarch>::key<nbsd_gdbarch_data> nbsd_gdbarch_data_handle
static

Definition at line 367 of file netbsd-tdep.c.

Referenced by get_nbsd_gdbarch_data().