From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9E18E3857C71; Thu, 9 Feb 2023 14:35:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E18E3857C71 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675953315; bh=bLGJf8MawSeQ6AlO3ht/pZU/eCiqC/+P3S69z4cGJrY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BFXkVDqwO2fRVVqnap3H1l471I9ehkJ9yRs4sQ9IXPID/m9aF/osWPiRdXHjQEtMI kIy7vGlhKwlcosRmBhLGVjOqc7KVtMk01VnvD3hv02Hp6XozDwkYRSv6sjpz5zAXZK W10adHPHZ1Rc27yBvuyDGFe5t7cweM07WUi2wtVw= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29854] ^C should interrupt synchronous wait on cooked index completion Date: Thu, 09 Feb 2023 14:35:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey 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=3D29854 --- Comment #8 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D307733cc0fa8= 64fcb92f4c308a0a27d17552df37 commit 307733cc0fa864fcb92f4c308a0a27d17552df37 Author: Tom Tromey Date: Tue Dec 6 08:05:28 2022 -0700 Let user C-c when waiting for DWARF index finalization In PR gdb/29854, Simon pointed out that it would be good to be able to use C-c when the DWARF cooked index is waiting for finalization. The idea here is to be able to interrupt a command like "break" -- not to stop the finalization process itself, which runs in a worker thread. This patch implements this idea, by changing the index wait functions to, by default, allow a quit. Polling is done, because there doesn't seem to be a better way to interrupt a wait on a std::future. For v2, I realized that the thread compatibility code in thread-pool.h also needed an update. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29854 --=20 You are receiving this mail because: You are on the CC list for the bug.=