Date: Mon, 28 Oct 1996 10:52:51 +0100 (MET) From: Robert Hoehne To: Eli Zaretskii Cc: DJGPP workers Subject: Re: function _exit() and about dbgcom.c In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 27 Oct 1996, Eli Zaretskii wrote: > not sure how would this work in a debuggee. Don't the debugger and the > debuggee share the file handles and the PSP? If they do, then how would As far as I understood the code in dbgcom.c NO. The v2loadimage() creates a new PSP for the image and puts it in the stubinfo or somewhere else. So I thought, that it should be possible to determine the file handles, which belong to this PSP. I checked R. Browns interrupt list and found, that there are some DOS internal tables about the files (the FCB's ??) which contain also a pointer to the PSP of the program, which is the owner of this file handle. But I'm not so familiar with this low level DOS programming. I have looked also in the code of stat() and fstat() where are some code with the filehandle table, but I didn't understand it yet in all details. Robert