Skip to content

GDB step debugging does not have debugging symbols on kernel 6.8 #318

@cirosantilli

Description

@cirosantilli

Just tried the most basic:

cd submodules/linux
git checkout v6.8.12
cd -
./run --gdb-wait --linux-build-id v6.8

and:

./run-gdb start_kernel --linux-build-id v6.8

The breakpoint was hit:

root@lkmc:~/lkmc# ./run-gdb --linux-build-id v6.8 start_kernel
+ cd /root/lkmc/out.docker/linux/v6.8/x86_64 && \
  /root/lkmc/out.docker/buildroot/build/default/x86_64/host/usr/bin/x86_64-buildroot-linux-gnu-gdb \
  -ex 'add-auto-load-safe-path /root/lkmc/out.docker/linux/v6.8/x86_64' \
  -ex 'file /root/lkmc/out.docker/linux/v6.8/x86_64/vmlinux' \
  -ex 'target remote localhost:45457' \
  -ex 'break start_kernel' \
  -ex continue \
  -ex 'lx-symbols /root/lkmc/out.docker/kernel_modules/x86_64/kernel_modules' \
;
GNU gdb (GDB) 8.1.50.20180718-git
Copyright (C) 2018 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 "--host=x86_64-pc-linux-gnu --target=x86_64-buildroot-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 /root/lkmc/out.docker/linux/v6.8/x86_64/vmlinux...(no debugging symbols found)...done.
Remote debugging using localhost:45457
0x000000000000fff0 in exception_stacks ()
Breakpoint 1 at 0xffffffff823f1bb0
Continuing.

Breakpoint 1, 0xffffffff823f1bb0 in start_kernel ()
Undefined command: "lx-symbols".  Try "help".
(gdb) n
Single stepping until exit from function start_kernel,
which has no line number information.
0xffffffff810817e0 in set_task_stack_end_magic ()
(gdb) 

but there were no debug symbols.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions