From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18124 invoked by alias); 14 Feb 2012 08:54:02 -0000 Received: (qmail 17985 invoked by uid 22791); 14 Feb 2012 08:54:01 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: sourceware.org Received: from smarthost.idnet.net (HELO smarthost.idnet.net) (212.69.40.140) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Feb 2012 08:53:44 +0000 Received: from localhost (unknown [127.0.0.1]) by smarthost.idnet.net (Postfix) with ESMTP id 9754B236F4E for ; Tue, 14 Feb 2012 08:54:35 +0000 (UTC) Received: from smarthost.idnet.net ([127.0.0.1]) by localhost (smarthost.idnet.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PW64bXMKYtGs for ; Tue, 14 Feb 2012 08:54:35 +0000 (GMT) Received: from smarthost.idnet.net (localhost.localdomain [127.0.0.1]) by smarthost.idnet.net (Postfix) with ESMTP id 414E4236F60 for ; Tue, 14 Feb 2012 08:54:35 +0000 (GMT) Received: from mail.idnet.net.uk (mail.idnet.net.uk [212.69.36.63]) by smarthost.idnet.net (Postfix) with ESMTP id 3E2B9236F4E for ; Tue, 14 Feb 2012 08:54:35 +0000 (GMT) Received: from [91.135.5.64] by mail.idnet.net.uk (GMS 15.02.3689/NU3963.00.7ca42f0c) with ESMTP via TLS id jzktiwca for gdb@sourceware.org; Tue, 14 Feb 2012 08:53:38 +0000 Message-ID: <1329209621.14102.112.camel@laria> Subject: Re: gdbserver for embedded targets? From: Jeremy Bennett Reply-To: jeremy.bennett@embecosm.com To: Greg McGary Cc: gdb@sourceware.org Date: Tue, 14 Feb 2012 08:54:00 -0000 In-Reply-To: <4F318D55.10402@gmail.com> References: <4F318D55.10402@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-AuthenticatedSender: jeremy.bennett.embecosm.com@idnet.net.uk X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00041.txt.bz2 On Tue, 2012-02-07 at 13:45 -0700, Greg McGary wrote: > I really don't want to write a remote-protocol server, and would > rather leverage the existing gdbserver, since presumably it is > maintained and stays current with enhancements to the remote protocol. Hi Greg, A Remote Serial Protocol Server for a native target isn't a complex program. Some simple serial comms to get the packets, and then a switch statement on the text in the packet. You might find it quicker and easier to write (or adapt) one, rather than modifying gdbserver. A while ago, I wrote a short application note of implementing Remote Serial Protocol Servers, which includes example code you can freely use. You might find this useful: http://www.embecosm.com/download/ean4.html HTH, Jeremy -- Tel: +44 (1590) 610184 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@embecosm.com Web: www.embecosm.com