From owner-freebsd-stable Thu Apr 25 19:58:44 2002 Delivered-To: freebsd-stable@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id DF27E37B405 for ; Thu, 25 Apr 2002 19:58:37 -0700 (PDT) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 220B181498; Fri, 26 Apr 2002 12:28:36 +0930 (CST) Date: Fri, 26 Apr 2002 12:28:36 +0930 From: Greg 'groggy' Lehey To: Darren Reed Cc: stable@freebsd.org Subject: Re: gdb doesn't work over NFS ? Message-ID: <20020426122836.F54615@wantadilla.lemis.com> References: <200204251318.XAA02067@avalon.reed.wattle.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200204251318.XAA02067@avalon.reed.wattle.id.au> User-Agent: Mutt/1.3.23i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thursday, 25 April 2002 at 23:18:34 +1000, Darren Reed wrote: > > Can someone explain why when I use gdb under FreeBSD 4.5, I cannot open > files on an NFS partition that I can outside of gdb ? > > ie. i can do: > > $ wc Makefile > > but I cannot do: > > $ gdb `which wc` > (gdb) run Makefile > > and if I do, I get: > wc: Makefile: open: No such file or directory No, I can't explain this, but I'd guess that you're looking in the wrong place. It works fine here: $ df . Filesystem 1048576-blocks Used Avail Capacity Mounted on wantadilla:/home 9722 6477 2467 72% /wantadilla/home $ wc Makefile 1026 4858 38315 Makefile $ gdb `which wc` GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"...(no debugging symbols found)... (gdb) run Makefile Starting program: /usr/bin/wc Makefile 1026 4858 38315 Makefile (no debugging symbols found)...(no debugging symbols found)... Program exited normally. Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message