[HELP] pointers to develop a new simulator for gdb
Andrew Cagney
ac131313@cygnus.com
Thu May 10 08:32:00 GMT 2001
You may also want to look at CGEN/SID. See:
http://sources.redhat.com/cgen
and
http://sources.redhat.com/sid
igen (which Toshihiro refers to) is in maintenance mode - it's perfect
right (:-^). Exactly which you use, in part depends on your
architecture. To my suprise, I recently learnt that there are still
certain ISA's that IGEN handles better than CGEN. I'd still try CGEN
first though.
There are two ways of incorporating a simulator into GDB. Directly by
providing the interface defined by include/remote-sim.h or as a separate
executable that implements the remote protocol (see SID).
Andrew
> Hello, Toshihiro.
>
> I have made a simulator using gdb-4.18/sim files a few
> months ago. You can use other simulator sources as
> templates.
>
> Also you can debug your program using gdb connected to
> the simulator.
>
> The main files you should modify is xxxx.igen xxxx.dc
> and some header files.
>
> If you are lucky, it just takes a few days to
> complete.
>
>
> --- Toshihiro Kubo <tkubo@rd.oda.epson.co.jp> wrote:
>
>> Hi everyone,
>>
>> We're planing to develop a simulator for our own
>> processor. And I
>> wonder I'd like to debug program runing on our
>> simulator with gdb.
>>
>> So I'd like to know how to build-in our simulator to
>> gdb sources.
>> Anybody tell me some pointers or documents?
>>
>> And I have one more question. I will develop our
>> simulator with
>> C++. Is it possible to call simulator from other gdb
>> (C languages)
>> sources?
>>
>> Regards,
>> Toshi
>> -----
>> Toshihiro Kubo ( tkubo@rd.oda.epson.co.jp )
>>
More information about the Gdb
mailing list