From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: Krishna Narayanan 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-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_DOMAIN_SALE_2, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: , X-List-Received-Date: Tue, 08 Mar 2022 10:53:42 -0000 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.