This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [HELP] pointers to develop a new simulator for gdb
- To: jw c <info2choijo at yahoo dot com>
- Subject: Re: [HELP] pointers to develop a new simulator for gdb
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 09 May 2001 19:15:37 -0400
- Cc: Toshihiro Kubo <tkubo at rd dot oda dot epson dot co dot jp>, gdb at sources dot redhat dot com
- References: <20010509064040.2758.qmail@web1806.mail.yahoo.com>
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 )
>>