From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9349 invoked by alias); 25 Apr 2002 00:45:47 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9340 invoked from network); 25 Apr 2002 00:45:46 -0000 Received: from unknown (HELO dr-evil.shagadelic.org) (208.176.2.162) by 209.249.29.67 with SMTP; 25 Apr 2002 00:45:46 -0000 Received: by dr-evil.shagadelic.org (Postfix, from userid 7518) id 7AF47986D; Wed, 24 Apr 2002 17:45:31 -0700 (PDT) Date: Wed, 24 Apr 2002 17:45:00 -0000 From: Jason R Thorpe To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] Use multi-arch'd START_INFERIOR_TRAPS_EXPECTED on Alpha target Message-ID: <20020424174531.Z26223@dr-evil.shagadelic.org> Reply-To: thorpej@wasabisystems.com Mail-Followup-To: Jason R Thorpe , Andrew Cagney , gdb-patches@sources.redhat.com References: <20020421181544.S1627@dr-evil.shagadelic.org> <3CC74887.2070401@cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3CC74887.2070401@cygnus.com>; from ac131313@cygnus.com on Wed, Apr 24, 2002 at 08:06:31PM -0400 Organization: Wasabi Systems, Inc. X-SW-Source: 2002-04/txt/msg00989.txt.bz2 On Wed, Apr 24, 2002 at 08:06:31PM -0400, Andrew Cagney wrote: > Does STARTUP_WITH_SHELL need to be multi-arched? > > I'm wondering if it would be better to make it a variable (``set > startup-with-shell ''). Looking at its uses it appears that > fork-child.c:startup_inferior() would still work (if it did previously). Note that if you set STARTUP_WITH_SHELL to 0, you have to decrement start_inferior_traps_expected. So, in all the places that set start_inferior_traps_expected, I guess you'd have to check: set_gdbarch_start_inferior_traps_expected (gdbarch, startup_with_shell ? X : X - 1); ...and then update them all whenever startup_with_shell changed? Oof, this is starting to make my head spin :-) -- -- Jason R. Thorpe