Browse Source

A bit more log detail about connections comming and going

git-svn-id: svn://svn.berlios.de/openocd/trunk@2410 b42882b7-edfa-0310-969c-e2dbd0fdcd60
tags/v0.2.0
duane 14 years ago
parent
commit
261e04466d
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/server/gdb_server.c

+ 8
- 0
src/server/gdb_server.c View File

@@ -803,6 +803,10 @@ int gdb_new_connection(connection_t *connection)
target_call_event_callbacks(gdb_service->target, TARGET_EVENT_GDB_ATTACH);

gdb_actual_connections++;
LOG_DEBUG("New GDB Connection: %d, Target %s, state: %s",
gdb_actual_connections,
gdb_service->target->cmd_name,
target_state_name(gdb_service->target));

return ERROR_OK;
}
@@ -813,6 +817,10 @@ int gdb_connection_closed(connection_t *connection)
gdb_connection_t *gdb_connection = connection->priv;

gdb_actual_connections--;
LOG_DEBUG("GDB Close, Target: %s, state: %s, gdb_actual_connections=%d",
gdb_service->target->cmd_name,
target_state_name(gdb_service->target),
gdb_actual_connections);

/* see if an image built with vFlash commands is left */
if (gdb_connection->vflash_image)


Loading…
Cancel
Save