From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29644 invoked by alias); 18 May 2007 03:52:47 -0000 Received: (qmail 29625 invoked by uid 22791); 18 May 2007 03:52:43 -0000 X-Spam-Check-By: sourceware.org Received: from an-out-0708.google.com (HELO an-out-0708.google.com) (209.85.132.251) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 18 May 2007 03:52:36 +0000 Received: by an-out-0708.google.com with SMTP id b20so191262ana for ; Thu, 17 May 2007 20:52:33 -0700 (PDT) Received: by 10.100.39.18 with SMTP id m18mr792777anm.1179460346490; Thu, 17 May 2007 20:52:26 -0700 (PDT) Received: by 10.100.3.2 with HTTP; Thu, 17 May 2007 20:52:26 -0700 (PDT) Message-ID: <581468c60705172052l18705471mb1f7c8e288bc9e47@mail.gmail.com> Date: Fri, 18 May 2007 03:52:00 -0000 From: "Wenbo Yang" To: s88 Subject: Re: new simulator as a new gdb target Cc: gdb@sourceware.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <581468c60705171734y2777155t793720d68b45b89f@mail.gmail.com> 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: 2007-05/txt/msg00073.txt.bz2 Dave, > thanx for your reply... > Does any exist "gdbserver-like" template can let me do this job? > or, where do I find those files? Actually it is very easy to write. It uses RSP protocol to communicate with GDB, more like a RSP packet translator. It understands RSP packets that GDB sends to it, then acts using your simulator's interface, then sends GDB the result. It is really like a stub, but can do more thing because it is part of your simulator. For more you can refer to Skyeye project, an open source simulator. I can not remember the file name. But you can search "*gdb*" in the source files. It is easy to find. Regards, Wenbo -- Wenbo Yang Student Department of Mathematics, Nanjing Univ. 22 Hankou Road, Nanjing, China Mobile: +86-013655175286 --- Personal Email: solrex@gmail.com MSN: solrex@live.com --- Homepage: http://www.solrex.cn Intern Software Engineer SimpLight Nanoelectronics Ltd. 6 Zhichun Road, 10th Floor, Beijing, China Phone: +86-10-5126-6989 ext.110 --- Email: wenbo.yang@simplnano.com