ppc-obsd-tdep.h 1.9 KB

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