From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7E04B3858288; Tue, 20 Sep 2022 11:28:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E04B3858288 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663673321; bh=wWR/bIhTBgdqne0dgAe3JsMJoxwHS+k3dzOapyCoAzs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bRdN2sqhjBLYgZP8YQtx7iBUjutf9O9AwUpRRd5CwTQf6I87Yh8++hUq6vKozHXww kUUFEdw4F9xImyIJV+3TCXN7RtSz+xz6Sjs3385mLzWVpz/kpKZ3Cp2oK17vBEz0uW kF1cPMJ41MnEVLUxSBWuwOD3qHdEYsOOMqfKsIPs= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug cli/29582] Usability improvement: CTRL+C when debugindod client is downloading a file Date: Tue, 20 Sep 2022 11:28: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: 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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29582 --- Comment #2 from Tom de Vries --- This seems to work: ... diff --git a/gdb/debuginfod-support.c b/gdb/debuginfod-support.c index 5f04a2b38ca..69dad2b9b86 100644 --- a/gdb/debuginfod-support.c +++ b/gdb/debuginfod-support.c @@ -119,6 +119,12 @@ progressfn (debuginfod_client *c, long cur, long total) gdb_printf ("Cancelling download of %s %ps...\n", data->desc, styled_string (file_name_style.style (), data->fname)); + int resp =3D nquery (_("Cancel further downloading for this session?= ")); + if (resp) + { + gdb_printf (_("Debuginfod has been disabled.\n")); + debuginfod_enabled =3D debuginfod_off; + } return 1; } ... --=20 You are receiving this mail because: You are on the CC list for the bug.=