From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24813 invoked by alias); 6 Jul 2007 10:27:15 -0000 Received: (qmail 24803 invoked by uid 22791); 6 Jul 2007 10:27:14 -0000 X-Spam-Check-By: sourceware.org Received: from mms1.broadcom.com (HELO mms1.broadcom.com) (216.31.210.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 06 Jul 2007 10:27:10 +0000 Received: from [10.10.64.154] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.1)); Fri, 06 Jul 2007 03:26:51 -0700 X-Server-Uuid: 6B5CFB92-F616-4477-B110-55F967A57302 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id A81122AF; Fri, 6 Jul 2007 03:26:51 -0700 (PDT) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id 9274B2AE; Fri, 6 Jul 2007 03:26:51 -0700 (PDT) Received: from mail-irva-12.broadcom.com (mail-irva-12.broadcom.com [10.10.64.146]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id FLG60508; Fri, 6 Jul 2007 03:26:51 -0700 (PDT) Received: from NT-IRVA-0752.brcm.ad.broadcom.com ( nt-irva-0752.brcm.ad.broadcom.com [10.8.194.67]) by mail-irva-12.broadcom.com (Postfix) with ESMTP id 3E12369CA4; Fri, 6 Jul 2007 03:26:51 -0700 (PDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: What should a CPU simulator support? Date: Fri, 06 Jul 2007 10:27:00 -0000 Message-ID: In-Reply-To: References: <468C57AE.8020801@simplnano.com> From: "Robert Norton" To: "Jim Blandy" , "s88" cc: "Wenbo Yang" , gdb@sourceware.org X-WSS-ID: 6A90C7611S81382585-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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: 2007-07/txt/msg00047.txt.bz2 > -----Original Message----- > From: gdb-owner@sourceware.org=20 > [mailto:gdb-owner@sourceware.org] On Behalf Of Jim Blandy > Sent: 05 July 2007 22:32 > To: s88 > Cc: Wenbo Yang; gdb@sourceware.org > Subject: Re: What should a CPU simulator support? > > There are two ways for GDB to connect to a simulator: >=20 > - You can make the simulator into a '.a' library, have it implement > the interface in include/gdb/remote-sim.h, and link it directly with > GDB. Then the GDB 'target sim' command will initialize the > simulator, and subsequent 'run', 'continue', 'step' (etc.) commands > will apply to it. >=20 > This is simplest for the end user: no separate program to start up, > no separate program file to find, and so on. Is this still the recommended way of making a built-in simulator? I noticed when upgrading our port that the api for simulator implemented breakpoints has been removed! We're not interested in implementing soft breakpoints so I had to resurrect this support in remote-sim.c. Cheers, Robert