Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* new-ui and Windows
@ 2017-05-15 12:39 Jonah Graham
  2017-05-15 19:18 ` Eli Zaretskii
  2017-05-15 22:49 ` Pedro Alves
  0 siblings, 2 replies; 7+ messages in thread
From: Jonah Graham @ 2017-05-15 12:39 UTC (permalink / raw)
  To: gdb

Hello gdb devs,

I am looking to support the new-ui functionality[1] for Eclipse CDT on
Windows [2]. I have been using it on Linux and have been enjoying it.
Having a full GDB CLI available within Eclipse is a great improvement.

I would like to know if new-ui is supposed to work on Windows with
mingw host? 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.

If this is supposed to work on Windows already, an example of how to
do it would be great. I can take that and see where I can get next.

Any thoughts much appreciated.
Thanks,
Jonah


[1] https://sourceware.org/ml/gdb-patches/2016-05/msg00098.html
[2] https://bugs.eclipse.org/516371

~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: new-ui and Windows
@ 2017-08-08 14:53 Jon Beniston
  2017-08-08 15:09 ` Pedro Alves
  0 siblings, 1 reply; 7+ messages in thread
From: Jon Beniston @ 2017-08-08 14:53 UTC (permalink / raw)
  To: gdb; +Cc: palves, jonah

>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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-08-08 15:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-15 12:39 new-ui and Windows Jonah Graham
2017-05-15 19:18 ` Eli Zaretskii
2017-05-15 22:49 ` Pedro Alves
2017-05-16  8:52   ` Jonah Graham
2017-05-16 18:34     ` Eli Zaretskii
2017-08-08 14:53 Jon Beniston
2017-08-08 15:09 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox