Mail Archives: djgpp/2000/05/18/15:40:26
From: | "Barry" <barryem AT yahoo DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Debugging graphics
|
Lines: | 55
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2919.6600
|
X-MIMEOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600
|
Message-ID: | <dkWU4.233569$AT6.336820@dfw-read.news.verio.net>
|
Date: | Thu, 18 May 2000 13:05:26 -0500
|
NNTP-Posting-Host: | 204.2.12.200
|
X-Complaints-To: | abuse AT verio DOT net
|
X-Trace: | dfw-read.news.verio.net 958673289 204.2.12.200 (Thu, 18 May 2000 18:08:09 GMT)
|
NNTP-Posting-Date: | Thu, 18 May 2000 18:08:09 GMT
|
Organization: | Verio
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
I'm doing a simple graphics program with gcc and rhide. The
program compiles and runs ok but isn't giving me what I want so I
want to use a debugger to follow my logic. I was doing this using
rhgdb until my computer locked up and I rebooted. After that rhgdb
crashes with a SIGSEV from rhgdb, not my program, as soon as I do
anything that starts my program. (F8, F4, etc).
I've recompiled but that doesn't change anything. The program runs
ok without the debugger. I've also tried using gdb and it works
fine in gdb but I can't see anything once it goes into graphics
mode since I can't figure out how to get gdb to do screen swapping
if it will do it. I haven't used gdb before. I haven't used djgpp
or allegro a lot, either.
I then tried using rhide and I compiled it in the IDE and as soon
as I try to run or step or anything, I get a math error and the
program stops.
This was all working fine until my computer crashed. I did make a
small change in the program just before that but I've tried
changing it back. I've also tried deleting the rhgdb option file
and I've also tried replacing rhgdb.exe and rhide.exe from another
computer that has the same installation. Nothing changes.
My preference would be to do this with gdb if I can get it to work
correctly with graphics. I'm using the xmode 320x240 mode because
this is an old vga laptop and that fills the screen.
If I could get rhgdb to stop crashing that would do a good job for
me. It was working ok before.
My least favorite option would be to work in the rhide IDE, but
that's acceptable if it's the only way I can get this to work.
Does anyone have any idea what might be going on?
Does anyone know a way I can get gdb to swap back into text mode to
give me listings when the program being debugged is in graphics
mode? (since I'm using xmode I'm not real hopeful here).
Does anyone know how I can use these tools to follow the program in
assembly before it gets to main to try to get some clue about
what's happening? I don't see any way to do that with these tools
but I don't always know what I'm looking at.
I'm using a 486 Compaq Aero laptop with Dos 6.22 and 8 meg and
largest executable size of 584k. My program is very small so it's
probably not a memory issue.
Thanks in advance for any suggestions.
Barry
- Raw text -