From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D909039484A2; Mon, 5 Dec 2022 19:43:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D909039484A2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670269421; bh=kS7026ulNsOJGtZY1hYdtdRW721SqFSrghToX2r6wH4=; h=From:To:Subject:Date:From; b=GEDu7FxEbCOzfkyIIKC5iAiv4C4dtrAQCBGFVJD9XK1wR80O3thOyutcJC8btwHHu bR+3sEsBcWwq9TszKmxeWC9NBHqg39VFJnUseCoY6eeJcPXfOhkkkiymf2+TXb/gkS v76jPxCT3oJ1rxe3pAlx+PBh1g6We74lXykcMXzA= From: "simon.marchi at polymtl dot ca" To: gdb-prs@sourceware.org Subject: [Bug gdb/29854] New: ^C should interrupt synchronous wait on cooked index completion Date: Mon, 05 Dec 2022 19:43:41 +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: simon.marchi at polymtl dot ca 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=3D29854 Bug ID: 29854 Summary: ^C should interrupt synchronous wait on cooked index completion Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: simon.marchi at polymtl dot ca Target Milestone: --- Using commit 09a5d200e6166522e0d0a9276bd6b2227ac5ace1, I do: $ ./gdb -nx -q --data-directory=3Ddata-directory testsuite/outputs/gdb.gdb/selftest/xgdb Reading symbols from testsuite/outputs/gdb.gdb/selftest/xgdb... (gdb) b captured_main ^C Creating the breakpoint takes some time, doing ^C does nothing. Attaching = to GDB, I understood that it's because the main thread is waiting on the `table->wait ()` call, waiting for worker threads to finish building the co= oked indices. Not sure how we can do it, but it would be nice for ^C to interru= pt that table->wait call and generate a gdb_exception_quit. --=20 You are receiving this mail because: You are on the CC list for the bug.=