delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/07/23:31:57

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Bug in RHIDE 1.4.5
Date: Sat, 08 Aug 1998 00:09:06 -0300
Organization: NBTel Internet
Lines: 90
Message-ID: <35CBC151.8944A904@unb.ca>
NNTP-Posting-Host: fctnts10c10.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I recently upgraded from RHIDE v1.4 to v1.4.5 and have found some odd
things (bugs?).  I had many problems trying to use the old project files,
rhide kept crashing [printing 1000's of different error messages].  I
re-did all of my project files and that worked.  But now it can't debug
anything complex.  If I try and write something simple, it debugs fine, but
any program I tried it on that was reasonably large (100+ lines of code)
pressing 'F8' (or using the menu selection) ran the entire program, not
just the line.  I made the smallest version of a file that didn't work, I
redirected 'stdout' into rhide and what I got is at the end of the
message.  I have also included the code that made this happen.  I think I
will move back to v1.4 for now, I would like to use 1.4.5 if there is a way
to avoid this (or it can be fixed).

+-[_]--------------- contents of stdout from MergeSort.exe
--------------5-[]-+
¦/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details
*/               
¦#ifndef
__dj_include_io_h_                                                    _
¦#define
__dj_include_io_h_                                                    _
¦
_
¦#ifdef
__cplusplus                                                            _
¦extern "C"
{                                                                  _
¦#endif
_
¦
_
¦#ifndef
__dj_ENFORCE_ANSI_FREESTANDING                                        _
¦
_
¦#ifndef
__STRICT_ANSI__                                                       _
¦
_
¦#ifndef
_POSIX_SOURCE                                                         _
¦
_
¦#include
<sys/types.h>                                                        _
¦
_
¦int  chsize(int handle, long
size);                                           _
¦int  _close(int
_fd);                                                         _
¦int  _creat(const char *_path, int
_attrib);                                  _
¦ssize_t  crlf2nl(char *_buffer, ssize_t
_length);                             _
¦int  _dos_lock(int _fd, long _offset, long
_length);                          
+-__________________________________________________________________________-+

=====================File that screws up debugger
#include<iostream.h>
#include<string.h>
#include<dpmi.h>

void Mode(short M)
{
 __dpmi_regs Regs;

 memset(&Regs, 0, sizeof(Regs));
 Regs.x.ax = M;
 __dpmi_int(0x10, &Regs);
 }


int main()
{
 Mode(0x13);
 cout << "Hi!";
 Mode(0x3);
 return 0;
 }

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca



- Raw text -


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