From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32026 invoked by alias); 23 Oct 2013 13:38:17 -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 32013 invoked by uid 89); 23 Oct 2013 13:38:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS 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 ESMTP; Wed, 23 Oct 2013 13:38:16 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9NDcFsf011772 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 23 Oct 2013 09:38:15 -0400 Received: from blade.nx (ovpn-116-97.ams2.redhat.com [10.36.116.97]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r9NDcCVv003339; Wed, 23 Oct 2013 09:38:12 -0400 Received: by blade.nx (Postfix, from userid 1000) id 81A2F264BB7; Wed, 23 Oct 2013 14:38:07 +0100 (BST) Date: Wed, 23 Oct 2013 13:38:00 -0000 From: Gary Benson To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Make STARTUP_WITH_SHELL a runtime toggle -- add new "set/show startup-with-shell" option. Message-ID: <20131023133807.GA12087@blade.nx> Mail-Followup-To: Pedro Alves , gdb-patches@sourceware.org References: <1382532024-28890-1-git-send-email-palves@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1382532024-28890-1-git-send-email-palves@redhat.com> X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00717.txt.bz2 Pedro Alves wrote: > Occasionaly we hear about people having problems with GDB not being > able to start programs (with "run"/"start"). GDB spawns a shell to > start the program, and most often, it'll be the case that the problem > is actually with the user's shell setup. > > GDB has code to disable the use of the shell to start programs. > That's the STARTUP_WITH_SHELL macro that native targets could set to 0 > in their nm.h file (though no target actually uses it nowadays). > > This patch makes that setting a run-time knob instead. This will be > useful to quickly diagnose such shell issues, and might also come in > handy at other times (such as when debugging the shell itself, if you > don't have a different shell handy). > > Comments? Are the docs OK? It's a good idea. And the docs seem fine to me. Cheers, Gary -- http://gbenson.net/