From patchwork Tue May 13 11:01:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Arnez X-Patchwork-Id: 884 Return-Path: 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 ; 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 ; 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: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 from ; 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 ; 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 ; 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 ; 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 ; Tue, 13 May 2014 06:01:46 -0600 From: Andreas Arnez 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 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 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); } }