From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23442 invoked by alias); 27 Feb 2003 16:36:25 -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 23425 invoked from network); 27 Feb 2003 16:36:24 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 27 Feb 2003 16:36:24 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id D42312A9C; Thu, 27 Feb 2003 11:38:37 -0500 (EST) Message-ID: <3E5E3F0D.1080308@redhat.com> Date: Thu, 27 Feb 2003 16:36: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: 7bit X-SW-Source: 2003-02/txt/msg00582.txt.bz2 >> >>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 > Thank you very much! It is very important to us. But I have some questions > on remote debugging. Does it include the debugging of built-in cpu simulator > by inputting "target sim" and the debugging using remote serial protocol to > communicate by inputting "target remote xxxx"? If the simulator is not built-in, you would any of: (gdb) target remote host:port (gdb) target remote |simulator (gdb) target extended-remote The option `|simulator' is probably the most useful. It talks remote protocol on stdin/stdout. Andrew