From owner-freebsd-current@FreeBSD.ORG Tue Dec 4 06:15:58 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB60716A41B for ; Tue, 4 Dec 2007 06:15:58 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.68]) by mx1.freebsd.org (Postfix) with ESMTP id A066913C459 for ; Tue, 4 Dec 2007 06:15:58 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp002-s [10.150.69.65]) by smtpoutm.mac.com (Xserve/smtpout005/MantshX 4.0) with ESMTP id lB46FvBJ009643; Mon, 3 Dec 2007 22:15:57 -0800 (PST) Received: from [192.168.1.100] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/asmtp002/MantshX 4.0) with ESMTP id lB46FtSd007555 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 3 Dec 2007 22:15:56 -0800 (PST) Message-Id: From: Marcel Moolenaar To: Julian Elischer In-Reply-To: <4754EE5A.7050904@elischer.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Mon, 3 Dec 2007 22:15:55 -0800 References: <4754D411.6060608@elischer.org> <4754E54C.20104@elischer.org> <4754EE5A.7050904@elischer.org> X-Mailer: Apple Mail (2.915) Cc: FreeBSD Current Subject: Re: remote gdb failures in recent builds (last 6 months or so.) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 04 Dec 2007 06:15:58 -0000 On Dec 3, 2007, at 10:06 PM, Julian Elischer wrote: > first the kernel panic'd then I was in kdb on the serial console > (com1) > then I typed "gdb" followed by 's'. I'm not worried so much about > the panic > as its an experimental kernel, but by not being able to debug it.. Seems everything is just right. The only thing I can think of is that the GDB stub in the kernel doesn't get the packets as they are intended. It seems that even if gdb sends the ack. (i.e. the + character), the GDB stub retransmits its original packet. This seems to indicate that the GDB stub doesn't receive the ack. Try the following patch and see if the kernel receives the packets correctly as well: Index: gdb_main.c =================================================================== RCS file: /home/ncvs/src/sys/gdb/gdb_main.c,v retrieving revision 1.7 diff -u -r1.7 gdb_main.c --- gdb_main.c 26 May 2006 11:52:59 -0000 1.7 +++ gdb_main.c 4 Dec 2007 06:15:04 -0000 @@ -115,7 +115,7 @@ thr_iter = NULL; while (gdb_rx_begin() == 0) { - /* printf("GDB: got '%s'\n", gdb_rxp); */ + printf("GDB: got '%s'\n", gdb_rxp); switch (gdb_rx_char()) { case '?': /* Last signal. */ gdb_tx_begin('S'); FYI, -- Marcel Moolenaar xcllnt@mac.com