Date: Thu, 7 Sep 2000 13:04:09 +0800 From: "Derren" <derrenl@synology.com> To: <doc@FreeBSD.org> Subject: About online handbook 22.5 Message-ID: <000001c01889$0f2da650$df01a8c0@derrenldev>
next in thread | raw e-mail | index | archive | help
Hi,
In online handbook section 22.5, it talks about using
remote GDB to debug LKMs. However, I find it doesn't support
LKMs in the FreeBSD 4.1-release. I try to modify the precodure as
the following in Vinum debugging:
1. in the debugging machine
# cd /usr/src/sys/modules/vinum
# make clean; make COPTS=-g
2. copy the vinum.ko to the debuged machine
3. in the debugged machine
# kldload vinum
# kldstat vinum
Id Refs Address Size Name
.. .. .. .. ..
3 1 0xc0b48000 c3000 vinum
4. in the debugging machine
(kgdb) add-symbol-file /usr/src/sys/modules/vinum/vinum.ko 0xc0b48020
(kgdb) b vinumstrategy
break point 4 at 0xc0b504c8: file /usr/src/sys/modules/vinums/../../dev/vinum/vinumrequest.c line 674
(kgdb) b vinumstart
break point 4 is also at 0xc0b504c8
break point 5 at 0xc0b504c8: file /usr/src/sys/modules/vinums/../../dev/vinum/vinumrequest.c line 674
The question is that all the set break functions will be break at a line
which is not actually any function located. This make me disable to stop
at any vinum funcion. I need someone to help me.
Looking for any and all info..
Thanks in advance!
--
Synology Incoporated
derrenl@synology.com
886-2-25521814 Ext.830
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001c01889$0f2da650$df01a8c0>
