delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/13/18:57:06

Date: Sun, 13 Mar 94 18:01:48 EST
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Debugger working under DPMI
Reply-To: babcock AT cfa DOT harvard DOT edu

I got sally (fsdb090.zip) to work under dpmi (os/2), although I don't
understand the consequences of the changes I had to make.

1. In fullscr.c, remove call to sleep(1).

2. In fullscr.c, add cases for non-extended keyboard arrow keys.

3. In read.s, change
      cmpl  $4096,%ecx
      jae   old_way
   to
      cmpl  $4096,%ecx
      ja old_way      /* don't jump on equal */

   This is the one I really don't understand, and it's scary because read.s
   is not specific to the debugger, it's probably used by most programs.
   At this point, %ecx seems to hold the number of bytes to read, and I think
   $4096 is the size of the transfer buffer.  I suspect I'm actually
   compensating for a go32 problem, and if more than 4096 bytes were being
   read, my change wouldn't help.

- Raw text -


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