From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95983 invoked by alias); 5 Oct 2015 11:47:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 95848 invoked by uid 89); 5 Oct 2015 11:47:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 05 Oct 2015 11:47:10 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id CD0F6C0B1B50 for ; Mon, 5 Oct 2015 11:47:08 +0000 (UTC) Received: from x220.tallawa.org (ovpn-113-80.phx2.redhat.com [10.3.113.80]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t95Bl8UD004694; Mon, 5 Oct 2015 07:47:08 -0400 From: Cleber Rosa 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 Message-Id: <1444045617-14526-1-git-send-email-crosa@redhat.com> X-SW-Source: 2015-10/txt/msg00032.txt.bz2 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(-)