🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #199

TASM/MASM Debug Switches

#199
From: Mark Streich
Date: Tue, 27 Mar 1990 21:01
19 lines
1231 bytes
I would like to add some code to Small-C that would enable its programs
to be debugged using Turbo Debugger.

When Turbo C generates .asm files (-S switch), it places various
?DEBUG commands in the generated code to apparently tell the debugger
where to find the source code to display when those pieces of code
are executing.  Unfortunately, when I assemble the program myself
(rather than using the -B switch), I either get no debug info, or I
get the .asm code as the source code.

Does anyone know how to tell the assembler to output debug info to lead
the debugger to display another file as the source, rather than the
actual assembler source?  (ansi C has a "#line" command that does the
same thing I want)

Thanks.

  Mark Streich
  streich@tigger.colorado.edu
Technical Details
Message-ID: <18904@boulder.Colorado.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ncar!boulder!streich

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ncar!boulder!streich
From: streich@boulder.Colorado.EDU (Mark Streich)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: TASM/MASM Debug Switches
Message-ID: <18904@boulder.Colorado.EDU>
Date: 27 Mar 90 21:01:47 GMT
Sender: news@boulder.Colorado.EDU
Reply-To: streich@tigger.colorado.edu (Mark Streich)
Distribution: usa
Organization: University of Colorado, Boulder
Lines: 19