* passing extended sim options when using gdb sim target
@ 2010-03-18 7:35 Mike Frysinger
2010-03-18 15:55 ` Doug Evans
0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2010-03-18 7:35 UTC (permalink / raw)
To: gdb
[-- Attachment #1: Type: text/plain, Size: 650 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: passing extended sim options when using gdb sim target
2010-03-18 7:35 passing extended sim options when using gdb sim target Mike Frysinger
@ 2010-03-18 15:55 ` Doug Evans
2010-03-19 1:09 ` Mike Frysinger
0 siblings, 1 reply; 3+ messages in thread
From: Doug Evans @ 2010-03-18 15:55 UTC (permalink / raw)
To: Mike Frysinger; +Cc: gdb
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).
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: passing extended sim options when using gdb sim target
2010-03-18 15:55 ` Doug Evans
@ 2010-03-19 1:09 ` Mike Frysinger
0 siblings, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2010-03-19 1:09 UTC (permalink / raw)
To: Doug Evans; +Cc: gdb
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-19 1:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-18 7:35 passing extended sim options when using gdb sim target Mike Frysinger
2010-03-18 15:55 ` Doug Evans
2010-03-19 1:09 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox