From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id xDjNH9E1J2LOMAAAWB0awg (envelope-from ) for ; Tue, 08 Mar 2022 05:54:09 -0500 Received: by simark.ca (Postfix, from userid 112) id 6E8E11F3CA; Tue, 8 Mar 2022 05:54:09 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_REPLYTO_END_DIGIT,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 9942B1F0D2 for ; Tue, 8 Mar 2022 05:54:08 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4C9AF385C401 for ; Tue, 8 Mar 2022 10:54:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C9AF385C401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1646736847; bh=JRJGmSVyVV03ABh8hf3cR7pDZd3cwrRS2EfpVZttsus=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=sges9SH3I9jZ6SVeu3dn5rImhCOybqGH4bwJW/qEMl38bCd6fDVqUK0RtIXLP1fW/ 6W1gKEVlGXrEe+EdzO2WcJr0M2fjgGkzj2XDJpovvmkKMHXx2A8p0e8kGIpE/KDqNb PiRSUoxRuJViyBZJnKYoHWxZ1sSJqbVZ/07UGWoE= Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id 78CE23858C83 for ; Tue, 8 Mar 2022 10:53:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 78CE23858C83 Received: by mail-pl1-x62b.google.com with SMTP id w4so6336606ply.13 for ; Tue, 08 Mar 2022 02:53:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JRJGmSVyVV03ABh8hf3cR7pDZd3cwrRS2EfpVZttsus=; b=n8lvCEiPAZqNEMt1N+sjMK6JEF4s9bPpwxsYEFTiPyZLSiV6nZCj5b0jgFJQsCNGgo xtfawRN9dq+E3+bjndaP7oS9Tmv/9odsyFONGtzHo8NUpkPFQLOMlDxFxvkkt/bnlfze EJ7lZxXUcz6d0wgBGURYnaMx7idXQ2vi2eDCDwqjWfC9f1CHbLBTr0EoLN++b4zEiTyD 1fQ3D8nSNp+XlqGwSWJLG0kzLZA4RX/dsf2J/kWhE2pSivY293QeTtYkGwZd6qDzZvrT 7LqcJiTivD5grYkl4PxVOroq6cMxmV9uA75qOqB69cF/tKXJr5ZR90BBxgiQXgifeQ0I 7aIA== X-Gm-Message-State: AOAM532uJsSAXaZPzfhLTN8vZl2lFZktINlcrO+bzVdlAfW/qcO1TbXr K06YAYdvje5gYoOQVDem0eU6WMXp8KWGtn0CtQPHmrhWHMRv6g== X-Google-Smtp-Source: ABdhPJxUQemr0AK8+jSjsApo9fSkXn9UHCRvxEWEjx4bFT566UaI/J2hTE49WZdOaNrhXYRYXxjq+Lpz+zleZjZVpro= X-Received: by 2002:a17:902:e890:b0:151:e9c1:6386 with SMTP id w16-20020a170902e89000b00151e9c16386mr9818181plg.40.1646736820172; Tue, 08 Mar 2022 02:53:40 -0800 (PST) MIME-Version: 1.0 Date: Tue, 8 Mar 2022 16:23:28 +0530 Message-ID: Subject: gdb error while running preprocessed file in gcc directory. To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Krishna Narayanan via Gdb Reply-To: Krishna Narayanan Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hello, I am Krishna Narayanan,second year undergraduate interested in compiler related domain.I am trying to run a preprocessed file .i with the command "gcc 93432.i -wrapper gdb,--arg" which gives me the below warning and then a fix to remove this warning by setting an add-auto-load-safe-path,as given I added the said path in the .gdbinit in the home directory but that instead gave me a gdb error.I am not able to resolve this issue,I am doing this on the gcc 11.2.0 build. warning: File "/home/krishna/latest/gcc/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load". To enable execution of this file add add-auto-load-safe-path /home/krishna/latest/gcc/.gdbinit line to your configuration file "/home/krishna/.gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "/home/krishna/.gdbinit". On adding the add-auto-load-safe-path in the home directory(.gdbinit) ,it gives me this below error after running the same command in the gcc build directory "gcc 93432.i -wrapper gdb,--arg" Breakpoint 1 at 0x5b024b Breakpoint 2 at 0x12a7db0 Breakpoint 3 at 0x579050 Breakpoint 4 at 0x578580 File tree.h will be skipped when stepping. File is-a.h will be skipped when stepping. File line-map.h will be skipped when stepping. File timevar.h will be skipped when stepping. Function rtx_expr_list::next will be skipped when stepping. Function rtx_expr_list::element will be skipped when stepping. Function rtx_insn_list::next will be skipped when stepping. Function rtx_insn_list::insn will be skipped when stepping. Function rtx_sequence::len will be skipped when stepping. Function rtx_sequence::element will be skipped when stepping. Function rtx_sequence::insn will be skipped when stepping. Function INSN_UID will be skipped when stepping. Function PREV_INSN will be skipped when stepping. Function SET_PREV_INSN will be skipped when stepping. Function NEXT_INSN will be skipped when stepping. Function SET_NEXT_INSN will be skipped when stepping. Function BLOCK_FOR_INSN will be skipped when stepping. Function PATTERN will be skipped when stepping. Function INSN_LOCATION will be skipped when stepping. Function INSN_HAS_LOCATION will be skipped when stepping. Function JUMP_LABEL_AS_INSN will be skipped when stepping. Traceback (most recent call last): File "", line 1, in File "/home/krishna/latest/gcc/../../gcc-11.2.0/gcc/gdbhooks.py", line 152, in tree_code_dict = gdb.types.make_enum_dict(gdb.lookup_type('enum tree_code')) gdb.error: No enum type named tree_code. .gdbinit:15: Error in sourced command file: Error while executing Python code. I would be grateful if you could help me to resolve this error.Can you please guide me where I went wrong? Thanks, Krishna Narayanan.