[PATCH] An implementation of pipe to make I/O communication between gdb and shell.
Abhijit Halder
abhijit.k.halder@gmail.com
Fri Jul 29 15:29:00 GMT 2011
On Fri, Jul 29, 2011 at 6:45 PM, Abhijit Halder
<abhijit.k.halder@gmail.com> wrote:
> This is the implementation of a new gdb command, named 'pipe', to make
> ease of I/O communication between gdb and shell.
> The syntax of this command is shown as follows:
> (gdb) pipe [option] <dlim> gdb-cmd <dlim> shell-cmd
> List of options go with pipe command:
> -r gdb reads output of shell-command from pipe
> -w gdb passes output of a command to shell to process.
> - end of gdb option list
> dlim (delimiter) is a single ASCII character from the set below:
> {|/\'"`#@!$%^} (We actually can remove this restriction).
> The default behaviour of pipe will be to pass the gdb command output to shell.
>
>
> Makefile.in | 4 -
> pipe.c | 194 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> pipe.h | 34 ++++++++++
> ui-file.c | 14 ++++
> ui-file.h | 3
> 5 files changed, 247 insertions(+), 2 deletions(-)
>
>
> Thanks,
> Abhijit Halder
>
A last minute regression happened because of wrong use skip_spaces.
Re-submitting the corrected patch.
Makefile.in | 4 -
pipe.c | 194 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pipe.h | 34 ++++++++++
ui-file.c | 14 ++++
ui-file.h | 3
5 files changed, 247 insertions(+), 2 deletions(-)
Thanks,
Abhijit Halder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-pipe-command-corrected.patch
Type: text/x-patch
Size: 8890 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20110729/a6afa3b8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangeLog
Type: application/octet-stream
Size: 336 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20110729/a6afa3b8/attachment.obj>
More information about the Gdb-patches
mailing list