Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Fyles, Matthew" <matthew.fyles@superh.com>
To: <gdb@sources.redhat.com>
Subject: Re: a question about gdb and simulator
Date: Wed, 26 Feb 2003 18:04:00 -0000	[thread overview]
Message-ID: <9FF3133289A7A84E81E2ED8F5E56B379537D91@sh-uk-ex01.uk.w2k.superh.com> (raw)

This method has been achieved by connecting our simulations to GDB using
the remote serial interface to a simulator running on the same machine
as GDB.

The remote serial interface is by far the most accurate way of
connecting GDB to a simulated target as it allows the simulator to clock
itself and act like a real CPU.

Problems arise when bringing simulators that are built-in to GDB into
environments such as systemC because systemC requires you to build your
simulation as an executable. If you go down the road of having your
simulation so tightly coupled with GDB you will have to link whatever
libraries GDB uses into you systemC model.

The system we use looks like this.

GDB G tcp/ip remote <--> GDB Server <--> Shared memory <--> CPU
simulator and debugger I/F

In this case GDB is the standard GDB downloaded from the net sources,
GDB server is an executable running on the same machine to handle GDB
commands and the CPU simulator is our own in house simulator running on
the same machine.

In order to run this within systemC you need to link the shared object
which gets built for our CPU simulator and debugger interface into the
systemC environment and let it then compile an executable containing
this functionality.

You can then start up a systemC model and connect to it using the GDB
target-remote command and you then have a software debugger running on
your simulated hardware platform.


             reply	other threads:[~2003-02-26 18:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-26 18:04 Fyles, Matthew [this message]
     [not found] <F84byfA34cnFqUob5MF00027426@hotmail.com>
2003-02-27 16:36 ` Andrew Cagney
  -- strict thread matches above, loose matches on Subject: below --
2003-02-26 13:06 liu lijuan
2003-02-26 14:51 ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9FF3133289A7A84E81E2ED8F5E56B379537D91@sh-uk-ex01.uk.w2k.superh.com \
    --to=matthew.fyles@superh.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox