From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5281138582A2; Mon, 4 Jul 2022 22:13:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5281138582A2 From: "amerey at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug cli/29301] debuginfod prompt in --batch mode Date: Mon, 04 Jul 2022 22:13:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amerey at redhat dot com X-Bugzilla-Status: UNCONFIRMED 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: cc Message-ID: In-Reply-To: References: 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: Mon, 04 Jul 2022 22:13:40 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29301 Aaron Merey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amerey at redhat dot com --- Comment #1 from Aaron Merey --- If --batch is set then gdb should not wait for user input for any y/n promp= t, including the debuginfod first-use notice. The debuginfod notice should def= ault to 'n' when batch mode is on or interactive mode is off. $ cat cmds show interactive-mode br foo run $ gdb --batch -x cmds ps This GDB supports auto-downloading debuginfo from the following URLs: Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal] Debuginfod has been disabled. To make this setting permanent, add 'set debuginfod enabled off' to .gdbi= nit. Debugger's interactive mode is auto (currently off). [...] Is batch mode confirmed to be enabled when the prompt causes hanging? Are y= ou able to provide a reproducer for this? Also has drkonqi experienced any issues with gdb's other y/n prompts? The debuginfod prompt is implemented using the same facilities as the prompt th= at appears when you try to set a breakpoint on a function that gdb cannot find. This prompt also defaults to 'n' when batch mode on or interactive mode off: $ gdb --batch -x cmds ps [...] Function "foo" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answer= ed N; input not from terminal] [...] If the debuginfod prompt is hanging then this prompt ought to hang too. --=20 You are receiving this mail because: You are on the CC list for the bug.=