From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29164 invoked by alias); 8 Jul 2004 21:52:11 -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 29151 invoked from network); 8 Jul 2004 21:52:10 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 8 Jul 2004 21:52:10 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i68LqAe3006438 for ; Thu, 8 Jul 2004 17:52:10 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i68Lq9021462; Thu, 8 Jul 2004 17:52:09 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 01ABF2B9D; Thu, 8 Jul 2004 17:51:56 -0400 (EDT) Message-ID: <40EDC1FC.8030609@gnu.org> Date: Thu, 08 Jul 2004 21:52:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: libra Cc: gdb@sources.redhat.com Subject: Re: About bfd in gdb References: <1088992739.40e8b5e3cc227@webmail.cs.nthu.edu.tw> In-Reply-To: <1088992739.40e8b5e3cc227@webmail.cs.nthu.edu.tw> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00079.txt.bz2 Have a look at include/gdb/remote-sim.h Andrew > At first, thanks for your reply. > > After survey the gdb source code,i can roughly take the gdb source code into > two part, one is gdb and the other is sim. (Maybe now, it must add the third > part that is binutils(bfd and opcodes)) > > My question is : > Because the gdb source code is complex, i do not know how these two part(gdb > and sim) communicate with each other.In other word, which file is the > interface that can connect these two part.Once i add a new simulator(sim ,ISA) > into the gdb source code, the gdb can connct to my new sim,and run my program > on the new sim and debug it. Any documentation can reference > > > My idea is that the gdb is just an interface that connect to the simulator(sim) > , after doing that i can run my own program and debug it (ex:use arm-elf-gdb > or just use the simulator arm-elf-run). > > thanks a lot!! > >