[HELP] pointers to develop a new simulator for gdb

Toshihiro Kubo tkubo@rd.oda.epson.co.jp
Fri May 11 00:16:00 GMT 2001


Hi "jw c" and Andrew,

Thanks for your advices. I'm not sure about gdb's whole architecture yet,
but let me explain our processor developing now.

It is a DSP with VLIW architecture. We will develope software simulator
by C++ on PC at first and would like to estimate our architecture and
configure if needed. We will maybe add / remove instruction set, configure
branch control method, and so on.

We will run some assembly codes on the simulator (we shoud have to
develop our C compliler later) and want to debug that asssembly codes
by gdb.

So we're looking for the most effective way to incorporate our simulator
into gdb. I don't figure out solutions. Any comments wold be welcome.
Thanks in advance.

Regards,
Toshi

----- Original Message -----
From: "Andrew Cagney" <ac131313@cygnus.com>
To: "jw c" <info2choijo@yahoo.com>
Cc: "Toshihiro Kubo" <tkubo@rd.oda.epson.co.jp>; <gdb@sources.redhat.com>
Sent: Thursday, May 10, 2001 8:15 AM
Subject: Re: [HELP] pointers to develop a new simulator for gdb


> 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