diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-08-05 14:58:37 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-08-05 14:58:37 +0000 |
commit | 09bb073239279be4df77a40377da66a741f43c5c (patch) | |
tree | 819400d3cbeca93b549682c88285292f1bdcccdb /src/server | |
parent | 0ca1eb2804f548a1a325a83d754ff7e2f24de560 (diff) | |
download | openocd+libswd-09bb073239279be4df77a40377da66a741f43c5c.tar.gz openocd+libswd-09bb073239279be4df77a40377da66a741f43c5c.tar.bz2 openocd+libswd-09bb073239279be4df77a40377da66a741f43c5c.tar.xz openocd+libswd-09bb073239279be4df77a40377da66a741f43c5c.zip |
GDB monitor commands now also get halted state upon e.g. "reset halt".
git-svn-id: svn://svn.berlios.de/openocd/trunk@892 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/telnet_server.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c index 004f4ac3..c5b6bf5f 100644 --- a/src/server/telnet_server.c +++ b/src/server/telnet_server.c @@ -144,20 +144,6 @@ void telnet_log_callback(void *priv, const char *file, int line, telnet_write(connection, "\b", 1); } -int telnet_target_callback_event_handler(struct target_s *target, enum target_event event, void *priv) -{ - switch (event) - { - case TARGET_EVENT_HALTED: - target_arch_state(target); - break; - default: - break; - } - - return ERROR_OK; -} - int telnet_new_connection(connection_t *connection) { telnet_connection_t *telnet_connection = malloc(sizeof(telnet_connection_t)); @@ -197,8 +183,6 @@ int telnet_new_connection(connection_t *connection) telnet_connection->next_history = 0; telnet_connection->current_history = 0; - target_register_event_callback(telnet_target_callback_event_handler, connection->cmd_ctx); - log_add_callback(telnet_log_callback, connection); @@ -601,8 +585,6 @@ int telnet_connection_closed(connection_t *connection) LOG_ERROR("BUG: connection->priv == NULL"); } - target_unregister_event_callback(telnet_target_callback_event_handler, connection->cmd_ctx); - return ERROR_OK; } |