Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@is.elta.co.il>
To: Joel Brobecker <brobecker@act-europe.fr>
Cc: gdb@sources.redhat.com
Subject: Re: Porting GDB-5 to native Windows (using MINGW32)...
Date: Thu, 07 Jun 2001 07:40:00 -0000	[thread overview]
Message-ID: <Pine.SUN.3.91.1010607173324.1521I-100000@is> (raw)
In-Reply-To: <20010607160117.C24677@act-europe.fr>

On Thu, 7 Jun 2001, Joel Brobecker wrote:

> 1) GDB-5 event loop.
>   
>    This part of the code is really UNIX oriented and will be quite difficult  
>    to port to native Windows platforms. The main problem is the use of a
>    select statement on files descriptors. The select C routine under Windows
>    works only on socket.

I suggest to write your own version of `select' and use it instead.  All 
you need is to call low-level OS functions which will tell you whether a 
file or device has some input pending, or is ready to accept output.  Disk 
files can be assumed to always be ready, so you are left with the 
keyboard and pipes.

Failing that, you could still use the -noasync option which disables the 
async operation.

> 2) readline module
> 
>    The readline module uses some libraries not ported to Windows.
> 
>    For example it uses needs <termios.h>, <termio.h> or <sgtty.h> this is not
>    available with GCC under Windows. It needs also <pwd.h> which is
>    missing. This one should not be to hard to implement though.

Indeed.  The emulation of these features is relatively easy; you could 
look at what the DJGPP (a.k.a. MS-DOS) port of readline does.

> Is there any patch already available that fix that ?

I know for a fact that GDB 4.18 was available in the MinGW port; perhaps 
some of these problems (readline, for sure) are already solved there.

> What is the plan about support of GDB 5 under native Windows ?

I don't think there is a plan, but I might be mistaken.

> We have eard of a readline port available on the net, do you expect this one
> to be ok to build GDB-5 ? Have anybody tried it ?

Readline is not maintained by the GDB team, it is maintained separately.  
The GDB maintainers generally prefer that any patches for external 
packages such as readline are submitted to the maintainers of those 
packages; then they are automatically included in the next GDB release.

In other words, your best bet would be to submit any MinGW-related 
patches to readline to the readline maintainer.


      reply	other threads:[~2001-06-07  7:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-07  7:01 Joel Brobecker
2001-06-07  7:40 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SUN.3.91.1010607173324.1521I-100000@is \
    --to=eliz@is.elta.co.il \
    --cc=brobecker@act-europe.fr \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox