Thanks Mithlesh, it helps me. Caz, but after series of experiments I came up to fact, that breakpoints doesn't work in modules :( I do the following:
1. boot up target with no modules loaded 2. connect gdb-kgdblight to target 3. in gdb I'm setting breakpoint: *** (kgdb) b ath_attach Function "ath_attach" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (ath_attach) pending. *** 4. then I'm loading module on target: *** modprobe ath_pci *** and I see printk messages from ath_attach (this function is executed on module load), breakpoint doen't work in this case. 5. then in gdb I do following: *** (kgdb) d Delete all breakpoints? (y or n) y (kgdb) info shared Reading symbols from /root/dev/objs/ath_pci.ko...expanding to full symbols...done. Loaded symbols for /root/dev/objs/ath_pci.ko Reading symbols from /root/dev/objs/ath_rate_ctrl.ko...expanding to full symbols...done. Loaded symbols for /root/dev/objs/ath_rate_ctrl.ko Reading symbols from /root/dev/objs/wlan.ko...expanding to full symbols...done. Loaded symbols for /root/dev/objs/wlan.ko Reading symbols from /root/dev/objs/ath_dfs.ko...expanding to full symbols...done. Loaded symbols for /root/dev/objs/ath_dfs.ko Reading symbols from /root/dev/objs/ath_hal.ko...expanding to full symbols...done. Loaded symbols for /root/dev/objs/ath_hal.ko From To Syms Read Shared Object Library 0xe0766000 0xe07660f4 Yes /root/dev/objs/pcspkr.ko 0xe076b000 0xe076e714 Yes /root/dev/objs/e100.ko 0xe13df000 0xe13ecec0 Yes /root/dev/objs/ath_pci.ko 0xe1236000 0xe1237950 Yes /root/dev/objs/ath_rate_ctrl.ko 0xe1024000 0xe103ea34 Yes /root/dev/objs/wlan.ko 0xe0a17000 0xe0a1ab9c Yes /root/dev/objs/ath_dfs.ko 0xe0934000 0xe0952968 Yes /root/dev/objs/ath_hal.ko (kgdb) b ath_attach Breakpoint 3 at 0xe13e8cb0: file /root/dev/madwifi-9999/ath/if_ath.c, line 426. *** 6. then on target i do rmmod and modprobe again, and even in this case I see printk messages from ath_attach so breakpoint didn't stop code execution what is wrong. Regards, Dmitry. Mithlesh Thukral wrote: > These messages are coming because you turned enabled remote debugging by : > "set debug remote 1" > > HTH, > Mithlesh Thukral ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Kgdb-bugreport mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport
