From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21758 invoked by alias); 4 Jan 2017 16:08:33 -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 21743 invoked by uid 89); 4 Jan 2017 16:08:32 -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 autolearn=ham version=3.3.2 spammy=remotely, H*MI:sk:87pok3q, H*f:sk:87pok3q, Yeah 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, 04 Jan 2017 16:08:22 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOo6u-0002SX-0f for gdb-patches@sourceware.org; Wed, 04 Jan 2017 11:08:21 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOo6m-0002PE-Ew; Wed, 04 Jan 2017 11:08:12 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3327 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cOo6k-0005kD-Om; Wed, 04 Jan 2017 11:08:12 -0500 Date: Wed, 04 Jan 2017 16:08:00 -0000 Message-Id: <83tw9eerka.fsf@gnu.org> From: Eli Zaretskii To: Sergio Durigan Junior CC: gdb-patches@sourceware.org, palves@redhat.com In-reply-to: <87pok3q38l.fsf@redhat.com> (message from Sergio Durigan Junior on Tue, 03 Jan 2017 15:48:26 -0500) Subject: Re: [PATCH 6/6] Implement proper "startup-with-shell" support on gdbserver Reply-to: Eli Zaretskii 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> 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/msg00056.txt.bz2 > 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.