From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6544 invoked by alias); 5 Jul 2007 02:30:40 -0000 Received: (qmail 6536 invoked by uid 22791); 5 Jul 2007 02:30:39 -0000 X-Spam-Check-By: sourceware.org Received: from smtp107.biz.mail.re2.yahoo.com (HELO smtp107.biz.mail.re2.yahoo.com) (206.190.52.176) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 05 Jul 2007 02:30:34 +0000 Received: (qmail 64079 invoked from network); 5 Jul 2007 02:30:32 -0000 Received: from unknown (HELO ?192.168.1.132?) (wenbo.yang@simplnano.com@211.101.21.42 with plain) by smtp107.biz.mail.re2.yahoo.com with SMTP; 5 Jul 2007 02:30:31 -0000 X-YMail-OSG: nJlUI0kVM1nJFiuVRXdW0uCnIO0LViONcEPqP619e6bSiBqUUfffH6nVtR2BkG5QaFNxlMkpt5M124lowkF9wN10kcC1vVtMkGm.OYAC6.dC5jsNSH3f Message-ID: <468C57AE.8020801@simplnano.com> Date: Thu, 05 Jul 2007 02:30:00 -0000 From: Wenbo Yang User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: dave.tw@gmail.com CC: gdb@sourceware.org Subject: Re: What should a CPU simulator support? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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-07/txt/msg00040.txt.bz2 > I'm trying to implement a gdb stub for a CPU simulator. > The CPU simulator interprets each instruction in a big while loop. > My question is: Is it enough for my simulator to support a single step > run (simulate a single instruction per called) function to the gdb > stub? If your simulator supports "break" or similar instruction, and the GDB for your architecture can do software single stepping, I think you can realize this function. Regards, Wenbo -- Wenbo Yang Intern Software Engineer SimpLight Nanoelectronics Ltd. 6 Zhichun Road, 10th Floor, Beijing, China Phone: +86-10-5126-6989 --- Email: wenbo.yang@simplnano.com