From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11574 invoked by alias); 5 Dec 2011 20:16:30 -0000 Received: (qmail 11558 invoked by uid 22791); 5 Dec 2011 20:16:26 -0000 X-SWARE-Spam-Status: No, hits=-7.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Dec 2011 20:16:04 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pB5KFxLu022671 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 5 Dec 2011 15:15:59 -0500 Received: from host2.jankratochvil.net (ovpn-116-69.ams2.redhat.com [10.36.116.69]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pB5KFssG024177 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 5 Dec 2011 15:15:57 -0500 Date: Mon, 05 Dec 2011 20:25:00 -0000 From: Jan Kratochvil To: Doug Evans Cc: Pedro Alves , gdb-patches@sourceware.org, Kevin Pouget , Tom Tromey Subject: Re: ping: Re: [patch] Forbid "run" etc. for use_gdb_stub targets Message-ID: <20111205201553.GA22427@host2.jankratochvil.net> References: <201110271909.37066.pedro@codesourcery.com> <20111028174014.GB18885@host1.jankratochvil.net> <201110281917.44839.pedro@codesourcery.com> <20111029194745.GA12850@host1.jankratochvil.net> <20111203183613.GA15496@host2.jankratochvil.net> <20111204012935.GA4034@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 X-SW-Source: 2011-12/txt/msg00150.txt.bz2 On Sun, 04 Dec 2011 03:55:07 +0100, Doug Evans wrote: > Poorly chosen names lead to confusion, bugs, and wasted time. > [No claim is made that this is news. :-)] Just $use_gdb_stub is a different form of [target_info exists use_gdb_stub] so no matter what the name is IMO it is correct the name is the same. And one cannot change use_gdb_stub in the board file for board files backward compatibility. > Plus, there's no reason why, for example, gdb_start_cmd can't work > with target remote and gdbserver. It does not work with non-extended gdbserver - which has use_gdb_stub == 1. Also my change did not change it: - if [target_info exists use_gdb_stub] { + if $use_gdb_stub { (gdb) target remote localhost:1234 Remote debugging using localhost:1234 [...] (gdb) start The "remote" target does not support "run". Try "help target" or "continue". It works with extended gdbserver - which has use_gdb_stub == 0. I do not see the problem you describe. Thanks, Jan