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

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 ...
> -mike
>

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).


  reply	other threads:[~2010-03-18 15:55 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 [this message]
2010-03-19  1:09   ` Mike Frysinger

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