33#define KINFO_VME_PROT_READ 0x00000001
34#define KINFO_VME_PROT_WRITE 0x00000002
35#define KINFO_VME_PROT_EXEC 0x00000004
40#define KINFO_VME_FLAG_COW 0x00000001
41#define KINFO_VME_FLAG_NEEDS_COPY 0x00000002
42#define KINFO_VME_FLAG_NOCOREDUMP 0x00000004
43#define KINFO_VME_FLAG_PAGEABLE 0x00000008
44#define KINFO_VME_FLAG_GROWS_UP 0x00000010
45#define KINFO_VME_FLAG_GROWS_DOWN 0x00000020
68 return (func_name != NULL
69 && startswith (func_name,
"__sigtramp"));
114static enum gdb_signal
123 return GDB_SIGNAL_HUP;
126 return GDB_SIGNAL_INT;
129 return GDB_SIGNAL_QUIT;
132 return GDB_SIGNAL_ILL;
135 return GDB_SIGNAL_TRAP;
138 return GDB_SIGNAL_ABRT;
141 return GDB_SIGNAL_EMT;
144 return GDB_SIGNAL_FPE;
147 return GDB_SIGNAL_KILL;
150 return GDB_SIGNAL_BUS;
153 return GDB_SIGNAL_SEGV;
156 return GDB_SIGNAL_SYS;
159 return GDB_SIGNAL_PIPE;
162 return GDB_SIGNAL_ALRM;
165 return GDB_SIGNAL_TERM;
168 return GDB_SIGNAL_URG;
171 return GDB_SIGNAL_STOP;
174 return GDB_SIGNAL_TSTP;
177 return GDB_SIGNAL_CONT;
180 return GDB_SIGNAL_CHLD;
183 return GDB_SIGNAL_TTIN;
186 return GDB_SIGNAL_TTOU;
189 return GDB_SIGNAL_IO;
192 return GDB_SIGNAL_XCPU;
195 return GDB_SIGNAL_XFSZ;
198 return GDB_SIGNAL_VTALRM;
201 return GDB_SIGNAL_PROF;
204 return GDB_SIGNAL_WINCH;
207 return GDB_SIGNAL_INFO;
210 return GDB_SIGNAL_USR1;
213 return GDB_SIGNAL_USR2;
216 return GDB_SIGNAL_PWR;
221 return GDB_SIGNAL_REALTIME_33;
224 return GDB_SIGNAL_REALTIME_63;
231 return (
enum gdb_signal) ((int) GDB_SIGNAL_REALTIME_34 + offset);
234 return GDB_SIGNAL_UNKNOWN;
241 enum gdb_signal signal)
254 case GDB_SIGNAL_QUIT:
260 case GDB_SIGNAL_TRAP:
263 case GDB_SIGNAL_ABRT:
272 case GDB_SIGNAL_KILL:
278 case GDB_SIGNAL_SEGV:
284 case GDB_SIGNAL_PIPE:
287 case GDB_SIGNAL_ALRM:
290 case GDB_SIGNAL_TERM:
296 case GDB_SIGNAL_TSTP:
299 case GDB_SIGNAL_CONT:
302 case GDB_SIGNAL_CHLD:
305 case GDB_SIGNAL_TTIN:
308 case GDB_SIGNAL_TTOU:
314 case GDB_SIGNAL_XCPU:
317 case GDB_SIGNAL_XFSZ:
320 case GDB_SIGNAL_VTALRM:
323 case GDB_SIGNAL_PROF:
326 case GDB_SIGNAL_WINCH:
329 case GDB_SIGNAL_INFO:
332 case GDB_SIGNAL_USR1:
335 case GDB_SIGNAL_USR2:
343 case GDB_SIGNAL_REALTIME_33:
347 case GDB_SIGNAL_REALTIME_63:
351 if (signal >= GDB_SIGNAL_REALTIME_34
352 && signal <= GDB_SIGNAL_REALTIME_62)
354 int offset = signal - GDB_SIGNAL_REALTIME_32;
388 if (result ==
nullptr)
413 bool lp64 = void_ptr_type->
length () == 8;
418 int32_type->
length () * char_bits,
"pid_t");
423 uint32_type->
length () * char_bits,
"uid_t");
428 int_type->
length () * char_bits,
"clock_t");
433 int32_type->
length () * char_bits,
531 " Size",
" Offset",
"Flags ",
"File");
538 " Size",
" Offset",
"Flags ",
"File");
548 static char vm_flags[9];
566 ULONGEST kve_end, ULONGEST kve_offset,
567 int kve_flags,
int kve_protection,
568 const char *kve_path)
573 hex_string (kve_start),
574 hex_string (kve_end),
575 hex_string (kve_end - kve_start),
576 hex_string (kve_offset),
583 hex_string (kve_start),
584 hex_string (kve_end),
585 hex_string (kve_end - kve_start),
586 hex_string (kve_offset),
604 internal_error (_(
"nbsd_get_sycall_number called"));
char * gdbarch_obstack_strdup(struct gdbarch *arch, const char *string)
int svr4_auxv_parse(struct gdbarch *gdbarch, const gdb_byte **readptr, const gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp)
CORE_ADDR frame_unwind_caller_pc(frame_info_ptr this_frame)
frame_info_ptr get_current_frame(void)
void set_gdbarch_get_syscall_number(struct gdbarch *gdbarch, gdbarch_get_syscall_number_ftype *get_syscall_number)
void set_gdbarch_get_siginfo_type(struct gdbarch *gdbarch, gdbarch_get_siginfo_type_ftype *get_siginfo_type)
void set_gdbarch_gdb_signal_from_target(struct gdbarch *gdbarch, gdbarch_gdb_signal_from_target_ftype *gdb_signal_from_target)
void set_gdbarch_auxv_parse(struct gdbarch *gdbarch, gdbarch_auxv_parse_ftype *auxv_parse)
void set_gdbarch_gdb_signal_to_target(struct gdbarch *gdbarch, gdbarch_gdb_signal_to_target_ftype *gdb_signal_to_target)
int gdbarch_addressable_memory_unit_size(struct gdbarch *gdbarch)
void set_gdbarch_skip_solib_resolver(struct gdbarch *gdbarch, gdbarch_skip_solib_resolver_ftype *skip_solib_resolver)
struct type * lookup_pointer_type(struct type *type)
struct type * arch_composite_type(struct gdbarch *gdbarch, const char *name, enum type_code code)
struct type * init_vector_type(struct type *elt_type, int n)
struct type * arch_type(struct gdbarch *gdbarch, enum type_code code, int bit, const char *name)
void append_composite_type_field(struct type *t, const char *name, struct type *field)
struct bound_minimal_symbol lookup_minimal_symbol(const char *name, const char *sfile, struct objfile *objf)
CORE_ADDR find_solib_trampoline_target(frame_info_ptr frame, CORE_ADDR pc)
static const registry< gdbarch >::key< nbsd_gdbarch_data > nbsd_gdbarch_data_handle
struct link_map_offsets * nbsd_ilp32_solib_svr4_fetch_link_map_offsets(void)
int nbsd_pc_in_sigtramp(CORE_ADDR pc, const char *func_name)
#define KINFO_VME_PROT_EXEC
#define KINFO_VME_FLAG_GROWS_UP
static struct nbsd_gdbarch_data * get_nbsd_gdbarch_data(struct gdbarch *gdbarch)
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 struct type * nbsd_get_siginfo_type(struct gdbarch *gdbarch)
static LONGEST nbsd_get_syscall_number(struct gdbarch *gdbarch, thread_info *thread)
static enum gdb_signal nbsd_gdb_signal_from_target(struct gdbarch *gdbarch, int signal)
#define KINFO_VME_FLAG_COW
void nbsd_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)
#define KINFO_VME_PROT_READ
#define KINFO_VME_FLAG_GROWS_DOWN
#define KINFO_VME_PROT_WRITE
static int nbsd_gdb_signal_to_target(struct gdbarch *gdbarch, enum gdb_signal signal)
#define KINFO_VME_FLAG_NEEDS_COPY
static CORE_ADDR nbsd_skip_solib_resolver(struct gdbarch *gdbarch, CORE_ADDR pc)
#define KINFO_VME_FLAG_PAGEABLE
struct link_map_offsets * nbsd_lp64_solib_svr4_fetch_link_map_offsets(void)
void nbsd_info_proc_mappings_header(int addr_bit)
struct link_map_offsets * svr4_lp64_fetch_link_map_offsets(void)
struct link_map_offsets * svr4_ilp32_fetch_link_map_offsets(void)
CORE_ADDR value_address() const
struct minimal_symbol * minsym
struct type * builtin_long
struct type * builtin_uint32
struct type * builtin_uint64
struct type * builtin_char
struct type * builtin_int
struct type * builtin_int32
struct type * siginfo_type
void set_target_type(struct type *target_type)
void set_name(const char *name)
void gdb_printf(struct ui_file *stream, const char *format,...)
void set_xml_syscall_file_name(struct gdbarch *gdbarch, const char *name)