[RFA 0/4] Implement | (pipe) command.
Abhijit Halder
abhijit.k.halder@gmail.com
Mon Apr 22 20:45:00 GMT 2019
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.
>
>
>
More information about the Gdb-patches
mailing list