Last active
February 12, 2016 11:35
-
-
Save KevinKu/8bf66d2c32df3ad35603 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
| GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 | |
| Copyright (C) 2014 Free Software Foundation, Inc. | |
| License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
| This is free software: you are free to change and redistribute it. | |
| There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
| and "show warranty" for details. | |
| This GDB was configured as "x86_64-linux-gnu". | |
| Type "show configuration" for configuration details. | |
| For bug reporting instructions, please see: | |
| <http://www.gnu.org/software/gdb/bugs/>. | |
| Find the GDB manual and other documentation resources online at: | |
| <http://www.gnu.org/software/gdb/documentation/>. | |
| For help, type "help". | |
| Type "apropos word" to search for commands related to "word"... | |
| Reading symbols from swap...done. | |
| Breakpoint 1 at 0x40072a: file swap.c, line 135. | |
| Breakpoint 1, main () at swap.c:135 | |
| 135 int main(){return 0;} | |
| $1 = 0 | |
| $2 = (List *) 0x602010 | |
| $3 = 0 | |
| $4 = (struct List_node *) 0x0 | |
| $6 = (List *) 0x602010 | |
| $7 = 1 | |
| $8 = (List *) 0x602030 | |
| $9 = 1 | |
| $10 = (struct List_node *) 0x0 | |
| $11 = (struct List_node *) 0x602030 | |
| $12 = 2 | |
| $13 = (struct List_node *) 0x602030 | |
| $14 = (List *) 0x602050 | |
| $15 = 2 | |
| $16 = (struct List_node *) 0x0 | |
| $17 = (struct List_node *) 0x602050 | |
| $18 = 3 | |
| $19 = (struct List_node *) 0x602050 | |
| $20 = (List *) 0x602070 | |
| $21 = 3 | |
| $22 = (struct List_node *) 0x0 | |
| $23 = (struct List_node *) 0x602070 | |
| $24 = 4 | |
| $25 = (struct List_node *) 0x602070 | |
| $26 = (List *) 0x602010 | |
| $27 = "test begin", '-' <repeats 90 times> -------------------------->測試開始 以上的幾行是create list的資料 | |
| $28 = "old_list", '-' <repeats 91 times> -------------------------->swap前>的list | |
| $29 = (List *) 0x602010 | |
| $30 = 0 | |
| $31 = (struct List_node *) 0x602030 | |
| $32 = 1 | |
| $33 = (struct List_node *) 0x602050 | |
| $34 = 2 | |
| $35 = (struct List_node *) 0x602070 | |
| $36 = 3 | |
| $37 = (struct List_node *) 0x0 | |
| $38 = (List *) 0x602010 | |
| $39 = (List *) 0x602010 | |
| $40 = "new_list", '-' <repeats 89 times> | |
| $41 = (List *) 0x602010 | |
| $42 = 0 | |
| $43 = (struct List_node *) 0x602050 | |
| $44 = 2 ---------------------------> | |
| $45 = (struct List_node *) 0x602030 | |
| $46 = 1 --------------------------->果然與node3 交換了 | |
| $47 = (struct List_node *) 0x602070 | |
| $48 = 3 | |
| $49 = (struct List_node *) 0x0 | |
| $50 = (List *) 0x602010 | |
| $51 = "old_list", '-' <repeats 91 times> | |
| $52 = (List *) 0x602010 | |
| $53 = 0 | |
| $54 = (struct List_node *) 0x602050 | |
| $55 = 2 | |
| $56 = (struct List_node *) 0x602030 | |
| $57 = 1 | |
| $58 = (struct List_node *) 0x602070 | |
| $59 = 3 | |
| $60 = (struct List_node *) 0x0 | |
| $61 = (List *) 0x602010 | |
| $62 = (List *) 0x602050 | |
| $63 = "new_list", '-' <repeats 89 times> | |
| $64 = (List *) 0x602050 | |
| $65 = 2 --------------------------> | |
| $66 = (struct List_node *) 0x602010 | |
| $67 = 0 -------------------------->node1 2 交換>了 | |
| $68 = (struct List_node *) 0x602030 | |
| $69 = 1 | |
| $70 = (struct List_node *) 0x602070 | |
| $71 = 3 | |
| $72 = (struct List_node *) 0x0 | |
| $73 = (List *) 0x602050 | |
| (gdb) quit | |
| A debugging session is active. | |
| Inferior 1 [process 7376] will be killed. | |
| Quit anyway? (y or n) [answered Y; input not from terminal] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment