From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) by sourceware.org (Postfix) with ESMTPS id DEF65385F014 for ; Mon, 20 Mar 2023 17:06:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DEF65385F014 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-x929.google.com with SMTP id h34so8389579uag.4 for ; Mon, 20 Mar 2023 10:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679332016; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Onkien0XviVTGcb8BByhb8HHuTxPgCEPYZ6FJWlB4N4=; b=UwOZZ2voUrQtwqKGDaoesH+kcfT4ee0Hr4njSCufqZ/9zswGWIZYOL8n3sMvguyy9y 6HIe0u2ZFe8eHz4j3VJiCGM5OW/7u1lLgBh1CpARqMKfNmFQ3HnvM1Xl2aLyOVXbVkwd Z41TeUXxPMwHtTP3tzNKsiTQYPk9GRusLb+VGlIGZKppzaAiltnlt4YTTQSpi34SV7pf n9swCBelIHYCKhstCTuIv5lAryVQcQtsbpwEDIXFEDh11L9t+O0h5TKo9rtuvIbmHLlb V26AkSnV/4JCllJr+i9/2DaKphXS4rrNhcTKVZFH3GWYFkhxgt07nGlSdbgr5bpMaG8M jyKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679332016; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Onkien0XviVTGcb8BByhb8HHuTxPgCEPYZ6FJWlB4N4=; b=KQ7JQBNCs+z28b1bW3F0HGeO37FBL/G5KrKPxi66dHQfAYbpdT8qfdssn5Ve4bpCHg /jnrVB/8NxoikZl7R37RmFDyT0arXQHZi1sQhfSM5AQ+myxcgQZ2ELTgDyYB7cIbCBge Qgx3diEHOwPraNR2zxG6xdMtfnS70MisXQCVkHi3UAG2Jilw62RtOfy86yVLJyJ0uCYw jHTTA3EgWyYwWzGChCI/QyBX3AIE5fLikRTc+eKr9ymCAnWvcpowLmrs8yAeYpBfffli IRTSyfvxwjgqVnhW0yD2VcOaL7DzmRJoIiUsKs5K7B4LIS3+pXlr7aquensWHzlwG1R7 z3+w== X-Gm-Message-State: AO0yUKViHJK+nOuBna9EUoMe21T5LPY9HuOskVTkzNrAWqyYy9zeSHbK zNSJJFkZ0en4fX3XGcwkCF/sSw41axxqwaQmmGgZFlflPGSzvQ== X-Google-Smtp-Source: AK7set/8NS2nXpVWiU2RnbUXVzojU7aa8cfg/3dSmGYSGm56rGmUNnIAMJSmdgCWOxvmqMD32ZDHAWylWBg9CP+cWy4= X-Received: by 2002:a1f:2897:0:b0:40e:fee9:667a with SMTP id o145-20020a1f2897000000b0040efee9667amr4143529vko.3.1679332015957; Mon, 20 Mar 2023 10:06:55 -0700 (PDT) MIME-Version: 1.0 From: Rishi Raj Date: Mon, 20 Mar 2023 22:36:43 +0530 Message-ID: Subject: [GSOC] getting "gdb: unrecognized option '-dumpdir'' while trying to debug gcc using gdb To: gcc@gcc.gnu.org, dmalcolm@redhat.com, mjambor@suse.cz Content-Type: multipart/alternative; boundary="000000000000456bbc05f757f487" X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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: --000000000000456bbc05f757f487 Content-Type: text/plain; charset="UTF-8" I am sorry for the previous messed-up reply :(. I was trying to reply back to my previous mail thread but mistakenly replied to the entire digest::((. Thanks, David and Martin, for the heads up, and I am sorry for the late reply due to health issues. Anyways I could emit the warning "hello world, I am function foo.". After that, I tried debugging using the` ../gcc -wrapper gdb test.c`(gcc binary is in parent folder) but I am getting this error "gdb: unrecognized option '-dumpdir' Use `gdb --help' for a complete list of options.". I googled it and got this on Bugzilla (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53195), but it has already been fixed. These are the gdb configurations during the build: Using built-in specs. COLLECT_GCC=../gcc COLLECT_LTO_WRAPPER=gcc-dir/libexec/gcc/x86_64-pc-linux-gnu/12.2.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../project/configure --prefix=gcc-dir --enable-languages=c,c++ --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.2.1 20230302 [OG12] (GCC) COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-' Can anyone point out how to resolve this or if I am missing something during build? Thanks and regards Rishi Raj --000000000000456bbc05f757f487--