Last active
March 14, 2016 07:47
-
-
Save KevinKu/fc3963cf66de84c3a880 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo 'b main'>>_tmp.gdb | |
| echo 'r'>>_tmp.gdb | |
| echo 'source create_list.gdb'>>_tmp.gdb | |
| echo 'source print_list.gdb'>>_tmp.gdb | |
| echo 'source free_list.gdb'>>_tmp.gdb | |
| ------如同上面的swap一樣 這邊也是做test的準備 | |
| echo 'set $head = (List**)malloc(sizeof(List*))'>>_tmp.gdb | |
| -----這邊比較麻煩 會需要這個額外的List* object是因為這邊 bubble sort的參數type | |
| 為List ** 當初用gdb測的時候 我想也用set $xxx來當測資料 並且取$xxx的address來當 | |
| 參數傳 結果悲劇了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment