Removed code that inserted prompt after printing asynchronous information. Current...
[openocd.git] / src / server / telnet_server.c
index 892ed729b603ca30696e5fa4036a3613a05b47b0..38213f80ebc4463db55c1fe8acf85c6a99598c33 100644 (file)
@@ -119,20 +119,10 @@ void telnet_log_callback(void *priv, const char *file, int line,
 
 int telnet_target_callback_event_handler(struct target_s *target, enum target_event event, void *priv)
 {
-       struct command_context_s *cmd_ctx = priv;
-       connection_t *connection = cmd_ctx->output_handler_priv;
-       telnet_connection_t *t_con = connection->priv;
-       
        switch (event)
        {
                case TARGET_EVENT_HALTED:
                        target_arch_state(target);
-                       if (!t_con->suppress_prompt)
-                               telnet_prompt(connection);
-                       break;
-               case TARGET_EVENT_RESUMED:
-                       if (!t_con->suppress_prompt)
-                               telnet_prompt(connection);
                        break;
                default:
                        break;
@@ -155,7 +145,6 @@ int telnet_new_connection(connection_t *connection)
        telnet_connection->line_cursor = 0;
        telnet_connection->option_size = 0;
        telnet_connection->prompt = strdup("> ");
-       telnet_connection->suppress_prompt = 0;
        telnet_connection->state = TELNET_STATE_DATA;
        
        /* output goes through telnet connection */
@@ -298,12 +287,10 @@ int telnet_input(connection_t *connection)
                                                        }
                                                        
                                                        log_add_callback(telnet_log_callback, connection);
-                                                       t_con->suppress_prompt = 1;
 
                                                        retval = command_run_line(command_context, t_con->line);
                                                        
                                                        log_remove_callback(telnet_log_callback, connection);
-                                                       t_con->suppress_prompt = 0;
 
                                                        if (retval == ERROR_COMMAND_CLOSE_CONNECTION)
                                                        {

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)