1*6881a400Schristos /* Common target-dependent definitions for NetBSD systems. 2*6881a400Schristos Copyright (C) 2002-2023 Free Software Foundation, Inc. 3*6881a400Schristos Contributed by Wasabi Systems, Inc. 4*6881a400Schristos 5*6881a400Schristos This file is part of GDB. 6*6881a400Schristos 7*6881a400Schristos This program is free software; you can redistribute it and/or modify 8*6881a400Schristos it under the terms of the GNU General Public License as published by 9*6881a400Schristos the Free Software Foundation; either version 3 of the License, or 10*6881a400Schristos (at your option) any later version. 11*6881a400Schristos 12*6881a400Schristos This program is distributed in the hope that it will be useful, 13*6881a400Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 14*6881a400Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*6881a400Schristos GNU General Public License for more details. 16*6881a400Schristos 17*6881a400Schristos You should have received a copy of the GNU General Public License 18*6881a400Schristos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 19*6881a400Schristos 20*6881a400Schristos #ifndef NBSD_TDEP_H 21*6881a400Schristos #define NBSD_TDEP_H 22*6881a400Schristos 23*6881a400Schristos int nbsd_pc_in_sigtramp (CORE_ADDR, const char *); 24*6881a400Schristos 25*6881a400Schristos /* NetBSD specific set of ABI-related routines. */ 26*6881a400Schristos 27*6881a400Schristos void nbsd_init_abi (struct gdbarch_info, struct gdbarch *); 28*6881a400Schristos 29*6881a400Schristos /* Output the header for "info proc mappings". ADDR_BIT is the size 30*6881a400Schristos of a virtual address in bits. */ 31*6881a400Schristos 32*6881a400Schristos extern void nbsd_info_proc_mappings_header (int addr_bit); 33*6881a400Schristos 34*6881a400Schristos /* Output description of a single memory range for "info proc 35*6881a400Schristos mappings". ADDR_BIT is the size of a virtual address in bits. The 36*6881a400Schristos KVE_START, KVE_END, KVE_OFFSET, KVE_FLAGS, and KVE_PROTECTION 37*6881a400Schristos parameters should contain the value of the corresponding fields in 38*6881a400Schristos a 'struct kinfo_vmentry'. The KVE_PATH parameter should contain a 39*6881a400Schristos pointer to the 'kve_path' field in a 'struct kinfo_vmentry'. */ 40*6881a400Schristos 41*6881a400Schristos extern void nbsd_info_proc_mappings_entry (int addr_bit, ULONGEST kve_start, 42*6881a400Schristos ULONGEST kve_end, 43*6881a400Schristos ULONGEST kve_offset, 44*6881a400Schristos int kve_flags, int kve_protection, 45*6881a400Schristos const char *kve_path); 46*6881a400Schristos 47*6881a400Schristos #endif /* NBSD_TDEP_H */ 48