From bdb7dd5e0f6690faf5a4c1ef19b2f36af9a7cfaa Mon Sep 17 00:00:00 2001 From: zwelch Date: Wed, 10 Jun 2009 04:06:25 +0000 Subject: 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 --- src/target/target.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3