From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88803 invoked by alias); 24 Jul 2015 08:44:22 -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 88791 invoked by uid 89); 24 Jul 2015 08:44:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f50.google.com Received: from mail-pa0-f50.google.com (HELO mail-pa0-f50.google.com) (209.85.220.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 24 Jul 2015 08:44:20 +0000 Received: by pacan13 with SMTP id an13so11273183pac.1 for ; Fri, 24 Jul 2015 01:44:18 -0700 (PDT) X-Received: by 10.66.192.162 with SMTP id hh2mr29036273pac.71.1437727458559; Fri, 24 Jul 2015 01:44:18 -0700 (PDT) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id s3sm6058424pdl.35.2015.07.24.01.44.15 (version=TLS1_2 cipher=AES128-SHA256 bits=128/128); Fri, 24 Jul 2015 01:44:17 -0700 (PDT) From: Yao Qi To: Pedro Alves Cc: Yao Qi , gdb-patches@sourceware.org Subject: Re: [PATCH 1/8] Disallow using --attach and --wrapper together. References: <1437392126-29503-1-git-send-email-yao.qi@linaro.org> <1437392126-29503-2-git-send-email-yao.qi@linaro.org> <55B16AC0.4090808@redhat.com> Date: Fri, 24 Jul 2015 08:44:00 -0000 In-Reply-To: <55B16AC0.4090808@redhat.com> (Pedro Alves's message of "Thu, 23 Jul 2015 23:29:20 +0100") Message-ID: <86k2tqgd2c.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00678.txt.bz2 Pedro Alves writes: > Really not sure about this. It's reasonable to do e.g., > alias gs=3D"gdbserver --wrapper=3D/whatever/wrapper --" > (or the equivalent wrapper shell script that execs gdbserver) > and then always start that instead of gdbserver: > > sometimes: > > $ gs :9999 PROGRAM > > othertimes: > > $ gs --attach :9999 $pid > > but after the patch, the latter errors out. IMO, it makes sense to error out in the latter case, because --wrapper is useless if GDBserver attaches to a process. > > Plus, one can combine --attach and --multi, which means > that the wrapper would still apply to processes spawned > after connecting. I agree on this case. I withdraw this patch. --=20 Yao (=E9=BD=90=E5=B0=A7)