delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/10/28/05:02:17

Date: Mon, 28 Oct 1996 10:52:51 +0100 (MET)
From: Robert Hoehne <robert DOT hoehne AT mathematik DOT tu-chemnitz DOT de>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: DJGPP workers <djgpp-workers AT delorie DOT com>
Subject: Re: function _exit() and about dbgcom.c
In-Reply-To: <Pine.SUN.3.91.961027144112.14799O-100000@is>
Message-Id: <Pine.HPP.3.95.961028104536.27613A-100000@newton.mathematik.tu-chemnitz.de>
Mime-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019