你好!;) 清水河 wrote: > Hi, I tried to use gdb to debug kernel code. > I compiled with -g -ggdb flags, but it seems gdb cannot show symbols > correctly, instead it shows all ?? > compile kernel with debug information. In kernel compilation menu "make menuconfig" select Kernel Hucking->Compile kernel with Debug information, there are anumber of kernel debugging related options to turn on.
Which processor architecture you compiling your kernel for? > Remote debugging using /dev/pts/11 > 0xc0467118 in ?? () > (gdb) where > #0 0xc0467118 in ?? () > #1 0xc077db2d in ?? () > #2 0x00000000 in ?? () > > how to solve this problem? > _______________________________________________ > bug-gdb mailing list > bug-gdb@gnu.org > http://lists.gnu.org/mailman/listinfo/bug-gdb > _______________________________________________ bug-gdb mailing list bug-gdb@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gdb