From owner-freebsd-current Tue Apr 25 1:33:56 2000 Delivered-To: freebsd-current@freebsd.org Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by hub.freebsd.org (Postfix) with ESMTP id 3D32D37BCDD; Tue, 25 Apr 2000 01:33:50 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by anchor-post-33.mail.demon.net with esmtp (Exim 2.12 #1) id 12k0my-000OhL-0X; Tue, 25 Apr 2000 09:33:48 +0100 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id JAA24379; Tue, 25 Apr 2000 09:33:49 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Tue, 25 Apr 2000 09:39:10 +0100 (BST) From: Doug Rabson To: Greg Lehey Cc: FreeBSD Committers , FreeBSD current users Subject: Re: Remote serial gdb is broken in -CURRENT. In-Reply-To: <20000425143641.J26934@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 25 Apr 2000, Greg Lehey wrote: > On Sunday, 23 April 2000 at 10:07:38 +0100, Doug Rabson wrote: > > On Sun, 23 Apr 2000, Greg Lehey wrote: > > > >> In the last few days, my remote serial gdb has almost completely > >> stopped working. Previously I had (almost) no trouble at 38400 bps; > >> now I can barely get a response at all at 9600 bps. Does anybody have > >> an idea where this could be coming from? > > > > I noticed this too but I have no idea why. I also had to move back to > > 9600. > > I've found the problem and fixed it. It's been broken all along, but > for some reason it got worse lately. > > Basically, what happened was that the getpacket function, which does > polled I/O, wasn't locking out interrupts, and something was > interrupting long enough for characters to get lost. Since sometimes > several consecutive characters got lost, it seems likely that either > something locks out interrupts for an inappropriately long time, or > the sio interrupt routines steal them. Anyway, it works nicely at > 115200 bps now. Great, thanks Greg. Debugging at 9600bps was getting painful :-) On a nearly unrelated subject, can you try out the new stuff I just put into the kernel linker to allow it to export information to GDB. Now you should be able to use GDB's "sharedlibrary" command to load symbols. Make sure that the path used to load the file on the debugged machine is a valid path leading to the same file on the debugger machine. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 20 8442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message