From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41198 invoked by alias); 8 Aug 2017 14:53:42 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 41183 invoked by uid 89); 8 Aug 2017 14:53:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=duplex, Hx-spam-relays-external:Postfix, H*RU:Postfix, jni X-HELO: smtprelay.hostedemail.com Received: from smtprelay0037.hostedemail.com (HELO smtprelay.hostedemail.com) (216.40.44.37) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Aug 2017 14:53:39 +0000 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 5395F100ED6A4; Tue, 8 Aug 2017 14:53:38 +0000 (UTC) X-Session-Marker: 6A62656E6973746F6E40756B322E6E6574 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,jon@beniston.com,:::::,RULES_HIT:10:41:355:379:541:542:599:988:989:1155:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1587:1593:1594:1711:1730:1747:1777:1792:2110:2393:2559:2562:3138:3139:3140:3141:3142:3353:3865:3866:3867:3868:3870:3871:3872:3873:3874:4250:5007:6117:6119:7903:10004:10400:10848:11026:11232:11658:11914:12296:12438:12663:12760:13069:13311:13357:13439:14096:14097:14721:21080:21324:21627:30012:30036:30054,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: cork29_27ebd093bf4a X-Filterd-Recvd-Size: 1918 Received: from LoftPC (cpc97974-croy24-2-0-cust112.19-2.cable.virginm.net [77.99.44.113]) (Authenticated sender: jbeniston@uk2.net) by omf13.hostedemail.com (Postfix) with ESMTPA; Tue, 8 Aug 2017 14:53:36 +0000 (UTC) From: "Jon Beniston" To: Cc: , Subject: Re: new-ui and Windows Date: Tue, 08 Aug 2017 14:53:00 -0000 Message-ID: <008b01d31056$1e7348e0$5b59daa0$@beniston.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-SW-Source: 2017-08/txt/msg00023.txt.bz2 >I am looking to support the new-ui functionality[1] for Eclipse CDT on > Windows [2]. > I would like to know if new-ui is supposed to work on Windows with > mingw host? I'm just looking at this as well, but for a Cygwin based GDB, rather than mingw. >> The new-ui attempts to open a tty with >> top.c:open_terminal_stream() which calls open(). On Windows, AFAIK, >> this can only open a normal file. >What kind of file would you like to pass to gdb? My original idea >was that on Windows you'd pass down the path to a bidirectional/duplex >named pipe, and things would Just Work (TM). Doesn't open() work on >such named pipe paths? If not, then the "struct serial" abstraction >seems to know about named pipes already (ser-mingw.c), so maybe it'd work >to adjust the new-ui code to use serial_open instead. I think using serial_open would be quite handy, as presumably this would allow a TCP connection to Eclipse? If so, I suspect this would be a lot easier to support in Eclipse, as there would be no need for JNI code to interface with Cygwin PTYs or Windows named pipes - and it even could be the same Java code for MacOS and Linux too. Do you see any problems with that? Cheers, Jon