- fixed some spelling errors (thanks to Andrew Dyer)
authordrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 5 Jun 2006 14:36:39 +0000 (14:36 +0000)
committerdrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 5 Jun 2006 14:36:39 +0000 (14:36 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@67 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/command.c
src/openocd.c
src/server/telnet_server.c
src/server/telnet_server.h

index 26eada62e70e659a392ca579c45828dc258522c0..00d4b356150abe31a5ea40b82847a8fa490617b0 100644 (file)
@@ -33,7 +33,7 @@
 
 int handle_sleep_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
 
 
 int handle_sleep_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
 
-int build_unique_lenghts(command_context_t *context, command_t *commands)
+int build_unique_lengths(command_context_t *context, command_t *commands)
 {
        command_t *c, *p;
 
 {
        command_t *c, *p;
 
@@ -64,7 +64,7 @@ int build_unique_lenghts(command_context_t *context, command_t *commands)
                
                /* if the current command has children, build the unique lengths for them */
                if (c->children)
                
                /* if the current command has children, build the unique lengths for them */
                if (c->children)
-                       build_unique_lenghts(context, c->children);
+                       build_unique_lengths(context, c->children);
        }
        
        return ERROR_OK;
        }
        
        return ERROR_OK;
@@ -122,7 +122,7 @@ command_t* register_command(command_context_t *context, command_t *parent, char
        }
        
        /* update unique lengths */
        }
        
        /* update unique lengths */
-       build_unique_lenghts(context, (parent) ? parent : context->commands);
+       build_unique_lengths(context, (parent) ? parent : context->commands);
        
        return c;
 }
        
        return c;
 }
index 71b111a0306131de94d6089747b5b3f37fe4ed77..b0d0a844e92937654bbf54622fab2a319b0adda5 100644 (file)
@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
                return EXIT_FAILURE;
        DEBUG("log init complete");
        
                return EXIT_FAILURE;
        DEBUG("log init complete");
        
-       INFO("Open On-Chip Debugger (Revision 63)");
+       INFO("Open On-Chip Debugger (Revision 65)");
 
        cfg_cmd_ctx = copy_command_context(cmd_ctx);
        cfg_cmd_ctx->mode = COMMAND_CONFIG;
 
        cfg_cmd_ctx = copy_command_context(cmd_ctx);
        cfg_cmd_ctx->mode = COMMAND_CONFIG;
index d7933293ae2213a7501c46a7ba23c499fbf5a012..3ff3456a3d47d204140c647e4472caf39b089638 100644 (file)
@@ -75,12 +75,12 @@ int telnet_target_callback_event_handler(struct target_s *target, enum target_ev
                        buffer[511] = 0;
                        command_print(cmd_ctx, "%s", buffer);
                        telnet_prompt(connection);
                        buffer[511] = 0;
                        command_print(cmd_ctx, "%s", buffer);
                        telnet_prompt(connection);
-                       t_con->surpress_prompt = 1;
+                       t_con->suppress_prompt = 1;
                        break;
                case TARGET_EVENT_RESUMED:
                        command_print(cmd_ctx, "Target %i resumed", get_num_by_target(target));
                        telnet_prompt(connection);
                        break;
                case TARGET_EVENT_RESUMED:
                        command_print(cmd_ctx, "Target %i resumed", get_num_by_target(target));
                        telnet_prompt(connection);
-                       t_con->surpress_prompt = 1;
+                       t_con->suppress_prompt = 1;
                        break;
                default:
                        break;
                        break;
                default:
                        break;
@@ -102,7 +102,7 @@ int telnet_new_connection(connection_t *connection)
        telnet_connection->line_cursor = 0;
        telnet_connection->option_size = 0;
        telnet_connection->prompt = strdup("> ");
        telnet_connection->line_cursor = 0;
        telnet_connection->option_size = 0;
        telnet_connection->prompt = strdup("> ");
-       telnet_connection->surpress_prompt = 0;
+       telnet_connection->suppress_prompt = 0;
        telnet_connection->state = TELNET_STATE_DATA;
        
        /* output goes through telnet connection */
        telnet_connection->state = TELNET_STATE_DATA;
        
        /* output goes through telnet connection */
@@ -246,7 +246,7 @@ int telnet_input(connection_t *connection)
                                                        
                                                        /* we're running a command, so we need a prompt
                                                         * if the output handler is called, this gets set again */
                                                        
                                                        /* we're running a command, so we need a prompt
                                                         * if the output handler is called, this gets set again */
-                                                       t_con->surpress_prompt = 0;
+                                                       t_con->suppress_prompt = 0;
                                                        if ((retval = command_run_line(command_context, t_con->line)) != ERROR_OK)
                                                        {
                                                                if (retval == ERROR_COMMAND_CLOSE_CONNECTION)
                                                        if ((retval = command_run_line(command_context, t_con->line)) != ERROR_OK)
                                                        {
                                                                if (retval == ERROR_COMMAND_CLOSE_CONNECTION)
@@ -277,13 +277,13 @@ int telnet_input(connection_t *connection)
                                                        if (t_con->next_history > TELNET_LINE_HISTORY_SIZE - 1)
                                                                t_con->next_history = 0;
                                                        
                                                        if (t_con->next_history > TELNET_LINE_HISTORY_SIZE - 1)
                                                                t_con->next_history = 0;
                                                        
-                                                       if (!t_con->surpress_prompt)
+                                                       if (!t_con->suppress_prompt)
                                                        {
                                                                telnet_prompt(connection);
                                                        }
                                                        else
                                                        {
                                                        {
                                                                telnet_prompt(connection);
                                                        }
                                                        else
                                                        {
-                                                               t_con->surpress_prompt = 0;
+                                                               t_con->suppress_prompt = 0;
                                                        }
                                                        
                                                        t_con->line_size = 0;
                                                        }
                                                        
                                                        t_con->line_size = 0;
index d6ca0e86cb5de7e710a9f214b6e185f5f9884562..7b4b4a2236474c7c7418051360dd3ff5113e449e 100644 (file)
@@ -44,7 +44,7 @@ enum telnet_states
 typedef struct telnet_connection_s
 {
        char *prompt;
 typedef struct telnet_connection_s
 {
        char *prompt;
-       int surpress_prompt;
+       int suppress_prompt;
        enum telnet_states state;
        char line[TELNET_LINE_MAX_SIZE];
        int line_size;
        enum telnet_states state;
        char line[TELNET_LINE_MAX_SIZE];
        int line_size;

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)