[M3devel] full source paths in debug info?

Jay K jay.krell at cornell.edu
Wed Dec 9 14:15:47 CET 2009


I'll check the archive..but..we should have full paths to source files in debug information.
That is what you always get with C and C++ on Windows.
I understand they aren't particularly useful when binaries are copied across machines.
But they are very useful when they aren't.


Real life scenario, the debugger shows me:


0012fc2c 0041fd50 stubgen!Formatter__PutText+0xc6 [..\src\formatter\Formatter.m3 @ 275]
0012fc98 00410192 stubgen!IntfStubCode__Header+0x90 [..\src\IntfStubCode.m3 @ 25]
0012fd78 00409444 stubgen!StubCode__GenStub+0x14b [..\src\StubCode.m3 @ 91]
0012fdc8 00409117 stubgen!AstToType__ProcessNetObj+0x1e7 [..\src\AstToType.m3 @123]
0012fe38 00422b2b stubgen!AstToType__OneStub+0x59e [..\src\AstToType.m3 @ 95]
0012fe88 00443305 stubgen!Main__DoRun+0x3db [..\src\Main.m3 @ 64]
0012febc 00422b99 stubgen!M3ToolFrame__Startup+0x87 [..\src\toolframe\M3ToolFrame.m3 @ 27]
0012fee0 0056c3f4 stubgen!Main_M3+0x35 [..\src\Main.m3 @ 76]
0012ff24 0056b9cc stubgen!RTLinker__RunMainBody+0x25a [..\src\runtime\common\RTLinker.m3 @ 399]


If we did things correctly, I'd just copy/paste these paths into the file.open dialog.
Instead I get to be slower.


Here is C++ for example:


C:\dev2\cm3.2\m3-ui\zeus\NT386>type t.c
int main()
{
__debugbreak();
}

C:\dev2\cm3.2\m3-ui\zeus\NT386>cl -Zi t.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

C:\dev2\cm3.2\m3-ui\zeus\NT386>\bin\x86\cdb.exe -g t.exe

t!main+0x3:
00401013 cc              int     3
0:000> .lines
Line number information will be loaded
0:000> u .
t!main+0x3 [c:\dev2\cm3.2\m3-ui\zeus\nt386\t.c @ 3]:


 - Jay
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20091209/dfc9746b/attachment-0001.html>


More information about the M3devel mailing list