From patchwork Fri Nov 2 13:26:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Waroquiers X-Patchwork-Id: 30010 Received: (qmail 72453 invoked by alias); 2 Nov 2018 13:27:48 -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 72108 invoked by uid 89); 2 Nov 2018 13:27:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS, TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=UD:be, HContent-Transfer-Encoding:8bit X-HELO: mailsec117.isp.belgacom.be Received: from mailsec117.isp.belgacom.be (HELO mailsec117.isp.belgacom.be) (195.238.20.113) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Nov 2018 13:27:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1541165229; x=1572701229; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=PQulA6u2Scguygkw4G0jsytezmp4olglsmKtXq2gwYs=; b=Ud6XVrtMnCELwYeLfCP1T6j8QZKkHALJFxm40KJAD3WFYSTI/VwjjxZa 7O8HLEG48pTm/oOa2rAX4iGDtM8nSQ==; Received: from 110.212-243-81.adsl-dyn.isp.belgacom.be (HELO md.home) ([81.243.212.110]) by relay.skynet.be with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 02 Nov 2018 14:27:07 +0100 From: Philippe Waroquiers To: gdb-patches@sourceware.org Cc: Philippe Waroquiers Subject: [PUSHED OBVIOUS] QUIET flag initialization missing in 2 places. Date: Fri, 2 Nov 2018 14:26:59 +0100 Message-Id: <20181102132659.7729-1-philippe.waroquiers@skynet.be> MIME-Version: 1.0 X-IsSubscribed: yes Fix by Matthew Malcomson Pushed as obvious. --- gdb/ChangeLog | 5 +++++ gdb/stack.c | 2 +- gdb/symtab.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8e40537aaf..6decf3dc0a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-11-02 Matthew Malcomson + + * symtab.c (info_functions_command): Initialize quiet flag. + * stack.c (info_args_command): Likewise. + 2018-11-01 Jim Wilson * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p. diff --git a/gdb/stack.c b/gdb/stack.c index abbaf5d4a7..f34d7b2a17 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -2303,7 +2303,7 @@ info_args_command (const char *args, int from_tty) { std::string regexp; std::string t_regexp; - bool quiet; + bool quiet = false; while (args != NULL && extract_info_print_args (&args, &quiet, ®exp, &t_regexp)) diff --git a/gdb/symtab.c b/gdb/symtab.c index cd27a75e8c..7649908d9c 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -4760,7 +4760,7 @@ info_functions_command (const char *args, int from_tty) { std::string regexp; std::string t_regexp; - bool quiet; + bool quiet = false; while (args != NULL && extract_info_print_args (&args, &quiet, ®exp, &t_regexp))