[PATCH] An implementation of pipe to make I/O communication between gdb and shell.

Abhijit Halder abhijit.k.halder@gmail.com
Fri Aug 5 10:51:00 GMT 2011


On Fri, Aug 5, 2011 at 4:06 PM, Pedro Alves <pedro@codesourcery.com> wrote:
> On Friday 05 August 2011 11:24:54, Abhijit Halder wrote:
>
>> > the delimiter would be `dthread'.  I see no reason to
>> > require it to be a single character.
>> >
>> Just a thought. Can't using a single character make the life simple?
>
> To who?  I imagine myself stumbling on some expression in some
> language that conflicts with |, and without much thinking,
> just writing:
>
>  pipe XXX randomexpr XXX randomcommand
>
> instead of having to think, or possibly try/fail more than one
> time, which characters are allowed and wouldn't conflict with
> both randomexpr and randomcommand.
>
Here I got your point. Thanks.
>> That will surely reduce the options for delimiter. But as you said,
>> like sed this can be used.
>
> Well, I said like a grandchild of sed and cat EOF, the latter
> refering to "here documents", which accept strings as
> delimiters.  :-)  Sorry for not being clear.
>
> --
> Pedro Alves
>



More information about the Gdb-patches mailing list