From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B5E6A38308A0; Sun, 18 Sep 2022 03:25:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5E6A38308A0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663471529; bh=6Gcusve/LU7bH3rerHXMBN6sbo0MhrH1pu0vyS1T0X8=; h=From:To:Subject:Date:From; b=nBpMFerxFqH8eegUb+Ld9TALvwpWbp143hJk367JCibHEvyXhXLKubWxPLNsPZp7E 6Gqckeo/cyAbjI4Qcjim0VZ+LrWY2fPQZEWiqoDtbvbEI4CeZHDz5csL2DfCYokp2F 0eUSHwTufIBLIbyphGrPykIjuVbzY+UE/T+y7A4g= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29581] New: [gdb/debuginfod] Improve cancelling multiple downloads Date: Sun, 18 Sep 2022 03:25:29 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29581 Bug ID: 29581 Summary: [gdb/debuginfod] Improve cancelling multiple downloads Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- When loading an exec into gdb, and libdebuginfod is enabled and available, a single download of debug info is done. But after starting the exec, shares libs will be loaded, and downloads will= be issued for each of them, which can be many. If you want to cancel a single download, you press ^C, and gdb will continue with downloading the debuginfo for the next shared lib. But if you want to cancel all following downloads, there's no option but to= ^C repeatedly, all he way to the eventual gdb prompt. IWBN if this process was streamlined somewhat. A simple idea to improve on this would be to upon ^C present the user with a choice prompt: ... Download cancelled, continue downloading more debug info (y/n)? ... If n is replied, the downloading of further debug info for other shared libs would be cancelled. The question is what scope that choice would have. We could simply interpr= et it to mean "set debuginfod enabled off". Alternatively, we could define a download session, and have it be valid for= the length of the download session, which could last till for instance the next= gdb prompt. --=20 You are receiving this mail because: You are on the CC list for the bug.=