From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23572 invoked by alias); 26 Apr 2004 07:59:31 -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 23561 invoked from network); 26 Apr 2004 07:59:30 -0000 Received: from unknown (HELO mailgw.univr.it) (157.27.6.150) by sources.redhat.com with SMTP; 26 Apr 2004 07:59:30 -0000 Received: (qmail 77775 invoked from network); 26 Apr 2004 07:39:41 -0000 Received: from unknown (HELO profs.sci.univr.it) (157.27.252.10) by mailgw.univr.it with SMTP; 26 Apr 2004 07:39:41 -0000 Received: from toti (toti.sci.univr.it [157.27.242.42]) by profs.sci.univr.it (8.9.3/8.9.3) with ESMTP id JAA08861; Mon, 26 Apr 2004 09:59:29 +0200 (MET DST) Message-ID: <003501c42b64$654262f0$2af21b9d@toti> From: "Stefano Martini" To: Cc: "GDB" References: <006c01c42930$56a2b7d0$2af21b9d@toti> Subject: Re: new board Date: Mon, 26 Apr 2004 17:57:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2004-04/txt/msg00160.txt.bz2 Thank you for your help. I have found, in interp.c, the memory layout definition for some boards. I have seen two interesting commands: sim_do_command(sd,"memory region .....") sim_do_commandf(sd,"memory alias...."); Which are the differences between sim_do_command and sim_do_commandf ? And more, which are the differences between memory region and memory alias? Thanks in advance Stefano ----- Original Message ----- From: cgd@broadcom.com To: martini@sci.univr.it Cc: GDB Sent: Friday, April 23, 2004 6:48 PM Subject: Re: new board At Fri, 23 Apr 2004 12:42:44 +0000 (UTC), "Stefano Martini" wrote: > I'm writing programs for a specific mips board. > I need to edit the gdb (sim) source files to add this > board. > > Is there any document about this topic? Not really. > I think I have to specify the memory regions for the board. > Which is the right way to do this? See interp.c. But, my personal favorite method -- not currently supported in unmodified sources, I don't think 8-) -- is to have a "no board" option, and specify all of the devices (hardware files, memory regions, etc.) from the command line. Given that there can be ... dozens of possible board configurations that one might want to model, stuffing them into C code in the simultor is not particularly desirable in my opinion. cgd