From owner-freebsd-hackers Sat Oct 5 11:48:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A460737B401 for ; Sat, 5 Oct 2002 11:48:21 -0700 (PDT) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id B48F643E77 for ; Sat, 5 Oct 2002 11:48:20 -0700 (PDT) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.5) with ESMTP id g95Imu8A060424 for ; Sat, 5 Oct 2002 14:48:57 -0400 (EDT) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id g95ImuZg060423 for freebsd-hackers@freebsd.org; Sat, 5 Oct 2002 14:48:56 -0400 (EDT) Date: Sat, 5 Oct 2002 14:48:56 -0400 From: Craig Rodrigues To: freebsd-hackers@freebsd.org Subject: How to remote debug a network device driver? Message-ID: <20021005144856.A60354@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I am trying to learn about FreeBSD kernel development. I have set up two machines with -CURRENT, and have connected them via null modem cable. I have followed the instructions in the Developer's Handbook, "On-Line Kernel Debugging Using Remote GDB" ( http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/x9972.html ) and can successfully debug remotely using gdb. What I am interested in doing is learning more about how the FreeBSD networking system works. What I would like to do is, from machine A, ping machine B. On machine A, I would like to set a breakpoint in the network device driver when the upper layers in the networking stack calls the device driver to transmit data. I am interested in debugging the following drivers: - fatm , from Harti Brandt's Netgraph ATM subsystem: http://www.fokus.fhg.de/research/cc/cats/employees/hartmut.brandt/ngatm/ - fxp, the Intel EtherExpress Pro driver Can someone give me some hints as to where a good place to set the breakpoints would be, or pointers to further information about FreeBSD networking? Thanks. -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message