4,441
社区成员
发帖
与我相关
我的任务
分享
# gdb ./vmlinux-4.8.17
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 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 ./vmlinux-4.8.17...done.
(gdb) set debug auto-load on
(gdb) set serial baud 115200
(gdb) target remote /dev/ttyUSB0
Remote debugging using /dev/ttyUSB0
0xffffffffb7525e37 in ?? ()
(gdb) ba
#0 0xffffffffb7525e37 in ?? ()
#1 0xffff98c5e77cfde0 in ?? ()
#2 0xffffffffb7525ea1 in ?? ()
#3 0xffff98c5e77cfe10 in ?? ()
#4 0xffffffffb78dedfd in ?? ()
#5 0x0000000000000002 in irq_stack_union ()
#6 0x000000000095f408 in ?? ()
#7 0xffff98c5e77cff18 in ?? ()
#8 0xffff98c5e77cfe28 in ?? ()
#9 0xffffffffb78df28d in ?? ()
#10 0xffff98c62a0ad180 in ?? ()
#11 0xffff98c5e77cfe48 in ?? ()
#12 0xffffffffb76806da in ?? ()
#13 0xffff98c62864a500 in ?? ()
#14 0xffff98c5e77cff18 in ?? ()
#15 0xffff98c5e77cfed0 in ?? ()
#16 0xffffffffb7612fe7 in ?? ()
#17 0x000000005b7e68f1 in ?? ()
#18 0x000000000000000a in irq_stack_union ()
#19 0xffffffffb7630db0 in ?? ()
#20 0xffff98c5e77cfe80 in ?? ()
#21 0xffffffffb777f5b1 in ?? ()
#22 0xffff98c5e77cfeb0 in ?? ()
---Type <return> to continue, or q <return> to quit---b
#23 0xffffffffb774172b in ?? ()
#24 0x0000000000000001 in irq_stack_union ()
#25 0xffff98c62864a500 in ?? ()
#26 0x000000000095f408 in ?? ()
#27 0xffff98c5e77cff18 in ?? ()
#28 0xffffffffb74c2952 in ?? ()
#29 0x000000005b7e68f1 in ?? ()
#30 0xffff98c62864a500 in ?? ()
#31 0x0000000000000002 in irq_stack_union ()
#32 0xffffffffb76136fe in ?? ()
#33 0xffff98c62864a500 in ?? ()
#34 0xffff98c62864a500 in ?? ()
#35 0x000000000095f408 in ?? ()
#36 0x0000000000000002 in irq_stack_union ()
#37 0xffff98c5e77cff48 in ?? ()
#38 0xffffffffb7614abb in ?? ()
#39 0x0000000000000000 in ?? ()
(gdb) b bio_alloc
Breakpoint 1 at 0xffffffff810cb05f: bio_alloc. (25 locations)
(gdb) c
Continuing.
Warning:
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff810cb05f
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff811d3cac
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff81248800
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff8124df25
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff8124e146
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff8124e458
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff8124e673
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff8124ea7b
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff8124ecac
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff8124efc5
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff8124f1e4
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff8124fd9c
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff8124fffd
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff81250371
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff812505df
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff8125098a
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff81250beb
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff81251278
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff812512b2
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff812629f8
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff812a6dcc
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff812e75e6
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff813ae833
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff813b2dc9
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff816788e1
Command aborted.
(gdb) q
A debugging session is active.
Inferior 1 [Remote target] will be killed.
Quit anyway? (y or n) y