public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Andrew STUBBS <andrew.stubbs@st.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb@sources.redhat.com
Subject: Re: RFC: GDB as a loader 3/3: --eval-command option
Date: Fri, 28 Oct 2005 14:03:00 -0000	[thread overview]
Message-ID: <43622EB4.3000804@st.com> (raw)
In-Reply-To: <u7jbxeqtd.fsf@gnu.org>

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

> Please make the example shorter, because this is too long and will
> overflow the page margins.  (Alternatively, break the command into two
> lines, and put a `\' at the end of the first one, as you'd do at the
> shell's prompt.)
> 

I've wrapped it. What is the proper width? It fitted into 80 columns ok 
so I thought it would be fine.

Andrew

[-- Attachment #2: eval-command-docs.patch --]
[-- Type: text/plain, Size: 972 bytes --]

2005-10-28  Andrew Stubbs  <andrew.stubbs@st.com>

	* gdb.texinfo (Choosing files): Add --eval-command.


Index: src/gdb/doc/gdb.texinfo
===================================================================
--- src.orig/gdb/doc/gdb.texinfo	2005-10-28 14:39:29.000000000 +0100
+++ src/gdb/doc/gdb.texinfo	2005-10-28 14:43:37.000000000 +0100
@@ -932,6 +932,20 @@ file named @var{number}.
 Execute @value{GDBN} commands from file @var{file}.  @xref{Command
 Files,, Command files}.
 
+@item -eval-command @var{command}
+@itemx -ex @var{command}
+@cindex @code{--eval-command}
+@cindex @code{-ex}
+Execute a single @value{GDBN} command.
+
+This option may be used multiple times to call multiple commands.  It may
+also be interleaved with @samp{-command} as required.
+
+@smallexample
+@value{GDBP} -ex 'target sim' -ex 'load' \
+   -x setbreakpoints -ex 'run' a.out
+@end smallexample
+
 @item -directory @var{directory}
 @itemx -d @var{directory}
 @cindex @code{--directory}

  reply	other threads:[~2005-10-28 14:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-18 11:33 Andrew STUBBS
2005-10-28 11:10 ` Andrew STUBBS
2005-10-28 13:04   ` Eli Zaretskii
2005-10-28 14:03     ` Andrew STUBBS [this message]
2005-10-28 17:05       ` Eli Zaretskii
2005-11-04 11:54 ` Andrew STUBBS
2005-11-05  2:51   ` Daniel Jacobowitz
2005-11-05 10:01     ` Eli Zaretskii
2005-11-07 14:01       ` Andrew STUBBS
2005-11-07 14:16       ` Andrew STUBBS
2005-11-07 17:27         ` Joel Brobecker
2005-11-07 18:06           ` Andrew STUBBS
2005-11-07 20:54             ` Eli Zaretskii
2005-11-07 20:46         ` Eli Zaretskii
2005-11-08 11:05           ` Andrew STUBBS
2005-11-13 17:38             ` Daniel Jacobowitz
2005-11-14 11:45               ` Andrew STUBBS
     [not found]                 ` <20051114134816.GA21373@nevyn.them.org>
2005-11-14 15:57                   ` Andrew STUBBS

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=43622EB4.3000804@st.com \
    --to=andrew.stubbs@st.com \
    --cc=eliz@gnu.org \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).