gdb/ppc-linux-tdep.h - gdb

Macros defined

Source code

  1. /* Target-dependent code for GDB, the GNU debugger.

  2.    Copyright (C) 2008-2015 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_LINUX_TDEP_H
  15. #define PPC_LINUX_TDEP_H

  16. struct regset;

  17. /* From ppc-linux-tdep.c ...  */
  18. const struct regset *ppc_linux_gregset (int);
  19. const struct regset *ppc_linux_fpregset (void);

  20. /* Extra register number constants.  The Linux kernel stores a
  21.    "trap" code and the original value of r3 into special "registers";
  22.    these need to be saved and restored when performing an inferior
  23.    call while the inferior was interrupted within a system call.  */
  24. enum {
  25.   PPC_ORIG_R3_REGNUM = PPC_NUM_REGS,
  26.   PPC_TRAP_REGNUM,
  27. };

  28. /* Return 1 if PPC_ORIG_R3_REGNUM and PPC_TRAP_REGNUM are usable.  */
  29. int ppc_linux_trap_reg_p (struct gdbarch *gdbarch);

  30. /* Linux target descriptions.  */
  31. extern struct target_desc *tdesc_powerpc_32l;
  32. extern struct target_desc *tdesc_powerpc_altivec32l;
  33. extern struct target_desc *tdesc_powerpc_cell32l;
  34. extern struct target_desc *tdesc_powerpc_vsx32l;
  35. extern struct target_desc *tdesc_powerpc_isa205_32l;
  36. extern struct target_desc *tdesc_powerpc_isa205_altivec32l;
  37. extern struct target_desc *tdesc_powerpc_isa205_vsx32l;
  38. extern struct target_desc *tdesc_powerpc_e500l;
  39. extern struct target_desc *tdesc_powerpc_64l;
  40. extern struct target_desc *tdesc_powerpc_altivec64l;
  41. extern struct target_desc *tdesc_powerpc_cell64l;
  42. extern struct target_desc *tdesc_powerpc_vsx64l;
  43. extern struct target_desc *tdesc_powerpc_isa205_64l;
  44. extern struct target_desc *tdesc_powerpc_isa205_altivec64l;
  45. extern struct target_desc *tdesc_powerpc_isa205_vsx64l;

  46. #endif /* PPC_LINUX_TDEP_H */