Remote GDB howto

2007-09-03 Thread Andrey V. Elsukov
Hi, I want to debug my kernel with modules through serial console. I have two machines with 7.0-CURRENT. What i do: hint.sio.0.flags=0x90 On the target system load all needed KLD. Make .asf output with patched asf(8). Why it don't create output for KERNFILE? Copy *.symbols files and .asf file

Re: Remote GDB howto

2007-09-03 Thread Greg 'groggy' Lehey
On Monday, 3 September 2007 at 10:58:54 +0400, Andrey V. Elsukov wrote: Hi, I want to debug my kernel with modules through serial console. I have two machines with 7.0-CURRENT. What i do: ... What i've missed? You're a bit sketchy on the details that I've omitted here. What happens

Re: Remote GDB howto

2007-09-03 Thread Andrey V. Elsukov
Greg 'groggy' Lehey wrote: You're a bit sketchy on the details that I've omitted here. What happens between these two lines? (kgdb) target remote /dev/cuad0 Remote debugging using /dev/cuad0 0x in ?? () (kgdb) add-symbol-file /path/to/local/copy/of/file You should have some

Re: Remote GDB howto [SOLVED]

2007-09-03 Thread Andrey V. Elsukov
Greg 'groggy' Lehey wrote: You're a bit sketchy on the details that I've omitted here. What happens between these two lines? (kgdb) target remote /dev/cuad0 (kgdb) add-symbol-file /path/to/local/copy/of/file I've solved my problem. I run on the second machine: # kgdb -r /dev/cuad0