delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/06/18:08:09

Date: Tue, 4 Apr 2000 14:04:58 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: HELP! : Debugging a c/asm mixed programs
In-Reply-To: <007b545d.e4358c4a@usw-ex0105-036.remarq.com>
Message-ID: <Pine.SUN.3.91.1000404140432.9459N-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 3 Apr 2000, batchex wrote:

> I got around the random exception stuff in FSDB, but new one
> arises.
> 
> Hmm, I still haven't upgrade to 2.03 yet.

Please do.

> detect_dpmi_ok1:
>         mov     [dosmem_selector],dx ; here FSDB throws
> exception 0x3030 or 0x3036
>         mov     [dosmem_segment],ax

Does the problem happen when you single-step through this instruction,
or even if you let the program run freely?

> ; if I try 'x/20bx vbe20DrvInfo' here, GDB crashes, error 04.
> vbe20DrvInfo is global.

Sorry, I don't understand: where is ``here''?  On what line(s) does
the crash happen?  Are there any places where the same command does
not crash?

Also, what version of GDB do you have installed?  What does
"gdb --version"  print?

> How can I redirect the crash info from GDB to a file?

Invoke GDB with its stderr redirected:

       redir -e crash.txt gdb prog.exe

where prog.exe is your program.  When it crashes, the file crash.txt
will hold the crash message; please post it here.

> Also, what do I need to upgrade my djgpp to 2.03?

Download and unzip v2/djdev203.zip.  It comes with a new fsdb.exe,
among other things.

- Raw text -


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