From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) by sourceware.org (Postfix) with ESMTPS id 720083858D33 for ; Sat, 2 Dec 2023 22:41:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 720083858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 720083858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:4860:4864:20::33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701556888; cv=none; b=DNHMIOBNhYCXKUjmOzPSZ4faoZpVINsBV2RkdxlBHRNVvOQCwKwuBTuorJYE1MM6Y2diRBLF5Pykk7qIdBBouX8kRvXXqRR1tDm2bzMojE5OhWQG1VNuEM8N7vHkUOdsXp0xYtvB8Q6PkWpfxJwjlq3tydjuVrtqn1CFX42Ho8Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701556888; c=relaxed/simple; bh=FChpfGGXH/LuVtUW8Gsk36dCzCBMaQzup4J5zNKR1Dc=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=LbgzbVeHqvK7u1uy4YTVkTizuTBdxzXUmo23Td52lWXnuVw0tXdaAiSe/ynLNFZdyaAzkiBV4dV+vNzoOdX3kJWIPY8BBxgDrQx/+Uzic97+kjLGYvrqOpgWcBVYqcDkbsJceyyk0geGOmZ8lWTHQ39UbS1jUT5cTPFNPF2xOBc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-1f5d34235dbso904045fac.0 for ; Sat, 02 Dec 2023 14:41:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701556886; x=1702161686; darn=gcc.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=FChpfGGXH/LuVtUW8Gsk36dCzCBMaQzup4J5zNKR1Dc=; b=OjqK/LuzHfvn6LQ7pL/FqjeHWM6wtcmG0harChX5KhW+Pe57OJxcUx9bIB9Jq4yckb 9D1UuOv6bdGnuzZV+BpKG3xEnm8SZB0AM8y9qlHii90rBCKtZpq6qpMUjvhHoCXc6w8N 0QtbJ42uOGA7GetFRmKjE9oO90y/g80WIFWfuO+UkZF33EN5TVpbaJrpTciUE7/Z2iJa ojdT8UM0Ui5wJYh8QqOvhkBCKTx/jVGlt9sefd/lJNqOJGwOLASKKxFw0dxhpi3d6tTp Tbz0Ar0WByTCdu2ozUVFJZjEtUQMKws6AKk8e/8X8OH+/RTQMXgO0xFD29F7xLyzObzr vegQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701556886; x=1702161686; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=FChpfGGXH/LuVtUW8Gsk36dCzCBMaQzup4J5zNKR1Dc=; b=B6r6OBNVbgi2bE89KtJANAjIhiOmD9LLJVHE9BF5Nzo5fhchuKHZmK05q8s7hGks8C dbrQD9r9Daz38TQLGTiXUw3PPD1PzBbnX34nlW4lzUgVdry6tAEUurSRXrx8/f80s3rl I+aIOQpSayqgG0Civjf418dypXj4m5phH0bASGLxsR5VWydRM0oqzEguQWRmUAdJqJ0B 0MeXx1venTXWT2h81J/+FlH9sU6fLIhBCgEi2HoNyH/3ad26FuPOj7vyfcyAQr1+ftkd t1imHS58RwtnccXh5d0rzTVMjXM5sN87exQ7vOC884qhUKGVDcanFNIhPTU3FByy0dto 7S0g== X-Gm-Message-State: AOJu0Yxzr3wnZbEj5e8QdllPd0A+BkLTtSXDu+uLxUN7DZREPX38CPOE A5y2r3eu5W+Mn42LWKQ+GAZGB7OfxXfjVQ1A8sgRWi/jzLmvmA== X-Google-Smtp-Source: AGHT+IFB2GTXeVcIxCld8mbRpvVLE3g9BN38ZUsdgaOiunW7qk0idLtnD6q5mILtQYaMh3q71r9yuYaBVXtOGimKmX4= X-Received: by 2002:a05:6870:7a0b:b0:1fb:788:e8aa with SMTP id hf11-20020a0568707a0b00b001fb0788e8aamr806608oab.37.1701556886332; Sat, 02 Dec 2023 14:41:26 -0800 (PST) MIME-Version: 1.0 From: Stan Srednyak Date: Sat, 2 Dec 2023 17:41:15 -0500 Message-ID: Subject: Debugging the tree object constructed by cp_parser To: gcc@gcc.gnu.org Content-Type: multipart/alternative; boundary="000000000000c668cf060b8e9511" X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000c668cf060b8e9511 Content-Type: text/plain; charset="UTF-8" Dear GCC community, I am assigned the task to debug the trees as being produced by the cp_parser. I was able to print some of the trees using the debug_tree() function. But I am still confused as to where is the tree object that corresponds to the translation unit being parsed. There is no such field in cp_parser, and in the few tiers of functions calls starting from parse_file() function that I followed so far, I was not able to find any variable remotely similar to the AST of functions/structs etc. that must be constructed by this great piece of software. I would very much appreciate any explanation from the great experts in gcc on this mailing list. I posted a thread at gcc-help, but apparently it is too obvious of a question to be addressed there. Thanks in advance, sincerely yours, Stan Srednyak --000000000000c668cf060b8e9511--