From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13898 invoked by alias); 13 May 2013 21:24:03 -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 13888 invoked by uid 89); 13 May 2013 21:24:02 -0000 X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-vb0-f46.google.com (HELO mail-vb0-f46.google.com) (209.85.212.46) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 13 May 2013 21:24:01 +0000 Received: by mail-vb0-f46.google.com with SMTP id 10so5540639vbe.5 for ; Mon, 13 May 2013 14:24:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=FbfC8GnnQ5uxlnArX0iM97u/bIKavcUftTAtUIB0ZDg=; b=FJq7/PKIqYiwb11/3sqovIHl8YAcBpl2MgEWhdNUpoHkYIqa/I9R2KkC1a9/SBDywM Vw9OqnkwkemLYdHB/sO56BNVUhAPssPMu+IkGUY85INGRxr4Dc+Fyfg4H757Q7xHJlFJ 1DbKlgPWsv5Qzw/lFLNHBlSGY9byapOv9Vuwie59Rw5YuDTJap9U+mGIG/PEMHpBfF4O ecqi4MPdDZ4Q6VmlKQuidlPA5zYtid4AUlIExNyn1Dw0KMvbO8OpJ6JUgFi7Rm1vbTxr 9+fHwG1J063VVWkUed2oMjIOLa3yvneCJISZiSdXD4codw6Oj58Yciu3T0HgyYGxcBJA hRRA== MIME-Version: 1.0 X-Received: by 10.52.183.170 with SMTP id en10mr16993804vdc.5.1368480240179; Mon, 13 May 2013 14:24:00 -0700 (PDT) Received: by 10.220.54.75 with HTTP; Mon, 13 May 2013 14:24:00 -0700 (PDT) In-Reply-To: References: Date: Mon, 13 May 2013 21:24:00 -0000 Message-ID: Subject: Re: [PATCH] New board file remote-stdio-gdbserver.exp From: Doug Evans To: Sterling Augustine Cc: gdb-patches Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQksAl+0wCr3ylPw34IdPFIVwWlt7tnlajkd28ijJ/C9n+8hd3KF0MoZIV60RcNoyccsVOE66yYNLW712FJyxTD6w8BPmfGrj7KjxJDJ0AF4TeYyp+6SWSYQzDJSINse0uk1NfL8adckzHZQWLPJG2AwUlRNfDDUsUPEGusWhA4g/3bkT/FNyKTc4cwWHiDCrfiDROcgHSYidWx7tAg0B+AEooWpzw== X-SW-Source: 2013-05/txt/msg00457.txt.bz2 On Fri, May 10, 2013 at 2:47 PM, Sterling Augustine wrote: > Hello, > > Enclosed is a new board file that enables testing using stdio via > gdbserver on a remote server. This is useful if, for example, firewall > policies disallow gdbserver from opening a port to listen on. > > It follows Doug Evans' native-stdio-gdbserver.exp fairly closely. I > had originally tried to combine the two, but it got kind of ugly. > > It's use is documented at the top of the file. > > OK for trunk? > > Sterling > > 2013-05-10 Sterling Augustine > > * boards/remote-stdio-gdbserver.exp: New file. Since there is a fair bit of commonality, another way to go is to begin your file with load_board_description "native-stdio-gdbserver" and then add or override the bits you need. Factoring out bits in native-stdio-gdbserver.exp so that they can be overridden may be needed. For proc ${board}_download you could just redefine it in your file (seems simplest). I think I'd prefer that if it works for you.