/* GNU/Linux S/390 specific low level interface, for the remote server
for GDB.
- Copyright 2001, 2002, 2005
+ Copyright (C) 2001, 2002, 2005, 2006
Free Software Foundation, Inc.
This file is part of GDB.
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. */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA. */
/* This file is used for both 31-bit and 64-bit S/390 systems. */
return 0;
}
+/* Provide only a fill function for the general register set. ps_lgetregs
+ will use this for NPTL support. */
+
+static void s390_fill_gregset (void *buf)
+{
+ int i;
+
+ for (i = 0; i < 34; i++)
+ collect_register (i, (char *) buf + s390_regmap[i]);
+}
+
+struct regset_info target_regsets[] = {
+ { 0, 0, 0, GENERAL_REGS, s390_fill_gregset, NULL },
+ { 0, 0, -1, -1, NULL, NULL }
+};
+
static const unsigned char s390_breakpoint[] = { 0, 1 };
#define s390_breakpoint_len 2