From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 65C73394D88D; Wed, 14 Apr 2021 15:34:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 65C73394D88D From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/27710] remote-notif.c:113: internal-error: void remote_async_get_pending_events_handler(gdb_client_data): Assertion `target_is_non_stop_p ()' failed Date: Wed, 14 Apr 2021 15:34:55 +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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2021 15:34:55 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27710 --- Comment #14 from Tom de Vries --- (In reply to Simon Marchi from comment #10) > (In reply to Tom de Vries from comment #5) > > We have: > > ... > > bool > > target_can_async_p () > > { > > return current_inferior ()->top_target ()->can_async_p (); > > } > > ... > >=20 > > AFAIU, current_inferior ()->top_target () translates to: > > ... > > (gdb) p > > current_inferior_.m_obj.m_target_stack.m_stack[current_inferior_.m_obj. > > m_target_stack.m_top] > > $16 =3D (target_ops *) 0x16c6cd0 > > ... > >=20 > > Exec_ops has type exec_target, which subclasses target_ops without > > implementing a can_async_p override, so we have the default: > > ... > > virtual bool can_async_p () > > TARGET_DEFAULT_RETURN (false); > > ... >=20 > Since the test is related to multi-inferior, my first question would be, = is > the current inferior the right one (one that belongs to the remote target > receiving the notification)? >=20 > We have the remote target in notif_state->remote_target, so maybe we need= to > switch to it before calling target_is_non_stop_p. From a quick look, it > doesn't seem like remote_notif_process cares about the current inferior > though. I just stumbled upon remote_unpush_target, and it seems one remote_target c= an be associated with multiple inferiors. So at this point I'm not sure how o= ne would select the "right" inferior. --=20 You are receiving this mail because: You are on the CC list for the bug.=