This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA 0/4] Implement | (pipe) command.


Hi Philippe,

If I see it correctly, the syntax of the command is
pipe <gdb command> | <shell command>
If the gdb command contains '|' the above syntax will be a problem.
I suggest below syntax
pipe <delimiter> <gdb command> <delimiter> <shell command>
Here the advantage is the delimiter can be anything and conveniently be
chosen by the user.

I made a similar attempt few years back.
https://sourceware.org/ml/gdb-patches/2012-01/msg00098.html

This you can take this as a reference.

Thanks,
Abhijit Halder



On Sun, Apr 21, 2019 at 2:52 AM Philippe Waroquiers <
philippe.waroquiers@skynet.be> wrote:

> This patch series adds the pipe command, that allows to send the output
> of a GDB command to a shell command.
>
> The first patch allows a command to repeat a previous command.
> Currently only used by the pipe command added in this series, but
> the idea is that the slash command will also use this feature to
> repeat a previous command.
>
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]