From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 37B0A3858C54; Fri, 1 Jul 2022 22:29:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 37B0A3858C54 From: "mark at klomp dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29316] New: gdb-add-index always generates an error when libdebuginfod wasn't compiled in Date: Fri, 01 Jul 2022 22:29:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2022 22:29:06 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29316 Bug ID: 29316 Summary: gdb-add-index always generates an error when libdebuginfod wasn't compiled in Product: gdb Version: 12.1 Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: mark at klomp dot org Target Milestone: --- gdb-add-index contains: $GDB --batch -nx -iex 'set auto-load no' \ -iex 'set debuginfod enabled off' \ -ex "file $file" -ex "save gdb-index $dwarf5 $dir" So it always disables debuginfod. But gdb/debuginfod-support.c has: /* Set callback for "set debuginfod enabled". */=20 static void=20 set_debuginfod_enabled (const char *value)=20 {=20 #if defined(HAVE_LIBDEBUGINFOD)=20 debuginfod_enabled =3D value;=20 #else=20 error (NO_IMPL);=20 #endif=20 } So when not compiled against libdebuginfod that will always generate a erro= r on stderr. This causes some testcase in dwz to FAIL, because any output to stderr is s= een as failure. It also makes package build logs (if they use gdb-add-index) somewhat noisy. --=20 You are receiving this mail because: You are on the CC list for the bug.=