Bugzilla – Bug 311982
[Debugging] Incorrect filename when using #line
Last modified: 2007-09-15 21:24:34 UTC
---- Reported by gonzalo@ximian.com 2003-02-11 01:41:21 MST ---- Save this code to default.cs: ---- using System; public class MyClass2 { public static void Main() { for (int k = 0; k<1;k++) { #line 200 "hola.cs" throw new Exception (); #line default } } } ---- gpanjav@lalo2:~/go-mono$ mcs -g default.cs WROTE SYMFILE: 2 sources, 1 methods, 1 types, 5 line numbers, 1 locals, 1 namespaces, 87 bytes of string data OffsetTable [362 - 52:254 - 2:314:48 - 1:306:8 - 1] Compilation succeeded gpanjav@lalo2:~/go-mono$ mono --debug default.exe Unhandled Exception: System.Exception: Exception of type System.Exception was thrown. in [0x00007] (at /home/gpanjav/go-mono/default.cs:200) 00 .MyClass2:Main () Note that the line (200) is correct, but the file name should be 'hola.cs'. Or do we want the line to be the real line instead of the one in #line? ---- Additional Comments From miguel@ximian.com 2003-02-11 14:01:24 MST ---- I am reassigning this to Martin ---- Additional Comments From martin@ximian.com 2003-02-12 05:54:54 MST ---- I don't think this is an mcs bug, reassigning it to the debugger. ---- Additional Comments From martin@ximian.com 2003-02-23 14:15:14 MST ---- Ok, committed a fix to CVS which makes it ignore all such lines. Unknown operating system other. Setting to default OS "Other".