KGDB cannot find bounds of current function
by nonameletters from LinuxQuestions.org on (#6QX5D)
Hi, all. Can you help me to understand where to move?
I am trying to debug kernel in virtual box.
I compiled kernel with all debugging enabled.
file vmlinux shows next
Code:vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=0767b8cf3a7ee968c6dc204a23272cd545c77b5d, with debug_info, not strippedThe kernel is compiled on host and installed to VM (they are the same march)
I run gdb on host next way
Code:sudo gdb -iex 'add-auto-load-safe-path scripts/gdb/vmlinux-gdb.py' vmlinuxAfter connecting to remote target gdb stops at
Code:0xffffffff84274524 in ?? ()Doing next I get
Code:Cannot find bounds of current functionAnd all other commands shows errors.
It feels like not debugging info or symbols
When I do info functions I see a lot of kernel functions.
Please direct me where to dig?
I am trying to debug kernel in virtual box.
I compiled kernel with all debugging enabled.
file vmlinux shows next
Code:vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=0767b8cf3a7ee968c6dc204a23272cd545c77b5d, with debug_info, not strippedThe kernel is compiled on host and installed to VM (they are the same march)
I run gdb on host next way
Code:sudo gdb -iex 'add-auto-load-safe-path scripts/gdb/vmlinux-gdb.py' vmlinuxAfter connecting to remote target gdb stops at
Code:0xffffffff84274524 in ?? ()Doing next I get
Code:Cannot find bounds of current functionAnd all other commands shows errors.
It feels like not debugging info or symbols
When I do info functions I see a lot of kernel functions.
Please direct me where to dig?