amd64-nat.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Native-dependent code for AMD64.
  2. Copyright (C) 2003-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 AMD64_NAT_H
  15. #define AMD64_NAT_H 1
  16. struct regcache;
  17. /* General-purpose register set description for native 32-bit code. */
  18. extern int *amd64_native_gregset32_reg_offset;
  19. extern int amd64_native_gregset32_num_regs;
  20. /* General-purpose register set description for native 64-bit code. */
  21. extern int *amd64_native_gregset64_reg_offset;
  22. extern int amd64_native_gregset64_num_regs;
  23. /* Return whether the native general-purpose register set supplies
  24. register REGNUM. */
  25. extern int amd64_native_gregset_supplies_p (struct gdbarch *gdbarch,
  26. int regnum);
  27. /* Supply register REGNUM, whose contents are store in BUF, to
  28. REGCACHE. If REGNUM is -1, supply all appropriate registers. */
  29. extern void amd64_supply_native_gregset (struct regcache *regcache,
  30. const void *gregs, int regnum);
  31. /* Collect register REGNUM from REGCACHE and store its contents in
  32. GREGS. If REGNUM is -1, collect and store all appropriate
  33. registers. */
  34. extern void amd64_collect_native_gregset (const struct regcache *regcache,
  35. void *gregs, int regnum);
  36. #endif /* amd64-nat.h */