From owner-freebsd-current@FreeBSD.ORG Fri Feb 11 09:44:58 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2986116A4CE for ; Fri, 11 Feb 2005 09:44:58 +0000 (GMT) Received: from gatekeeper.syskonnect.de (gatekeeper.syskonnect.de [213.144.13.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id 739DA43D48 for ; Fri, 11 Feb 2005 09:44:57 +0000 (GMT) (envelope-from gheinig@syskonnect.de) Received: from syskonnect.de (skd.de [10.9.15.1])j1B9j891017675; Fri, 11 Feb 2005 10:45:10 +0100 (MET) Received: from syskonnect.de (localhost [127.0.0.1]) by syskonnect.de (8.12.11/8.12.11) with ESMTP id j1B9iqMM025095; Fri, 11 Feb 2005 10:44:52 +0100 (MET) Message-ID: <420C7E78.4010303@syskonnect.de> Date: Fri, 11 Feb 2005 10:44:24 +0100 From: Gerald Heinig User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Norikatsu Shigemura References: <420C76C3.202@syskonnect.de> <420C77FB.5050805@syskonnect.de> <200502110928.j1B9Saij081996@sakura.ninth-nine.com> In-Reply-To: <200502110928.j1B9Saij081996@sakura.ninth-nine.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: gdb over Firewire X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 09:44:58 -0000 Norikatsu Shigemura wrote: > On Fri, 11 Feb 2005 10:16:43 +0100 > Gerald Heinig wrote: > >>>Hello Current'ers, >>>I'm trying to get two-machine kernel debugging over Firewire working, >>>unfortunately without much luck so far. dconschat over Firewire works >>>fine, but gdb won't attach, complaining about get_tty_state failed, >>>among other things. >>>Is kernel gdb over Firewire a -current-only feature? >> >>Sorry, forgot to add: I'm using 5.3-RELEASE, hence the question about >>-current. > > > I'm using kgdb over dconschat, well. Do you add -G option? Yes. My dconschat works fine. I'm using dconschat -br -G 5556 -t TARGET > > HOST: > dconschat -G 12345 -r -t TARGET > gdb -k /boot/kernel.TARGET/kernel.debug > (kgdb) target remote :12345 My gdb doesn't support the -k option. I only have kgdb, which needs a remote device (I use /dev/fwmem0.0, as in the docs). That doesn't work. # kgdb -r /dev/fwmem0.0 kernel.debug [kgdb copyright stuff] Switching to remote protocol get_tty_state failed: Invalid argument set_tty_state failed: Invalid argument get_tty_state failed: Invalid argument set_tty_state failed: Invalid argument Couldn't establish connection to remote target Reply contains invalid hex digit 12 kgdb> That leads me to my question as to whether this is a -current-only feature. Cheers, Gerald