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
This commit is contained in:
zwelch
2009-06-10 04:06:25 +00:00
parent 82aa9af1ad
commit bdb7dd5e0f
2 changed files with 68 additions and 20 deletions

View File

@@ -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;
}