/* TODO: Implement shutdown properly */ int a2_shutdown ( void *ctx ) { struct annotate_two *a2 = (struct annotate_two *)ctx; cgdb_close(a2->debugger_stdin); data_shutdown ( a2->data ); state_machine_shutdown ( a2->sm ); commands_shutdown ( a2->c ); globals_shutdown ( a2->g ); return 0; }
/* 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; }