GDB (API)
/home/stan/gdb/src/gdb/ppcobsd-tdep.h
Go to the documentation of this file.
00001 /* Target-dependent code for OpenBSD/powerpc.
00002 
00003    Copyright (C) 2004-2013 Free Software Foundation, Inc.
00004 
00005    This file is part of GDB.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 3 of the License, or
00010    (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00019 
00020 #ifndef PPCOBSD_TDEP_H
00021 #define PPCOBSD_TDEP_H
00022 
00023 #include <stddef.h>
00024 
00025 struct regset;
00026 struct regcache;
00027 
00028 /* Register offsets for OpenBSD/powerpc.  */
00029 extern struct ppc_reg_offsets ppcobsd_reg_offsets;
00030 extern struct ppc_reg_offsets ppcobsd_fpreg_offsets;
00031 
00032 /* Register sets for OpenBSD/powerpc.  */
00033 extern struct regset ppcobsd_gregset;
00034 extern struct regset ppcobsd_fpregset;
00035 
00036 
00037 /* Supply register REGNUM in the general-purpose register set REGSET
00038    from the buffer specified by GREGS and LEN to register cache
00039    REGCACHE.  If REGNUM is -1, do this for all registers in REGSET.  */
00040 
00041 extern void ppcobsd_supply_gregset (const struct regset *regset,
00042                                     struct regcache *regcache, int regnum,
00043                                     const void *gregs, size_t len);
00044 
00045 /* Collect register REGNUM in the general-purpose register set
00046    REGSET, from register cache REGCACHE into the buffer specified by
00047    GREGS and LEN.  If REGNUM is -1, do this for all registers in
00048    REGSET.  */
00049 
00050 extern void ppcobsd_collect_gregset (const struct regset *regset,
00051                                      const struct regcache *regcache,
00052                                      int regnum, void *gregs, size_t len);
00053 
00054 #endif /* ppcobsd-tdep.h */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines