From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63568 invoked by alias); 18 Jan 2017 16:43:39 -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 63558 invoked by uid 89); 18 Jan 2017 16:43:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=Zaretskii, eliz@gnu.org, zaretskii, U*eliz X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Jan 2017 16:43:28 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTtKV-0001QF-38 for gdb-patches@sourceware.org; Wed, 18 Jan 2017 11:43:27 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTtKL-0001KM-TH; Wed, 18 Jan 2017 11:43:13 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2261 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cTtKL-00074R-2D; Wed, 18 Jan 2017 11:43:13 -0500 Date: Wed, 18 Jan 2017 16:43:00 -0000 Message-Id: <83a8ao8gks.fsf@gnu.org> From: Eli Zaretskii To: Sergio Durigan Junior CC: gdb-patches@sourceware.org, palves@redhat.com, lgustavo@codesourcery.com In-reply-to: <20170118153605.4610-7-sergiodj@redhat.com> (message from Sergio Durigan Junior on Wed, 18 Jan 2017 10:36:05 -0500) Subject: Re: [PATCH v2 6/6] Implement proper "startup-with-shell" support on gdbserver Reply-to: Eli Zaretskii References: <1482464361-4068-1-git-send-email-sergiodj@redhat.com> <20170118153605.4610-1-sergiodj@redhat.com> <20170118153605.4610-7-sergiodj@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00362.txt.bz2 > From: Sergio Durigan Junior > Cc: Pedro Alves , Eli Zaretskii , > Luis Machado , > Sergio Durigan Junior > Date: Wed, 18 Jan 2017 10:36:05 -0500 > > This patch implements the proper support for the "startup-with-shell" > feature on gdbserver. A new packet is added, QStartupWithShell, and > it is sent on initialization. If the host sends a > "QStartupWithShell:1", it means the inferior shall be started using a > shell. If the host sends a "QStartupWithShell:0", it means the > inferior shall be started without using a shell. Any other value is > considered an error. > > There is no way to remotely set the shell that will be used by the > target to start the inferior. In order to do that, the user must > start gdbserver while providing a shell via the $SHELL environment > variable. The same is true for the host side. > > The "set startup-with-shell" setting from the host side is used to > decide whether to start the remote inferior using a shell. This same > setting is also used to decide whether to use a shell to start the > host inferior; this means that it is not really possible to start the > inferior using different mechanisms on target and host. > > A documentation patch is included, along with a new testcase for the > feature. Thanks, the documentation parts are approved.