diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-10-14 20:58:28 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-10-14 20:58:28 +0000 |
commit | d58229e73bf0fcb0da00c85985dd665fe4593fd4 (patch) | |
tree | 7177614dfaea42acf9c943dd5a98b9ac1f7e31a6 /src/server/gdb_server.c | |
parent | 347db1b7364d8246bd8827f29efd0a829f1ffa16 (diff) |
- remove build warnings
- add missing svn props
git-svn-id: svn://svn.berlios.de/openocd/trunk@1062 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server/gdb_server.c')
-rw-r--r-- | src/server/gdb_server.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 562eb13a..6dcd493b 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -37,6 +37,7 @@ #include "jtag.h" #include "breakpoints.h" #include "flash.h" +#include "target.h" #include "target_request.h" #include "configuration.h" @@ -305,7 +306,7 @@ int gdb_put_packet_inner(connection_t *connection, char *buffer, int len) break; if ((retval = gdb_get_char(connection, &reply)) != ERROR_OK) return retval; - if( reply == '$' ){ + if( reply == '$' ){ // fix a problem with some IAR tools gdb_putback_char( connection, reply ); LOG_DEBUG("Unexpected start of new packet"); @@ -787,7 +788,7 @@ int gdb_new_connection(connection_t *connection) return ERROR_OK; } -void gdb_connection_closed(connection_t *connection) +int gdb_connection_closed(connection_t *connection) { gdb_service_t *gdb_service = connection->service->priv; gdb_connection_t *gdb_connection = connection->priv; @@ -817,6 +818,8 @@ void gdb_connection_closed(connection_t *connection) log_remove_callback(gdb_log_callback, connection); target_call_event_callbacks(gdb_service->target, TARGET_EVENT_GDB_DETACH ); + + return ERROR_OK; } void gdb_send_error(connection_t *connection, u8 the_error) |