From owner-freebsd-current Wed Feb 20 0: 0:27 2002 Delivered-To: freebsd-current@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 6E58A37B405 for ; Wed, 20 Feb 2002 00:00:14 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220080014.EKOE2951.rwcrmhc53.attbi.com@InterJet.elischer.org>; Wed, 20 Feb 2002 08:00:14 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id XAA61063; Tue, 19 Feb 2002 23:57:18 -0800 (PST) Date: Tue, 19 Feb 2002 23:57:16 -0800 (PST) From: Julian Elischer To: "George V. Neville-Neil" Cc: freebsd-current@freebsd.org Subject: Re: Kernel Debugging over the Ethernet? In-Reply-To: <200202200536.VAA258019@meer.meer.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 19 Feb 2002, George V. Neville-Neil wrote: > Hi Folks, > > Now that Luigi has put in polling support for some ethernet drivers > I was wondering how much work it would be to make the remote kernel debugging > run over the ethernet. I have worked on systems like this before (it's the > reason > I did polling network device drivers in Wind River's VxWorks) but it depends > on a debugging system that has the ability to have its back end swapped out. > > Who would I talk to about how kernel debugging works at the > lowest layers right now? Which source files should I look at first. the gdb debugging piggybacks onto the ddb debugger the file i386/i386/i386-gdbstub.c gives the basic interface for the serial connection. the serial part is in /sys/dev/sio/sio.c I don't know what gdb does on the ethernet but my guess is that it's already written there somewhere. I guess using udp packets with an address set by a sysctl would be sufficient, especially if we had our own udp handler (which I'm told can be done in a very small amount of code it we know what packets we are getting). > > Thanks, > George > > -- > George V. Neville-Neil gnn@neville-neil.com > NIC:GN82 > > "Those who would trade liberty for temporary security deserve neither" > - Benjamin Franklin > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message