Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Matt Rice <ratmice@gmail.com>
To: gdb-patches@sourceware.org
Subject: [patch] document target sim args & arm options
Date: Fri, 26 Mar 2010 14:10:00 -0000	[thread overview]
Message-ID: <8ba6bed41003260710m7000613cw4797a5de670e726c@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 170 bytes --]

this documents that the arm simulator has an option --swi-support
and that 'target sim' can accept arguments on behalf of the simulator
in the info and 'help target sim'

[-- Attachment #2: simargs.diff --]
[-- Type: application/octet-stream, Size: 1677 bytes --]

diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 92a1237..cb90a87 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -14895,7 +14895,7 @@ useful if you have some other way of getting the stub to the target
 system, and you can put it somewhere in memory where it won't get
 clobbered by the download.
 
-@item target sim
+@item target sim @r{[}@var{simargs}@r{]} @r{...}
 @cindex built-in simulator target
 Builtin CPU simulator.  @value{GDBN} includes simulators for most architectures.
 In general,
@@ -17291,6 +17291,25 @@ well as the Angel monitor.
 Show the setting of RDI heartbeat packets.
 @end table
 
+@table @code
+@item target sim @r{[}@var{simargs}@r{]} @r{...}
+The @value{GDBN} ARM simulator accepts the following optional arguments.
+
+@table @code
+@item --swi-support=@var{type}
+Tell the simulator which SWI interfaces to support.
+@var{type} may be a comma separated list of the following values.
+The default value is @code{all}.
+
+@table @code
+@item none
+@item demon
+@item angel
+@item redboot
+@item all
+@end table
+@end table
+@end table
 
 @node M32R/D
 @subsection Renesas M32R/D and M32R/SDI
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 9f1adc7..96b45de 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -889,7 +889,7 @@ init_gdbsim_ops (void)
 {
   gdbsim_ops.to_shortname = "sim";
   gdbsim_ops.to_longname = "simulator";
-  gdbsim_ops.to_doc = "Use the compiled-in simulator.";
+  gdbsim_ops.to_doc = "Use the compiled-in simulator.  Any arguments will be passed on to the simulator.";
   gdbsim_ops.to_open = gdbsim_open;
   gdbsim_ops.to_close = gdbsim_close;
   gdbsim_ops.to_detach = gdbsim_detach;

             reply	other threads:[~2010-03-26 14:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-26 14:10 Matt Rice [this message]
2010-03-26 14:46 ` Eli Zaretskii
2010-03-26 15:17   ` Matt Rice
2010-03-26 15:25     ` Eli Zaretskii
2010-03-26 15:33       ` Matt Rice
2010-03-27  9:02     ` Eli Zaretskii

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=8ba6bed41003260710m7000613cw4797a5de670e726c@mail.gmail.com \
    --to=ratmice@gmail.com \
    --cc=gdb-patches@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