[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Diagnostics/SymbolStor
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Diagnostics/SymbolStore ISymbolBinder.cs,NONE,1.1 ISymbolDocument.cs,NONE,1.1 ISymbolDocumentWriter.cs,NONE,1.1 ISymbolMethod.cs,NONE,1.1 ISymbolNamespace.cs,NONE,1.1 ISymbolReader.cs,NONE,1.1 ISymbolScope.cs,NONE,1.1 ISymbolVariable.cs,NONE,1.1 ISymbolWriter.cs,NONE,1.1 SymAddressKind.cs,NONE,1.1 SymbolToken.cs,NONE,1.1 SymDocumentType.cs,NONE,1.1 SymLanguageType.cs,NONE,1.1 SymLanguageVendor.cs,NONE,1.1 |
Date: |
Sat, 08 Feb 2003 00:58:24 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Diagnostics/SymbolStore
In directory
subversions:/tmp/cvs-serv28847/runtime/System/Diagnostics/SymbolStore
Added Files:
ISymbolBinder.cs ISymbolDocument.cs ISymbolDocumentWriter.cs
ISymbolMethod.cs ISymbolNamespace.cs ISymbolReader.cs
ISymbolScope.cs ISymbolVariable.cs ISymbolWriter.cs
SymAddressKind.cs SymbolToken.cs SymDocumentType.cs
SymLanguageType.cs SymLanguageVendor.cs
Log Message:
add non-ECMA System.Diagnostics.SymbolStore classes
--- NEW FILE ---
/*
* ISymbolBinder.cs - Implementation of
* "System.Diagnostics.SymbolStore.ISymbolBinder"
interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public interface ISymbolBinder
{
ISymbolReader GetReader(int importer, String filename,
String
searchPath);
}
}//namespace
--- NEW FILE ---
/*
* ISymbolDocument.cs - Implementation of
*
"System.Diagnostics.SymbolStore.ISymbolDocument" interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public interface ISymbolDocument
{
int FindClosestLine(int line);
byte[] GetCheckSum();
byte[] GetSourceRange(int startLine, int startColumn, int
endLine,
int endColumn);
Guid CheckSumAlgorithmId
{
get;
}
Guid DocumentType
{
get;
}
bool HasEmbeddedSource
{
get;
}
Guid Language
{
get;
}
Guid LanguageVendor
{
get;
}
int SourceLength
{
get;
}
String URL
{
get;
}
}
}//namespace
--- NEW FILE ---
/*
* ISymbolDocumentWriter.cs - Implementation of
* "System.Diagnostics.SymbolStore.ISymbolDocumentWriter"
interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public interface ISymbolDocumentWriter
{
void SetCheckSum(Guid algorithmId, byte[] checkSum);
void SetSource(byte[] source);
}
}//namespace
--- NEW FILE ---
/*
* ISymbolMethod.cs - Implementation of
* "System.Diagnostics.SymbolStore.ISymbolMethod"
interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public interface ISymbolMethod
{
ISymbolNamespace GetNamespace();
int GetOffset(ISymbolDocument document, int line, int column);
ISymbolVariable[] GetParameters();
int[] GetRanges(ISymbolDocument document, int line, int column);
ISymbolScope GetScope(int offset);
void GetSequencePoints(int[] offsets, ISymbolDocument[]
documents,
int[] lines, int[]
columns, int[] endLines,
int[] endColumns);
bool GetSourceStartEnd(ISymbolDocument[] docs, int[] lines,
int[] columns);
ISymbolScope RootScope
{
get;
}
int SequencePointCount
{
get;
}
SymbolToken Token
{
get;
}
}
}//namespace
--- NEW FILE ---
/*
* ISymbolNamespace.cs - Implementation of
* "System.Diagnostics.SymbolStore.ISymbolNamespace"
interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public interface ISymbolNamespace
{
ISymbolNamespace[] GetNamespaces();
ISymbolVariable[] GetVariables();
String Name
{
get;
}
}
}//namespace
--- NEW FILE ---
/*
* ISymbolReader.cs - Implementation of
* "System.Diagnostics.SymbolStore.ISymbolReader"
interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public interface ISymbolReader
{
ISymbolDocument GetDocument(String url, Guid language,
Guid
languageVendor, Guid documentType);
ISymbolDocument[] GetDocuments();
System.Diagnostics.SymbolStore.ISymbolVariable[]
GetGlobalVariables();
ISymbolMethod GetMethod(SymbolToken method);
ISymbolMethod GetMethod(SymbolToken method, int version);
ISymbolMethod GetMethodFromDocumentPosition(ISymbolDocument
document,
int line, int
column);
ISymbolNamespace[] GetNamespaces();
byte[] GetSymAttribute(SymbolToken parent, String name);
ISymbolVariable[] GetVariables(SymbolToken parent);
SymbolToken UserEntryPoint
{
get;
}
}
}//namespace
--- NEW FILE ---
/*
* ISymbolScope.cs - Implementation of
* "System.Diagnostics.SymbolStore.ISymbolScope" interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public interface ISymbolScope
{
ISymbolScope[] GetChildren();
ISymbolVariable[] GetLocals();
ISymbolNamespace[] GetNamespaces();
int EndOffset
{
get;
}
ISymbolMethod Method
{
get;
}
ISymbolScope Parent
{
get;
}
int StartOffset
{
get;
}
}
}//namespace
--- NEW FILE ---
/*
* ISymbolVariable.cs - Implementation of
* "System.Diagnostics.SymbolStore.ISymbolVariable" interface
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public interface ISymbolVariable
{
byte[] GetSignature();
int AddressField1
{
get;
}
int AddressField2
{
get;
}
int AddressField3
{
get;
}
SymAddressKind AddressKind
{
get;
}
Object Attributes
{
get;
}
int EndOffset
{
get;
}
String Name
{
get;
}
int StartOffset
{
get;
}
}
}//namespace
--- NEW FILE ---
/*
* ISymbolWriter.cs - Implementation of
* "ISymbolWriter" interface.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
using System.Reflection;
namespace System.Diagnostics.SymbolStore
{
public interface ISymbolWriter
{
void Close();
void CloseMethod();
void CloseNamespace();
void CloseScope(int endOffset);
ISymbolDocumentWriter DefineDocument(String url, Guid language,
Guid languageVendor,
Guid documentType);
void DefineField(SymbolToken parent, String name,
FieldAttributes attributes,
byte[] signature,
SymAddressKind addrKind,
int addr1, int addr2, int
addr3);
void DefineGlobalVariable(String name, FieldAttributes
attributes,
byte[]
signature, SymAddressKind addrKind,
int addr1,
int addr2, int addr3);
void DefineLocalVariable(String name, FieldAttributes
attributes,
byte[]
signature, SymAddressKind addrKind,
int addr1, int
addr2, int addr3,
int
startOffset, int endOffset);
void DefineParameter(String name, ParameterAttributes
attributes,
int sequence,
SymAddressKind addrKind,
int addr1, int addr2,
int addr3);
void DefineSequencePoints(ISymbolDocumentWriter document,
int[]
offsets, int[] lines,
int[]
columns, int[] endLines,
int[]
endColumns);
void Initialize(IntPtr emitter, String filename, bool
fFullBuild);
void OpenMethod(SymbolToken method);
void OpenNamespace(String name);
int OpenScope(int startOffset);
void SetMethodSourceRange(ISymbolDocumentWriter startDoc,
int
startLine, int startColumn,
ISymbolDocumentWriter endDoc,
int endLine,
int endColumn);
void SetScopeRange(int scopeID, int startOffset, int endOffset);
void SetSymAttribute(SymbolToken parent, String name, byte[]
data);
void SetUnderlyingWriter(IntPtr underlyingWriter);
void SetUserEntryPoint(SymbolToken entryMethod);
void UsingNamespace(String fullName);
}
}//namespace
--- NEW FILE ---
/*
* SymAddressKind.cs - Implementation of
* "System.Diagnostics.SymbolStore.SymAddressKind" enum.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software, you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY, without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program, if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public enum SymAddressKind
{
ILOffset = 0x01,
NativeRVA = 0x02,
NativeRegister = 0x03,
NativeRegisterRelative = 0x04,
NativeOffset = 0x05,
NativeRegisterRegister = 0x06,
NativeRegisterStack = 0x07,
NativeStackRegister = 0x08,
BitField = 0x09
}
}//namespace
--- NEW FILE ---
/*
* SymbolToken.cs - Implementation of
* "System.Diagnostics.SymbolStore.SymbolToken"
struct.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public struct SymbolToken
{
[TODO]
public SymbolToken(int val)
{
throw new NotImplementedException(".ctor");
}
[TODO]
public int GetToken()
{
throw new NotImplementedException("GetToken");
}
[TODO]
public override bool Equals(Object obj)
{
throw new NotImplementedException("Equals");
}
[TODO]
public override int GetHashCode()
{
throw new NotImplementedException("GetHashCode");
}
}
}//namespace
--- NEW FILE ---
/*
* SymDocumentType.cs - Implementation of
*
"System.Diagnostics.SymbolStore.SymDocumentType" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public class SymDocumentType
{
[TODO]
public SymDocumentType()
{
throw new NotImplementedException(".ctor");
}
[TODO]
public static readonly Guid Text;
}
}//namespace
--- NEW FILE ---
/*
* SymLanguageType.cs - Implementation of
* "System.Diagnostics.SymbolStore.SymLanguageType" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public class SymLanguageType
{
[TODO]
public SymLanguageType()
{
throw new NotImplementedException(".ctor");
}
[TODO]
public static readonly Guid Basic;
[TODO]
public static readonly Guid C;
[TODO]
public static readonly Guid CPlusPlus;
[TODO]
public static readonly Guid CSharp;
[TODO]
public static readonly Guid Cobol;
[TODO]
public static readonly Guid ILAssembly;
[TODO]
public static readonly Guid JScript;
[TODO]
public static readonly Guid Java;
[TODO]
public static readonly Guid MCPlusPlus;
[TODO]
public static readonly Guid Pascal;
[TODO]
public static readonly Guid SMC;
}
}//namespace
--- NEW FILE ---
/*
* SymLanguageVendor.cs - Implementation of
* "System.Diagnostics.SymbolStore.SymLanguageVendor"
class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
namespace System.Diagnostics.SymbolStore
{
public class SymLanguageVendor
{
[TODO]
public SymLanguageVendor()
{
throw new NotImplementedException(".ctor");
}
[TODO]
public static readonly Guid Microsoft;
}
}//namespace
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Diagnostics/SymbolStore ISymbolBinder.cs,NONE,1.1 ISymbolDocument.cs,NONE,1.1 ISymbolDocumentWriter.cs,NONE,1.1 ISymbolMethod.cs,NONE,1.1 ISymbolNamespace.cs,NONE,1.1 ISymbolReader.cs,NONE,1.1 ISymbolScope.cs,NONE,1.1 ISymbolVariable.cs,NONE,1.1 ISymbolWriter.cs,NONE,1.1 SymAddressKind.cs,NONE,1.1 SymbolToken.cs,NONE,1.1 SymDocumentType.cs,NONE,1.1 SymLanguageType.cs,NONE,1.1 SymLanguageVendor.cs,NONE,1.1,
Gopal.V <address@hidden> <=