[Kgdb-bugreport] problem with module debugging
Status: Beta
Brought to you by:
jwessel
From: Chulhwan Y. <yc...@co...> - 2005-05-20 12:54:30
|
Hi,all I try to module debug on SMDK2410 board.(CPU:SAMSUNG S3C2410, ARM920T core, linux 2.6.11 port) I used core-lite.patch rev 1.69 arm-lite.patch rev 1.11 module.patch rev 1.6 and, I writing kgdb-serial. I debug by gdb-6.0-kgdb-2.2 with arm-linux configure. kernel debug work good, but module debug is some problem. break point set and hit success, but gdb can't find source code. so, I can asm level debug only. please help me. (gdb) ta re /dev/ttyS0 Remote debugging using /dev/ttyS0 0xc004b5b0 in breakpoint () at kernel/kgdb.c:1629 1629 atomic_set(&kgdb_setting_breakpoint, 1); (gdb) set solib-search-path /home/yoon/module_test/call_dev-2 <- set lib path (gdb) c Continuing. [New Thread 39] [New Thread 32768] Program received signal SIGTRAP, Trace/breakpoint trap. 0xc004b5b0 in breakpoint () at kernel/kgdb.c:1629 1629 atomic_set(&kgdb_setting_breakpoint, 1); (gdb) b call_open <- break point set Breakpoint 1 at 0xbf00002c: file proc_fs.h, line 189. (gdb) info shared From To Syms Read Shared Object Library 0xbf000000 0xbf000164 Yes /home/yoon/module_test/call_dev-2/call_dev.ko <- symbol load success (gdb) c Continuing. [New Thread 41] [Switching to Thread 41] Breakpoint 1, 0xbf00002c in call_open () at proc_fs.h:189 <-break point hit 189 proc_fs.h: No such file or directory. <- But, gdb can't find module source file. in proc_fs.h (gdb) l <- so, I don't use list command 184 in proc_fs.h (gdb) info source Current source file is proc_fs.h Compilation directory is include/linux Source language is c. Compiled with unknown debugging format. Does not include preprocessor macro info. (gdb) stepi <- I can use stepi command only, please help me. 0xbf000030 189 in proc_fs.h (gdb) stepi 0xbf000034 189 in proc_fs.h (gdb) stepi 0xbf000038 189 in proc_fs.h (gdb) |