1 /* Target-dependent code for OpenBSD/powerpc.
3 Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010
4 Free Software Foundation, Inc.
6 This file is part of GDB.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21 #ifndef PPCOBSD_TDEP_H
22 #define PPCOBSD_TDEP_H
29 /* Register offsets for OpenBSD/powerpc. */
30 extern struct ppc_reg_offsets ppcobsd_reg_offsets
;
31 extern struct ppc_reg_offsets ppcobsd_fpreg_offsets
;
33 /* Register sets for OpenBSD/powerpc. */
34 extern struct regset ppcobsd_gregset
;
35 extern struct regset ppcobsd_fpregset
;
38 /* Supply register REGNUM in the general-purpose register set REGSET
39 from the buffer specified by GREGS and LEN to register cache
40 REGCACHE. If REGNUM is -1, do this for all registers in REGSET. */
42 extern void ppcobsd_supply_gregset (const struct regset
*regset
,
43 struct regcache
*regcache
, int regnum
,
44 const void *gregs
, size_t len
);
46 /* Collect register REGNUM in the general-purpose register set
47 REGSET. from register cache REGCACHE into the buffer specified by
48 GREGS and LEN. If REGNUM is -1, do this for all registers in
51 extern void ppcobsd_collect_gregset (const struct regset
*regset
,
52 const struct regcache
*regcache
,
53 int regnum
, void *gregs
, size_t len
);
55 #endif /* ppcobsd-tdep.h */