/* TODO: Implement shutdown properly */ int a2_shutdown(struct annotate_two *a2) { cgdb_close(a2->debugger_stdin); data_shutdown(a2->data); state_machine_shutdown(a2->sm); commands_shutdown(a2->c); tgdb_list_free(a2->client_command_list, tgdb_command_destroy_list_item); tgdb_list_destroy(a2->client_command_list); tgdb_list_free(a2->cur_response_list, tgdb_types_free_command); tgdb_list_destroy(a2->cur_response_list); globals_shutdown(a2->g); return 0; }
/** * This will free all of the memory used by the responses that tgdb returns. * * \param tgdb * An instance of the tgdb library to operate on. */ void Ctgdb::Delete_responses() { tgdb_list_free(command_list, tgdb_types_free_command); }