summaryrefslogtreecommitdiff
path: root/doc/openocd.texi
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-09-27 08:50:49 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-10-01 10:26:08 +0200
commit50d5441e2a615fb2c44b41a777e4373901f7a2e6 (patch)
tree20f11272f6cdf5646b086ffa014808f372906b0b /doc/openocd.texi
parent6c137a2fc0bf53b9c0b8eda51e6f5361552b0112 (diff)
downloadopenocd+libswd-50d5441e2a615fb2c44b41a777e4373901f7a2e6.tar.gz
openocd+libswd-50d5441e2a615fb2c44b41a777e4373901f7a2e6.tar.bz2
openocd+libswd-50d5441e2a615fb2c44b41a777e4373901f7a2e6.tar.xz
openocd+libswd-50d5441e2a615fb2c44b41a777e4373901f7a2e6.zip
server: add support for pipes
-p/--pipe is now deprecated. Use '-c "gdb_port pipe;log_output openocd.log"' instead. Warning logged. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'doc/openocd.texi')
-rw-r--r--doc/openocd.texi6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index 230e47c9..77a0ad3b 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -574,7 +574,6 @@ bash$ openocd --help
--debug | -d set debug level <0-3>
--log_output | -l redirect log output to file <name>
--command | -c run <command>
---pipe | -p use pipes when talking to gdb
@end verbatim
If you don't give any @option{-f} or @option{-c} options,
@@ -7052,11 +7051,12 @@ This would cause GDB to connect to the gdbserver on the local pc using port 3333
@item
A pipe connection is typically started as follows:
@example
-target remote | openocd --pipe
+target remote | openocd -c "gdb_port pipe; log_output openocd.log"
@end example
This would cause GDB to run OpenOCD and communicate using pipes (stdin/stdout).
Using this method has the advantage of GDB starting/stopping OpenOCD for the debug
-session.
+session. log_output sends the log output to a file to ensure that the pipe is
+not saturated when using higher debug level outputs.
@end enumerate
To list the available OpenOCD commands type @command{monitor help} on the