* [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
* Re: [PATCH] S390: Fix erroneous offset in fill_gregset
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 15:07 ` Andreas Krebbel
1 sibling, 1 reply; 6+ messages in thread
From: Ulrich Weigand @ 2014-05-13 12:24 UTC (permalink / raw)
To: Andreas Arnez; +Cc: gdb-patches
Andreas Arnez wrote:
> gdb/
> * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
> call to regcache_raw_collect.
This is OK.
The fix probably ought to go to the 7.7 branch as well ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] S390: Fix erroneous offset in fill_gregset
2014-05-13 12:24 ` Ulrich Weigand
@ 2014-05-13 12:47 ` Joel Brobecker
2014-05-13 14:02 ` Andreas Arnez
0 siblings, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2014-05-13 12:47 UTC (permalink / raw)
To: Ulrich Weigand; +Cc: Andreas Arnez, gdb-patches
> > gdb/
> > * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
> > call to regcache_raw_collect.
>
> This is OK.
>
> The fix probably ought to go to the 7.7 branch as well ...
We are not planning on making another release on the 7.7 branch
but it might still be good to have it there also, so no objection.
But if we backport the change, please make sure that a PR gets
created, and that an entry gets added to the 7.7 release wiki
page: https://sourceware.org/gdb/wiki/GDB_7.7_Release
I will create a "Fixes since GDB 7.7.1" section.
Thanks,
--
Joel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] S390: Fix erroneous offset in fill_gregset
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 15:07 ` Andreas Krebbel
1 sibling, 0 replies; 6+ messages in thread
From: Andreas Krebbel @ 2014-05-13 15:07 UTC (permalink / raw)
To: Andreas Arnez, gdb-patches
On 05/13/2014 01:01 PM, Andreas Arnez wrote:
> 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);
> }
> }
I've committed the patch to mainline and gdb-7.7 branch. Thanks!
-Andreas-
^ 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