void _initialize_ia64_linux_nat (void) { /* Register the target. */ linux_target = &the_ia64_linux_nat_target; add_inf_child_target (&the_ia64_linux_nat_target); }
void _initialize_i386obsd_nat (void) { add_inf_child_target (&i386_obsd_nat_target); /* Support debugging kernel virtual memory images. */ bsd_kvm_add_target (i386obsd_supply_pcb); /* OpenBSD provides a vm.psstrings sysctl that we can use to locate the sigtramp. That way we can still recognize a sigtramp if its location is changed in a new kernel. This is especially important for OpenBSD, since it uses a different memory layout than NetBSD, yet we cannot distinguish between the two. Of course this is still based on the assumption that the sigtramp is placed directly under the location where the program arguments and environment can be found. */ #ifdef VM_PSSTRINGS { struct _ps_strings _ps; int mib[2]; size_t len; mib[0] = CTL_VM; mib[1] = VM_PSSTRINGS; len = sizeof (_ps); if (sysctl (mib, 2, &_ps, &len, NULL, 0) == 0) { i386obsd_sigtramp_start_addr = (u_long) _ps.val - 128; i386obsd_sigtramp_end_addr = (u_long) _ps.val; } } #endif }
void _initialize_alphabsd_nat (void) { add_inf_child_target (&the_alpha_bsd_nat_target); /* Support debugging kernel virtual memory images. */ bsd_kvm_add_target (alphabsd_supply_pcb); }
void _initialize_sparc64fbsd_nat (void) { add_inf_child_target (&the_sparc64_fbsd_nat_target); sparc_gregmap = &sparc64fbsd_gregmap; /* Support debugging kernel virtual memory images. */ bsd_kvm_add_target (sparc64fbsd_kvm_supply_pcb); }
void _initialize_i386gnu_nat (void) { #ifdef i386_DEBUG_STATE x86_dr_low.set_control = i386_gnu_dr_set_control; gdb_assert (DR_FIRSTADDR == 0 && DR_LASTADDR < i386_DEBUG_STATE_COUNT); x86_dr_low.set_addr = i386_gnu_dr_set_addr; x86_dr_low.get_addr = i386_gnu_dr_get_addr; x86_dr_low.get_status = i386_gnu_dr_get_status; x86_dr_low.get_control = i386_gnu_dr_get_control; x86_set_debug_register_length (4); #endif /* i386_DEBUG_STATE */ /* Register the target. */ add_inf_child_target (&the_i386_gnu_nat_target); }
void _initialize_riscv_fbsd_nat (void) { add_inf_child_target (&the_riscv_fbsd_nat_target); }
void _initialize_rs6000_nat (void) { add_inf_child_target (&the_rs6000_nat_target); }
void _initialize_hppanbsd_nat (void) { add_inf_child_target (&the_hppa_nbsd_nat_target); }