Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Cleber Rosa <crosa@redhat.com>
To: gdb-patches@sourceware.org
Cc: areis@redhat.com, palves@redhat.com
Subject: [PATCH 0/4]: GDB: inferior standard I/O redirection
Date: Mon, 05 Oct 2015 11:47:00 -0000	[thread overview]
Message-ID: <1444045617-14526-1-git-send-email-crosa@redhat.com> (raw)

GDB currently relies on shell capabilities to implement the
redirection of standard I/O[1].  This is limited and may conflict with
situations where the shell is not wanted at all.

These patches implement commands at the CLI and MI level that allow
the user to select each of the streams (input, output and error) that
they may want to have redirected while running their inferior process.

This happens to be a feature needed for the Avocado[2] test
framework, which has some interesting integration capabilities with
GDB.

This is a followup of the response for a RFC sent back in May/2015[3].

[1] - https://sourceware.org/gdb/current/onlinedocs/gdb/Input_002fOutput.html#Input_002fOutput
[2] - http://avocado-framework.github.io/
[3] - https://sourceware.org/ml/gdb-patches/2015-05/msg00131.html

Series summary:
[PATCH 1/4] GDB: inferior standard I/O redirection
[PATCH 2/4] GDB/MI: fix and simplify mi_valid_noargs utility function
[PATCH 3/4] GDB/MI: add test for command -inferior-tty-show
[PATCH 4/4] GDB/MI: inferior standard I/O redirection

Series diff stat:
 gdb/NEWS                           |  15 ++++
 gdb/doc/gdb.texinfo                | 250 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 gdb/fork-child.c                   |  81 ++++++++++++++++++++
 gdb/infcmd.c                       | 146 +++++++++++++++++++++++++++++++++++
 gdb/inferior.c                     |   3 +
 gdb/inferior.h                     |  11 +++
 gdb/mi/mi-cmd-env.c                |  77 +++++++++++++++++++
 gdb/mi/mi-cmds.c                   |   6 ++
 gdb/mi/mi-cmds.h                   |   6 ++
 gdb/mi/mi-getopt.c                 |  16 ++--
 gdb/testsuite/gdb.base/default.exp |   6 ++
 gdb/testsuite/gdb.mi/mi-basics.exp |  66 ++++++++++++++++
 12 files changed, 655 insertions(+), 28 deletions(-)
 


             reply	other threads:[~2015-10-05 11:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-05 11:47 Cleber Rosa [this message]
2015-10-05 11:47 ` [PATCH 1/4] " Cleber Rosa
2015-10-05 12:23   ` Eli Zaretskii
2015-10-21 11:18   ` Pedro Alves
2015-10-05 11:47 ` [PATCH 3/4] GDB/MI: add test for command -inferior-tty-show Cleber Rosa
2015-10-21 11:19   ` Pedro Alves
2015-10-05 11:47 ` [PATCH 2/4] GDB/MI: fix and simplify mi_valid_noargs utility function Cleber Rosa
2015-10-21 11:19   ` Pedro Alves
2015-10-05 11:54 ` [PATCH 4/4] GDB/MI: inferior standard I/O redirection Cleber Rosa
2015-10-05 12:26   ` Eli Zaretskii
2015-10-21 11:19   ` Pedro Alves
2015-10-22 10:55   ` Vladimir Prus

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=1444045617-14526-1-git-send-email-crosa@redhat.com \
    --to=crosa@redhat.com \
    --cc=areis@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@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