corlib/
* corlib.build: removed seperate windows/linux builds. excluded
wrapper and PAL classes from all builds.
corlib/System/
* Console.cs: Modified to get std handles from MonoIO.
* Environment.cs: removed PAL dependencies.
corlib/System.IO/
* Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs,
DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of
wrapper and PAL classes.
* MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added.
svn path=/trunk/mcs/; revision=3379
* Makefile.am: wrapper no longer built
io-layer/
* unicode.h, unicode.c: changed to gunichar2
* io.h, io.c: changed strings to gunichar2*, added
SetFileAttributes(), GetCurrentDirectory(), SetCurrentDirectory(),
some fixes to FindFirstFile() and friends.
metadata/
* icall.c: removed last of PAL calls, added System.Environment
* file-io.h, file-io.c: MonoIO implementation
* object.h, object.c: mono_string_to_utf16() now returns gunichar2*
svn path=/trunk/mono/; revision=3377
* XmlProcessingInstruction.cs (InnerText): Implemented. It works just
like XmlCharacterData.
* XmlCommentTests.cs (TestXmlNodeBaseProperties): Move the
XmlNode.Value test in here.
svn path=/trunk/mcs/; revision=3369
* driver.cs: allow compilation of files that start with '/'.
Add a default case when checking the argument of --target.
svn path=/trunk/mcs/; revision=3365
* AssemblyBuilder.cs: use FileMode.Create.
* ILGenerator.cs: optimize localbuilder related opcodes.
Track parameters to adjust maxstack.
* LocalBuilder.cS: use unsigned for position.
svn path=/trunk/mcs/; revision=3362
* appdomain.c: do not use the byte marker in ldstr table lookup.
* debug-helpers.c: allow two ':' to separate class and method name.
* object.c: allocate arrays bounds with the GC, too.
* verify: add a few more checks.
svn path=/trunk/mono/; revision=3360
* XmlCharacterData.cs (InnerText): Implemented. Funny that the
docs say it is the "The concatenated values of the node and all
the children of the node.". I wrote some test programs and
couldn't get any of the derived nodes to AppendChild. For now,
InnerText == Data == Value.
* XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
svn path=/trunk/mcs/; revision=3358
* reflection.c: output also literal strings. Allocate parameter data
with GC_malloc() (thanks, Martin, for catching this!).
svn path=/trunk/mono/; revision=3357
* interp.c: Show thread ID's in trace output.
New option "--traceclassinit" to put debug output around
runtime_class_init().
Make sure all options are displayed in usage().
svn path=/trunk/mono/; revision=3355
* debug-dwarf2.c (write_method_lines_dwarf2): Don't generate method
lines if we don't have line number information.
(write_method_dwarf2): Use `minfo->method_info.this_offset' instead
of hardcoding 8.
* debug-stabs.c (write_method_stabs): Don't generate method lines if
we don't have line number information. Use `minfo->method_info.this_offset'
instead of hardcoding 8.
* debug.c (debug_generate_method_lines): Don't crash if we don't have
line number information.
(mono_debug_open_assembly): Don't generate line numbers for
MONO_DEBUG_FORMAT_DWARF2_PLUS.
(mono_debug_add_method): Don't store the 'this' offset in `param_offsets',
but it in the new `this_offset' field.
svn path=/trunk/mono/; revision=3349
* debug-symfile.h (MonoDebugMethodInfo): Added `this_offset', don't
include the `this' offset in the `param_offsets'.
svn path=/trunk/mono/; revision=3348
* Removed all the files. Making place for someone other to contribute.
I am not in a position, right now, to look after this. It's screwing
me up...
svn path=/trunk/mcs/; revision=3343
** added functionality for basic functionality. **
** Only suports 32 bit color bitmaps, no compression. **
** Untested **
* Dennis Hayes**
svn path=/trunk/mcs/; revision=3340
* IntPtr.cs: Temporary work-around until I fix the assembly
attributes bug.
* String.cs (System): Removed enumeration, because it is pretty
hard to support enumerations in /nostdlib mode for the core types.
2002-03-25 Miguel de Icaza <[email protected]>
* interface.cs: Implement the same search algorithm for types in
the interface code.
* delegate.cs: Do not allow multiple definition.
svn path=/trunk/mcs/; revision=3335
* interface.cs (Interface.DefineInterface): Prevent from double definitions.
* rootcontext.cs: Load manually enum to allow core classes to
contain enumerations.
* enum.cs, ecore.cs, driver.cs, attribute.cs, class.cs, expression.cs:
Update to new static methods in TypeManager.
* typemanager.cs (GetMethod, GetConstructor): Use our
implementation of FindMembers to find the members, since during
corlib compilation, the types are TypeBuilders and GetMethod and
GetConstructor do not work.
Make all methods in TypeManager static.
svn path=/trunk/mcs/; revision=3332
* debug-symfile.c (mono_debug_update_symbol_file): Use a new
mono_debug_get_class() function to get the classes. Added new
relocation types for arrays and strings.
(mono_debug_get_class): New static function to search in all
referenced assemblies for a metadata token.
* debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 7.
svn path=/trunk/mono/; revision=3330
* MonoDwarfFileWriter.cs (CreateType): Return a `DieType'.
(RegisterType): Add the type to the type hash before creating dependency types
so we don't get recursion loops.
(RegisterPointerType): New func to register a "pointer to type" type.
(DieTypeDef, DiePointerType, DieArrayType, DieStringType, DieClassType): New
types; added support for strings, arrays and basic support for classes.
svn path=/trunk/mcs/; revision=3329
* reflection.h, reflection.c: use a gc-safe hash for hash tables that
hold gc-allocated objects. Make the string heap a stream like the
others. Removed duplicated code when writing stream info.
Added asserts to catch possible buffer overflows. Set the sorted map
for tables that need sorting. Added some documentation.
svn path=/trunk/mono/; revision=3326
* interp.c: allow tracing to be done on a per-method basis.
Fix interp_mono_runtime_invoke() to deal correcttly with the return
value. Disable glib mem vtable setting.
svn path=/trunk/mono/; revision=3322
* First checkin: libmonoutils is meant to hold some utility
data structures and bits that are usefult to the rest of the project
and don't require metadata/runtime support.
mono-hash is a GC-safe hash table: i.e. you can store GC-allocated
data in it.
svn path=/trunk/mono/; revision=3320
I am very close!
2002-03-25 Miguel de Icaza <[email protected]>
* typemanager.cs (InitCodeHelpers): Split the functionality from
the InitCodeTypes function.
* driver.cs: Call InitCodeHelpers after we have populated the
types.
* cs-parser.jay (delegate_declaration): we did not used to compute
the delegate name correctly for void delegates.
2002-03-24 Miguel de Icaza <[email protected]>
* rootcontext.cs (RootContext): Init the interface_resolve_order
and type_container_resolve_order always.
(ResolveCore, BootstrapCorlib_ResolveClass,
BootstrapCorlib_ResolveStruct): New functions to bootstrap the
compiler when compiling with --nostdlib
* class.cs (TypeContainer.DefineType): Check that our parent is
not null. This test is most important when we are bootstraping
the core types.
* codegen.cs: Split out the symbol writing code.
svn path=/trunk/mcs/; revision=3318
* System.Data.build: Excluded System.Data.SqlClient from the build.
The stubs are incomplete and they are stopping the build.
* System.Data.SqlClient/SqlCommand.cs: Replaced 'implements' with ':'.
* SortedList.cs (Synchronized): Stubbed out a missing method
pointed out by Jakk Simm's test suite.
* SortedListTest.cs: Committed to CVS for Jaak Simm <[email protected]>.
svn path=/trunk/mcs/; revision=3314
* man/mcs.1: Documented the new --debug option and added a section
about debugging support.
* man/mono.1: Documented the new --dwarf and --dwarf-plus options.
svn path=/trunk/mono/; revision=3311
* codegen.cs (SymbolWriter): New public variable. Returns the
current symbol writer.
(CodeGen): Added `bool want_debugging_support' argument to the
constructor. If true, tell the ModuleBuild that we want debugging
support and ask it for the ISymbolWriter.
(Save): If we have a symbol writer, call it's Close() method after
saving the assembly.
* driver.c (--debug): New command line argument to create a
debugger information file.
* location.cs (SymbolDocument): New public property. Returns an
ISymbolDocumentWriter object for the current source file or null
if we don't have a symbol writer.
svn path=/trunk/mcs/; revision=3310
* IMonoSymbolWriter.cs: Killed all methods in this interface, no longer needed.
* MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now takes a string
argument which is the full pathname of the assembly - you must call Close()
after the assembly has been written to disk since the symbol writer needs to
load the finished assembly to get its metadata.
* MonoDwarfFileWriter.cs: Added support for enums and structs.
svn path=/trunk/mcs/; revision=3306
* icall.c (ves_icall_Type_GetFields): Reverse the list before storing
it in the array since it was created with g_slist_prepend().
2002-03-24 Martin Baulig <[email protected]>
* debug-symfile.c (mono_debug_local_type_from_signature): Renamed
to ves_icall_Debugger_MonoSymbolWriter_get_local_type_from_sig().
(mono_debug_method_from_token): Renamed to
ves_icall_Debugger_MonoSymbolWriter_method_from_token().
(ves_icall_Debugger_DwarfFileWriter_get_type_token): New interncall.
* debug-symfile.c (MRT_type_sizeof, MRT_type_field_offset): New
relocation types.
* debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 6.
svn path=/trunk/mono/; revision=3302
* System.Data.SqlClient/*: added skeletons for the SQL managed
provider for ADO.Net, to be based initially in PostgreSQL.
svn path=/trunk/mcs/; revision=3300
* IMonoSymbolWriter.cs (IMonoSymbolWriter): Removed my custom OpenMethod(),
we're now using the ISymbolWriter's method.
(IVariable): Added `byte[] Signature' property.
* MonoSymbolWriter.cs (SetAssembly): New method. This must be called before
Close(); the assembly parameter is the already-written assembly, ie. it must
contain the full metadata.
(OpenMethod): Only take the token argument and set MethodInfo later in DoFixups.
(SetMethodSourceRange): You must call this function to tell the symbol writer
in which source file the method is defined.
(DefineLocal): Store the signature in the local.
(DoFixups): Use two new interncalls to set the SourceMethod's MethodInfo field
and the LocalVariable's Type field.
svn path=/trunk/mcs/; revision=3298
* ILGenerator.cs: Use #if-#endif instead of if(false){} to disable
code. This way there is no compiler warning.
* TypeBuilder.cs: Removed the returns that came after the throws.
This removes a few more compiler warnings. Also marked with MonoTODO
all places where we throw NotImplemented exceptions.
svn path=/trunk/mcs/; revision=3294
* SignatureHelper.cs (GetFieldSignatureHelper, GetLocalSignatureHelper):
Implemented.
* LocalBuilder.cs (LocalBuilder): This internal constructor now takes
a ModuleBuilder argument instead of a ISymbolWriter one.
(SetLocalSymInfo): Create and pass type signature to DefineLocalVariable.
svn path=/trunk/mcs/; revision=3291
* unicode.c (ves_icall_iconv_get_char_count): The `count' argument
specifies the number of bytes to be converted, not the array size.
Return the number of chars, not the number of bytes.
(ves_icall_iconv_get_chars): The `byteCount' argument
specifies the number of bytes to be converted, not the array size.
svn path=/trunk/mono/; revision=3288
* Fixed hanging fileHandle
* Removed <seeAlso> stubs; unnecessary
* changed <returnType> to <returns> to conform with the DTD.
svn path=/trunk/mcs/; revision=3287
* IMonoSymbolWriter.cs (ISourceBlock): New interface.
(ILocalVariable): Renamed this interface to IVariable.
(IVariable): Added Line, Type, Token.
(ILocalVariable, IMethodParameter): New interfaces, derive from IVariable.
(ISourceMethod): Added Blocks. Renamed FirstLine and LastLine to Start and End,
changed their type to ISourceLine. Removed CodeSize.
(ISourceLine): Renamed Line to Row, added Column. Added OffsetType and Offset.
* MonoDwarfFileWriter.cs (MonoDwarfFileWriter.DieLexicalBlock): New class.
(MonoDwarfFileWriter.DieMethodVariable): New class.
* MonoSymbolWriter.cs (OpenScope, CloseScope): Implemented.
Reflected latest IMonoSymbolWriter interface changes.
svn path=/trunk/mcs/; revision=3283
* debug-private.h (AssemblyDebugInfo): Added `_priv'.
* debug-dwarf2-plus.c
(mono_debug_open_assembly_dwarf2_plus): Open the symbol file here.
(mono_debug_close_assembly_dwarf2_plus): Close the symbol file here.
(mono_debug_write_assembly_dwarf2_plus): Only call
mono_debug_update_symbol_file() here.
svn path=/trunk/mono/; revision=3281
* rawbuffer.c (mono_raw_buffer_load_mmap): Use MAP_SHARED when
is_writeable is set.
(mono_raw_buffer_update): New function to write the modified map
back to disk.
* debug-symfile.h (MonoDebugSymbolFile): Added `raw_contents_size'.
* debug-symfile.c (mono_debug_update_symbol_file): Call
mono_raw_buffer_update() when done writing.
svn path=/trunk/mono/; revision=3280
* debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 5.
* debug-symfile.c: Added support for arguments and local variables.
svn path=/trunk/mono/; revision=3279
* threads.c: Fix a race condition where a thread can start and
exit before the handle has been properly initialised (no reason
why the handle couldn't be initialised beforehand, so do so)
Fix a ms to ns conversion magnitude thinko.
svn path=/trunk/mono/; revision=3272
* XmlElement.cs: Reformatted.
(CloneNode) Corrected.
* XmlDocument.cs (CreateWhitespace): Implemented.
* XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
true, because Attributes have ChildNodes.
2002-03-22 Duncan Mak <[email protected]>
* AllTests.cs:
* Microsoft.Test.csproj:
* Mono.Test.csproj: Updated to include new files.
* XmlCDataSectionTests.cs: Added to CVS.
* XmlCommentTests.cs: Added to CVS. hanks to Kral for helping me
setup a testing environment on VS.NET.
* XmlElementTests.cs: Reformatted.
(TestCloneNode): Added.
* XmlWhiteSpaceTests.cs: Added to CVS.
svn path=/trunk/mcs/; revision=3267
* ASCIIEncoding.cs : Fix off by one error in Get(Char|Byte)Count.
2002-03-21 Mike Kestner <[email protected]>
* StreamReader.cs : Fill out, add buffering, and use encoding.
svn path=/trunk/mcs/; revision=3266
* jit.c: inter strings before executing a method.
Do not intern command line arguments anymore.
Thu Mar 21 17:32:46 CET 2002 Paolo Molaro <[email protected]>
* interp.c: intern strings before executing a method (and don't
intern command line arguments anymore). Add sanity checks in alloca
use.
svn path=/trunk/mono/; revision=3262
* debug.h (MonoDebugFormat): Added MONO_DEBUG_FORMAT_DWARF2_PLUS.
* debug-dwarf2-plus.c: This debugging format reads a symbol file which has
been created by MCS and fills in all machine dependent stuff.
* debug-private.h (DebugMethodInfo): Added `MonoDebugMethodInfo method_info',
removed everything which is already in MonoDebugMethodInfo.
* debug.c (debug_generate_method_lines): Generate the MonoILOffsetInfo array.
(mono_debug_make_symbols): Don't open the file or call as, this is done in the
backend code.
* jit.c (main): Added "--dwarf-plus" command line option to use the new
MONO_DEBUG_FORMAT_DWARF2_PLUS debugging format.
svn path=/trunk/mono/; revision=3260
* semaphores.c: Fix a problem when waiting for one or more
semaphores, and another semaphore is Released (all waiting
semaphores assumed they were signalled)
svn path=/trunk/mono/; revision=3257
* debug-symfile.[ch]: New files to handle debugging information
files. There's also support to dynamically update these symbol
files to include machine dependent information.
svn path=/trunk/mono/; revision=3253
* jit.c (usage): new option to specify maximum number of worker threads
* delegate.c (arch_get_async_invoke): notify listeners before we call the
asynchronous callback
svn path=/trunk/mono/; revision=3251
* test-49.cs: Improved test to excerise the coverage.
2002-03-21 Miguel de Icaza <[email protected]>
* driver.cs (LoadAssembly): Correctly return when all the paths
have been tried and not before.
* statement.cs (Switch.Emit): return the actual coverage for this
statement (returns/not-returns)
(Switch.SimpleSwitchEmit): Do not generate jumps to the end of the
switch of the statement if we are the last switch section. That
kills two problems: try/catch problems (we used to emit an empty
nop at the end) and switch statements where all branches would
return.
svn path=/trunk/mcs/; revision=3248
* IAssemblerWriter.cs: New interface.
* AssemblerWriterI386.cs: New class.
* MonoDwarfFileWriter.cs: Use the IAssemblerWriter interface to make this class
platform and assembler independent.
svn path=/trunk/mcs/; revision=3243
* ModuleBuilder.cs (GetSymbolWriter): New internal function. Dynamically
loads the default symbol writer, catch all possible exceptions and return
null on failure.
(ModuleBuilder): Added `bool emitSymbolInfo' argument to this internal
constructor; if set, call GetSymbolWriter ().
(GetSymWriter): Implemented.
* LocalBuilder.cs (LocalBuilder): Added ISymbolWriter argument to this
internal method.
(SetLocalSymInfo): Implemented, call ISymbolWriter.DefineLocalVariable ()
if the symbol writer is not null.
* ILGenerator.cs (ILGenerator): Call ModuleBuilder.GetSymWriter () to get
and store the symbol writer.
(DeclareLocal): Pass the symbol writer to LocalBuilder's constructor.
(MarkSequencePoint): Implemented, call ISymbolWriter.DefineSequencePoints ()
if the symbol writer is not null.
* AssemblyBuilder.cs (DefineDynamicModule): Pass the `bool emitSymbolInfo'
to ModuleBuilder's constructor.
svn path=/trunk/mcs/; revision=3239
* icall.c (ves_icall_InternalInvoke): Create a new object if the
method is a constructor.
(icall_map): Added "System.Reflection.MonoCMethod::InternalInvoke",
points to ves_icall_InternalInvoke().
svn path=/trunk/mono/; revision=3237
* Array.cs: move error handling in the catch block.
* MulticastDelegate.cs: remove == and != operators that were
removed with the delegate changes (when you add stuff, please do not
remove existing functionality!).
* Type.cs: if a property is not found in a type, search for it
in the parent types, too.
svn path=/trunk/mcs/; revision=3215
* StreamWriter.cs (StreamWriter (string)): The default is to override
the file, not to append to it.
(StreamWriter (string path, bool append)): When appending, seek to the
end of the file, otherwise truncate the file to zero length.
(Dispose (bool)): Close the internalStream.
(Flush): Flush the interalStream.
(Write (char[], int, int)): Flush the internalStream in auto-flush-mode.
svn path=/trunk/mcs/; revision=3207
* interface.cs (Interface.PopulateProperty): Instead of using
`parent' as the declaration space for the set parameters, use
`this'
* support.cs (InternalParameters): InternalParameters constructor
takes a DeclSpace instead of a TypeContainer.
* expression.cs (ArrayCreation.EmitDynamicInitializers): If value
types are being initialized, load the address of it before calling
the function.
(New): Provide a mechanism to disable the generation of local
value type temporaries when the caller will be providing us with
an address to store it.
(ArrayCreation.EmitDynamicInitializers): Use it.
Fixes two bugs reported on Bugzilla
svn path=/trunk/mcs/; revision=3197
This is an implementation of the System.Diagnostics.SymbolStore.SymbolWriter
interface. It's still work in progress and not yet used anywhere.
There is some preliminary documentation in the source files and some more
docu in the README and README.relocation-table files.
* IMonoSymbolWriter.cs: New file.
* MonoDwarfFileWriter.cs: New file.
* MonoSymbolDocumentWriter.cs: New file.
* MonoSymbolWriter.cs: New file.
* README, README.relocation-table: Documentation.
svn path=/trunk/mcs/; revision=3193
* sysmath.c, sysmath.h, icall.c, Makefile.am: math routines now
handled by runtime as icall rather than dllimport from libm.so
* file-io.c, file-io.h: fixed handle argument type.
svn path=/trunk/mono/; revision=3191
* configure.in: Only look for libgc on the system. Default to not
using GC at all, because it doesn't work with the jit.
2002-03-18 Dick Porter <[email protected]>
* reflection.c (mono_image_get_type_info): rename interface to
iface, because of "#define interface struct" on windows.
svn path=/trunk/mono/; revision=3190
* Enum.cs (Equals): check for null and throw if it is.
* Enum.cs (Format): check for null parameters and throw if necessary.
This method still needs more argument checking.
svn path=/trunk/mcs/; revision=3186
* corlib_test.build: build RunTests.corlib.exe with only mono class
libs. This tells what we are missing to run the tests.
svn path=/trunk/mcs/; revision=3184
* ByteTest.cs:
* Int64Test.cs:
* SByteTest.cs: Do not hard code the "$" as the currency symbol to
use for Parse tests. This isn not really the fix we need. These
number formats vary wildly depending on the culture the system
runs with. We need a much better strategy here for testing this.
* Int32Test.cs: Use #if NOTYET-#endif to disable a test. This removes
an annoying compile warning.
svn path=/trunk/mcs/; revision=3181
* corlib_test.build: disable running of NUnit tests against mono
corlib. There are so many icalls now, that these tests need
to be run inside mint and mono. Will change this soon to run
the tests using both. It still runs the tests against the mscorlib
to validate the tests themselves.
svn path=/trunk/mcs/; revision=3179
* ASCIIEncodingTest.cs : New suite for ASCIIEncoding.
* AllTests.cs : Add the new suite.
2002-03-17 Mike Kestner <[email protected]>
* ASCIIEncoding.cs: Implement all the overridden methods. No longer
dependent on iconv icalls.
* Encoding.cs: Fix count bugs in GetBytes and GetChars. Add virtual
to GetBytes.
svn path=/trunk/mcs/; revision=3170
* expression.cs (Invocation.EmitArguments): Only probe for array
property if there is more than one argument. Sorry about that.
svn path=/trunk/mcs/; revision=3168
* Double.cs: Explicitly handle comparisons in CompareTo() for
Positive/Negative Infinity and NaN. Unit Test now passes on Linux.
* Enum.cs(CompareTo): Check types of values before trying to compare.
Throw exceptions if types are invalid or don't match.
svn path=/trunk/mcs/; revision=3164
* Double.cs: Explicitly handle comparisons in CompareTo() for
Positive/Negative Infinity and NaN. Unit Test now passes on Linux.
svn path=/trunk/mcs/; revision=3163
* makefile: Do not remove the NAnt.exe on a 'make clean'. This would
prevent other cleans from happening that need nant.
svn path=/trunk/mcs/; revision=3161
* library.build: Uncommented System.Web tag
* System.Web.build: Did the same. Now does not exclude System.Web.UI.WebControls.
GOOD NEWS! N-JOY!
svn path=/trunk/mcs/; revision=3157
* class.cs (Invocation.EmitArguments): Fix to emit arguments for
empty param arrays.
* class.cs (Method.LabelParameters): Fix incorrect code path that
prevented the `ParamArrayAttribute' from being applied to the
params attribute.
svn path=/trunk/mcs/; revision=3155
* debug.c (mono_debug_open_assembly): Call mono_debug_get_type() on all
base types.
* debug-dwarf2.c: Added support for strings and arrays.
svn path=/trunk/mono/; revision=3154
* debug.c (mono_debug_get_type): Recursively call this for all function members
of a class type.
(mono_debug_add_method): Don't mangle function names, this must be done by the
debugger backend if the debugging format needs mangled names.
* debug-dwarf2.c: Improved support for classes, added member functions.
svn path=/trunk/mono/; revision=3153
* typemanager.cs: Make the assemblies array always be non-null
(empty, but non-null)
* tree.cs (RecordDecl): New function that abstracts the recording
of names. This reports error 101, and provides a pointer to the
previous declaration. Fixes a crash in the compiler.
svn path=/trunk/mcs/; revision=3151
* debug.c (mono_debug_get_type): Recursively call this for all members and
parent classes of a class type.
* debug-dwarf2.c: Added basic support for classes. Set source language to C++
since GDB doesn't like Java very much.
svn path=/trunk/mono/; revision=3150
* cs-parser.jay (constructor_declaration): Update to new grammar,
and provide a constructor_body that can be empty.
svn path=/trunk/mcs/; revision=3149
2002-02-28 Miguel de Icaza <[email protected]>
* Stream.cs (NullStream): Do not track position, this beast does
nothing in practice.
2002-03-14 Miguel de Icaza <[email protected]>
* Array.cs: Add some extra debugging information.
svn path=/trunk/mcs/; revision=3147
* class.c, class.h: rename and export mono_ptr_class_get().
* metadata.c: support MONO_TYPE_ARRAY in MonoType compare.
* reflection.c, reflection.h, icall.c: better/saner type name
parsing and MonoType creation. Handle MONO_TYPE_ARRAY in
method signatures.
svn path=/trunk/mono/; revision=3145
* interp.c: restore frame on return from unmanaged calls.
Add support for continuing execution up to x IL insn.
Fix exception handling when an exception is raised in the catch
handler of the same method that issued the first one.
svn path=/trunk/mono/; revision=3142
* Stubbed some methods: FormatResourceString(...) in compliance with
several forms of String.Format(...) available.
svn path=/trunk/mcs/; revision=3137
* driver.cs: Add support for --resources.
* expression.cs: (FetchGetMethod, FetchAddressMethod, EmitAssign):
Make all types for the various array helper methods be integer.
* ecore.cs (Expression.ConvertNumericExplicit): Pass the
CheckState to ConvCast.
(ConvCast): Now it takes a `checked' state argument, to avoid
depending on the emit context for the conversion, and just using
the resolve time setting.
* expression.cs (ArrayCreation.EmitArrayArguments): New function,
instead of Invocation.EmitArguments. We do not emit the original
arguments, instead we emit those which have been converted to
unsigned int expressions.
svn path=/trunk/mcs/; revision=3135
* XmlEntity.cs: Added to CVS. Need to implement BaseURI and
InnerText once I know what they do.
* XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
that we can properly chain constructors.
(CloneNode): implemented.
(WriteContentTo): Removed MonoTODO attribute as this method has no
effect in this class.
svn path=/trunk/mcs/; revision=3134
* debug.c (mono_debug_get_type): Recursively call this for all members
of a struct type.
* debug-dwarf.c: Added support for structs.
svn path=/trunk/mono/; revision=3131
2002-03-15 Miguel de Icaza <[email protected]>
* statement.cs (Block.EmitMeta): Drop tracking of indexes.
* codegen.cs: ditto.
* expression.cs (LocalVariableReference): Drop the use of the
Store function that depended on the variable index.
* statement.cs (VariableInfo): Drop the `Idx' property from this
class, as this is not taking into account the indexes for
temporaries tat we generate during the execution, getting the
indexes wrong.
* class.cs: First emit class initializers, then call the parent
constructor.
svn path=/trunk/mcs/; revision=3130
* ecore.cs (MemberLookup): TypeManager.FindMembers will return
matches for events for both the Static and Instance scans,
pointing to the same element. Fix that.
svn path=/trunk/mcs/; revision=3121
* DirectoryInfo.cs: Fixed the overloaded GetDirectories and GetFiles.
This code seemed to be copied from somewhere, and it was close,
but didn't match the docs. This was the last bit needed to get
NAnt to compile with our class libs.
svn path=/trunk/mcs/; revision=3118
* makefile: Compile a version of NAnt with Mono's libs. It only does
this if you 'make NAnt_mono.exe'. Of course, right now the resulting
exe probably is not going to work yet becuase of the immature class
libs.
svn path=/trunk/mcs/; revision=3117
* rootcontext.cs (ResolveTree): Always set the
interface_resolve_order, because nested interfaces will be calling
into us.
* class.cs (GetInterfaceOrClass): Track the same resolution
process used by TypeManager.LookupType. This fixes the nested
type lookups in class declarations (separate path from
LookupType).
(TypeContainer.DefineType): Also define nested interfaces.
(TypeContainer.RegisterOrder): New public function used to
register the order in which child interfaces need to be closed.
Nested interfaces need to be closed after their parents have been
created.
* interface.cs (InterfaceAttr): Put all the logic for computing
the interface attribute here.
(DefineInterface): Register our interface order with the
RootContext or with the TypeContainer depending on the case.
New test as well.
svn path=/trunk/mcs/; revision=3115
* XmlDocument.cs: Moved the NodeChanged EventHandler to its own
file, and updated the callbacks to reflect the change.
(XmlDocument): Added the NameTable constructor.
(NameTable): Also the NameTable property.
svn path=/trunk/mcs/; revision=3113
* XmlDocument.cs: Moved the NodeChanged EventHandler to its own
file, and updated the callbacks to reflect the change.
* XmlNodeChangedEventHandler.cs: Added, replacing the version that
was in XmlDocument.cs. It has two arguments now (object,
EventArgs) , instead of one (object).
svn path=/trunk/mcs/; revision=3112
* XmlNamedNodeMap.cs (SetNamedItem): Reverted (added back in)
the patch with the ReadOnly checks. "Don't doubt yourself, my
son... you were right!"
svn path=/trunk/mcs/; revision=3096
* ArrayList.cs (FixedSize): Changed the return type to IList if
the argument is an IList.
(Synchronized): Ditto here.
svn path=/trunk/mcs/; revision=3092
* debug.c (MonoDebugFormat): New public enums specifying which debugging
format to use.
(mono_debug_open_file): Added MonoDebugFormat argument.
(mono_debug_make_symbols): Don't take an argument to make it easier to call
this function from GDB. It's now safe to call this function multiple times;
it'll always write a complete debugging file.
* debug.c: Splitted this file into a general part which remains in this file
and the debugging format specific parts debug-stabs.c and debug-dwarf2.c.
All public functions now call a corresponding format specific function.
* debug.c: The following changes are private to debug.c:
(AssemblyDebugInfo, MonoDebugHandle): Moved declarations to debug-private.h.
(record_line_number, debug_generate_method_lines): New private functions.
(mono_debug_open_ass): Renamed to mono_debug_open_assembly; this function now
calls a debugging-format-specific function (mono_debug_open_assembly_stabs or
mono_debug_open_assembly_dwarf2).
(mono_debug_make_symbols): Calls mono_debug_write_assembly_stabs/dwarf2(). It's
now safe to call this function multiple times.
(mono_debug_get_type): New public function. This takes a `MonoClass *' and
returns an unique index for this type. It's used to ensure that we only write
each class once to the debugging file.
(mono_debug_add_method, mono_debug_add_type): Store all the data in an internal
data structure, but don't directly write to the debugging file. This is done
later from mono_debug_write_assembly().
* jit.c (main): Added "--dwarf" command line argument to generate DWARF 2
debugging output. Call mono_debug_close() on cleanup if necessary.
svn path=/trunk/mono/; revision=3090
* debug-private.h: New private header file.
* debug-stabs.c: Added the stabs type generation stuff which was
previously in debug.c.
* debug-dwarf.c: Started to implement type support. We're currently
only writing this most basic types to the dwarf file, but this will
change soon.
svn path=/trunk/mono/; revision=3089
* ecore.cs (StandardConversionExists): Modify to take an Expression
as the first parameter. Ensure we do null -> reference type conversion
checking.
* Everywhere : update calls accordingly, making use of MyEmptyExpr to store
temporary Expression objects.
svn path=/trunk/mcs/; revision=3087
* XmlCharacterData.cs: Reformatted the properties for better readability.
* XmlLinkedNode.cs: Removed the awful boxy comments.
* XmlNamedNodeMap.cs (Count):
(Item): Implemented. Tests will be coming.
* XmlEntityReference.cs:
* XmlSignificantWhitespace.cs: Implemented these classes except for
the Clone, WriteContentTo and WriteTo methods. Will have to
investigate into these later.
svn path=/trunk/mcs/; revision=3081
* StringBuilder.cs: make ToString() return a interned string, this
seems to be required to make switch on string work.
svn path=/trunk/mcs/; revision=3079
* debug-stabs.c, debug-dwarf2.c: New files containing my new
debugging code. They're now in CVS, but not yet used anywhere.
svn path=/trunk/mono/; revision=3077
* EndOfStreamException.cs:
* FileLoadException.cs:
* FileNotFoundException.cs:
* PathTooLongException.cs: Changed the base classes to IOException
instead of SystemException.
* IOException.cs: Added missing constructors.
* MissingManifestResourceException.cs: This should inherit from
SystemException, not Exception.
* SiteIdentityPermissionAttribute.cs:
* UIPermissionAttribute.cs: These should inherit from
CodeAccessSecurityAttribute, not IsolatedStoragePermissionAttribute.
* SecurityException.cs: Inherit from SystemException, not Exception.
* FieldAccessException.cs:
* MethodAccessException.cs:
* PlatformNotSupportedException.cs: Inherit from
MemberAccessException, not SystemException.
svn path=/trunk/mcs/; revision=3076
We could also solve this problem by having a separate path for
performing type lookups, instead of DoResolve, we could have a
ResolveType entry point, and only participating pieces of the
production (simplename, deref, array) would implement this.
* codegen.cs (EmitContext): New field OnlyLookupTypes used to
signal SimpleName to only resolve type names and not attempt to
resolve anything else.
* expression.cs (Cast): Set the flag.
* ecore.cs (SimpleName): Use the OnlyLookupTypes flag
* Everywhere: Use ec.DeclSpace on calls to LookupType, as this
makes the use more obvious of the DeclSpace. The
ec.TypeContainer.TypeBuilder is now only used to pull the
TypeBuilder for it.
My theory is that I can get rid of the TypeBuilder completely from
the EmitContext, and have typecasts where it is used (from
DeclSpace to where it matters).
The only pending problem is that the code that implements Aliases
is on TypeContainer, and probably should go in DeclSpace.
svn path=/trunk/mcs/; revision=3075
* IFormatter.cs: Fix the return type of the Serialize method.
* ObsoleteAttribute.cs: Made Message and IsError properties
instead of fields.
svn path=/trunk/mcs/; revision=3074
* class.cs: Only report 108 if there is no `new' modifier.
* cs-parser.jay: rework foreach statement to work with the new
changes to the policy on SimpleNames.
* report.cs: support Stacktrace on warnings as well.
* makefile: drop --unsafe and /unsafe from the compile.
2002-03-11 Miguel de Icaza <[email protected]>
* ecore.cs (SimpleName.SimpleNameResolve): Perform local variable
lookups here, instead of doing that at parse time. This means
that our grammar will not introduce `LocalVariableReferences' as
expressions at this point. That solves the problem of code like
this:
class X {
static void Main ()
{ int X = 1;
{ X x = null }}}
This is only half the fix. The full fix requires parameters to
also be handled in this way.
Added test for the above new scenario, updated our foreach tests to try
the new changes.
svn path=/trunk/mcs/; revision=3059
* class.cs (Property.DefineMethod): When implementing an interface
method, set newslot, when implementing an abstract method, do not
set the flag (before we tried never setting it, or always setting
it, which is the difference).
(Indexer.DefineMethod): same.
(Method.DefineMethod): same.
svn path=/trunk/mcs/; revision=3057
* interp.c: use the new facilities in debug-helpers to
disassemble CIL code and match method names to MonoMethods.
svn path=/trunk/mono/; revision=3044
* monograph.c: removed method signature and searching helpers
that are now provided in libmetadata. Added --control-flow option to
create a control flow graph of a method, with basic blocks etc.
svn path=/trunk/mono/; revision=3043
* debug-helpers.{c,h}: moved here from monograph some useful functions
to locate a method by name/signature in a class or image. Included
also a small and flexible IL disassembler.
svn path=/trunk/mono/; revision=3042
* attribute.cs (Attribute.UnmanagedType): This is to keep track of
the unmanaged type in the case we have a MarshalAs attribute.
(Resolve): Handle the case when we are parsing the special MarshalAs
attribute [we need to store the unmanaged type to use later]
* typemanager.cs (marshal_as_attr_type): Built in type for the
MarshalAs Attribute.
* attribute.cs (ApplyAttributes): Recognize the MarshalAs attribute
on parameters and accordingly set the marshalling info.
svn path=/trunk/mcs/; revision=3035
* emit-x86.c (arch_compile_method): When emitting stabs debugging
output, put a nop instruction at the start of all functions so that
the adresses won't change when using --debug.
* debug.c (mono_debug_add_method): `tree->cli_addr' is an offset into
the bytecode area, stabs needs a line number in the .il file. Use the
new info->moffsets to get the line number.
(AssemblyDebugInfo): Added `total_lines' and `moffsets' fields.
`moffsets' is an array of `total_lines' fields (total number of lines
in the .il file); for each line in the .il field, this array contains
the bytecode offset if it's an "IL_xxxx" line, -1 if it's the last line
of a method and 0 otherwise.
(debug_load_method_lines): Read the whole .il file and initialize the
info->moffsets field.
svn path=/trunk/mono/; revision=3033
* class.cs: Optimizing slightly by removing redundant code after
we switched to the `NoTypes' return value.
(Property.DefineMethod): use NoTypes here too.
This fixes the bug I introduced in my last batch of changes.
svn path=/trunk/mcs/; revision=3029
* ArrayTest.cs: Enable the enumerator test and include test for
Multi-dimensional array enumerator. Also include test for
mutation _not_ invalidating the enumerator.
svn path=/trunk/mcs/; revision=3006
* Int16Test.cs, Int32Tests.cs, UInt16Tests.cs: Use "en-US" culture and
don't let the user override.
* Int32Tests.cs: Cleanup. Use unique names in Assert()s, use AssertEquals()
where appropriate etc.
svn path=/trunk/mcs/; revision=3005
* DumpCultureInfo.cs: New tool to dump culture info. Incomplete,
we need to get unicode support working before we can use this.
svn path=/trunk/mcs/; revision=3004
* XPathNamespaceScope.cs:
* XPathNodeType.cs:
* XPathResultType.cs:
* XmlDataType.cs:
* XmlSortOrder.cs: Used EnumCheck and realigned elements to be compatible with MS
implementation. XPathResultType is interesting as EnumCheck does
not show the Navigator element, but shows the String element twice.
svn path=/trunk/mcs/; revision=3003
* Object.cs: commit my hacked GetHashCode(): it's good enough for now.
* String.cs: use the dumb code for IndexOf(string): this is worth
15-20 % speedup in mcs compile with mint.
svn path=/trunk/mcs/; revision=2996
Fri Mar 8 16:29:29 CET 2002 Paolo Molaro <[email protected]>
* reflection.c: fixup tokens in methods with small header size, too.
svn path=/trunk/mono/; revision=2994
* monodis.1: Add info about new parameter
* main.c: Add flag to remember if user wants to us mscorlib for
non-corilb assembly names
* get.c(get_typedef): use mscorlib for assembly name only
if user specifies it with a command line parameter. Default
behavior is now to use actual assembly name.
svn path=/trunk/mono/; revision=2992
* tree.cs (RecordEnum): Add. We now keep track of enums too.
* class.cs (LookupInterfaceOrClass): Check against the list of recorded
Enums since those are types too.
* cs-parser.jay (enum_declaration): Record enums as we parse them.
* enum.cs (DefineEnum): Return if the TypeBuilder has already been defined
thanks to a call during the lookup process.
svn path=/trunk/mcs/; revision=2983
Lots of bug fixes today, including a major bugfix/upgrade to `foreach'.
2002-03-07 Miguel de Icaza <[email protected]>
* statement.cs (Foreach): Lots of work to accomodate a particular
kind of foreach statement that I had not kept in mind. It is
possible to have foreachs on classes that provide a GetEnumerator
method that return objects that implement the "pattern" for using
a foreach, there is no need to support GetEnumerator
specifically.
This is needed to compile nant.
* decl.cs: Only report 114 if the member is not `Finalize' and if
the warning level is at least 2.
* class.cs: Moved the compare function from Method to
MethodSignature.
(MethodSignature.InheritableMemberSignatureCompare): Add new
filter function that is used to extract inheritable methods from a
class.
(Method.Define): Use the new `inheritable_method_signature_filter'
delegate
* cs-tokenizer.cs (get_cmd_arg): Do not add white space to the
command.
svn path=/trunk/mcs/; revision=2981
* Makefile.am: A small patch fixing errors in vpath-based builds (make clean
failing to rerun monoburg due to BUILT_SOURCES usage), committed
for Daniel Stodden <[email protected]>.
svn path=/trunk/mono/; revision=2980
* String.cs (Join): Throw an ArgumentNullException.
(LastIndexOf (string,int,int)): This method does a backwards search,
so startIndex points to the end of value, not to its beginning. Don't
throw an exception if startIndex equals this.Length. Always return -1
if startIndex is smaller than the length of value.
(Replace (string,string)): Replace all occurences of oldValue.
If newValue is null, all occurences of oldValue are to be removed.
(Split (char[],int)): Return an empty array if maxCount is zero, throw
an ArgumentOutOfRangeException if it's less than zero. Return maxValue
elements, not maxValue+1.
svn path=/trunk/mcs/; revision=2977
* configure.in: detect Boehm GC libs and add --with-gc switch.
Boehm GC needs to be explicitly enabled since the JIT currently fails
in some cases with it.
svn path=/trunk/mono/; revision=2972
* appdomain.c, object.c: Boehm-GC enable.
* icall.c: make get_data_chunk() support split data requests.
Ensure a class is initialized in more cases. Return only the first
property found in GetProperties() or the compiler gets confused.
Implemented GetEvents(). Temporary fix to GetType(), needs rewriting.
* reflection.h, reflection.c: add fixup mechanism for field and method
tokens. Initialize assembly->typeref in a single place. Output
properties after events. Support custom attributes for events, too.
Typo fix for paramter custom attrs.
svn path=/trunk/mono/; revision=2969
* AssemblyBuilder.cs: allow saving bigger assemblies.
* ILGenerator.cs: add fixup table for fields and methods, since
at the end of the compile they may end up with a different table
index.
* ModuleBuilder.cs: add cache for type names to speed up the type
lookups from the compiler.
* TypeBuilder.cs: GetInterfaces () returns only interfaces in the
current type, not in parents (the docs are wrong).
svn path=/trunk/mcs/; revision=2968
* nunit.build: exclude all the obsolete stuff, and prevent csc from
linking any ms stuff to the dll and exe we are testing on Linux.
svn path=/trunk/mcs/; revision=2965
* x86.brg (SAVE_LFM): bug fix: patch the saved IP because we
realloc that code sometimes!
* emit-x86.c (mono_compute_branches): support several types of
jump infos
svn path=/trunk/mono/; revision=2964
* corlib_test.build: resolve chicken and egg problem. Only build and
execute test assemblies when 'make test' is specified. Need to do a
'make' first now before 'make test'.
svn path=/trunk/mcs/; revision=2953
* cs-parser.jay: Add opt_semicolon to the interface declaration.
* expression.cs: Pass location information to
ConvertImplicitStandard.
* class.cs: Added debugging code to track return values from
interfaces.
svn path=/trunk/mcs/; revision=2950
* .cvsignore: ignore *.pdb files
* nunit.build: Build a version of NUnitCore.dll and NUnitConsole.exe
using mono's corlib. Use this to test on Linux under mint and mono.
svn path=/trunk/mcs/; revision=2946
* RuntimeTypeHandle.cs: Add Serializable attribute as the docs say.
I need to understand what the difference between the attribute and
the interface is.
svn path=/trunk/mcs/; revision=2945
* Array.cs (Copy): Always throw an ArrayTypeMismatchException, not
an InvalidCastException if the widening conversion failed. See
testcases #M94-#M96.
svn path=/trunk/mcs/; revision=2941
* icall.c (ves_icall_System_Array_CreateInstanceImpl): Make this work with
non-zero lower bounds. See testcases #F10-#F13.
svn path=/trunk/mono/; revision=2939
* Array.cs (CopyTo): Reverted my last change, it was incorrect.
(Copy): Actually allow copying multi-dimensional arrays.
svn path=/trunk/mcs/; revision=2936
* expression.cs (Is.DoResolve): If either side of the `is' is an
interface, do not flag the warning.
* ecore.cs (ImplicitReferenceConversion): We need a separate test
for interfaces
svn path=/trunk/mcs/; revision=2930
a few easy to fix hot spots):
2002-03-05 Miguel de Icaza <[email protected]>
* typemanager.cs (NoTypes): Move the definition for the empty Type
array here.
* class.cs (TypeContainer.FindMembers): Also look for methods defined by
properties.
(TypeContainer.DefineProxy): New function used to proxy to parent
implementations when implementing interfaces.
(TypeContainer.ParentImplements): used to lookup if our parent
implements a public function that is required by an interface.
(TypeContainer.VerifyPendingMethods): Hook this up.
* typemanager.cs (TypeManager, AddModule, AddAssembly): Make the
`modules' and `assemblies' arraylists into arrays. We only grow
these are the very early start up of the program, so this improves
the speedof LookupType (nicely measured).
svn path=/trunk/mcs/; revision=2929
* Array.cs (Copy): Calculate absolute array position here and use
GetValueImpl() and SetValueImpl() with that position. We can now
copy multi-dimensional arrays.
(CopyTo): Small bug fix.
svn path=/trunk/mcs/; revision=2924
* exception.c (mono_get_exception_argument_out_of_range): New exception.
* icall.c (ves_icall_System_Array_GetValue): Moved actual implementation to
ves_icall_System_Array_GetValue(), only calculate the absolute array position
here.
(ves_icall_System_Array_SetValue): Likewise.
(ves_icall_System_Array_GetValueImpl): New interncall. Takes an array position
as argument and does the actual work. This function is used when copying a
multi-dimensional array.
(ves_icall_System_Array_SetValueImpl): Almost completely rewrote this. It can
now do all the widening conversions of value types.
(ves_icall_System_Array_CreateInstanceImpl): Implemented.
svn path=/trunk/mono/; revision=2923
* cfold.cs (ConstantFold.Binary): Special case: perform constant
folding of string concatenation, but if either side is a string,
and the other is not, then return null, and let the runtime use
the concatenation on the string plus the object (using
`Object.ToString').
svn path=/trunk/mcs/; revision=2915
* interp.c: fix non-debug build and some more opcode work.
Tue Mar 5 18:11:01 CET 2002 Paolo Molaro <[email protected]>
* dump.c: print index of the methodsemantics table.
* main.cs: print event information.
Tue Mar 5 18:14:01 CET 2002 Paolo Molaro <[email protected]>
* class.c: remove some magic numbers and use the smbolic names,
instead. Added init_events() to load event info at class init time.
* metadata.h, metadata.c: added mono_metadata_events_from_typedef()
and mono_metadata_methods_from_event().
* reflection.h, reflection.c: added support for writing out the evnets
related information.
svn path=/trunk/mono/; revision=2910
* SByte.cs, UInt64.cs: implement IConvertible interface. Nobody wants
to do this dirty work, but someone has to do it (and I need it to pass
the "200 sample tests compiled on linux" mark).
svn path=/trunk/mcs/; revision=2908
* UInt16Test.cs:
* UInt32Test.cs:
* UInt64Test.cs: Use NumberFormatInfo.InvariantInfo.CurrencySymbol
where "$" was used. Should help suppress false negatives on systems
where "$" is not the currency symbol.
svn path=/trunk/mcs/; revision=2905
* ChangeLog: My frustration appears here.
------------------------------------------------------------------
------------------------------------------------------------------
I AM TOTALLY SCREWED UP. NO GUESSES WHATSOEVER ON WHAT TO DO NOW!!
------------------------------------------------------------------
------------------------------------------------------------------
svn path=/trunk/mcs/; revision=2904
* *.cs -- *EventHandler.cs - Minor Corrections.
* Others -- Either complete, or first draft.
* ChangeLog, TODO -- Updated in accordance.
svn path=/trunk/mcs/; revision=2900
* Int16.cs (Parse): do not overflow on max negative value
* Int32.cs (Parse): do not overflow on max negative value
svn path=/trunk/mcs/; revision=2898
Constant Folding has been implemented now.
* expression.cs (Unary.Reduce): Do not throw an exception, catch
the error instead on types that are not supported in one's
complement.
* constant.cs (Constant and all children): New set of functions to
perform implict and explicit conversions.
* ecore.cs (EnumConstant): Implement the new functions to perform
conversion by proxying to the child expression.
* codegen.cs: (ConstantCheckState): Constant evaluation has its
own separate setting that can not be turned off from the command
line using --unchecked or --checked and is only controlled using
the checked/unchecked statements and expressions. This setting is
used by the constant folder to flag errors.
* expression.cs (CheckedExpr, UncheckedExpr): Set the
ConstantCheckState as well.
During Resolve, they also have to flag the state, because the
constant folder runs completely in the Resolve phase.
* statement.cs (Checked, Unchecked): Set the ConstantCheckState as
well.
2002-03-01 Miguel de Icaza <[email protected]>
* cfold.cs: New file, this file contains the constant folder.
* ecore.cs (IMemoryLocation.AddressOf): Now takes an extra
argument to track whether we are using the resulting address to
load or store a value and provide better error messages.
(FieldExpr.Emit, FieldExpr.EmitAssign, FieldExpr.AddressOf): Use
new AddressOf arguments.
* statement.cs (Foreach.EmitCollectionForeach): Update
* expression.cs (Argument.Emit): Call AddressOf with proper
arguments to track usage.
(New.DoEmit): Call AddressOf with new arguments.
(Unary.Emit): Adjust AddressOf call.
svn path=/trunk/mcs/; revision=2896
* GenerateDelegate.cs -- Generate delegates at your whim. Quite useful tool.
* ChangeLog -- SHOULD NOT MISS IT. has description about the tool.
* makefile -- Makes it.
svn path=/trunk/mcs/; revision=2891
* reflection.h, icall.c: use a different method (GetInterfaces)
to gather interface info and add isbyref, isprimitive and
ispointer to the ves_icall_get_type_info() return value.
svn path=/trunk/mono/; revision=2886
* Repeater.cs -- 90% done.
* ChangeLog -- DON'T MISS THIS UPDATE. This reveals a lot about what is done,
is being done and what is left out.
************************************************************
THIS COMPLETES MY TASK IN WebControls for the time being.
************************************************************
svn path=/trunk/mcs/; revision=2884
* MonoType.cs: implemented GetConstructors(), GetFields(),
GetMethods(), GetProperties().
* Object.cs: added debugging icall obj_address().
* Type.cs: fixed the binding flags for some Get* methods.
Implemented FindMembers() as calls to the specific GetMember
methods.
svn path=/trunk/mcs/; revision=2876
* interp.c: print the address of 'this' in tracing mode.
Mon Mar 4 11:22:26 CET 2002 Paolo Molaro <[email protected]>
* class.h: stared adding support for events.
* icall.c: split find_members implementation. Added debug icall to get
the address of an object.
* reflection.c: handle TypeBuilders in mono_type_get_object().
svn path=/trunk/mono/; revision=2875
* *EventArgs.cs -- Damn! I marked them "*" and forgot to even write them.
* ChangeLog -- Updated
* TODO -- I guess, nothing to do with this.
svn path=/trunk/mcs/; revision=2871
* BaseValidator.cs -- Rejuvination.
* **.cs (Added) -- Completed ones (I guess)
* ChangeLog -- DON'T MISS THIS
* TODO -- Updated in accordance..
NOW I HAVE ONLY ONE CLASS THAT REMAINS 0% implemented and that is Repeater.
I will start work on it soon.
svn path=/trunk/mcs/; revision=2868
* corlib.build: Exclude a bunch of interfaces from corlib_res.dll
that were preventing the tests from running on Windows.
svn path=/trunk/mcs/; revision=2856
* DateTimeTest.cs: make static member non-static -- wouldn't work on
Windows if it was static. Doesn't _need_ to be static anyway.
svn path=/trunk/mcs/; revision=2854
2002-03-02 Mike Kestner <[email protected]>
* XmlAttributeTests.cs : New test suite for attrs.
* AllTests.cs : Add the attr suite.
In System.Xml:
2002-03-02 Mike Kestner <[email protected]>
* XmlAttribute.cs : Using fix.
* XmlDocument.cs (CreateAttribute(String)): Implement.
svn path=/trunk/mcs/; revision=2847
* ecore.cs (SimpleName.SimpleNameResolve): Perform a check on ec.TypeContainer.TypeBuilder
not being null.
* codegen.cs (EmitContext): The constructor now takes in an extra argument specifying the
DeclSpace as the distinction is important. We provide sane defaults as usually the TypeContainer
is the DeclSpace.
* Update code everywhere accordingly.
* ecore.cs : Change references to ec.TypeContainer to ec.DeclSpace where appropriate.
* cs-parser.jay (enum_declaration): Set the current namespace of the enum.
svn path=/trunk/mcs/; revision=2838
* cs-parser.jay (member_access): Change the case for pre-defined types
to use a MemberAccess instead of a SimpleName. Thanks to Felix again for
this suggestion.
* class.cs (Operator::Emit): If we are abstract or extern, we don't have
a method body.
* attribute.cs (CheckAttribute, ApplyAttribute): Ensure that treat operators
essentially like methods and apply attributes like MethodImplOptions.
svn path=/trunk/mcs/; revision=2835
* DataColumnCollection.cs : When an existing DataColumn is added, will now Assign a
default name if the ColumnName is null.
* DataSet.cs : Added
* DataTable.cs : Added
* DataRelationCollection.cs : Added
* DataTableRelationCollection.cs : Added
* DataColumn : Added
svn path=/trunk/mcs/; revision=2834
* icall.c (ves_icall_System_Array_GetLength): This must throw an
ArgumentOutOfRangeException(), not an ArgumentException().
(ves_icall_System_Array_GetLowerBound): Likewise.
(ves_icall_System_Array_GetValue): Improved argument checking.
(ves_icall_System_Array_SetValue): Improved argument checking.
svn path=/trunk/mono/; revision=2828
* BitConverter.cs: Indentation match
* AppDomain.cs: Added MonoTODOs to this too.
* Buffer.cs: Added MonoTODOs to this.
svn path=/trunk/mcs/; revision=2824
* ArrayTest.cs: Commented out a few bits which are not yet implemented and
marked them with FIXME's.
* DecimalTest.cs, DecimalTest2.cs: Added zero-arg constructors.
* MartinTests.cs: Enabled ArrayTests.cs.
svn path=/trunk/mcs/; revision=2821
* icall.c (ves_icall_System_Array_GetValue): Raise an exception when
called with invalid arguments rather than just dying with g_assert().
(ves_icall_System_Array_SetValue): Likewise.
(ves_icall_System_Array_CreateInstanceImpl): Don't g_assert_not_reached(),
raise a NotImplementedException instead.
(ves_icall_System_Array_GetLength): Added argument checking.
(ves_icall_System_Array_GetLowerBound): Added argument checking.
svn path=/trunk/mono/; revision=2819
* rootcontext.cs (LookupType): As we cycle through the chain of namespaces
try performing lookups against those instead of jumping straight into using
the 'using' clauses.
(ImplicitParent): Add. Thanks to Felix Arrese-Igor for this idea.
(LookupType): Perform lookups in implicit parents too.
* class.cs (GetInterfaceOrClass): Modify to perform the exact same lookup
sequence as RootContext.LookupType.
* rootcontext.cs (NamespaceLookup): Split out code from LookupType which tries
the various cases of namespace lookups into this method.
svn path=/trunk/mcs/; revision=2814
* BitConverter.cs: Throw ArgumentException like mscorlib, instead of
ArgumentOutOfRangeException like the docs say.
svn path=/trunk/mcs/; revision=2807
* scan-tests.pl: Catch exceptions when running the tests so that we
always run all the tests in a test suite even if some of them fail.
svn path=/trunk/mcs/; revision=2800
* x86.brg: use new mono_assert macros
* emit-x86.c (arch_create_jit_trampoline): save/restore LMF before
calling into unmanaged code (arch_compile_method).
* object.h (mono_assert): new macros mono_assert and
mono_assert_not_reached
svn path=/trunk/mono/; revision=2795
as the are some repeats, that I need to handle gracefully.
2002-03-01 Miguel de Icaza <[email protected]>
* cs-parser.jay: Add support for [Attribute ()] (empty arguments
in positional arguments)
* class.cs (Operator): Update the AllowedModifiers to contain
extern.
* cs-parser.jay: Update operator declaration to allow for the
operator body to be empty.
* cs-tokenizer.cs: Added '\u' unicode support in strings and hex
values.
svn path=/trunk/mcs/; revision=2782
* String.cs: This file now passes the testsuite on Linux :-)
* String.cs (Intern, IsInterned): The interncalls are now called _Intern and _IsInterned;
make them private and provide C# wrappers which do proper argument checking.
svn path=/trunk/mcs/; revision=2775
* icall.c: Rename "System::String::Intern" to "System::String::_Intern"
and "System::String::IsInterned" to "System::String::_IsInterned".
svn path=/trunk/mono/; revision=2774
* interp.c: add checks for more binary consistency.
Thu Feb 28 19:19:35 CET 2002 Paolo Molaro <[email protected]>
* icall.c: remove hacks for typebuilder. Added icall to create a
modified type from a tybebuilder.
* reflection.c: removed hacks for TypeBuilder. Create also a MonoImage
in mono_image_basic_init (). Added mono_reflection_setup_internal_class ()
to create a backing MonoClass for a TypeBuilder.
svn path=/trunk/mono/; revision=2771
* AssemblyBuilder.cs: call into the runtime to init some basic
assembly stuff. Reserve slot 1 of typedef table for .<Module>.
* ModuleBuilder.cs: call into the runtime if we need to create a
modief type, such as arrays, byref etc.
* TypeBuilder.cs: call into the runtime to create the MonoClass
representation for the type. Throw exceptions with not implemented
stuff.
svn path=/trunk/mcs/; revision=2770
* String.cs (TestCompare): Added a few tests.
(TestFormat): Please don't compare two strings with Assert (... == ...),
use AssertEquals instead - this gives you a better idea what went wrong
if the test fails.
svn path=/trunk/mcs/; revision=2768
* String.cs (_CompareChar): New internal function which compares two chars.
(_Compare): Provide an internal compare method which can do all sorts of
comparision and call it from all the Compare() methods. Also fixed a lot of
bugs here, this code now actually passes the testsuite.
svn path=/trunk/mcs/; revision=2767
* Convert.cs: Added the missing methods. The new class status page
kicks ass, it even found my typos! Woohoo!
(ConvertFromBase): Moved the Exception throwing in here and
removed the other occurances so it's all centralized now.
svn path=/trunk/mcs/; revision=2765
* class.c, class.h: more refactoring of class init.
Export mono_class_setup_mono_type() and mono_class_setup_parent().
svn path=/trunk/mono/; revision=2763
* BitConverterTest.cs: Test was trying to catch the wrong Exception.
The MSDN docs clearly say ArgumentOutOfRangeException, but that's
not what get's thrown.
* DoubleTest.cs: Get working against mscorlib reference.
svn path=/trunk/mcs/; revision=2762
* BitConverterTest.cs: Test was trying to catch the wrong Exception.
The MSDN docs clearly say ArgumentOutOfRangeException, but that's
not what get's thrown.
svn path=/trunk/mcs/; revision=2760
* x86/tramp.c: start handling of more complex marshaling stuff.
Thu Feb 28 12:33:41 CET 2002 Paolo Molaro <[email protected]>
* marshal.c, marshal.h: start of marshaling interface.
svn path=/trunk/mono/; revision=2759
* System.Text.RegularExpressions/*.cs: Put everything into namespace
Ximian.Mono.Tests.System.Text.RegularExpressions.
svn path=/trunk/mcs/; revision=2736
* System_test.build: Build new executable RunTests.System.exe which you can
use to run the tests on Linux.
* NameValueCollectionTest.cs: Split out BasicOperationTest into
BasicOperationTest.cs.
* AllTests.cs: Use namespace Ximian.Mono.Tests.System instead of
Ximian.Mono.Tests.
* DnsTest.cs: Put this into namespace Ximian.Mono.Tests.Systeam.
* NameValueCollectionTest.cs: Likewise.
* StringCollectionTest.cs: Likewise.
svn path=/trunk/mcs/; revision=2732
* class.c: do not free str, since we store it in the hash table.
* reflection.h: add label field to MonoILExceptionInfo.
* reflection.c: handle references to more than one assembly. Handle
case when there isn't a module created in the assembly.
svn path=/trunk/mono/; revision=2729
* MemoryStreamTest.cs
* StreamWriterTest.cs
* StringReaderTest.cs: Fix test bugs found by running against mscorlib.
AssertEquals() requires the expected and atual values to be the same
type if they are to be considered equal.
svn path=/trunk/mcs/; revision=2726
* HashtableTest.cs: make the second test class public. The was showing
as an error whe run against the mscorlib. Might be because of the
new NUnit that was just checked in.
svn path=/trunk/mcs/; revision=2724
* corlib_test.build: Don't link TheTests.cs into the dlls, renamed
RunTests.exe to RunTests.corlib.exe and link it against NUnitBase.dll.
svn path=/trunk/mcs/; revision=2721
* RunTests.cs: This is a simple test runner which is used when we
run the tests on Linux. It is linked into UNitBase.dll.
svn path=/trunk/mcs/; revision=2717
Imported NUnit 1.11.
* nunit.build: Added NAnt build file for NUnit. In addition to
NUnitConsole.exe and NUnitCore.dll, we also create a small
NUnitBase.dll which just contains the source files which are needed
to run the tests on Linux.
* makefile: Just call NAnt here.
* NUnitGUI.exe, NUnitTests.dll: Removed binaries.
svn path=/trunk/mcs/; revision=2716
* appdomain.c: exit with 1 on error.
* class.c: we already have the name in MonoClassField.
* image.c, image.h, metadata.c, pedump.c: use directly a pointer in
MonoStreamHeader instead of an offset of image->raw_metadata.
svn path=/trunk/mono/; revision=2708
* expression.cs: Special case the `null' object when trying to
auto-compute the type, as anything can be explicitly converted to
that.
Added test
svn path=/trunk/mcs/; revision=2701
fixed, plus:
2002-02-26 Miguel de Icaza <[email protected]>
* ecore.cs (Expression.ConvertExplicit): Bug fix, thanks for
spotting this Paolo.
(Expression.ImplicitNumericConversion): Perform comparissions of
the type using the underlying type in the case of an enumeration
rather than using the enumeration type for the compare.
Cope with the underlying == type case, which is not possible to
catch before.
(Expression.ConvertNumericExplicit): Perform comparissions of
the type using the underlying type in the case of an enumeration
rather than using the enumeration type for the compare.
svn path=/trunk/mcs/; revision=2696
* MartinTests.cs: New file. This contains all the tests which already
work on Linux.
* RunTests.cs: A small custom testrunner to run the tests on Linux.
* scan-tests.pl: Call this perl script with either MartinTests.cs or
AllTests.cs as argument and redirect the output the TheTests.cs - it'll
create a file which calls all the tests.
* TheTests.cs: This is automatically generated from scan-tests.pl but
needs some manual editing, so it's in CVS.
* corlib_test.build: In addition to the libraries, create an executable
called RunTests.exe which contains all the tests and the custom test
runner. You can run this executable on Windows to test things with
mscorlib or on Linux using the mono runtime.
svn path=/trunk/mcs/; revision=2695
* TimeZone.cs: Use an internal enum rather than magic numbers to access the
fields of the interncall GetTimeZoneData.
svn path=/trunk/mcs/; revision=2686
* cs-parser.jay (if_statement): Rewrote so that we can track the
location for the if statement.
* expression.cs (Binary.ConstantFold): Only concat strings when
the operation is "+", not everything ;-)
* statement.cs (Statement.EmitBoolExpression): Take a location
argument.
(If, While, Do): Track location.
* expression.cs (Binary.ResolveOperator): In the object + string
case, I was missing a call to ConvertImplicit
svn path=/trunk/mcs/; revision=2684
* DateTimeTest.cs: Added testcases for the parsers. Use the invariant
culture to run this test suite.
* TimeZoneTest.cs: Use the invariant culture to run this test suite.
svn path=/trunk/mcs/; revision=2673
* index: point to new location of mailing lists
* resources: fix bug (add missing </a>).
Thanks to Andreas Jellinghaus for pointing these out.
svn path=/trunk/mono/; revision=2667
* parameter.cs (Parameter.ExternalType): Take in extra DeclSpace and
Location arguments. Ensure we use RootContext.LookupType to do our work
and not try to do a direct Type.GetType and ModuleBuilder.GetType
* interface.cs (PopulateMethod): Handle the type of the parameter being
null gracefully.
* expression.cs (Invocation.BetterFunction): Handle the case when we
have a params method with no fixed arguments and a call is made with no
arguments.
* More tomorrow - have to go home now and study :-)
svn path=/trunk/mcs/; revision=2658
* DateTime.cs: Miguel already committed this, but there was still a
ChangeLog entry for this missing ....
We're now reusing functionality from TimeSpan, printing dates is
fully implemented, currently working on parsing.
svn path=/trunk/mcs/; revision=2654
* support.cs (InternalParameters.ParameterModifier): handle null
fixed parameters.
(InternalParameters.ParameterType): ditto.
* parameter.cs (VerifyArgs): Also check if the fixed parameter is
duplicating the name of the variable parameter.
(GetParameterByName): Fix bug where we were not looking up array
paramters if they were the only present (thanks Paolo!).
(GetParameterInfo): We only have an empty set of types if both
fixed and array are set to null.
(GetParameterInfo-idx): Handle FixedParameter == null
svn path=/trunk/mcs/; revision=2638
* reflection.c: set virtual and raw size of section correctly.
* threads.c: transfer domain information to newly created threads.
svn path=/trunk/mono/; revision=2633
* ToDoAssembly.cs: remove unused code
* ToDoNamespace.cs: using BindingFlags for GetMembers
* ToDoType.cs: throw exception if we encounter a member type
that we didn't expect. Also remove unused property.
svn path=/trunk/mcs/; revision=2631
* ICredentialLookup.cs: Added the GetCredential method to the
interface. The interface is named "ICredentials", should this file
be renamed?
* NetworkCredential.cs: Added to CVS. Need to investigate on how
GetCredential() works
svn path=/trunk/mcs/; revision=2617
* XmlTokenizedType.cs: Added to CVS.
* XmlUrlResolver.cs: Added to CVS with one TODO task.
2002-02-23 Duncan Mak <[email protected]>
* XmlQualifiedName.cs: Fixed ToString () and added the
operators (== and !=).
svn path=/trunk/mcs/; revision=2616
* jit.h, jit.c, emit-x86.c: Added a few statistics counters
and the --stats command line option to print them.
Fixed memory leak in arch_compile_method () when a method's code is
found in the cache. Fix magic trampoline to deal with static calls.
svn path=/trunk/mono/; revision=2614
* ppc/tramp.c (mono_create_method_pointer): basic delegates
implementation, it works for simple delegates now and I am already
pretty close to have it working for every delegates, but I am
going to sleep and finish it tomorrow?
svn path=/trunk/mono/; revision=2611
* Now it makes a decent looking status XML. It only has methods
and properties, but they seem to be correct. Not sure how
to handle the properties get_* set_* methods that show up. I'd
like to fold those into the properties, and remove them from
the methods. Next up is the rest of the Member Types.
svn path=/trunk/mcs/; revision=2608
* ChangeLog: Add the change log to this directory
* XmlQualifiedName.cs: Fixed compile errors so it would build. Still has
MonoTODO's
svn path=/trunk/mcs/; revision=2604
* sparc/tramp.c (mono_create_trampoline): Much tinkering to get
the opcodes more correct. Still needs a lot of work.
svn path=/trunk/mono/; revision=2602
* driver.cs (MainDriver):
Catch DirectoryNotFoundException when calling GetFiles.
(SplitPathAndPattern): Used to split the input specification into
a path and a pattern that we can feed to Directory.GetFiles.
svn path=/trunk/mcs/; revision=2595
* MonoType.cs: disable constructor.
* Object.cs: make GetType() an internalcall.
* Type.cs: added correct bindingflags to GetMethods ().
All such calls should be reviewed to use the correct flags.
svn path=/trunk/mcs/; revision=2591
* class.c: when instancing a class in a domain, load the default
vaules for static fields from the constant table. Fix System.Enum to
not be an enum.
* icall.c: implement Object::GetType() internalcall. Implemented
MonoField::GetValue() internalcall. Avoid SEGV in search_method().
Fixed checking of binding flags in find_members().
* metadata.c, metadata.h: introduce mono_metadata_type_hash().
* reflection.c: handle enumerations when writing to the constant
table. Use a different object cache for types.
svn path=/trunk/mono/; revision=2590
* Now shows some of the missing methods from the classes. It's
only showing one, so must be bug there somewhere. Need to
do other member types as well.
svn path=/trunk/mcs/; revision=2587
* statement.cs (Fixed): Implement the last case of the Fixed
statement (string handling).
* expression.cs (StringPtr): New class used to return a char * to
a string; Used by the Fixed statement.
* typemanager.cs: Add char_ptr_type. Add get_OffsetToStringData method.
svn path=/trunk/mcs/; revision=2580
* expression.cs (Binary.ResolveOperator): Remove redundant
MemberLookup pn parent type.
Optimize union call, we do not need a union if the types are the same.
(Unary.ResolveOperator): REmove redundant MemberLookup on parent
type.
Specialize the use of MemberLookup everywhere, instead of using
the default settings.
(StackAlloc): Implement stackalloc keyword.
* cs-parser.jay: Add rule to parse stackalloc.
* driver.cs: Handle /h, /help, /?
Added two more tests, added an error test.
svn path=/trunk/mcs/; revision=2579
* class.c, icall.c, metadata.c: better support for pointer types.
Create a class for them as suggested by dietmar. Fix TYPE_ARRAY class.
* reflection.c: Add support for getting custom attrs for properties
and simplify some code.
svn path=/trunk/mono/; revision=2565
* makefile: move corcompare to it's own directory to hold multiple
class files. still makes old corcompare for now. will remove that
soon.
svn path=/trunk/mcs/; revision=2563
* New corcompare directory. Split program into separate class
files and a driver. Creates XML file with missing and todo
classes. Not quite done with all member types, and also
there's a bug where it adds a todo class more than once.
This is a disaster recovery checkin.
svn path=/trunk/mcs/; revision=2562
* expression.cs (MakeByteBlob): Removed the hacks we had in place
before we supported unsafe code.
* makefile: add --unsafe to the self compilation of mcs.
2002-02-20 Miguel de Icaza <[email protected]>
* expression.cs (PointerArithmetic): New class that is used to
perform pointer arithmetic.
(Binary.Resolve): Handle pointer arithmetic
Handle pointer comparission.
(ArrayPtr): Utility expression class that is used to take the
address of an array.
(ElementAccess): Implement array access for pointers
* statement.cs (Fixed): Implement fixed statement for arrays, we
are missing one more case before we are done.
svn path=/trunk/mcs/; revision=2553
2002-02-20 Miguel de Icaza <[email protected]>
* expression.cs (Indirection): Implement EmitAssign and set the
ExprClass to Variable. This allows pointer dereferences to be
treated as variables, and to have values assigned to them.
* ecore.cs (Expression.StoreFromPtr): New utility function to
store values dereferencing.
2002-02-20 Miguel de Icaza <[email protected]>
* unsafe-1.cs: Extend test.
svn path=/trunk/mcs/; revision=2549
* decl.cs (CheckMethodAgainstBase): Do not allow overriding if
the parent implementation is sealed.
* ../errors/cs0239.cs : Add.
* attribute.cs (ApplyAttributes): Handle Modulebuilders too.
* typemanager.cs (unverifiable_code_type): Corresponds to
System.Security.UnverifiableCodeAttribute. We need to emit this for modules
which have unsafe code in them.
* rootcontext.cs (EmitCode): Emit the above attribute when we are in an
unsafe context.
svn path=/trunk/mcs/; revision=2548
* icall.c: change getToken () and add custom attribute GetBlob()helper
method.
* reflection.h: add custom attrs array to the reflection builder structures.
* reflection.c: encode and emit custom attributes for all the relevant
reflection objects. Cache fieldref and methodref tokens. Change
mono_image_create_token() interface to take a MonoDynamicAssembly.
More complete custom attributes decoder. Load custom attributes for
Assembly, Field, Method and Constructor objects, too. Make the
returned array an Attribute[] one, not object[]. Added
mono_reflection_get_custom_attrs_blob() to encode the arguments of a
custom attribute constructor.
Wed Feb 20 22:18:40 CET 2002 Paolo Molaro <[email protected]>
* interp.c: more complete runtime_invoke () implementation.
Fixed castclass/isinst to work correctly with arrays.
svn path=/trunk/mono/; revision=2542
* acconfig.h:
* configure.in: Always build without cygwin support on windows
2002-02-20 Dick Porter <[email protected]>
* io-layer.h: Always build without cygwin support on windows
2002-02-20 Dick Porter <[email protected]>
* icall.c:
* rawbuffer.c:
* socket-io.c: Windows portability fixes (sometimes just ifdeffing
problem code out for now).
2002-02-20 Dick Porter <[email protected]>
* Makefile.am:
* wrapper.c: Windows portability fixes (sometimes just ifdeffing
problem code out for now).
svn path=/trunk/mono/; revision=2536
* cs-tokenizer.cs: Make tokenizer accept pre-processor directives
on any column (remove the old C-like limitation).
* rootcontext.cs (EmitCode): Emit any global attributes.
(AddGlobalAttributes): Used to keep track of assembly attributes.
* attribute.cs (ApplyAttributes): Support AssemblyAttributes.
* cs-parser.jay: Add support for global attributes.
svn path=/trunk/mcs/; revision=2530
* expression.cs (Indirection): New helper class. Unary will
create Indirection classes to be able to implement the
IMemoryLocation interface on it.
2002-02-16 Miguel de Icaza <[email protected]>
* cs-parser.jay (fixed_statement): reference the right statement.
* statement.cs (Fixed.Emit): Finish implementing the fixed
statement for the &x case.
svn path=/trunk/mcs/; revision=2517
* MonoCustomAttrs.cs: hooks to get the custom attributes from the
runtime.
* MonoType.cs: Implemented custom attributes methods.
svn path=/trunk/mcs/; revision=2515
* x86/tramp.c: avoid pointer arthmetric (pointed out by Serge).
Tue Feb 19 20:20:15 CET 2002 Paolo Molaro <[email protected]>
* dump.c: the prolog is before each arg in the custom attribute blob.
svn path=/trunk/mono/; revision=2513
* ArrayList.cs: Add MonoTODO's where necessary. Fix bugs discovered
by Bucky's tests. Implement a couple of things that were left undone.
svn path=/trunk/mcs/; revision=2503
* Int64Test.cs: One array was giving us trouble. Not sure why, but
it's related to the number of elements in an Array. For short Arrays
the compiler doesn't use the PrivateImplmentationDetails struct,
but for longer ones it does. That's when our corlib fails. I paired
down the array for now.
svn path=/trunk/mcs/; revision=2502
* ArrayListTest.cs: Add a small assert for a bug that I found and fixed
in ArrayList. Make sure it doesn't come up again.
svn path=/trunk/mcs/; revision=2501
* emit-x86.c (arch_compile_method): add shared code to mono_root_domain
* class.c (mono_class_vtable): runtime init the class when we
allocate static class data.
svn path=/trunk/mono/; revision=2500
* appdomain.c (mono_domain_transfer_object): impl. hack for Arrays
and String - but we will need generic marshalling support in the
future.
* object.c (mono_string_new_utf16): bug fix: use char[] instead of
String[].
svn path=/trunk/mono/; revision=2494
* mono/tests/Makefile.am: added small test library for pinvoke
testing
* mono/tests/libtest.c (mono_test_many_int_arguments): new file,
new function to test pinvoke
svn path=/trunk/mono/; revision=2486
* jit.c (mono_analyze_stack): optimize LDSFLD/STSFLD for domain
specific code.
(mono_analyze_stack): use MB_TERM_LDELEMA to perform bound check
svn path=/trunk/mono/; revision=2476
* x86.brg: do not encode exception objects into the instruction
stream, because they are domain dependend. Use
arch_get_throw_exception_by_name() instead;
* jit.c (mono_analyze_stack): imp. LDSTR for shared code
svn path=/trunk/mono/; revision=2475
* corcompare.cs: Reorganized into collaberating classes to analyze
and generate reports. Still needs to find the MonoTODO's, and
has a little more prototype code in there, but it's almost done.
* makefile: output XML file in the tools directory for now.
svn path=/trunk/mcs/; revision=2474
* TimeZone.cs: Applied the rest of Ajay's patch for
IsDaylightSavingTime. Thanks a lot for the nice explanation of how
it works!
svn path=/trunk/mcs/; revision=2465
x86, modified to check for NULL text to avoid branching in
generated code
(calculate_sizes): updated for string retval changes
(emit_call_and_store_retval): updated for string retval
svn path=/trunk/mono/; revision=2461
* FileDialogPermissionAccess.cs: Add in namespace declaration, so
that this one little unique enum wouldn't show up in the System
namespace when we ildasm corlib.dll ;-) Oops, my bad.
svn path=/trunk/mcs/; revision=2457
* Convert.cs: Near-complete implementation of Convert.cs
Added all the To* methods taking (object) and
(object, IFormatProvider) as parameters.
Added [CLSCompliant (false)] attributes to methods dealing with
unsigned types.
Added the missing section on converting to and from DateTime. Only
6 missing methods, all marked with MonoTODOs. Will tackle them later.
svn path=/trunk/mcs/; revision=2456
* icall.c (ves_icall_System_Enum_ToObject): in case of big endian
and s2 > s1, just copy lower bytes to be compatible with little
endian (i.e. 64bit value & 0xffffffff --> 32bit value)
svn path=/trunk/mono/; revision=2454
* wrapper.c (mono_wrapper_fstat): The MonoWrapperStat namespace is
mst_ now, so update this code. Also fix a copy/paste-o that
assigned st.st_ctime to buf->mst_mtime.
(mono_wrapper_stat): Same here.
* genwrapper.pl: Solaris does some nasty macro hadckery action for
st_[a,c,m]time and so lets namespace our wrapper members as
mst_[a,c,m]time to avoid namespace problems.
svn path=/trunk/mono/; revision=2453
* TimeZone.cs: patch from Ajay Kumar Dwivedi ([email protected]) to
make IsDaylightSavingTime (DateTime) call
IsDaylightSavingTime (DateTime, DaylightTime).
Added internal class CurrentTimeZone from Ajay. It needs more work
to fill in the appropriate internal calls.
svn path=/trunk/mcs/; revision=2451
* unicode.c (ves_icall_iconv_new_encoder): decide on big_endian,
force big_endian to be 1 for big endian machines
(ves_icall_iconv_new_decoder): ditto
svn path=/trunk/mono/; revision=2448
* configure.in: Add checks for SOL_IP, SOL_TCP, IP_PKTINFO,
IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. Also check for struct
ip_mreqn.
svn path=/trunk/mono/; revision=2447
* socket-io.c (convert_sockopt_level_and_name): If the system
doesn't define SOL_IP or SOL_TCP, get them by hand using
getprotobyname() and caching the values (because this could be a
slow operation).
(ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
Don't attempt to add or drop memberships unless the system
supports it. Also use the appropriate struct when the system does
support it. Ie, not all systems have struct ip_mreqn so use struct
ip_mreq when appropriate.
svn path=/trunk/mono/; revision=2446
* socket-io.c (convert_sockopt_level_and_name): If the system
doesn't define SOL_IP or SOL_TCP, get them by hand using
getprotobyname() and caching the values (because this could be a
slow operation).
(ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
Don't attempt to add or drop memberships unless the system
supports it.
svn path=/trunk/mono/; revision=2445
* interp.c (ves_exec_method): test type of sp [-1] instead of sp
[0], because sp [-1] is the value going to be shifted, fixed in
CEE_SHL, CEE_SHR, CEE_UN opcodes)
svn path=/trunk/mono/; revision=2443
* emit-x86.c: handle unreachable code. Eliminate some unneeded
malloc() calls.
* jit.c: handle unreachable code. Move setting of mono_end_of_stack to
main(). Add --compile classname and --ncompile num command line
options to do performance evaluation of the jitter (and help
debugging).
svn path=/trunk/mono/; revision=2441
* interp.c: use strrchr instead of rindex. use _isnan and _finite on
win32 systems.
Fri Feb 15 15:06:33 CET 2002 Paolo Molaro <[email protected]>
* socket-io.c: use g_snprintf() instead of snprintf.
svn path=/trunk/mono/; revision=2424
* interp.c (ves_exec_method): replace
'g_assert (sp->type = VAL_VALUETA)' with
'g_assert (sp->type == VAL_VALUETA)' otherwise
the assert always passes. FIXME: should the test have been !=?
svn path=/trunk/mono/; revision=2418
* reflection.c (mono_param_get_objects): Cast second argument to
mono_method_get_param_names to a const char** to silence the
compiler warning.
* appdomain.c (mono_domain_assembly_open): Put parens around the
truth statement in the for-loop.
* unicode.c (iconv_convert): Got rid of a compiler warning about
int i being unused when the system has a new iconv.
(iconv_get_length): Same.
svn path=/trunk/mono/; revision=2417
* image.c (load_class_names): Cast the second argument to
g_hash_table_insert() to char* to hush compiler warnings about the
arg being a const.
(mono_image_open): Same here.
svn path=/trunk/mono/; revision=2416
* socket-io.c: Don't conditionally include sys/filio.h or
sys/sockio.h here anymore since we now get them from
io-layer/io-layer.h
(inet_pton): If the system doesn't support inet_aton, implement
using inet_addr and also #define INADDR_NONE if it isn't defined
by the system.
svn path=/trunk/mono/; revision=2415
* metadata.c, metadata.h: added function to get packing and size info
of a typedef.
* reflection.h, reflection.c: handle field RVA data. Save info about
the table layout if needed. Assign typedef indexes to all the types
before dumping the info about them to avoid forward reference problems.
svn path=/trunk/mono/; revision=2406
* corcompare.cs: Adding stuff to collect all the missing and todo
information need to generate nice looking HTML pages. Not quite
done and needs some re-org, but Duncan can take a look.
* sample.xml: an example of how the XML will look that corcompare
will generate. Can be used to start working on the XSLT.
svn path=/trunk/mcs/; revision=2402
* socket-io.c: conditionally include sys/filio.h and sys/sockio.h
for FIONBIO, FIONREAD and SIOCATMARK.
(ves_icall_System_Net_Dns_GetHostByAddr_internal): SunOS doesn't
define INADDR_NONE and besides, inet_addr() is deprecated and
should not be used. Use inet_pton() instead - it also has the
added bonus that it can easily handle IPv6 addresses as well.
(inet_pton): Implement using inet_aton() ifndef HAVE_INET_PTON.
svn path=/trunk/mono/; revision=2395
* configure.in: Add checks to see if we need to link to libsocket,
libnsl, and/or librt. Also check for inet_pton and inet_aton.
svn path=/trunk/mono/; revision=2393
* driver.cs (GetSystemDir): Compute correctly the location of our
system assemblies. I was using the compiler directory instead of
the library directory.
svn path=/trunk/mcs/; revision=2392
* expression.cs (BetterFunction): Put back in what Miguel commented out
since it is the correct fix. The problem is elsewhere ;-)
(IsParamsMethodApplicable): Fix bug where we were not checking that the fixed
parameters of the parms method are themselves compatible or not !
(StandardConversionExists): Fix very dangerous bug where we were forgetting
to check that a class implements an interface before saying that an implicit
conversion was allowed. Use ImplementsInterface to do the checking.
svn path=/trunk/mcs/; revision=2390
The problem was with my understanding of the .override keyword.
2002-02-13 Miguel de Icaza <[email protected]>
* class.cs (Method.Define): Track whether we are an explicit
implementation or not. And only call DefineMethodOverride if we
are an explicit implementation.
(Property.DefineMethod): Ditto.
(IndexerAccess.DefineMethod): ditto.
svn path=/trunk/mcs/; revision=2389
* mono-mutex.[c,h]: New source files that thinly wrap all pthread
functions that take pthread_mutex_t and/or pthread_mutexattr_t
arguments for the sake of portability. Implements recursive
mutexes and pthread_mutex_timedlock.
* critical-sections.c:
* events.c:
* handles.c:
* mutexes.c:
* semaphores.c:
* threads.c:
* timed-thread.c:
* wait.c: Use the mono-mutex wrapper portability functions/macros.
* pthread-compat.[c,h]: Replaced by mono-mutex.[c,h]
svn path=/trunk/mono/; revision=2376
* acconfig.h: #undef USE_MONO_MUTEX
* configure.in: If the system pthread implementation is lacking,
default to using mono-mutex.
svn path=/trunk/mono/; revision=2375
* jit.c (arch_allocate_var): Only assert that the alignment is
at least 32-bits aligned, not always 32-bits aligned (for I8 for example).
svn path=/trunk/mono/; revision=2371
* SerializationBinder.cs: Implemented.
* SerializationEntry.cs: Implemented.
* SerializationInfo.cs: Fixed the get portion of the AssemblyName
property. Implemented the FullTypename property.
svn path=/trunk/mcs/; revision=2361
* CultureInfo.cs: Added the Calendar property to make the TimeZone
class build. It's marked as MonoTODO.
2002-02-12 Duncan Mak <[email protected]>
* TimeZone.cs: Implemented and added to CVS.
svn path=/trunk/mcs/; revision=2357
* PathTooLongException.cs: put it in the correct namespace
* EndOfStreamException.cs: put it in the correct namespace
svn path=/trunk/mcs/; revision=2351
* hacks.h: check against redefining preprocessor symbol.
* interp.c: fix profile info to return more sensible results.
Tue Feb 12 14:03:42 CET 2002 Paolo Molaro <[email protected]>
* class.c: fix thinko in mono_class_from_type().
svn path=/trunk/mono/; revision=2348
echo"This is a list of pending classes, and links to their documentation on MSDN.Microsoft.com<p><p>" > pending-classes
for i in `cat pending-classes.in`;dox=`echo$$i | sed s/\\\.//g`;link=`echo http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrf@@@ClassTopic.asp | sed "s/@@@/$$x/"`;echo" <a href=\"$$link\">$$i</a><br>" >> pending-classes;done
pending-classes:
#pending-classes: pending-classes.in Makefile.am
# echo "This is a list of pending classes, and links to their documentation on MSDN.Microsoft.com<p><p>" > pending-classes
# for i in `cat pending-classes.in`; do x=`echo $$i | sed s/\\\.//g`; link=`echo http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrf@@@ClassTopic.asp | sed "s/@@@/$$x/"`; echo " <a href=\"$$link\">$$i</a><br>" >> pending-classes; done
something that would help tremendously would be to help with
small duties in the project that need to be addressed.
You can see what needs to be done in the class libraries <a href="class-status.html">here</a>
** To start contributing
As a programmer, you can contribute in three different scenarios to Mono:
<ul>
* If you only have Linux/Unix.
* If you only have Windows.
* If you have both Linux and Windows.
</ul>
You might also want to check our <a href="#setup">common
setups</a> section that describes some common setups that people
use while working on Mono.
*** Contributing to the class library, regression tests or the compiler
This only requires Windows currently.
To start developing classes or to contribute to the compiler,
you only need Windows and the .NET Framework 1.0 SDK. Please notice
that you do not need Visual Studio (although you can use it if
you want).
you want). The .NET Framework SDK requires some version of
Windows XP or Windows NT. If you are running Windows 98, 95
or Me, you could use instead the <a
href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/829/msdncompositedoc.xml">.NET Redist package</a>, but it
lacks the documentation browser and the ildasm program (C#, VB, JScript and IL
assembler are included).
You can get it <a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a>
If you are new to .NET, writing regression tests is a good way
of starting to contribute: it will help you get used to C# as
well as getting comfortable with the .NET APIs.
This helps because at this point you might be the best
qualified person to fix a problem found by the regression
test, or you might have a new class to implement in the .NET
world that only has a test suite.
To get started writing tests see the <a href="testing.html">Test Suite</a>
section.
*** Contributing to the runtime engine
This only requires Linux, currently some tasks are easier if you
have access to Windows as well.
Here are a few things you can do:
<ul>
* Port the runtime to other architectures.
* Port the runtime to other operating systems.
* Finish the IL code verifier in the runtime.
* Hack the JIT, improve the code generator, add new
pattern rules, improve the register allocator.
* Implement the debugging interfaaces
</ul>
** Bug reporting
If you find bugs in Mono, please make sure you enter a bug
@@ -36,6 +87,8 @@
http://bugzilla.ximian.com</a> and enter bug reports against
your favorite component (Mono, Runtime, C# compiler).
You can review the list of current bugs by going <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&product=Mono%2FMCS&product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query">here</a>
** Small tasks
A few smaller tasks are here, dropped in no particular order:
@@ -71,7 +124,52 @@
http://www.oreally.com/catalog/dotnetfrmess</a>)
</ul>
* Special note
<a name="setup">
* Common Setups
People running both Linux and Windows while contributing to
Mono use a number of tricks to increase their productivity.
Scenarios:
<ul>
* <b>Linux host and Windows host</b>
The Windows file system is shared (right click on
your hard drive icon, and select sharing, allow this
to be shared).
The Windows machine has the required build tools
(cygwin, and the .NET framework). On the Windows
machine, you want to setup the ssh server (run the
ssh-host-config program to configure your ssh) and
run it (from a cygwin terminal, type: /usr/sbin/sshd).
From the Linux side, you want to mount the Windows
file system, using something like this:
<tt><pre>
mount -t smbfs -o uid=miguel,username="Miguel de Icaza" "//quack/c$" /mnt
</pre></tt>
In the above example, my Linux user name is
`miguel', and this will allow this user to have
read/write access to the share.
The host name is `quack', and the name of the share
is `c$' (that is the C: partition).
The file system is accessible on /mnt.
You can perform your cvs update and cvs commits from
the /mnt directory, and run Emacs or your favorite
Linux text editor on the Unix side in this way.
Then from another terminal, you can ssh into your
Windows box using ssh, like this: ssh "Miguel de Icaza@quack"
</ul>
* Special Note
If you have looked at Microsoft's implementation of .NET or
their shared source code, you may not be able to contribute
completely for the first time! The resulting image still contains
some errors, but the whole compiler process goes now.
We are very close to have a complete self hosting environment now.
Mono is temporarly using the Bohem GC garbage collector while
we deploy the more advanced ORP one.
** Mar 5, 2002
The CVS repository <a href="http://cvs.hispalinux.es/cgi-bin/cvsweb/?hidenonreadable=1&f=u&logsort=date&sortby=file&hideattic=1&cvsroot=Mono">can be browsed</a>
Jason has got an incredible amount of work on the Xml
classes during the weekend, and Gaurav is very close to have
the complete System.Web.UI.WebControls namespace implemented.
Martin and Duco have been killing bugs by using the recently
revamped regression test suite.
Piers has updated our <a href="class-status.html">class
status</a> page again, with even more information available.
The C# compiler has full constant folding implemented now and Ravi
killed bugs of bugs in the <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&product=Mono%2FMCS&product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query">Mono Bug List</a>
** Mar 1, 2002
RPMs of Mono 0.9 are available at <a href="http://mono.baselabs.org/#download">mono.baselabs.com</a>
The <a href="http://msdn.microsoft.com/net">Microsoft.NET site.
The <a href="http://msdn.microsoft.com/net">Microsoft.NET site.</a>
The Microsoft .NET Framework 1.0 can be downloaded <a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a>
@@ -86,38 +86,6 @@
You can also get this information if you install the Beta2
/// Represents a parameter to a Command object, and optionally, its mapping to DataSet columns; and is implemented by .NET data providers that access data sources.
/// Represents a parameter to a Command object, and optionally, its mapping to DataSet columns; and is implemented by .NET data providers that access data sources.
Loaded 100 of 1114 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.