delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/10/29/09:21:04

Date: Tue, 29 Oct 1996 16:16:52 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Cc: billc AT blackmagic DOT tait DOT co DOT nz, djgpp-workers AT delorie DOT com
Subject: Re: function _exit() and about dbgcom.c
In-Reply-To: <9610291345.AA16527@clio.rice.edu>
Message-Id: <Pine.SUN.3.91.961029160834.19704E-100000@is>
Mime-Version: 1.0

On Tue, 29 Oct 1996, Charles Sandmann wrote:

> > 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

Libc doesn't call GetPSP, since it isn't required.  The DOS function which
expands the Job File Table does all the bookeeping: allocates a new table
and bangs its address into the PSP (the old table, which is part of the
PSP itself, is left wasted).  But the pointer in the fake PSP isn't
updated. 

- Raw text -


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