X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgdbserver%2Flinux-s390-low.c;h=c2511a5e19dedb006486dc36812d81589e757d7e;hb=b7149293aa320693b0bc762fb5e09a991fa8dc6a;hp=d290556ab90d5c4da191158390b36fad0f01d57a;hpb=f450004a28a0ca9548117ae78d5ad554a3e32c69;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbserver/linux-s390-low.c b/gdb/gdbserver/linux-s390-low.c index d290556ab9..c2511a5e19 100644 --- a/gdb/gdbserver/linux-s390-low.c +++ b/gdb/gdbserver/linux-s390-low.c @@ -1,6 +1,6 @@ /* 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. @@ -17,8 +17,8 @@ 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. */ @@ -75,6 +75,22 @@ s390_cannot_store_register (int regno) 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