[comp.sys.ibm.pc.programmer] TASM/MASM Debug Switches

streich@boulder.Colorado.EDU (Mark Streich) (03/28/90)

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