This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Initialize the correct cwd for the child
- To: robert dot hoehne at gmx dot net
- Subject: Re: Initialize the correct cwd for the child
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Sun, 6 Aug 2000 03:23:21 -0400 (EDT)
- CC: msnyder at redhat dot com, gdb-patches at sourceware dot cygnus dot com
- References: <200008052153.XAA21178@robby.dittmannsdorf.de>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> From: Robert Hoehne <robert.hoehne@gmx.net>
> Date: Sat, 5 Aug 2000 23:55:15 +0200
>
> The problem here is only the DJGPP situation, where we
> need to save (and restore) the childs cwd
Yes, I know that (I wrote that directory-save stuff, remember? ;-).
> since on unix the child runs as a separate thred (or process), where
> the OS does the job for remembering the cwd.
AFAIK, on Unix the process's cwd is determined when the process is
created. I wasn't sure when does that process creation happen in the
Unix versions of GDB, thus my question.
Thanks for the patch, I've committed it.