From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1268 invoked by alias); 17 Sep 2012 07:30:02 -0000 Received: (qmail 1207 invoked by uid 22791); 17 Sep 2012 07:29:59 -0000 X-SWARE-Spam-Status: No, hits=-7.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Sep 2012 07:29:42 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8H7Tg5t001758 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Sep 2012 03:29:42 -0400 Received: from spoyarek (vpn1-6-111.ams2.redhat.com [10.36.6.111]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8H7TdJo027188 for ; Mon, 17 Sep 2012 03:29:40 -0400 Date: Mon, 17 Sep 2012 07:30:00 -0000 From: Siddhesh Poyarekar To: gdb-patches@sourceware.org Subject: [obv][commit] Eliminate single-use variable LEN in infrun.c Message-ID: <20120917125859.6c960d1c@spoyarek> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00306.txt.bz2 Hi, I have committed the following obvious patch into trunk. Regards, Siddhesh http://sourceware.org/ml/gdb-cvs/2012-09/msg00082.html =================================================================== RCS file: /cvs/src/src/gdb/ChangeLog,v retrieving revision 1.14664 retrieving revision 1.14665 diff -u -r1.14664 -r1.14665 --- src/gdb/ChangeLog 2012/09/17 07:15:47 1.14664 +++ src/gdb/ChangeLog 2012/09/17 07:26:54 1.14665 @@ -1,3 +1,8 @@ +2012-09-17 Siddhesh Poyarekar + + * infrun.c (restore_infcall_suspend_state): Eliminate single-use + variable LEN. + 2012-09-17 Jan Kratochvil PR 14119 =================================================================== RCS file: /cvs/src/src/gdb/infrun.c,v retrieving revision 1.558 retrieving revision 1.559 diff -u -r1.558 -r1.559 --- src/gdb/infrun.c 2012/09/17 07:09:34 1.558 +++ src/gdb/infrun.c 2012/09/17 07:26:55 1.559 @@ -6777,11 +6777,10 @@ if (inf_state->siginfo_gdbarch == gdbarch) { struct type *type = gdbarch_get_siginfo_type (gdbarch); - size_t len = TYPE_LENGTH (type); /* Errors ignored. */ target_write (¤t_target, TARGET_OBJECT_SIGNAL_INFO, NULL, - inf_state->siginfo_data, 0, len); + inf_state->siginfo_data, 0, TYPE_LENGTH (type)); } /* The inferior can be gone if the user types "print exit(0)"