xref: /dflybsd-src/contrib/gdb-7/gdb/bsd-kvm.h (revision 5796c8dc12c637f18a1740c26afd8d40ffa9b719)
1*5796c8dcSSimon Schubert /* BSD Kernel Data Access Library (libkvm) interface.
2*5796c8dcSSimon Schubert 
3*5796c8dcSSimon Schubert    Copyright (C) 2004, 2007, 2008, 2009 Free Software Foundation, Inc.
4*5796c8dcSSimon Schubert 
5*5796c8dcSSimon Schubert    This file is part of GDB.
6*5796c8dcSSimon Schubert 
7*5796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
8*5796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
9*5796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
10*5796c8dcSSimon Schubert    (at your option) any later version.
11*5796c8dcSSimon Schubert 
12*5796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
13*5796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
14*5796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*5796c8dcSSimon Schubert    GNU General Public License for more details.
16*5796c8dcSSimon Schubert 
17*5796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
18*5796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19*5796c8dcSSimon Schubert 
20*5796c8dcSSimon Schubert #ifndef BSD_KVM_H
21*5796c8dcSSimon Schubert #define BSD_KVM_H
22*5796c8dcSSimon Schubert 
23*5796c8dcSSimon Schubert struct pcb;
24*5796c8dcSSimon Schubert struct regcache;
25*5796c8dcSSimon Schubert 
26*5796c8dcSSimon Schubert /* Add the libkvm interface to the list of all possible targets and
27*5796c8dcSSimon Schubert    register CUPPLY_PCB as the architecture-specific process control
28*5796c8dcSSimon Schubert    block interpreter.  */
29*5796c8dcSSimon Schubert 
30*5796c8dcSSimon Schubert extern void
31*5796c8dcSSimon Schubert   bsd_kvm_add_target (int (*supply_pcb)(struct regcache *, struct pcb *));
32*5796c8dcSSimon Schubert 
33*5796c8dcSSimon Schubert #endif /* bsd-kvm.h */
34