diff options
author | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-28 02:54:19 +0000 |
---|---|---|
committer | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-28 02:54:19 +0000 |
commit | 261e04466ddfa9735edade34528ac943a0f53742 (patch) | |
tree | 308318be4e1a32b609b957db479c17491249c878 /src | |
parent | 9ab9786f67f3a3532aa5db339c4c22b2ea843ad7 (diff) | |
download | openocd_libswd-261e04466ddfa9735edade34528ac943a0f53742.tar.gz openocd_libswd-261e04466ddfa9735edade34528ac943a0f53742.tar.bz2 openocd_libswd-261e04466ddfa9735edade34528ac943a0f53742.tar.xz openocd_libswd-261e04466ddfa9735edade34528ac943a0f53742.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/server/gdb_server.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 3da29663..e12036ea 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -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) |