delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/31/20:57:35

Date: Fri, 31 Mar 2000 18:17:52 -0500 (EST)
Message-Id: <200003312317.SAA07166@indy.delorie.com>
From: Eli Zaretskii <eliz AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <19464ea8.15fd37ca@usw-ex0105-036.remarq.com> (message from
batchex on Tue, 28 Mar 2000 12:41:12 -0800)
Subject: Re: HELP! : Debugging a c/asm mixed programs
References: <19464ea8 DOT 15fd37ca AT usw-ex0105-036 DOT remarq DOT com>
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

> I usually use FSDB to debug the ASM modules, but now I face 2
> problems. One, if I use NASM's structure support in the ASM
> modules, FSDB randomly throws an exception. These exceptions can
> occur in the middle of an ASM function, or when the function is
> called.

Please post the relevant info, don't keep secrets from us.  What
exception(s) does FSDB ``throw'', any register dumps, other relevant
phenomena--all this is required to offer you adequate help.  For now,
I cannot even make up my mind on whether this is a bug in your
program, in FSDB, or in DJGPP debug support library used by FSDB.

Also, please tell what version of DJGPP are you using.  The debug
support has changed a lot in v2.03, with lots of bugs fixed, so if
you use older versions, please upgrade.

Info about your development platform (hardware, OS, and any
non-standard software) might also be relevant.

> I have tested the function in question to run without a
> debugger and it ran fine.

This doesn't prove anything: you could still have a bug that depends
on how memory is layed out, or on its contents.

> problem number 2 is everytime I invoke int 0x31 function 0x100,
> FSDB terminate my program, reporting the program was terminated
> normally.

Again, please post more info (a short test program or at least a code
fragment would be nice).

If you step through code which invokes Int 31h, this is expected
behavior: only GDB has the machinery to step through such code safely.

> How can I debug these (ASM) functions? Does anybody know FSDB's
> official site? or even if it is still supported?

FSDB is part of the DJGPP development environment and is supported
like the rest of programs and libraries that are part of djdevNNN.zip.
If you have patches or bug reports, please post them here.

- Raw text -


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