This is the mail archive of the gdb-patches@sources.redhat.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: Initialize the correct cwd for the child


> From: Robert Hoehne <robert.hoehne@gmx.net>
> Date: Fri, 4 Aug 2000 15:43:26 +0200
> 
> On DJGPP, the child's working directory have to be remembered.
> In the current implementation this is done once, when gdb is started.
> But this is wrong, since the user can change it with the gdb-command
> 
> cd <some-directory>
> 
> and when running the child, it is expected, that it get this directory as
> its starting directory. So I made a patch for this.

Thanks for the patch.  However, I wonder: what would be the cwd of an
inferior on Unix, after the following commands:

	 gdb foo
	 cd bar
	 run

I think the DJGPP port should, as much as possible, behave the same
way as GDB does on Unix.

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