[Mono-bugs] [Bug 37841][Wis] New - [Debugging] Incorrect filename when using #line

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 11 Feb 2003 01:41:23 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=37841

--- shadow/37841	Tue Feb 11 01:41:23 2003
+++ shadow/37841.tmp.15874	Tue Feb 11 01:41:23 2003
@@ -0,0 +1,46 @@
+Bug#: 37841
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [Debugging] Incorrect filename when using #line
+
+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?