Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Debugging a DOS4GW application

222 views
Skip to first unread message

Jiri Malak

unread,
Jul 5, 2003, 10:17:36 AM7/5/03
to

"Andrea" <andNOS...@supereva.it> wrote in message
news:3F06D3E...@supereva.it...
> I have some problems debugging a simple 'Hello world' DOS4GW application
> compiled with:

Look better on this newsgroup and you found solution.
If you use OW 1.0 you need replace file binw\rsihelp.exp which is wrong.

Jiri


Andrea

unread,
Jul 5, 2003, 9:34:35 AM7/5/03
to
I have some problems debugging a simple 'Hello world' DOS4GW application
compiled with:

wcl386 /bt=DOS /l=dos4g /d2 helloworld.c

I have tryied to do the following things:

--------------------------
On command prompt 1:

vdmserv /trap=rsi

This shows (correctly):

Open Watcom Virtual DOS Machine Debug Server Version 1.0
Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
Press 'q' to exit

--------------------------
On command prompt 2:

wd /trap=vdm helloworld

(wd in %WATCOM%\binnt is in %PATH% first)
This command shows me the initial screen of Watcom debugger (with the
menu File | Run | Break | Code, etc ...) and its logo but shows
immediately a dialog box with this message (in italian):

Prompt dei comandi - vdmserv /trap=rsi
La CPU NTVDM ha incontrato un'istruzione non valida.
CS:09b0 IP:1543 OP:db 30 23 30 1f Scegliere "Chiudi" per terminare
l'applicatione.

Chiudi Ignora

So, there is an exception of invalid instruction and I must kill the
debugger.

What can I do ? Thanks in advance for any useful answer !

Ken Belleau

unread,
Jul 10, 2003, 5:01:52 AM7/10/03
to
I've got problems too with DOS4GW applications. It seems that whatever I do,
I can't debug them at all. I was previously using OpenWatcom 1.0, but after
I read about the bad rsihelp.exp and everything, I made a fresh install of
OW 1.1beta . I still get exactly the same error. I have completely wiped out
the previous installation before, and I correctly re-built the program with
the following commands:

wpp386 -d2 -zq -bt=dos -mf hello.cpp
wlink debug all name hello sys dos4g op q fil hello.obj

But when I call the debugger, I get this exception everytime, as soon as it
loads (I don't even ask it to run):

DOS/4GW Protected Mode Run-time Version 1.97
Copyright (c) Rational Systems, Inc. 1990-1994
DOS/4GW error (2001): exception 0Dh (general protection fault) at
158:00000126
TSF32: prev_tsf32 5284
SS 178 DS 178 ES 178 FS 0 GS 0
EAX 0 EBX 20D0 ECX 221F EDX 1
ESI A00 EDI 10CF EBP 20A5 ESP 20A2
CS:IP 158:00000126 ID 0D COD 221C FLG 10202
CS= 158, USE16, byte granular, limit 695F, base 43A000, acc 9B
SS= 178, USE16, byte granular, limit FFFF, base 45C000, acc 93
DS= 178, USE16, byte granular, limit FFFF, base 45C000, acc 93
ES= 178, USE16, byte granular, limit FFFF, base 45C000, acc 93
FS= 0, USE16, byte granular, limit 0, base 14, acc 0
GS= 0, USE16, byte granular, limit 0, base 14, acc 0
CR0: PG:1 ET:1 TS:0 EM:0 MP:0 PE:1 CR2: 0 CR3: 1E067

I am running under DOS 7.10, and I have tried the following:
with and without debugging info
with and without /tr=rsi
EMM386 with "noems novcpi", without options, and without it at all
debug the normal .EXE program and also the unbound .LE

I seriously need some help on this. Anyone, please !!!

juca

unread,
Jul 18, 2003, 12:39:32 AM7/18/03
to
I have the same problems running OW 1.0. The simplest C application
will work.

Jiri, I could not find a newer version of the rsihelp.exp file. I
tried to look online at ~/watcom/devel/1.1_beta/ext_dos4gw.zip , but
the file is identical to the one I am using in OW 1.0

Where do I get the new file?

Re,

Carlos

"Ken Belleau" <ja...@ivic.qc.ca> wrote in message news:<bej9fs$280$1...@www1.scitechsoft.com>...

0 new messages