From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46737 invoked by alias); 28 Oct 2019 18:02:06 -0000 Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org Received: (qmail 46729 invoked by uid 89); 28 Oct 2019 18:02:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.3 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=press, H*x:WebService, H*x:Mozilla, H*UA:WebService X-HELO: sonic314-20.consmr.mail.ir2.yahoo.com Received: from sonic314-20.consmr.mail.ir2.yahoo.com (HELO sonic314-20.consmr.mail.ir2.yahoo.com) (77.238.177.146) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 28 Oct 2019 18:02:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1572285720; bh=BVrWvSTMqZ7JdMd6FqTIwkGvVfWdwllndjVQVa6+0R0=; h=Date:From:To:Subject:References:From:Subject; b=EtLwQMiEA4UWOBFLAmSYWwdpHibl9xAszq8Q3b2XrQLTU6k7atoEOTVA2SO6B87OApHcAtVs4D7neJ+UocK6mkeYEXuesGg+VAM4TQs+p1wM58CflmO84i1yqgMEqrLgYGv5igQpcQcv4u01AGTq0JboKHDaakYuGvIgZUWq1WuF271gJfGuxGVl+RRTKnaU+4yNum1HsgtEO6Kvg+ZuHIoPtqIZp1LLT1Q/rBAPXcIA3PG/QQBezHOw1p2pcfl+fGDyJAXZ4dHQGrTV0lxeKOt9AeCcW6Js/C4FLyV5o9vL1jOBsSz1hMYV0uSeCKzy6UnGLi5QWQXujwVzj+cyZA== Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ir2.yahoo.com with HTTP; Mon, 28 Oct 2019 18:02:00 +0000 Date: Mon, 28 Oct 2019 18:02:00 -0000 From: "Hannes Domani via insight" Reply-To: Hannes Domani To: insight@sourceware.org Message-ID: <847720019.2305531.1572285718675@mail.yahoo.com> Subject: mingw build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <847720019.2305531.1572285718675.ref@mail.yahoo.com> X-IsSubscribed: yes X-SW-Source: 2019-q4/txt/msg00008.txt.bz2 Hello I built the latest source from https://sourceware.org/git/?p=3Dinsight.git,= and can start the insight executable. But after startup the window immediately freezes, I can do nothing at all. =46rom what I can tell there is no message loop running for the windows. It first thought it's supposed to be the message loop in Tcl_WaitForEvent()= , but that one is overridden with gdbtk_notifier_wait_for_event(), so that's not it. As a workaround, I figured I could just (mis-)use the mingw gdb_select() im= plementation: --- a/gdb/mingw-hdep.c +++ b/gdb/mingw-hdep.c @@ -124,13 +124,24 @@ gdb_select (int n, fd_set *readfds, fd_set *writefds,= fd_set *exceptfds, =C2=A0=C2=A0 gdb_assert (num_handles <=3D MAXIMUM_WAIT_OBJECTS); -=C2=A0 event =3D WaitForMultipleObjects (num_handles, +=C2=A0 event =3D MsgWaitForMultipleObjects (num_handles, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 handles, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0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0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : INFINITE, +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 QS_ALLINPUT); +=C2=A0 if (event =3D=3D WAIT_OBJECT_0 + num_handles) +=C2=A0=C2=A0=C2=A0 { +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 MSG msg; +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 while (PeekMessage(&msg, NULL, 0, 0, PM_REM= OVE)) +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 { +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TranslateMessage(&msg); +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 DispatchMessage(&msg); +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return 0; +=C2=A0=C2=A0=C2=A0 } =C2=A0=C2=A0 /* EVENT can only be a value in the WAIT_ABANDONED_0 range if = the =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 HANDLES included an abandoned mutex.=C2=A0 S= ince GDB doesn't use =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mutexes, that should never occur.=C2=A0 */ Like this I can actually start doing something, but this doesn't look corre= ct to me. Also this is fine as long as the target isn't running because then I get st= uck in target_wait. >From the comments above x_event() it seems that deprecated_ui_loop_hook() i= s supposed to take care of this, and it actually is called in windows_nat_target::wait(), but then I just ge= t into Tcl_WaitForEvent() as described earlier. I'm also having a lot of problems with the UI, like error message dialogs w= hen I press any button (even if it works), but that's secondary until the message loop is working. Regards Domani Hannes