From: Jim Blandy <jimb@codesourcery.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: Add 'target |' support for MinGW
Date: Wed, 12 Apr 2006 18:39:00 -0000 [thread overview]
Message-ID: <vt2odz67i68.fsf@theseus.home.> (raw)
In-Reply-To: <uhd4z44do.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 12 Apr 2006 10:52:51 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Jim Blandy <jimb@codesourcery.com>
>> Date: Wed, 12 Apr 2006 00:04:44 -0700
>>
>> src/gdb/ChangeLog:
>> 2006-04-11 Jim Blandy <jimb@codesourcery.com>
>>
>> Add support for 'target remote |' on MinGW.
>> * ser-mingw.c (struct pipe_state): New structure.
>> (make_pipe_state, free_pipe_state, cleanup_pipe_state)
>> (pipe_windows_open, pipe_windows_close, pipe_windows_read)
>> (pipe_windows_write, pipe_wait_handle): New functions.
>> (_initialize_ser_windows): Register a "pipe" interface based on
>> them.
>
> Thanks.
>
>> + const char *err_msg
>> + = pex_run (ps->pex, PEX_SEARCH | PEX_BINARY_INPUT | PEX_BINARY_OUTPUT,
>> + argv[0], argv, NULL, NULL,
>> + &err);
>> [...]
>> + DWORD bytes_read;
>> + if (! ReadFile (pipeline_out, scb->buf, count, &bytes_read, NULL))
>> + return -1;
>> [...]
>> + DWORD written;
>> + if (! WriteFile (pipeline_in, buf, count, &written, NULL))
>> + return -1;
>
> Do we really want binary I/O in _all_ situations? Can it be that,
> depending on the command on the other side of the pipe, someone would
> like the CR characters to be stripped from the EOLs in the incoming
> stuff? The way you wrote it, AFAICS, binary I/O is always used, no
> matter what.
Well, the pipe is carrying the GDB remote protocol, which is happier
with binary.
next prev parent reply other threads:[~2006-04-12 18:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-12 7:04 Jim Blandy
2006-04-12 7:52 ` Eli Zaretskii
2006-04-12 18:39 ` Jim Blandy [this message]
2006-04-13 8:10 ` Eli Zaretskii
2006-04-13 8:21 ` Jim Blandy
2006-04-13 19:49 ` Michael Snyder
2006-04-18 18:01 ` Jim Blandy
2006-04-25 18:02 ` Jim Blandy
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=vt2odz67i68.fsf@theseus.home. \
--to=jimb@codesourcery.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@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