Display HLL C when debugging Linux kernel source with TRACE32

637 Views Asked by At

I am debugging with Linux kernel LTS4.4 (arm32, cortexa7).

I already built successfully the kernel image as well as vmlinux.

I am using Debugger Lauterbach and Trace32 tool. And use below command to load vmlinux and kernel source

B:: data.load.Elf /home/compile-kernel/linux-4.4.138/vmlinux /PlusVM /STRIPPART 4 /PATH "/home/src-kernel"

enter image description here

The loading progress is successful, but I don't see any C code (HLL), only asm.

After that, I try to show symbol.list.source . However, the table List is empty.

Could you guys support me on this ! Thanks.

1

There are 1 best solutions below

0
On BEST ANSWER

Load Kernel Symbols:

Step 1:

  • vmlinux

build/tmp/work/.../linux-kernel-standard-build/arch/arm/boot/vmlinux

  • kernel source

build/tmp/work/.../linux-kernel-standard-build/source

Step 2:

Data.LOAD.Elf /home/user/build/tmp/work/.../linux-kernel-standard-build/arch/arm/boot/vmlinux /NoCODE /STRIPPART "arch" /SOURCEPATH /home/user/build/tmp/work/.../linux-kernel-standard-build/source

Result:

enter image description here