Bug 311982 (MONO37841) - [Debugging] Incorrect filename when using #line
Summary: [Debugging] Incorrect filename when using #line
Status: RESOLVED FIXED
Alias: MONO37841
Product: Mono: Debugger
Classification: Mono
Component: backend (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-11 08:41 UTC by Gonzalo Paniagua Javier
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:06:25 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".