From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15263 invoked by alias); 3 Jan 2017 20:23: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 15246 invoked by uid 89); 3 Jan 2017 20:23:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Feature, sergio, Sergio, Zaretskii 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 ESMTP; Tue, 03 Jan 2017 20:23:03 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 854CB81240; Tue, 3 Jan 2017 20:23:03 +0000 (UTC) Received: from localhost (unused-10-15-17-193.yyz.redhat.com [10.15.17.193]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v03KN2Sl014588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 3 Jan 2017 15:23:03 -0500 From: Sergio Durigan Junior To: Eli Zaretskii Cc: gdb-patches@sourceware.org, palves@redhat.com Subject: Re: [PATCH 0/6] Implement the ability to start inferiors with a shell on gdbserver References: <1482464361-4068-1-git-send-email-sergiodj@redhat.com> <83zijnytiq.fsf@gnu.org> X-URL: http://blog.sergiodj.net Date: Tue, 03 Jan 2017 20:23:00 -0000 In-Reply-To: <83zijnytiq.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 23 Dec 2016 09:49:33 +0200") Message-ID: <87tw9fq4ey.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00027.txt.bz2 On Friday, December 23 2016, Eli Zaretskii wrote: >> From: Sergio Durigan Junior >> Cc: palves@redhat.com >> Date: Thu, 22 Dec 2016 22:39:15 -0500 >> >> This patch series took a long time to complete due to many and varied >> reasons, but finally here it is. >> >> It implements the "startup-with-shell" feature on gdbserver. This >> means that it will be possible to start inferiors using the shell >> (instead of calling execv*), which brings many advantages. >> >> First of all, it will be possible to use I/O redirection, variable >> substitution and globbing expansion on gdbserver just like we do today >> on GDB. This is great because, among other things, it brings >> gdbserver on a pair with GDB when considering the Feature Parity >> project. > > In Windows native debugging, GDB doesn't use the shell to start the > inferior, but redirection is still supported via special code in > windows-nat.c. Can this be made available also in gdbserver? Looking at windows-nat.c, it seems that the code responsible for implementing this behaviour is not complex, so in theory it should be possible to make it available on gdbserver without much effort. I don't feel I'm the best person to hack this, though, because I don't use Windows and cannot reliably test the feature. Thanks, -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible http://sergiodj.net/