This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: new board
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