vmware workstation debug linux kernel part stack
时间:2010-10-10 来源:fbwww
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/src/linux-2.6.16.60-0.21/drivers/char/tty_io.o...done.
(gdb) remote target 127.0.0.1:8832
Undefined remote command: "target 127.0.0.1:8832". Try "help remote".
(gdb) target remote 127.0.0.1:8832
Remote debugging using 127.0.0.1:8832
0xc01061d0 in ?? ()
(gdb) b tty_read
Breakpoint 1 at 0x22f5: file drivers/char/tty_io.c, line 1269.
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc01061d0 in ?? ()
(gdb) ^CQuit
(gdb)
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc01061d0 in ?? ()
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xefdf92e7 in ?? ()
(gdb) file vmlinux
A program is being debugged already.
Are you sure you want to change the file? (y or n) y
Load new symbol table from "/root/vmlinux"? (y or n) y
Reading symbols from /root/vmlinux...done.
(gdb)
(gdb) c
Continuing.
Breakpoint 1, 0xc020c204 in ?? ()
(gdb) bt
#0 0xc020c204 in ?? ()
Cannot access memory at address 0xecdddf7c
(gdb)
#0 0xc020c204 in ?? ()
Cannot access memory at address 0xecdddf7c
(gdb) quit
A debugging session is active.
Inferior 1 [Remote target] will be killed.
Quit anyway? (y or n) y
root@mordor-laptop:~# gdb vmlinux
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/vmlinux...done.
(gdb) target remote 127.0.0.1:8832
Remote debugging using 127.0.0.1:8832
0xc01061d0 in ?? ()
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc0101d61 in default_idle () at arch/i386/kernel/process.c:113
113 safe_halt();
(gdb) b tty_open
Breakpoint 1 at 0xc020d3d8
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc01061d2 in ?? ()
(gdb) bt
#0 0xc01061d2 in ?? ()
#1 0xc0138829 in ?? ()
#2 0xc01388bc in ?? ()
#3 0xc0105127 in ?? ()
#4 0xc0103c1a in ?? ()
#5 0xc0101dcd in cpu_idle () at arch/i386/kernel/process.c:200
#6 0xc0100443 in rest_init () at init/main.c:480
#7 0xc03867ab in start_kernel () at init/main.c:637
#8 0xc0100199 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) c
Continuing.
Breakpoint 1, 0xc020d3d8 in ?? ()
(gdb) bt
#0 0xc020d3d8 in ?? ()
#1 0xc015c2cf in ?? ()
#2 0xc01539a8 in ?? ()
#3 0xc0153af0 in ?? ()
#4 0xc0153b33 in ?? ()
#5 0xc0153b84 in ?? ()
#6 0xc0153c32 in ?? ()
#7 0xc0102b5b in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) b tty_open
Note: breakpoint 1 also set at pc 0xc020d3d8.
Breakpoint 2 at 0xc020d3d8
(gdb) delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
^CQuit
(gdb) bt
#0 0xc0103c20 in ?? ()
#1 0x61680064 in ?? ()
#2 0x645f6576 in ?? ()
#3 0x5f617461 in ?? ()
#4 0x6b006e69 in ?? ()
#5 0x74635f69 in ?? ()
#6 0x69730078 in ?? ()
#7 0x666e6967 in ?? ()
#8 0x6564006f in ?? ()
#9 0x75727473 in ?? ()
#10 0x726f7463 in ?? ()
#11 0x73656400 in ?? ()
#12 0x796f7274 in ?? ()
#13 0x6f6e695f in ?? ()
#14 0x62006564 in ?? ()
#15 0x656c5f76 in ?? ()
#16 0x6773006e in ?? ()
#17 0x6e656c5f in ?? ()
#18 0x616d6d00 in ?? ()
#19 0x696d5f70 in ?? ()
#20 0x64007373 in ?? ()
#21 0x7261705f in ?? ()
#22 0x00746e65 in ?? ()
---Type <return> to continue, or q <return> to quit---
#23 0x666c6573 in ?? ()
#24 0x6578655f in ?? ()
#25 0x64695f63 in ?? ()
#26 0x6b5f5f00 in ?? ()
#27 0x656e7265 in ?? ()
#28 0x69745f6c in ?? ()
#29 0x5f72656d in ?? ()
#30 0x62730074 in ?? ()
#31 0x735f3270 in ?? ()
#32 0x64656570 in ?? ()
#33 0x6d5f6f74 in ?? ()
#34 0x705f7861 in ?? ()
#35 0x6f6c7961 in ?? ()
#36 0x72006461 in ?? ()
#37 0x6f705f71 in ?? ()
#38 0x63006c6f in ?? ()
#39 0x7373616c in ?? ()
#40 0x7665645f in ?? ()
#41 0x7474615f in ?? ()
#42 0x5f007372 in ?? ()
#43 0x73635f5f in ?? ()
#44 0x72747300 in ?? ()
#45 0x00626174 in ?? ()
---Type <return> to continue, or q <return> to quit---
#46 0x6c696174 in ?? ()
#47 0x766e6500 in ?? ()
#48 0x646e655f in ?? ()
#49 0x76656400 in ?? ()
#50 0x74615f74 in ?? ()
#51 0x5f007274 in ?? ()
#52 0x646f6d5f in ?? ()
#53 0x6378655f in ?? ()
#54 0x6973756c in ?? ()
#55 0x6c5f6576 in ?? ()
#56 0x6e69676f in ?? ()
#57 0x65707974 in ?? ()
#58 0x00343331 in ?? ()
#59 0x6574756d in ?? ()
#60 0x79730078 in ?? ()
#61 0x735f7673 in ?? ()
#62 0x68006d65 in ?? ()
#63 0x5f74736f in ?? ()
#64 0x6f666e69 in ?? ()
#65 0x636f6c5f in ?? ()
#66 0x6177006b in ?? ()
#67 0x715f7469 in ?? ()
#68 0x65756575 in ?? ()
---Type <return> to continue, or q <return> to quit---
#69 0x6165685f in ?? ()
#70 0x00745f64 in ?? ()
#71 0x6b656573 in ?? ()
#72 0x61656d5f in ?? ()
#73 0x3276006e in ?? ()
#74 0x6d656d5f in ?? ()
#75 0x6971645f in ?? ()
#76 0x006f666e in ?? ()
#77 0x6f6d5f5f in ?? ()
#78 0x65735f64 in ?? ()
#79 0x6c616972 in ?? ()
#80 0x5f657a69 in ?? ()
#81 0x30316f69 in ?? ()
#82 0x74730038 in ?? ()
#83 0x75747261 in ?? ()
#84 0x616d0070 in ?? ()
#85 0x645f6b72 in ?? ()
#86 0x79747269 in ?? ()
#87 0x65737500 in ?? ()
#88 0x74735f72 in ?? ()
#89 0x74637572 in ?? ()
#90 0x5f6f6900 in ?? ()
#91 0x6d746962 in ?? ()
---Type <return> to continue, or q <return> to quit---
#92 0x6d5f7061 in ?? ()
#93 0x5f007861 in ?? ()
#94 0x646f6d5f in ?? ()
#95 0x78616d5f in ?? ()
#96 0x6365735f in ?? ()
#97 0x73726f74 in ?? ()
#98 0x00303231 in ?? ()
#99 0x5f746b70 in ?? ()
#100 0x65707974 in ?? ()
#101 0x74656700 in ?? ()
#102 0x7370685f in ?? ()
#103 0x65675f62 in ?? ()
#104 0x6172656e in ?? ()
#105 0x6e6f6974 in ?? ()
#106 0x5f6c6600 in ?? ()
#107 0x7478656e in ?? ()
#108 0x646d6300 in ?? ()
#109 0x7265705f in ?? ()
#110 0x6e756c5f in ?? ()
#111 0x69637000 in ?? ()
#112 0x7665645f in ?? ()
#113 0x5f5f5f00 in ?? ()
#114 0x71007364 in ?? ()
---Type <return> to continue, or q <return> to quit---
#115 0x65756575 in ?? ()
#116 0x67666300 in ?? ()
#117 0x7a69735f in ?? ()
#118 0x6f6e0065 in ?? ()
#119 0x6431645f in ?? ()
#120 0x65720032 in ?? ()
#121 0x74615f73 in ?? ()
#122 0x6d007274 in ?? ()
#123 0x6c75646f in ?? ()
#124 0x74615f65 in ?? ()
#125 0x62697274 in ?? ()
#126 0x00657475 in ?? ()
#127 0x755f696b in ?? ()
#128 0x5f726573 in ?? ()
#129 0x61746164 in ?? ()
#130 0x696c7200 in ?? ()
#131 0x616d5f6d in ?? ()
#132 0x61630078 in ?? ()
#133 0x69636170 in ?? ()
#134 0x67007974 in ?? ()
#135 0x645f7465 in ?? ()
#136 0x6b6c6271 in ?? ()
#137 0x6d697400 in ?? ()
---Type <return> to continue, or q <return> to quit---
#138 0x616d5f65 in ?? ()
#139 0x72726578 in ?? ()
#140 0x7200726f in ?? ()
#141 0x65757165 in ?? ()
#142 0x625f7473 in ?? ()
#143 0x65666675 in ?? ()
#144 0x666e0072 in ?? ()
#145 0x665f3473 in ?? ()
#146 0x5f5f006c in ?? ()
#147 0x0073655f in ?? ()
#148 0x72746473 in ?? ()
#149 0x70726e00 in ?? ()
#150 0x73656761 in ?? ()
#151 0x6c5f6400 in ?? ()
#152 0x64007572 in ?? ()
#153 0x00706f72 in ?? ()
#154 0x65766173 in ?? ()
#155 0x73665f64 in ?? ()
#156 0x70627300 in ?? ()
#157 0x6f6c5f32 in ?? ()
#158 0x5f6e6967 in ?? ()
#159 0x706d6f63 in ?? ()
#160 0x6574656c in ?? ()
---Type <return> to continue, or q <return> to quit---
#161 0x70627300 in ?? ()
#162 0x74735f32 in ?? ()
#163 0x73757461 in ?? ()
#164 0x6f6c625f in ?? ()
#165 0x6c006b63 in ?? ()
#166 0x5f747361 in ?? ()
#167 0x75657571 in ?? ()
#168 0x75665f65 in ?? ()
#169 0x745f6c6c in ?? ()
#170 0x00656d69 in ?? ()
#171 0x6d5f6962 in ?? ()
#172 0x765f7861 in ?? ()
#173 0x00736365 in ?? ()
#174 0x5f646461 in ?? ()
#175 0x74736f68 in ?? ()
#176 0x73616c00 in ?? ()
#177 0x5f5f0074 in ?? ()
#178 0x69766564 in ?? ()
#179 0x00736563 in ?? ()
#180 0x665f726e in ?? ()
#181 0x00656572 in ?? ()
#182 0x6e65706f in ?? ()
#183 0x6578655f in ?? ()
---Type <return> to continue, or q <return> to quit---
#184 0x69720063 in ?? ()
#185 0x6c5f676e in ?? ()
#186 0x006b636f in ?? ()
#187 0x6b5f696b in ?? ()
#188 0x656b6369 in ?? ()
#189 0x69620064 in ?? ()
#190 0x78656e5f in ?? ()
#191 0x63730074 in ?? ()
#192 0x5f646568 in ?? ()
#193 0x656d6974 in ?? ()
#194 0x64617000 in ?? ()
#195 0x676e6964 in ?? ()
#196 0x646f6d00 in ?? ()
#197 0x6372615f in ?? ()
#198 0x70735f68 in ?? ()
#199 0x66696365 in ?? ()
#200 0x76006369 in ?? ()
#201 0x65735f6d in ?? ()
#202 0x65670074 in ?? ()
#203 0x62735f74 in ?? ()
#204 0x726f6200 in ?? ()
#205 0x006e656b in ?? ()
#206 0x76656c65 in ?? ()
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) b tty_open
Breakpoint 3 at 0xc020d3d8
(gdb) c
Continuing.
Breakpoint 3, 0xc020d3d8 in ?? ()
(gdb) bt
#0 0xc020d3d8 in ?? ()
#1 0xc015c2cf in ?? ()
#2 0xc01539a8 in ?? ()
#3 0xc0153af0 in ?? ()
#4 0xc0153b33 in ?? ()
#5 0xc0153b84 in ?? ()
#6 0xc0153c32 in ?? ()
#7 0xc0102b5b in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) c
Continuing.
Breakpoint 3, 0xc020d3d8 in ?? ()
(gdb) c
Continuing.
Breakpoint 3, 0xc020d3d8 in ?? ()
(gdb) delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) c
Continuing.
^[
^[
^[
^[
^[
^[
^[^C^[^C
Program received signal SIGINT, Interrupt.
Quit
(gdb) ^CQuit
(gdb) AAAAAAAAAAAAAAA
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
^[
^[
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
^[
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb) y
Undefined command: "y". Try "help".
(gdb) c
Continuing.
Remote connection closed
(gdb) c
The program is not being run.
(gdb) target remote 127.0.0.1:8832
Remote debugging using 127.0.0.1:8832
0x000ffe6e in ?? ()
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc010b551 in ?? ()
(gdb) b tty_open
Breakpoint 4 at 0xc020d3d8
(gdb) b tty_read
Breakpoint 5 at 0xc020c204
(gdb) b cpu_idle
Breakpoint 6 at 0xc0101d98: file arch/i386/kernel/process.c, line 180.
(gdb) c
Continuing.
Breakpoint 6, cpu_idle () at arch/i386/kernel/process.c:180
180 set_thread_flag(TIF_POLLING_NRFLAG);
(gdb) bt
#0 cpu_idle () at arch/i386/kernel/process.c:180
#1 0xc0100443 in rest_init () at init/main.c:480
#2 0xc03867ab in start_kernel () at init/main.c:637
#3 0xc0100199 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) c
Continuing.
Breakpoint 4, 0xc020d3d8 in ?? ()
(gdb) bt
#0 0xc020d3d8 in ?? ()
#1 0xc015c2cf in ?? ()
#2 0xc01539a8 in ?? ()
#3 0xc0153af0 in ?? ()
#4 0xc0153b33 in ?? ()
#5 0xc0153b84 in ?? ()
#6 0xc0153c32 in ?? ()
#7 0xc0100391 in init (unused=<value optimized out>) at init/main.c:806
#8 0xc0101005 in ?? ()
(gdb) info b
Num Type Disp Enb Address What
4 breakpoint keep y 0xc020d3d8
breakpoint already hit 1 time
5 breakpoint keep y 0xc020c204
6 breakpoint keep y 0xc0101d98 in cpu_idle
at arch/i386/kernel/process.c:180
breakpoint already hit 1 time
(gdb) c
Continuing.
Breakpoint 4, 0xc020d3d8 in ?? ()
(gdb) delete breakpoints 4
(gdb) delete breakpoints 5
(gdb) delete breakpoints 6
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc0103c20 in ?? ()
(gdb) ^C\
(gdb) info b
No breakpoints or watchpoints.
(gdb) b tty_open
Breakpoint 7 at 0xc020d3d8
(gdb) c
Continuing.
Breakpoint 7, 0xc020d3d8 in ?? ()
(gdb) bt
#0 0xc020d3d8 in ?? ()
#1 0xc015c2cf in ?? ()
#2 0xc01539a8 in ?? ()
#3 0xc0153af0 in ?? ()
#4 0xc0153b33 in ?? ()
#5 0xc0153b84 in ?? ()
#6 0xc0153c32 in ?? ()
#7 0xc0102b5b in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) n
Cannot find bounds of current function
(gdb) delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) b cpu_idle
Breakpoint 8 at 0xc0101d98: file arch/i386/kernel/process.c, line 180.
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc0101d61 in default_idle () at arch/i386/kernel/process.c:113
113 safe_halt();
(gdb) bt
#0 0xc0101d61 in default_idle () at arch/i386/kernel/process.c:113
#1 0xc0101dcd in cpu_idle () at arch/i386/kernel/process.c:200
#2 0xc0100443 in rest_init () at init/main.c:480
#3 0xc03867ab in start_kernel () at init/main.c:637
#4 0xc0100199 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) n
0xc0103c20 in ?? ()
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb)
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/src/linux-2.6.16.60-0.21/drivers/char/tty_io.o...done.
(gdb) remote target 127.0.0.1:8832
Undefined remote command: "target 127.0.0.1:8832". Try "help remote".
(gdb) target remote 127.0.0.1:8832
Remote debugging using 127.0.0.1:8832
0xc01061d0 in ?? ()
(gdb) b tty_read
Breakpoint 1 at 0x22f5: file drivers/char/tty_io.c, line 1269.
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc01061d0 in ?? ()
(gdb) ^CQuit
(gdb)
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc01061d0 in ?? ()
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xefdf92e7 in ?? ()
(gdb) file vmlinux
A program is being debugged already.
Are you sure you want to change the file? (y or n) y
Load new symbol table from "/root/vmlinux"? (y or n) y
Reading symbols from /root/vmlinux...done.
(gdb)
(gdb) c
Continuing.
Breakpoint 1, 0xc020c204 in ?? ()
(gdb) bt
#0 0xc020c204 in ?? ()
Cannot access memory at address 0xecdddf7c
(gdb)
#0 0xc020c204 in ?? ()
Cannot access memory at address 0xecdddf7c
(gdb) quit
A debugging session is active.
Inferior 1 [Remote target] will be killed.
Quit anyway? (y or n) y
root@mordor-laptop:~# gdb vmlinux
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/vmlinux...done.
(gdb) target remote 127.0.0.1:8832
Remote debugging using 127.0.0.1:8832
0xc01061d0 in ?? ()
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc0101d61 in default_idle () at arch/i386/kernel/process.c:113
113 safe_halt();
(gdb) b tty_open
Breakpoint 1 at 0xc020d3d8
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc01061d2 in ?? ()
(gdb) bt
#0 0xc01061d2 in ?? ()
#1 0xc0138829 in ?? ()
#2 0xc01388bc in ?? ()
#3 0xc0105127 in ?? ()
#4 0xc0103c1a in ?? ()
#5 0xc0101dcd in cpu_idle () at arch/i386/kernel/process.c:200
#6 0xc0100443 in rest_init () at init/main.c:480
#7 0xc03867ab in start_kernel () at init/main.c:637
#8 0xc0100199 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) c
Continuing.
Breakpoint 1, 0xc020d3d8 in ?? ()
(gdb) bt
#0 0xc020d3d8 in ?? ()
#1 0xc015c2cf in ?? ()
#2 0xc01539a8 in ?? ()
#3 0xc0153af0 in ?? ()
#4 0xc0153b33 in ?? ()
#5 0xc0153b84 in ?? ()
#6 0xc0153c32 in ?? ()
#7 0xc0102b5b in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) b tty_open
Note: breakpoint 1 also set at pc 0xc020d3d8.
Breakpoint 2 at 0xc020d3d8
(gdb) delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
^CQuit
(gdb) bt
#0 0xc0103c20 in ?? ()
#1 0x61680064 in ?? ()
#2 0x645f6576 in ?? ()
#3 0x5f617461 in ?? ()
#4 0x6b006e69 in ?? ()
#5 0x74635f69 in ?? ()
#6 0x69730078 in ?? ()
#7 0x666e6967 in ?? ()
#8 0x6564006f in ?? ()
#9 0x75727473 in ?? ()
#10 0x726f7463 in ?? ()
#11 0x73656400 in ?? ()
#12 0x796f7274 in ?? ()
#13 0x6f6e695f in ?? ()
#14 0x62006564 in ?? ()
#15 0x656c5f76 in ?? ()
#16 0x6773006e in ?? ()
#17 0x6e656c5f in ?? ()
#18 0x616d6d00 in ?? ()
#19 0x696d5f70 in ?? ()
#20 0x64007373 in ?? ()
#21 0x7261705f in ?? ()
#22 0x00746e65 in ?? ()
---Type <return> to continue, or q <return> to quit---
#23 0x666c6573 in ?? ()
#24 0x6578655f in ?? ()
#25 0x64695f63 in ?? ()
#26 0x6b5f5f00 in ?? ()
#27 0x656e7265 in ?? ()
#28 0x69745f6c in ?? ()
#29 0x5f72656d in ?? ()
#30 0x62730074 in ?? ()
#31 0x735f3270 in ?? ()
#32 0x64656570 in ?? ()
#33 0x6d5f6f74 in ?? ()
#34 0x705f7861 in ?? ()
#35 0x6f6c7961 in ?? ()
#36 0x72006461 in ?? ()
#37 0x6f705f71 in ?? ()
#38 0x63006c6f in ?? ()
#39 0x7373616c in ?? ()
#40 0x7665645f in ?? ()
#41 0x7474615f in ?? ()
#42 0x5f007372 in ?? ()
#43 0x73635f5f in ?? ()
#44 0x72747300 in ?? ()
#45 0x00626174 in ?? ()
---Type <return> to continue, or q <return> to quit---
#46 0x6c696174 in ?? ()
#47 0x766e6500 in ?? ()
#48 0x646e655f in ?? ()
#49 0x76656400 in ?? ()
#50 0x74615f74 in ?? ()
#51 0x5f007274 in ?? ()
#52 0x646f6d5f in ?? ()
#53 0x6378655f in ?? ()
#54 0x6973756c in ?? ()
#55 0x6c5f6576 in ?? ()
#56 0x6e69676f in ?? ()
#57 0x65707974 in ?? ()
#58 0x00343331 in ?? ()
#59 0x6574756d in ?? ()
#60 0x79730078 in ?? ()
#61 0x735f7673 in ?? ()
#62 0x68006d65 in ?? ()
#63 0x5f74736f in ?? ()
#64 0x6f666e69 in ?? ()
#65 0x636f6c5f in ?? ()
#66 0x6177006b in ?? ()
#67 0x715f7469 in ?? ()
#68 0x65756575 in ?? ()
---Type <return> to continue, or q <return> to quit---
#69 0x6165685f in ?? ()
#70 0x00745f64 in ?? ()
#71 0x6b656573 in ?? ()
#72 0x61656d5f in ?? ()
#73 0x3276006e in ?? ()
#74 0x6d656d5f in ?? ()
#75 0x6971645f in ?? ()
#76 0x006f666e in ?? ()
#77 0x6f6d5f5f in ?? ()
#78 0x65735f64 in ?? ()
#79 0x6c616972 in ?? ()
#80 0x5f657a69 in ?? ()
#81 0x30316f69 in ?? ()
#82 0x74730038 in ?? ()
#83 0x75747261 in ?? ()
#84 0x616d0070 in ?? ()
#85 0x645f6b72 in ?? ()
#86 0x79747269 in ?? ()
#87 0x65737500 in ?? ()
#88 0x74735f72 in ?? ()
#89 0x74637572 in ?? ()
#90 0x5f6f6900 in ?? ()
#91 0x6d746962 in ?? ()
---Type <return> to continue, or q <return> to quit---
#92 0x6d5f7061 in ?? ()
#93 0x5f007861 in ?? ()
#94 0x646f6d5f in ?? ()
#95 0x78616d5f in ?? ()
#96 0x6365735f in ?? ()
#97 0x73726f74 in ?? ()
#98 0x00303231 in ?? ()
#99 0x5f746b70 in ?? ()
#100 0x65707974 in ?? ()
#101 0x74656700 in ?? ()
#102 0x7370685f in ?? ()
#103 0x65675f62 in ?? ()
#104 0x6172656e in ?? ()
#105 0x6e6f6974 in ?? ()
#106 0x5f6c6600 in ?? ()
#107 0x7478656e in ?? ()
#108 0x646d6300 in ?? ()
#109 0x7265705f in ?? ()
#110 0x6e756c5f in ?? ()
#111 0x69637000 in ?? ()
#112 0x7665645f in ?? ()
#113 0x5f5f5f00 in ?? ()
#114 0x71007364 in ?? ()
---Type <return> to continue, or q <return> to quit---
#115 0x65756575 in ?? ()
#116 0x67666300 in ?? ()
#117 0x7a69735f in ?? ()
#118 0x6f6e0065 in ?? ()
#119 0x6431645f in ?? ()
#120 0x65720032 in ?? ()
#121 0x74615f73 in ?? ()
#122 0x6d007274 in ?? ()
#123 0x6c75646f in ?? ()
#124 0x74615f65 in ?? ()
#125 0x62697274 in ?? ()
#126 0x00657475 in ?? ()
#127 0x755f696b in ?? ()
#128 0x5f726573 in ?? ()
#129 0x61746164 in ?? ()
#130 0x696c7200 in ?? ()
#131 0x616d5f6d in ?? ()
#132 0x61630078 in ?? ()
#133 0x69636170 in ?? ()
#134 0x67007974 in ?? ()
#135 0x645f7465 in ?? ()
#136 0x6b6c6271 in ?? ()
#137 0x6d697400 in ?? ()
---Type <return> to continue, or q <return> to quit---
#138 0x616d5f65 in ?? ()
#139 0x72726578 in ?? ()
#140 0x7200726f in ?? ()
#141 0x65757165 in ?? ()
#142 0x625f7473 in ?? ()
#143 0x65666675 in ?? ()
#144 0x666e0072 in ?? ()
#145 0x665f3473 in ?? ()
#146 0x5f5f006c in ?? ()
#147 0x0073655f in ?? ()
#148 0x72746473 in ?? ()
#149 0x70726e00 in ?? ()
#150 0x73656761 in ?? ()
#151 0x6c5f6400 in ?? ()
#152 0x64007572 in ?? ()
#153 0x00706f72 in ?? ()
#154 0x65766173 in ?? ()
#155 0x73665f64 in ?? ()
#156 0x70627300 in ?? ()
#157 0x6f6c5f32 in ?? ()
#158 0x5f6e6967 in ?? ()
#159 0x706d6f63 in ?? ()
#160 0x6574656c in ?? ()
---Type <return> to continue, or q <return> to quit---
#161 0x70627300 in ?? ()
#162 0x74735f32 in ?? ()
#163 0x73757461 in ?? ()
#164 0x6f6c625f in ?? ()
#165 0x6c006b63 in ?? ()
#166 0x5f747361 in ?? ()
#167 0x75657571 in ?? ()
#168 0x75665f65 in ?? ()
#169 0x745f6c6c in ?? ()
#170 0x00656d69 in ?? ()
#171 0x6d5f6962 in ?? ()
#172 0x765f7861 in ?? ()
#173 0x00736365 in ?? ()
#174 0x5f646461 in ?? ()
#175 0x74736f68 in ?? ()
#176 0x73616c00 in ?? ()
#177 0x5f5f0074 in ?? ()
#178 0x69766564 in ?? ()
#179 0x00736563 in ?? ()
#180 0x665f726e in ?? ()
#181 0x00656572 in ?? ()
#182 0x6e65706f in ?? ()
#183 0x6578655f in ?? ()
---Type <return> to continue, or q <return> to quit---
#184 0x69720063 in ?? ()
#185 0x6c5f676e in ?? ()
#186 0x006b636f in ?? ()
#187 0x6b5f696b in ?? ()
#188 0x656b6369 in ?? ()
#189 0x69620064 in ?? ()
#190 0x78656e5f in ?? ()
#191 0x63730074 in ?? ()
#192 0x5f646568 in ?? ()
#193 0x656d6974 in ?? ()
#194 0x64617000 in ?? ()
#195 0x676e6964 in ?? ()
#196 0x646f6d00 in ?? ()
#197 0x6372615f in ?? ()
#198 0x70735f68 in ?? ()
#199 0x66696365 in ?? ()
#200 0x76006369 in ?? ()
#201 0x65735f6d in ?? ()
#202 0x65670074 in ?? ()
#203 0x62735f74 in ?? ()
#204 0x726f6200 in ?? ()
#205 0x006e656b in ?? ()
#206 0x76656c65 in ?? ()
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) b tty_open
Breakpoint 3 at 0xc020d3d8
(gdb) c
Continuing.
Breakpoint 3, 0xc020d3d8 in ?? ()
(gdb) bt
#0 0xc020d3d8 in ?? ()
#1 0xc015c2cf in ?? ()
#2 0xc01539a8 in ?? ()
#3 0xc0153af0 in ?? ()
#4 0xc0153b33 in ?? ()
#5 0xc0153b84 in ?? ()
#6 0xc0153c32 in ?? ()
#7 0xc0102b5b in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) c
Continuing.
Breakpoint 3, 0xc020d3d8 in ?? ()
(gdb) c
Continuing.
Breakpoint 3, 0xc020d3d8 in ?? ()
(gdb) delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) c
Continuing.
^[
^[
^[
^[
^[
^[
^[^C^[^C
Program received signal SIGINT, Interrupt.
Quit
(gdb) ^CQuit
(gdb) AAAAAAAAAAAAAAA
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
^[
^[
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
^[
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb)
Undefined command: "AAAAAAAAAAAAAAA". Try "help".
(gdb) y
Undefined command: "y". Try "help".
(gdb) c
Continuing.
Remote connection closed
(gdb) c
The program is not being run.
(gdb) target remote 127.0.0.1:8832
Remote debugging using 127.0.0.1:8832
0x000ffe6e in ?? ()
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc010b551 in ?? ()
(gdb) b tty_open
Breakpoint 4 at 0xc020d3d8
(gdb) b tty_read
Breakpoint 5 at 0xc020c204
(gdb) b cpu_idle
Breakpoint 6 at 0xc0101d98: file arch/i386/kernel/process.c, line 180.
(gdb) c
Continuing.
Breakpoint 6, cpu_idle () at arch/i386/kernel/process.c:180
180 set_thread_flag(TIF_POLLING_NRFLAG);
(gdb) bt
#0 cpu_idle () at arch/i386/kernel/process.c:180
#1 0xc0100443 in rest_init () at init/main.c:480
#2 0xc03867ab in start_kernel () at init/main.c:637
#3 0xc0100199 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) c
Continuing.
Breakpoint 4, 0xc020d3d8 in ?? ()
(gdb) bt
#0 0xc020d3d8 in ?? ()
#1 0xc015c2cf in ?? ()
#2 0xc01539a8 in ?? ()
#3 0xc0153af0 in ?? ()
#4 0xc0153b33 in ?? ()
#5 0xc0153b84 in ?? ()
#6 0xc0153c32 in ?? ()
#7 0xc0100391 in init (unused=<value optimized out>) at init/main.c:806
#8 0xc0101005 in ?? ()
(gdb) info b
Num Type Disp Enb Address What
4 breakpoint keep y 0xc020d3d8
breakpoint already hit 1 time
5 breakpoint keep y 0xc020c204
6 breakpoint keep y 0xc0101d98 in cpu_idle
at arch/i386/kernel/process.c:180
breakpoint already hit 1 time
(gdb) c
Continuing.
Breakpoint 4, 0xc020d3d8 in ?? ()
(gdb) delete breakpoints 4
(gdb) delete breakpoints 5
(gdb) delete breakpoints 6
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc0103c20 in ?? ()
(gdb) ^C\
(gdb) info b
No breakpoints or watchpoints.
(gdb) b tty_open
Breakpoint 7 at 0xc020d3d8
(gdb) c
Continuing.
Breakpoint 7, 0xc020d3d8 in ?? ()
(gdb) bt
#0 0xc020d3d8 in ?? ()
#1 0xc015c2cf in ?? ()
#2 0xc01539a8 in ?? ()
#3 0xc0153af0 in ?? ()
#4 0xc0153b33 in ?? ()
#5 0xc0153b84 in ?? ()
#6 0xc0153c32 in ?? ()
#7 0xc0102b5b in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) n
Cannot find bounds of current function
(gdb) delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) b cpu_idle
Breakpoint 8 at 0xc0101d98: file arch/i386/kernel/process.c, line 180.
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xc0101d61 in default_idle () at arch/i386/kernel/process.c:113
113 safe_halt();
(gdb) bt
#0 0xc0101d61 in default_idle () at arch/i386/kernel/process.c:113
#1 0xc0101dcd in cpu_idle () at arch/i386/kernel/process.c:200
#2 0xc0100443 in rest_init () at init/main.c:480
#3 0xc03867ab in start_kernel () at init/main.c:637
#4 0xc0100199 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) n
0xc0103c20 in ?? ()
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb)
相关阅读 更多 +