GDB (API)
/home/stan/gdb/src/gdb/ppc-linux-tdep.h
Go to the documentation of this file.
00001 /* Target-dependent code for GDB, the GNU debugger.
00002 
00003    Copyright (C) 2008-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 PPC_LINUX_TDEP_H
00021 #define PPC_LINUX_TDEP_H
00022 
00023 struct regset;
00024 
00025 /* From ppc-linux-tdep.c ...  */
00026 const struct regset *ppc_linux_gregset (int);
00027 const struct regset *ppc_linux_fpregset (void);
00028 
00029 /* Extra register number constants.  The Linux kernel stores a
00030    "trap" code and the original value of r3 into special "registers";
00031    these need to be saved and restored when performing an inferior
00032    call while the inferior was interrupted within a system call.  */
00033 enum {
00034   PPC_ORIG_R3_REGNUM = PPC_NUM_REGS,
00035   PPC_TRAP_REGNUM,
00036 };
00037 
00038 /* Return 1 if PPC_ORIG_R3_REGNUM and PPC_TRAP_REGNUM are usable.  */
00039 int ppc_linux_trap_reg_p (struct gdbarch *gdbarch);
00040 
00041 /* Linux target descriptions.  */
00042 extern struct target_desc *tdesc_powerpc_32l;
00043 extern struct target_desc *tdesc_powerpc_altivec32l;
00044 extern struct target_desc *tdesc_powerpc_cell32l;
00045 extern struct target_desc *tdesc_powerpc_vsx32l;
00046 extern struct target_desc *tdesc_powerpc_isa205_32l;
00047 extern struct target_desc *tdesc_powerpc_isa205_altivec32l;
00048 extern struct target_desc *tdesc_powerpc_isa205_vsx32l;
00049 extern struct target_desc *tdesc_powerpc_e500l;
00050 extern struct target_desc *tdesc_powerpc_64l;
00051 extern struct target_desc *tdesc_powerpc_altivec64l;
00052 extern struct target_desc *tdesc_powerpc_cell64l;
00053 extern struct target_desc *tdesc_powerpc_vsx64l;
00054 extern struct target_desc *tdesc_powerpc_isa205_64l;
00055 extern struct target_desc *tdesc_powerpc_isa205_altivec64l;
00056 extern struct target_desc *tdesc_powerpc_isa205_vsx64l;
00057 
00058 #endif /* PPC_LINUX_TDEP_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines