aboutsummaryrefslogtreecommitdiff
path: root/gdb/s390-linux-nat.c
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2014-05-13 14:55:53 +0200
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-05-13 14:55:53 +0200
commit9b44a3a57d17ea2d35823780007a38daeeaec6a4 (patch)
tree31625cb2af902978eccdd195554e99d6a96fb930 /gdb/s390-linux-nat.c
parentbad1aba328293fc62831ac451edc55adc37ead36 (diff)
downloadgdb-9b44a3a57d17ea2d35823780007a38daeeaec6a4.zip
gdb-9b44a3a57d17ea2d35823780007a38daeeaec6a4.tar.gz
gdb-9b44a3a57d17ea2d35823780007a38daeeaec6a4.tar.bz2
S390: Fix erroneous offset in fill_gregset.
This fixes a bug that leads to various failures when debugging a 31-bit inferior with a 64-bit gdb on s390x.
Diffstat (limited to 'gdb/s390-linux-nat.c')
-rw-r--r--gdb/s390-linux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c
index 5c38952..45db7c9 100644
--- a/gdb/s390-linux-nat.c
+++ b/gdb/s390-linux-nat.c
@@ -164,7 +164,7 @@ fill_gregset (const struct regcache *regcache, gregset_t *regp, int regno)
memset (p, 0, 4);
p += 4;
}
- regcache_raw_collect (regcache, reg, p + 4);
+ regcache_raw_collect (regcache, reg, p);
}
}