For.Bin or.Exe files, how does a linker generate line numbers in debug information?

moecmks via Digitalmars-d-debugger digitalmars-d-debugger at puremagic.com
Fri Jun 16 19:17:11 PDT 2017


I come from China, my English is not very high. Please forgive me.

First provide the context

@:debugger,IDA 6.8
@:this is my source file <hello.d>, only this one.

import std.stdio;

void main () {

   writeln ("Hello World");
}

I've found that for.Obj, using the -c -debug -gc -m32 command 
always generates line number information that is seen by the 
debugger

However, as long as the connection is exe or bin, the debugger 
can only see variable symbols, but no line numbers can be seen,I 
don't know if I've done anything wrong 0_0

this is my linker's command:$(LINK) /CO:4/DEBUG /CODEVIEW 
/DEBUGLINES /DEBUGMODULES:$(OBJPATH)\hello.obj 
$(OBJPATH)\hello.obj









More information about the Digitalmars-d-debugger mailing list