0

I cross compiled the kernel sources for arm, with debug info and KGDB.

When I run gdb in the host :

$ arm-linux-gnueabihf-gdb vmlinux

...

Reading symbols from vmlinux... done.

(gdb) target remote /dev/ttyUSB0

Remote debugging unsing /dev/ttyUSB0

**0xc0080480 in ?? ()**

When I try to set breakpoints in functions, GDB says that it doesn't recognize the function .For example :

(gdb) b panic
**Function "panic" not defined**

HELP Please !!

ScottJShea
  • 7,041
  • 11
  • 44
  • 67

1 Answers1

0

Are you using the right vmlinux file? check that and you can use readelf -s command on vmlinux file to check if your symbol is defined in it.

Sheetal T
  • 90
  • 1
  • 7