Message ID | 87ppji54dh.fsf@br87z6lw.de.ibm.com |
---|---|
State | Committed |
Headers |
Return-Path: <x14314964@homiemail-mx22.g.dreamhost.com> X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx22.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 6D9F4360098 for <siddhesh@wilcox.dreamhost.com>; Tue, 13 May 2014 04:01:57 -0700 (PDT) Received: by homiemail-mx22.g.dreamhost.com (Postfix, from userid 14314964) id 241AB533D395; Tue, 13 May 2014 04:01:57 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx22.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx22.g.dreamhost.com (Postfix) with ESMTPS id CF1F75282561 for <gdb@patchwork.siddhesh.in>; Tue, 13 May 2014 04:01:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=BGy/vnSoeFrOtgwxg/JDMlV5OYReX GfxihQ0IOheRMR5uYQ2IiEqUHtdt4SPQajcFjhDfQ0e7R9vl9pfQQfF8yxfsXBYS LVw9hvrVUyedavMtd8Gn7fvZDwQ9ys1dtasvl+crpU6osAvdG/75vuZVWCdwgkFP yxHW94EBnEsDOk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=lXkDCaRKI9g3De7dezjUJpAZdA0=; b=p3i YP8G+4MGNmeAwBlif8Yb5PnLvaKCWUYvaft2qK6GPWqEsYUv7KQCK6x4BampAE4n V2qHP1g5lt3Er3mCenvqZDoAeG2HgC3cxZdxQNEZXI7Svy61YSS/r4RBEFG3lUc3 8j6GCEtG9zbRXWtpKna8OXx+c5vxk87k6UQb6sZM= Received: (qmail 10045 invoked by alias); 13 May 2014 11:01:55 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: <gdb-patches.sourceware.org> List-Unsubscribe: <mailto:gdb-patches-unsubscribe-gdb=patchwork.siddhesh.in@sourceware.org> List-Subscribe: <mailto:gdb-patches-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-help@sourceware.org>, <http://sourceware.org/ml/#faqs> Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 10034 invoked by uid 89); 13 May 2014 11:01:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp17.uk.ibm.com Received: from e06smtp17.uk.ibm.com (HELO e06smtp17.uk.ibm.com) (195.75.94.113) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 13 May 2014 11:01:54 +0000 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <gdb-patches@sourceware.org> from <arnez@linux.vnet.ibm.com>; Tue, 13 May 2014 12:01:50 +0100 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp17.uk.ibm.com (192.168.101.147) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 13 May 2014 12:01:48 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id C12272190042 for <gdb-patches@sourceware.org>; Tue, 13 May 2014 12:01:38 +0100 (BST) Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by b06cxnps3075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s4DB1lxc45744272 for <gdb-patches@sourceware.org>; Tue, 13 May 2014 11:01:47 GMT Received: from d06av06.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s4DC1lti002499 for <gdb-patches@sourceware.org>; Tue, 13 May 2014 06:01:47 -0600 Received: from br87z6lw.de.ibm.com (dyn-9-152-212-188.boeblingen.de.ibm.com [9.152.212.188]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s4DC1kj6002453 for <gdb-patches@sourceware.org>; Tue, 13 May 2014 06:01:46 -0600 From: Andreas Arnez <arnez@linux.vnet.ibm.com> To: gdb-patches@sourceware.org Subject: [PATCH] S390: Fix erroneous offset in fill_gregset Date: Tue, 13 May 2014 13:01:46 +0200 Message-ID: <87ppji54dh.fsf@br87z6lw.de.ibm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14051311-0542-0000-0000-000008F84116 X-IsSubscribed: yes X-DH-Original-To: gdb@patchwork.siddhesh.in |
Commit Message
Andreas Arnez
May 13, 2014, 11:01 a.m. UTC
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(-)
Comments
> > 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,
On Tue, May 13 2014, Joel Brobecker 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 ... > > 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. OK, I created PR16940: https://sourceware.org/bugzilla/show_bug.cgi?id=16940
> OK, I created PR16940: > https://sourceware.org/bugzilla/show_bug.cgi?id=16940 Great, thanks! The only thing left to do, once the patch is backported, is to add an entry in the wiki page I mentioned - the relevant section has been added. I can do that for you if you're not sure or don't have or want edit credentials.
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-
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); } }