delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/10/29/08:53:11

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <9610291345.AA16527@clio.rice.edu>
Subject: Re: function _exit() and about dbgcom.c
To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
Date: Tue, 29 Oct 1996 07:45:46 -0600 (CST)
Cc: billc AT blackmagic DOT tait DOT co DOT nz, djgpp-workers AT delorie DOT com
In-Reply-To: <Pine.SUN.3.91.961029082537.18709E-100000@is> from "Eli Zaretskii" at Oct 29, 96 08:30:50 am

> I'm not sure that the fake PSP only makes problems with undocumented
> calls.  (I just thought about `fstat' because it was the first thing that
> came to mind, like the first love ;-) I suspect that if the debugger would
> use up more than 20 file handles, the debuggee won't be able to open files
> anymore, because its fake PSP still has a pointer to an old handle table. 

If you do a dos get psp call, you will get the real one.  So, if we call
the DOS call to expand the file handle table, it will work fine.  The internal
DJGPP table will be expanded for the debugee.  This might cause grief if
the debugger then tried to open a file without closing one in the first 20,
etc.  But the only things which would be fooled are the things which look
at the psp info in the stubinfo block.

- Raw text -


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