From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67579 invoked by alias); 12 Feb 2019 16:11:19 -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 67526 invoked by uid 89); 12 Feb 2019 16:11:18 -0000 Authentication-Results: sourceware.org; auth=none 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,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wr1-f44.google.com Received: from mail-wr1-f44.google.com (HELO mail-wr1-f44.google.com) (209.85.221.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Feb 2019 16:11:16 +0000 Received: by mail-wr1-f44.google.com with SMTP id t27so3295962wra.6 for ; Tue, 12 Feb 2019 08:11:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=doQCTrbzEBuU9J4SDM5HPh8SRfUq/+gIKjnfZsJueTA=; b=dpnHXx6nuHvweIf6eQBnvBik8rUT/Bc6rAK43CcT0mvFwYifHcxoUD+zUhc/+PvbdK CYbbjalJx1k5rfGKQYBIzGpcpnCQ42Dc3bxhbOTYpHKal+wc3UPgILQ16v8HQKhvtZHQ OuTHjGn89M7qOMUYuT7zp0z2J6rmP81HdamUm2KU5HSSRAdkMxSD/bOq67Iq4fn/qR8d lFmRHugFhH7rx5LJ9CsjKEIsRpUAmjWplHJppzB1UsXy/pkQDKoowS/3kUJPL4v2S7EX 05dIsb3zRDS2b19GtT5b3UbQB4bJkQEz/ZJKrcaD8EG8d5kIsoPVrT0kqs2fMRuJvHen SUKw== Return-Path: Received: from localhost (host81-151-161-9.range81-151.btcentralplus.com. [81.151.161.9]) by smtp.gmail.com with ESMTPSA id e2sm11851590wrw.35.2019.02.12.08.11.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Feb 2019 08:11:13 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Richard Bunt , Andrew Burgess Subject: [PATCH 05/11] gdb/fortran: Enable debugging of the Fortran parser Date: Tue, 12 Feb 2019 16:11:00 -0000 Message-Id: In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2019-02/txt/msg00146.txt.bz2 This commit allows 'set debug parser on' to work for the Fortran parser. gdb/ChangeLog: * f-exp.y (f_parse): Set yydebug. --- gdb/ChangeLog | 4 ++++ gdb/f-exp.y | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gdb/f-exp.y b/gdb/f-exp.y index 5e980944b19..c223d366db3 100644 --- a/gdb/f-exp.y +++ b/gdb/f-exp.y @@ -1211,6 +1211,8 @@ f_parse (struct parser_state *par_state) { /* Setting up the parser state. */ scoped_restore pstate_restore = make_scoped_restore (&pstate); + scoped_restore restore_yydebug = make_scoped_restore (&yydebug, + parser_debug); gdb_assert (par_state != NULL); pstate = par_state; -- 2.14.5