#include "jtag.h"
#include "breakpoints.h"
#include "flash.h"
+#include "target.h"
#include "target_request.h"
#include "configuration.h"
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");
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;
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)