From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13266 invoked by alias); 26 Feb 2003 14:51:07 -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 13251 invoked from network); 26 Feb 2003 14:51:06 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 26 Feb 2003 14:51:06 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 191412AF0; Wed, 26 Feb 2003 09:53:22 -0500 (EST) Message-ID: <3E5CD4E1.8010809@redhat.com> Date: Wed, 26 Feb 2003 14:51:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: liu lijuan Cc: gdb@sources.redhat.com Subject: Re: a question about gdb and simulator References: Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit X-SW-Source: 2003-02/txt/msg00563.txt.bz2 > > We are doing graduate design about SOC design tool, and we want to extend GNU debugger¡¯s some functions, and do a simulator and debugger environment. We use SystemC to simulate the procedure of CPU simulator, and this simulator is a part of hardware system. During the simulation, CPU simulator needs a soft debugger. We want to use gdb as its debugger. We know that gdb supports built-in CPU simulator, but our simulator isn¡¯t built-in. But we don¡¯t know how gdb exchange information with built-in simulator and control the run of built-in CPU simulator. On this condition, we intend to apply the communication method between gdb and built-in CPU simulator to our design. Our simulator doesn¡¯t work as gdb¡¯s ISS , and also doesn¡¯t run in remote manner, therefore we think ¡°gdb remote serial protocol¡± can not be used in our design. Because our CPU simulator run in local manner (simulator and gdb run in the same machine), we think the same mechanism may be used in our desig n. > If you have time, can you help us and provide us some reference about our work? > Thanks a lot! Assuming you have the GDB sources in front of you, look at the file "src/include/gdb/remote-sim.h". It defines the GDB-SIM interfaces that GDB currently uses. Also, I'd not dismiss the "remote" method. Some simulators use that interface as well. Andrew