From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15169 invoked by alias); 5 Oct 2003 21:59:59 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15162 invoked from network); 5 Oct 2003 21:59:58 -0000 Received: from unknown (HELO zoran.co.il) (199.203.69.11) by sources.redhat.com with SMTP; 5 Oct 2003 21:59:58 -0000 Received: from mikit ([192.168.85.218]) by zoran.co.il (8.11.6+Sun/8.11.12) with SMTP id h95LxcM03720; Sun, 5 Oct 2003 23:59:39 +0200 (IST) From: "Miki Tebeka" To: , Subject: RE: port gdb to embedded processor:about RSP Date: Sun, 05 Oct 2003 21:59:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4925.2800 In-Reply-To: <20031004055219.3245.qmail@vip.sina.com.cn> X-SW-Source: 2003-10/txt/msg00085.txt.bz2 Hello, > My current plan is to port gdb to a 8-bit embedded >processor with a new,instead of directly communicating with the >processor,our gdb will communicate with an emulator.Now suppose >the BFD has been successfully ported,I am still wondering about >what in detail I need to do with the remote debugging part.In some >documents,I have seen some ones >say it is a must to implement the GDB RSP(remote serial >protocol),so how in detail I can do to implement it,which files of >what functionality I must create or modify? Waiting for help! Thanks! We do the same here and use a "proxy" GDBInterface which can communicate with the simulator (via pipes) or with the hardware (via COM port). It's just like porting to a new arch, only the "child_create_inferior" function either launches the simulator or opens a connection to the hardware. (Note that we're using a old gdb, things might be different in newer versions) HTH. Bye. ---------------------------------------------------------------------------- - Smile, damn it, smile. lambda msg: { 'name' : 'Miki Tebeka', 'email' : 'mikit@zoran.co.il', 'url' : ' http://www.cs.bgu.ac.il/~tebeka', 'quote' : 'The only difference between children and adults is the price of the toys' }[msg]