From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42862 invoked by alias); 23 Aug 2017 19:32:25 -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 42806 invoked by uid 89); 23 Aug 2017 19:32:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_1,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=love 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 Aug 2017 19:32:20 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 85BD561479 for ; Wed, 23 Aug 2017 19:32:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 85BD561479 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=palves@redhat.com Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 215307849D; Wed, 23 Aug 2017 19:32:14 +0000 (UTC) Subject: Re: [PATCH] Fix PR remote/21852: Remote run without specifying a local binary crashes GDB To: Sergio Durigan Junior , GDB Patches References: <3ef5d58f-6d27-8f07-b45d-db7f883837a4@redhat.com> <20170823173608.17654-1-sergiodj@redhat.com> From: Pedro Alves Message-ID: <5f5fd8bf-2a6a-f98e-71e3-3c3ff4c03c8e@redhat.com> Date: Wed, 23 Aug 2017 19:32:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20170823173608.17654-1-sergiodj@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-08/txt/msg00454.txt.bz2 On 08/23/2017 06:36 PM, Sergio Durigan Junior wrote: > A testcase is provided. Regtested on buildbot. Looks good to me. A question below. > gdb/ChangeLog: > 2017-08-23 Pedro Alvex Love my new name, thanks. :-) > + # Let's start gdbserver in extended-remote mode now. > + set res [gdbserver_start "--multi" ""] > + set gdbserver_protocol [lindex $res 0] > + if { [string first "extended-" $gdbserver_protocol] != 0} { > + set gdbserver_protocol "extended-$gdbserver_protocol" > + } > + set gdbserver_gdbport [lindex $res 1] > + set use_gdb_stub 0 I guess this can't use gdbserver_start_extended because that somehow assumes you're starting with a binary? Can you add a comment? Thanks, Pedro Alves