From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18363 invoked by alias); 5 Jan 2017 20:12:15 -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 18349 invoked by uid 89); 5 Jan 2017 20:12:14 -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=remotely, H*f:sk:83tw9ee, H*i:sk:83tw9ee, january 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; Thu, 05 Jan 2017 20:12:04 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (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 0A9351555C; Thu, 5 Jan 2017 20:12:04 +0000 (UTC) Received: from localhost (unused-10-15-17-193.yyz.redhat.com [10.15.17.193]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v05KC3j4014707 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 5 Jan 2017 15:12:03 -0500 From: Sergio Durigan Junior To: Eli Zaretskii Cc: gdb-patches@sourceware.org, palves@redhat.com Subject: Re: [PATCH 6/6] Implement proper "startup-with-shell" support on gdbserver References: <1482464361-4068-1-git-send-email-sergiodj@redhat.com> <1482464361-4068-7-git-send-email-sergiodj@redhat.com> <83y3z7ysq2.fsf@gnu.org> <87pok3q38l.fsf@redhat.com> <83tw9eerka.fsf@gnu.org> X-URL: http://blog.sergiodj.net Date: Thu, 05 Jan 2017 20:12:00 -0000 In-Reply-To: <83tw9eerka.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 04 Jan 2017 18:08:21 +0200") Message-ID: <87r34hnu5p.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/msg00081.txt.bz2 On Wednesday, January 04 2017, Eli Zaretskii wrote: >> From: Sergio Durigan Junior >> Cc: gdb-patches@sourceware.org, palves@redhat.com >> Date: Tue, 03 Jan 2017 15:48:26 -0500 >> >> > Also, is it possible that a user will want >> > remote targets to use a shell, while avoiding that for native >> > debugging, in the same session? >> >> Yeah, I thought about that. My first thought was to add a 'set/show >> remote startup-with-shell' option, but I thought this was going to be >> too much for the user. Maybe not. >> >> With this new setting, we'd have: >> >> - startup-with-shell: Used only locally, default on. Instructs GDB to >> start the inferior using the shell. >> >> - remote startup-with-shell: Used only remotely, default on. Instructs >> gdbserver to start the inferior using the shell. >> >> - remote startup-shell: Used only remotely (if remote startup-with-shell >> is on), default "" (empty). Tells which shell to be used by gdbserver >> to start the inferior. If empty, use $SHELL. >> >> WDYT? > > Makes sense to me, thanks. Cool, thanks. I'll go ahead and implement this idea, then. Cheers, -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible http://sergiodj.net/