Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] S390: Fix erroneous offset in fill_gregset
@ 2014-05-13 11:01 Andreas Arnez
  2014-05-13 12:24 ` Ulrich Weigand
  2014-05-13 15:07 ` Andreas Krebbel
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Arnez @ 2014-05-13 11:01 UTC (permalink / raw)
  To: gdb-patches

This fixes a bug that leads to various failures when debugging a
31-bit inferior with a 64-bit gdb on s390x.

gdb/
	* s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
	call to regcache_raw_collect.
---
 gdb/s390-linux-nat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-05-13 15:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-13 11:01 [PATCH] S390: Fix erroneous offset in fill_gregset Andreas Arnez
2014-05-13 12:24 ` Ulrich Weigand
2014-05-13 12:47   ` Joel Brobecker
2014-05-13 14:02     ` Andreas Arnez
2014-05-13 14:51       ` Joel Brobecker
2014-05-13 15:07 ` Andreas Krebbel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox