Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Sep 2007 10:58:54 +0400
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        freebsd-hackers@freebsd.org
Cc:        grog@freebsd.org
Subject:   Remote GDB howto
Message-ID:  <46DBB0AE.90106@yandex.ru>

next in thread | raw e-mail | index | archive | help
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 from target machine.
On second machine run:
# du -l /dev/cuad0
~^D
# kgdb
(kgdb) target remote /dev/cuad0
(kgdb) add-symbol-file /path/to/local/copy/of/file
                 <parameters from .asf>
(kgdb) <add-symbol-file for each module>
(kgdb) cont

On target machine run into panic.
Now on the second machine kgdb take a trap, but
i only have the following:
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0]
0x00000000 in ?? ()
(kgdb) bt
#0  0x00000000 in ?? ()

What i've missed?

-- 
WBR, Andrey V. Elsukov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46DBB0AE.90106>