From patchwork Wed Sep 2 04:49:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Durigan Junior X-Patchwork-Id: 8555 Received: (qmail 15836 invoked by alias); 2 Sep 2015 04:50:03 -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 15826 invoked by uid 89); 2 Sep 2015 04:50:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL, BAYES_50, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 02 Sep 2015 04:50:02 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id F19FC91DBD for ; Wed, 2 Sep 2015 04:50:00 +0000 (UTC) Received: from psique.yyz.redhat.com (unused-10-15-17-51.yyz.redhat.com [10.15.17.51]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t824nxA3023145; Wed, 2 Sep 2015 00:50:00 -0400 From: Sergio Durigan Junior To: GDB Patches Cc: Sergio Durigan Junior Subject: [PATCH] Initialize yet another variable to silence GCC warning from last-but-one commit Date: Wed, 2 Sep 2015 00:49:47 -0400 Message-Id: <1441169387-16802-1-git-send-email-sergiodj@redhat.com> In-Reply-To: <87pp215u3f.fsf@redhat.com> References: <87pp215u3f.fsf@redhat.com> X-IsSubscribed: yes Yet another BuildBot e-mail, yet another breakage on RHEL-7.1 s390x (which uses an older GCC). This time, solib-svr4.c:solib_event_probe_action has the probe_argc variable, which is now inside a TRY..CATCH and therefore needs to be initialized. Pushed as obvious. gdb/ChangeLog: 2015-09-01 Sergio Durigan Junior * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc' as zero. --- gdb/ChangeLog | 5 +++++ gdb/solib-svr4.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 80fff7e..b054438 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2015-09-01 Sergio Durigan Junior + * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc' + as zero. + +2015-09-01 Sergio Durigan Junior + * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL 2015-09-01 Sergio Durigan Junior diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index d3411fa..5d3d41e 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -1772,7 +1772,7 @@ static enum probe_action solib_event_probe_action (struct probe_and_action *pa) { enum probe_action action; - unsigned probe_argc; + unsigned probe_argc = 0; struct frame_info *frame = get_current_frame (); action = pa->action;