Hi All,
Trying to get a remote debugger up and running as per On-Line Kernel Debugging Using Remote GDB
This is where I am at:
Both systems are: FreeBSD 8.2-RELEASE-p4
The target Setup:
KERNCONF:
boot/device.hints:
Target Debugging:
At this time I start the host debugger, then:
At this point it appears to be dead locked, Get no KB response, so Power OFF after waiting awhile!
The host Setup:
Host Debugging:
I have tested the NULL modem cable, it is correct w/Full handshake, I have also tried others.
Any ideas/suggestions/help would be greatly appreciated.
Thanks
-Enjoy
fh : )_~
Trying to get a remote debugger up and running as per On-Line Kernel Debugging Using Remote GDB
This is where I am at:
Both systems are: FreeBSD 8.2-RELEASE-p4
The target Setup:
KERNCONF:
Code:
makeoptions DEBUG=-g
options KDB
options KDB_TRACE
options DDB
options GDB
Code:
hint.uart.0.flags="0x00080"
Code:
# cd /usr/src
# make buildkernel MYKERNEL
# make installkernel MYKERNEL
# cd /boot/kernel
# strip -x *
# shutdown -r now
Code:
OK boot -d
Code:
GDB: debug ports: uart
GDB: current port: uart
KDB: debugger backends: ddb gdb
KDB: current backend: ddb
KDB: enter: Boot flags requested debugger
[thread pid 0 tid 0 ]
Stopped at kdb_enter+0x3a: movl $0,kdb_why
db>
Code:
db> gdb
Step to enter the remote GDB backend.
db> s
The host Setup:
Code:
# cd /usr/obj
# mount /remote/usr
# cp -Rp /remote/usr/obj/usr .
# umount /remote/usr
Code:
# cd /usr/obj/usr/src/sys/MYKERNEL
# kgdb kernel
Copyright ... ETC ...
.
.
.
This GDB was configured as "i386-marcel-freebsd"...
(kgdb) target remote /dev/cuau0
Remote debugging using /dev/cuau0
Ignoring packet error, continuing...
.
.
.
Couldn't establish connection to remote target
Malformed response to offset query, timeout
(kgdb)
I have tested the NULL modem cable, it is correct w/Full handshake, I have also tried others.
Any ideas/suggestions/help would be greatly appreciated.
Thanks
-Enjoy
fh : )_~