- fixes possible crash when GDB connection is closed while target is running due to log callback sending messages to connection which does not

exist anymore (thanks to Pavel Chromy for this patch)


git-svn-id: svn://svn.berlios.de/openocd/trunk@325 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
drath
2008-02-24 12:30:45 +00:00
parent 11ef6e6485
commit 885ae471ad
2 changed files with 24 additions and 39 deletions

View File

@@ -678,6 +678,7 @@ int gdb_connection_closed(connection_t *connection)
}
target_unregister_event_callback(gdb_target_callback_event_handler, connection);
log_setCallback(NULL, NULL);
return ERROR_OK;
}