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 [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to