Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: Doug Evans <dje@google.com>
Cc: gdb@sourceware.org
Subject: Re: passing extended sim options when using gdb sim target
Date: Fri, 19 Mar 2010 01:09:00 -0000	[thread overview]
Message-ID: <201003182109.36992.vapier@gentoo.org> (raw)
In-Reply-To: <e394668d1003180854q598509aj9213ec7fd0e77489@mail.gmail.com>

[-- Attachment #1: Type: Text/Plain, Size: 1493 bytes --]

On Thursday 18 March 2010 11:54:52 Doug Evans wrote:
> On Thu, Mar 18, 2010 at 12:35 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> > a compiled simulator has a lot of fun options:
> >        --hw-device <...>
> >        --memory-region <...>
> >        --model <...>
> >        --environment <...>
> >        etc...
> > 
> > when using the command line simulator (`run`), passing these options via
> > the command line is obvious.  but i cant seem to figure out how to do
> > the same thing when running gdb and using the sim target.
> > 
> > the gdb manual indicates the form is:
> >        target <type> <parameters>
> > but nothing i stick in for <parameters> seems to make a difference
> > 
> > i also recall seeing references to adding hardware devices on the fly
> > from the gdb command line, but i cant locate any info along these lines
> > either ...
> 
> IIRC
> 
> (gdb) target sim --foo bar --baz
> 
> As for adding things on the fly, there is the "sim" command in gdb.
> How the sim interprets it is up to the sim (again, IIRC).

ok, that does work.  my underlying problem is that the common sim code only 
respects the -E option for big endian simulators.  gdb however always passes 
the -E option down to the sim target.  so when doing little-endian only 
simulators, attempts to use options always results in the sim core throwing up 
an error that -E is not a recognized flag.

i'll post a patch for the common sim code to fix this.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      reply	other threads:[~2010-03-19  1:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-18  7:35 Mike Frysinger
2010-03-18 15:55 ` Doug Evans
2010-03-19  1:09   ` Mike Frysinger [this message]

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=201003182109.36992.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=dje@google.com \
    --cc=gdb@sourceware.org \
    /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