From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5798 invoked by alias); 13 Feb 2004 14:51:47 -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 5790 invoked from network); 13 Feb 2004 14:51:44 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 13 Feb 2004 14:51:44 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 035562B92; Fri, 13 Feb 2004 09:51:42 -0500 (EST) Message-ID: <402CE47E.70403@gnu.org> Date: Fri, 13 Feb 2004 14:51:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: "Vineet Sharma, Noida" Cc: gdb@sources.redhat.com Subject: Re: build gdb with simulator References: <1B3885BC15C7024C845AAC78314766C503484EA8@exch-01.noida.hcltech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-02/txt/msg00137.txt.bz2 > Hi > I am building a simulator for new 16-bit processor, now i want to > integrate it with gdb, so how do tell gdb about my simulator. I tried > building by > > ../configure -target=XXX-coff --enable-sim-XXX=yes -v > --prefix=/home/vineet/gdb-6.0/ > > and the simulator code is in sim/XXX directory. > > > So what Makefile and config file i need to midify for integrating my > simulator with gdb? At present gdb/config/*/*.mt, for instance: ./src/gdb/config/mips/embed.mt: > TDEPFILES= mips-tdep.o remote-mips.o > TM_FILE= tm-mips.h > SIM_OBS = remote-sim.o > SIM = ../sim/mips/libsim.a there are some change-requests suggesting ways to simplify it: Flattern sim/ makefile structure http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=1315 sim/null/ as the default simulator http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=429 sim/libsim.a http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=428 Andrew