summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-10 04:06:25 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-10 04:06:25 +0000
commitbdb7dd5e0f6690faf5a4c1ef19b2f36af9a7cfaa (patch)
tree7fe96e8db75e97e10b754c3cec1df3a4d4e3e456 /src
parent82aa9af1ad529cbea13dfe5ad4b2c359444d4d07 (diff)
downloadopenocd+libswd-bdb7dd5e0f6690faf5a4c1ef19b2f36af9a7cfaa.tar.gz
openocd+libswd-bdb7dd5e0f6690faf5a4c1ef19b2f36af9a7cfaa.tar.bz2
openocd+libswd-bdb7dd5e0f6690faf5a4c1ef19b2f36af9a7cfaa.tar.xz
openocd+libswd-bdb7dd5e0f6690faf5a4c1ef19b2f36af9a7cfaa.zip
Move the documentation for the "poll" command up with
other server configuration. Explain what it's about; reference the related "$target_name curstate" method. Update "poll" output to report whether background polling is enabled or not. Also fix a small typo; PC's have "complementary" tools. Some have also "complimentary" ones; but not all. git-svn-id: svn://svn.berlios.de/openocd/trunk@2178 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/target/target.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/target/target.c b/src/target/target.c
index 8bc8e4c0..1ac666e5 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -1770,9 +1770,11 @@ static int handle_poll_command(struct command_context_s *cmd_ctx, char *cmd, cha
if (argc == 0)
{
- if((retval = target_poll(target)) != ERROR_OK)
+ command_print(cmd_ctx, "background polling: %s",
+ target_continous_poll ? "on" : "off");
+ if ((retval = target_poll(target)) != ERROR_OK)
return retval;
- if((retval = target_arch_state(target)) != ERROR_OK)
+ if ((retval = target_arch_state(target)) != ERROR_OK)
return retval;
}