X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fs390-tdep.h;h=74fc0875383a5b0ad6f74975b479f10a65d9dba8;hb=809df4465f01277ab689fb82b3f16ff79f9a2606;hp=241c1feb2f2ee90af4517fb84a3731cb6b5cea0c;hpb=d0f54f9d4233d431dd70652503888cf03bc6e445;p=binutils-gdb.git diff --git a/gdb/s390-tdep.h b/gdb/s390-tdep.h index 241c1feb2f2..74fc0875383 100644 --- a/gdb/s390-tdep.h +++ b/gdb/s390-tdep.h @@ -1,11 +1,11 @@ /* Target-dependent code for GDB, the GNU debugger. - Copyright 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -14,9 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + along with this program. If not, see . */ #ifndef S390_TDEP_H #define S390_TDEP_H @@ -79,14 +77,25 @@ #define S390_F13_REGNUM 48 #define S390_F14_REGNUM 49 #define S390_F15_REGNUM 50 +/* General Purpose Register Upper Halves. */ +#define S390_R0_UPPER_REGNUM 51 +#define S390_R1_UPPER_REGNUM 52 +#define S390_R2_UPPER_REGNUM 53 +#define S390_R3_UPPER_REGNUM 54 +#define S390_R4_UPPER_REGNUM 55 +#define S390_R5_UPPER_REGNUM 56 +#define S390_R6_UPPER_REGNUM 57 +#define S390_R7_UPPER_REGNUM 58 +#define S390_R8_UPPER_REGNUM 59 +#define S390_R9_UPPER_REGNUM 60 +#define S390_R10_UPPER_REGNUM 61 +#define S390_R11_UPPER_REGNUM 62 +#define S390_R12_UPPER_REGNUM 63 +#define S390_R13_UPPER_REGNUM 64 +#define S390_R14_UPPER_REGNUM 65 +#define S390_R15_UPPER_REGNUM 66 /* Total. */ -#define S390_NUM_REGS 51 - -/* Pseudo registers -- PC and condition code. */ -#define S390_PC_REGNUM S390_NUM_REGS -#define S390_CC_REGNUM (S390_NUM_REGS+1) -#define S390_NUM_PSEUDO_REGS 2 -#define S390_NUM_TOTAL_REGS (S390_NUM_REGS+2) +#define S390_NUM_REGS 67 /* Special register usage. */ #define S390_SP_REGNUM S390_R15_REGNUM @@ -101,5 +110,10 @@ extern int s390x_regmap_gregset[S390_NUM_REGS]; #define s390_sizeof_fpregset 0x88 extern int s390_regmap_fpregset[S390_NUM_REGS]; +/* Linux target descriptions. */ +extern struct target_desc *tdesc_s390_linux32; +extern struct target_desc *tdesc_s390_linux64; +extern struct target_desc *tdesc_s390x_linux64; + #endif