diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-12-13 12:44:39 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-12-13 12:44:39 +0000 |
commit | 0cba0d4df3fe120f08945703506f8405760325c9 (patch) | |
tree | e5db80cbe83e58a1f1fb1be3d66a4730353f3842 /src/server | |
parent | 846a2589a4161dc1e8e3730c9510a54381c26a5e (diff) | |
download | openocd_libswd-0cba0d4df3fe120f08945703506f8405760325c9.tar.gz openocd_libswd-0cba0d4df3fe120f08945703506f8405760325c9.tar.bz2 openocd_libswd-0cba0d4df3fe120f08945703506f8405760325c9.tar.xz openocd_libswd-0cba0d4df3fe120f08945703506f8405760325c9.zip |
- remove target specific variant and use target->variant member
- fix build warning in cortex_m3
- code cleanup - remove trailing lf and convert c++ comments
git-svn-id: svn://svn.berlios.de/openocd/trunk@1238 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 5 | ||||
-rw-r--r-- | src/server/server.c | 8 | ||||
-rw-r--r-- | src/server/telnet_server.c | 2 |
3 files changed, 4 insertions, 11 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index a0c60e11..06e24486 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -307,7 +307,7 @@ int gdb_put_packet_inner(connection_t *connection, char *buffer, int len) if ((retval = gdb_get_char(connection, &reply)) != ERROR_OK) return retval; if( reply == '$' ){ - // fix a problem with some IAR tools + /* fix a problem with some IAR tools */ gdb_putback_char( connection, reply ); LOG_DEBUG("Unexpected start of new packet"); break; @@ -719,7 +719,6 @@ int gdb_target_callback_event_handler(struct target_s *target, enum target_event return ERROR_OK; } - int gdb_new_connection(connection_t *connection) { gdb_connection_t *gdb_connection = malloc(sizeof(gdb_connection_t)); @@ -847,7 +846,6 @@ int gdb_last_signal_packet(connection_t *connection, target_t *target, char* pac return ERROR_OK; } - static int gdb_reg_pos(target_t *target, int pos, int len) { if (target->endianness == TARGET_LITTLE_ENDIAN) @@ -2354,7 +2352,6 @@ int handle_gdb_breakpoint_override_command(struct command_context_s *cmd_ctx, ch return ERROR_OK; } - int gdb_register_commands(command_context_t *command_context) { register_command(command_context, NULL, "gdb_port", handle_gdb_port_command, diff --git a/src/server/server.c b/src/server/server.c index 2334bb18..db61b1a5 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -429,12 +429,12 @@ int server_loop(command_context_t *command_context) #ifdef _WIN32 BOOL WINAPI ControlHandler(DWORD dwCtrlType) { - shutdown_openocd = 1; - return TRUE; + shutdown_openocd = 1; + return TRUE; } void sig_handler(int sig) { - shutdown_openocd = 1; + shutdown_openocd = 1; } #endif @@ -491,5 +491,3 @@ int handle_shutdown_command(struct command_context_s *cmd_ctx, char *cmd, char * return ERROR_COMMAND_CLOSE_CONNECTION; } - - diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c index 514b8d0a..1209b7a9 100644 --- a/src/server/telnet_server.c +++ b/src/server/telnet_server.c @@ -188,8 +188,6 @@ int telnet_new_connection(connection_t *connection) log_add_callback(telnet_log_callback, connection); - - return ERROR_OK; } |