www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/28/22:38:19

X-Originating-Host: 202.158.46.2
Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here
Subject: HELP! : Debugging a c/asm mixed programs
Lines: 29
From: batchex <thedark1NOthSPAM AT phreaker DOT net DOT invalid>
Newsgroups: comp.os.msdos.djgpp
Message-ID: <19464ea8.15fd37ca@usw-ex0105-036.remarq.com>
Bytes: 1243
X-Wren-Trace: eBs+FhcOSQNITwcWGloIGVgoGxYMGloGGwVaFhcbQglETxVLQANAQUFUTQ==
Date: Tue, 28 Mar 2000 12:41:12 -0800
NNTP-Posting-Host: 10.0.2.36
X-Complaints-To: wrenabuse AT remarq DOT com
X-Trace: WReNphoon4 954276067 10.0.2.36 (Tue, 28 Mar 2000 12:41:07 PST)
NNTP-Posting-Date: Tue, 28 Mar 2000 12:41:07 PST
To: djgpp AT Delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

I'm currently on a project use a mix between C and ASM modules.
I have trouble in debugging the program. I can't debug the
modules written in ASM. These modules are compiled with NASM
0.98.

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. I have tested the function in question to run without a
debugger and it ran fine.

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

I have tried GDB, but because NASM doesn't support debug info
with COFF format yet, it can't 'step' into the function. The ASM
function is called as a whole and it can't run single-step.

How can I debug these (ASM) functions? Does anybody know FSDB's
official site? or even if it is still supported? Are there any
other debugger like FSDB which can handle DJGPP/NASM compiled
programs?

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!

- Raw text -


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