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.
This commit is contained in:
Andreas Arnez 2014-05-13 14:55:53 +02:00 committed by Andreas Krebbel
parent bad1aba328
commit 9b44a3a57d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
* s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
call to regcache_raw_collect.
2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
* mi/mi-console.c (mi_console_raw_packet): Use the value from

View File

@ -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);
}
}