From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8CE023856956; Tue, 13 Sep 2022 07:40:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8CE023856956 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663054826; bh=Vh0xqppdhq64nP7t7xbBrzdwy5XEz7l/QaxGy2MaWK4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=df6SHG4g7nK6gQxLs5ObyaAKoJX+rtrQdIFunS1xAuIXLOJLBHtCVWSfVgGmqe9zd 6BNMemWraxkS8ZTEfGI+pdlRZl9wF1ntg1DyTAqRWqxjiRRnuTig4IQLAFvKUMYmj7 WOx+dKVdYKeT+KQbtq4k5/xfxXDa+zWJgq+eBSVA= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/27813] FAIL: gdb.linespec/cpcompletion.exp: incomplete-scope-colon: tab complete "b cpls.cc:'ns_incomplete_scope_colon_test::i" (clearing input line) (timeout) Date: Tue, 13 Sep 2022 07:40:26 +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: 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=3D27813 --- Comment #9 from Tom de Vries --- Piecing together the information, I see the following scenario: - expect sends "\t" - gdb detects the stdin event, and calls rl_callback_read_char - readline interprets the \t as completion, tries to complete, fails to do = so, outputs a bell (^G) - expect sees the bell, and proceeds to send the signal - readline is still in the call to rl_callback_read_char, and stores the signal in _rl_caught_signal - readline returns from the call to rl_callback_read_char, without having handled _rl_caught_signal - gdb goes to wait for the next event - expect times out waiting for "Quit" - expect sends "\n" - readline now handles both _rl_caught_signal and "\n", but in the opposite order --=20 You are receiving this mail because: You are on the CC list for the bug.=