From owner-cvs-src@FreeBSD.ORG Sun Jul 11 07:49:02 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3FC216A4CE; Sun, 11 Jul 2004 07:49:02 +0000 (GMT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8509F43D3F; Sun, 11 Jul 2004 07:49:02 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from dhcp50.pn.xcllnt.net (dhcp50.pn.xcllnt.net [192.168.4.250]) by ns1.xcllnt.net (8.12.11/8.12.11) with ESMTP id i6B7n2Ha079816; Sun, 11 Jul 2004 00:49:02 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp50.pn.xcllnt.net (localhost [127.0.0.1]) i6B7n2O9055253; Sun, 11 Jul 2004 00:49:02 -0700 (PDT) (envelope-from marcel@dhcp50.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp50.pn.xcllnt.net (8.12.11/8.12.11/Submit) id i6B7n2mi055252; Sun, 11 Jul 2004 00:49:02 -0700 (PDT) (envelope-from marcel) Date: Sun, 11 Jul 2004 00:49:01 -0700 From: Marcel Moolenaar To: Hidetoshi Shimokawa Message-ID: <20040711074901.GA55185@dhcp50.pn.xcllnt.net> References: <200407102102.i6AL2HhI040011@repoman.freebsd.org> <87llhrqaqz.wl@tora.nunu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87llhrqaqz.wl@tora.nunu.org> User-Agent: Mutt/1.4.2.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/dcons dcons.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2004 07:49:03 -0000 On Sun, Jul 11, 2004 at 04:11:16PM +0900, Hidetoshi Shimokawa wrote: > I'd like to re-support remote debugging by dcons(4). > Do you have any pointer for "new GDB debug port interface"? The interface is defined in src/sys/gdb/gdb.h. A good example can be found in src/sys/dev/uart/uart_dbg.c. First GDB calls the probe function. The probe function is supposed to return a priority (>=0). A negative priority means that the debug port is dead or unusable. The uart(4) driver returns 0. So does the sio(4) driver. If you want to give dcons priority over a serial port, have the probe function return 1 or more. After all the probe functions have been called, one debug port is seleced as the current port. The init function for that port is called so that it can initialize itself. After that, the GDB backend will call the getc and putc functions to send and receive packets. The interface is mostly character oriented now, even though the GDB protocol is based on packets. If this doesn't work as efficiently for firewire (or ethernet for that matter) and have ideas to make it more friendly for you, let me know. I welcome improvements and enhancements. Thanks, -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net