Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Can't attach over NFS?
@ 2002-11-18 22:23 Jim Blandy
  2002-11-19  2:44 ` Ben Elliston
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Blandy @ 2002-11-18 22:23 UTC (permalink / raw)
  To: gdb


In gdb/testsuite/gdb.base/attach.exp, there is the following code:

    # Because we can't attach over nfs, copy binfile to /tmp/${binfile}.${pid}
    # and replace binfile with a symbolic link
    set pid [pid]
    exec /bin/cp -f ${binfile} /tmp/attach1.${pid}
    exec rm -f ${binfile}
    ...

Does anyone know of any system where this limitation actually holds?
This rigamarole is causing me some trouble, and I'd like to make the
code conditional, or (preferably) delete it.

We got attach.exp from the HP merge, which makes me suspect that it's
an HP problem, but this entire test is disabled on HPUX.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't attach over NFS?
  2002-11-18 22:23 Can't attach over NFS? Jim Blandy
@ 2002-11-19  2:44 ` Ben Elliston
  2002-11-19  5:22   ` Alan Matsuoka
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Elliston @ 2002-11-19  2:44 UTC (permalink / raw)
  To: gdb

>>>>> "Jim" == Jim Blandy <jimb@redhat.com> writes:

  Jim> Does anyone know of any system where this limitation actually holds?
  Jim> This rigamarole is causing me some trouble, and I'd like to make the
  Jim> code conditional, or (preferably) delete it.

  Jim> We got attach.exp from the HP merge, which makes me suspect that it's
  Jim> an HP problem, but this entire test is disabled on HPUX.

This rings a bell.  If my memory serves me correctly, on HP-UX you
can't ptrace an executable that is on an NFS volume.

Ben



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't attach over NFS?
  2002-11-19  2:44 ` Ben Elliston
@ 2002-11-19  5:22   ` Alan Matsuoka
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Matsuoka @ 2002-11-19  5:22 UTC (permalink / raw)
  To: Ben Elliston; +Cc: gdb

Ben Elliston wrote:
> 
> >>>>> "Jim" == Jim Blandy <jimb@redhat.com> writes:
> 
>   Jim> Does anyone know of any system where this limitation actually holds?
>   Jim> This rigamarole is causing me some trouble, and I'd like to make the
>   Jim> code conditional, or (preferably) delete it.
> 
>   Jim> We got attach.exp from the HP merge, which makes me suspect that it's
>   Jim> an HP problem, but this entire test is disabled on HPUX.
> 
> This rings a bell.  If my memory serves me correctly, on HP-UX you
> can't ptrace an executable that is on an NFS volume.
> 

I think you're right. I remember that I had to do something like that
with HP-UX. I can't remember why though.

-- 
Alan Matsuoka
Professional Services
Red Hat Canada, Ltd
mailto:alanm@redhat.com Tel: (416) 482-2661 x250 / Fax: (416) 482-6299


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-19 13:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-18 22:23 Can't attach over NFS? Jim Blandy
2002-11-19  2:44 ` Ben Elliston
2002-11-19  5:22   ` Alan Matsuoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox