From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93263 invoked by alias); 20 Feb 2017 13:05:01 -0000 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 Received: (qmail 93124 invoked by uid 89); 20 Feb 2017 13:04:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= 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 ESMTP; Mon, 20 Feb 2017 13:04:57 +0000 Received: from smtp.corp.redhat.com (int-mx16.intmail.prod.int.phx2.redhat.com [10.5.11.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5E753461C3 for ; Mon, 20 Feb 2017 13:04:57 +0000 (UTC) Received: from psique.yyz.redhat.com (unused-10-15-17-193.yyz.redhat.com [10.15.17.193]) by smtp.corp.redhat.com (Postfix) with ESMTP id 14C2D2DB4B; Mon, 20 Feb 2017 13:04:57 +0000 (UTC) From: Sergio Durigan Junior To: GDB Patches Cc: Sergio Durigan Junior Subject: [PATCH] Fix thinko on last commit Date: Mon, 20 Feb 2017 13:05:00 -0000 Message-Id: <20170220130451.27942-1-sergiodj@redhat.com> In-Reply-To: <87tw7pm3dw.fsf@redhat.com> References: <87tw7pm3dw.fsf@redhat.com> X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00541.txt.bz2 On fork-child.c:trace_start_error, va_end should refer to 'ap', not 'args. This fixes it. Sorry about the breakage. gdb/ChangeLog: 2017-02-20 Sergio Durigan Junior PR gdb/16188 * fork-child.c (trace_start_error): Fix thinko. va_end should refer to 'ap', not 'args'. --- gdb/ChangeLog | 6 ++++++ gdb/fork-child.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cf68c7e..610755c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,4 +1,10 @@ 2017-02-20 Sergio Durigan Junior + + PR gdb/16188 + * fork-child.c (trace_start_error): Fix thinko. va_end should + refer to 'ap', not 'args'. + +2017-02-20 Sergio Durigan Junior Pedro Alves PR gdb/16188 diff --git a/gdb/fork-child.c b/gdb/fork-child.c index f6256fb..dc2a314 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -120,7 +120,7 @@ trace_start_error (const char *fmt, ...) fprintf_unfiltered (gdb_stderr, "Could not trace the inferior " "process.\nError: "); vfprintf_unfiltered (gdb_stderr, fmt, ap); - va_end (args); + va_end (ap); gdb_flush (gdb_stderr); _exit (0177); -- 2.9.3