This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Shell escape in the DJGPP port of GDB



DOS-based programs don't get a separate working directory per process;
the current working directory is a global resource.  Thus, if the
child process changes the directory for itself, it changes the
directory for gdb also.  Thus, the chdir() back to the original
directory is a safety for all dos-like environments.

In unix it should be completely unneeded, because unix itself isolates
such changes within the child process.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]