Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2003-02-18 13:08:21 +0300
committerMartin Baulig <martin@novell.com>2003-02-18 13:08:21 +0300
commit29657db467f4d615701ce859b647f34001782c35 (patch)
tree9605398fc279f3b3836e27648379af442187dbb9 /mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs
parentfd621002eab92b3ca290c72f76f60b0214f914b4 (diff)
2003-02-18 Martin Baulig <martin@ximian.com>
* MonoSymbolFile.cs (MethodEntry.ThisTypeIndex): Renamed to ClassTypeIndex; provide this for all methods so we can get the class of static methods. svn path=/trunk/mcs/; revision=11685
Diffstat (limited to 'mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs')
-rw-r--r--mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs15
1 files changed, 6 insertions, 9 deletions
diff --git a/mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs b/mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs
index 504136ff420..546503bd58f 100644
--- a/mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs
+++ b/mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs
@@ -18,7 +18,7 @@ namespace Mono.CSharp.Debugger
{
public struct OffsetTable
{
- public const int Version = 30;
+ public const int Version = 31;
public const long Magic = 0x45e82623fd7fa614;
public int TotalFileSize;
@@ -365,7 +365,7 @@ namespace Mono.CSharp.Debugger
public readonly int Token;
public readonly int StartRow;
public readonly int EndRow;
- public readonly int ThisTypeIndex;
+ public readonly int ClassTypeIndex;
public readonly int NumParameters;
public readonly int NumLocals;
public readonly int NumLineNumbers;
@@ -411,7 +411,7 @@ namespace Mono.CSharp.Debugger
Token = reader.ReadInt32 ();
StartRow = reader.ReadInt32 ();
EndRow = reader.ReadInt32 ();
- ThisTypeIndex = reader.ReadInt32 ();
+ ClassTypeIndex = reader.ReadInt32 ();
NumParameters = reader.ReadInt32 ();
NumLocals = reader.ReadInt32 ();
NumLineNumbers = reader.ReadInt32 ();
@@ -514,10 +514,7 @@ namespace Mono.CSharp.Debugger
for (int i = 0; i < NumLocals; i++)
LocalTypeIndices [i] = file.GetNextTypeIndex ();
- if (method.IsStatic)
- ThisTypeIndex = 0;
- else
- ThisTypeIndex = file.DefineType (method.ReflectedType);
+ ClassTypeIndex = file.DefineType (method.ReflectedType);
}
LineNumberEntry[] BuildLineNumberTable (LineNumberEntry[] line_numbers)
@@ -581,7 +578,7 @@ namespace Mono.CSharp.Debugger
bw.Write (Token);
bw.Write (StartRow);
bw.Write (EndRow);
- bw.Write (ThisTypeIndex);
+ bw.Write (ClassTypeIndex);
bw.Write (NumParameters);
bw.Write (NumLocals);
bw.Write (NumLineNumbers);
@@ -605,7 +602,7 @@ namespace Mono.CSharp.Debugger
{
return String.Format ("[Method {0}:{1}:{2}:{3}:{4} - {7}:{8}:{9}:{10} - {5} - {6}]",
index, Token, SourceFileIndex, StartRow, EndRow,
- SourceFile, FullName, ThisTypeIndex, NumParameters,
+ SourceFile, FullName, ClassTypeIndex, NumParameters,
NumLocals, NumLineNumbers);
}
}