Compare commits

...
5630 Commits
Author SHA1 Message Date
Miguel de Icaza 62121afbb2 2009-08-13 Atsushi Enomoto <[email protected]>
* Makefile : update profile check.

2008-06-10  Atsushi Enomoto  <[email protected]>

	* System.Json.dll.sources, Makefile : initial checkin.

svn path=/branches/monotouch-2-0/mcs/; revision=154611
2010-04-01 06:35:44 +00:00
Miguel de Icaza 2d306a1f66 Fix this
svn path=/branches/monotouch-2-0/mcs/; revision=154609
2010-04-01 06:03:01 +00:00
Gonzalo Paniagua Javier 025392cef5 fix the build
svn path=/branches/mono-2-6/mcs/; revision=152374
2010-02-24 17:04:27 +00:00
Zoltan Varga 470de7a1c1 2010-02-24 Zoltan Varga <[email protected]>
* debugger-agent.c (notify_thread): Skip terminated threads, since their tls
	data is not freed yet. Fixes #582460.

svn path=/branches/mono-2-6/mono/; revision=152325
2010-02-24 02:19:54 +00:00
Zoltan Varga 3bad19b21b 2010-01-22 Zoltan Varga <[email protected]>
* configure.in: Disable the solaris tar check on !solaris platforms.

svn path=/branches/mono-2-6/mono/; revision=152314
2010-02-24 00:55:55 +00:00
Zoltan Varga 76eb677dc0 Fix the arm build.
svn path=/branches/mono-2-6/mono/; revision=152313
2010-02-24 00:53:03 +00:00
Gabriel Burt 3c7b9400a7 2010-02-23 Gabriel Burt <[email protected]>
* Normalization.cs: Implement algorithmic Hangul decomposition; Calling
	string.Normalize on Korean characters now works properly (bnc#480152).
	This reduces the number of errors in 'make test' from 27k to 4.8k.

	* StringNormalizationTestSource.cs:
	* Makefile: Use the local, working copy of Normalization etc,so as to make
	modifying Normalization.cs and then testing your changes with 'make test'
	possible.  Also, fix building/running of tests, patch by Alexander
	Kojevnikov.

svn path=/branches/mono-2-6/mcs/; revision=152307
2010-02-23 22:13:59 +00:00
Gonzalo Paniagua Javier 2f66446b3b 2010-02-23 Gonzalo Paniagua Javier <[email protected]>
* ResXResourceReader.cs: handle resource file comments.
	Patch by Jeffrey Alvarez. Bug #582440 fixed.


svn path=/branches/mono-2-6/mcs/; revision=152306
2010-02-23 22:12:10 +00:00
Rodrigo Kumpera cd97f6bd73 2010-02-23 Rodrigo Kumpera <[email protected]>
* verify.c (do_invoke_method): Better error message.

svn path=/branches/mono-2-6/mono/; revision=152299
2010-02-23 20:33:13 +00:00
Sebastien Pouliot f6d21af7be 2010-02-23 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Accept and ContentType properties do not
	behave like Silverlight 2.0 (not related to browser/client stacks)
	* WebHeaderCollection_2_1.cs: Range is now accepted in SL3 (not
	related to browser/client stacks)
	* WebRequest_2_1.cs: Fix registration to work on domains (new) 
	and scheme (more correctly wrt new unit tests).
	[Backport r152275]


svn path=/branches/mono-2-6/mcs/; revision=152276
2010-02-23 16:26:40 +00:00
Zoltan Varga e66f1611cf 2010-02-23 Zoltan Varga <[email protected]>
* debugger-agent.c: Add support for the caught/uncaught flags on exception
	event requests. Bump protocol minor version.

svn path=/branches/mono-2-6/mono/; revision=152234
2010-02-23 00:24:20 +00:00
Zoltan Varga d8a5b1c137 2010-02-20 Zoltan Varga <[email protected]>
* VirtualMachine.cs (CreateExceptionRequest): Add an overload taking two
	booleans which specify whenever to report caught/uncaught exceptions.

	* ExceptionRequest.cs: Add public properties for them.

	* Connections.cs: Pass the caught/uncaught flags to the debuggee. Bump protocol
	minor version.

svn path=/branches/mono-2-6/mcs/; revision=152232
2010-02-23 00:22:38 +00:00
Zoltan Varga 486abe26fc 2010-02-11 Zoltan Varga <[email protected]>
* AssemblyMirror.cs: Add missing GetType () overloads.

svn path=/branches/mono-2-6/mcs/; revision=152231
2010-02-23 00:22:09 +00:00
Zoltan Varga ff418a93b5 2010-02-22 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_long_opts): Handle OP_LCONV_TO_OVF_I8 here too.

svn path=/branches/mono-2-6/mono/; revision=152215
2010-02-22 22:16:45 +00:00
Zoltan Varga 57e35de6bf 2010-02-22 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_opcode): Handle OP_LCONV_TO_OVF_I8. Fixes
	#581950.

	* iltests.il.in: Add a test.

svn path=/branches/mono-2-6/mono/; revision=152211
2010-02-22 22:11:51 +00:00
Rodrigo Kumpera a1432cfac2 2010-02-22 Rodrigo Kumpera <[email protected]>
* mini.c (mono_method_check_inlining): Use
	* !mono_method_get_header_summary
	instead of mono_method_get_header as it doesn't decode locals
	so the called method can have unresolved dependencies that will
	only be satisfied after the current method is JIT'd.

	Fixes #550968.

svn path=/branches/mono-2-6/mono/; revision=152210
2010-02-22 21:54:47 +00:00
Rodrigo Kumpera bdc5f6785c 2010-02-22 Rodrigo Kumpera <[email protected]>
* metadata.c: Add mono_method_get_header_summary which returns
	* minimal information about the header of a method. This is the
	information used by the inline oracle to reject methods.

	This method doesn't decode local variables and doesn't cache
	it's result, so it should cause a minimal reduction in memory usage.

	* metadata-internals.h: Add MonoMethodHeaderSummary structure
	and mono_method_get_header_summary.

svn path=/branches/mono-2-6/mono/; revision=152209
2010-02-22 21:54:38 +00:00
Carlos Alberto Cortez faf43f0c32 2010-02-22 Carlos Alberto Cortez <[email protected]>
* MemoryStreamTest.cs: Activate ZeroingOnExpandTest as we have fixed
	this issue.


svn path=/branches/mono-2-6/mcs/; revision=152172
2010-02-22 11:15:03 +00:00
Carlos Alberto Cortez d2a304d5bf 2010-02-21 Carlos Alberto Cortez <[email protected]>
* MemoryStream.cs: Don't clear the bytes beyond Length when shrinking
	it. Instead just save the related information for it and do it when
	Length grows and touchs that dirty region. Refactor the code where
	needed to avoid duplication as well.
	Fixes #327053.


svn path=/branches/mono-2-6/mcs/; revision=152171
2010-02-22 10:59:02 +00:00
Geoff Norton 8bd3d09147 Lets ensure we generate some types in AOT when using these valuetypes for MonoTouch
svn path=/branches/mono-2-6/mcs/; revision=152149
2010-02-21 20:52:53 +00:00
Geoff Norton 8d88e99d65 2010-02-20 Geoff Norton <[email protected]>
* XmlInputStream.cs: Disable this codepath on monotouch.  Fixes
        #562155

svn path=/branches/mono-2-6/mcs/; revision=152142
2010-02-20 20:25:37 +00:00
Geoff Norton 6e191b6bdc Really add cairo to the monotouch build
svn path=/branches/mono-2-6/mcs/; revision=152133
2010-02-20 19:00:19 +00:00
Geoff Norton 8b2e655d97 remove some spew
svn path=/branches/mono-2-6/mcs/; revision=152132
2010-02-20 19:00:15 +00:00
Geoff Norton 9052c1ffe9 Add Mono.Cairo to monotouch
svn path=/branches/mono-2-6/mcs/; revision=152131
2010-02-20 19:00:11 +00:00
Geoff Norton 1269787a6c Disable entry points that are not available on the iphone
svn path=/branches/mono-2-6/mcs/; revision=152130
2010-02-20 19:00:07 +00:00
Geoff Norton 00a90d8627 Ensure we start the WWAN for web connections in MonoTouch
svn path=/branches/mono-2-6/mcs/; revision=152129
2010-02-20 19:00:02 +00:00
Ankit Jain 2b1392c364 Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2010-02-19  Ankit Jain  <[email protected]>

	* SolutionParser.cs (GetAllProjectFileNames): New.
	* Parameters.cs (ParseArguments): When no project file is specified,
	if the cur dir has a single sln and >1 project files, and all the
	project files are referenced by the sln, the pick the sln.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2010-02-10  Ankit Jain  <[email protected]>

	* GenerateResource.cs (CompileResourceFile): Check File.Exists
	for source file.
	Don't build if the target is newer than the source file.
	(Execute): Continue building all the resources, even if there
	are failures for some files.

2010-02-10  Ankit Jain  <[email protected]>

	Fix bug #558739.
	* GenerateResource (Resgen): New. Internal task to run resgen
	with MONO_IOMAP=drive .
	(Execute): Use the new Resgen task to compile the resources.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2010-02-19  Ankit Jain  <[email protected]>

	* ImportTest.cs (TestMissingImport*): Add new tests for missing
	import projects.

2010-02-11  Ankit Jain  <[email protected]>

	* ImportTest.cs (Add1): Fix test on windows.

In class/Microsoft.Build.Engine/Test/various:
2010-02-19  Ankit Jain  <[email protected]>

	* Items.cs (TestItemsWithWildcards): Check for RecursiveDir metadata also.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2010-02-19  Ankit Jain  <[email protected]>

	* BuildItem.cs: Track api changes.
	(SetMetadata): Allow RecursiveDir to be set, this is set by
	DirectoryScanner.
	* DirectoryScanner.cs (ProcessInclude): Set RecursiveDir metadata.

2010-02-19  Ankit Jain  <[email protected]>

	* Import.cs (Evaluate): Add param @ignoreMissingImports.
	* Project.cs (Load*): Add overloads with param @projectLoadSettings.
	(Log*): Mark internal.
	* ProjectLoadSettings.cs: New.

In class/Microsoft.Build.Engine:
2010-02-19  Ankit Jain  <[email protected]>

	* Microsoft.Build.Engine.dll.sources: Add ProjectLoadSettings.cs .

In class/Microsoft.Build.Utilities:
2010-02-10  Ankit Jain  <[email protected]>

	* Microsoft.Build.Utilities.dll.sources: Add ProcessStringDictionary.cs
	from class/System/System.Collections.Specialized . This is required as
	the StringDictionary in ToolTask, used for EnvironmentOverrides, is
	inadequate, because environment vars are case sensitive on unix.

In class/Microsoft.Build.Utilities/Mono.XBuild.Utilities:
2010-02-19  Ankit Jain  <[email protected]>

	* ReservedNameUtils.cs (GetReservedMetadata): Add dictionary param
	@metadata. Use this to check for existing value of "RecursiveDir"
	metadata, use that if present.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2010-02-19  Ankit Jain  <[email protected]>

	* TaskItem.cs: Track api changes.

2010-02-10  Ankit Jain  <[email protected]>

	* ProcessService.cs (globalEnvironmentVariablesOverride): Use
	ProcessStringDictionary instead of StringDictionary.
	ProcessStringDictionary retains the case of the keys (env vars
	here).
	* ToolTask.cs (environmentOverride): Likewise.

2010-02-10  Ankit Jain  <[email protected]>

	* ToolTask.cs (ExecuteTool): Use the virtual method
	Standard*LoggingImportance, instead of the underlying field.
	(LogEventsFromTextOutput): Use @importance argument for LogMessage.
	(LogToolCommand): Remove MonoTODO.


svn path=/branches/mono-2-6/mcs/; revision=152128
2010-02-20 18:45:13 +00:00
Zoltan Varga bc369663df Fix previous change.
svn path=/branches/mono-2-6/mono/; revision=152127
2010-02-20 18:42:56 +00:00
Zoltan Varga 8a4c45f8bd 2010-02-20 Zoltan Varga <[email protected]>
* mini.c (mono_jit_create_remoting_trampoline): Call
	mono_create_specific_trampoline () instead of
	mono_arch_create_specific_trampoline ().

	* mini-trampolines.c tramp-arm.c: Disable more stuff when DISABLE_JIT is set.

svn path=/branches/mono-2-6/mono/; revision=152125
2010-02-20 18:41:32 +00:00
Geoff Norton 83f260d33f 2010-02-20 Geoff Norton <[email protected]>
* aot-runtime.c: Ensure we dont leak a held lock when unwinding exceptions.

svn path=/branches/mono-2-6/mono/; revision=152121
2010-02-20 17:30:44 +00:00
Zoltan Varga bab238310e 2010-02-20 Zoltan Varga <[email protected]>
* debugger-agent.c (mono_debugger_agent_handle_exception): Receive two contexts,
	one for the throw and one for the catch. Mark uncaught exceptions by a NULL
	CATCH_TXT. Send normal exception events for unhandled exceptions too.
	(mono_debugger_agent_handle_unhandled_exception): Remove this, merged into
	handle_exception.

svn path=/branches/mono-2-6/mono/; revision=152109
2010-02-19 23:25:25 +00:00
Zoltan Varga 7b17b1d503 2009-10-20 Zoltan Varga <[email protected]>
* debug-helpers.c (dis_one): Fix the disassembly of empty strings when
	NO_UNALIGNED_ACCESS is defined.

svn path=/branches/mono-2-6/mono/; revision=152103
2010-02-19 22:04:39 +00:00
Zoltan Varga 819b00182d 2009-09-25 Zoltan Varga <[email protected]>
* debug-helpers.c (dis_one): Avoid unaligned accesses on platforms where that is
	a problem.

svn path=/branches/mono-2-6/mono/; revision=152102
2010-02-19 22:04:15 +00:00
Rodrigo Kumpera 5e5f3b817f 2010-02-19 Rodrigo Kumpera <[email protected]>
* mono-basic-block.c (mono_opcode_value_and_size): Use pointer
	variant of overflow checking function.

svn path=/branches/mono-2-6/mono/; revision=152086
2010-02-19 19:30:21 +00:00
Alan McGovern bcfff97c74 2010-02-19 Alan McGovern <[email protected]>
* System.IO.Packaging/PackUriHelper.cs: Commit a fix for #570648
        so that PackUris can be combined properly.


svn path=/branches/mono-2-6/mcs/; revision=152070
2010-02-19 13:31:54 +00:00
Marek Habersack 96ed7743f6 Backport r152060
svn path=/branches/mono-2-6/mcs/; revision=152061
2010-02-19 11:17:30 +00:00
Paolo Molaro fdb75c789b Fri Feb 19 09:05:36 CET 2010 Paolo Molaro <[email protected]>
* Decimal.cs: fixed Remainder (bug #576341).


svn path=/branches/mono-2-6/mcs/; revision=152051
2010-02-19 08:34:34 +00:00
Marek Habersack 0f73f9304c Backport of r152045
svn path=/branches/mono-2-6/mcs/; revision=152046
2010-02-19 03:03:16 +00:00
Marek Habersack d57ec56d6e Fix for test failing in 1.1
svn path=/branches/mono-2-6/mcs/; revision=152044
2010-02-19 02:35:23 +00:00
Marek Habersack 6c7a35beab Backport of r152040
svn path=/branches/mono-2-6/mcs/; revision=152041
2010-02-19 01:51:32 +00:00
Geoff Norton 293ca229d1 Fix the build
svn path=/branches/mono-2-6/mono/; revision=152036
2010-02-18 23:16:40 +00:00
Zoltan Varga a0960808eb Fix a problem in the last backport.
svn path=/branches/mono-2-6/mono/; revision=152035
2010-02-18 23:09:34 +00:00
Rodrigo Kumpera e208b54d2d 2010-02-18 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_reflection_method_on_tb_inst_get_handle):
	* Handle non
	generic methods.

	* reflection.c (mono_reflection_get_custom_attrs_info): Handle
	* compiler context
	cases for ParameterInfo.

	Fixes #579493.

	Backport of r152024.

svn path=/branches/mono-2-6/mono/; revision=152034
2010-02-18 22:58:05 +00:00
Zoltan Varga c5398842dd 2010-02-18 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_get_restore_context): Changes this so it restores
	edx/ecx too. This is needed to support OP_SEQ_POINT.

svn path=/branches/mono-2-6/mono/; revision=152033
2010-02-18 22:56:47 +00:00
Marek Habersack b6b5333991 Backport of r152025
svn path=/branches/mono-2-6/mcs/; revision=152026
2010-02-18 21:48:54 +00:00
Marek Habersack 075e8678f7 Backport of r151983
svn path=/branches/mono-2-6/mcs/; revision=151984
2010-02-18 13:30:14 +00:00
Marek Habersack ddb382c14c Backport of r151978
svn path=/branches/mono-2-6/mcs/; revision=151979
2010-02-18 12:37:59 +00:00
Atsushi Eno 26f59283aa do not backport this one. It fails to build.
svn path=/branches/mono-2-6/mcs/; revision=151976
2010-02-18 12:03:12 +00:00
Marek Habersack e8d241747e Backport of r151964
svn path=/branches/mono-2-6/mcs/; revision=151965
2010-02-18 10:50:59 +00:00
Atsushi Eno fcaba8f493 backport everything from trunk.
svn path=/branches/mono-2-6/mcs/; revision=151961
2010-02-18 08:25:39 +00:00
Atsushi Eno c4b87781aa backport everything from trunk.
svn path=/branches/mono-2-6/mcs/; revision=151958
2010-02-18 07:51:27 +00:00
Atsushi Eno 1ee40a3cb9 backport r151803 (for bugfix dependency on WCF serialization).
svn path=/branches/mono-2-6/mcs/; revision=151957
2010-02-18 07:34:19 +00:00
Atsushi Eno 992f2ddc0a backport r151953 and r151954.
svn path=/branches/mono-2-6/mcs/; revision=151955
2010-02-18 07:08:44 +00:00
Zoltan Varga 31cf5e8c8b 2010-02-18 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Fix SIZEOF in dynamic methods.

svn path=/branches/mono-2-6/mono/; revision=151946
2010-02-18 00:35:24 +00:00
Zoltan Varga c0976544d1 2010-02-18 Zoltan Varga <[email protected]>
* class.c (mono_class_get_cctor): Fix support for dynamic classes, which doesn't
	have has_cctor set. Fixes #575946.

svn path=/branches/mono-2-6/mono/; revision=151944
2010-02-18 00:34:57 +00:00
Marek Habersack ae361f9b27 Backport of r151931
svn path=/branches/mono-2-6/mcs/; revision=151932
2010-02-17 21:28:38 +00:00
Marek Habersack f1e9c9d7f6 Backport of r151926
svn path=/branches/mono-2-6/mcs/; revision=151927
2010-02-17 20:12:52 +00:00
Gonzalo Paniagua Javier f8f3a9a6a3 2010-02-16 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: display a warning if the parsing the config file
	produces any error.
	Skip the BOM in UTF-8 files.


svn path=/branches/mono-2-6/mono/; revision=151894
2010-02-17 04:33:32 +00:00
Sebastien Pouliot 91c1288101 2010-02-16 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: Keep a copy of 'userToken' since we need to
	supply it when calling OnDownloadProgressChanged
	* WebRequest_2_1.cs (SetupProgressDelegate): Simplify signature
	[Backport r151800]


svn path=/branches/mono-2-6/mcs/; revision=151801
2010-02-16 14:13:44 +00:00
Sebastien Pouliot 260cb48929 fix compilation on branch
svn path=/branches/mono-2-6/mcs/; revision=151799
2010-02-16 13:44:48 +00:00
Gonzalo Paniagua Javier dc3a4a2797 update year
svn path=/branches/mono-2-6/mono/; revision=151764
2010-02-16 01:50:04 +00:00
Gonzalo Paniagua Javier 7b2c365335 2010-02-15 Gonzalo Paniagua Javier <[email protected]>
* StreamWriter.cs:
	* FileStream.cs: if flushing fails when disposing the stream, make
	sure it is closed before throwing the exception. Fixes bug #579146.


svn path=/branches/mono-2-6/mcs/; revision=151762
2010-02-16 01:40:03 +00:00
Gonzalo Paniagua Javier 5c9fb6f0f1 2010-02-15 Gonzalo Paniagua Javier <[email protected]>
* SmtpClient.cs: generate correct MIME when there are text and html
	linked resources. Fixes bug #579984. Patch by Ásgeir Halldórsson.


svn path=/branches/mono-2-6/mcs/; revision=151759
2010-02-16 01:22:57 +00:00
Gonzalo Paniagua Javier 128642f6b2 2010-02-15 Gonzalo Paniagua Javier <[email protected]>
* SoapDocumentationHandler.cs: use IndexOf() instead of LastIndexOf()
	when removing the querystring from the url.



svn path=/branches/mono-2-6/mcs/; revision=151755
2010-02-15 23:12:26 +00:00
Zoltan Varga e8d7abb4c4 Fix the windows build.
svn path=/branches/mono-2-6/mono/; revision=151741
2010-02-15 15:38:20 +00:00
Gonzalo Paniagua Javier dabb896513 2010-02-13 Gonzalo Paniagua Javier <[email protected]>
* Test/System.Collections.Generic/HashSetTest.cs:
	* System.Collections.Generic/HashSet.cs: fix and test for bug #579791.
	Patch from Tiaan Geldenhuys.


svn path=/branches/mono-2-6/mcs/; revision=151706
2010-02-13 17:49:23 +00:00
Zoltan Varga a008e4976d 2010-02-13 Zoltan Varga <[email protected]>
* aot-compiler.c (load_profile_files): Update after the profiler changes.

svn path=/branches/mono-2-6/mono/; revision=151699
2010-02-13 12:20:12 +00:00
Zoltan Varga e2e827dee0 2010-02-13 Zoltan Varga <[email protected]>
* mono-profiler-aot.c (output_image): Emit method names instead of tokens so
	the info can be used for different versions of the same assembly. Don't append
	the assembly guid to the file names.

svn path=/branches/mono-2-6/mono/; revision=151698
2010-02-13 12:19:56 +00:00
Zoltan Varga 96300289b8 2010-02-13 Zoltan Varga <[email protected]>
* debug-helpers.c (mono_method_desc_search_in_image): Handle short names like
	'int' for system classes.

svn path=/branches/mono-2-6/mono/; revision=151697
2010-02-13 12:19:35 +00:00
Zoltan Varga 74a751df45 2010-02-13 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Avoid passing icall wrappers to
	mono_profiler_method_end_jit, since the profiler has no way to process wrappers.

	* aot-runtime.c mini.c: Resurrect the aot pagefault profiling stuff, it is useful
	for mtouch.

svn path=/branches/mono-2-6/mono/; revision=151695
2010-02-13 10:07:26 +00:00
Gonzalo Paniagua Javier 5d14f40d12 2010-02-13 Gonzalo Paniagua Javier <[email protected]>
* debugger-agent.c: handle incomplete reads and EINTR in
	recv()/send(). This could have been causing random
	disconnections.


svn path=/branches/mono-2-6/mono/; revision=151688
2010-02-13 06:19:43 +00:00
Zoltan Varga fbd697bf33 2010-02-13 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_allocate_vars): Allocate the seq point related vars first
	so they have small offsets. Fixes #566311.

svn path=/branches/mono-2-6/mono/; revision=151682
2010-02-13 02:35:06 +00:00
Rodrigo Kumpera 05a51d4bfe 2010-02-12 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_check_inlining): Check for loader
	* errors.

svn path=/branches/mono-2-6/mono/; revision=151621
2010-02-12 14:38:28 +00:00
Zoltan Varga de5d66ec95 2010-01-16 Zoltan Varga <[email protected]>
* generic-sharing.c (instantiate_other_info): Don't create ftnptr's from the
        result of mono_compile_method (), it already includes an ftnptr.

svn path=/branches/mono-2-6/mono/; revision=151611
2010-02-12 13:37:10 +00:00
Marek Habersack 4d3a299214 Backport of r151604
svn path=/branches/mono-2-6/mcs/; revision=151605
2010-02-12 12:03:15 +00:00
Andrew Jorgensen 923ab52eeb bump to 2.6.3
svn path=/branches/mono-2-6/mono/; revision=151542
2010-02-11 19:04:28 +00:00
Marek Habersack ebd559df35 Backport of r151519
svn path=/branches/mono-2-6/mcs/; revision=151520
2010-02-11 14:16:23 +00:00
Zoltan Varga fb4ddb123f 2010-02-11 Zoltan Varga <[email protected]>
* mini-generic-sharing.c (mini_type_get_underlying_type): Handle byref as well
	by returning native int. Fixes #577984.

svn path=/branches/mono-2-6/mono/; revision=151515
2010-02-11 12:34:24 +00:00
Geoff Norton c2c9805a11 2010-02-10 Geoff Norton <[email protected]>
* mono.1: Document the aot compiler options.

svn path=/branches/mono-2-6/mono/; revision=151301
2010-02-11 05:25:32 +00:00
Geoff Norton 91b722f1d4 2010-02-10 Geoff Norton <[email protected]>
* reflection.c: Support building with DISABLE_REFLECTION

svn path=/branches/mono-2-6/mono/; revision=151288
2010-02-11 03:45:57 +00:00
Geoff Norton f399ffb981 2010-02-10 Geoff Norton <[email protected]>
* aot-compiler.c: Make the number of IMT trampolines configurable as well.

svn path=/branches/mono-2-6/mono/; revision=151287
2010-02-11 03:45:38 +00:00
Zoltan Varga 35dfffd945 2010-02-11 Zoltan Varga <[email protected]>
* mini-arm.c mini.c linear-scan.c: Disable more stuff when DISABLE_JIT is used.

svn path=/branches/mono-2-6/mono/; revision=151285
2010-02-11 03:23:52 +00:00
Zoltan Varga 10a5d279ef 2010-02-11 Zoltan Varga <[email protected]>
* CP1250.cs CP1252.cs: Move the '--charCount' line to the beginning of the loop,
	since it can be skipped in case of HandleFallback. Add brances around the
	call to HandleFallback so the 'continue' call is only done if it is called.
	Should fix #573682.

svn path=/branches/mono-2-6/mcs/; revision=151281
2010-02-11 02:14:38 +00:00
Marek Habersack 3725332e85 Backport of r151201
svn path=/branches/mono-2-6/mcs/; revision=151202
2010-02-10 09:33:21 +00:00
Sebastien Pouliot 91fe7326ba In Assembly:
2010-02-09  Sebastien Pouliot  <[email protected]>

	* AssemblyInfo.cs: Mono.CompilerServices.SymbolWriter does not
	need to access mscorlib.dll internals anymore (ArrayList and
	Hashtable)
	[Backport r151176]

In .:
2010-02-09  Sebastien Pouliot  <[email protected]>

	* net_2_1_raw_corlib.dll.sources: Add Mono.CompilerServices.
	SymbolWriter source files directly into mscorlib 2.1
	[Backport r151176]

In System.Reflection.Emit:
2010-02-09  Sebastien Pouliot  <[email protected]>

	* ModuleBuilder.cs: Do not use reflection to create SymbolWriterImpl
	for Moonlight since the code is bundled inside mscorlib.dll to avoid
	having a non-platform assembly poking the internals of mscorlib.dll
	[Backport r151176]


svn path=/branches/mono-2-6/mcs/; revision=151177
2010-02-10 02:43:30 +00:00
Gonzalo Paniagua Javier 698b0c9bab 2010-02-09 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: Fixes for SetMinThreads and SetMaxThreads.
	Closes bug #566057.


svn path=/branches/mono-2-6/mono/; revision=151153
2010-02-09 23:01:24 +00:00
Chris Toshok e34fc4c131 2010-02-09 Chris Toshok <[email protected]>
* MessageQueue.cs: stub out the ctor that takes a QueueAccessMode.

	* QueueAccessMode.cs: new enum.

svn path=/branches/mono-2-6/mcs/; revision=151140
2010-02-09 20:50:40 +00:00
Sebastien Pouliot f14a9f2826 2010-02-09 Sebastien Pouliot <[email protected]>
* XUtil.cs: Avoid using ToLowerInvariant since it is not 
	available in Silverlight.
	[Backport r151136]


svn path=/branches/mono-2-6/mcs/; revision=151137
2010-02-09 18:48:01 +00:00
Chris Toshok 0a3a4d2142 2010-02-09 Chris Toshok <[email protected]>
* XDocument.cs: add the Load (Stream) overloads.

svn path=/branches/mono-2-6/mcs/; revision=151127
2010-02-09 17:21:04 +00:00
Rodrigo Kumpera 1c59bff0e3 In metadata:
2010-02-09  Rodrigo Kumpera  <[email protected]>

	* icall.c (param_info_get_type_modifiers): Handle the case when the member object is a
	property. This happens which instances returned by PropertyInfo::GetIndexParameters ().

	* reflection.c (mono_reflection_get_custom_attrs_info): Ditto.

	* object-internals.h: Export mono_class_is_reflection_method_or_constructor as part of
	the internal API.

	Fixes #574434.

	Backport of r151093.


svn path=/branches/mono-2-6/mono/; revision=151094
2010-02-09 12:51:49 +00:00
Mark Probst 8ebdb52235 2010-02-09 Mark Probst <[email protected]>
* threads.c: Removed two assertions that were too strict.  Added a
        clarifying comment.  Fixes #577090.

        Backport of r151074.

svn path=/branches/mono-2-6/mono/; revision=151075
2010-02-09 01:01:26 +00:00
Zoltan Varga 5f56cc6f7d 2010-02-08 Zoltan Varga <[email protected]>
* mini-exceptions.c (mini_jit_info_table_find): Search the root domain as well,
	since mono_jit_info_table_find () doesn't do it anymore.

	* mini-generic-sharing.c debugger-agent.c: Call mini_jit_info_table_find ()
	instead of mono_jit_info_table_find ().

svn path=/branches/mono-2-6/mono/; revision=151035
2010-02-08 16:41:22 +00:00
Zoltan Varga 1bfbbde382 2010-02-08 Zoltan Varga <[email protected]>
* domain.c (mono_jit_info_table_find): Avoid looking in the root domain, since
	the caller has no way of knowing the domain which owns the returned MonoJitInfo.

	* appdomain.c (create_exceptions): Call mono_thread_push/popappdomain_ref ().

svn path=/branches/mono-2-6/mono/; revision=151034
2010-02-08 16:40:56 +00:00
Marek Safar 6ad7345805 2010-02-08 Marek Safar <[email protected]>
A fix for bug #577029
	* anonymous.cs: Fixed TypeBuilder* check.


svn path=/branches/mono-2-6/mcs/; revision=151012
2010-02-08 10:08:35 +00:00
Ankit Jain 77151d209f Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2010-02-06  Ankit Jain  <[email protected]>

	* xbuild/Microsoft.Common.targets: Add targets for compiling
	licx (license) files.
	* xbuild/Microsoft.Common.tasks: Add LC task.

2010-02-04  Ankit Jain  <[email protected]>

	* xbuild/Microsoft.Common.targets (_RecordCleanFile): Append list of
	current build files to list of previous build files.
	(_GetCleanFileWrites): Rename items to be obvious of the contents.
	(CoreClean): Delete the file list also.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2010-02-06  Ankit Jain  <[email protected]>

	* LCTest.cs: New.

2010-02-05  Ankit Jain  <[email protected]>

	* CreateCSharpManifestResourceNameTest.cs:
	* CreateVisualBasicManifestResourceNameTest.cs:
	Add new tests for TargetPath metadata.

2010-02-04  Ankit Jain  <[email protected]>

	* WriteLinesToFileTest.cs: New.

In class/Microsoft.Build.Tasks/Test/resources:
2010-02-05  Ankit Jain  <[email protected]>

	* junk.txt: New.

In class/Microsoft.Build.Tasks:
2010-02-06  Ankit Jain  <[email protected]>

	* Microsoft.Build.Tasks.dll.sources: Add LC.cs
	* Microsoft.Build.Tasks_test.dll.sources: Add LCTest.cs

2010-02-04  Ankit Jain  <[email protected]>

	* Microsoft.Build.Tasks_test.dll.sources: Added
	WriteLinesToFileTest.cs

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2010-02-06  Ankit Jain  <[email protected]>

	* LC.cs: New.

2010-02-05  Ankit Jain  <[email protected]>

	Fix bug #576579.
	* CreateManifestResourceName.cs: Use TargetPath metadata, as the link
	name.
	* CreateCSharpManifestResourceName.cs:
	* CreateVisualBasicManifestResourceName.cs: Prefer linkname over
	filename, if available.

2010-02-04  Ankit Jain  <[email protected]>

	* WriteLinesToFile.cs: Delete the file if there is nothing to
	be written and overwrite==true.

2010-02-02	Rodrigo B. de Oliveira	<[email protected]>

	* AssemblyResolver.cs:
		guard against non existing framework directory
		(for scenarios where lib/mono/3.5 is not available).

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2010-02-04  Ankit Jain  <[email protected]>

	Fix bug #576589.
	* ConditionFunctionExpression.cs (Exists): Check for directory also.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2010-02-06  Ankit Jain  <[email protected]>

	* ToolTask.cs (SkipTaskExecution): Use ValidateParameters method.
	Remove some MonoTODOs.


svn path=/branches/mono-2-6/mcs/; revision=151008
2010-02-08 09:49:34 +00:00
Chris Toshok aa3a41b33f 2010-02-06 Chris Toshok <[email protected]>
* AppDomain.cs (SetupInformationNoCopy): make this internal for
	moonlight.

svn path=/branches/mono-2-6/mcs/; revision=150986
2010-02-07 04:18:56 +00:00
Zoltan Varga 78047a6827 2010-02-07 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Place a seq point just before a RET.
	Fixes #564538.

svn path=/branches/mono-2-6/mono/; revision=150981
2010-02-07 00:16:47 +00:00
Rodrigo Kumpera 552353f9b4 2010-02-05 Rodrigo Kumpera <[email protected]>
* PropertyInfoTest.cs: Make tests for GetIndexParameters() work.

svn path=/branches/mono-2-6/mcs/; revision=150959
2010-02-05 21:26:04 +00:00
Rodrigo Kumpera 429f4f5164 2010-02-05 Rodrigo Kumpera <[email protected]>
* icall-def.h: Rename get_MetadataToken to GetMetadataToken.

svn path=/branches/mono-2-6/mono/; revision=150957
2010-02-05 21:10:56 +00:00
Rodrigo Kumpera 2b6cf0ebb2 2010-02-05 Rodrigo Kumpera <[email protected]>
*  MethodInfoTest.cs: New test for GetParameters() returning the
	*  interned array.

	* PropertyInfoTest.cs: New tests for GetIndexParameters().

svn path=/branches/mono-2-6/mcs/; revision=150955
2010-02-05 21:09:13 +00:00
Rodrigo Kumpera 260f424412 2010-02-05 Rodrigo Kumpera <[email protected]>
* MonoMethod.cs (GetParameters): Must return a copy instead of
	* the interned array.

	* MonoMethod.cs (Invoke): Skip array clone in GetParameters.

	* MonoProperty.cs (GetIndexParameters): Properly handle
	* write-only indexed properties.
	Return a ParameterInfo object bound to the properly and not to
the method.

	* ParameterInfo.cs: Add new constructor that copies all fields
	* but Member.

	* ParameterInfo.cs (MetadataToken): Properly handle tokens of
	* non-method members.

svn path=/branches/mono-2-6/mcs/; revision=150954
2010-02-05 21:09:04 +00:00
Atsushi Eno 59bec26020 revert the immediate previous change. It contributes little on stability
while it may bring unstability, so it's not appropriate in the stable branch.

svn path=/branches/mono-2-6/mcs/; revision=150923
2010-02-05 11:19:49 +00:00
Atsushi Eno f4c493c778 those files were missing in the batch import.
svn path=/branches/mono-2-6/mcs/; revision=150922
2010-02-05 11:18:00 +00:00
Atsushi Eno 8bb68e8056 backport r150920.
svn path=/branches/mono-2-6/mcs/; revision=150921
2010-02-05 11:14:15 +00:00
Atsushi Eno 5e148d2992 backport every fixes from trunk, except for ServiceContractGeneratorTest which
fails to compile on 2.6 branch.

svn path=/branches/mono-2-6/mcs/; revision=150914
2010-02-05 06:06:02 +00:00
Atsushi Eno f6aa979708 backport all fixes from trunk.
svn path=/branches/mono-2-6/mcs/; revision=150910
2010-02-05 04:35:43 +00:00
Rodrigo Kumpera 838bd3d54c In mini:
* mini.c (mini_method_verify): Report the method which failed to verify.

	backport of r150889.

2010-02-04  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=150896
2010-02-05 00:04:10 +00:00
Rodrigo Kumpera 45b819ef9c In mono/mini:
2010-02-04  Rodrigo Kumpera  <[email protected]>

	* method-to-ir.c (mono_method_to_ir): Use the new basic block formation pass
	to avoid JIT'ng dead basic blocks. This is the same behavior as the
	runtime MS verifier.

	backport of r150888.


svn path=/branches/mono-2-6/mono/; revision=150895
2010-02-04 23:54:22 +00:00
Rodrigo Kumpera 06ae31966e In mono/metadata:
* verify.c (mono_method_verify): Use the new basic block formation pass
	to avoid verifying dead basic blocks. This is the same behavior as the
	runtime MS verifier. 

	backport of r150888.

2010-02-04  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=150892
2010-02-04 22:46:28 +00:00
Rodrigo Kumpera 73ef62bf13 In mono/metadata:
2010-02-04  Rodrigo Kumpera  <[email protected]>

	* mono-basic-block.c:
	* mono-basic-block.h: New implementation of a basic block formation pass.
	The formation pass does static liveness analysis as well to detect dead
	basic blocks.

	backport of r150887.


svn path=/branches/mono-2-6/mono/; revision=150891
2010-02-04 22:45:43 +00:00
Zoltan Varga 411bdfcbdb 2010-02-04 Zoltan Varga <[email protected]>
* debugger-agent.c (decode_value): Fix decoding of vtype instances. Fixes
	#561962.

svn path=/branches/mono-2-6/mono/; revision=150837
2010-02-04 07:26:18 +00:00
Zoltan Varga 6df5ae01e3 2010-02-04 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): Emit a null check for the
	'this' argument in icalls.

svn path=/branches/mono-2-6/mono/; revision=150835
2010-02-04 06:39:46 +00:00
Zoltan Varga c86f89d307 2010-02-04 Zoltan Varga <[email protected]>
* TypeMirror.cs (EnumUnderlyingType): New property.

	* EnumMirror.cs: Use it.

svn path=/branches/mono-2-6/mcs/; revision=150827
2010-02-04 05:05:37 +00:00
Zoltan Varga cff62a57df 2010-02-04 Zoltan Varga <[email protected]>
* debugger-agent.c (type_commands): Return the enumness if the type as well.

svn path=/branches/mono-2-6/mono/; revision=150817
2010-02-04 03:03:33 +00:00
Zoltan Varga cf599fd85a 2010-02-04 Zoltan Varga <[email protected]>
* VirtualMachine.cs (CreateEnumMirror): New method to create an EnumMirror.

	* AppDomainMirror.cs (GetCorrespondingType): New method to return a TypeMirror
	corresponding to a primitive type.

	* TypeMirror.cs (IsEnum): Implement.

	* EnumMirror.cs (.ctor): New internal constructor called from CreateEnumMirror
	which does lots of error checking.

svn path=/branches/mono-2-6/mcs/; revision=150814
2010-02-04 03:01:25 +00:00
Marek Habersack 82391e9f2f Backport of r150802
svn path=/branches/mono-2-6/mcs/; revision=150803
2010-02-04 01:01:40 +00:00
Bill Holmes 82bc175822 2010-02-03 Bill Holmes <[email protected]>
* debugger-agent.c : Fixing MSVC builds.

	* libmono.vcproj, libtest.vcproj, monoposixhelper.def,
	   monoposixhelper.vcproj : Fixing MSVC builds.

	Code is contributed under MIT/X11 license.

svn path=/branches/mono-2-6/mono/; revision=150784
2010-02-03 20:30:08 +00:00
Bill Holmes 3569751fed 2010-02-03 Sylvain Dupont <[email protected]>
backport of r149817

	* cominterop.c marshal.c: Added support for marshalling in, in/byref,
	  in/out, in/out/byref parameters of type SAFEARRAY[VARIANT].

	* cominterop.cs libtest.c: Added tests for marshalling
	  in, in/byref, in/out, in/out/byref parameters of type
	  SAFEARRAY[VARIANT].

	Code is contributed under MIT/X11 license.


svn path=/branches/mono-2-6/mono/; revision=150782
2010-02-03 20:20:25 +00:00
Zoltan Varga b7f25c6f37 2010-02-02 Zoltan Varga <[email protected]>
* reflection.c (resolve_object): Handle MonoArrayMethod. Fixes #575955.

svn path=/branches/mono-2-6/mono/; revision=150743
2010-02-02 22:34:32 +00:00
Zoltan Varga 06822be894 2010-02-02 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_prolog): Initialize lmf->rsp in the prolog too
	so async stack walks don't crash.

svn path=/branches/mono-2-6/mono/; revision=150738
2010-02-02 20:42:16 +00:00
Andrew Jorgensen ad322a2a3d bump versions
svn path=/branches/mono-2-6/mono/; revision=150722
2010-02-02 18:23:38 +00:00
Marek Safar 3c4ea6158d 2010-02-02 Marek Safar <[email protected]>
A fix for bug #574991
	* rootcontext.cs, class.cs, driver.cs: Hide enhanced warnings behind
	--lint.


svn path=/branches/mono-2-6/mcs/; revision=150703
2010-02-02 10:49:55 +00:00
Marek Safar e4a80ea434 2010-02-02 Marek Safar <[email protected]>
A fix for bug #575986
	* expression.cs: Don't mutate typeof type definitions.


svn path=/branches/mono-2-6/mcs/; revision=150697
2010-02-02 09:50:10 +00:00
Zoltan Varga 00a63c8f85 2010-02-02 Zoltan Varga <[email protected]>
* mini-trampolines.c (common_call_trampoline): Fix a problem where the callsite
	was not patched if the callee needed an rgctx trampoline.

svn path=/branches/mono-2-6/mono/; revision=150690
2010-02-02 05:12:12 +00:00
Marek Habersack fbb50e5433 Backport of r150684
svn path=/branches/mono-2-6/mcs/; revision=150685
2010-02-01 23:47:38 +00:00
Ankit Jain f66eb3966a Backport xbuild and Microsoft.Build.* from trunk.
In tools/xbuild/Test:
2010-01-21	Rodrigo B. de Oliveira <[email protected]>

	* ParametersTest.cs: /noautorsp + test for each property value
	
2010-01-21	Rodrigo B. de Oliveira <[email protected]>

	* xbuild.tests/ParametersTest.cs
	* xbuild.tests/xbuild.tests.csproj: 
		NUnit tests for the Parameters class
In tools/xbuild:
2010-01-21	Rodrigo B. de Oliveira <[email protected]>

	* Main.cs
	* Parameters.cs: response file might be specified in double quotes.

2010-01-21	Rodrigo B. de Oliveira <[email protected]>

	* Makefile
	* xbuild_test.dll.sources
	* xbuild.sln
	* Test/*: added NUnit tests (Test/xbuild.tests)
	
2009-12-22  Ankit Jain  <[email protected]>

	Fix bug #566087.
	* xbuild/Microsoft.CSharp.targets: Use $(NoWarn) .

2009-12-14  Ankit Jain  <[email protected]>

	* Parameters.cs (TryProcessMultiOption): New.
	(ProcessTarget):
	(ProcessProperty): Refactor to use TryProcessMultiOption,
	and accept ":" in target name or property name/value pair.

2009-12-14  Ankit Jain  <[email protected]>

	Fix bug #562056.
	* Parameters.cs: Property name/value pairs can be separated by ':'.

2009-11-26  Ankit Jain  <[email protected]>

	* xbuild/Microsoft.Common.targets (PostBuildEvent): If
	$(RunPostBuildEvent) is empty, treat it as OnBuildSuccess.
	Simplify condition.

2009-11-25  Ankit Jain  <[email protected]>

	* xbuild/Microsoft.Common.targets: Emit list of files written
	during the build to the obj/$(Config) rather than obj/, to keep
	them per config. Bug reported by : Greg F <[email protected]>

2009-11-10  Ankit Jain  <[email protected]>

	* xbuild/Microsoft.Common.targets(AL):
	* xbuild/Microsoft.CSharp.targets (CSC):
	* xbuild/Microsoft.VisualBasic.targets (Vbc): Set ToolExe and ToolPath to
	corresponding properties, allowing them to be overridden.

2009-11-09  Ankit Jain  <[email protected]>

	* xbuild/Microsoft.Common.targets: Set default TargetFrameworkVersion.
	Replace TargetFrameworkPath with TargetFrameworkDirectories, and set
	according to the TargetFrameworkVersion.

In tools/xbuild/tests:
2009-11-26  Ankit Jain  <[email protected]>

	* standalone/Project1/final-outputs.txt: Update.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2010-01-21	Rodrigo B. de Oliveira <[email protected]>

	* BuildChooseTest.cs
	* BuildPropertyTest.cs:
		test cases for nested Choose elements and different property
		evaluation scenarios.
		
In class/Microsoft.Build.Engine/Test/various:
2009-12-22  Ankit Jain  <[email protected]>

	* Items.cs (TestItemsWithWildcards): Add Exclude also, update
	test accordingly.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-12-22  Ankit Jain  <[email protected]>

	Fix bug #565849.
	* DirectoryScanner.cs (Excludes): Change from string to ITaskItem[] .
	* BuildItem.cs: Track api changes.

2009-12-02  Ankit Jain  <[email protected]>

	Fix bug #559990.
	* Engine.cs (UnloadAllProjects): Don't remove items from the collection
	being iterated over. Patch by Laurent Etiemble
	<[email protected]>

2009-11-28  Ankit Jain  <[email protected]>

	Fix bug #547753.
	* BatchingImplBase.cs (DumpBucket*): New. Useful for debugging.
	* Project.cs (Batch): New. Contains the perBatchItems and the
	commonItems for the batch.
	Use a stack of batches, instead of directly setting the current
	batch items.
	(PushBatch): New.
	(PopBatch): New.
	(SetBatchedItems): Make this private.
	(GlobalProperties.set): Re-evaluating the project is not required
	for this.
	* TargetBatchingImpl.cs: Use the new Push/PopBatch instead of directly
	setting the batches.
	* TaskBatchingImpl.cs: Likewise. Refactor slightly to PopBatch in
	finally block.
	* Target.cs (Build): Reset the current batch to nil before evaluating
	and building this target.

2009-11-28  Ankit Jain  <[email protected]>

	* Project.cs (TryGetEvaluatedItemByNameBatched): Item could be
	available in either perBatchItemsByName or commonItemsByName
	or the evaluatedItemsByName collection. Allows the use of
	items which are not batched, but are consumed in case of batching.

2009-11-26  Ankit Jain  <[email protected]>

	* TargetBatchingImpl.cs (BuildTargetNeeded): Expand metadata
	refs also, for Inputs and Outputs.

2009-10-13  Ankit Jain  <[email protected]>

	* DirectoryScanner.cs:
	* ExpressionCollection.cs:
	* GroupingCollection.cs:
	* Project.cs:
	* Target.cs: Fix warnings.

In class/Microsoft.Build.Engine:
2010-01-21	Rodrigo B. de Oliveira <[email protected]>

	* Microsoft.Build.BuildEngine/BuildWhen.cs
	* Microsoft.Build.BuildEngine/PropertyReference.cs:
		support for nested Choose elements + fixed bug where the project reference
		would be null during condition evaluation.
		
2010-01-12	Rodrigo B. de Oliveira <[email protected]>

	* Microsoft.Build.BuildEngine/BuildWhen.cs
	* Test/Microsoft.Build.BuildEngine/BuildChooseTest.cs:
		Support for PropertyGroup as a child of When and Otherwise

In class/Microsoft.Build.Framework/Mono.XBuild.Framework:
2009-10-13  Ankit Jain  <[email protected]>

	* AssemblyLoadInfo.cs: Fix warning.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2009-12-22  Ankit Jain  <[email protected]>

	* CreateItemTest.cs (TestItemsWithWildcards): New.

2009-11-28  Ankit Jain  <[email protected]>

	* TaskBatchingTest.cs: Add new tests for batching.

2009-11-28  Ankit Jain  <[email protected]>

	* TaskBatchingTest.cs: Add new tests for batching, use on unbatched
	items in a batching scenario.

In class/Microsoft.Build.Tasks:
2009-12-22  Ankit Jain  <[email protected]>

	* Microsoft.Build.Tasks.dll.sources: Add DirectoryScanner.cs
	from Build.Engine, required by CreateItem.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-12-22  Ankit Jain  <[email protected]>

	Fix bug #565849.
	* CreateItem.cs: Use DirectoryScanner to handle wildcards.
	(IsExcluded): Remove.

2009-11-26  Ankit Jain  <[email protected]>

	* ManagedCompiler.cs (AddResponseFileCommands): *mcs doesn't
	support /debug:pdbonly, so map it to /debug:full .

2009-11-10  Ankit Jain  <[email protected]>

	* ToolTask.cs (ToolExe): New.
	* Csc.cs:
	* AL.cs: Use ToolExe instead of ToolName to construct
	tool's full path.

2009-11-09  Ankit Jain  <[email protected]>

	* GetFrameworkPath.cs (FrameworkVersion11Path):
	(FrameworkVersion20Path):
	(FrameworkVersion30Path):
	(FrameworkVersion35Path): New.

2009-10-13  Ankit Jain  <[email protected]>

	* ResolveAssemblyReference.cs: Fix warnings.

2009-10-13  Ankit Jain  <[email protected]>

	* ResolveAssemblyReference.cs: Log only unique conflict warnings.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-11-25  Ankit Jain  <[email protected]>

	* ToolLocationHelper.cs: Set directory for 3.0 framework
	to "2.0"

2009-11-09  Ankit Jain  <[email protected]>

	* TargetDotNetFrameworkVersion.cs (Version30):
	(Version35): New.
	* ToolLocationHelper.cs: Support 3.0 and 3.5 also.

2009-10-13  Ankit Jain  <[email protected]>

	* TaskLoggingHelper.cs:
	* ToolTask.cs: Fix warnings.


svn path=/branches/mono-2-6/mcs/; revision=150655
2010-02-01 17:28:11 +00:00
Jb Evain 178e8b39d8 fix build
svn path=/branches/mono-2-6/mcs/; revision=150640
2010-02-01 14:34:17 +00:00
Jb Evain 6263e12951 2010-02-01 Jb Evain <[email protected]>
* MarkStep.cs: SoapHeader can either take a field or a property.

svn path=/branches/mono-2-6/mcs/; revision=150634
2010-02-01 13:26:06 +00:00
Jb Evain 888638c227 2010-02-01 Jb Evain <[email protected]>
* SoapProtocolImporter.cs: properly generate the SoapHeader
	attribute on NET_2_0.

svn path=/branches/mono-2-6/mcs/; revision=150631
2010-02-01 13:14:43 +00:00
Zoltan Varga 8530226c5f 2010-01-31 Zoltan Varga <[email protected]>
* Directory.cs (Exists): Never throw an exception. Fixes #565152.

svn path=/branches/mono-2-6/mcs/; revision=150606
2010-01-31 19:19:12 +00:00
Zoltan Varga 34fb8bd2e0 2010-01-29 Zoltan Varga <[email protected]>
* class.c (make_generic_param_class): Initialize interface offsets since we
	set klass->inited. Fixes #574819.

svn path=/branches/mono-2-6/mono/; revision=150559
2010-01-29 17:42:11 +00:00
Zoltan Varga eed032257e Fix the previous change.
svn path=/branches/mono-2-6/mcs/; revision=150527
2010-01-29 00:53:33 +00:00
Zoltan Varga 411fc36ffc Fix the build
svn path=/branches/mono-2-6/mcs/; revision=150526
2010-01-29 00:52:49 +00:00
Rolf Bjarne Kvinge 02cece4408 2010-01-29 Rolf Bjarne Kvinge <[email protected]>
* WebClient_2_1.cs: Ensure the WriteStreamClosed event is emitted on
	the correct thread (by using the stored SynchronizationContext).

	* InternalWebRequestStreamWrapper.cs: Add a WebClientData field which
	is passed to the WriteStreamClosedCallback.

svn path=/branches/mono-2-6/mcs/; revision=150511
2010-01-28 23:21:24 +00:00
Sebastien Pouliot 54f31763e5 fix build
svn path=/branches/mono-2-6/mcs/; revision=150494
2010-01-28 20:42:54 +00:00
Zoltan Varga 256afa6d09 Add a missing file.
svn path=/branches/mono-2-6/mcs/; revision=150471
2010-01-28 20:29:49 +00:00
Zoltan Varga 3f07396d7c 2010-01-28 Zoltan Varga <[email protected]>
* debugger-agent.c (mono_debugger_agent_init): Call appdomain_unload at the
	end of the appdomain unload process, after assemblies have been unloaded.
	Fixes #574842.

svn path=/branches/mono-2-6/mono/; revision=150454
2010-01-28 20:01:32 +00:00
Zoltan Varga 5d6e83819b 2010-01-28 Zoltan Varga <[email protected]>
* domain.c (mono_domain_free): Send the END_UNLOAD profiler event before
	calling the JIT domain cleanup hook.

svn path=/branches/mono-2-6/mono/; revision=150450
2010-01-28 19:57:42 +00:00
Zoltan Varga 95e6ecc8ed 2010-01-28 Zoltan Varga <[email protected]>
* AssemblyUnloadEvent: New file.

	* VirtualMachine.cs Connection.cs: Add support for assembly unload events.

svn path=/branches/mono-2-6/mcs/; revision=150401
2010-01-28 19:45:03 +00:00
Rolf Bjarne Kvinge 76b24d31ef 2010-01-28 Rolf Bjarne Kvinge <[email protected]>
* WebClient_2_1.cs: The async events must be invoked on a threadpool
	thread if the async method wasn't executed on the main thread, so save
	the synchronization context when the async method is called, and post
	the event to that synchronization context when done. This is also
	required when the async methods are executed on the main thread, since
	HttpWebRequest callbacks are now always executed on a threadpool thread.

svn path=/branches/mono-2-6/mcs/; revision=150369
2010-01-28 12:03:22 +00:00
Rolf Bjarne Kvinge ceb4f138fb In class/corlib/System.Reflection:
2010-01-28  Rolf Bjarne Kvinge  <[email protected]>

	* Assembly.cs: GetSatelliteAssembly: Ask LoadSatellite to not throw
	exceptions, since we ignore them anyway.

In class/corlib/System:
2010-01-28  Rolf Bjarne Kvinge  <[email protected]>

	* AppDomain.cs: LoadSatellite: add a boolean parameter specifiying
	whether we should throw on exceptions or not.

svn path=/branches/mono-2-6/mcs/; revision=150368
2010-01-28 11:59:07 +00:00
Rolf Bjarne Kvinge 278b36691f 2010-01-28 Rolf Bjarne Kvinge <[email protected]>
* TimeSpan.cs: TryParse: Handle null values to not throw ANEs.

svn path=/branches/mono-2-6/mcs/; revision=150367
2010-01-28 11:58:57 +00:00
Atsushi Eno c583c7a89a add missing backport in r150102 (r150106 in 2.6 branch).
svn path=/branches/mono-2-6/mcs/; revision=150352
2010-01-28 07:41:11 +00:00
Gonzalo Paniagua Javier a862f5efcc 2010-01-28 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: no need for sync flush when compressing.
	Thanks to Hin-Tak Leung.


svn path=/branches/mono-2-6/mono/; revision=150350
2010-01-28 07:08:43 +00:00
Rodrigo Kumpera 9bfef1254b In utils:
2010-01-28 Rodrigo Kumpera  <[email protected]>

	* mono-error-internals.h: Add mono_error_set_not_verifiable.

	* mono-error.h: Add MONO_ERROR_NOT_VERIFIABLE.

	* mono-error.c: Implement mono_error_set_not_verifiable.

	Backport of r150306.


svn path=/branches/mono-2-6/mono/; revision=150312
2010-01-27 19:10:49 +00:00
Rodrigo Kumpera 6ab635ce74 In metadata:
* pedump.c (main): Properly set the verifier mode when running the metadata
	verifier.

	Backport of r150304.

2010-01-28  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=150311
2010-01-27 19:08:57 +00:00
Rodrigo Kumpera f74fcbcc4b In metadata:
2010-01-28  Rodrigo Kumpera  <[email protected]>

	* verify.c (verify_class_for_overlapping_reference_fields): Properly verify
	overlapping fields now that we're called before has_references is set.

	* pedump.c (dump_verify_info): Clear any loader error before verifying another
	method. Otherwise all sort of weird stuff happens.

	Backport of r150303.


svn path=/branches/mono-2-6/mono/; revision=150309
2010-01-27 19:04:42 +00:00
Zoltan Varga f21447b20e 2010-01-27 Zoltan Varga <[email protected]>
* object.c (mono_field_get_value_object): Handle nullable types correctly.
	Fixes #572874.

svn path=/branches/mono-2-6/mono/; revision=150292
2010-01-27 14:48:07 +00:00
Atsushi Eno 1aeb2d309b backport everything from trunk.
svn path=/branches/mono-2-6/mcs/; revision=150289
2010-01-27 12:07:54 +00:00
Atsushi Eno 5c5606577b backport r150268.
svn path=/branches/mono-2-6/mcs/; revision=150269
2010-01-27 01:40:30 +00:00
Zoltan Varga c14e6ea7ab 2010-01-27 Zoltan Varga <[email protected]>
* mini-amd64.c: Make the soft debugger work on platforms without MAP_32BIT.
	Fixes #573988.

svn path=/branches/mono-2-6/mono/; revision=150253
2010-01-26 23:15:24 +00:00
Zoltan Varga ea9ba1104f 2010-01-26 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_type): Treat MONO_TYPE_PTR as 'I' not 'I4'.

svn path=/branches/mono-2-6/mono/; revision=150248
2010-01-26 22:09:15 +00:00
Geoff Norton 07db7383fb 2010-01-26 Geoff Norton <[email protected]>
* aot-compiler.c: Fix a logic error introduced when guarding against enums
        with struct marshalability.

svn path=/branches/mono-2-6/mono/; revision=150245
2010-01-26 22:01:06 +00:00
Sebastien Pouliot 70ffc535d0 2010-01-26 Sebastien Pouliot <[email protected]>
* DataContractJsonSerializer_2_1.cs: Don't hide [Field|Method]
	AccessException inside a SerializationException but in a 
	SecurityException.
	[Backport r150219]


svn path=/branches/mono-2-6/mcs/; revision=150220
2010-01-26 18:33:30 +00:00
Sebastien Pouliot 875517d8cf backport r150214
svn path=/branches/mono-2-6/mcs/; revision=150215
2010-01-26 16:27:26 +00:00
Marek Safar 7bbd05b8d0 2010-01-26 Marek Safar <[email protected]>
A fix for bug #573329
	* eval.cs: Don't disable error reporting completely on silent mode.


svn path=/branches/mono-2-6/mcs/; revision=150204
2010-01-26 09:55:57 +00:00
Sebastien Pouliot be51c5ab18 2010-01-25 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.ServiceModel.Web.dll.sources: Use custom
	version of DataContractJsonSerializer for Moonlight
	[Backport r150153]


svn path=/branches/mono-2-6/mcs/; revision=150154
2010-01-25 21:03:12 +00:00
Sebastien Pouliot d55de3bf85 2010-01-25 Sebastien Pouliot <[email protected]>
* DataContractJsonSerializerTest.cs: Add non-working test cases
	for null-string, known types and handling floating point special
	values
	[Backport r150141]


svn path=/branches/mono-2-6/mcs/; revision=150152
2010-01-25 21:01:08 +00:00
Sebastien Pouliot 5dd48513d4 2010-01-25 Sebastien Pouliot <[email protected]>
* DataContractJsonSerializer_2_1.cs: New. Simpler version for 
	Moonlight since it does not inherit from the same base type nor
	does it overrides any base methods.
	[Backport r150149]


svn path=/branches/mono-2-6/mcs/; revision=150150
2010-01-25 20:58:39 +00:00
Sebastien Pouliot 1169b69aac 2010-01-25 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Fix attributes for Moonlight
	[Backport r150147]


svn path=/branches/mono-2-6/mcs/; revision=150148
2010-01-25 20:56:45 +00:00
Sebastien Pouliot 97c6f8c4c8 In .:
2010-01-25  Sebastien Pouliot  <[email protected]>

	* System.Net.dll.sources: Add UdpAnySourceMulticastClient and
	UdpSingleSourceMulticastClient stubs (with some validations)
	for SL4 (required to compile tests)
	[Backport r150127]

In System.Net:
2010-01-25  Sebastien Pouliot  <[email protected]>

	* UdpAnySourceMulticastClient.cs: New. Stub for SL4
	* UdpSingleSourceMulticastClient.cs: New. Stub for SL4
	[Backport r150127]


svn path=/branches/mono-2-6/mcs/; revision=150128
2010-01-25 13:22:36 +00:00
Zoltan Varga 3b16547b98 2010-01-25 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Array_SetValueImpl): Handle nullable types correctly.
	Fixes #573322.

svn path=/branches/mono-2-6/mono/; revision=150125
2010-01-25 12:47:05 +00:00
Zoltan Varga 25ca9fdef7 2010-01-06 Atsushi Enomoto <[email protected]>
* culture-info-table.h : regenerated.

svn path=/branches/mono-2-6/mono/; revision=150118
2010-01-25 12:02:20 +00:00
Zoltan Varga 1cee1671e0 2010-01-06 Atsushi Enomoto <[email protected]>
* Driver.cs : support FirstDayOfWeek. Fixed bug #567944.
	  Patch by Jose Antonio Sanchez Lazaro.

svn path=/branches/mono-2-6/mono/; revision=150117
2010-01-25 12:02:02 +00:00
Atsushi Eno a8db1a887e backport r150102.
svn path=/branches/mono-2-6/mcs/; revision=150106
2010-01-25 05:36:55 +00:00
Atsushi Eno 910a3be886 backport r150100.
svn path=/branches/mono-2-6/mcs/; revision=150101
2010-01-25 03:40:20 +00:00
Atsushi Eno 1a77eba231 backport r150041.
svn path=/branches/mono-2-6/mcs/; revision=150042
2010-01-22 06:20:41 +00:00
Sebastien Pouliot 86a0bbefd9 2010-01-21 Sebastien Pouliot <[email protected]>
* SocketAsyncEventArgs.cs: Apply Gendarme's ProtectCallToEventDelegatesRule
	[Backport r150033]


svn path=/branches/mono-2-6/mcs/; revision=150034
2010-01-22 01:51:26 +00:00
Carlos Alberto Cortez 0e1ca66be7 2010-01-21 Carlos Alberto Cortez <[email protected]>
* IPEndPoint.cs: When throwing an ArgumentException in Create()
	because of a mismatch in the address family, use a more informative
	message. Patch by Juho Vähä-Herttu<[email protected]>.
	Fixes #505105.


svn path=/branches/mono-2-6/mcs/; revision=150032
2010-01-22 01:16:21 +00:00
Carlos Alberto Cortez 6034c2d32b 2010-01-21 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: When the normal drop down window is closed, make sure
	that the auto complete list -if any- is closed as well, instead of
	stay open without need.


svn path=/branches/mono-2-6/mcs/; revision=150029
2010-01-21 23:25:18 +00:00
Carlos Alberto Cortez 749f368ea8 * TextBox.cs: When showing the autocomplete listbox, make sure it's on
top, by calling the raw XplatUI.SetZOrder for it, since we can't
 	properly call BringToFront on it as it is parentless. This fixes an
 	issue when using this feature with ComboBox's own parentless listbox.
 	Fixes the remaining bits of #489339.

2010-01-21  Carlos Alberto Cortez <[email protected]>


svn path=/branches/mono-2-6/mcs/; revision=150027
2010-01-21 22:50:43 +00:00
Carlos Alberto Cortez 026da78b76 * XplatUI.cs:
* XplatUIDriver:
	* XplatUICarbon:
 	* XplatUIWin32:
 	* XplatUIX11.cs: 
 	* XplatUIStructs: Implement support for different kind of audible
 	alerts in Windows, and update the requiered classes.
 	* MessageBox.cs: 
 	* TextBoxBase.cs: Update calls to XplatUI.AudibleAlert.
 	Fixes #473725.

2010-01-21  Carlos Alberto Cortez <[email protected]>


svn path=/branches/mono-2-6/mcs/; revision=150024
2010-01-21 22:22:00 +00:00
Carlos Alberto Cortez c512240f2a * ComboBox.cs: When use manually setting DropDownHeight, ignore the
MaxDropDownHeight property - also rename our field 'count' to
	'visible_items_count' to avoid confusion as much as possible.
	Fixes an issue with several items, showing an incorrect layout.

2010-01-21  Carlos Alberto Cortez <[email protected]>


svn path=/branches/mono-2-6/mcs/; revision=150021
2010-01-21 22:06:49 +00:00
Carlos Alberto Cortez 2f49fef718 2010-01-21 Carlos Alberto Cortez <[email protected]>
* RichTextBoxTest.cs: New test for the Modified property.


svn path=/branches/mono-2-6/mcs/; revision=150019
2010-01-21 21:50:19 +00:00
Carlos Alberto Cortez a517a0c465 2010-01-21 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: SelectedText should set Modified to true. Observe
	that this is happening just here, not for the Text property, and
	neither for the TextBoxBase impl.
	Fixes #569950.


svn path=/branches/mono-2-6/mcs/; revision=150017
2010-01-21 21:47:49 +00:00
Zoltan Varga bd0b130116 2010-01-21 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_notify_pending_exc): Avoid a crash if the
	thread has not fully started yet.

svn path=/branches/mono-2-6/mono/; revision=150014
2010-01-21 21:28:09 +00:00
Rodrigo Kumpera a1bda8ea92 In metadata:
* reflection.c (typebuilder_setup_fields): Pretend field setup already
	happened before starting to encode the actual fields. This avoid ciclic
	dependencies and eventual crashes.

	Fixes #572660.

	Backport of r150008.

2010-01-21  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=150011
2010-01-21 20:22:40 +00:00
Sebastien Pouliot 556c641fbb In Test/System.Net:
2010-01-21  Sebastien Pouliot  <[email protected]>

	* CookieContainerTest.cs: Additional test cases from Tom Philpot
	[Backport r149976 + NET_1_1 fixes]

In System.Net:
2010-01-21  Sebastien Pouliot  <[email protected]>

	* CookieContainer.cs: Fix to cloning and expiration. Patch
	by Tom Philpot <[email protected]>
	[Backport r149976 + NET_1_1 fixes]


svn path=/branches/mono-2-6/mcs/; revision=150006
2010-01-21 18:57:26 +00:00
Zoltan Varga 6a31cfc00c 2010-01-21 Zoltan Varga <[email protected]>
* aot-compiler.c (can_marshal_struct): Allow marshalling enums.

svn path=/branches/mono-2-6/mono/; revision=149992
2010-01-21 16:43:50 +00:00
Gonzalo Paniagua Javier 8ddf3be981 2010-01-21 Gonzalo Paniagua Javier <[email protected]>
* SmtpClient.cs: rethrow inner exception so that
	AsyncCompletedEventArgs.Error gets the right value on error. Patch
	by Dimitar Dobrev.


svn path=/branches/mono-2-6/mcs/; revision=149984
2010-01-21 15:22:31 +00:00
Rodrigo Kumpera 1a71763707 2010-01-21 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_generic_inst): Fail a type signature if it 
	has a recursive reference to itself.

	Fixes #571863.

	Backport of r149969.



svn path=/branches/mono-2-6/mono/; revision=149971
2010-01-21 14:38:44 +00:00
Andrew Jorgensen 55d040c353 more rabbitmq madness
svn path=/branches/mono-2-6/mono/; revision=149935
2010-01-20 22:58:13 +00:00
Gonzalo Paniagua Javier 067c19988f 2010-01-20 Gonzalo Paniagua Javier <[email protected]>
* icall.c: don't raise AppDomain.TypeResolve when the type is loaded
	from the current assembly or mscorlib. Fixes bug #322957.


svn path=/branches/mono-2-6/mono/; revision=149922
2010-01-20 18:01:06 +00:00
Marek Habersack b7354f3de6 Backport of r149919
svn path=/branches/mono-2-6/mcs/; revision=149920
2010-01-20 17:49:16 +00:00
Zoltan Varga ac5e8bef12 2010-01-20 Zoltan Varga <[email protected]>
* mini-posix.c (SIG_HANDLER_SIGNATURE): Avoid
	"Thread (nil) may have been prematurely finalized" messages if this is called
	on a thread not registered with the runtime.

	* mini-exceptions.c (mono_handle_native_sigsegv): Ditto.

svn path=/branches/mono-2-6/mono/; revision=149913
2010-01-20 15:56:36 +00:00
Jb Evain 6f7167aa7e protect ILGenerator.Mono_GetCurrentOffset
svn path=/branches/mono-2-6/mcs/; revision=149904
2010-01-20 13:58:31 +00:00
Marek Habersack c84b626d9f Backport of r149855
svn path=/branches/mono-2-6/mcs/; revision=149856
2010-01-19 22:36:57 +00:00
Rodrigo Kumpera b47a076824 In metadata:
* verify.c (store_local): Better error message.
	
	Backport of r149845.

2010-01-19  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=149854
2010-01-19 21:54:38 +00:00
Marek Habersack 00313fae7e Backport of r149842
svn path=/branches/mono-2-6/mcs/; revision=149843
2010-01-19 21:14:45 +00:00
Zoltan Varga cefd26ffa4 2010-01-19 Zoltan Varga <[email protected]>
* jit-icalls.c (mono_array_new_3): New jit icall.

	* aot-compiler.c aot-runtime.c: Add support for ElementAddr wrappers.

	* arrays.cs: Add a test for 3 dimensional arrays.

svn path=/branches/mono-2-6/mono/; revision=149832
2010-01-19 17:12:51 +00:00
Zoltan Varga 94147a6867 2010-01-19 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_wrapper_info_from_wrapper): New helper function to
	return a point to a wrapper specific info structure describing the wrapper.
	(mono_marshal_get_array_address): Store the rank+elem_size in the wrapper info.

svn path=/branches/mono-2-6/mono/; revision=149831
2010-01-19 17:10:55 +00:00
Sebastien Pouliot 4ee3487474 2010-01-19 Sebastien Pouliot <[email protected]>
* security-core-clr.c (mono_security_core_clr_can_access_internals):
	Handle the case where 'basedir' can be NULL (e.g. SRE assemblies)
	[Backport r149823]


svn path=/branches/mono-2-6/mono/; revision=149824
2010-01-19 16:20:12 +00:00
Rodrigo Kumpera e17c497eca In metadata:
2010-01-19  Rodrigo Kumpera  <[email protected]>

	* icall.c (ves_icall_MonoMethod_GetGenericMethodDefinition): Handle inflated generic methods
	on a GTD.

	Backport of r149808.


svn path=/branches/mono-2-6/mono/; revision=149811
2010-01-19 12:51:30 +00:00
Marek Habersack 934a28df97 Backport of r149778
svn path=/branches/mono-2-6/mcs/; revision=149779
2010-01-18 22:34:36 +00:00
Rodrigo Kumpera b47afbf37d In metadata:
* metadata-verify.c (parse_type): Fail a type signature if it has a recursive reference
	to itself.

	* metadata-verify.c (mono_verifier_verify_typespec_signature): Change signature to take
	the token as parameter.

	* verify-internals.h: Ditto.

	* metadata.c (mono_type_create_from_typespec): Pass token to verifier.

	Fixes #571460.

	Backport of r149776.

2010-01-18  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=149777
2010-01-18 22:28:04 +00:00
Sebastien Pouliot 082f7e3aa6 2010-01-18 Sebastien Pouliot <[email protected]>
* mono-error.c: Call va_end/va_start before reusing 'args'.
	[Backport r149765]


svn path=/branches/mono-2-6/mono/; revision=149766
2010-01-18 20:09:40 +00:00
Rodrigo Kumpera 0e337eb2ae In metadata:
2010-01-18  Rodrigo Kumpera  <[email protected]>

	* class.c (mono_class_from_typeref): Fail loading of self-referencing typeref tokens.

	Fixes #569579.

	Backport of r149760.


svn path=/branches/mono-2-6/mono/; revision=149761
2010-01-18 19:11:28 +00:00
Marek Habersack 557b82af81 Backport of r149756
svn path=/branches/mono-2-6/mcs/; revision=149757
2010-01-18 17:43:40 +00:00
Zoltan Varga 3fda9b1b2c 2010-01-18 Zoltan Varga <[email protected]>
* mini.h (MonoCompile): Add 'disable_out_of_line_bblocks' flag.

	* branch-opts.c (mono_optimize_branches): Honor the new flag.

	* mini.c (mini_method_compile): Set the new flag when running under the
	debugger.

svn path=/branches/mono-2-6/mono/; revision=149753
2010-01-18 17:33:31 +00:00
Martin Baulig 50b2886808 Put the soft debugger into the 'Mono.Debugger.Soft' namespace.
svn path=/branches/mono-2-6/mcs/; revision=149743
2010-01-18 14:32:25 +00:00
Zoltan Varga a960af777a 2010-01-18 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Avoid reading cfg->prof_options
	after cfg has been freed.

svn path=/branches/mono-2-6/mono/; revision=149719
2010-01-18 00:21:29 +00:00
Zoltan Varga d91e676bd4 2010-01-17 Zoltan Varga <[email protected]>
* branch-opts.c (mono_branch_optimize_exception_target): Stop the optimization
	if a clause is skipped because it uses the exception object, since it could
	have caught the exception.

	* exceptions.cs: Add a test.

svn path=/branches/mono-2-6/mono/; revision=149707
2010-01-17 08:47:29 +00:00
Zoltan Varga 28bc6c8233 2010-01-16 Zoltan Varga <[email protected]>
* debugger-agent.c (decode_value): Fix the decoding of I/U/PTR.

svn path=/branches/mono-2-6/mono/; revision=149684
2010-01-16 02:56:18 +00:00
Carlos Alberto Cortez f561a56b55 2010-01-15 Carlos Alberto Cortez <[email protected]>
* Int32Test.cs: Test for TryParse with MaxValue + 1.


svn path=/branches/mono-2-6/mcs/; revision=149681
2010-01-16 01:39:19 +00:00
Carlos Alberto Cortez 495f4bbecf 2010-01-15 Carlos Alberto Cortez <[email protected]>
* DateTimeTest.cs: Fix the tests (DateTimeStyles.AssumeUniversal is
	2.0 only).


svn path=/branches/mono-2-6/mcs/; revision=149680
2010-01-16 01:36:20 +00:00
Zoltan Varga f4af0d1edf 2010-01-16 Zoltan Varga <[email protected]>
* mini-amd64.c (emit_call_body): Always use near calls when AOTing even if
	NOMAP32BIT or optimize_for_xen is set.

svn path=/branches/mono-2-6/mono/; revision=149673
2010-01-16 00:48:27 +00:00
Carlos Alberto Cortez 16696796b9 2010-01-15 Carlos Alberto Cortez <[email protected]>
* Int32.cs: In Parse() cast the parsed value to long *before* changing
	its sign - this way we preserve the original value, instead of
	accidentally changing it. This was happening parsing _exactly_
	MaxValue + 1.
	Fixes #475815.


svn path=/branches/mono-2-6/mcs/; revision=149650
2010-01-15 21:29:47 +00:00
Rodrigo Kumpera e8852db5d6 In metadata:
2010-01-15  Rodrigo Kumpera  <[email protected]>

	* class.c (mono_class_setup_fields): Guard against unfinished types. This
	happens only on 2.6 and not trunk because trunk better deals with unfinished types. 


svn path=/branches/mono-2-6/mono/; revision=149642
2010-01-15 17:11:39 +00:00
Marek Habersack 7ca6f7a3a6 Backport of r149631
svn path=/branches/mono-2-6/mcs/; revision=149632
2010-01-15 13:24:25 +00:00
Atsushi Eno 833bb1cf96 backport r149619 and r149620.
svn path=/branches/mono-2-6/mcs/; revision=149630
2010-01-15 12:42:13 +00:00
Atsushi Eno 159dce275c backport r149609, r149612, r149617 and r149618.
svn path=/branches/mono-2-6/mcs/; revision=149626
2010-01-15 12:40:53 +00:00
Atsushi Eno 8d4203be63 backport r149611 and r149614.
svn path=/branches/mono-2-6/mcs/; revision=149625
2010-01-15 12:38:14 +00:00
Rodrigo Kumpera f54f538a50 In metadata:
2010-01-14  Rodrigo Kumpera  <[email protected]>

	* class.c (mono_type_has_exceptions): Check the generic instance. It can fail
	independently of the GTD.

	* class.c (mono_class_setup_fields): Fail if field has negative offset.

	* class.c (mono_class_setup_fields): Fail if valuetype has zero size. Add sizeof(MonoObject)
	to the upper limit since instance_size includes this amount.

	* class.c (mono_class_layout_fields): Check if the types of the static fields have failed.

	Fixes #569544.

	Backport of r149575.


svn path=/branches/mono-2-6/mono/; revision=149576
2010-01-14 21:12:46 +00:00
Jb Evain 59887d8819 2010-01-14 Jb Evain <[email protected]>
* MarkStep.cs: preserve fields specified by the
	SoapHeader attribute.

	backport r149571.

svn path=/branches/mono-2-6/mcs/; revision=149572
2010-01-14 18:12:41 +00:00
Rolf Bjarne Kvinge 585a395a95 2010-01-14 Rolf Bjarne Kvinge <[email protected]>
* UnmanagedMemoryStream.cs: Read: don't read bytes one-by-one, read all
	at once.

svn path=/branches/mono-2-6/mcs/; revision=149556
2010-01-14 13:17:53 +00:00
Jonathan Pryor 52f97eb8ed * Monodoc/provider.cs, Monodoc/ecma-provider.cs: Improve cache support
by having EcmaHelpSource.GetTextFromUrl() look for cached contents.
	  This greatly speeds up type member listings (e.g. T:...List`1/*),
	  e.g. from ~2.0s to 0.06s.
	* Mono.Documentation/XmlDocUtils.cs: XmlDocUtils.AddExtensionMethods()
	  wasn't adding extension methods which matched *interfaces* of base
	  classes.  Result: Mono.Options.OptionSet (which inherits
	  System.Collections.ObjectModel.KeyedCollection`2 which inherits from
	  System.Collections.ObjectModel.Collection`1 which implements
	  System.Collections.Generic.IEnumerable`1) wasn't getting any of the
	  LINQ extension methods (which is bad).  Fix this.
	* Resources/mdoc-html-utils.xsl: Fix regression caused by 2009-12-02
	  commit adding GetLinkTargetHtml().  The problem was that when
	  running within ASP.NET/monodoc ~all extension method links would be
	  'javascript:alert("...")M:Foo.Method(...)', which is clearly wrong.
	  This occurred because $linkid's generation would always call
	  GetLinkTargetHtml() with a $cref value of '', thus the monodoc
	  GetLinkTarget() would return '', so GetLinkTargetHtml() would return
	  the javascript "not found" alert.  Thus, we can't expect
	  GetLinkTargetHtml() with $cref='' to work under monodoc, but it's
	  ~required to work sanely under 'mdoc export-html'.
	  Solution is to not call GetLinkTargetHtml() here UNLESS we're doing
	  'mdoc export-html' generation, which we assume to be the case if
	  $html-anchor is true.

svn path=/branches/mono-2-6/mcs/; revision=149553
2010-01-14 12:50:31 +00:00
Jonathan Pryor b51b58935f * Mono.Documentation/monodocs2slashdoc.cs: Fix NamespaceSummaries.xml
generation to look at the ns-NAMESPACE.xml files, not just
	  NAMESPACE.xml files.

svn path=/branches/mono-2-6/mcs/; revision=149552
2010-01-14 12:46:19 +00:00
Geoff Norton 9c6bce34ae fix monotouch build
svn path=/branches/mono-2-6/mcs/; revision=149503
2010-01-13 23:56:36 +00:00
Gonzalo Paniagua Javier 5768c58fd6 2010-01-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: when the server returns several different
	authentication methods, pick the one that works.
	Fixes bug #562043.


svn path=/branches/mono-2-6/mcs/; revision=149501
2010-01-13 23:23:03 +00:00
Sebastien Pouliot 4dea4c540e 2010-01-13 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Throw for CookieContainer. It is 
	implemented only in the client http stack (and for a limited
	time in the browser stack too ;-)
	* InternalWebRequestStreamWrapper.cs: Keep the MemoryStream data
	available after closing/disposing (by user) since our own code
	will need it later (e.g. when posting like DRT287)
	* WebHeaderCollection_2_1.cs: Provide an argument to 
	ArgumentException. Found by Gendarme's ArgumentException
	InstantiateArgumentExceptionCorrectlyRule
	[Backport r149484]


svn path=/branches/mono-2-6/mcs/; revision=149485
2010-01-13 18:40:46 +00:00
Paolo Molaro 77d06337e6 Wed Jan 13 15:54:53 CET 2010 Paolo Molaro <[email protected]>
* jit.h, method-to-ir.c: added ability to set the policy for
	inserting breakpoints from the break IL instruction or the
	Debugger.Break () API call.


svn path=/branches/mono-2-6/mono/; revision=149473
2010-01-13 15:03:00 +00:00
Jb Evain a5f096e879 2010-01-13 Jb Evain <[email protected]>
* MarkStep.cs: preserve methods specified by the
	XmlSchemaProvider attribute.

	backport r149460.

svn path=/branches/mono-2-6/mcs/; revision=149461
2010-01-13 13:28:35 +00:00
Atsushi Eno 694b59cf8a Fix build (forgotten backport bits).
svn path=/branches/mono-2-6/mcs/; revision=149446
2010-01-13 11:06:12 +00:00
Atsushi Eno 9aa5cfdf6b backport r149383 and r149411 from trunk.
svn path=/branches/mono-2-6/mcs/; revision=149442
2010-01-13 09:57:22 +00:00
Atsushi Eno 966ebb8976 backport recent bugfixes from trunk.
svn path=/branches/mono-2-6/mcs/; revision=149440
2010-01-13 09:48:37 +00:00
Atsushi Eno 5249c14350 backport recent bugfixes from trunk.
svn path=/branches/mono-2-6/mcs/; revision=149439
2010-01-13 09:47:12 +00:00
Sebastien Pouliot 3b33f27d09 2010-01-12 Sebastien Pouliot <[email protected]>
* WebRequest_2_1.cs: Rework registration wrt the two, browser
	and client, stacks offered in SL3. Only global works now.
	[Backport r149423]


svn path=/branches/mono-2-6/mcs/; revision=149424
2010-01-12 18:44:17 +00:00
Rodrigo Kumpera 326b9a5c59 In metadata:
* class.c (mono_class_get_implemented_interfaces): Now take a MonoError argument.

	* class.c:
	* cominterop.c:
	* icall.c:
	* object.c: 
	* class-internals.h: Adjust for new signature of mono_class_get_implemented_interfaces.

	Backport of r149414.

2010-01-12  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=149417
2010-01-12 16:54:28 +00:00
Rodrigo Kumpera bf875af2e7 In metadata:
2010-01-12  Rodrigo Kumpera  <[email protected]>

	* class.c (mono_class_setup_interfaces): Now take a MonoError argument and
	it can fail loading the type.

	* class.c: Add mono_class_inflate_generic_class_checked.

	* class.c:
	* verify.c:
	* class-internals.h: Adjust for new signature of mono_class_setup_interfaces.

	Backport of r149413.


svn path=/branches/mono-2-6/mono/; revision=149415
2010-01-12 16:50:33 +00:00
Sebastien Pouliot f76fb4d9af In Test/System.Net:
2010-01-12  Sebastien Pouliot  <[email protected]>

	* NetworkCredentialTest.cs: New. Unit tests.
	[Backport r149401]

In System.Net:
2010-01-12  Sebastien Pouliot  <[email protected]>

	* NetworkCredential.cs: Fix properties to never return null.

In .:
2010-01-12  Sebastien Pouliot  <[email protected]>

	* System_test.dll.sources: Add NetworkCredentialTest.cs to the tests
	[Backport r149401]


svn path=/branches/mono-2-6/mcs/; revision=149402
2010-01-12 13:09:49 +00:00
Zoltan Varga 6ddb87775a 2010-01-12 Zoltan Varga <[email protected]>
* profiles/basic.make: Document that mono 2.6 can't be compiled with mono SVN HEAD.

svn path=/branches/mono-2-6/mcs/; revision=149365
2010-01-12 02:12:52 +00:00
Carlos Alberto Cortez 7812e1a803 2010-01-11 Carlos Alberto Cortez <[email protected]>
* Int32Test.cs: Add test case for exponent support in the Parse
	methods.


svn path=/branches/mono-2-6/mcs/; revision=149359
2010-01-11 23:57:32 +00:00
Carlos Alberto Cortez 51098747b2 2010-01-11 Carlos Alberto Cortez <[email protected]>
* Int32.cs: Implement support for exponent in the Parse methods.
	Fixes #542464.

	Backport r149356.


svn path=/branches/mono-2-6/mcs/; revision=149358
2010-01-11 23:50:19 +00:00
Zoltan Varga 07d7a708a8 2010-01-11 Zoltan Varga <[email protected]>
* socket-io.c (AI_ADDRCONFIG): Applied patch from John Lightsey ([email protected]).
	Fixes build on rh 7.3.

svn path=/branches/mono-2-6/mono/; revision=149345
2010-01-11 22:28:10 +00:00
Zoltan Varga 9fb43d41e5 2010-01-11 Zoltan Varga <[email protected]>
* mono-profiler-logging.c (_ProfilerFileWriteBuffer): Use MONO_ZERO_LEN_ARRAY.
	Fixes #569806.

svn path=/branches/mono-2-6/mono/; revision=149343
2010-01-11 22:24:30 +00:00
Andrew Jorgensen dd528c7e82 add RabbitMQ.Client.Apigen
svn path=/branches/mono-2-6/mono/; revision=149341
2010-01-11 21:35:25 +00:00
Zoltan Varga 2eb18ee5c3 2009-12-16 Zoltan Varga <[email protected]>
* class.c (mono_bounded_array_class_get): Make these classes PUBLIC. Fixes
	#565120.

svn path=/branches/mono-2-6/mono/; revision=149337
2010-01-11 21:01:50 +00:00
Zoltan Varga 2fef9fed47 2009-12-26 Zoltan Varga <[email protected]>
* monitor.c (ves_icall_System_Threading_Monitor_Monitor_wait): Don't close the
	wait handle if the wait is interrupted, since it is still in mon->wait_list, and
	we can't remove it from it since we don't hold the lock.
	(mon_new): Free the orphaned events here when a mon structure is added to the
	freelist. Fixes #561239. Thanks to Mike Rieker <[email protected]> for tracking
	this down.

svn path=/branches/mono-2-6/mono/; revision=149335
2010-01-11 21:00:46 +00:00
Zoltan Varga 8a62669178 2009-12-26 Zoltan Varga <[email protected]>
* generic-sharing.c (instantiate_other_info): Avoid creating jump trampolines since
	they cannot be patched. Partly fixes #564408.

svn path=/branches/mono-2-6/mono/; revision=149333
2010-01-11 20:59:44 +00:00
Sebastien Pouliot 63983799a4 Makefile: For 2.1 build System.Core.dll before System.Net.dll
svn path=/branches/mono-2-6/mcs/; revision=149332
2010-01-11 20:55:02 +00:00
Sebastien Pouliot 53cb002de6 In .:
2010-01-11  Sebastien Pouliot  <[email protected]>

	* System.Net.dll.sources: Add InternalWebRequestStreamWrapper.cs
	* Makefile: Add reference to System.Core (for Action<T>)
	[Backport r149327]

In System.Net:
2010-01-11  Sebastien Pouliot  <[email protected]>

	* InternalWebRequestStreamWrapper.cs: New. Moved (and adapted) 
	from Moonlight System.Windows.Browser assembly.
	* InternalWebResponseStreamWrapper.cs: New. Moved (and adapted) 
	from Moonlight System.Windows.Browser assembly.
	* WebClient_2_1.cs: Remove custom delegate declaration (Gendarme's
	AvoidDeclaringCustomDelegatesRule). Remove locking over a variable
	(Gendarme's ReviewLockUsedOnlyForOperationsOnVariablesRule). 
	Avoid potential race with event handlers (Gendarme's 
	ProtectCallsToEventDelegatesRule). Implement OnWriteStreamClosed
	* WebRequest_2_1.cs: Signature change from delegate to 
	Action<long,long,object>. Found using Gendarme's
	AvoidDeclaringCustomDelegatesRule
	[Backport r149327]


svn path=/branches/mono-2-6/mcs/; revision=149328
2010-01-11 20:29:41 +00:00
Zoltan Varga deffbb6a29 2010-01-11 Zoltan Varga <[email protected]>
* debugger-agent.c (mono_debugger_agent_parse_options): Allow onthrow without
	an argument which matches any exception.

svn path=/branches/mono-2-6/mono/; revision=149297
2010-01-11 04:09:34 +00:00
Carlos Alberto Cortez aa6f7b9be1 2010-01-10 Carlos Alberto Cortez <[email protected]>
* ToolStripMenuItemTest: New test for the events related to the check
	state.


svn path=/branches/mono-2-6/mcs/; revision=149293
2010-01-11 00:46:58 +00:00
Carlos Alberto Cortez e6ebacb2b4 2010-01-10 Carlos Alberto Cortez <[email protected]>
* ToolStripMenuItem.cs: Put the Checked/CheckState logic in a single
	place and synchronize the events properly. Fixes a lack of
	coordination between the events - which should be fired together.


svn path=/branches/mono-2-6/mcs/; revision=149291
2010-01-11 00:43:36 +00:00
Zoltan Varga 5fa55c5f7f 2010-01-10 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_emit_method_call_full): Avoid the virt->nonvirt
	optimization if the called method is gshared and marshalbyref, since gshared
	methods can' have wrappers. Fixes #569390.

	* generics.cs: Add a test.

svn path=/branches/mono-2-6/mono/; revision=149287
2010-01-10 22:42:31 +00:00
Zoltan Varga 190fc745e1 2010-01-10 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_print_thread_dump_from_ctx): New helper function
	callable from gdb.

svn path=/branches/mono-2-6/mono/; revision=149281
2010-01-10 01:53:19 +00:00
Zoltan Varga 2af95eb471 2010-01-10 Zoltan Varga <[email protected]>
* mini.c (mono_print_method_from_ip): Fix the lookup of trampolines.

svn path=/branches/mono-2-6/mono/; revision=149279
2010-01-10 01:34:01 +00:00
Zoltan Varga 76d3cbb00c 2010-01-09 Zoltan Varga <[email protected]>
* debugger-agent.c (transport_connect): comment out freeaddrinfo calls under win32,
	since it is not supported in win2000.

svn path=/branches/mono-2-6/mono/; revision=149275
2010-01-09 21:28:57 +00:00
Carlos Alberto Cortez 64358872dc 2010-01-09 Carlos Alberto Cortez <[email protected]>
* TrackBarTest.cs: New test for events.


svn path=/branches/mono-2-6/mcs/; revision=149272
2010-01-09 18:28:07 +00:00
Carlos Alberto Cortez 8d5112637e 2010-01-09 Carlos Alberto Cortez <[email protected]>
* TrackBar.cs: Move our events code to a single method, allowing it to
	optionally fire the Scroll event. This way we both avoid the
	duplicated calls to OnScroll and also will be able to fire Scroll
	*before* OnValueChanged in other places.
	Fixes #568026.


svn path=/branches/mono-2-6/mcs/; revision=149271
2010-01-09 17:18:42 +00:00
Marek Habersack 4b70cd35d5 Backport of r149262
svn path=/branches/mono-2-6/mcs/; revision=149263
2010-01-09 00:31:01 +00:00
Jb Evain 180d854345 2010-01-08 Jb Evain <[email protected]>
* Expression.cs (Call): properly deal with zero length array
	of type arguments for non generic methods. Fixes #568989.

	backport r149241.

svn path=/branches/mono-2-6/mcs/; revision=149242
2010-01-08 14:02:03 +00:00
Atsushi Eno e950db318c more complete backporting.
svn path=/branches/mono-2-6/mcs/; revision=149218
2010-01-08 04:51:52 +00:00
Atsushi Eno 21fba62c09 more complete backporting.
svn path=/branches/mono-2-6/mcs/; revision=149217
2010-01-08 04:50:11 +00:00
Atsushi Eno 98ea1eb62a backport everything, now that I believe it became at least as stable as it used to be.
svn path=/branches/mono-2-6/mcs/; revision=149216
2010-01-08 04:48:50 +00:00
Atsushi Eno 32a31d1e4d backport everything.
svn path=/branches/mono-2-6/mcs/; revision=149213
2010-01-08 04:32:53 +00:00
Atsushi Eno 274f525ab1 backport everything from trunk.
svn path=/branches/mono-2-6/mcs/; revision=149211
2010-01-08 04:17:00 +00:00
Gonzalo Paniagua Javier 8eeae714e4 2010-01-07 Gonzalo Paniagua Javier <[email protected]>
* assembly.c: fix MONO_PATH debug output.


svn path=/branches/mono-2-6/mono/; revision=149191
2010-01-07 20:34:17 +00:00
Sebastien Pouliot 47a0c65e12 2010-01-07 Sebastien Pouliot <[email protected]>
* Consts.cs.in: Update FX version for SL3 latest released version
	[Backport r149187]


svn path=/branches/mono-2-6/mcs/; revision=149188
2010-01-07 20:21:42 +00:00
Jb Evain fd29972f85 fix the net_1_1 build
svn path=/branches/mono-2-6/mcs/; revision=149178
2010-01-07 16:28:30 +00:00
Jb Evain 6fc40bbb24 fix the net_1_1 build
svn path=/branches/mono-2-6/mcs/; revision=149177
2010-01-07 16:27:41 +00:00
Jb Evain 4054667f43 in System:
2010-01-07  Jb Evain  <[email protected]>

	* MonoType.cs (.MemberType): return the proper member type
	for generic parameters.

	backport r149175.

in Test/System:
2010-01-07  Jb Evain  <[email protected]>

	* TypeTest.cs: add test for the MemberType of
	a generic parameter.

	backport r149175.

svn path=/branches/mono-2-6/mcs/; revision=149176
2010-01-07 16:22:58 +00:00
Sebastien Pouliot 487ee8a3d0 In System:
2010-01-07  Sebastien Pouliot  <[email protected]>

	* Convert.cs: Fix line endings in ToBase64String (bug #568778)
	and also the default line length. Code changed to not require
	a BinaryReader over a MemoryStream to reduce memory requirements.
	[Backport r149171]

In Test/System:
2010-01-07  Sebastien Pouliot  <[email protected]>

	* ConvertTest.cs: Add test case for #568778 and the default
	line length.
	[Backport r149171]

In System.Security.Cryptography:
2010-01-07  Sebastien Pouliot  <[email protected]>

	* ToBase64Transform.cs: Static-ify some methods to make it easier 
	to use from System.Convert
	[Backport r149171]


svn path=/branches/mono-2-6/mcs/; revision=149172
2010-01-07 15:24:21 +00:00
Zoltan Varga 6cbb31843f 2010-01-07 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add an ugly hack to fix #564695.
	If LLVM decides to set the code model to Large, reset it to Default.

svn path=/branches/mono-2-6/mono/; revision=149160
2010-01-07 07:19:18 +00:00
Zoltan Varga d25ef310a2 2010-01-07 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_xdebug_flush): Export it so it is present in
	stripped binaries as well.

svn path=/branches/mono-2-6/mono/; revision=149154
2010-01-07 03:08:48 +00:00
Jb Evain 944fde135c 2010-12-06 Jb Evain <[email protected]>
* Descriptors/mscorlib.xml: optimize descriptor.

svn path=/branches/mono-2-6/mcs/; revision=149120
2010-01-06 13:28:40 +00:00
Marek Habersack dc6936d47a Backport of r149116
svn path=/branches/mono-2-6/mcs/; revision=149117
2010-01-06 09:29:59 +00:00
Atsushi Eno 0bbfa99e64 backport r149104.
svn path=/branches/mono-2-6/mcs/; revision=149105
2010-01-06 04:34:22 +00:00
Marek Habersack 3d1a899564 Backport of r149089
svn path=/branches/mono-2-6/mcs/; revision=149090
2010-01-05 23:13:27 +00:00
Rodrigo Kumpera 79563d2fff In System.Reflection:
* ParameterInfo.cs (DefaultProperty): Fix small typo.

2010-01-05 Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mcs/; revision=149088
2010-01-05 22:14:57 +00:00
Rodrigo Kumpera 1269ad94c2 In Test/System.Reflection:
2010-01-05 Rodrigo Kumpera  <[email protected]>

	* DateTimeConstantAttribute.cs: Add internal Ticks property.

	Backport of r149083.

In System.Runtime.CompilerServices:
2010-01-05 Rodrigo Kumpera  <[email protected]>

	* DateTimeConstantAttribute.cs: Add internal Ticks property.

	Backport of r149083.

In System.Reflection:
2010-01-05 Rodrigo Kumpera  <[email protected]>

	* ParameterInfoTest.cs: Add a test for default values from custom
	attributes.

	Backport of r149083.


svn path=/branches/mono-2-6/mcs/; revision=149084
2010-01-05 18:08:18 +00:00
Rodrigo Kumpera bbb57e05d6 In metadata:
2010-01-05  Rodrigo Kumpera  <[email protected]>

	* verify.c (mono_verifier_verify_class): Properly check for broken parent. Ignore
	types that are meant to not have a parent.

	Backport of r149053.

In mini:
2010-01-05  Rodrigo Kumpera  <[email protected]>

	* mini.c (mono_compile_is_broken): Skip methods from serialization's
	internal assembly.

	Backport of r149053.


svn path=/branches/mono-2-6/mono/; revision=149082
2010-01-05 16:42:15 +00:00
Sebastien Pouliot e5c119df53 pedump.c: Backport earlier fixes from Rodrigo Kumpera since they are useful for testing ML
svn path=/branches/mono-2-6/mono/; revision=149081
2010-01-05 14:40:11 +00:00
Marek Habersack 6e9cf155eb Backport of r149077
svn path=/branches/mono-2-6/mcs/; revision=149078
2010-01-05 12:13:49 +00:00
Carlos Alberto Cortez ec76cba184 2010-01-04 Carlos Alberto Cortez <[email protected]>
* RadioButton.cs: When drawing, if Appearance is Button use the old
	normal routine in the theme engine, instead of using the one in 2.0,
	since this last one doesn't support proper rendering of the control as
	a button.
	Fixes #567904.


svn path=/branches/mono-2-6/mcs/; revision=149075
2010-01-05 11:40:54 +00:00
Zoltan Varga 65d6041639 2010-01-04 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Call
	mono_method_get_vtable_slot () instead of accessing imt_method->slot directly,
	to fix an AOT case.

svn path=/branches/mono-2-6/mono/; revision=149057
2010-01-04 22:11:44 +00:00
Zoltan Varga 5684426f99 2009-12-22 Geoff Norton <[email protected]>
* configure.in: Fix invalid escaping.  Patch from Spina from
	www.slacky.eu.

svn path=/branches/mono-2-6/mono/; revision=149049
2010-01-04 21:04:51 +00:00
Rodrigo Kumpera 6661518399 In mini:
2009-01-04  Rodrigo Kumpera  <[email protected]>

	* mini.c (mini_method_compile): Verify the method before calling
	mono_compile_create_vars as this might crash since it uses method
	information.

	Fixes #560196.

	Backport of r149045.


svn path=/branches/mono-2-6/mono/; revision=149046
2010-01-04 19:52:28 +00:00
Sebastien Pouliot 2ab4b20086 verify.c (verify_valuetype_layout_with_target): Fix case that can lead to infinite recursion. Fix bug #567861. [Backport r149042]
svn path=/branches/mono-2-6/mono/; revision=149043
2010-01-04 18:47:21 +00:00
Rodrigo Kumpera 3cf6a9d9dd In metadata:
* class.c (count_virtual_methods): Remove the assert and now
	fail properly.
	
	* class.c (setup_interface_offsets): This can fail now.

	* class.c (mono_class_setup_vtable_general): Check for parent vtable
	errors. Check setup_interface_offsets errors.

	* class.c (setup_interface_offsets): Simplify the return error logic
	and remove class_init_ok.

	Fixes #560327.

	Backport of r149031.

2010-01-04  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=149032
2010-01-04 17:01:50 +00:00
Rodrigo Kumpera a5861ec5c9 In metadata:
2010-01-04  Rodrigo Kumpera  <[email protected]>

	* class.c (mono_class_init): Do class verification at the beginning. Add
	some asserts to avoid tripping into invalid memory.

	* object.c (compute_class_bitmap): Replace a g_assert_not_reached with a
	g_error and a decent message.

	* verify.c (mono_verifier_verify_class): Verify for invalid super type.

	Fixes #567548.

	Backport of r149028.


svn path=/branches/mono-2-6/mono/; revision=149029
2010-01-04 16:02:06 +00:00
Jonathan Pryor 7ecd46bab0 * Makefile: Ensure that Test/* files are distributed (so that
'make check' works on tarball builds).  Partial fix for #564987.

svn path=/branches/mono-2-6/mcs/; revision=149024
2010-01-04 13:15:37 +00:00
Jb Evain 7ce982039b 2010-01-04 Jb Evain <[email protected]>
* TimeZoneInfo.AdjustmentRule.cs, TimeZoneInfo.TransitionTime.cs:
	Do not include in both mscorlib and System.Core for a NET_2_1 profile.

	backport r149020.

svn path=/branches/mono-2-6/mcs/; revision=149021
2010-01-04 12:54:21 +00:00
Carlos Alberto Cortez 4721b6805e 2010-01-03 Carlos Alberto Cortez <[email protected]>
* GroupBoxRenderer.cs: Properly use SystemColors.GrayText to draw to
	text of the group box if it is disabled.
	Fixes #567847.


svn path=/branches/mono-2-6/mcs/; revision=149013
2010-01-04 11:51:26 +00:00
Zoltan Varga 3c40535253 2010-01-03 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Fix a memory leak.

svn path=/branches/mono-2-6/mono/; revision=148990
2010-01-03 16:48:55 +00:00
Zoltan Varga 0dffa52aca 2010-01-03 Zoltan Varga <[email protected]>
* mono-path.c (mono_path_resolve_symlinks): Use g_strfreev () to free the
	result of g_strplit.

svn path=/branches/mono-2-6/mono/; revision=148985
2010-01-03 16:36:16 +00:00
Zoltan Varga 3f88554113 2010-01-03 Zoltan Varga <[email protected]>
* TransactionAbortedException.cs: Make the default ctor public. Fixes #567872.

svn path=/branches/mono-2-6/mcs/; revision=148979
2010-01-03 14:15:24 +00:00
Zoltan Varga 368500522a 2010-01-03 Zoltan Varga <[email protected]>
* Array.cs: Fix ArrayReadOnlyList.CopyTo. Fixes #564095.

svn path=/branches/mono-2-6/mcs/; revision=148976
2010-01-03 14:10:45 +00:00
Zoltan Varga 613462c324 2010-01-03 Zoltan Varga <[email protected]>
* DateTime.cs (TryParseExact): Handle exceptions. Fixes #567857.

svn path=/branches/mono-2-6/mcs/; revision=148972
2010-01-03 13:53:55 +00:00
Zoltan Varga f084c27e38 2010-01-03 Zoltan Varga <[email protected]>
* locales.c (construct_culture_from_specific_name): Applied patch from
	José Antonio Sánchez Lázaro <[email protected]>. Fix a crash if a culture was
	not found. Fixes #567900.

svn path=/branches/mono-2-6/mono/; revision=148969
2010-01-03 13:29:53 +00:00
Carlos Alberto Cortez a74918503e 2009-12-31 Carlos Alberto Cortez <[email protected]>
* XplatUICarbon.cs: Implement the overriden AudibleAlert
	function in XplatUICarbon.  Currently it throws
	NotImplementedException which will kill a WinForms application showing
	a dialog box.
	Patch by  Erik Ylvisaker ([email protected]).


svn path=/branches/mono-2-6/mcs/; revision=148958
2009-12-31 23:42:10 +00:00
Sebastien Pouliot caf8ea503e loader.c (mono_method_get_signature_full): Remove two asserts. Return NULL instead so that the verifier can handle both cases gracefully. Fix bug #564897. [Backport r148951]
svn path=/branches/mono-2-6/mono/; revision=148952
2009-12-31 15:19:39 +00:00
Rodrigo Kumpera c78ca4093b In metadata:
* class.c (mono_class_setup_methods): Use checked version of mono_class_inflate_generic_method_full
	so we can properly fail types instead of crashing.

	Fixes #567676.

	Backpor of r148948.

2009-12-30  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=148949
2009-12-30 20:41:17 +00:00
Jonathan Pryor 0089ae3369 * Lucene.Net/Lucene.Net/QueryParser/QueryParser.cs: Fix crash when
searching for "()".  Fixes #423853.  
	  Thanks to Benoît Tuduri <[email protected]>.

svn path=/branches/mono-2-6/mcs/; revision=148945
2009-12-30 20:03:48 +00:00
Rodrigo Kumpera 27e2e40074 In metadata:
2009-12-30  Rodrigo Kumpera  <[email protected]>

	* marshal.c (mono_mb_emit_restore_result): Properly handle generic enums.

	Backport of r148941.

In mini:
2009-12-30  Rodrigo Kumpera  <[email protected]>

	* mini.c:
	* method-to.ir.c:
	* mini-*.c: Properly handle generic enums.

	Fixes #566294

	Backport of r148941.


svn path=/branches/mono-2-6/mono/; revision=148942
2009-12-30 13:49:56 +00:00
Sebastien Pouliot f06264ae54 2009-12-28 Sebastien Pouliot <[email protected]>
* Cookie.cs: Don't use automatic properties to let older mcs
	(e.g. bootstrap) compile this for NET_1_1 profile


svn path=/branches/mono-2-6/mcs/; revision=148921
2009-12-28 17:15:24 +00:00
Zoltan Varga 2a1e433854 2009-12-28 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Handle the failure of mono_class_vtable ()
	in a few more places.

svn path=/branches/mono-2-6/mono/; revision=148916
2009-12-28 01:58:45 +00:00
Zoltan Varga cf04036d5d 2009-12-27 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Don't use dyn runtime invoke for methods with
	nullable parameters. Fixes #567351.

svn path=/branches/mono-2-6/mono/; revision=148914
2009-12-27 16:16:59 +00:00
Rodrigo Kumpera b7e171bc2d In metadata:
* verify.c (init_stack_with_value_at_exception_boundary): Do stack overflow checking here
	as max stack might be zero.

	Fixes #562320.

	Backport of r148911.

2009-12-26  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=148912
2009-12-27 00:13:10 +00:00
Rodrigo Kumpera f883d707c6 In metadata:
Rework all uses of mono_class_setup_methods to accept that it can fail now.

	* class.c (mono_class_setup_methods): This function now can fail the class. Do so for generic
	instances if the GTD did.

	* class.c (mono_class_setup_properties): Ditto.

	* class.c (mono_class_setup_events): Ditto.

	* class.c (mono_class_setup_vtable): Fail early if the type is already broken.

	* class.c (mono_class_setup_vtable_general): Add a few more missing broken type checks.	Sanitize
	error setting.

	* class.c (mono_class_init): Fail if GTD did.

	* cominterop.c:
	* generic-sharing.c:
	* icall.c:
	* loader.c:
	* object.c:
	* verify.c: Properly handle failure of mono_class_setup_methods.

	Backport of r148905.

2009-12-26  Rodrigo Kumpera  <[email protected]>

In mini:
2009-12-26  Rodrigo Kumpera  <[email protected]>

	* mini-trampolines.c (common_call_trampoline): Add assert for NULL resolved generic method.

	Backport of r148905.


svn path=/branches/mono-2-6/mono/; revision=148907
2009-12-26 21:41:45 +00:00
Rodrigo Kumpera 9f33f36695 In metadata:
2009-12-26  Rodrigo Kumpera  <[email protected]>

	* class-internals.c: Add mono_class_inflate_generic_method_full_checked and make
	mono_class_inflate_generic_method_full internal.

	* class.c (inflate_generic_context): Now takes a MonoError argument.

	* class.c (mono_class_inflate_generic_method_full): Now calls the _checked and abort on
	errors.

	Backport of r148904.


svn path=/branches/mono-2-6/mono/; revision=148906
2009-12-26 21:24:28 +00:00
Zoltan Varga 95b7204a39 2009-12-26 Zoltan Varga <[email protected]>
* domain.c (mono_domain_free): Backport part of r143047. Free special static
	fields earlier to avoid crashes if the types they refer to are freed. Fixes
	#565923.

svn path=/branches/mono-2-6/mono/; revision=148903
2009-12-26 16:32:37 +00:00
Sebastien Pouliot c8750dd6f6 In Test/System.Net:
2009-12-24  Sebastien Pouliot  <[email protected]>

	* CookieContainerTest.cs: Split many tests into smaller test 
	cases. Add test cases for DefaultPerDomainCookieLimit and
	DefaultCookieLimit. Remove all, but one 1.x, [Category 
	("NotWorking")] since everything works now.

In System.Net:
2009-12-24  Sebastien Pouliot  <[email protected]>

	* Cookie.cs: Re-work ToString to be useable in more cases. Fix
	some issues found by Gendarme.
	* CookieContainer.cs: Fix 2.0 NonWorking (and new) unit tests.
	Implement removing oldest cookies when limits are reached.
	* CookieCollection.cs: Fix sort to be closer to MS implementation
	(but still not 100% identical). Fix some issues found by Gendarme


svn path=/branches/mono-2-6/mcs/; revision=148892
2009-12-24 18:20:36 +00:00
Sebastien Pouliot 5a843f6077 2009-12-24 Sebastien Pouliot <[email protected]>
* method-to-ir.c (mono_method_to_ir): Avoid SIGSEGV when
	mono_method_get_signature returns NULL. Fix #567084
	[Backport r148889]


svn path=/branches/mono-2-6/mono/; revision=148890
2009-12-24 13:50:32 +00:00
Geoff Norton 4f7e1e0e33 2009-10-05 Atsushi Enomoto <[email protected]>
* JsonReader.cs : \uXXXX parser was totally wrong, giving wrong #.

svn path=/branches/mono-2-6/mcs/; revision=148881
2009-12-23 23:08:26 +00:00
Geoff Norton 05b1685a6a 2009-12-23 Geoff Norton <[email protected]>
* DeflateStream.cs: Ensure our callbacks go into the correct
	static methods.

svn path=/branches/mono-2-6/mcs/; revision=148866
2009-12-23 17:03:22 +00:00
Zoltan Varga 2ec1db8f85 2009-12-23 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_create_llvm_imt_trampoline): Fix the LLVM build on
	platforms without mono_arch_get_llvm_imt_trampoline ().

svn path=/branches/mono-2-6/mono/; revision=148864
2009-12-23 15:02:00 +00:00
Jo Shields 74ee0e1382 Backport r148856 from trunk to fix broken RabbitMQ build
svn path=/branches/mono-2-6/mcs/; revision=148857
2009-12-23 02:34:36 +00:00
Geoff Norton a1757b0a1a fix typo
svn path=/branches/mono-2-6/mono/; revision=148851
2009-12-22 19:16:36 +00:00
Zoltan Varga 1cf6dce252 2009-12-22 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_klass_ref): Avoid a crash if a decode_klass_ref () call
	fails. Fixes #566689.

svn path=/branches/mono-2-6/mono/; revision=148849
2009-12-22 17:51:57 +00:00
Jo Shields 53acd847f0 Backport r148843 and r148844 from trunk
svn path=/branches/mono-2-6/mono/; revision=148846
2009-12-22 17:44:20 +00:00
Marek Habersack a14f404bd5 Backport of r148840
svn path=/branches/mono-2-6/mcs/; revision=148841
2009-12-22 12:24:48 +00:00
Rodrigo Kumpera 8e3c81eb2d In .:
2009-12-21  Rodrigo Kumpera  <[email protected]>

	* loader.c (mono_method_get_signature_full): Check if the returned signature is compatible
	with the one from the original method.

	* metadata-verify.c (mono_verifier_is_sig_compatible): New function to verify signature
	compatibility.

	* verify-internals.h: Add new function to the internal API.

	Fixes #566295.

	Backport of r148828.


svn path=/branches/mono-2-6/mono/; revision=148829
2009-12-22 01:18:25 +00:00
Sebastien Pouliot c0639bae0e 2009-12-21 Sebastien Pouliot <[email protected]>
* File.cs (ReadAllBytes): We cannot assume that a single call to
	Read will return all the data we require.
	[Backport r148822]


svn path=/branches/mono-2-6/mcs/; revision=148823
2009-12-21 22:41:03 +00:00
Zoltan Varga 352161e5dc In :
2009-12-21  Zoltan Varga  <[email protected]>

	* configure.in: Add an LLVM_CFLAGS automake variable.

In mono/mini:

2009-12-21  Zoltan Varga  <[email protected]>

	* Makefile.am (AM_CFLAGS): Include LLVM_CFLAGS.

	* mini-llvm.c: Avoid defining the __STDC_... macros if already defined.

svn path=/branches/mono-2-6/mono/; revision=148817
2009-12-21 18:46:42 +00:00
Gonzalo Paniagua Javier e5d8c57558 2009-12-21 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionGroup.cs:
	* ServicePoint.cs: implemented CloseConnectionGroup().


svn path=/branches/mono-2-6/mcs/; revision=148814
2009-12-21 17:13:52 +00:00
Marek Habersack 39f355ff7d Backport r148806
svn path=/branches/mono-2-6/mcs/; revision=148807
2009-12-21 14:27:37 +00:00
Rolf Bjarne Kvinge a2eb9c3486 In mono/metadata:
2009-12-18  Dimitar Dobrev  <[email protected]>

	* culture-info-tables.h: regenerated it to include the Georgian culture.

In tools/locale-builder:
2009-12-18  Dimitar Dobrev  <[email protected]>

	* langs/ka.xml: added a file with the settings of the neutral
	Georgian culture
	* locales/ka-GE.xml: added a file with the settings of the
	specific Georgian culture
	* supp/ka-GE.xml: added a file with the date and time formats
	of the Georgian culture
	* lcids.xml: added entries for the neutral and specific
	Georgian culture
	* Makefile.am: included supp/ka-GE.xml in the build and dist the new
	we're not downloading from primates.ximian.com.

	[Fixes bug 564910].
	[Backport of r148776].

svn path=/branches/mono-2-6/mono/; revision=148803
2009-12-21 12:12:02 +00:00
Michael Barker 4043c68978 2009-12-19 Michael Barker <[email protected]>
* Added stripped xml to avoid licensing issues.

svn path=/branches/mono-2-6/mcs/; revision=148796
2009-12-20 21:44:40 +00:00
Zoltan Varga b9bbc51c89 In System:
2009-12-19  Zoltan Varga  <[email protected]>

	* String.cs: Fix the various IndexOf and LastIndexOf methods so they handle
	"" and a non-zero startIndex correctly. Fixes #566106.

In Test/System:

2009-12-19  Zoltan Varga  <[email protected]>

	* StringTest.cs: Add tests for IndexOf ("", startIndex, count).

svn path=/branches/mono-2-6/mcs/; revision=148790
2009-12-19 21:23:08 +00:00
Jérémie Laval 0a27db5933 2009-11-02 Jérémie Laval <[email protected]>
In class/corlib/System.Threading/:
   * Parallel.cs: Added fix for Bug #536919.

In class/corlib/Test/System.Threading/:
   * ParallelTests.cs: Added unit test for Bug #536919, cleaned up.

svn path=/branches/mono-2-6/mcs/; revision=148782
2009-12-19 10:46:55 +00:00
Jonathan Pryor bf7b65723d * src/**/*: Sync with DbLinq r1294. This is DbLinq 0.19. Fixes
DataContext.Transaction.

svn path=/branches/mono-2-6/mcs/; revision=148774
2009-12-18 20:54:31 +00:00
Zoltan Varga 03905de06b 2009-12-18 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_get_argument_info): Allocate memory for CallInfo using
	alloca as g_malloc is not signal safe.

svn path=/branches/mono-2-6/mono/; revision=148767
2009-12-18 17:36:49 +00:00
Zoltan Varga 2abe570213 2009-12-18 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_get_type_internal_dynamic): Use assembly->domain
	instead of the current domain, since the two might not match if this is called
	from the debugger.

	* metadata-internals.h (MonoDynamicAssembly): Add a 'domain' field to specify the
	domain which created this assembly.

svn path=/branches/mono-2-6/mono/; revision=148759
2009-12-18 15:36:14 +00:00
Marek Habersack bd3f49a9f0 Backport of r148743
svn path=/branches/mono-2-6/mcs/; revision=148744
2009-12-18 11:07:55 +00:00
Marek Habersack 0950f336bb Backport of r148741
svn path=/branches/mono-2-6/mcs/; revision=148742
2009-12-18 09:46:17 +00:00
Atsushi Eno f9fd0ae689 2009-12-18 Atsushi Enomoto <[email protected]>
* I18N.CJK.Test.cs : add NET_2_0 condition. fix 1.1 test.


svn path=/branches/mono-2-6/mcs/; revision=148739
2009-12-18 05:05:21 +00:00
Sebastien Pouliot 3a989e7d01 backport r148706
svn path=/branches/mono-2-6/mcs/; revision=148707
2009-12-17 15:31:21 +00:00
Atsushi Eno 82f0bcaa7d Fix 1.1 build (previous test was 2.0-only, so it couldn't be simply backported).
svn path=/branches/mono-2-6/mcs/; revision=148705
2009-12-17 14:53:39 +00:00
Marek Habersack 3e13cdf770 Backport of r148697
svn path=/branches/mono-2-6/mono/; revision=148698
2009-12-17 12:38:03 +00:00
Rodrigo Kumpera 80fa10b7c6 In .:
2009-12-17  Rodrigo Kumpera  <[email protected]>

	* icall.c (ves_icall_Type_GetMethodsByName): Don't pin virtual methods if they are newslot.
	A private virtual newslot method is used to implement an interface method without exposing
	it to users. When querying for public instance methods, such method would hide a public one
	on a parent type.

	Fixes #564379.

	Backport of r148694.


svn path=/branches/mono-2-6/mono/; revision=148695
2009-12-17 12:08:05 +00:00
Zoltan Varga a381edd354 2009-12-17 Zoltan Varga <[email protected]>
* libtest.c pinvoke2.cs: Add a test for calling pinvoke methods using calli.

svn path=/branches/mono-2-6/mono/; revision=148684
2009-12-17 09:33:02 +00:00
Zoltan Varga ca08e5c579 2009-12-17 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Add support for CALLI with unmanaged
	signatures. Fixes #565143.

	* jit-icalls.c (mono_get_native_calli_wrapper): New JIT icall.

svn path=/branches/mono-2-6/mono/; revision=148683
2009-12-17 09:32:55 +00:00
Zoltan Varga d2e06609db 2009-12-17 Zoltan Varga <[email protected]>
* reflection.c (resolve_object): Fix the encoding of unmanaged calling
	conventions.

svn path=/branches/mono-2-6/mono/; revision=148682
2009-12-17 09:32:48 +00:00
Andrew Jorgensen 687ccd9db7 bump version
svn path=/branches/mono-2-6/mono/; revision=148609
2009-12-16 22:54:42 +00:00
Miguel de Icaza 36511ffde8 Fix
svn path=/branches/mono-2-6/mcs/; revision=148608
2009-12-16 22:44:42 +00:00
Miguel de Icaza acf33df432 Attempt to fix 'var foo = bar<TAB>' crash
svn path=/branches/mono-2-6/mcs/; revision=148604
2009-12-16 22:20:06 +00:00
Miguel de Icaza ac7a364349 2009-12-16 Miguel de Icaza <[email protected]>
* repl.cs: Avoid crash, fixes 554898

svn path=/branches/mono-2-6/mcs/; revision=148598
2009-12-16 22:17:19 +00:00
Miguel de Icaza b893812701 Backport
svn path=/branches/mono-2-6/mcs/; revision=148597
2009-12-16 22:01:54 +00:00
Gonzalo Paniagua Javier ee8c48257c 2009-12-16 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: when finishing uncompressing a buffer, we might need
	more than one call to deflate with Z_FINISH since the uncompressed
	data can take more space than the allocated buffer.

	Fixes the IPY+Chiron test case.


svn path=/branches/mono-2-6/mono/; revision=148593
2009-12-16 21:43:44 +00:00
Rodrigo Kumpera 90c08d2298 In .:
* reflection.c (mono_type_get_object): Guard against NULL generic param owner.

2009-12-16  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=148585
2009-12-16 21:16:21 +00:00
Rodrigo Kumpera 0c85600a76 In .:
2009-12-16  Rodrigo Kumpera  <[email protected]>

	* reflection.c (mono_type_get_object): If the type is VAR or MVAR check
	if the owner class has not been finished before returning reflection_info.	

	Fixes #565127.

	Backport of r148575.


svn path=/branches/mono-2-6/mono/; revision=148579
2009-12-16 19:54:03 +00:00
Rodrigo Kumpera 9b196c5cd1 In .:
2009-12-16 Rodrigo Kumpera  <[email protected]>

	* mini-x86.h: Forgot to add a 0x to MONO_ARCH_MAX_FRAME_SIZE define
	making max stack 10x smaller.

	Backport of r148570.


svn path=/branches/mono-2-6/mono/; revision=148571
2009-12-16 16:46:52 +00:00
Zoltan Varga 7f6e379dad 2009-12-16 Zoltan Varga <[email protected]>
* reflection.c (mono_custom_attrs_from_param): Avoid a crash if a dynamic
	param doesn't have custom attributes. Fixes #565117.

svn path=/branches/mono-2-6/mono/; revision=148561
2009-12-16 12:42:36 +00:00
Rodrigo Kumpera 0d60a16ee0 In .:
* method-to-ir.c (mini_emit_memcpy): Assert if size is too big.

	Backport of r148504.

2009-12-15 Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=148513
2009-12-15 19:48:42 +00:00
Rodrigo Kumpera c214e0af59 In .:
2009-12-15  Rodrigo Kumpera  <[email protected]>

	* class.c (mono_class_setup_fields): Fail valuetypes that are bigger than 1Mb.

	Backport of r148503.


svn path=/branches/mono-2-6/mono/; revision=148511
2009-12-15 19:41:59 +00:00
Rodrigo Kumpera f9b23f82ef In .:
2009-12-15 Rodrigo Kumpera  <[email protected]>

	* mini-x86.c (mono_arch_allocate_vars): Fail compilation if the frame size is
	bigger than MONO_ARCH_MAX_FRAME_SIZE.

	* mini-x86.c (mono_arch_emit_prolog): Handle huge frames.

	* mini-x86.h: Define MONO_ARCH_MAX_FRAME_SIZE to be 1Mb.

	* mini-amd64.c / mini-amd64.h: Same fixes as of above.

	* mini.c (mini_method_compile): Check if mono_arch_allocate_vars failed
	the compilation.

	Backport of r148502.


svn path=/branches/mono-2-6/mono/; revision=148509
2009-12-15 19:37:58 +00:00
Marek Habersack b3b164e0e2 Backport of r148498
svn path=/branches/mono-2-6/mcs/; revision=148499
2009-12-15 18:45:51 +00:00
Zoltan Varga 19181affc0 2009-11-20 Zoltan Varga <[email protected]>
* libtest.c (mono_test_marshal_bool_in): Use 'short' as the type of the
	variant bool argument.

	* marshalbool.cs: Pass -1 as the 'expected' argument instead of 0xffff, which
	causes sign extensions issues on some platforms.

svn path=/branches/mono-2-6/mono/; revision=148485
2009-12-15 17:15:12 +00:00
Marek Habersack 5d24e70618 Backport of r148474
svn path=/branches/mono-2-6/mono/; revision=148475
2009-12-15 12:21:13 +00:00
Geoff Norton c2752833c4 2009-12-14 Geoff Norton <[email protected]>
* debugger-agent.c: The end_runtime_invoke guard isn't working
        on AMD64 as __builtin_frame_address (1) returns NULL.  Disable the
        behaviour by default, and make it runtime configurable.

svn path=/branches/mono-2-6/mono/; revision=148421
2009-12-14 21:57:44 +00:00
Miguel de Icaza a7ad353f69 Backport from trunk
009-12-14  Miguel de Icaza  <[email protected]>

	* method-to-ir.c (mono_method_to_ir): CEE_UNUSUED opcodes now
	raise an invalid program exception.   

	For other opcodes that we might not handle use a g_warning and
	raise the exception.   Beats termination.

	Fixes #561724

2009-12-14  Miguel de Icaza  <[email protected]>

	* verify.c (mono_method_verify): The Unused opcodes produce an
	InvalidProgramException on .NET




svn path=/branches/mono-2-6/mono/; revision=148418
2009-12-14 21:14:05 +00:00
Sebastien Pouliot 896c8ae485 2009-12-14 Sebastien Pouliot <sebastien at ximian.com>
* Mono.Cecil/BaseAssemblyResolver.cs: Update to .net fx 4 beta2
	version number and reduce code duplication.


svn path=/branches/mono-2-6/mcs/; revision=148411
2009-12-14 20:43:22 +00:00
Sebastien Pouliot b3a8ccf695 loader.c (mono_method_get_header): Move assert after the verifier has been called on the method header. [Backport r148406]
svn path=/branches/mono-2-6/mono/; revision=148407
2009-12-14 19:53:07 +00:00
Marek Habersack 14e6ab3447 Backport of r148388
svn path=/branches/mono-2-6/mcs/; revision=148389
2009-12-14 14:15:17 +00:00
Marek Habersack 62f20dc082 Backport of r148378
svn path=/branches/mono-2-6/mcs/; revision=148379
2009-12-14 13:05:25 +00:00
Jonathan Chambers ac3b1ae1ad 2009-12-13 Jonathan Chambers <[email protected]>
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Handle a NULL
	sigctx being passed in, as we have no CONTEXT available in the APC.
	
	(mono_debugger_agent_cleanup): Use explicit cond wait implementation
	for now.

	Code contributed under MIT/X11 license.

svn path=/branches/mono-2-6/mono/; revision=148352
2009-12-13 18:12:31 +00:00
Zoltan Varga a1f6bc713c 2009-12-12 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Allocate the 'pindexes' array with the
	proper size.

svn path=/branches/mono-2-6/mono/; revision=148332
2009-12-12 09:41:19 +00:00
Jonathan Chambers f2c0e2415d Backport changes from HEAD to fix VS build.
svn path=/branches/mono-2-6/mono/; revision=148328
2009-12-12 03:33:29 +00:00
Zoltan Varga 794ab0c147 2009-12-12 Zoltan Varga <[email protected]>
* debugger-agent.c: Encode the this argument of vtype methods as a struct, not
	as a primitive type.

svn path=/branches/mono-2-6/mono/; revision=148193
2009-12-12 01:04:50 +00:00
Rolf Bjarne Kvinge 007b786026 2009-12-12 Rolf Bjarne Kvinge <[email protected]>
* WebClient_2_1.cs: When creating the request we need to copy over
	any headers the user set on us. We also need to wrap
	InvalidOperationExceptions in WebExceptions.

svn path=/branches/mono-2-6/mcs/; revision=148181
2009-12-12 00:08:49 +00:00
Chris Toshok f5cfcf20cb in System.Runtime.Serialization.Json:
2009-12-11  Chris Toshok  <[email protected]>

	* TypeMap.cs (CreateDefaultTypeMap): only include non-public
	property info when dealing with KeyValuePair<,>.  This is *not*
	the way MS handles it, but we emulate things much better with this
	hack.

in test/System.Runtime.Serialization.Json/:
2009-12-11  Chris Toshok  <[email protected]>

	* DataContractJsonSerializerTest.cs: add a test case for
	non-public properties.

svn path=/branches/mono-2-6/mcs/; revision=148138
2009-12-11 20:30:00 +00:00
Zoltan Varga bc764d6bb1 2009-12-11 Zoltan Varga <[email protected]>
* driver.c: Applied patch from Matt McClellan ([email protected]). Add a check
	for 2 parameter sched_setaffinity in older glibc versions. Fixes
	#564000.

svn path=/branches/mono-2-6/mono/; revision=148125
2009-12-11 19:53:23 +00:00
Zoltan Varga a6ea1406b7 2009-12-11 Zoltan Varga <[email protected]>
* configure.in: Applied patch from Matt McClellan ([email protected]). Add a check
	for 2 parameter sched_setaffinity in older glibc versions. Fixes
	#564000.

svn path=/branches/mono-2-6/mono/; revision=148124
2009-12-11 19:53:15 +00:00
Paolo Molaro 747445cc54 Fri Dec 11 18:24:04 CET 2009 Paolo Molaro <[email protected]>
* boehm-gc.c: fixed race condition while getting the target of a
	disappearing link (bug #522233).



svn path=/branches/mono-2-6/mono/; revision=148106
2009-12-11 17:17:37 +00:00
Zoltan Varga 8511b36fb1 2009-12-10 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Avoid generating synchronized wrappers for
	generic methods.

svn path=/branches/mono-2-6/mono/; revision=148039
2009-12-10 18:46:03 +00:00
Geoff Norton 58810b7bb7 Fix 2.6 on OSX 10.4 PPC
svn path=/branches/mono-2-6/mono/; revision=148001
2009-12-10 04:06:33 +00:00
Sebastien Pouliot 0c2ad9a11d 2009-12-09 Sebastien Pouliot <[email protected]>
* loader.c (mono_method_signature): Always call mono_loader_unlock 
	before returning.
	[Backport r147991]


svn path=/branches/mono-2-6/mono/; revision=147992
2009-12-10 01:23:33 +00:00
Rodrigo Kumpera 456fa62714 In .:
2009-12-09  Rodrigo Kumpera  <[email protected]>

	* metadata-verify.c: Add mono_verifier_verify_string_signature to check
	user string blobs.

	* verify-internals.h: Add new function to the internal API.

	* verify.c (do_ldstr): Call into mono_verifier_verify_string_signature to
	check if it's a valid string.

	* object.c (mono_ldstr): Ditto.

	Fixes #561943.

	Backport of r147941.


svn path=/branches/mono-2-6/mono/; revision=147949
2009-12-09 21:29:37 +00:00
Geoff Norton a3e6e82b52 fix the build on the mac 10.4
svn path=/branches/mono-2-6/mono/; revision=147946
2009-12-09 20:55:17 +00:00
Geoff Norton 4f52abe7f6 fix build on win32
svn path=/branches/mono-2-6/mono/; revision=147945
2009-12-09 20:49:01 +00:00
Jb Evain a0f7c6ea11 2009-12-09 Jb Evain <[email protected]>
* ThreadPool.cs (QueueUserWorkItem): properly throw
	an ANE instead of triggering a NRE when being passed a null callback.

	backports r147934.


svn path=/branches/mono-2-6/mcs/; revision=147938
2009-12-09 19:25:44 +00:00
Jb Evain bb834cd689 2009-12-09 Jb Evain <[email protected]>
* StringComparer.cs (GetHashCode): properly throw an
	ANE instead of triggering a NRE.

	backports r147932.


svn path=/branches/mono-2-6/mcs/; revision=147937
2009-12-09 19:24:33 +00:00
Chris Toshok 1c102ac0d5 2009-12-09 Chris Toshok <[email protected]>
* Encoding.cs (get_Default): moonlight defaults to UTF8, not
	UTF8Unmarked.

svn path=/branches/mono-2-6/mcs/; revision=147922
2009-12-09 17:38:57 +00:00
Zoltan Varga c8167fc356 2009-12-09 Zoltan Varga <[email protected]>
* debugger-agent.c (start_runtime_invoke): Fix a crash if this is called
	on the debugger thread.

svn path=/branches/mono-2-6/mono/; revision=147913
2009-12-09 15:04:28 +00:00
Geoff Norton 8ff52f4e31 Disable this on 2.6
svn path=/branches/mono-2-6/mono/; revision=147884
2009-12-08 20:55:28 +00:00
Geoff Norton 7d53402ef0 2009-12-08 Geoff Norton <[email protected]>
* debugger-agent.c:  Refactor the mono_runtime_invoke guarding against
	stepping out into native code.  There were issues with nested invokes
	like .cctors.

svn path=/branches/mono-2-6/mono/; revision=147883
2009-12-08 20:55:25 +00:00
Jonathan Pryor cb11cb28de * sqlmetal.exe.config: Add provider entry for SQL Server.
* sqlmetal.exe.sources: Add additional files.

svn path=/branches/mono-2-6/mcs/; revision=147881
2009-12-08 19:57:44 +00:00
Jonathan Pryor 7eb8ca18fd * src/**/*, examples/**/*: Sync with DbLinq r1293. This adds
SchemaLoader support for Microsoft SQL Server, allowing sqlmetal to 
	  generate entity stubs against SQL Server databases.
	* System.Data.Linq.dll.sources: Add files to the build.

svn path=/branches/mono-2-6/mcs/; revision=147880
2009-12-08 19:57:26 +00:00
Jb Evain 23222c4965 2009-12-08 Jb Evain <[email protected]>
* Enum.cs (IConvertible.ToType): properly convert enum values
	to strings instead of their numeric values.

	backport r147482.


svn path=/branches/mono-2-6/mcs/; revision=147858
2009-12-08 14:35:40 +00:00
Sebastien Pouliot 9830efc1ba 2009-12-08 Sebastien Pouliot <[email protected]>
* driver.c: Fail gracefully with --compile-all if mono_method_signature
	returns NULL (e.g. a bad assembly).


svn path=/branches/mono-2-6/mono/; revision=147854
2009-12-08 14:11:44 +00:00
Marek Safar 7244335fbb 2009-12-08 Marek Safar <[email protected]>
A fix for bug #561149
	anonymous.cs: Use actual type parameters when checking for generic
	method host.


svn path=/branches/mono-2-6/mcs/; revision=147846
2009-12-08 13:01:23 +00:00
Chris Toshok 86d426f94e 2009-12-08 Chris Toshok <[email protected]>
* JsonSerializationReader.cs (DeserializeGenericCollection): in
	the 2.1 case we still need to convert the List<> to an array.

svn path=/branches/mono-2-6/mcs/; revision=147834
2009-12-08 08:05:00 +00:00
Chris Toshok 31ed81efbf in System.ServiceModel.Web/System.Runtime.Serialization.Json:
2009-12-07  Chris Toshok  <[email protected]>

	* JsonReaderWriterFactory.cs (CreateJsonReader): pass null for the
	encoding parameter instead of calling Detect.  The jsonreader's
	PushbackReader will autodetect.
	(Detect): remove.  a BufferedStream created from an unseekable
	stream is itself unseekable, which makes it just as useless.  This
	breaks netflix's isostore file parsing.

	* JsonReader.cs (PushbackReader): add a ctor which doesn't take an
	encoding, for the autodetecting reader case.  for this ctor, pass
	true to StreamReader's ctor for detectEncodingFromByteOrderMarks.

svn path=/branches/mono-2-6/mcs/; revision=147830
2009-12-08 04:56:50 +00:00
Geoff Norton 04d595a679 2009-12-07 Geoff Norton <[email protected]>
* debugger-agent.c:  Darwin can colesce signals, so we need to handle
	the interrupt_count slightly differently.  Native threads were never
	marked as resumed.

svn path=/branches/mono-2-6/mono/; revision=147817
2009-12-07 23:18:11 +00:00
Rodrigo Kumpera 674d53942a In metadata:
2009-12-07  Rodrigo Kumpera  <[email protected]>

	* class.c (mono_class_from_typeref): Bounds check idx against the 
	assemblyref table.

	Backport of r147797.


svn path=/branches/mono-2-6/mono/; revision=147798
2009-12-07 18:53:58 +00:00
Chris Toshok c7793c1daa in class/corlib/System.Collections.Generic/:
2009-12-06  Chris Toshok  <[email protected]>

	* KeyValuePair.cs: we need setters for Key and Value so they can
	be set via reflection from
	System.ServiceModel.System.Runtime.Serialization.Json.TypeMap.cs.

in class/System.ServiceModel.Web/System.Runtime.Serialization.Json/:
2009-12-06  Chris Toshok  <[email protected]>

	* JsonSerializationReader.cs (DeserializeGenericCollection): this
	is jb's (iirc) patch, actually.  Types subclassing from
	ICollection<T> need to be supported, and since it's an interface
	the implementation might be explicit.  So instead of groveling
	around in the actual type, we need to dispatch through the
	interface's method.

	* TypeMap.cs (CreateDefaultTypeMap): we need to include non-public
	properties, since KeyValuePair items must be able to write to Key
	and Value properties.

	* JsonReader.cs (ReadContent): for builtin values (null, true,
	false), use TryReadString instead of individual ReadChar's, since
	they aren't reversible if the string didn't match.  In the default
	case, if we're LameSilverlightLiseralParser, we need to push back
	the current character onto the stream -- this is because for
	netflix's AppConfig.json we were parsing "frameRatePolicy" as
	"rameRatePolicy" (the 'f' was triggering the "false" parsing).
	(class PushBackReader): add this class to unify all the pushing
	back of characters we need to do.  1 character (JsonReader's old
	"saved_char") isn't enough given that you could have a property
	named, e.g., "falsifiable", and we'd need 4 characters worth of
	pushback to recognize that correctly.

svn path=/branches/mono-2-6/mcs/; revision=147767
2009-12-07 07:40:04 +00:00
Zoltan Varga ac520ae2a8 2009-12-05 Zoltan Varga <[email protected]>
* debugger-agent.c (buffer_add_value): Treat I/U as a valuetype, so the
	client can distinguish between intptrs and longs.

svn path=/branches/mono-2-6/mono/; revision=147746
2009-12-05 18:12:52 +00:00
Sebastien Pouliot dde7cdb961 2009-12-05 Sebastien Pouliot <[email protected]>
* System.Net.dll.sources: Remove (almost) everything. This 
	assembly in 3.5+ does not share anything with what SL2/3 
	provide (the later being a part of System.dll)
	[Backport r147727]


svn path=/branches/mono-2-6/mcs/; revision=147743
2009-12-05 17:48:41 +00:00
Zoltan Varga 7056310051 2009-12-05 Zoltan Varga <[email protected]>
Applied patch from Laurent Etiemble ([email protected]).

	* mono/metadata/assembly.c: When opening an assembly image, pass the real
	names in addition to the runtime generated one.

	* mono/metadata/image.h: Add a function to take the real name of the assembly
	image.

	* mono/metadata/image.c: If a real name has been passed to load an assembly,
	use it instead of the runtime generated one.

	Code is contributed under MIT/X11 license.

svn path=/branches/mono-2-6/mono/; revision=147741
2009-12-05 17:33:31 +00:00
Zoltan Varga f93581d4ce 2009-12-05 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_vtype): Do the klass == date_time_class checks
	before the other checks to prevent problems if the DateTime class is blittable.
	Hopefully fixes #559600.

svn path=/branches/mono-2-6/mono/; revision=147738
2009-12-05 06:34:46 +00:00
Geoff Norton 3c8838a150 2009-12-04 Geoff Norton <[email protected]>
* debugger-agent.c: When doing a func-eval invoke on a suspended runtime,
	we need to track the original suspend count so the thread properly
	wakes up in resume_thread.

svn path=/branches/mono-2-6/mono/; revision=147734
2009-12-05 04:06:21 +00:00
Lluis Sanchez 59bb3789ae 2009-12-05 Lluis Sanchez <[email protected]>
* StructMirror.cs: Fix field indexer for structs with static fields.
	* VirtualMachineManager.cs: Added an option to LaunchOptions which
	allows providing a custom method for launching the process. This
	allows launching mono in a wrapper process.


svn path=/branches/mono-2-6/mcs/; revision=147728
2009-12-05 00:56:17 +00:00
Sebastien Pouliot 7aebd64c92 2009-12-04 Sebastien Pouliot <[email protected]>
* CodeModule.cs: Silverlight does not allow AssemblyBuilderAccess.
	RunAndSave so we reduce it to AssemblyBuilderAccess.Run


svn path=/branches/mono-2-6/mcs/; revision=147715
2009-12-04 22:02:21 +00:00
Sebastien Pouliot a7266dcf84 In .:
2009-12-04  Sebastien Pouliot  <[email protected]>

	* net_2_1_raw_System.Net.dll.sources: Remove HttpStatusCode_2_1.cs
	[Backport r147704]

In System.Net:
2009-12-04  Sebastien Pouliot  <[email protected]>

	* HttpStatusCode_2_1.cs: Remove. SL3 provides all status code 
	since they are used for the client stack
	* WebClient_2_1.cs: Add Credentials property and change
	ResponseHeaders property to public
	* WebRequest_2_1.cs: Add Credentials property
	[Backport r147704]


svn path=/branches/mono-2-6/mcs/; revision=147705
2009-12-04 20:49:18 +00:00
Sebastien Pouliot fb93127829 2009-12-04 Sebastien Pouliot <[email protected]>
* SocketAsyncEventArgs.cs: Implement ConnectByNameError for 
	Moonlight 3


svn path=/branches/mono-2-6/mcs/; revision=147701
2009-12-04 20:23:21 +00:00
Sebastien Pouliot 9d33ebc014 2009-12-04 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Add CookieCollection, need to be 
	implemented in the client stack
	* HttpWebResponse_2_1.cs: CookieContainer is virtual. Add FIXME
	to move (a real) implementation into the client stack
	* WebRequest_2_1.cs: Add Create(string) overload (SL3)
	[Backport r147670]


svn path=/branches/mono-2-6/mcs/; revision=147671
2009-12-04 16:48:23 +00:00
Zoltan Varga fb0004eeb8 2009-12-04 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_create_static_rgctx_trampoline): Use a cache
	keyed on the method+addr pair, since addr could be either the method addr or
	an unbox trampoline in the AOT case. Fixes #560246.

svn path=/branches/mono-2-6/mono/; revision=147644
2009-12-04 07:45:58 +00:00
Jonathan Pobst 4e66ddedfd [Backport to 2.6]
2009-12-03  Jonathan Pobst  <[email protected]>

	* SortOrder.cs: Add enum.

2009-12-03  Jonathan Pobst  <[email protected]>

	* System.Data.dll.sources: Add SortOrder.cs.

svn path=/branches/mono-2-6/mcs/; revision=147637
2009-12-04 02:28:14 +00:00
Zoltan Varga cd14c2ec20 2009-12-03 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Call handle_exception_clauses () in the same
	place it was called before too.

svn path=/branches/mono-2-6/mono/; revision=147625
2009-12-03 22:48:09 +00:00
Zoltan Varga 6019fee28f 2009-12-03 Zoltan Varga <[email protected]>
* mini.c (mono_jit_runtime_invoke): Avoid the call to mono_class_setup_vtable ()
	if no security manager is present, to speed up the AOT case. Call
	mono_class_vtable () full with raise_on_error == TRUE instead.

svn path=/branches/mono-2-6/mono/; revision=147610
2009-12-03 21:26:34 +00:00
Zoltan Varga 3111a70c90 2009-12-03 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Call handle_exception_clauses earlier so
	the local optimization passes can take its result into account. Fixes
	#559876.

	* exceptions.cs: Add a test.

svn path=/branches/mono-2-6/mono/; revision=147606
2009-12-03 21:12:41 +00:00
Zoltan Varga 006e069345 2009-01-24 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

        * cpu-ppc64.md (load_memindex): Add loadi8_memindex.

svn path=/branches/mono-2-6/mono/; revision=147600
2009-12-03 20:54:47 +00:00
Zoltan Varga 43d7c99d5d 2009-12-03 Zoltan Varga <[email protected]>
* src/gmisc-unix.c (g_get_user_name): Avoid returning NULL if the env
	var is not set.

svn path=/branches/mono-2-6/mono/; revision=147587
2009-12-03 19:36:12 +00:00
Zoltan Varga 6fa30df202 2009-12-03 Zoltan Varga <[email protected]>
* StructMirror.cs (this): Ignore static fields.

svn path=/branches/mono-2-6/mcs/; revision=147579
2009-12-03 18:37:16 +00:00
Rodrigo Kumpera afd465bdd9 In .:
2009-12-03  Rodrigo Kumpera  <[email protected]>

	* loader.c (find_method_in_class): Ignore methods with broken signatures.

	Fixes #559906.

	Backport of r147557.


svn path=/branches/mono-2-6/mono/; revision=147558
2009-12-03 13:50:10 +00:00
Geoff Norton 12ac0cfb81 2009-12-02 Geoff Norton <[email protected]>
* VirtualMachineManager.cs: We might get a SocketException (interrupted)
	here, so lets just handle all Exceptions to our Accept pattern the same
	way

svn path=/branches/mono-2-6/mcs/; revision=147527
2009-12-03 04:15:30 +00:00
Zoltan Varga db97682388 2009-12-03 Zoltan Varga <[email protected]>
* debugger-agent.c: Rework the handling of stack traces of running threads to
	avoid crashes if compute_frames () tries to walk the stack of running thread.

	* mini.c (mono_print_method_from_ip): Use mini_jit_info_table_find.

	* mini-exceptions.c (mono_jit_walk_stack_from_ctx_in_thread): Set frame->lmf.

	* mini.h (StackFrameInfo): Add an 'lmf' field.

svn path=/branches/mono-2-6/mono/; revision=147519
2009-12-03 01:52:40 +00:00
Sebastien Pouliot e5e171b0ed 2009-12-02 Sebastien Pouliot <[email protected]>
* CommunicationObjectAbortedException.cs, ServerTooBusyException.cs,
	ServiceActivationException.cs: Fix base class
	* ServiceKnownTypeAttribute.cs: Seal type and add missing 
	[AttributeUsage] attribute
	[Backport r147513]


svn path=/branches/mono-2-6/mcs/; revision=147514
2009-12-03 01:38:02 +00:00
Miguel de Icaza 8d19501475 Backport
svn path=/branches/mono-2-6/mono/; revision=147500
2009-12-02 21:33:03 +00:00
Gonzalo Paniagua Javier 48c22433a8 2009-12-02 Gonzalo Paniagua Javier <[email protected]>
* Expression.cs: expression can be null for static getters. Patch from
	Miguel de Icaza ([email protected]).


svn path=/branches/mono-2-6/mcs/; revision=147499
2009-12-02 21:01:55 +00:00
Rodrigo Kumpera 94acf2e05e In .:
* verify.c (get_stack_type): Return that the type is invalid instead of
	asserting.

	* verify.c (mono_method_verify): Verify that all locals and arguments
	have valid stack types.

	Fixes #559913.

	Backport of r147485.

2009-12-02  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=147486
2009-12-02 19:13:10 +00:00
Rodrigo Kumpera 726091788b In .:
* verify.c (mono_method_verify): Bounds check the filter offset. Make all
	bounds checking overflow aware.

	Fixes #559910.

	Backport of r147472.

2009-12-02  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=147473
2009-12-02 18:04:46 +00:00
Rodrigo Kumpera bc5d476580 In .:
* verify.c (do_invoke_method): Check for invalid method signatures.

	Fixes #553450.

	Backport of r147464.

2009-12-02  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=147466
2009-12-02 17:04:37 +00:00
Rodrigo Kumpera a951193a79 In .:
2009-12-02  Rodrigo Kumpera  <[email protected]>
	* class.c (mono_class_setup_fields): Fail an enum without an instance field.

	Fixes #558042.

	Backport of r147455.


svn path=/branches/mono-2-6/mono/; revision=147456
2009-12-02 16:06:34 +00:00
Paolo Molaro af80a02eb3 Wed Dec 2 16:35:49 CET 2009 Paolo Molaro <[email protected]>
* class.c: remove asserts for invalid type token in
	mono_class_name_from_token(), mono_assembly_name_from_token() and
	mono_class_create_from_typedef () (fixes bug #553318).


svn path=/branches/mono-2-6/mono/; revision=147445
2009-12-02 15:32:13 +00:00
Paolo Molaro d3c3e13c76 Wed Dec 2 15:48:19 CET 2009 Paolo Molaro <[email protected]>
* metadata.c, class.c, loader.c: remove assert after bsearch() for
	incorrect assemblies (bug #553322).


svn path=/branches/mono-2-6/mono/; revision=147440
2009-12-02 14:48:37 +00:00
Rodrigo Kumpera d50e89a3d7 In .:
* metadata.c (mono_metadata_inflate_generic_inst): Add MonoError parameter.

	* metadata-internals.h: Change signature of mono_metadata_inflate_generic_inst. 

	* class.c (inflate_generic_type): Use new version of mono_metadata_inflate_generic_inst.

	* class.c (inflate_generic_context): Ditto.

	* loader.c (method_from_methodspec): Ditto.

	Fixes #558230.

	Backport of r147436.

2009-12-02  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=147437
2009-12-02 14:35:22 +00:00
Rodrigo Kumpera 95fbfbc0d0 In .:
* class.c (mono_type_retrieve_from_typespec): Use MonoError machinery to report errors.

	* class.c (mono_class_create_from_typespec): Ditto.

	* class.c (mono_class_get_full): Fix for change on the above 2 functions.

	* class.c (mono_type_get_full): Fix for change on the above 2 functions.

	Fixes #558184.

	Backport of r147427.

2009-12-02  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=147428
2009-12-02 13:24:43 +00:00
Rodrigo Kumpera 118fb543a6 In .:
2009-12-02  Rodrigo Kumpera  <[email protected]>

	* verify.c (mono_class_has_default_constructor): Check fror broken signatures.

	* verify.c (verify_delegate_compatibility): Ditto.

	* verify.c (do_newobj): Ditto.

	Fixes #558046.

	Backport of r147422.


svn path=/branches/mono-2-6/mono/; revision=147424
2009-12-02 12:36:19 +00:00
Marek Habersack e79c9d3504 Backport of r147399
svn path=/branches/mono-2-6/mcs/; revision=147401
2009-12-02 09:01:51 +00:00
Sebastien Pouliot cc90c9b8d3 2009-12-01 Sebastien Pouliot <[email protected]>
* DataContractSerializer.cs: Add two missing methods for FX3.0 
	and SL2/SL3.
	[Backport r147280]


svn path=/branches/mono-2-6/mcs/; revision=147281
2009-12-02 02:08:06 +00:00
Zoltan Varga 230a49d4c9 2009-12-02 Zoltan Varga <[email protected]>
* debugger-agent.c (suspend_current): Always set really_suspended.

svn path=/branches/mono-2-6/mono/; revision=147278
2009-12-02 02:01:25 +00:00
Zoltan Varga b325135bd7 2009-12-02 Zoltan Varga <[email protected]>
* debugger-agent.c (clear_event_request): Clear method entry/exit requests too.

	* exceptions-x86.c (mono_arch_get_restore_context): Restore EAX too.

svn path=/branches/mono-2-6/mono/; revision=147274
2009-12-01 23:44:28 +00:00
Zoltan Varga 0ec5aff390 2009-12-01 Zoltan Varga <[email protected]>
* VirtualMachine.cs (ErrorHandler): Handle NOT_SUSPENDED error code too.

svn path=/branches/mono-2-6/mcs/; revision=147272
2009-12-01 22:27:38 +00:00
Zoltan Varga a3aa25068f 2009-12-01 Zoltan Varga <[email protected]>
* debugger-agent.c (vm_commands): Don't allow invokes on threads which are not
	really suspended.

svn path=/branches/mono-2-6/mono/; revision=147271
2009-12-01 22:26:53 +00:00
Rodrigo Kumpera 90daa550c5 In .:
* verify.c (mono_method_verify): Check for catch clauses with broken
	types.

	Fixes #558465.

	Backport of r147261.

2009-12-01  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=147262
2009-12-01 19:42:37 +00:00
Rodrigo Kumpera a94b3e2399 In mono/metadata:
* verify.c (code_bounds_check): Do proper overflow checking.

	* verify.c (mono_method_verify): The number of switch entries is
	an unsigned int. Properly bounds check it.

	Fixes #558594.

	Backport of r147259.

2009-12-01  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=147260
2009-12-01 19:19:24 +00:00
Zoltan Varga e22dd447f7 2009-12-01 Zoltan Varga <[email protected]>
* cpu-ppc64.md (store_memindex): Add storei8_memindex.

svn path=/branches/mono-2-6/mono/; revision=147258
2009-12-01 19:08:36 +00:00
Rodrigo Kumpera 64d9eda0c4 In .:
* mini-trampolines.c: Fix MSVC build.

	Backport of r147245.

2009-12-01 Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=147253
2009-12-01 18:34:13 +00:00
Rodrigo Kumpera 78b9e915a9 In .:
* metadata.c: Kill mono_metadata_get_param_attrs_checked. Add
	mono_metadata_method_has_param_attrs which only checks if a given param
	list has a non zero flags entry.

	* metadata.c (mono_metadata_get_param_attrs): Add param_count parameter
	to inform how many params should we expect to decode.

	* loader.c (mono_method_signature): Use mono_metadata_method_has_param_attrs
	as it's faster than mono_metadata_get_param_attrs.

	* metadata-internals.h: Fix mono_metadata_get_param_attrs signature and
	add mono_metadata_method_has_param_attrs.

	Backport of r147244.

2009-12-01  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=147252
2009-12-01 18:31:30 +00:00
Sebastien Pouliot c355383183 2009-12-01 Sebastien Pouliot <[email protected]>
* XmlDictionaryReader.cs: Fix ReadValueAsBase64 return value and
	remove NET_2_1 (gui-compare shows this in our 3.0 SP1 profile)
	[Backport r147250]


svn path=/branches/mono-2-6/mcs/; revision=147251
2009-12-01 18:25:29 +00:00
Sebastien Pouliot 6783d561cd 2009-12-01 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.dll.sources: Add existing files that are 
	part of Silverlight 3 (but were not in Silverlight 2)


svn path=/branches/mono-2-6/mcs/; revision=147238
2009-12-01 16:02:24 +00:00
Sebastien Pouliot 5e160a8c79 oops, typo
svn path=/branches/mono-2-6/mcs/; revision=147234
2009-12-01 14:41:53 +00:00
Sebastien Pouliot 6c8320808c 2009-12-01 Sebastien Pouliot <[email protected]>
* CryptoConfig_2_1.cs: Add mapping for SHA256 since it's used 
	internally in corlib (e.g. HMAC256)
	* KeySizes.cs, RandomNumberGenerator.cs, RNGCryptoServiceProvider.cs:
	Remove [ComVisible] attribute from NET_2_1 build.


svn path=/branches/mono-2-6/mcs/; revision=147226
2009-12-01 14:02:51 +00:00
Rodrigo Kumpera dc32001c51 In .:
2009-12-01 Rodrigo Kumpera  <[email protected]>

	* mini-trampolines.c: Check for mono_method_get_vtable_slot failures.

	Backport of r147220.


svn path=/branches/mono-2-6/mono/; revision=147224
2009-12-01 13:54:55 +00:00
Rodrigo Kumpera 3f58280e19 In .:
* class.c (mono_class_setup_vtable_general): Check for mono_method_get_vtable_slot
	failures.

	* class.c (mono_method_get_vtable_slot): Don't assert if the computed method slot
	is -1 but its class is broken.

	Fixes #558522.

	Backport of r147219.

2009-12-01  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=147223
2009-12-01 13:53:11 +00:00
Rodrigo Kumpera 838bee9b74 In .:
* metadata.c: Introduce mono_metadata_get_param_attrs_checked which checks
	for parameter overflow.

	* metadata.c (mono_metadata_parse_method_signature_full): Use checked version
	of mono_metadata_get_param_attrs.

	* metadata-internals.h: Add mono_metadata_get_param_attrs_checked to the internal
	API.

	* loader.c (mono_method_signature): Use checked version of mono_metadata_get_param_attrs.

	Backport of r147218.

2009-12-01  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=147222
2009-12-01 13:52:47 +00:00
Rodrigo Kumpera 8b6fbe262b In .:
2009-12-01  Rodrigo Kumpera  <[email protected]>

	* class.c (mono_class_setup_fields): Check for fields with broken types.

	Fixes #558741.

	Backport of r147214.


svn path=/branches/mono-2-6/mono/; revision=147215
2009-12-01 12:32:48 +00:00
Atsushi Eno b9a2c9d229 backport r147183.
svn path=/branches/mono-2-6/mcs/; revision=147184
2009-12-01 07:15:13 +00:00
Atsushi Eno a55a564918 backport r147178 and r147181.
svn path=/branches/mono-2-6/mcs/; revision=147182
2009-12-01 06:41:11 +00:00
Sebastien Pouliot e390d66fc6 2009-11-30 Sebastien Pouliot <[email protected]>
* CookieCollection.cs: Seal inner CookieCollectionPathComparer
	* IPAddress.cs: Avoid multiple casts in Equals
	* SocketAddress.cs: Avoid multiple casts in Equals
	[Found using Gendarme]
	[Backport r147163]


svn path=/branches/mono-2-6/mcs/; revision=147164
2009-12-01 02:07:53 +00:00
Sebastien Pouliot 57b211972c 2009-11-30 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Remove [StringFreezing] and [DefaultDependency]
	from NET_2_1 builds
	[Backport r147158]


svn path=/branches/mono-2-6/mcs/; revision=147159
2009-12-01 01:38:35 +00:00
Sebastien Pouliot 7d9c1e759d 2009-11-30 Sebastien Pouliot <[email protected]>
* Uri.cs: Hide protected EscapeString and Unescape for SL2/3
	* UriTypeConverter.cs: Seal type for SL2/3
	[Backport r147156]


svn path=/branches/mono-2-6/mcs/; revision=147157
2009-12-01 01:28:25 +00:00
Sebastien Pouliot 3184ffc4bc 2009-11-30 Sebastien Pouliot <[email protected]>
* TypeConverterAttribute.cs: Add missing [ComVisible] for SL2/3 builds
	[Backport r147154]


svn path=/branches/mono-2-6/mcs/; revision=147155
2009-12-01 01:21:35 +00:00
Sebastien Pouliot d994a4f8fa 2009-11-30 Sebastien Pouliot <[email protected]>
* Debug_2_1.cs: Change type to sealed to match SL2/3


svn path=/branches/mono-2-6/mcs/; revision=147152
2009-12-01 01:10:41 +00:00
Zoltan Varga a099d612d9 2009-11-30 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_lowering_pass): Fix an assert which is hit when
	the instruction following an OP_FCOMPARE is optimized away.

svn path=/branches/mono-2-6/mono/; revision=147103
2009-11-30 16:27:21 +00:00
Andrés G. Aragoneses a59ec954c2 * Assembly/AssemblyInfo.cs:
* Makefile: Remove the MOON_A11Y_INTERNAL_HACK define
for MoonAtkBridge after audit finished r147098.

svn path=/branches/mono-2-6/mcs/; revision=147102
2009-11-30 16:27:17 +00:00
Geoff Norton c3c3dd0da9 add Stopwatch to monotouch
svn path=/branches/mono-2-6/mcs/; revision=147099
2009-11-30 16:09:50 +00:00
Marek Habersack 6d6b34516e Backport of r147094
svn path=/branches/mono-2-6/mcs/; revision=147095
2009-11-30 12:52:16 +00:00
Zoltan Varga 2797d41db5 2009-11-29 Zoltan Varga <[email protected]>
* aot-compiler.c: Add an option to set the number of static rgctx trampolines
	generated.

svn path=/branches/mono-2-6/mono/; revision=147064
2009-11-28 23:12:55 +00:00
Zoltan Varga 487afeafc4 2009-11-28 Zoltan Varga <[email protected]>
* appdomain.c (create_exceptions): New helper function extracted from
	mono_runtime_init () to precreate objects used during exception handling.
	(mono_runtime_init): Call it.
	(mono_domain_create_appdomain_internal): Ditto. Fixes #555264.

svn path=/branches/mono-2-6/mono/; revision=147058
2009-11-28 17:34:14 +00:00
Zoltan Varga bff469cafa Fix a warning.
svn path=/branches/mono-2-6/mono/; revision=147041
2009-11-27 15:24:54 +00:00
Zoltan Varga 12986e9a2f 2009-11-27 Zoltan Varga <[email protected]>
* class.c (mono_class_setup_vtable_general): Cache the result of
	get_virtual_methods () since it can be slow because of the metadata
	optimization.

svn path=/branches/mono-2-6/mono/; revision=147039
2009-11-27 15:24:06 +00:00
Zoltan Varga 37b4075223 2009-11-27 Zoltan Varga <[email protected]>
* metadata-internals.h (_MonoImage): Change 'method_cache' to a GHashTable
	from a MonoValueHashTable for now, since the later is based on an earlier
	version of hpj's internal probing code and seems to have serious collision
	issues.

	* loader.c (mono_get_method_full): Update after the change above.

svn path=/branches/mono-2-6/mono/; revision=147038
2009-11-27 15:23:59 +00:00
Zoltan Varga 0fd5b334b0 2009-11-27 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_globals_table): Use temp_prefix instead of .L in a few
	places.

svn path=/branches/mono-2-6/mono/; revision=147021
2009-11-27 02:31:44 +00:00
Zoltan Varga 519a232b2d 2009-11-24 Zoltan Varga <[email protected]>
* aot-compiler.c: Avoid infinite recursion when generic virtual recursion is
	encountered.

svn path=/branches/mono-2-6/mono/; revision=147018
2009-11-26 23:53:41 +00:00
Zoltan Varga 58f33f8959 2009-11-27 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_globals_table): Emit a hash table for the globals, to
	avoid linear searches at runtime.

	* aot-runtime.c (find_symbol): Update this to use the hash.

	* mini.h: Bump AOT file format version.

svn path=/branches/mono-2-6/mono/; revision=147017
2009-11-26 23:53:34 +00:00
Zoltan Varga 1ccdb2b294 Fix the previous commit.
svn path=/branches/mono-2-6/mono/; revision=147014
2009-11-26 21:01:47 +00:00
Zoltan Varga b50110122d 2009-11-26 Zoltan Varga <[email protected]>
* mono-ehash.c (mono_g_hash_table_find): Add this for eglib too.

svn path=/branches/mono-2-6/mono/; revision=147012
2009-11-26 20:54:03 +00:00
Marek Safar f28f29e604 2009-11-26 Marek Safar <[email protected]>
A fix for bug #545081
	* decl.cs: Check private nested types of nested types recursively.


svn path=/branches/mono-2-6/mcs/; revision=147004
2009-11-26 17:45:04 +00:00
Marek Safar 24e5f03bcf 2009-11-26 Marek Safar <[email protected]>
A fix for bug #558305
	* location.cs: Ignore self referencing #line directive


svn path=/branches/mono-2-6/mcs/; revision=146998
2009-11-26 15:32:19 +00:00
Sebastien Pouliot de60184478 2009-11-26 Sebastien Pouliot <[email protected]>
* Random.cs: Fix case where the diff between min and max
	is very large in Next(int,int). Fix bug #558593
	[Backport r146993]


svn path=/branches/mono-2-6/mcs/; revision=146994
2009-11-26 15:21:29 +00:00
Marek Safar 406b2d7a00 2009-11-26 Marek Safar <[email protected]>
A fix for bug #558292
	* class.cs: Allow single unsafe fixed buffer fields.


svn path=/branches/mono-2-6/mcs/; revision=146989
2009-11-26 14:46:56 +00:00
Rodrigo Kumpera ee9a969d25 In metadata:
2009-11-26  Rodrigo Kumpera  <[email protected]>

	* class.c (check_interface_method_override): Check for NULL signatures and fail
	the type.

	* debug-helpers.c (mono_signature_get_desc): Return a fixed string for NULL signatures.

	Fixes #553428.

	Backport of r146970.


svn path=/branches/mono-2-6/mono/; revision=146971
2009-11-26 11:01:16 +00:00
Rodrigo Kumpera a8307a851d In metadata:
* loader.c (field_from_memberref): Resolve the class first then the field
	signature. Remove a lot of duplicated code and make sure we don't pass valid
	values to mono_loader_set_error_field_load.

	Fixes #553306.

	Backport of r146937.

2009-11-25  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=146941
2009-11-25 19:52:19 +00:00
Rodrigo Kumpera 38e80cb638 In metadata:
2009-11-25  Rodrigo Kumpera  <[email protected]>

	* class.c (inflate_generic_type): Change code to use new signature of
	mono_error_set_bad_image.

	Fixes #558124.

	Backport of r146936.

In utils:
2009-11-25 Rodrigo Kumpera  <[email protected]>

	* mono-error-internals.h: Add mono_error_set_bad_image_name and change signature
	of mono_error_set_bad_image to take a MonoImage instead of a const char *.

	* mono-error.c: Same.

	Backport of r146936.


svn path=/branches/mono-2-6/mono/; revision=146939
2009-11-25 19:36:43 +00:00
Jb Evain 0fc5630825 in System.Collections.Generic:
2009-11-25  Jb Evain  <[email protected]>

	* Queue.cs (Enqueue): deal with the case where the tail
	is off the array when deciding to enlarge the capacity.

	backport 146925.

in Test/System.Collections.Generic:
2009-11-25  Jb Evain  <[email protected]>

	* QueueTest.cs: add test for a specific combination of
	calls that make the queue crash when enqueuing an item.

	backport 146925.

svn path=/branches/mono-2-6/mcs/; revision=146926
2009-11-25 17:33:10 +00:00
Sebastien Pouliot 4e11e4cef8 2009-11-25 Sebastien Pouliot <[email protected]>
* verify.c (mono_method_verify): Don't free ctx.params items if 
	we aborted while inflating the ctx.locals. Complete previous fix
	[Backport 146919]


svn path=/branches/mono-2-6/mono/; revision=146920
2009-11-25 16:19:17 +00:00
Jb Evain f4bf675eef in System.Collections.Generic:
2009-11-25  Jb Evain  <[email protected]>

	* Queue.cs (ICollection.CopyTo): fix typo, remove code duplication.

	backport r146914.

in Test/System.Collections.Generic:
2009-11-25  Jb Evain  <[email protected]>

	* QueueTest.cs: add tests for ICollection.CopyTo.

	backport r146914.

svn path=/branches/mono-2-6/mcs/; revision=146915
2009-11-25 15:44:30 +00:00
Zoltan Varga 7a30c3b1ba 2009-11-25 Zoltan Varga <[email protected]>
* Delegate.cs (GetHashCode): Fix this so it is constant.

svn path=/branches/mono-2-6/mcs/; revision=146905
2009-11-25 13:39:35 +00:00
Sebastien Pouliot 19e874fd82 2009-11-25 Sebastien Pouliot <[email protected]>
* verify.c (mono_method_verify): Use the uninflated type name, 
	when the inflated is null, to report errors. Also take care when
	freeing, not to free everything since, in case of an error, some
	stuff would be copies (i.e. not allocated by the function itself)
	Fix bug #558145
	[Backport r146900]


svn path=/branches/mono-2-6/mono/; revision=146901
2009-11-25 13:08:36 +00:00
Zoltan Varga 8c28cbe7a4 2009-11-25 Zoltan Varga <[email protected]>
* debugger-agent.c (vm_commands): Implement EXIT by invoking Environment.Exit ()
	on a random thread if possible.

svn path=/branches/mono-2-6/mono/; revision=146899
2009-11-25 12:51:39 +00:00
Zoltan Varga 398e639c0c 2009-11-25 Zoltan Varga <[email protected]>
* mono-hash.c (mono_g_hash_table_find): Implement this.

svn path=/branches/mono-2-6/mono/; revision=146898
2009-11-25 12:51:29 +00:00
Rodrigo Kumpera 6b0fe6fbb0 In metadata:
* verify.c (stack_push, stack_pop, stack_pop_safe): Assert if we underflow
	or overflow. The caller must have done this check explicitly. This guard us
	from accessing invalid memory.

	* verify.c (do_push_static_field): Check for stack overflow.

	Fixes #553333.

	Backport of r146876.

2009-11-24  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=146881
2009-11-25 02:22:57 +00:00
Rodrigo Kumpera e0c474d88c In .:
2009-11-24  Rodrigo Kumpera  <[email protected]>

	* loader.c (find_method_in_class): Don't crash if the signature cannot
	be resolved.

	* metadata.c (mono_metadata_parse_generic_param): Return NULL instead
	of asserting for the case of invalid params.

	Fixes #553304.

	Backport of r146875.


svn path=/branches/mono-2-6/mono/; revision=146880
2009-11-25 02:05:36 +00:00
Geoff Norton 71a789e874 2009-11-24 Geoff Norton <[email protected]>
* mini-darwin.c: Work around apple bug rdar://7209349  See
        http://openradar.appspot.com/7209349 for details.  Synopsis,
        CoreFoundation SIGTRAP's if you dlopen it off the main thread if its
        never been initialized before.

svn path=/branches/mono-2-6/mono/; revision=146872
2009-11-25 00:53:08 +00:00
Zoltan Varga 38a62af6c3 2009-11-24 Zoltan Varga <[email protected]>
* tramp-arm.c: Use blx instead of mov pc, reg to improve support for thumb.

	* mini-arm.c (mono_arm_thumb_supported): New helper function.

svn path=/branches/mono-2-6/mono/; revision=146864
2009-11-24 21:58:43 +00:00
Bill Holmes 6273d99a9b 2009-11-24 Bill Holmes <[email protected]>
Backport of 144280.

	* cominterop.c : Search the interface parts of vtable to find
	  method matches.  Fixes 547030.

	Code is contributed under MIT/X11 license.


svn path=/branches/mono-2-6/mono/; revision=146860
2009-11-24 20:40:35 +00:00
Zoltan Varga 373365e391 2009-11-24 Zoltan Varga <[email protected]>
* cfold.c (mono_constant_fold_ins): Fix a problem in the previous change,
	OP_SHL_IMM is not 32 bit.

svn path=/branches/mono-2-6/mono/; revision=146853
2009-11-24 18:32:12 +00:00
Sebastien Pouliot a2e70adbe3 2009-11-24 Sebastien Pouliot <[email protected]>
* image.c (mono_image_load_module): Fix crash when a bad assembly
	has no module at all (fix bug #553412) and also replace the 
	g_assert with a return NULL (documented return value for failure)
	[Backport r146839]


svn path=/branches/mono-2-6/mono/; revision=146840
2009-11-24 16:18:21 +00:00
Jb Evain d24d4a16c4 2009-11-24 Jb Evain <[email protected]>
* Array.cs: use ContainsGenericParameters instead of
	IsGenericTypeDefinition as it catches more cases.

	backport r146834.


svn path=/branches/mono-2-6/mcs/; revision=146835
2009-11-24 15:25:21 +00:00
Jb Evain 11ead8847c in System:
2009-11-24  Jb Evain  <[email protected]>

	* Array.cs (IList.this[int]): prevent the use of the IList indexer 
	when dealing with a multi dimensional array.

	backport r146831.

in Test/System:
2009-11-24  Jb Evain  <[email protected]>

	* ArrayTest.cs: test that we don't allow the use of the IList indexer
	on a multi dimensional array.

	backport r146831.

svn path=/branches/mono-2-6/mcs/; revision=146832
2009-11-24 15:04:28 +00:00
Jb Evain 3e4b9eab12 in System:
2009-11-24  Jb Evain  <[email protected]>

	* Array.cs (Clear): throw an IndexOutOfRangeException instead
	of an ArgumentOutRangeException for a negative length.

	backport of r146825.

in Test/System:
2009-11-24  Jb Evain  <[email protected]>

	* ArrayTest: test for the proper exception on Clear ().

	backport of r146825.

svn path=/branches/mono-2-6/mcs/; revision=146827
2009-11-24 14:23:13 +00:00
Jb Evain e2b4686ee1 2009-11-24 Jb Evain <[email protected]>
* ArrayTest.cs: add test ensuring we do not allow open
	generic types in CreateInstance.

	backport of r146823.


svn path=/branches/mono-2-6/mcs/; revision=146824
2009-11-24 13:59:25 +00:00
Jb Evain 4de78797d2 2009-11-24 Jb Evain <[email protected]>
* Array.cs (CreateInstance): do not allow open generic types.

	backport r146821.


svn path=/branches/mono-2-6/mcs/; revision=146822
2009-11-24 13:58:05 +00:00
Jb Evain 2a4644b98b Fix all CreateInstance overloads for void
svn path=/branches/mono-2-6/mcs/; revision=146819
2009-11-24 13:44:07 +00:00
Jb Evain da5f305ee8 2009-11-24 Jb Evain <[email protected]>
* ArrayTest.cs: Add test ensuring we do not allow void arrays.

	backport r146815.

svn path=/branches/mono-2-6/mcs/; revision=146817
2009-11-24 13:33:11 +00:00
Jb Evain 8d29fbdbeb 2009-11-24 Jb Evain <[email protected]>
* Array.cs (CreateInstance): do not allow void arrays.

	backport r146814.

svn path=/branches/mono-2-6/mcs/; revision=146816
2009-11-24 13:32:58 +00:00
Zoltan Varga 39630e629a 2009-11-24 Zoltan Varga <[email protected]>
* debugger-agent.c: Sync this with the version of HEAD to make backporting
	easier.

svn path=/branches/mono-2-6/mono/; revision=146811
2009-11-24 13:06:21 +00:00
Zoltan Varga dba382bccb 2009-11-24 Zoltan Varga <[email protected]>
* ObjectMirror.cs TypeMirror.cs StructMirror.cs: Make the BeginInvokeMethod
	which takes a 'vm' argument obsolete, it was added by mistake, add a version
	without that argument instead.

svn path=/branches/mono-2-6/mcs/; revision=146810
2009-11-24 13:04:03 +00:00
Zoltan Varga 7b6b1d589f 2009-11-19 Zoltan Varga <[email protected]>
* AssemblyMirror.cs: Add a GetName () method.

svn path=/branches/mono-2-6/mcs/; revision=146809
2009-11-24 13:03:44 +00:00
Zoltan Varga 1244874e36 2009-11-24 Zoltan Varga <[email protected]>
* debugger-agent.c (resume_vm): Signal the suspend_cond even if suspend_count
	> 0 since some threads can resume if their resume_count is > 0.
	(invoke_method): Avoid reading freed memory.

svn path=/branches/mono-2-6/mono/; revision=146808
2009-11-24 13:02:41 +00:00
Zoltan Varga 94e71fae97 2009-11-24 Zoltan Varga <[email protected]>
* debugger-agent.c (process_suspend): Extract the suspend code from
	process_single_step_inner () to a separate function. Rework the code to prevent
	races between this function and thread interrupts.

svn path=/branches/mono-2-6/mono/; revision=146807
2009-11-24 13:02:34 +00:00
Zoltan Varga 3a38c41837 2009-11-24 Zoltan Varga <[email protected]>
* debugger-agent.c (suspend_current): Check the resume_count field instead
	of resume_one so suspends+resumes during single threaded invokes work
	correctly.

svn path=/branches/mono-2-6/mono/; revision=146778
2009-11-23 23:18:29 +00:00
Zoltan Varga d7941e0e61 2009-11-22 Zoltan Varga <[email protected]>
* debugger-agent.c: Fix the cygwin build.

svn path=/branches/mono-2-6/mono/; revision=146774
2009-11-23 22:08:29 +00:00
Marek Habersack 355cd2241e Forward-port of r146772
svn path=/branches/mono-2-6/mcs/; revision=146773
2009-11-23 22:03:09 +00:00
Marek Habersack b88e3eb6e4 Backport of r146764
svn path=/branches/mono-2-6/mcs/; revision=146765
2009-11-23 19:00:54 +00:00
Marek Habersack d82248bfa9 typo
svn path=/branches/mono-2-6/mcs/; revision=146751
2009-11-23 17:37:40 +00:00
Marek Habersack b65bf9c867 Fix 1.1 build
svn path=/branches/mono-2-6/mcs/; revision=146747
2009-11-23 17:28:35 +00:00
Marek Habersack b4f535348e Backport of r146732
svn path=/branches/mono-2-6/mcs/; revision=146733
2009-11-23 16:26:04 +00:00
Zoltan Varga bc56cd99ed Fix the 2.6 build.
svn path=/branches/mono-2-6/mono/; revision=146714
2009-11-23 09:29:18 +00:00
Zoltan Varga 10182053a9 2009-11-23 Zoltan Varga <[email protected]>
* debugger-agent.c: Implement single threaded invokes.

svn path=/branches/mono-2-6/mono/; revision=146694
2009-11-23 01:34:29 +00:00
Zoltan Varga a04af9118a 2009-11-23 Zoltan Varga <[email protected]>
* method-to-ir.c (inline_method): Prevent infinite recursion. Fixes
	#557606.

	* generics.cs: Add a test.

svn path=/branches/mono-2-6/mono/; revision=146689
2009-11-22 23:24:02 +00:00
Zoltan Varga 256a98a381 2009-11-21 Zoltan Varga <[email protected]>
* cfold.c (mono_constant_fold_ins): Fix constant folding of shr_imm. Fixes
	#557262.

	* basic.cs: Add a test.

svn path=/branches/mono-2-6/mono/; revision=146668
2009-11-21 02:48:49 +00:00
Atsushi Eno ba4906bc4f backport r146613.
svn path=/branches/mono-2-6/mcs/; revision=146614
2009-11-20 12:08:20 +00:00
Zoltan Varga 4ba4545e8d 2009-11-20 Zoltan Varga <[email protected]>
* tramp-ppc.c (mono_arch_create_generic_class_init_trampoline_full): These
	receive their argument in MONO_ARCH_VTABLE_REG, not in the first argument reg.

svn path=/branches/mono-2-6/mono/; revision=146604
2009-11-20 07:24:55 +00:00
Atsushi Eno bc56f1060e backport r146350.
svn path=/branches/mono-2-6/mcs/; revision=146602
2009-11-20 06:15:36 +00:00
Atsushi Eno 06c665c5ff backport r146348.
svn path=/branches/mono-2-6/mcs/; revision=146601
2009-11-20 06:14:21 +00:00
Atsushi Eno 7fd1ce6d9d backport r146599.
svn path=/branches/mono-2-6/mcs/; revision=146600
2009-11-20 06:09:06 +00:00
Zoltan Varga e372287a58 2009-11-20 Zoltan Varga <[email protected]>
* debugger-agent.c (create_event_list): Fix a crash if an empty assembly list
	was used as an assembly filter.

svn path=/branches/mono-2-6/mono/; revision=146598
2009-11-20 06:00:27 +00:00
Zoltan Varga d643fdb3da 2009-11-19 Zoltan Varga <[email protected]>
* debugger-agent.c (assembly_commands): Implement GET_NAME command.

svn path=/branches/mono-2-6/mono/; revision=146597
2009-11-20 05:59:39 +00:00
Marek Habersack 4cd467c7de Backport of r146546
svn path=/branches/mono-2-6/mcs/; revision=146547
2009-11-19 15:18:58 +00:00
Marek Habersack e48563c4a2 Backport of r146525
svn path=/branches/mono-2-6/mcs/; revision=146526
2009-11-19 12:20:11 +00:00
Marek Habersack ce4c084b61 Backport r146458
svn path=/branches/mono-2-6/mcs/; revision=146459
2009-11-18 22:36:44 +00:00
Sebastien Pouliot 929d904551 2009-11-18 Sebastien Pouliot <[email protected]>
* class.c (can_access_internals): Allow CoreCLR to participate in
	allowing (or not) [InternalsVisibleTo] between assemblies.
	* security-core-clr.c|h: Make sure that only trusted code (a 
	superset of platform code) can access the internals of platform
	code.
	[Backport r146452]


svn path=/branches/mono-2-6/mono/; revision=146453
2009-11-18 21:50:28 +00:00
Zoltan Varga 62c644372c 2009-11-18 Zoltan Varga <[email protected]>
* debugger-agent.c (mono_debugger_agent_handle_exception): Pass a MonoJitInfo to
	create_event_list () so assembly filters can be used.

svn path=/branches/mono-2-6/mono/; revision=146391
2009-11-17 23:54:35 +00:00
Marek Habersack 035c90b4c4 2009-11-17 Marek Habersack <[email protected]>
* tests.make (TEST_RUNTIME_WRAPPERS_PATH): added - used to set up
	correct PATH for tests

svn path=/branches/mono-2-6/mcs/; revision=146379
2009-11-17 22:15:40 +00:00
Marek Habersack 3f61068a5c 2009-11-17 Marek Habersack <[email protected]>
* runtime/Makefile.am (TEST_SUPPORT_FILES): added bin/al2 - needed
	for System.Web tests.

svn path=/branches/mono-2-6/mono/; revision=146378
2009-11-17 22:15:13 +00:00
Marek Habersack f63d52594b Fix 1.1 tests
svn path=/branches/mono-2-6/mcs/; revision=146374
2009-11-17 21:33:17 +00:00
Jackson Harper 87c37b1280 * WebResponse_2_1.cs: Update to the SL3 API.
* HttpWebRequest.cs: Add cookies.


svn path=/branches/mono-2-6/mcs/; revision=146362
2009-11-17 17:13:54 +00:00
Jackson Harper 90433c3359 * WebResponse_2_1.cs: Update to the SL3 API.
svn path=/branches/mono-2-6/mcs/; revision=146357
2009-11-17 16:34:30 +00:00
Zoltan Varga 2be4540393 2009-11-17 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_instances): Emit instances of common generic
	classes for char/bool too.

svn path=/branches/mono-2-6/mono/; revision=146323
2009-11-17 08:44:11 +00:00
Zoltan Varga 6f21bda280 2009-11-17 Zoltan Varga <[email protected]>
* debugger-agent.c (DebuggerTlsData): Honor the DISABLE_SOFT_DEBUG option.

svn path=/branches/mono-2-6/mono/; revision=146314
2009-11-17 02:39:30 +00:00
Zoltan Varga f112f87bdc 2009-11-17 Zoltan Varga <[email protected]>
* debugger-agent.c (DebuggerTlsData): Add a 'really_suspended' flag, not yet
	used.

svn path=/branches/mono-2-6/mono/; revision=146313
2009-11-17 02:39:23 +00:00
Zoltan Varga b47223981c 2009-11-17 Zoltan Varga <[email protected]>
* configure.in: Add a --enable-minimal=soft-debug option.

svn path=/branches/mono-2-6/mono/; revision=146312
2009-11-17 02:39:17 +00:00
Atsushi Eno ae382bd6a1 backport r146307.
svn path=/branches/mono-2-6/mcs/; revision=146308
2009-11-17 01:19:23 +00:00
Zoltan Varga 4f2a7eab9a 2009-11-17 Zoltan Varga <[email protected]>
* Connection.cs ObjectMirror.cs: Implement invokes in a real asynchronous way,
	without waiting.

svn path=/branches/mono-2-6/mcs/; revision=146304
2009-11-17 00:54:38 +00:00
Zoltan Varga f37073904e Fix a typo.
svn path=/branches/mono-2-6/mono/; revision=146299
2009-11-16 23:20:10 +00:00
Zoltan Varga 3816040cc3 2009-11-17 Zoltan Varga <[email protected]>
* debugger-agent.c: Add some definitions to make backporting to 2.4 easier.
	Fix warnings.

svn path=/branches/mono-2-6/mono/; revision=146296
2009-11-16 23:15:31 +00:00
Zoltan Varga 86e648cd02 2009-11-15 Andreas Faerber <[email protected]>
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Signature fix.

	This commit is licensed under the MIT X11 license.

svn path=/branches/mono-2-6/mono/; revision=146294
2009-11-16 23:10:05 +00:00
Gonzalo Paniagua Javier 657cf62e8f 2009-11-16 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: patch by James P. Mitchel III.
	The change corrects an instance of unsynchronized access to shared
	state and is probably the intent of the original code.


svn path=/branches/mono-2-6/mcs/; revision=146291
2009-11-16 21:39:32 +00:00
Marek Habersack 7df0404424 Backport of r146275
svn path=/branches/mono-2-6/mcs/; revision=146276
2009-11-16 17:09:39 +00:00
Sebastien Pouliot 33f7592f9e 2009-11-16 Sebastien Pouliot <[email protected]>
* security-core-clr.c (get_caller_no_reflection_related): 
	[Mono]Type.InvokeMember is outside System.Reflection[.Emit] but
	it's still reflection and must be filtered correctly.


svn path=/branches/mono-2-6/mono/; revision=146257
2009-11-16 14:35:33 +00:00
Marek Habersack 623e2346d5 Backport of r146250
svn path=/branches/mono-2-6/mcs/; revision=146251
2009-11-16 11:54:18 +00:00
Atsushi Eno c33c4d4a92 backport r146023.
svn path=/branches/mono-2-6/mcs/; revision=146244
2009-11-16 08:43:59 +00:00
Atsushi Eno d746ee6888 backport r145920.
svn path=/branches/mono-2-6/mcs/; revision=146243
2009-11-16 08:39:46 +00:00
Atsushi Eno a53c72f671 backport r145910.
svn path=/branches/mono-2-6/mcs/; revision=146242
2009-11-16 08:38:13 +00:00
Gonzalo Paniagua Javier 277019c06c no need for g_strdup_printf here
svn path=/branches/mono-2-6/mono/; revision=146230
2009-11-15 17:42:10 +00:00
Jb Evain c5777ff927 backport unit tests
svn path=/branches/mono-2-6/mcs/; revision=146228
2009-11-15 16:56:28 +00:00
Jb Evain ed8d0fd5b7 2009-11-15 Jb Evain <[email protected]>
backport of 146225.

	* Expression (Call): deal with lambda expression <> delegate
	comparison when filtering methods.
	Fixes #536637.


svn path=/branches/mono-2-6/mcs/; revision=146227
2009-11-15 16:54:10 +00:00
Jb Evain ea7ccc0ca2 2009-11-15 Jb Evain <[email protected]>
backport of 146222.

	* Expression (Call): better filtering of generic methods.
	Fixes #537768.


svn path=/branches/mono-2-6/mcs/; revision=146223
2009-11-15 15:55:46 +00:00
Zoltan Varga cd2414b5ae 2009-11-15 Zoltan Varga <[email protected]>
* boehm-gc.c (mono_gc_base_init): Applied patch from DKoushik K. Dutta (
	[email protected]). Disable GC_no_dls on android.

svn path=/branches/mono-2-6/mono/; revision=146216
2009-11-15 01:20:28 +00:00
Jb Evain 7c15f2f524 backport [146208:146210
svn path=/branches/mono-2-6/mcs/; revision=146212
2009-11-14 15:58:19 +00:00
Zoltan Varga 17882f969c 2009-11-14 Zoltan Varga <[email protected]>
(mono_debugger_agent_thread_interrupt): Save the context so stacktraces for
	threads in native code work.

svn path=/branches/mono-2-6/mono/; revision=146206
2009-11-14 02:42:36 +00:00
Zoltan Varga e4b072c2d7 2009-11-14 Zoltan Varga <[email protected]>
* debugger-agent.c: Pass the 'flags' argument to VM_INVOKE_METHOD earlier in
	the parameter list, so it can be acted upon by vm_commands (). Bump protocol
	version.

svn path=/branches/mono-2-6/mono/; revision=146202
2009-11-14 01:27:24 +00:00
Marek Habersack 47867f30b9 Backport of r146199
svn path=/branches/mono-2-6/mcs/; revision=146200
2009-11-14 01:22:27 +00:00
Zoltan Varga f169b36c49 2009-11-14 Zoltan Varga <[email protected]>
* InvokeOptions.cs: Add SingleThreaded option, not yet works.

	* VirtualMachineManager.cs (Launch): Pass options to BeginLaunch.

svn path=/branches/mono-2-6/mcs/; revision=146198
2009-11-14 01:21:01 +00:00
Marek Habersack cbae4b7ef1 Backport of r146191
svn path=/branches/mono-2-6/mcs/; revision=146192
2009-11-13 23:44:20 +00:00
Zoltan Varga 3d71a2a6e5 2009-11-14 Zoltan Varga <[email protected]>
* ObjectMirror.cs TypeMirror.cs StructMirror.cs: Implement an async version of
	InvokeMethod ().

svn path=/branches/mono-2-6/mcs/; revision=146190
2009-11-13 23:35:36 +00:00
Andreia Gaita 179dfaf89d * XmlTextReaderTests.cs: Added ParsingWithNSMgrSubclass test to check
r146175 fix (chained namespace lookups using XmlNamespaceManager
subclasses)

svn path=/branches/mono-2-6/mcs/; revision=146181
2009-11-13 21:30:56 +00:00
Andreia Gaita e7031d9bb1 [backport r146174]
* XmlNamespaceManager.cs: XmlReader.Read calls LookupNamespace via
the internal sig, which skips any overrides that might exist on
subclasses, so redirect all calls to the public call to make sure
all overrides are called as well.
Make AddNamespace, HasNamespace and RemoveNamespace private.

svn path=/branches/mono-2-6/mcs/; revision=146175
2009-11-13 19:37:22 +00:00
Jonathan Chambers 419504fba0 2009-11-13 Jonathan Chambers <[email protected]>
* debugger-agent.c: Implementation for Windows platform.

        * mini-x86.c: Add support for Windows. Use mono-* synchronization
        primitives. Use SEH to implement breakpoints and single stepping.

        * mini-x86.h: Enable soft debugger on Windows.

        Code contributed under MIT/X11 license.


svn path=/branches/mono-2-6/mono/; revision=146169
2009-11-13 18:18:23 +00:00
Marek Habersack e60ebd985e Backport of r146151
svn path=/branches/mono-2-6/mcs/; revision=146153
2009-11-13 15:47:13 +00:00
Marek Habersack 03b9ccb25f Backport of r146148
svn path=/branches/mono-2-6/mcs/; revision=146149
2009-11-13 15:42:48 +00:00
Marek Habersack 310cc8b767 More fixes to make all 1.1 tests succeed
svn path=/branches/mono-2-6/mcs/; revision=146144
2009-11-13 15:21:06 +00:00
Marek Habersack 8577f45a0c Restore setting up shadow copying for 1.1 to fix failing tests
svn path=/branches/mono-2-6/mcs/; revision=146141
2009-11-13 14:24:33 +00:00
Marek Habersack a95609cfe9 1.1 build fix
svn path=/branches/mono-2-6/mcs/; revision=146138
2009-11-13 14:02:48 +00:00
Marek Habersack 70bf8472dd Backport of several fixes needed to make all 2.0 tests succeed
svn path=/branches/mono-2-6/mcs/; revision=146137
2009-11-13 14:00:23 +00:00
Marek Habersack f31512897b 1.1 build fix
svn path=/branches/mono-2-6/mcs/; revision=146134
2009-11-13 13:26:20 +00:00
Marek Habersack 482b4192d2 Backport of r146126
svn path=/branches/mono-2-6/mcs/; revision=146127
2009-11-13 12:57:10 +00:00
Zoltan Varga 4efab9d7d0 Add missing file to fix the build.
svn path=/branches/mono-2-6/mcs/; revision=146120
2009-11-13 10:42:26 +00:00
Zoltan Varga f948bdc1b0 2009-11-13 Zoltan Varga <[email protected]>
* mini-amd64.c (emit_call_body): Disable usage of near calls when running
	under XEN. Fixes #522894.

svn path=/branches/mono-2-6/mono/; revision=146110
2009-11-13 06:37:12 +00:00
Zoltan Varga 988ccf0b29 2009-11-13 Zoltan Varga <[email protected]>
* InvokeOptions.cs: New file.

	* ObjectMirror.cs TypeMirror.cs StructMirror.cs: Add support for passing flags
	to InvokeMethod ().

	* Connection.cs: Bump protocol version.

svn path=/branches/mono-2-6/mcs/; revision=146108
2009-11-13 06:31:57 +00:00
Zoltan Varga 7c41fdb7ae 2009-11-12 Zoltan Varga <[email protected]>
* VirtualMachineManager.cs: Put back the old Launch (string[], LaunchOptions)
	overload.

svn path=/branches/mono-2-6/mcs/; revision=146107
2009-11-13 06:31:50 +00:00
Zoltan Varga b66da756a1 2009-11-13 Zoltan Varga <[email protected]>
* debugger-agent.c: Add support for passing flags to invokes. Add a
	DISABLE_BREAKPOINTS flag. Bump protocol version.

svn path=/branches/mono-2-6/mono/; revision=146106
2009-11-13 06:29:42 +00:00
Zoltan Varga e955b6943c 2009-11-13 Zoltan Varga <[email protected]>
* processes.c: Include mono-path.h.

svn path=/branches/mono-2-6/mono/; revision=146102
2009-11-13 06:22:55 +00:00
Marek Habersack 9a707334fb Backport of r146092
svn path=/branches/mono-2-6/mcs/; revision=146093
2009-11-13 02:04:44 +00:00
Zoltan Varga 039bda3c65 2009-11-13 Zoltan Varga <[email protected]>
* debugger-agent.c (mono_debugger_agent_single_step_event): Avoid a crash if
	this is called on the debugger thread.

svn path=/branches/mono-2-6/mono/; revision=146091
2009-11-13 01:53:10 +00:00
Marek Habersack c854b9e2d0 Backport of r146086
svn path=/branches/mono-2-6/mcs/; revision=146087
2009-11-13 01:19:06 +00:00
Zoltan Varga a7422ba9bb 2009-11-12 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Handle 'i686-pc-cygwin' too.

svn path=/branches/mono-2-6/mono/; revision=146078
2009-11-12 22:46:33 +00:00
Geoff Norton b7922d723a 2009-11-12 Geoff Norton <[email protected]>
* mono-path.c: When resolving symlinks in a path, we need to
	split on the directory separator and check each level, as
	readlink only checks the final destination.

svn path=/branches/mono-2-6/mono/; revision=146067
2009-11-12 22:07:08 +00:00
Geoff Norton a232e26de1 2009-11-12 Geoff Norton <[email protected]>
* processes.c: match_procname_to_modulename should resolve
	symlinks when checking if two process modules match.

svn path=/branches/mono-2-6/mono/; revision=146066
2009-11-12 22:07:05 +00:00
Carlos Alberto Cortez e2c6f6e791 2009-11-12 Carlos Alberto Cortez <[email protected]>
* ComboBoxTest.cs: New test case for data binding and Text
	interaction.


svn path=/branches/mono-2-6/mcs/; revision=146047
2009-11-12 16:39:39 +00:00
Carlos Alberto Cortez 5b10b1d6a9 [merge the very last changes from trunk, -r 144884:145790]
2009-11-09  Carlos Alberto Cortez <[email protected]>
	
		* DataGridTextBoxColumn.cs:
		* DataGrid.cs: Position the cursor in the add row should *not* show
		yet another new row - that will happen till we get any real input data
		from the user. When that happens, we will also mark the new row as
		ready to commit - otherwise, when the cursor moves to a different row,
		the just added row will be discarded. This is exactly what .Net seems
		to do.

	2009-11-09  Carlos Alberto Cortez <[email protected]>

		* DataGrid.cs: The large value for our vertical scrollbar should
		depend on the number of visible rows, instead of trying to re-use the
		value of VisibleRowCount, which is the value of *current* visible
		rows, and can easily end messed up if new rows are added/removed.

	2009-11-09  Carlos Alberto Cortez <[email protected]>

		* DataGrid.cs: When moving the scroll, *dont* ever end the current
		edit - this could seriously mess up our current edit cycle, specially
		when adding new rows.

		2009-11-02  Carlos Alberto Cortez <[email protected]>

		* TabControl.cs: In OnKeyDown call the base implementation first -
		this way we let the user tell us whether we should handle the key or
		not.
		Fixes #543717.

	2009-11-02  Carlos Alberto Cortez <[email protected]>

		* DataGrid.cs: Implement removal of rows the Correct Way by creating a
		copy of the indexes, as any direct write access to the source will cause to
		reset the entire selection - also, do the linear de-selection in
		reverse order to avoid any index mismatch in the source, due to out of
		synchronization removing the rows.

	2009-11-02  Carlos Alberto Cortez <[email protected]>

		* DataGridTextBoxColumn.cs:
		* DataGrid.cs: Don't use this add-pending behaviour to try to add a
		new row until we have the first input char - it was helping us to fix
		other issues we have/had, but it's not matching .net.

	2009-10-30  Carlos Alberto Cortez <[email protected]>

		* TextBoxBase.cs: When returning the preferred height, and we are
		supposed to be borderless, return the TopMargin value - usually in
		borderless mode it has a value of 0, but in the ToolStrip controls we
		need to set the margin manually.
		Fixes #551214.

	2009-10-29  Carlos Alberto Cortez <[email protected]>

		* ToolTip.cs: ShowAlways works at the form level, not at the control
		level. Fixes #544565.

	2009-10-28  Carlos Alberto Cortez <[email protected]>

		* ButtonBase.cs: Usually the click routines are handled in Control,
		but in this class we are handling it ourselved, thus we need to have
		the same calls, and we were missing the call to MouseClick.
		Patch by Eric Petit <[email protected]>.

	2009-10-26  Carlos Alberto Cortez <[email protected]>

		* ComboBox.cs: When setting Text and data source is being used, if the
		passed value is not matching any of the items in the source, don't
		pass it to GetItemText, since it's useless, as GetItemText expects a
		valid item.
		Fixes #546009.

2009-11-12  Carlos Alberto Cortez <[email protected]>


svn path=/branches/mono-2-6/mcs/; revision=146046
2009-11-12 16:39:28 +00:00
Eric Maupin ee905d0c03 * System.Linq/Lookup.cs: Support null keys
* System.Linq/Enumerable.cs: Support null keys

svn path=/branches/mono-2-6/mcs/; revision=146040
2009-11-12 15:04:44 +00:00
Carlos Alberto Cortez f5628732ec 2009-11-12 Carlos Alberto Cortez <[email protected]>
[backport the improvements and speedups for ListView from trunk,
-r 142738:144115]

	2009-10-14  Carlos Alberto Cortez <[email protected]>

		* ListView.cs: When retrieving the top item, take into account the
		offset represented by the header control, to retrieve the proper
		value. Patch by Christoph von Wittich (Christoph at ApiViewer.de)
		Fixes the remaining bits of #543773.

		2009-10-14  Carlos Alberto Cortez <[email protected]>

		* ListView.cs: TopItem setter should set the value as the top, not
		only ensuring its visibility.
		Fixes part of #543773.

		2009-10-12  Carlos Alberto Cortez <[email protected]>

		* ListView.cs: For virtual mode, when navigating the items using keyboard,
		don't use the matrix of positions, and instead calculate the positions
		based on the number of cols and rows, taking advantage of the fixed
		positions of items. Use the same idea to implement FirstVisibleIndex,
		so we avoid iterating over all the items. Patch by Stephen Robinson
		mono at esar.org.uk.
		Fixes part of #467418.

		2009-10-07  Carlos Alberto Cortez <[email protected]>

		* ListView.cs: When computing the value for groups height don't use
		text_size field, since in LargeIcon view it sometimes contains a
		double height value - use Font.Height directly, and also improve the
		padding value.
		* ThemeWin32Classic: The same as above.
		This way the space between the group header, the line, and the items
		area is not that big in LargeIcon view.

		2009-10-04  Carlos Alberto Cortez <[email protected]>

		* ListView.cs: When retrieving the fixed positions for the items in
		virtual mode, use the row value to compute the coords of the item,
		instead of the col value, as opposed to SmallIcon/LargeIcon views.

		2009-09-29  Carlos Alberto Cortez <[email protected]>

		* ListView.cs: The location of the items should be computed on the fly
		in virtual mode - that decreased speed overall, but reduces the load
		time.that decreased speed overall, but reduces the load time. Also,
		handle the cases where we were using data structures we don't need to
		use/create for this mode.
		Fixes part of #467418.

		2009-09-28  Carlos Alberto Cortez <[email protected]>

		* ListView.cs: Tile view and VirtualMode can't be applied together.
		Patch by Stephen Robinson <[email protected]>.

		2009-09-28  Carlos Alberto Cortez <[email protected]>

		* ListView.cs: When calculating the layout for Details view, don't ask
		for the items *at all* in case we are in virtual mode. This should
		re-enable the proper behaviour of virtual mode.


svn path=/branches/mono-2-6/mcs/; revision=146038
2009-11-12 13:50:29 +00:00
Jb Evain 1c21cdd969 2009-11-12 Jb Evain <[email protected]>
* Aes.cs: avoid using an hardcoded assembly version for System.Core.


svn path=/branches/mono-2-6/mcs/; revision=146034
2009-11-12 12:34:20 +00:00
Jb Evain 1261df67de 2009-11-12 Jb Evain <[email protected]>
* Consts.cs.in: add a AssemblySystem_Core constant.


svn path=/branches/mono-2-6/mcs/; revision=146032
2009-11-12 12:33:00 +00:00
Geoff Norton d5fc6487e8 2009-11-11 Geoff Norton <[email protected]>
* VirtualMachineManager.cs: Refactor the APIs to have async methods.
	Remove a bunch of Listen overloads that are pointless.  Refactor
	Launch to take a ProcessStartInfo instead of string arguments.

svn path=/branches/mono-2-6/mcs/; revision=145991
2009-11-11 22:35:31 +00:00
Sebastien Pouliot 039addd678 2009-11-11 Sebastien Pouliot <[email protected]>
* Console.cs: Reduce duplication between OpenStandard[Input|
	Output|Error] and, for Moonlight, don't return a NullStream if
	security is disabled (e.g. when smcs executes)

	r: alan


svn path=/branches/mono-2-6/mcs/; revision=145957
2009-11-11 15:06:11 +00:00
Andrew Jorgensen b03bdf690a spec file fixes
svn path=/branches/mono-2-6/mono/; revision=145898
2009-11-10 23:18:21 +00:00
Geoff Norton 89feb05d76 Add ReaderWriterLockSlim to monotouch
svn path=/branches/mono-2-6/mcs/; revision=145891
2009-11-10 22:47:32 +00:00
Geoff Norton e214896cef restore iso-8859-1 to monotouch
svn path=/branches/mono-2-6/mcs/; revision=145880
2009-11-10 20:50:44 +00:00
Geoff Norton 664192081a cant use net_2_1_bootstrap as it does not include the pinvoke callback attribute
svn path=/branches/mono-2-6/mcs/; revision=145879
2009-11-10 20:50:17 +00:00
Rodrigo Kumpera a0abbe81d7 In .:
* reflection.c (mono_image_module_basic_init): Handle exceptions correctly.

	Backport of r145798.

2009-11-10  Rodrigo Kumpera  <[email protected]>

svn path=/branches/mono-2-6/mono/; revision=145857
2009-11-10 17:28:40 +00:00
Rodrigo Kumpera e72be115d0 In .:
2009-11-10  Rodrigo Kumpera  <[email protected]>
    
	* object-internals.h: Change signature for mono_string_to_utf8_image.
	* object.c (mono_string_to_utf8_image): Change signature to take a MonoError
	argument.

	* reflection.c: Take care of mono_string_to_utf8_image change and avoid raising
	exceptions due to mono_string_to_utf8.

	Backport of r145797.


svn path=/branches/mono-2-6/mono/; revision=145855
2009-11-10 17:27:16 +00:00
Rodrigo Kumpera 48017d25b5 In metadata:
* object-internals.h: Change signature for mono_string_to_utf8_mp.

    * object.c (mono_remote_class): Make sure all resources are released before
    raising an exception.

    * object.c (mono_print_unhandled_exception): Avoid raising an exception.

	Backport of r145796.

2009-11-09  Rodrigo Kumpera  <[email protected]>

svn path=/branches/mono-2-6/mono/; revision=145854
2009-11-10 17:17:52 +00:00
Rodrigo Kumpera 5a192ac3f9 In .:
* mono-perfcounters.c (network_get_impl): Change variable initialization
     ordering to fix potential memory leak in case of exceptions.
 
     * mono-perfcounters.c (mono_perfcounter_create): Properly handle badly
     encoded strings.
	Backport of r145795. 

2009-11-09  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=145849
2009-11-10 16:49:07 +00:00
Rodrigo Kumpera b22c806052 In .:
2009-11-09  Rodrigo Kumpera  <[email protected]>

    * file-io.c (ves_icall_System_IO_MonoIO_GetFileSystemEntries): Change
    variable initialization ordering to fix potential memory leak in case
    of exceptions.

	Backport of r145794.


svn path=/branches/mono-2-6/mono/; revision=145848
2009-11-10 16:44:33 +00:00
Rodrigo Kumpera 2673f937de In .:
* appdomain.c: Fix shadow path code to better deal with exceptions.

	Backport of r145658.

2009-11-10  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=145847
2009-11-10 16:43:06 +00:00
Rodrigo Kumpera 4589a8c5fb In .:
* appdomain.c: Use checked version of mono_string_to_utf8 to avoid raising an
    exception in the middle of the runtime code.

	Backport of r145657.

2009-11-10  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=145837
2009-11-10 14:23:39 +00:00
Rodrigo Kumpera 2a0e0be91f In .:
* icall.c (ves_icall_System_Environment_InternalSetEnvironmentVariable): Don't
    leak memory with broken envvar value.

	Backport of r145656.

2009-11-10  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=145836
2009-11-10 14:18:13 +00:00
Marek Habersack 9b5480fbf4 Backport of r145831
svn path=/branches/mono-2-6/mcs/; revision=145832
2009-11-10 13:49:25 +00:00
Rodrigo Kumpera a206154c18 In .:
2009-11-10  Rodrigo Kumpera  <[email protected]>

	* object-internals.h: Add mono_string_to_utf8_checked.

	* object.c: Implement mono_string_to_utf8_checked.

	Backport of r145539.


svn path=/branches/mono-2-6/mono/; revision=145830
2009-11-10 13:38:30 +00:00
Rodrigo Kumpera eb657d1b71 In .:
2009-11-10 Rodrigo Kumpera  <[email protected]>
 
     * mono-error-internals.h: Add mono_error_set_argument and mono_error_raise_exception.
 
     * mono-error.h: Add new MONO_ERROR_ARGUMENT constant for
     ArgumentException.
 
     * mono-error.c: Implement mono_error_set_argument, mono_error_raise_exception.
 
     * mono-error.c (mono_error_prepare_exception) Init error_out at the beginning. Add support
     for MONO_ERROR_ARGUMENT.

	Backport of r145538.


svn path=/branches/mono-2-6/mono/; revision=145828
2009-11-10 13:31:37 +00:00
Marek Habersack 216c827113 Backport of r145824
svn path=/branches/mono-2-6/mcs/; revision=145825
2009-11-10 10:42:00 +00:00
Gonzalo Paniagua Javier b22d833768 2009-11-10 Gonzalo Paniagua Javier <[email protected]>
* Socket_2_1.cs: throw when shutting down a socket that is not
	connected. Don't linger if the socket is not connected.


svn path=/branches/mono-2-6/mcs/; revision=145808
2009-11-10 05:56:07 +00:00
Zoltan Varga b33b11f9d5 2009-11-10 Zoltan Varga <[email protected]>
* VirtualMachineManager.cs (Launch): Close the listening socket instead of
	shutting it down since Shutdown throws on exception on non-connected sockets
	in ms.net.

svn path=/branches/mono-2-6/mcs/; revision=145804
2009-11-10 04:50:37 +00:00
Zoltan Varga 5ed2d7937b 2009-11-06 Zoltan Varga <[email protected]>
* debugger-agent.c (resume_from_signal_handler): New helper function extracted
	from the single step/breakpoint handlers. Add a FIXME.

svn path=/branches/mono-2-6/mono/; revision=145791
2009-11-10 01:58:43 +00:00
Zoltan Varga 7dcae3becc 2009-11-10 Zoltan Varga <[email protected]>
* exceptions-arm.c (mono_arch_get_call_filter_full): Update after the
	LDMIA->LDM macro name change.

svn path=/branches/mono-2-6/mono/; revision=145789
2009-11-10 01:00:41 +00:00
Zoltan Varga eb92a1217d 2009-11-10 Zoltan Varga <[email protected]>
* arm/arm-codegen.h: Fix the names of the LDMIA/STMIA macros, they don't actually
	update the base register.

svn path=/branches/mono-2-6/mono/; revision=145788
2009-11-10 01:00:32 +00:00
Geoff Norton 9f97213017 Support building on 10.6
svn path=/branches/mono-2-6/mono/; revision=145785
2009-11-09 23:45:33 +00:00
Chris Toshok e0eee654e3 2009-11-09 Chris Toshok <[email protected]>
* Console.cs (OpenStandardError,OpenStandardOut,OpenStandardInput):
        for NET_2_1 && !MONOTOUCH, disable these streams unless a debugger
        is attached, or unless the MOONLIGHT_ENABLE_CONSOLE environment
        variable is defined.

        reviewed: alan
        


svn path=/branches/mono-2-6/mcs/; revision=145773
2009-11-09 21:17:17 +00:00
Marek Safar dc46c4ab7e Fixed dlr dist
svn path=/branches/mono-2-6/mcs/; revision=145768
2009-11-09 20:48:30 +00:00
Stephen Shaw 6ab9b9616d Added lc to spec file
svn path=/branches/mono-2-6/mono/; revision=145757
2009-11-09 18:16:16 +00:00
Stephen Shaw dcf3a9eceb add gcc-c++ dep (ajorg)
svn path=/branches/mono-2-6/mono/; revision=145753
2009-11-09 17:37:42 +00:00
Jonathan Pryor 63cd0a2589 * src/DbLinq.MySql/MysqlDataContext.cs: Delete.
* System.Data.Linq.dll.sources: Use src/DbLinq.MySql/MySqlDataContext.cs; 
	  fixes the build for case-insensitive filesystems.

svn path=/branches/mono-2-6/mcs/; revision=145749
2009-11-09 17:10:37 +00:00
Marek Habersack 2c23326622 Backport of r145740
svn path=/branches/mono-2-6/mcs/; revision=145741
2009-11-09 14:21:28 +00:00
Marek Habersack 52bff1dfe0 Backport of r145735
svn path=/branches/mono-2-6/mcs/; revision=145736
2009-11-09 13:36:48 +00:00
Marek Habersack a53f1b85a1 Backport of r145727
svn path=/branches/mono-2-6/mcs/; revision=145728
2009-11-09 12:31:23 +00:00
Marek Habersack 6c93b0c613 Backport r145721
svn path=/branches/mono-2-6/mcs/; revision=145722
2009-11-09 11:46:58 +00:00
Jb Evain 551c3e365a bring XslCompiledTransform to MonoTouch
svn path=/branches/mono-2-6/mcs/; revision=145712
2009-11-09 10:33:21 +00:00
Zoltan Varga 61715e57c9 2009-11-09 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_allocate_vars): Fix the previous change by passing
	&align to mini_type_stack_size_full ().

svn path=/branches/mono-2-6/mono/; revision=145700
2009-11-09 02:04:12 +00:00
Zoltan Varga ea48e253e3 2009-11-08 Zoltan Varga <[email protected]>
* mini-arm.c: Compute the stack space used by arguments using
	mini_type_stack_size_full ().

svn path=/branches/mono-2-6/mono/; revision=145686
2009-11-08 22:37:29 +00:00
Zoltan Varga 46692f3796 2009-11-07 Zoltan Varga <[email protected]>
* driver.c (mono_jit_parse_options): New public API function to parse options
	as done by the runtime executable.

svn path=/branches/mono-2-6/mono/; revision=145654
2009-11-07 22:10:24 +00:00
Zoltan Varga 8ad7a5d34a 2009-11-07 Zoltan Varga <[email protected]>
* debugger-agent.c (buffer_add_cattrs): Fix reading an uninitialized variable
	when handling named arguments.

svn path=/branches/mono-2-6/mono/; revision=145652
2009-11-07 21:41:37 +00:00
Marek Safar e267e170ed 2009-11-07 Marek Safar <[email protected]>
A fix for bug #553465

	* expression.cs: Fixed mixed version of expression tree anonymous
	type.


svn path=/branches/mono-2-6/mcs/; revision=145646
2009-11-07 10:08:44 +00:00
Zoltan Varga 42f310d152 Add missing files.
svn path=/branches/mono-2-6/mcs/; revision=145642
2009-11-07 08:51:47 +00:00
Zoltan Varga 3dd4322874 2009-11-07 Zoltan Varga <[email protected]>
* Makefile (net_2_0_dirs): Add System.Data.Services.

svn path=/branches/mono-2-6/mcs/; revision=145634
2009-11-07 02:47:46 +00:00
Zoltan Varga 1136d59fc0 2009-11-07 Zoltan Varga <[email protected]>
*: Move .cs files to the System.Data.Services subdir to match their namespace,
	move tests to 'Test' from 'Tests', add Makefile.

svn path=/branches/mono-2-6/mcs/; revision=145633
2009-11-07 02:47:39 +00:00
Zoltan Varga b6d22a08d7 Added System.Data.Services sources
svn path=/branches/mono-2-6/mcs/; revision=145632
2009-11-07 02:47:23 +00:00
Jonathan Pryor f3194d60b5 * Makefile: re-enable the tests. They were disabled in r137153
because they weren't compiling, which was because System.Data.Linq
	  wasn't listing sqlmetal_net_2_0 as a friend assembly.  (Why this
	  built before I couldn't tell you...)  Fixed in latest S.D.L.

svn path=/branches/mono-2-6/mcs/; revision=145617
2009-11-06 21:51:49 +00:00
Jonathan Pryor 6d2aa53461 * src/**/*: Sync with DbLinq r1265. This fixes sqlmetal (it shouldn't
generate constructors referring to IVendor), enhances query support
	  so that extension methods can be used within 'select' blocks,
	  various FirebirdSQL fixes, etc.

svn path=/branches/mono-2-6/mcs/; revision=145616
2009-11-06 21:51:21 +00:00
Geoff Norton 3b38f04754 backport missing file for monotouch build
svn path=/branches/mono-2-6/mcs/; revision=145602
2009-11-06 16:59:31 +00:00
Marek Safar 1ad7c28cc7 2009-11-06 Marek Safar <[email protected]>
A fix for bug #553031

	* linq.cs, expression.cs, class.cs, cs-parser.jay: Initialize
	expression tree version of anonymous type with members declaration.


svn path=/branches/mono-2-6/mcs/; revision=145585
2009-11-06 13:21:30 +00:00
Marek Safar e7c6847d8c Updated.
svn path=/branches/mono-2-6/mcs/; revision=145583
2009-11-06 13:15:43 +00:00
Zoltan Varga e06b86c2e7 2009-11-06 Zoltan Varga <[email protected]>
* mini-arm.c debugger-agent.c: Android changes from Koushik K. Dutta
	([email protected]).

svn path=/branches/mono-2-6/mono/; revision=145575
2009-11-06 09:15:20 +00:00
Zoltan Varga 442a5c1927 2009-11-06 Zoltan Varga <[email protected]>
* mini-arm.c (handle_thunk): Add a domain argument to control the domain
	where the thunk memory should be allocated from. Fixes appdomain unloading
	on arm.

svn path=/branches/mono-2-6/mono/; revision=145570
2009-11-06 08:18:18 +00:00
Zoltan Varga af8b26cfce 2009-11-06 Zoltan Varga <[email protected]>
* mini-arm.c exceptions-arm.c: Make ctx->regs map directly to the 16 hardware
	registers, instead of r4..r11,ip,lr. Make restore_context () restore r0..r3 too.

svn path=/branches/mono-2-6/mono/; revision=145564
2009-11-06 06:03:03 +00:00
Geoff Norton aedff42490 2009-11-05 Geoff Norton <[email protected]>
* HttpsTransportBindingElement.cs: Implement basic https transport
	binding support for Moonlight and MonoTouch

svn path=/branches/mono-2-6/mcs/; revision=145558
2009-11-06 04:18:49 +00:00
Geoff Norton ac13a98236 2009-11-05 Geoff Norton <[email protected]>
* ClientRuntimeChannel.cs: Support OperationContext in async calls
        as well

svn path=/branches/mono-2-6/mcs/; revision=145557
2009-11-06 04:18:29 +00:00
Zoltan Varga 94a0a08a5a 2009-11-05 Rodrigo Kumpera <[email protected]>
* debugger-agent.c: Fix windows build.

svn path=/branches/mono-2-6/mono/; revision=145553
2009-11-05 22:19:03 +00:00
Zoltan Varga 8e89b3a0ca 2009-11-05 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Don't allow OP_SEQ_POINT in
	AOT, as it is not implemented yet.

	* mini-x86.c (mono_arch_output_basic_block): Ditto.

svn path=/branches/mono-2-6/mono/; revision=145552
2009-11-05 22:07:03 +00:00
Zoltan Varga 8c45bb18fe 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c (debugger_thread): Call mono_set_is_debugger_attached ()
	after the client connects/disconnects.

svn path=/branches/mono-2-6/mono/; revision=145551
2009-11-05 22:06:56 +00:00
Zoltan Varga a9a8ebac53 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c: Add an 'onthrow' option to start the debugger agent
	when an exception of a given type is thrown.

svn path=/branches/mono-2-6/mono/; revision=145550
2009-11-05 22:06:49 +00:00
Zoltan Varga b1769245b8 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c: Add a 'onuncaught' option to start the debugger agent
	only on an uncaught exception.

	* mini-exceptions.c: Notify the debugger agent on an uncaught exception.

svn path=/branches/mono-2-6/mono/; revision=145549
2009-11-05 22:06:42 +00:00
Zoltan Varga 404fd5363d 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c: Add a 'launch' option.

svn path=/branches/mono-2-6/mono/; revision=145548
2009-11-05 22:06:35 +00:00
Zoltan Varga b97e620cd1 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c: Add a 'timeout' option.

svn path=/branches/mono-2-6/mono/; revision=145547
2009-11-05 22:06:28 +00:00
Zoltan Varga d8b6135f69 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c: Implement the 'server' and 'suspend' options supported by
	the JDWP agent.

svn path=/branches/mono-2-6/mono/; revision=145546
2009-11-05 22:06:21 +00:00
Zoltan Varga f8dc6c2e12 2009-11-04 Zoltan Varga <[email protected]>
* mini-arm.c: Fix the arm build.

svn path=/branches/mono-2-6/mono/; revision=145545
2009-11-05 22:06:05 +00:00
Zoltan Varga 7053970b84 2009-11-04 Gonzalo Paniagua Javier <[email protected]>
* debugger-agent.c: defer including mono-mutex.h until we know the
	agent is supported.

svn path=/branches/mono-2-6/mono/; revision=145544
2009-11-05 22:05:48 +00:00
Zoltan Varga 082692d778 2009-11-04 Jonathan Chambers <[email protected]>
* debugger-agent.c: Changes to build on windows. Use mono-mutex instead
	of pthreads directly.

	* mini.c (mono_sigfpe_signal_handler): Changed signature of Windows
	exception handlers. Pass info argument.

	* mini.h: Adjust signatures of soft debugger functions to pass void*
	instead of siginfo_t. Adjust SIG_HANDLER_SIGNATURE on Windows.

	* mini-amd64.c (mono_arch_is_single_step_event): Adjust signature to pass void*
	instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
	(mono_arch_is_breakpoint_event): Adjust signature to pass void*
	instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.

	* mini-amd64.h: Adjust MonoW32ExceptionHandler signature.

	* mini-x86.c (mono_arch_is_single_step_event): Adjust signature to pass void*
	instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
	(mono_arch_is_breakpoint_event): Adjust signature to pass void*
	instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.

	* mini-x86.h: Adjust MonoW32ExceptionHandler signature.

	* exceptions-x86.c: Adjust W32_SEH_HANDLE_EX for new signature.

	* exceptions-amd64.c: Adjust W32_SEH_HANDLE_EX for new signature.

	* mono-semaphore.h: Skeleton implementation for Windows.

	Code contributed under MIT/X11 license.

svn path=/branches/mono-2-6/mono/; revision=145543
2009-11-05 22:05:28 +00:00
Sebastien Pouliot af1d4ea013 2009-11-05 Sebastien Pouliot <[email protected]>
* class.c: When CoreCLR is enabled don't call mono_init_com_types
	if MONO_CLASS_IS_IMPORT return true unless the type reside in 
	platform (trusted) code. Instead we return a TypeLoadException to
	be thrown later. This is the exception thrown by Silverlight 2 if
	a type, inside application (user) code is marked with [ComImport]
	[Backport r145534]


svn path=/branches/mono-2-6/mono/; revision=145535
2009-11-05 21:19:25 +00:00
Zoltan Varga f65ba83e60 2009-11-05 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Diagnostics_Debugger_IsAttached_internal): Call
	mono_is_debugger_attached () too.

	* mono-debug.c (mono_is_debugger_attached): New helper function.
	(mono_set_is_debugger_attached): Ditto.

svn path=/branches/mono-2-6/mono/; revision=145523
2009-11-05 18:11:19 +00:00
Rodrigo Kumpera ea4b86c45a In metadata:
* class.c: Add missing check for load errors after every
	call to mono_class_setup_fields

	Fixes #552282.

	Backport of r145501.

2009-11-05  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=145516
2009-11-05 17:53:36 +00:00
Rolf Bjarne Kvinge 0eb5a45672 2009-11-05 Rolf Bjarne Kvinge <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Add Consts.cs, Locale.cs and
	MonoTODOAttribute.cs to the build to fix ambiguous references to
	those types in corlib and System.dll. This way we'll use our own
	types.

svn path=/branches/mono-2-6/mcs/; revision=145487
2009-11-05 15:58:23 +00:00
Rodrigo Kumpera 7d6bcfe942 In .:
2009-11-05  Rodrigo Kumpera  <[email protected]>

	* metadata.c: Change event table schema to use TDOR for event type
	as this is what it's meant to be.

	* metadata.c (mono_metadata_compute_size): Change MONO_TABLE_ASSEMBLYPROCESSOR
	to MONO_TABLE_ASSEMBLYREFPROCESSOR, which is table that has a MONO_MT_TABLE_IDX
	entry.

	* metadata.c (mono_metadata_compute_size): Trim MT_TABLE_IDX of code that no
	longer makes sense: remove MONO_TABLE_EVENT and remove checks for non-existent
	rows in MONO_TABLE_GENERICPARAM.

	Fixes #552289.

	Backport of r145478.


svn path=/branches/mono-2-6/mono/; revision=145480
2009-11-05 13:57:06 +00:00
Rolf Bjarne Kvinge 4397219217 In mono/metadata:
2009-11-05  Rolf Bjarne Kvinge  <[email protected]>

	* culture-info-tables.h: regenerated.

In tools/locale-builder:
2009-11-05  Rolf Bjarne Kvinge  <[email protected]>

	* Driver.cs: Generate locale data for neutral cultures too. Moonlight
	requires it.

svn path=/branches/mono-2-6/mono/; revision=145468
2009-11-05 10:06:32 +00:00
Rolf Bjarne Kvinge e4c4eaa42c 2009-11-04 Rolf Bjarne Kvinge <[email protected]>
* CultureInfo.cs: Allow neutral cultures, and fix zh-Hans/zh-Hant
	- they're stored internally as zh-chs/zh-cht, and only visible as
	zh-Hans/zh-Hant. zh-CHS/zh-CHS are invalid cultures in SL.

svn path=/branches/mono-2-6/mcs/; revision=145465
2009-11-05 09:34:11 +00:00
Zoltan Varga 59fb647a1f 2009-11-05 Zoltan Varga <[email protected]>
* VirtualMachineManager.cs (Listen): Resurrect the old listen method.

svn path=/branches/mono-2-6/mcs/; revision=145460
2009-11-05 05:59:20 +00:00
Geoff Norton e87c31e9a9 fix the moonlight/mt builds
svn path=/branches/mono-2-6/mcs/; revision=145457
2009-11-05 04:59:55 +00:00
Zoltan Varga a2a81a55b3 2009-11-05 Zoltan Varga <[email protected]>
* VirtualMachineManager.cs (Connect): New method to connect to a runtime
	listening at the provided address.

svn path=/branches/mono-2-6/mcs/; revision=145454
2009-11-05 04:07:26 +00:00
Zoltan Varga f165c2b439 * src/gptrarray.c: implement g_ptr_array_remove_index_fast
* src/glib.h: fix g_ptr_array_remove_index_fast declaration
* test/ptrarray.c: new tests

2009-10-15 Andreia Gaita <[email protected]>

svn path=/branches/mono-2-6/mono/; revision=145452
2009-11-05 03:13:07 +00:00
Gonzalo Paniagua Javier ecff58cc2c 2009-11-04 Gonzalo Paniagua Javier <[email protected]>
* debug-helpers.c: avoid g_strdup() in mono_type_full_name().


svn path=/branches/mono-2-6/mono/; revision=145450
2009-11-05 00:53:54 +00:00
Gonzalo Paniagua Javier 87d2f0b3ff 2009-11-04 Gonzalo Paniagua Javier <[email protected]>
* aot-compiler.c: don't leak the value returned from
	mono_type_full_name().


svn path=/branches/mono-2-6/mono/; revision=145448
2009-11-05 00:36:48 +00:00
Zoltan Varga 832835b220 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c (set_breakpoint): Emit a log message.

svn path=/branches/mono-2-6/mono/; revision=145444
2009-11-05 00:21:19 +00:00
Rodrigo Kumpera be4a4d84ad In .:
* verify.c: Replace calls to mono_class_inflate_generic_type with
	mono_class_inflate_generic_type_checked. Fixes #480005.

	Backport of r144759 and r145284.

2009-11-04  Rodrigo Kumpera  <[email protected]>

svn path=/branches/mono-2-6/mono/; revision=145425
2009-11-04 20:25:15 +00:00
Rodrigo Kumpera b50b26823e In .:
2009-11-04  Rodrigo Kumpera  <[email protected]>
 
     * class-internals.h: Change signature of mono_class_inflate_generic_type_with_mempool to take
     a MonoError parameter.
 
     * class-internals.h: Add new mono_class_inflate_generic_type_checked version that can does proper error handling.
 
     * class.c (inflate_generic_type): Add a MonoError parameter. Don't assert on error, use new mono error machinery.
 
     * class.c (mono_class_inflate_generic_type_with_mempool): Add new MonoError parameter.
 
     * class.c, generics-sharing.c: Changes to handle mono_class_inflate_generic_type_with_mempool new signature.

	Backport of r144688 and r144755.


svn path=/branches/mono-2-6/mono/; revision=145424
2009-11-04 20:24:08 +00:00
Sebastien Pouliot 607df4fed0 2009-11-04 Sebastien Pouliot <[email protected]>
* string-icalls.c|h: Remove string internal calls that are not 
	used anymore by the class libraries.
	* icall.c: Remove System_Reflection_FieldInfo_internal_from_handle
	which is not used in the class librairies.
	* icall-def.h: Update tables.
	[Backport r145416]


svn path=/branches/mono-2-6/mono/; revision=145417
2009-11-04 19:34:06 +00:00
Rodrigo Kumpera ec0d78aa47 In .:
2009-11-04  Rodrigo Kumpera  <[email protected]>

	* reflection.c (fieldref_encode_signature): If field_image is NULL then
	the token is already properly encoded. Fixs 4.0 build.

	Backport of r145396.


svn path=/branches/mono-2-6/mono/; revision=145412
2009-11-04 19:11:47 +00:00
Rodrigo Kumpera f50e76c580 In .:
2009-11-04  Rodrigo Kumpera  <[email protected]>

	- Add kumpera's mono-error stuff to hopefully fix the build.

	Backport of r144696 by Jonathan Pobst  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=145411
2009-11-04 18:23:58 +00:00
Rodrigo Kumpera 740935759d In .:
2009-11-04 Rodrigo Kumpera  <[email protected]>

    * mono-error.c, mono-error.h, mono-error-internal.h: New error handling
    structures and functions.

    * Makefile.am: Add new files.


svn path=/branches/mono-2-6/mono/; revision=145410
2009-11-04 18:18:19 +00:00
Zoltan Varga ab2b9ae132 2009-11-04 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Applied patch from Kornél Pál
	<[email protected]>. Enable dolt on cygwin.

svn path=/branches/mono-2-6/mono/; revision=145400
2009-11-04 14:39:13 +00:00
Rolf Bjarne Kvinge c1f54f2585 2009-11-04 Rolf Bjarne Kvinge <[email protected]>
* locales.c (construct_number_format): Check if the number index is
	valid before trying to use it, if not, just return.

svn path=/branches/mono-2-6/mono/; revision=145388
2009-11-04 11:40:16 +00:00
Marek Habersack e23eb863d9 Backport of r145381
svn path=/branches/mono-2-6/mcs/; revision=145382
2009-11-04 09:50:30 +00:00
Miguel de Icaza 7f4ab42e17 Backport
svn path=/branches/mono-2-6/mcs/; revision=145372
2009-11-04 05:03:02 +00:00
Gonzalo Paniagua Javier 2af0c5e9dd 2009-11-03 Gonzalo Paniagua Javier <[email protected]>
* Socket_2_1.cs: stop any blocking thread before closing the socket.


svn path=/branches/mono-2-6/mcs/; revision=145370
2009-11-04 03:32:28 +00:00
Zoltan Varga c31c2edae7 2009-11-04 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Bump the threshold for flushing
	debug info to 100 because 10 still slows down gdb too much.

svn path=/branches/mono-2-6/mono/; revision=145368
2009-11-04 02:59:41 +00:00
Rodrigo Kumpera c8b10edc24 2009-11-03 Rodrigo Kumpera <[email protected]>
* reflection.c (fieldref_encode_signature): Add new field_image parameter
	to indicate which assembly to use when resolving a custom-mod.

	Fixes handling of volatile fields used across assemblies as reported in #551513.

	Backport of r145337.


svn path=/branches/mono-2-6/mono/; revision=145362
2009-11-04 02:01:44 +00:00
Geoff Norton 895284ddbd ensure we add punctuation as characters, patch from john moshakis
svn path=/branches/mono-2-6/mcs/; revision=145360
2009-11-04 01:39:41 +00:00
Geoff Norton e1a5fc5aa4 remove confusing debug spew
svn path=/branches/mono-2-6/mcs/; revision=145357
2009-11-04 01:34:05 +00:00
Rodrigo Kumpera eecd4147be In metadata:
2009-11-03  Rodrigo Kumpera  <[email protected]>

	* class.c (mono_class_setup_methods): Only give a slot for virtual methods
	of interfaces. Fixes IKVM.

	* class.c (mono_class_setup_vtable_general): Improve debug spew.

	Backport of r145307.


svn path=/branches/mono-2-6/mono/; revision=145354
2009-11-04 01:25:33 +00:00
Gonzalo Paniagua Javier 496c69e0b2 add new library for windows
svn path=/branches/mono-2-6/mono/; revision=145350
2009-11-04 00:44:52 +00:00
Lluis Sanchez d5bf2c0713 2009-11-04 Lluis Sanchez <[email protected]>
* VirtualMachineManager.cs: Properly redirect standard output.


svn path=/branches/mono-2-6/mcs/; revision=145346
2009-11-03 23:56:20 +00:00
Geoff Norton 27c370a851 oops, backport using too
svn path=/branches/mono-2-6/mcs/; revision=145342
2009-11-03 23:19:23 +00:00
Geoff Norton d942242990 update to the latest listening api
svn path=/branches/mono-2-6/mcs/; revision=145340
2009-11-03 23:12:57 +00:00
Rodrigo Kumpera 9b03c346fd In .:
2009-11-03  Rodrigo Kumpera  <[email protected]>

	* simd-intrinsics.c (load_simd_vreg): Add extra argument to signal if
	the value was loaded from memory.

	* simd-intrinsics.c (simd_intrinsic_emit_setter): Store back to memory if
	the value was loader from there.

	* simd-intrinsics.c (simd_intrinsic_emit_shuffle): Fail correctly for Shuffle
	without constant swizzle.

	Backport of r145283.


svn path=/branches/mono-2-6/mono/; revision=145338
2009-11-03 22:48:19 +00:00
Sebastien Pouliot 67139125d4 2009-11-03 Sebastien Pouliot <[email protected]>
* SocketAsyncEventArgs.cs: Set error back to SocketError.Success
	once CheckEndPoint succeed.
	[Fix bug #549586]
	[Backport r145329]


svn path=/branches/mono-2-6/mcs/; revision=145330
2009-11-03 21:58:33 +00:00
Sebastien Pouliot 59d7404e1b backport r145313
svn path=/branches/mono-2-6/mcs/; revision=145314
2009-11-03 19:18:23 +00:00
Jb Evain b714fcf819 2009-11-03 Jb Evain <[email protected]>
* Mono.Tuner/CheckVisibility.cs: detect a throw_on_visibility_error
	linker parameter to decide whether or not throw when an error
	have been encountered.


svn path=/branches/mono-2-6/mcs/; revision=145303
2009-11-03 17:05:42 +00:00
Jb Evain ccb5ea5924 remove some cwl left over
svn path=/branches/mono-2-6/mcs/; revision=145302
2009-11-03 16:58:40 +00:00
Zoltan Varga 3e2ed5d493 2009-11-03 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_method): Refactor some code into a new helper
	function mono_aot_get_array_helper_from_wrapper ().

	* aot-compiler.c (add_generic_class): Refactor the code a bit, really emit
	array helper methods.

svn path=/branches/mono-2-6/mono/; revision=145299
2009-11-03 16:37:21 +00:00
Sebastien Pouliot de2e6c2658 2009-11-03 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Open up the internals to System.Net.dll (which
	needs Uri.IsDefaultPort) for NET_2_1 and remove it for 
	System.ComponentModel.DataAnnotations (again for NET_2_1)
	[Backport r145294]


svn path=/branches/mono-2-6/mcs/; revision=145295
2009-11-03 16:24:14 +00:00
Zoltan Varga ab3dc22a2c 2009-11-03 Zoltan Varga <[email protected]>
* Makefile: Don't define LIBRARY_PACKAGE so it gets installed normally.

svn path=/branches/mono-2-6/mcs/; revision=145293
2009-11-03 16:18:26 +00:00
Marek Habersack 5a8c7954b9 Backport of r145280
svn path=/branches/mono-2-6/mcs/; revision=145281
2009-11-03 12:13:44 +00:00
Zoltan Varga 45e7a987de 2009-11-03 Zoltan Varga <[email protected]>
* debugger-agent.c: Include netinet/in.h to fix the bsd build.

svn path=/branches/mono-2-6/mono/; revision=145270
2009-11-03 05:31:33 +00:00
Zoltan Varga 285052b5c6 2009-11-03 Zoltan Varga <[email protected]>
* configure.in: Check for netinet/in.h.

svn path=/branches/mono-2-6/mono/; revision=145268
2009-11-03 05:27:28 +00:00
Zoltan Varga be45adc365 2009-11-03 Zoltan Varga <[email protected]>
* debugger-agent.c: Add support for filtering events by assemblies.

svn path=/branches/mono-2-6/mono/; revision=145259
2009-11-03 02:22:45 +00:00
Zoltan Varga 674da8fdc4 2009-11-03 Zoltan Varga <[email protected]>
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Return false if
	the agent is not enabled.

svn path=/branches/mono-2-6/mono/; revision=145258
2009-11-03 02:22:38 +00:00
Zoltan Varga 88e041c46e LAST one!
svn path=/branches/mono-2-6/mono/; revision=145256
2009-11-03 02:22:32 +00:00
Zoltan Varga ebb0681764 one more
svn path=/branches/mono-2-6/mono/; revision=145255
2009-11-03 02:22:27 +00:00
Zoltan Varga dcac4ba42c 2009-11-02 Gonzalo Paniagua Javier <[email protected]>
* exceptions-x86.c: hopefully last change to fix the windows build.
	This one courtesy of Jonathan Chambers.

svn path=/branches/mono-2-6/mono/; revision=145254
2009-11-03 02:22:20 +00:00
Zoltan Varga cb0b45a4e3 2009-11-02 Gonzalo Paniagua Javier <[email protected]>
* debugger-agent.c: remove unused function.

svn path=/branches/mono-2-6/mono/; revision=145253
2009-11-03 02:22:14 +00:00
Zoltan Varga e5e32696e1 2009-11-02 Gonzalo Paniagua Javier <[email protected]>
* debugger-agent.c: add #ifdefs for a few header files.
	* mini-x86.h: disable the soft debugger in windows.
	Step 1 of 2 to make this compile on windows with gcc.

svn path=/branches/mono-2-6/mono/; revision=145252
2009-11-03 02:22:07 +00:00
Zoltan Varga 3fe9da1a6b 2009-11-02 Gonzalo Paniagua Javier <[email protected]>
* configure.in: add a few missing header file checks.

svn path=/branches/mono-2-6/mono/; revision=145251
2009-11-03 02:22:01 +00:00
Zoltan Varga b6a7fc1f8a 2009-07-01 Zoltan Varga <[email protected]>
Merge the soft debugger branch.

	* debugger-agent.h debugger-agent.c: New files containing the soft
	mode debugger module.

	* method-to-ir.c (mono_method_to_ir): Generate OP_SEQ_POINT opcodes
	at the appropriate locations.

	* mini-<ARCH>.c (mono_arch_output_basic_block): Handle OP_SEQ_POINT
	opcode.

	* mini-<ARCH>.c: Add new arch-specific functions to set/clear breakpoints,
	enable/disable single stepping.

	* exceptions-<ARCH>.c (mono_arch_find_jit_info_ext): New stack unwinding api
	which returns all information in a StackFrameInfo structure, and can handle the
	LMF frames added by the debugger.

	* mini-<ARCH>.h (MonoLMFExt): New structure containing additional information
	about an LMF frame.

	* mini-exceptions.c (mono_jit_walk_stack_from_ctx_in_thread): New stack
	walker function which works on a specific thread and passes a StackFrameInfo
	structure to its callback.

	* mini.c (mini_init): Initialize the debugger agent.

	* aot-compiler.c aot-runtime.c: Add soft-debug support.

	* mini-ops.h: Add OP_SEQ_POINT opcode.

	* driver.c (mono_main): Add new '--debugger-agent' option for passing
	arguments to the debugger agent.

svn path=/branches/mono-2-6/mono/; revision=145249
2009-11-03 02:18:50 +00:00
Zoltan Varga d730a668b1 2009-11-03 Zoltan Varga <[email protected]>
* EventRequest.cs (AssemblyFilter): New property to filter
	events based on a list of assemblies.

	* Connection.cs: Add assembly filters to the protocol implementation.

svn path=/branches/mono-2-6/mcs/; revision=145245
2009-11-03 01:55:39 +00:00
Zoltan Varga 9f98591560 2009-11-03 Zoltan Varga <[email protected]>
* Makefile: Move Mono.Debugger.Soft to net_2_0_dirs for 2.6.

svn path=/branches/mono-2-6/mcs/; revision=145238
2009-11-03 01:11:04 +00:00
Zoltan Varga 2335431b38 2009-11-02 Zoltan Varga <[email protected]>
* Makefile: Add Mono.Debugger.Soft.

In Mono.Debugger.Soft:

2009-11-02  Zoltan Varga  <[email protected]>

	* New directory containing the managed interface to the soft-mode debugger.

svn path=/branches/mono-2-6/mcs/; revision=145237
2009-11-03 01:10:25 +00:00
Zoltan Varga 0abadb40a1 2009-11-02 Zoltan Varga <[email protected]>
* debug-mono-symfile.c (check_line): Fix the handling of IL offset 0.

	* threads.c (mono_thread_attach): Call the profiler thread start callback.

	* object-internals.h (_MonoThreadInternal): Add a 'flags' field.

	* threads.c (build_wait_tids): Ignore threads which have the DONT_MANAGE
	flag set.

	* profiler.c: Add new profiler callbacks for runtime invoke.

	* object.c (mono_runtime_invoke): Call the runtime invoke callbacks.

svn path=/branches/mono-2-6/mono/; revision=145233
2009-11-03 00:35:00 +00:00
Sebastien Pouliot 2f3a1b3dbf 2009-11-02 Sebastien Pouliot <[email protected]>
* Thread.cs (set_CurrentUICulture): Delay setting in_currentculture
	to true until after the null check and the return statement.


svn path=/branches/mono-2-6/mcs/; revision=145215
2009-11-02 20:06:05 +00:00
Jb Evain 26cae340b4 2009-11-02 Jb Evain <[email protected]>
* Mono.Tuner/MoonlightAssemblyStep.cs: adapt to the MT linker merge.


svn path=/branches/mono-2-6/mcs/; revision=145210
2009-11-02 16:19:48 +00:00
Jb Evain f21d6449fa 2009-11-02 Jb Evain <[email protected]>
Merge the MonoTouch Linker branch.

	* monolinker.exe.sources: update

	* Mono.Linker/Annotations.cs:
		- add an preserved methods annotation on a type.
		- add an annotation to get the base methods of a method.
		- add an annotation to get the overriden method of a method.

	* Mono.Linker/AssemblyAction.cs:
		add a Delete action to remove an assembly from the output set.

	* Mono.Linker.Steps/TypeMapStep.cs:
		new step that create a map of virtual methods implementation.

	* Mono.Linker.Steps/MarkStep.cs:
		- removal of virtual methods.
		- fix for custom attributes assigning properties and field
			defined in a base type.
		- mark scopes.
		- mark default constructors of types used as a generic instance
			of a generic parameter constrained with new().
		- apply preserved methods.

	* Mono.Linker.Steps/SweepStep.cs: remove unused assemblies.

	* Mono.Linker.Steps/LoadI18nAssemblies.cs:
		fix linking of i18n assemblies.

	* Mono.Linker.Steps/OutputStep.cs:
		fix the copied assemblies when the output directory
		is the same as the origin of the assemblies.

	* Mono.Linker.Steps/ResolveFromXmlStep.cs
	* Mono.Linker.Steps/ResolveFromAssemblyStep.cs
	* Mono.Linker.Steps/BaseStep.cs
	* Mono.Linker/Driver.cs
	* Mono.Linker/Pipeline.cs:
		Cosmetics.


svn path=/branches/mono-2-6/mcs/; revision=145209
2009-11-02 16:19:15 +00:00
Zoltan Varga 3e7cea1232 2009-11-02 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Disable llvm for methods with an lmf here to
	speed things up.

	* mini-llvm.c (mono_llvm_emit_method): Add support for OP_LOCALLOC.

svn path=/branches/mono-2-6/mono/; revision=145197
2009-11-02 12:45:00 +00:00
Zoltan Varga a988a10992 2009-11-02 Zoltan Varga <[email protected]>
* mini.c (mini_init): Avoid using the IMT trampoline in the LLVM case.

	* mini-trampolines.c (mono_llvm_vcall_trampoline): Add a static rgctx trampoline
	if needed.
	(mono_create_llvm_imt_trampoline): New function to create a trampoline which
	sets the IMT argument and makes a virtual call.

	* mini-llvm.c: Enable interface calls using the llvm imt trampoline.

svn path=/branches/mono-2-6/mono/; revision=145192
2009-11-02 12:00:45 +00:00
Zoltan Varga 7e07d13efe Fix the 2.6 build.
svn path=/branches/mono-2-6/mono/; revision=145177
2009-11-01 19:28:01 +00:00
Zoltan Varga b33f8408a7 2009-11-01 Zoltan Varga <[email protected]>
* configure.in: Make the LLVM warning a bit more up-to-date.

svn path=/branches/mono-2-6/mono/; revision=145176
2009-11-01 19:25:06 +00:00
Zoltan Varga ff6805c6d2 2009-11-01 Zoltan Varga <[email protected]>
* Makefile.am (llvm_sources): Enable the llvm option since it no longer breaks
	the windows build.

svn path=/branches/mono-2-6/mono/; revision=145174
2009-11-01 19:16:47 +00:00
Zoltan Varga b25ad6aaff 2009-11-01 Zoltan Varga <[email protected]>
* configure.in: Pass -mno-cygwin to CXX too on windows. Enable AC_PROG_CXX
	since it now works on windows too.

svn path=/branches/mono-2-6/mono/; revision=145173
2009-11-01 19:16:40 +00:00
Sebastien Pouliot f80650fa1e 2009-11-01 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorageFile.cs: Add new CheckSearchPattern 
	validation method. Fix GetDirectoryNames to behave like 
	GetFileNames wrt searchPattern
	[Backport r145167]


svn path=/branches/mono-2-6/mcs/; revision=145168
2009-11-01 16:47:10 +00:00
Sebastien Pouliot 7f7c90c70e 2009-11-01 Sebastien Pouliot <[email protected]>
* ResourceManager.cs (GetResourceFilePath): Don't use 
	'resourceDir' which should always be null for Moonlight
	[Backport r145165]


svn path=/branches/mono-2-6/mcs/; revision=145166
2009-11-01 16:46:04 +00:00
Miguel de Icaza 31dd3aca62 Backport: 2009-10-31 Miguel de Icaza <[email protected]>
* threads.c: refactor the code that initializes the
	thread_start_args into a reusable function and use this in the two
	methods that start up threads.

svn path=/branches/mono-2-6/mono/; revision=145155
2009-10-31 22:36:20 +00:00
Zoltan Varga 84465817b5 2009-10-25 Zoltan Varga <[email protected]>
* threads.c (start_wrapper): Avoid an assert if thread_start_args () is NULL.

svn path=/branches/mono-2-6/mono/; revision=145151
2009-10-31 22:04:24 +00:00
Sebastien Pouliot cd862e8258 2009-10-31 Sebastien Pouliot <[email protected]>
* BinaryCommon.cs: Disable MONO_REFLECTION_SERIALIZER override 
	for Moonlight plugin.
	[Backport r145147]


svn path=/branches/mono-2-6/mcs/; revision=145148
2009-10-31 16:20:57 +00:00
Zoltan Varga 038367c545 2009-10-31 Zoltan Varga <[email protected]>
* appdomain.c (mono_domain_try_unload): Applied patch from Romain Tartière.
	Fix returning when WaitForSingleObjectEx returns WAIT_IO_COMPLETION.

svn path=/branches/mono-2-6/mono/; revision=145144
2009-10-31 14:13:11 +00:00
Gonzalo Paniagua Javier ed232ae225 2009-10-31 Gonzalo Paniagua Javier <[email protected]>
* mono-perfcounters.c: add the "_Total" instance for CPU counters.
	Until now, we only had the per-cpu(core) counters.

2009-10-30 Gonzalo Paniagua Javier <[email protected]>

	* mono-proclib.c: hz is only multiplied by the number of cpus when
	requesting "_Total".

	Fixes bug #523520.

svn path=/branches/mono-2-6/mono/; revision=145135
2009-10-31 04:06:56 +00:00
Veerapuram Varadhan c6c53d568b backport of r145122
svn path=/branches/mono-2-6/mcs/; revision=145123
2009-10-30 20:58:47 +00:00
Sebastien Pouliot e64e6483ce 2009-10-30 Sebastien Pouliot <[email protected]>
* MethodBuilderTest.cs: Add (copy from TypeBuilderTest) test 
	cases for two DefineGenericParameters
	[Backport r145118]


svn path=/branches/mono-2-6/mcs/; revision=145120
2009-10-30 20:13:40 +00:00
Sebastien Pouliot 17626ad634 2009-10-30 Sebastien Pouliot <[email protected]>
* MethodBuilder.cs: Add missing 'names' validations in 
	DefineGenericParameters
	[Backport r145118]


svn path=/branches/mono-2-6/mcs/; revision=145119
2009-10-30 20:12:48 +00:00
Marek Habersack 62509d7f33 Backport of r145109
svn path=/branches/mono-2-6/mcs/; revision=145111
2009-10-30 15:59:01 +00:00
Zoltan Varga e980095ec9 2009-10-30 Zoltan Varga <[email protected]>
* mini.c (mini_cleanup): Call profiler shutdown before shutting down the
	runtime. Fixes #551228.

svn path=/branches/mono-2-6/mono/; revision=145104
2009-10-30 15:19:30 +00:00
Sebastien Pouliot f0a8a458d1 2009-10-30 Sebastien Pouliot <[email protected]>
* MonoMethod.cs: Remove CAS check in MonoCMethod.Invoke (just 
	like it was done for MonoMethod.Invoke sister method)
	[Backport r145101]


svn path=/branches/mono-2-6/mcs/; revision=145102
2009-10-30 15:05:39 +00:00
Sebastien Pouliot c05d8961d5 MonoType.cs: Don't pass null value to icalls GetCorrespondingInflated[Constructor|Method]
svn path=/branches/mono-2-6/mcs/; revision=145100
2009-10-30 15:03:58 +00:00
Chris Toshok 90d3f7a97e 2009-10-29 Chris Toshok <[email protected]>
* TypeMap.cs (Deserialize): use
        FormatterServices.GetUninitializedObject instead of
        Activator.CreateInstance, since we shouldn't be invoking the
        default ctor.


svn path=/branches/mono-2-6/mcs/; revision=145077
2009-10-30 05:04:17 +00:00
Andreia Gaita e18c231fc8 * DataContractJsonSerializer.cs: SL accepts keys without "", so tweak
the data to fix the quotes before passing it to the deserializer
[backported from r145075]

svn path=/branches/mono-2-6/mcs/; revision=145076
2009-10-30 02:26:30 +00:00
Veerapuram Varadhan 385d93e3bc backport of r145072
svn path=/branches/mono-2-6/mcs/; revision=145073
2009-10-30 01:09:16 +00:00
Marek Habersack b066dcaa56 Backport of r145069
svn path=/branches/mono-2-6/mcs/; revision=145070
2009-10-30 00:53:35 +00:00
Veerapuram Varadhan 13dd868c42 backport of r145064
svn path=/branches/mono-2-6/mcs/; revision=145065
2009-10-29 20:54:40 +00:00
Veerapuram Varadhan 4471cba319 backport of r145054
svn path=/branches/mono-2-6/mcs/; revision=145055
2009-10-29 18:39:28 +00:00
Sebastien Pouliot 20f61ae832 2009-10-29 Sebastien Pouliot <[email protected]>
* CompareInfoTest.cs: Add test cases to validate parameters
	[Backport r145023]


svn path=/branches/mono-2-6/mcs/; revision=145026
2009-10-29 14:14:43 +00:00
Sebastien Pouliot 2825f28523 2009-10-29 Sebastien Pouliot <[email protected]>
* CompareInfo.cs: Add/fix CompareOptions validations. Reduce code
	duplication in Compare methods (wrt CompareOptions). Fix 
	calculation bug	in Compare(string,int.string,int,CompareOptions).
	[Backport r145023]


svn path=/branches/mono-2-6/mcs/; revision=145025
2009-10-29 14:13:52 +00:00
Zoltan Varga 3871e25478 2009-10-29 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Fix % 1. Fixes #550970.

	* basic.cs: Add a test.

svn path=/branches/mono-2-6/mono/; revision=145018
2009-10-29 13:08:46 +00:00
Sebastien Pouliot 9d1b407625 2009-10-29 Sebastien Pouliot <[email protected]>
* ModuleBuilderTest.cs: Add test cases for GetType overloads
	* TypeBuilderTest.cs: Remove NotWorking from two 
	DefineGenericParameters test case.
	[Backport r145013]


svn path=/branches/mono-2-6/mcs/; revision=145015
2009-10-29 12:53:47 +00:00
Sebastien Pouliot d24244af13 2009-10-29 Sebastien Pouliot <[email protected]>
* ModuleBuilder.cs: Add missing 'className' validations in GetType
	* TypeBuilder.cs: Add missing 'names' validations in 
	DefineGenericParameters
	[Backport r145013]


svn path=/branches/mono-2-6/mcs/; revision=145014
2009-10-29 12:52:54 +00:00
Veerapuram Varadhan cbbc5a16a6 backport r145011
svn path=/branches/mono-2-6/mcs/; revision=145012
2009-10-29 12:49:27 +00:00
Sebastien Pouliot c27526153b 2009-10-29 Sebastien Pouliot <[email protected]>
* FileStream.cs: Reduce code duplication by merging FillBuffer 
	with FillBufferToStream
	[Backport r145008]


svn path=/branches/mono-2-6/mcs/; revision=145010
2009-10-29 12:15:23 +00:00
Zoltan Varga d7b68fa40b 2009-10-29 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Use EMIT_NEW_LOAD_MEMBASE_TYPE to
	load vtypes instead if OP_LOADV_MEMBASE in the implementation of
	CONSTRAINED. Fixes #550964.

	* generics.cs: Add a test.

svn path=/branches/mono-2-6/mono/; revision=145007
2009-10-29 12:09:16 +00:00
Jb Evain 0ea412d547 2009-10-29 Jb Evain <[email protected]>
* ActivationServices.cs: avoid a static constructor.


svn path=/branches/mono-2-6/mcs/; revision=145003
2009-10-29 10:49:36 +00:00
Marek Safar 73ebfb6251 2009-10-29 Marek Safar <[email protected]>
A fix for bug #550580	
	* convert.cs: Don't eliminate explicit precission casts.


svn path=/branches/mono-2-6/mcs/; revision=144997
2009-10-29 10:01:04 +00:00
Marek Safar b81781bbe4 Updated.
svn path=/branches/mono-2-6/mcs/; revision=144996
2009-10-29 10:00:46 +00:00
Veerapuram Varadhan 7c712848f1 backport of r144980
svn path=/branches/mono-2-6/mcs/; revision=144981
2009-10-29 02:13:28 +00:00
Lluis Sanchez f46f770b16 2009-10-28 Lluis Sanchez Gual <[email protected]>
* MarshalByRefObject.cs: In InitializeLifetimeService, if a lease
	exists for the object return it, instead of always creating
	a new one. Fixes bug #544357.


svn path=/branches/mono-2-6/mcs/; revision=144963
2009-10-28 18:40:05 +00:00
Marek Habersack b7ef95a35d Backport of r144947
svn path=/branches/mono-2-6/mcs/; revision=144948
2009-10-28 14:01:48 +00:00
Sebastien Pouliot 1cf1d66a3e 2009-10-28 Sebastien Pouliot <[email protected]>
* FileStream.cs: Move code to deal with 'anonymous' filenames
	into two methods (returning the path, fullpath or only the 
	filename). Default Moonlight to anonymous (not only for isolated
	storage) unless the coreclr is disable (e.g. smcs)
	[Backport r144945]


svn path=/branches/mono-2-6/mcs/; revision=144946
2009-10-28 13:42:56 +00:00
Marek Habersack 3afb337dec Fix 1.1 build
svn path=/branches/mono-2-6/mcs/; revision=144939
2009-10-28 12:05:39 +00:00
Marek Habersack b213aa0bf2 Backport of r144935
svn path=/branches/mono-2-6/mcs/; revision=144936
2009-10-28 10:37:37 +00:00
Marek Habersack 423ea8af8e Backport of r144932
svn path=/branches/mono-2-6/mcs/; revision=144933
2009-10-28 10:19:34 +00:00
Sebastien Pouliot a5727b1062 2-6 still supports 1.1 profile...
svn path=/branches/mono-2-6/mcs/; revision=144929
2009-10-28 01:03:05 +00:00
Sebastien Pouliot c3d41f08f9 2009-10-27 Sebastien Pouliot <[email protected]>
* StringTest.cs: Add test case for methods that can return
	empty strings.
	[Backport r144921]


svn path=/branches/mono-2-6/mcs/; revision=144925
2009-10-27 23:46:18 +00:00
Sebastien Pouliot 9de4121212 2009-10-27 Sebastien Pouliot <[email protected]>
* UnicodeEncodingTest.cs: Add test cases with an odd number of 
	bytes being used in GetString (it does not crash but it does not
	work like MS FX either).
	[Backport r144921]


svn path=/branches/mono-2-6/mcs/; revision=144924
2009-10-27 23:45:41 +00:00
Sebastien Pouliot a29c9418a8 2009-10-27 Sebastien Pouliot <[email protected]>
* String.cs: Remove unused (and unneeded) internal call defs.
	Reduce duplication (and fix test) for Concat (object,object).
	Avoid allocating zero-length strings in the cases where the
	FX does not do so.
	[Backport r144921]


svn path=/branches/mono-2-6/mcs/; revision=144923
2009-10-27 23:45:00 +00:00
Sebastien Pouliot 38087128b7 2009-10-27 Sebastien Pouliot <[email protected]>
* TextInfo.cs: Avoid allocating zero-length strings in ToLower 
	and ToUpper methods
	[Backport r144921]


svn path=/branches/mono-2-6/mcs/; revision=144922
2009-10-27 23:43:47 +00:00
Veerapuram Varadhan e3783491dc 2009-10-28 Veerapuram Varadhan <[email protected]>
** Fixes #385028/#385029
	* DbCommandBuilder.cs (CreateInsertCommand): Workaround for inserting
	DEFAULT values to non-null-columns.
	(GetInsertCommand): New overload added to handle above workaround.
	(set_DataAdapter): Register for the RowUpdatingEventHandler.

svn path=/branches/mono-2-6/mcs/; revision=144917
2009-10-27 21:21:27 +00:00
Marek Habersack 5c80561e2e Backport of r144898
svn path=/branches/mono-2-6/mcs/; revision=144899
2009-10-27 13:10:55 +00:00
Marek Habersack 45aeaa1253 Backport of r144894
svn path=/branches/mono-2-6/mcs/; revision=144895
2009-10-27 09:56:10 +00:00
Zoltan Varga f1a66b8ed5 Really fix the osx build.
svn path=/branches/mono-2-6/mono/; revision=144874
2009-10-26 20:08:00 +00:00
Zoltan Varga b2cc33d3db Fix osx build.
svn path=/branches/mono-2-6/mono/; revision=144872
2009-10-26 20:00:59 +00:00
Zoltan Varga cd6613509c In libgc:
2009-10-25  Zoltan Varga  <[email protected]>

	* misc.c (GC_get_suspend_signal): New API function to return the suspend signal
	used by libgc.

In mono/mini:

2009-10-25  Zoltan Varga  <[email protected]>

	* mini-posix.c (add_signal_handler): Delay the GC suspend signal while
	executing a SIGSEGV handler on an altstack, since libgc can't handle that.

In mono/tests:

2009-10-25  Zoltan Varga  <[email protected]>

	* misc.c (GC_get_suspend_signal): New API function to return the suspend signal
	used by libgc.

svn path=/branches/mono-2-6/mono/; revision=144871
2009-10-26 20:00:51 +00:00
Zoltan Varga d8da3eab41 2009-10-25 Zoltan Varga <[email protected]>
* threads.c (start_wrapper): Call mono_profiler_thread_start () later after
	signalling start_notify.

svn path=/branches/mono-2-6/mono/; revision=144870
2009-10-26 20:00:40 +00:00
Sebastien Pouliot ae40d18e07 2009-10-26 Sebastien Pouliot <[email protected]>
* Assembly.cs: Share code between GetSatelliteAssembly and 
	GetSatelliteAssemblyNoThrow. For Moonlight ensure both 
	GetManifestResourceStream and GetSatelliteAssembly don't load
	anything "below" the assembly path.
	[Backport r144845]


svn path=/branches/mono-2-6/mcs/; revision=144846
2009-10-26 12:11:50 +00:00
Sebastien Pouliot a89a5936ac 2009-10-26 Sebastien Pouliot <[email protected]>
* Consts.cs.in: Update SL2 FX version to the second (and last)
	released version.
	[Backport r144843]


svn path=/branches/mono-2-6/mcs/; revision=144844
2009-10-26 12:03:41 +00:00
Sebastien Pouliot 5880e4bf3c 2009-10-26 Sebastien Pouliot <[email protected]>
* InterlockedTest.cs: Add test case for generic methods
	CompareExchange and Exchange
	[Backport r144840]


svn path=/branches/mono-2-6/mcs/; revision=144842
2009-10-26 11:57:12 +00:00
Sebastien Pouliot dc7d62f122 TypeTest.cs: New. Add test cases for IsInstanceOfType
svn path=/branches/mono-2-6/mcs/; revision=144841
2009-10-26 11:56:37 +00:00
Sebastien Pouliot 796a9ea860 2009-10-25 Sebastien Pouliot <[email protected]>
* ThreadTest.cs: Add test cases for Current[UI]Culture (not 
	working), Name, Join, Sleep and SpinWait
	[Backport r144824]


svn path=/branches/mono-2-6/mcs/; revision=144826
2009-10-25 16:43:07 +00:00
Sebastien Pouliot 2548566d31 2009-10-25 Sebastien Pouliot <[email protected]>
* Thread.cs: Fix validations for Join and Sleep overloads
	[Backport r144824]


svn path=/branches/mono-2-6/mcs/; revision=144825
2009-10-25 16:42:04 +00:00
Geoff Norton fe8c4d8126 make uri no braindead on mt
svn path=/branches/mono-2-6/mcs/; revision=144815
2009-10-24 21:25:05 +00:00
Gonzalo Paniagua Javier dff48874e3 2009-10-24 Gonzalo Paniagua Javier <[email protected]>
marshal.c: BeginInvoke cannot be called on multicast delegates with
	multiple targets. Fixes bug #574426.
	Backported from trunk.


svn path=/branches/mono-2-6/mono/; revision=144812
2009-10-24 20:52:26 +00:00
Gonzalo Paniagua Javier 8c2cc0f8b1 2009-10-24 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: do not test the st_mode field for shadow-copies.
	Fixes bug #545276.


svn path=/branches/mono-2-6/mono/; revision=144809
2009-10-24 20:04:31 +00:00
Gonzalo Paniagua Javier 94beec4383 2009-10-24 Gonzalo Paniagua Javier <[email protected]>
* DeflateStreamTest.cs: test from bug #549492.


svn path=/branches/mono-2-6/mcs/; revision=144803
2009-10-24 17:26:56 +00:00
Gonzalo Paniagua Javier 7ec5d41688 2009-10-24 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: stop trying to decompress when we get Z_STREAM_END.
	Patch by Ives Bastide. Fixes bug #549942.


svn path=/branches/mono-2-6/mono/; revision=144800
2009-10-24 17:22:13 +00:00
Sebastien Pouliot c49415d54c 2009-10-24 Sebastien Pouliot <[email protected]>
* StackFrame.cs: Relax GetSecureFileName when the coreclr is not 
	active (i.e. show full path when compiling with smcs)
	[Backport r144797]


svn path=/branches/mono-2-6/mcs/; revision=144798
2009-10-24 16:11:58 +00:00
Sebastien Pouliot e11b6645cd 2009-10-24 Sebastien Pouliot <[email protected]>
* TypeBuilderTest.cs: Validation test cases for GetConstructor
	[Backport r144791]


svn path=/branches/mono-2-6/mcs/; revision=144793
2009-10-24 15:50:51 +00:00
Sebastien Pouliot 76e901f710 2009-10-24 Sebastien Pouliot <[email protected]>
* AssemblyBuilder.cs: For Silverlight only AssemblyBuilderAccess.Run
	is supported (browser-side) but we still allow other values when
	compiling (e.g. smcs) outside the browser (wo coreclr)
	* TypeBuilder.cs (GetConstructor): Fix validations
	[Backport r144791]


svn path=/branches/mono-2-6/mcs/; revision=144792
2009-10-24 15:46:51 +00:00
Zoltan Varga 6fe974d80d Fix the build.
svn path=/branches/mono-2-6/mono/; revision=144790
2009-10-24 13:28:06 +00:00
Zoltan Varga 9ede4e5632 2009-10-24 Zoltan Varga <[email protected]>
* mini-exceptions.c (mini_jit_info_table_find): Add an 'out_domain' argument
    	which will contain the domain where the method was found.

    	* exceptions-<ARCH>.c mini-exceptions.c: Update callers of
    	mini_jit_info_table_find ().

svn path=/branches/mono-2-6/mono/; revision=144789
2009-10-24 13:27:59 +00:00
Gonzalo Paniagua Javier e67e2fae94 2009-10-24 Gonzalo Paniagua Javier <[email protected]>
* threadpool.[ch]: added hooks for thread start/finish and item
	processing begin/end. For monotouch use only.


svn path=/branches/mono-2-6/mono/; revision=144783
2009-10-24 04:35:13 +00:00
Zoltan Varga 75e9de6dd3 Fix the build.
svn path=/branches/mono-2-6/mono/; revision=144781
2009-10-24 02:32:23 +00:00
Zoltan Varga 74f0572274 2009-10-24 Zoltan Varga <[email protected]>
* threads.c (mono_thread_get_name): New helper function.

svn path=/branches/mono-2-6/mono/; revision=144780
2009-10-24 02:27:40 +00:00
Zoltan Varga 389692ae85 2009-10-24 Zoltan Varga <[email protected]>
* reflection.c (resolve_object): Set handle_class for strings too.
	(mono_reflection_create_custom_attr_data_args): New helper function to decode
	a cattr blob into a set of arrays and structures without creating the custom
	attributes themselves.
	(create_custom_attr_data): Simplify using create_custom_attr_data_args.

	* mono-debug.c (mono_debug_il_offset_from_address): New helper function.

	* debug-mono-symfile.c (mono_debug_symfile_get_line_numbers): New helper
	function.

svn path=/branches/mono-2-6/mono/; revision=144778
2009-10-24 02:19:39 +00:00
Zoltan Varga 7b436d9afc 2009-10-24 Zoltan Varga <[email protected]>
* aot-compiler.c (xdebug_end_emit): Remove so stray debug code.

svn path=/branches/mono-2-6/mono/; revision=144772
2009-10-24 00:56:59 +00:00
Zoltan Varga 245474ed6f 2009-10-24 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Avoid running deadce if it is disabled.

svn path=/branches/mono-2-6/mono/; revision=144764
2009-10-23 23:28:10 +00:00
Alexandre Gomes 370db981b3 Fixed GetWebRequest overriding problems, bug: https://bugzilla.novell.com/show_bug.cgi?id=549580
svn path=/branches/mono-2-6/mcs/; revision=144754
2009-10-23 18:37:47 +00:00
Sebastien Pouliot dbb67cab7a security-manager.c: Report if core-clr is active from ves_icall_System_Security_SecurityManager_get_SecurityEnabled to allow Moonlight BCL to behave appropriately (both in browser and outside, e.g. smcs)
svn path=/branches/mono-2-6/mono/; revision=144738
2009-10-23 14:34:04 +00:00
Sebastien Pouliot 042f77071a 2009-10-23 Sebastien Pouliot <[email protected]>
* SecurityManager_2_1.cs: Return to duty for SecurityEnabled, it
	will allow us to distinguish between running in the browser
	(coreclr active) and on the console (e.g. smcs) from managed code
	[Backport r144732]


svn path=/branches/mono-2-6/mcs/; revision=144733
2009-10-23 12:55:25 +00:00
Gonzalo Paniagua Javier 971d062268 2009-10-23 Gonzalo Paniagua Javier <[email protected]>
* mono-config.c: ignore UTF-8 BOM and report parser errors.
	Fixes bug #549108.


svn path=/branches/mono-2-6/mono/; revision=144729
2009-10-23 12:05:21 +00:00
Gonzalo Paniagua Javier b1a3d29a9e 2009-10-23 Gonzalo Paniagua Javier <[email protected]>
* Configuration.cs: make this work again with bundled configuration
	files. Fixes bug #495957. Patch from Tor Lillqvist.


svn path=/branches/mono-2-6/mcs/; revision=144723
2009-10-23 09:53:44 +00:00
Andreia Gaita 313b593071 * XmlConvert.cs: make ToUri static, fixes #548918 (moon)
[backport r144712]

2009-10-23  Andreia Gaita  <[email protected]>

svn path=/branches/mono-2-6/mcs/; revision=144713
2009-10-23 04:14:05 +00:00
Atsushi Eno cde520de2d merge r144706.
svn path=/branches/mono-2-6/mcs/; revision=144711
2009-10-23 03:46:01 +00:00
Atsushi Eno 428416e37d merge r144707.
svn path=/branches/mono-2-6/mcs/; revision=144710
2009-10-23 03:45:26 +00:00
Atsushi Eno 3184c790c7 merge everything from trunk.
svn path=/branches/mono-2-6/mcs/; revision=144704
2009-10-23 03:04:22 +00:00
Gonzalo Paniagua Javier 3e814f1d9b 2009-10-22 Gonzalo Paniagua Javier <[email protected]>
* class.c: fix typo.


svn path=/branches/mono-2-6/mono/; revision=144692
2009-10-22 22:49:45 +00:00
Sebastien Pouliot cf715cb40a corlib_test.dll.sources: Add System/WeakReferenceTest and System.Threading/EventWaitHandleTest.cs
svn path=/branches/mono-2-6/mcs/; revision=144685
2009-10-22 20:54:49 +00:00
Sebastien Pouliot a1f76a2fcf 2009-10-22 Sebastien Pouliot <[email protected]>
* EventWaitHandleTest.cs: New. Test case for EventResetMode 
	validation
	[Backport r144681]


svn path=/branches/mono-2-6/mcs/; revision=144684
2009-10-22 20:53:40 +00:00
Sebastien Pouliot 2645469dac 2009-10-22 Sebastien Pouliot <[email protected]>
* WeakReferenceTest.cs: New. Basic test cases
	[Backport r144681]


svn path=/branches/mono-2-6/mcs/; revision=144683
2009-10-22 20:49:58 +00:00
Sebastien Pouliot 426cc16e68 2009-10-22 Sebastien Pouliot <[email protected]>
* EventWaitHandleTest.cs: New. Test case for EventResetMode 
	validation
	[Backport r144681]


svn path=/branches/mono-2-6/mcs/; revision=144682
2009-10-22 20:47:55 +00:00
Marek Habersack d6a32cd6ce Backport of r144675
svn path=/branches/mono-2-6/mcs/; revision=144677
2009-10-22 20:01:50 +00:00
Zoltan Varga 8f82fce186 2009-10-22 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_prolog): Disable aot for methods with save_lmf
	set, its not supported yet.

svn path=/branches/mono-2-6/mono/; revision=144676
2009-10-22 20:01:43 +00:00
Zoltan Varga bbf387a8f2 2009-10-22 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_method): Avoid asserting if a array generic
	iface wrapper is not found.
	(mono_aot_get_method): Ditto for GetGenericValueImpl.

svn path=/branches/mono-2-6/mono/; revision=144673
2009-10-22 19:53:31 +00:00
Zoltan Varga 34c65cd606 2009-10-22 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_method): Avoid asserting if a array generic
	iface wrapper is not found.

svn path=/branches/mono-2-6/mono/; revision=144666
2009-10-22 18:54:18 +00:00
Marek Habersack 8c5d96e873 Backport of r144662
svn path=/branches/mono-2-6/mcs/; revision=144663
2009-10-22 18:32:58 +00:00
Jonathan Pryor 920fc7c140 * AssemblyInfo.cs: Use Consts.FxVersion when building for MONOTOUCH.
svn path=/branches/mono-2-6/mcs/; revision=144660
2009-10-22 18:20:03 +00:00
Atsushi Eno 3e977b2172 merge every changes to this assembly upto r144652.
svn path=/branches/mono-2-6/mcs/; revision=144658
2009-10-22 18:15:20 +00:00
Zoltan Varga 8d6429e08c 2009-10-22 Zoltan Varga <[email protected]>
* marshal.c (mono_string_builder_to_utf16): Applied patch from
	Hib Eris  <[email protected]>. Return empty string for empty string builders.
	Fixes #549173.

svn path=/branches/mono-2-6/mono/; revision=144654
2009-10-22 17:49:47 +00:00
Lluis Sanchez 9bed95350d 2009-10-22 Lluis Sanchez Gual <[email protected]>
* CodeNamespaceImportCollection.cs: Properly update the internal
	keys hashtable when there are changes in the items.


svn path=/branches/mono-2-6/mcs/; revision=144651
2009-10-22 16:29:41 +00:00
Atsushi Eno cc737a9ba2 backport r144647.
svn path=/branches/mono-2-6/mcs/; revision=144648
2009-10-22 16:12:06 +00:00
Sebastien Pouliot dd953f50c5 2009-10-22 Sebastien Pouliot <[email protected]>
* MonitorTest.cs: Mark existing tests as "NotWorking" since they
	fail in MS FX2 (maybe they worked in 1.x?). Add more test cases
	to validate the TryEnter and Wait overloaded methods.
	[Backport r144627]


svn path=/branches/mono-2-6/mcs/; revision=144629
2009-10-22 11:53:53 +00:00
Sebastien Pouliot 085200c215 2009-10-22 Sebastien Pouliot <[email protected]>
* Monitor.cs: Fix validations for TryEnter and Wait. Reduce 
	duplicated code between overloads.
	[Backport r144627]


svn path=/branches/mono-2-6/mcs/; revision=144628
2009-10-22 11:53:28 +00:00
Gonzalo Paniagua Javier 14599e07ed 2009-10-22 Carlo Kok <[email protected]>
* Fixed AssemblyInfo.cs to reflect proper copyright.


svn path=/branches/mono-2-6/mcs/; revision=144614
2009-10-22 09:03:41 +00:00
Gonzalo Paniagua Javier 9f906977c4 2009-10-21 Carlo Kok <[email protected]>
* RuntimeLicenseContext.cs: Support for the resourceAssembly parameter.


svn path=/branches/mono-2-6/mcs/; revision=144612
2009-10-22 09:02:37 +00:00
Gonzalo Paniagua Javier be8dbdf6df Add man page for lc
svn path=/branches/mono-2-6/mono/; revision=144590
2009-10-22 02:14:11 +00:00
Gonzalo Paniagua Javier f4c3f2d686 2009-10-21 Gonzalo Paniagua Javier <[email protected]>
* sockets.[ch]: fix function definition.


svn path=/branches/mono-2-6/mono/; revision=144577
2009-10-21 21:40:06 +00:00
Gonzalo Paniagua Javier 12a0a0ad85 2009-10-21 Gonzalo Paniagua Javier <[email protected]>
* socket-io.[ch]: fix VS build.


svn path=/branches/mono-2-6/mono/; revision=144574
2009-10-21 21:38:28 +00:00
Zoltan Varga 1d2fd92a88 2009-10-21 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_method): Fix support for the IList<T> wrappers,
	which have a different name.

svn path=/branches/mono-2-6/mono/; revision=144570
2009-10-21 21:04:00 +00:00
Zoltan Varga 8add79cafb 2009-10-21 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_method): Special case the array generic iface
	wrappers and Array.GetGenericValueImpl ().

	* aot-compiler.c: Avoid emitting some wrappers which are not needed anymore
	because of the change above.

	* generics.cs: Add a test for full aot + generic array ifaces.

svn path=/branches/mono-2-6/mono/; revision=144566
2009-10-21 19:35:13 +00:00
Jb Evain fa842425c7 2009-10-21 Jb Evain <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs: avoid using LINQ
	on arrays as MonoTouch has issues with them.


svn path=/branches/mono-2-6/mcs/; revision=144550
2009-10-21 16:47:54 +00:00
Rodrigo Kumpera e1c04a3fcf In metadata:
2009-10-21  Rodrigo Kumpera  <[email protected]>

	* verify.c (verify_delegate_compatibility): Properly verify delegate creation of static
	methods. Fixes #543021.

	Backport of r144534.

>>>>>>> .r144538

svn path=/branches/mono-2-6/mono/; revision=144544
2009-10-21 13:36:43 +00:00
Sebastien Pouliot 7a51fff22c corlib_test.dll.sources: Add System.Threading/WaitHandleTest.cs
svn path=/branches/mono-2-6/mcs/; revision=144532
2009-10-21 12:21:38 +00:00
Sebastien Pouliot b7a7012115 2009-10-21 Sebastien Pouliot <[email protected]>
* WaitHandleTest.cs: New. Add test cases for Wait[One|All|Any]
	methods overloads (at least the one present in Silverlight 2)
	[Backport r144529]


svn path=/branches/mono-2-6/mcs/; revision=144531
2009-10-21 12:20:35 +00:00
Sebastien Pouliot 066dd83f5d 2009-10-21 Sebastien Pouliot <[email protected]>
* WaitHandle.cs: Add missing validations for 'millisecondsTimeout'
	in Wait[One|Any|All]. Also call the overloaded (bool) methods for
	WaitAll to reduce code duplication.
	[Backport r144529]


svn path=/branches/mono-2-6/mcs/; revision=144530
2009-10-21 12:19:45 +00:00
Gonzalo Paniagua Javier ed2f872e65 2009-10-21 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: implement *SendFile().


svn path=/branches/mono-2-6/mcs/; revision=144511
2009-10-21 06:43:44 +00:00
Gonzalo Paniagua Javier 1759857a1f 2009-10-21 Gonzalo Paniagua Javier <[email protected]>
* icall-def.h:
	* socket-io.[ch]: implemented SendFile.


svn path=/branches/mono-2-6/mono/; revision=144508
2009-10-21 06:34:48 +00:00
Gonzalo Paniagua Javier 3ed983bcab 2009-10-21 Gonzalo Paniagua Javier <[email protected]>
* sockets.[ch]: added TransmitFile implementation.


svn path=/branches/mono-2-6/mono/; revision=144505
2009-10-21 06:31:11 +00:00
Marek Habersack 3ae87c406b Backport of r144487
svn path=/branches/mono-2-6/mcs/; revision=144488
2009-10-20 19:22:13 +00:00
Zoltan Varga 5fbbcc177f 2009-10-20 Zoltan Varga <[email protected]>
* class.c (mono_class_create_from_typedef): Initialize class->element_class
	before the interfaces to avoid crashes later if class initialization fails.
	Fixes #548417.

svn path=/branches/mono-2-6/mono/; revision=144484
2009-10-20 19:03:53 +00:00
Gonzalo Paniagua Javier dd726bd89f 2009-10-20 Gonzalo Paniagua Javier <[email protected]>
* ApplicationHost.cs: set the shadow copy options calling the methods
	in AppDomain, instead of setting them in a copy of the setup
	information.


svn path=/branches/mono-2-6/mcs/; revision=144479
2009-10-20 18:31:55 +00:00
Zoltan Varga 51bca79c22 2009-10-16 Zoltan Varga <[email protected]>
* Makefile: Avoid else ifeq which is not recognized by some make versions.

svn path=/branches/mono-2-6/mcs/; revision=144471
2009-10-20 17:01:53 +00:00
Sebastien Pouliot b26939284a 2009-10-20 Sebastien Pouliot <[email protected]>
* TimerTest.cs: Add more validation tests
	[Backport r144466]


svn path=/branches/mono-2-6/mcs/; revision=144468
2009-10-20 15:54:08 +00:00
Sebastien Pouliot 9f622ff4ee 2009-10-20 Sebastien Pouliot <[email protected]>
* Timer.cs: Always call Init from every constructors to avoid 
	duplicate checks. Fix validations on different dueTime and period
	(ctor and Change methods). Seal private TimerComparer class and
	avoid multiple (identical) casts in its Compare method. Seal 
	private Scheduler class.
	[Backport r144466]


svn path=/branches/mono-2-6/mcs/; revision=144467
2009-10-20 15:53:31 +00:00
Gonzalo Paniagua Javier 06e892b980 2009-10-20 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: make sure we don't insert 2 timers with the same key.


svn path=/branches/mono-2-6/mcs/; revision=144463
2009-10-20 15:29:50 +00:00
Gonzalo Paniagua Javier 143af05a93 2009-10-20 Gonzalo Paniagua Javier <[email protected]>
* ServerContext.cs:
	* SslServerStream.cs: add new parameter that forces sending the
	CertificateRequest record. Make sure we raise the client certificate
	validation event when it is requested or required.


svn path=/branches/mono-2-6/mcs/; revision=144460
2009-10-20 15:25:48 +00:00
Sebastien Pouliot ef4767f919 2009-10-20 Sebastien Pouliot <[email protected]>
* MonoProperty.cs: Reduce code duplication and the number of direct
	calls to icalls (affecting the number of SecuritySafeCritical in
	Moonlight)
	[Backport 144448]


svn path=/branches/mono-2-6/mcs/; revision=144449
2009-10-20 12:05:20 +00:00
Jb Evain 47333cf53e 2009-10-20 Jb Evain <[email protected]>
* Thread.cs: change type of the current_appcontext field to object
	to avoid triggering static constructors unless explicitely required.


svn path=/branches/mono-2-6/mcs/; revision=144430
2009-10-20 09:02:57 +00:00
Sebastien Pouliot 38e2758eb0 2009-10-19 Sebastien Pouliot <[email protected]>
* assembly.c (mono_assembly_load_reference): Fix leak when 'status'
	code is known. (parse_public_key) Remove duplicate (unneeded) NULL
	check since 'pubkey' can't be NULL at this stage
	* icall.c (ves_icall_System_Array_FastCopy): Add comment about
	the check. (ves_icall_Type_GetInterfaceMapData) Remove duplicate
	initialization of 'iter'
	[Backport r144403]


svn path=/branches/mono-2-6/mono/; revision=144405
2009-10-19 19:39:10 +00:00
Sebastien Pouliot b3bef3cb6a 2009-10-19 Sebastien Pouliot <[email protected]>
* aot-compiler.c (emit_plt): Remove duplicate 'debug_sym' variable 
	that hides the previous one.
	[Backport r144402]


svn path=/branches/mono-2-6/mono/; revision=144404
2009-10-19 19:37:39 +00:00
Sebastien Pouliot 64f837613d 2009-10-19 Sebastien Pouliot <[email protected]>
* MonoEvent.cs: Reduce code duplication and the number of direct
	calls to icalls (affecting the number of SecuritySafeCritical in
	Moonlight)
	[Backport r144363]


svn path=/branches/mono-2-6/mcs/; revision=144364
2009-10-19 11:49:05 +00:00
Sebastien Pouliot 20e81a7bd0 2009-10-18 Sebastien Pouliot <[email protected]>
* MethodBaseTest.cs: Add new, working, test for non-generic
	GetMethodFromHandle. Add test case to show generic overload
	behave exactly the same when no second RuntimeMethodHandle is
	provided. Remove [Category("NotWorking")] on existing test case.
	[Backport r144335]


svn path=/branches/mono-2-6/mcs/; revision=144337
2009-10-18 23:53:42 +00:00
Sebastien Pouliot 6088064eb7 * MethodBase.cs: Reduce code duplication and the number of direct
calls to icalls (affecting the number of SecuritySafeCritical in
	Moonlight)
	[Backport r144335]

2009-10-18  Sebastien Pouliot  <[email protected]>


svn path=/branches/mono-2-6/mcs/; revision=144336
2009-10-18 23:53:00 +00:00
Zoltan Varga 7a90062ebe 2009-10-18 Zoltan Varga <[email protected]>
* aot-compiler.c (can_marshal_struct): Allow some System.dll structs to be
	marshalled. Fixes #541623.

svn path=/branches/mono-2-6/mono/; revision=144332
2009-10-18 18:17:35 +00:00
Geoff Norton e0e853111c make these public on monotouch
svn path=/branches/mono-2-6/mcs/; revision=144327
2009-10-18 17:11:06 +00:00
Sebastien Pouliot dbece2a334 In .:
2009-10-18  Sebastien Pouliot  <[email protected]>

	* corlib.dll.sources: Remove System.IO.IntPtrStream since it can
	be replaced by (public in 2.0+) UnmanagedMemoryStream
	* net_2_1_raw_corlib.dll.sources: Remove System.IO.IntPtrStream 
	since it can be replaced by UnmanagedMemoryStream
	[Backport r144322]

In System.Resources:
2009-10-18  Sebastien Pouliot  <[email protected]>

	* ResourceReader.cs, ResourceSet.cs, RuntimeResourceSet.cs: Use 
	UnmanagedMemoryStream (instead of IntPtrStream)
	[Backport r144322]

In System.IO:
2009-10-18  Sebastien Pouliot  <[email protected]>

	* UnmanagedMemoryStream.cs: Allow the use under NET_1_1 so we can
	remove the internal IntPtrStream from every profile.

In System.Reflection:
2009-10-18  Sebastien Pouliot  <[email protected]>

	* Assembly.cs: Use UnmanagedMemoryStream (instead of IntPtrStream)
	in every profile


svn path=/branches/mono-2-6/mcs/; revision=144323
2009-10-18 15:08:03 +00:00
Gonzalo Paniagua Javier 7148b88fc6 2009-10-17 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: add 3 missing DoCallback() calls in
	EndRead/EndWrite.


svn path=/branches/mono-2-6/mcs/; revision=144316
2009-10-18 02:09:23 +00:00
Sebastien Pouliot ce43336bb8 2009-10-17 Sebastien Pouliot <[email protected]>
* EqualityComparer.cs: Seal internal classes
	[Backport r144308]


svn path=/branches/mono-2-6/mcs/; revision=144309
2009-10-17 15:54:37 +00:00
Sebastien Pouliot 59a7e4c2de 2009-10-17 Sebastien Pouliot <[email protected]>
* MonoMethod.cs: Reduce code duplication and the number of direct
	calls to icalls (affecting the number of SecuritySafeCritical in
	Moonlight)
	[Backport r144306]


svn path=/branches/mono-2-6/mcs/; revision=144307
2009-10-17 14:56:38 +00:00
Zoltan Varga f6a4795925 2009-10-16 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_extra_methods): Remove some asserts which are not needed.

svn path=/branches/mono-2-6/mono/; revision=144277
2009-10-16 15:43:51 +00:00
Marek Safar 71f60a3d4a 2009-10-16 Marek Safar <[email protected]>
A fix for bug #493523, #507067
	* convert.cs, nullable.cs, expression.cs: Do implicit and explicit
	standard nullable conversion using underlying standard conversion
	and not full conversion.


svn path=/branches/mono-2-6/mcs/; revision=144266
2009-10-16 13:47:18 +00:00
Atsushi Eno c81b863ef0 backport r144249.
svn path=/branches/mono-2-6/mcs/; revision=144250
2009-10-16 03:53:04 +00:00
Gonzalo Paniagua Javier 5002ce6535 add lc
svn path=/branches/mono-2-6/mono/; revision=144246
2009-10-16 03:18:12 +00:00
Gonzalo Paniagua Javier a665fdb2e9 add lc
svn path=/branches/mono-2-6/mcs/; revision=144245
2009-10-16 03:17:46 +00:00
Gonzalo Paniagua Javier 38079f5fa0 2009-10-12 Carlo Kok <[email protected]>
* DesigntimeLicenseContextSerializer.cs: Properly serialize licenses.
	* RuntimeLicenseContext.cs: Properly deserialize licenses.


svn path=/branches/mono-2-6/mcs/; revision=144240
2009-10-16 02:49:32 +00:00
Sebastien Pouliot 53665d2a9c 2009-10-15 Sebastien Pouliot <[email protected]>
* UnmanagedMemoryStreamTest.cs: Add more test cases to cover all
	validations
	[Backport r144226]


svn path=/branches/mono-2-6/mcs/; revision=144228
2009-10-15 20:20:17 +00:00
Sebastien Pouliot 286bcb9e60 2009-10-15 Sebastien Pouliot <[email protected]>
* UnmanagedMemoryStream.cs: Fix some and add missing validations
	[Backport r144226]


svn path=/branches/mono-2-6/mcs/; revision=144227
2009-10-15 20:19:37 +00:00
Sebastien Pouliot 9621c55b69 2009-10-15 Sebastien Pouliot <[email protected]>
* RuntimeHelpersTest.cs: Add more test cases for validations
	[Backport r144208]


svn path=/branches/mono-2-6/mcs/; revision=144210
2009-10-15 14:37:52 +00:00
Sebastien Pouliot dd815fb7fe 2009-10-15 Sebastien Pouliot <[email protected]>
* RuntimeHelpers.cs: Add missing validations
	[Backport r144208]


svn path=/branches/mono-2-6/mcs/; revision=144209
2009-10-15 14:37:06 +00:00
Sebastien Pouliot 839e971be3 2009-10-15 Sebastien Pouliot <[email protected]>
* GCHandleTest.cs: Add more test cases for validations
	[Backport r144204]


svn path=/branches/mono-2-6/mcs/; revision=144206
2009-10-15 14:22:19 +00:00
Sebastien Pouliot 17fa7867f8 2009-10-15 Sebastien Pouliot <[email protected]>
* GCHandle.cs: Add missing validations
	[Backport r144204]


svn path=/branches/mono-2-6/mcs/; revision=144205
2009-10-15 14:21:34 +00:00
Sebastien Pouliot aca521aca6 2009-10-15 Sebastien Pouliot <[email protected]>
* HttpRequestChannel.cs (WaitEnd): Neither Moonlight nor MonoTouch
	support contexts so we call the non-overloaded WaitOne method 
	(which defaults to false).
	[Backport r144200]


svn path=/branches/mono-2-6/mcs/; revision=144201
2009-10-15 12:54:23 +00:00
Sebastien Pouliot 10274adf0a 2009-10-15 Sebastien Pouliot <[email protected]>
* ClientRuntimeChannel.cs: Remove the WaitOne 'emitContext' 
	overloads from the Moonlight build. Directly call WaitHandle.
	WaitAll from WaitOne(int) (since the overloads are not always
	present)
	[Backport r144198]


svn path=/branches/mono-2-6/mcs/; revision=144199
2009-10-15 12:52:42 +00:00
Jb Evain 062e9f5266 2009-10-15 Jb Evain <[email protected]>
* monotouch_System.dll.sources: add Semaphore to MonoTouch.


svn path=/branches/mono-2-6/mcs/; revision=144192
2009-10-15 10:45:25 +00:00
Zoltan Varga c8bad1334e 2009-10-15 Zoltan Varga <[email protected]>
* mini.c (mono_op_imm_to_op): Handle OP_AND/OR/XOR_IMM.

svn path=/branches/mono-2-6/mono/; revision=144168
2009-10-15 00:12:37 +00:00
Jonathan Pryor a5d121ff11 Fix MonoTouch on the mono-2-6 branch.
svn path=/branches/mono-2-6/mcs/; revision=144154
2009-10-14 21:42:18 +00:00
Gonzalo Paniagua Javier 396faa531e fix the build
svn path=/branches/mono-2-6/mcs/; revision=144152
2009-10-14 20:58:11 +00:00
Jonathan Pryor 451dd25eb9 * Makefile: Add Mono.Data.Tds, System.Transactions, System.Data, and
Mono.Data.Sqlite to the MonoTouch build.
	* System/System.ComponentModel/TypeConverter_2_1.cs: Skip this type in
		the MonoTouch profile; MonoTouch will be using the 2.0 version of 
		TypeConverter.
	* System/System.ComponentModel/ComponentCollection.cs, 
		System/System.ComponentModel/PropertyDescriptor.cs: MonoTouch uses the
		.NET 2.0 versions of these types.
	* System/monotouch_System.dll.sources: Add lots of additional .NET 2.0
		functionality to the MonoTouch profile.
	* System.Transactions/Makefile (VALID_PROFILE): Add monotouch.
	* System.Data/System.Data.Common/DbConnection.cs: Throw 
		NotImplementedException for DbConnection.DbProviderFactory, as 
		DbProviderFactories isn't included in the MonoTouch profile.
	* System.Data/System.Data.SqlClient/SqlConnection.cs: Remove 
		EnterpriseServices dependency from the MonoTouch profile.
	* System.Data/monotouch_System.Data.dll.sources: Added.
	* System.Data/System.Data/XmlSchemaDataImporter.cs: Remove 
		DbProviderFactories dependency in the MonoTouch profile.

svn path=/branches/mono-2-6/mcs/; revision=144142
2009-10-14 20:28:31 +00:00
Gonzalo Paniagua Javier 7252b6595e 2009-10-14 Gonzalo Paniagua Javier <[email protected]>
* ApplicationHost.cs: use shadowCopyBinAssemblies from
	<hostingEnvironment>.


svn path=/branches/mono-2-6/mcs/; revision=144138
2009-10-14 19:30:28 +00:00
Marek Habersack 1f16f07de0 Backport of r144016
svn path=/branches/mono-2-6/mcs/; revision=144129
2009-10-14 18:18:35 +00:00
Sebastien Pouliot 3bf0adf06b 2009-10-14 Sebastien Pouliot <[email protected]>
* CultureInfo.cs: Refactor to reduce unsafe methods/scope.
	[Backport r144106]


svn path=/branches/mono-2-6/mcs/; revision=144107
2009-10-14 15:14:25 +00:00
Sebastien Pouliot bfea298166 2009-10-14 Sebastien Pouliot <[email protected]>
* Exception.cs: Use StackFrame.GetSecureFileName to display (or 
	not) the file names (and paths). Don't serialize Source for
	Moonlight.
	* ValueType.cs: Change InternalEquals (icall) visibility to 
	private since it is not used elsewhere outside the type.
	[Backport r144104]


svn path=/branches/mono-2-6/mcs/; revision=144105
2009-10-14 15:09:48 +00:00
Martin Baulig 480d488ef3 Backport of 144049; add a new 'MONO_DEBUGGER_EVENT_TRAMPOLINE' notification for the debugger which also includes the address of the callsite.
2009-10-13  Martin Baulig  <[email protected]>

	* debug-mini.c (mono_debugger_trampoline_compiled): Add
	`const guint8 *trampoline' argument; send both the old and the new
	notification.

2009-10-13  Martin Baulig  <[email protected]>

	* mono-debug-debugger.h (MonoDebuggerEvent): Renamed
	`MONO_DEBUGGER_EVENT_TRAMPOLINE' into
	`MONO_DEBUGGER_EVENT_OLD_TRAMPOLINE' and added a new
	`MONO_DEBUGGER_EVENT_TRAMPOLINE'.

	* mono-debug.h (MONO_DEBUGGER_MINOR_VERSION): Bump to 4.

svn path=/branches/mono-2-6/mono/; revision=144065
2009-10-13 23:03:19 +00:00
Zoltan Varga 06e50b881f 2009-10-13 Zoltan Varga <[email protected]>
* mono-gdb.py: Add an 'xdb' command to flush the debugging info.

svn path=/branches/mono-2-6/mono/; revision=144036
2009-10-13 18:26:08 +00:00
Zoltan Varga ff049da6c1 2009-10-13 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Group methods into groups of 10 to
	avoid registering 1 symbol file per method with gdb.

svn path=/branches/mono-2-6/mono/; revision=144034
2009-10-13 18:20:30 +00:00
Zoltan Varga 43e1fd9f0e 2009-10-11 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Emit a symbol for the method which
	can be used to set breakpoints in gdb.

	* image-writer.c (bin_writer_emit_writeout): Add support for setting the text
	segment to an absolute address.

svn path=/branches/mono-2-6/mono/; revision=144033
2009-10-13 18:20:22 +00:00
Zoltan Varga b680cf6b99 2009-10-13 Bill Holmes <[email protected]>
* aot-compiler.c : Fix the MSVC builds

	Code is contributed under MIT/X11 license.

svn path=/branches/mono-2-6/mono/; revision=144029
2009-10-13 17:52:18 +00:00
Zoltan Varga b5a02e9870 Fix the eglib build.
svn path=/branches/mono-2-6/mono/; revision=144015
2009-10-13 15:08:27 +00:00
Veerapuram Varadhan ee48d73acd backport of r143993, r143995
svn path=/branches/mono-2-6/mcs/; revision=143996
2009-10-13 01:19:28 +00:00
Marek Habersack 1950420281 Backport of r143990
svn path=/branches/mono-2-6/mcs/; revision=143991
2009-10-12 22:52:16 +00:00
Zoltan Varga feaafeeb4e Fix the build.
svn path=/branches/mono-2-6/mcs/; revision=143989
2009-10-12 22:47:14 +00:00
Zoltan Varga dae32f25ea 2009-10-12 Zoltan Varga <[email protected]>
* Process.cs (Dispose): Close the async output/error readers. Fixes #545429.

svn path=/branches/mono-2-6/mcs/; revision=143986
2009-10-12 21:31:08 +00:00
Marek Habersack 5c4860a930 Backport of r143979
svn path=/branches/mono-2-6/mcs/; revision=143980
2009-10-12 21:11:43 +00:00
Marek Habersack 30a5dda745 Backport of r143972
svn path=/branches/mono-2-6/mcs/; revision=143973
2009-10-12 14:43:19 +00:00
Marek Habersack 2289967204 Backport of r143967
svn path=/branches/mono-2-6/mcs/; revision=143968
2009-10-12 12:52:05 +00:00
Dick Porter e91a24c3f4 2009-10-12 Dick Porter <[email protected]>
* Splitter.cs: Adjust offsets when more than one splitter is
	present in a control.  Fixes bug 509472.


svn path=/branches/mono-2-6/mcs/; revision=143965
2009-10-12 12:30:26 +00:00
Ankit Jain 75d91d9c99 Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2009-10-12  Ankit Jain  <[email protected]>

	* xbuild/Microsoft.Common.targets: For referenced projects,
	when trying to get the deploy items, ensure that the split
	lists of project references are available.
	(SplitProjectReferencesByExistent): New.
	Set DependsOnTargets appropriately.

2009-10-12  Ankit Jain  <[email protected]>

	* SolutionParser.cs: Handle non-existing project files, and
	project file load errors. Raise warnings instead of failing.
	* xbuild/Microsoft.Common.targets: Handle non-existant
	Project references, skip instead of failing.

In class/Microsoft.Build.Tasks:
2009-10-12  Ankit Jain  <[email protected]>

	* Makefile: Add reference to Microsoft.Build.Engine .

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-10-12  Ankit Jain  <[email protected]>

	* ResolveAssemblyReference.cs: Remove unnecessary tab in the warning
	messages.

2009-10-12  Ankit Jain  <[email protected]>

	* MSBuild.cs (Execute): Handle build errors.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-12  Ankit Jain  <[email protected]>

	* Target.cs (TargetFile): New. Gives the name of the file
	containing the target definition.
	* BuildEngine.cs (.ctor): Add a 'taskfile' parameters, and
	return this for ProjectFileOfTaskNode.
	* BuildTask.cs (LogTaskStarted):
	(LogTaskFinished): Use parentTarget.ProjectFileOfTaskNode for
	the event.
	(InitializeTask): Set BuildEngine's task file to parent target's
	TargetFile.
	* Engine.cs (LogProjectStarted): Incase of default targets, set
	TargetNames to String.Empty .
	* TargetBatchingImpl.cs (LogTargetStarted):
	(LogTargetFinished): Use target.TargetFile for the event.

	* ConsoleLogger.cs: Keep a stack of project/target/task being
	executed. And corresponding list of errors and warnings.
	(EventsToString): Stringifies the current "stack", to be used
	as key to the table of errors/warnings and for show messages
	at the end of the build.

2009-10-12  Ankit Jain  <[email protected]>

	* Project.cs (Load): Add argument checks.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-10-12  Ankit Jain  <[email protected]>

	* TaskLoggingHelper.cs: Use the buildEngine.ProjectFileOfTaskNode
	in the event args.

2009-10-12  Ankit Jain  <[email protected]>

	* ToolTask.cs (ExecuteTool): Don't set toolOutput to null.
	(HandleTaskExecutionErrors): toolOutput can be null.
	Set toolOutput to null here.


svn path=/branches/mono-2-6/mcs/; revision=143964
2009-10-12 12:23:53 +00:00
Gonzalo Paniagua Javier 2fefe83b93 fix build
svn path=/branches/mono-2-6/mono/; revision=143963
2009-10-12 12:23:00 +00:00
Zoltan Varga d3442a8864 2009-10-12 Zoltan Varga <[email protected]>
* data/Makefile.am (gdb_DATA): Install mono-gdb.py alongside the mono executable.

svn path=/branches/mono-2-6/mono/; revision=143961
2009-10-12 12:04:21 +00:00
Zoltan Varga 054aa8742c 2009-10-12 Zoltan Varga <[email protected]>
* mono-gdb.py: Update this to gdb 7.0.

	* mono-gdbinit: Removed, no longer needed.

svn path=/branches/mono-2-6/mono/; revision=143960
2009-10-12 12:04:15 +00:00
Zoltan Varga 218d0e4fd6 2009-10-12 Zoltan Varga <[email protected]>
* data/gdb-pre7.0: New directory, containing the mono support files for
	gdb versions before 7.0.

svn path=/branches/mono-2-6/mono/; revision=143959
2009-10-12 12:04:08 +00:00
Marek Habersack 02d778b53f Backport of r143950
svn path=/branches/mono-2-6/mcs/; revision=143951
2009-10-12 10:50:12 +00:00
Marek Habersack d3db87f166 Backport of r143945
svn path=/branches/mono-2-6/mcs/; revision=143946
2009-10-12 09:52:38 +00:00
Gonzalo Paniagua Javier bd265b0b4c Patch by Joel Reed that implements a few network interface counters
svn path=/branches/mono-2-6/mono/; revision=143935
2009-10-12 05:56:18 +00:00
Ankit Jain cdde6d1025 * xbuild.1: Add info about env var XBUILD_COLORS.
Backported from trunk.

svn path=/branches/mono-2-6/mono/; revision=143907
2009-10-11 01:40:39 +00:00
Ankit Jain 85453c1f27 Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2009-10-11  Ankit Jain  <[email protected]>

	* Main.cs: Add support for emitting messages in color.
	Taking relevant code from mcs/report.cs . Using ANSI
	color codes here instead of Console.ForegroundColor
	because of a bug in Console.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-11  Ankit Jain  <[email protected]>

	* ConsoleLogger.cs (no_colors): Rename to ..
	(use_colors): .. this. Fix the case when XBUILD_COLORS
	is not set.

2009-10-11  Ankit Jain  <[email protected]>

	* ConsoleLogger.cs: Use ColorSetter and ColorResetter .
	Support 'XBUILD_COLORS' to set colors for errors, warnings,
	events and messages.

2009-10-10  Ankit Jain  <[email protected]>

	* ConsoleLogger.cs (ProjectFinishedHandler): Once projectFailed
	becomes true, don't reset it. We are looking for "atleast one
	project failed".


svn path=/branches/mono-2-6/mcs/; revision=143904
2009-10-11 01:33:37 +00:00
Zoltan Varga 8523e6fd4c 2009-10-10 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_trampoline_xdebug_info): Implement this for the
	gdb mode.

svn path=/branches/mono-2-6/mono/; revision=143895
2009-10-10 18:57:32 +00:00
Zoltan Varga 0d44e4bd88 2009-10-09 Zoltan Varga <[email protected]>
* mono.1: Document --debug=gdb option.

svn path=/branches/mono-2-6/mono/; revision=143891
2009-10-09 19:01:39 +00:00
Zoltan Varga 5fe74de573 2009-10-09 Zoltan Varga <[email protected]>
* driver.c (parse_debug_options): Add a 'gdb' option.

	* mini.c (mini_parse_debug_options): Add a 'gdb' option.

svn path=/branches/mono-2-6/mono/; revision=143890
2009-10-09 19:01:32 +00:00
Zoltan Varga 610c46ca01 2009-10-09 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoSupport.run_hook): Set MONO_XDEBUG to 'gdb' to activate
	the GDB support mode in the runtime.

svn path=/branches/mono-2-6/mono/; revision=143889
2009-10-09 19:01:25 +00:00
Zoltan Varga 05ec37ee5d 2009-10-09 Zoltan Varga <[email protected]>
* image-writer.c: Add support for emitting the image into a memory buffer.

	* dwarfwriter.c: Add support for sharing one IL file between multiple images.

	* aot-compiler.c: Add support for registering debug info with GDB using the
	new JIT debugging interface in GDB 7.0. It can be turned on by setting
	MONO_XDEBUG to 'gdb'.

svn path=/branches/mono-2-6/mono/; revision=143888
2009-10-09 19:01:18 +00:00
Ankit Jain c39fd613b6 Update xbuild and Microsoft.Build.* from trunk.
2009-10-09  Ankit Jain  <[email protected]>

	* Exec.cs (AddCommandLineCommands): Add '/q' for cmd.exe, to
	turn 'echo off'. And make sure the script file on windows, has
	a '.bat' extension, otherwise cmd.exe opens it in a text editor.

2009-10-09  Ankit Jain  <[email protected]>

	Fix bug #545703.
	* Exec.cs (Command): On unix, change CRLF to CR.


svn path=/branches/mono-2-6/mcs/; revision=143881
2009-10-09 15:52:17 +00:00
Zoltan Varga ae4b04c837 2009-10-09 Zoltan Varga <[email protected]>
* image-writer.c (bin_writer_emit_writeout): Fix a copy paste error causing
	the LOC section to overwrite the LINE section.

svn path=/branches/mono-2-6/mono/; revision=143875
2009-10-09 14:49:13 +00:00
Marek Safar fcdff7ed33 Fixed bootstrap with trunk
svn path=/branches/mono-2-6/mcs/; revision=143870
2009-10-09 14:13:21 +00:00
Atsushi Eno e84d2dde76 backport r143819.
svn path=/branches/mono-2-6/mcs/; revision=143820
2009-10-09 03:28:45 +00:00
Veerapuram Varadhan ab56f08cdf 2009-09-30 Veerapuram Varadhan <[email protected]>
** Fixes #543207
	* OracleParameter.cs (Bind): Do not remove the trailing-null-byte.

svn path=/branches/mono-2-6/mcs/; revision=143805
2009-10-08 19:38:29 +00:00
Sebastien Pouliot e7ca8f20c4 2009-10-08 Sebastien Pouliot <[email protected]>
* StackFrame.cs: Introduce a new GetSecureFileName method that
	will deal with CAS (regular framework) and will remove the path
	(for Moonlight) on a stack frame.
	* StackTrace.cs: Use the new StackFrame.GetSecureFileName to
	simplify logic
	[Backport r143802]


svn path=/branches/mono-2-6/mcs/; revision=143804
2009-10-08 19:31:10 +00:00
Sebastien Pouliot 15b13478af 2009-10-08 Sebastien Pouliot <[email protected]>
* AppDomain.cs: Remove NET_2_1 specific DefineDynamicAssembly(
	AssemblyName,AssemblyBuilderAccess,bool) since it is not part
	of SL. Provide a ToString implementation similar to Silverlight
	for Moonlight (and without directly using an icall)
	[Backport r143799]


svn path=/branches/mono-2-6/mcs/; revision=143800
2009-10-08 19:06:02 +00:00
Jb Evain d0cc112de9 2009-10-08 Jb Evain <[email protected]>
* Makefile: build the i18n assemblies on MonoTouch.


svn path=/branches/mono-2-6/mcs/; revision=143774
2009-10-08 13:57:23 +00:00
Jb Evain 1bbc0280f6 use the expression interpreter on MonoTouch
svn path=/branches/mono-2-6/mcs/; revision=143770
2009-10-08 13:53:02 +00:00
Ankit Jain 2f8194612d Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
	* xbuild/Microsoft.Common.targets: Don't get list of files
	to deploy, for 'Private' project references.
	Fix target named for *CopyDeploy*.

2009-10-08  Ankit Jain  <[email protected]>

In tools/xbuild/tests:
2009-10-08  Ankit Jain  <[email protected]>

	* standalone/Project1: Add a new Lib5 project, and add
	private references to various projects.
	Update final-outputs.txt .
	* standalone/Project01/Lib5/*: New.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
	* ResolveAssemblyReference.cs: Don't resolve any dependencies for
	assemblies resolved from {PkgConfig}. Honor parent's CopyLocal for
	dependencies.

2009-10-08  Ankit Jain  <[email protected]>


svn path=/branches/mono-2-6/mcs/; revision=143741
2009-10-08 02:19:49 +00:00
Ankit Jain be9de0e1ac Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2009-10-08  Ankit Jain  <[email protected]>

	* xbuild/Microsoft.Common.tasks: Add RemoveDuplicates task.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2009-10-08  Ankit Jain  <[email protected]>

	* TestMessageLogger.cs (CheckLoggedAny): New.

2009-10-08  Ankit Jain  <[email protected]>

	* RemoveDuplicatesTest.cs: New.

In class/Microsoft.Build.Tasks:
2009-10-08  Ankit Jain  <[email protected]>

	* Microsoft.Build.Tasks_test.dll.sources: Added
	RemoveDuplicatesTest.cs

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-10-08  Ankit Jain  <[email protected]>

	* MSBuild.cs (Execute): Don't share target output items,
	always create a copy.

2009-10-08  Ankit Jain  <[email protected]>

	* RemoveDuplicates.cs: Use item's ItemSpec as the key.

2009-10-07  Ankit Jain  <[email protected]>

	* ManagedCompiler.cs (HandleTaskExecutionErrors): Log error if
	required.

2009-10-06  Ankit Jain  <[email protected]>

	* Exec.cs (ExecuteTool): Use DeleteTempFile instead of File.Delete
	(HandleTaskExecutionErrors): Log error, if required.
	* MSBuild.cs: Don't log error.
	* Warning.cs: Don't log if @text is empty.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-10-08  Ankit Jain  <[email protected]>

	* ProjectTest.cs (TestBatchedMetadataRefInOutput): New.

In class/Microsoft.Build.Engine/Test/various:
2009-10-08  Ankit Jain  <[email protected]>

	* Items.cs (TestItemsWithWildcards): New.

2009-10-08  Ankit Jain  <[email protected]>

	* Items.cs (TestItems5): Fix to work correctly on windows
	and unix.
	(TestReservedMetadata): New.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-08  Ankit Jain  <[email protected]>

	* DirectoryScanner.cs: Use Path.GetPathRoot, instead of
	directly using DirectoryInfo ("z:"), that doesn't return
	a dir info for "z:".

2009-10-08  Ankit Jain  <[email protected]>

	* DirectoryScanner.cs: Handle absolute paths. Fix to work
	correctly on windows. Change order of adding paths to match
	msbuild, useful to have.

2009-10-08  Ankit Jain  <[email protected]>

	* TaskBatchingImpl.cs (ParseTaskAttributes): Parse attributes
	of the 'Output' element also.
	* TaskEngine.cs (PublishOutput): Honor condition on 'Output' also.

2009-10-07  Ankit Jain  <[email protected]>

	* ConsoleLogger.cs: Mark build as failed, if any project failed.

2009-10-06  Ankit Jain  <[email protected]>

	* ConsoleLogger: Improve error reporting. Don't count failed task,
	target or project as another error. Show "errors" after "warnings",
	more useful to the user.
	* Project.cs (BuildTarget): Log error instead of using CWL.

In class/Microsoft.Build.Utilities/Mono.XBuild.Utilities:
2009-10-08  Ankit Jain  <[email protected]>

	* ReservedNameUtils.cs: Fix 'RootDir', 'Directory'.
	(WithTrailingSlash): New.
	Update to use the new WithTrailingSlash method.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-10-06  Ankit Jain  <[email protected]>

	* ToolTask.cs (Execute): HandleTaskExecutionErrors is called only
	if exitCode != 0.
	(ExecuteTool): Move logging of exitcode to HandleTaskExecutionErrors.
	Remove MonoTODOs.
	* TaskLoggingHelper.cs (LogMessageFromText): New.
	(LogMessage): Refactor to use above.


svn path=/branches/mono-2-6/mcs/; revision=143736
2009-10-08 00:58:55 +00:00
Atsushi Eno 5464542c55 backport r143704 from trunk.
svn path=/branches/mono-2-6/mcs/; revision=143706
2009-10-07 19:14:40 +00:00
Atsushi Eno 4ce9ff767f I have committed extraneous stuff (that I once did too in trunk).
svn path=/branches/mono-2-6/mcs/; revision=143705
2009-10-07 19:13:32 +00:00
Atsushi Eno db5459c586 merge all changes from trunk (r143247 - r143697)
svn path=/branches/mono-2-6/mcs/; revision=143702
2009-10-07 19:04:59 +00:00
Atsushi Eno 3268e37cd1 merge all commits from trunk (r142816 - r143609)
svn path=/branches/mono-2-6/mcs/; revision=143700
2009-10-07 18:54:05 +00:00
Sebastien Pouliot d4674914b9 2009-10-07 Sebastien Pouliot <[email protected]>
* String.cs: Remove unsafe code duplication in ToCharArray.
	Define out the unused InternalStrcpy icalls
	* StringComparer.cs: Seal internal/private inner classes.
	[Backport r143651]


svn path=/branches/mono-2-6/mcs/; revision=143653
2009-10-07 13:46:13 +00:00
Sebastien Pouliot e7702bf35d 2009-10-07 Sebastien Pouliot <[email protected]>
* CompareInfo.cs: Don't allow MONO_DISABLE_MANAGED_COLLATION
	override for Moonlight and move all icalls together so they
	can be #if-ed out.
	[Backport r143648]


svn path=/branches/mono-2-6/mcs/; revision=143649
2009-10-07 13:41:18 +00:00
Zoltan Varga c3f5ca896a 2009-10-07 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: Add a test for marshalling DateTime to unmanaged code.

svn path=/branches/mono-2-6/mono/; revision=143642
2009-10-07 13:21:53 +00:00
Zoltan Varga a41a82a694 2009-10-07 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_vtype): Emit marshalling of DateTime to OLE DATE.
	Fixes #322934.

svn path=/branches/mono-2-6/mono/; revision=143641
2009-10-07 13:21:45 +00:00
Sebastien Pouliot bdb31e441e net_2_1_raw_corlib.dll.sources: Remove System/LocalDataStoreSlot.cs from Moonlight build
svn path=/branches/mono-2-6/mcs/; revision=143634
2009-10-07 12:44:25 +00:00
Sebastien Pouliot 0b8e8c6cb7 2009-10-07 Sebastien Pouliot <[email protected]>
* Context.cs: Remove LocalDataStoreSlot-related methods from
	Moonlight build
	[Backport r143631]


svn path=/branches/mono-2-6/mcs/; revision=143632
2009-10-07 12:42:07 +00:00
Sebastien Pouliot e4c96ec70a 2009-10-07 Sebastien Pouliot <[email protected]>
* Thread.cs: Remove LocalDataStoreSlot-related methods from
	Moonlight build
	[Backport r143629]


svn path=/branches/mono-2-6/mcs/; revision=143630
2009-10-07 12:35:56 +00:00
Sebastien Pouliot f91f74d6d7 In Test/System.ServiceModel:
2009-10-07  Sebastien Pouliot  <[email protected]>

	* OperationContextTest.cs: Add test case for OperationContext.Current
	[Backport r143620]

In System.ServiceModel:
2009-10-07  Sebastien Pouliot  <[email protected]>

	* OperationContext.cs: Use [ThreadStatic] instead of Thread.
	GetNamedDataSlot with Thread.[Get|Set]Data since it offers type
	safety and don't require keeping extra API inside Moonlight
	[Backport r143620]


svn path=/branches/mono-2-6/mcs/; revision=143621
2009-10-07 12:05:01 +00:00
Marek Habersack 0263ba084f Backport of r143611
svn path=/branches/mono-2-6/mcs/; revision=143612
2009-10-07 10:49:21 +00:00
Gonzalo Paniagua Javier 4b085e4b62 2009-10-07 Gonzalo Paniagua Javier <[email protected]>
* StaticFileHandler.cs: it's the last flush even when a VPP is used.


svn path=/branches/mono-2-6/mcs/; revision=143598
2009-10-07 04:03:06 +00:00
Atsushi Eno 651f863792 backport r143593.
svn path=/branches/mono-2-6/mcs/; revision=143594
2009-10-07 02:22:55 +00:00
Marek Habersack 2365397ca3 Backport of r143587
svn path=/branches/mono-2-6/mcs/; revision=143588
2009-10-07 00:10:27 +00:00
Sebastien Pouliot dfd3372251 2009-10-06 Sebastien Pouliot <[email protected]>
* Decimal.cs: Use Compare method instead of directly using the
	decimalCompare internal call.
	[Backport r143554]


svn path=/branches/mono-2-6/mcs/; revision=143555
2009-10-06 20:09:20 +00:00
Sebastien Pouliot 4c9ee53953 2009-10-06 Sebastien Pouliot <[email protected]>
* Enum.cs: Add an internal Value property as a single point to 
	call the internal call get_value.
	[Backport r143549]


svn path=/branches/mono-2-6/mcs/; revision=143550
2009-10-06 18:53:49 +00:00
Sebastien Pouliot 8921ca9e49 net_2_1_raw_corlib.dll.sources: Remove normalization files from Moonlight build
svn path=/branches/mono-2-6/mcs/; revision=143541
2009-10-06 17:18:41 +00:00
Sebastien Pouliot bf1d85db26 2009-10-06 Sebastien Pouliot <[email protected]>
* Encoding.cs: Remove normalization methods for Moonlight
	[Backport r143536]


svn path=/branches/mono-2-6/mcs/; revision=143537
2009-10-06 17:16:20 +00:00
Sebastien Pouliot 4f5f2e43e2 2009-10-06 Sebastien Pouliot <[email protected]>
* String.cs: Remove normalization methods for Moonlight
	[Backport r143533]


svn path=/branches/mono-2-6/mcs/; revision=143535
2009-10-06 17:13:17 +00:00
Zoltan Varga 0d8d9abd48 2009-10-06 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_class): Add an instance of GenericComparer<T> for
	each instance of Comparer<T>.

	* generics.cs: Add a new test.

svn path=/branches/mono-2-6/mono/; revision=143532
2009-10-06 17:10:01 +00:00
Gonzalo Paniagua Javier 9f4abfb1d5 2009-10-06 Gonzalo Paniagua Javier <[email protected]>
* GatewayIPAddressInformationCollection.cs:
	* IPInterfaceProperties.cs: implement GatewayAddresses for linux.
	Original patch by Christoph von Wittich.
	Fixes bug #544640.


svn path=/branches/mono-2-6/mcs/; revision=143526
2009-10-06 16:25:59 +00:00
Jonathan Chambers 22c4e0ee3b 2009-10-06 Jonathan Chambers <[email protected]>
* String.cs (Contains): Use CompareOptions.Ordinal. Fixes bug
        #535425.


svn path=/branches/mono-2-6/mcs/; revision=143521
2009-10-06 15:14:43 +00:00
Mark Probst 4e92234406 2009-10-06 Mark Probst <[email protected]>
* object.c (mono_method_return_message_restore): Handle the case
        where the argument is an instance of a generic type.  Fixes
        #544446.

        Backport of r143506.

2009-10-06  Mark Probst  <[email protected]>

        * bug-544445.cs: New test.

        * Makefile.am: Test added.

        Backport of r143506.

svn path=/branches/mono-2-6/mono/; revision=143510
2009-10-06 13:15:18 +00:00
Marek Habersack 4ab670066a Fix the build
svn path=/branches/mono-2-6/mcs/; revision=143429
2009-10-05 17:58:35 +00:00
Marek Safar 29f9e5ff3d 2009-10-05 Marek Safar <[email protected]>
* expression.cs: Equality comparison of generic parameter with
	class constraint.


svn path=/branches/mono-2-6/mcs/; revision=143421
2009-10-05 16:50:49 +00:00
Marek Safar 292fa3413f 2009-10-05 Marek Safar <[email protected]>
A fix for bug #543570
	* generic.cs: Import predefined constraints correctly.


svn path=/branches/mono-2-6/mcs/; revision=143418
2009-10-05 16:05:18 +00:00
Marek Habersack 17ebd3efa0 Backport of r143388
svn path=/branches/mono-2-6/mcs/; revision=143389
2009-10-05 11:15:22 +00:00
Marek Habersack 7b6992976a Backport of r143384
svn path=/branches/mono-2-6/mcs/; revision=143385
2009-10-05 10:45:56 +00:00
Atsushi Eno 02bd2a8b2d backport r143368 and r143369.
svn path=/branches/mono-2-6/mcs/; revision=143371
2009-10-05 06:02:52 +00:00
Atsushi Eno 4415259ba1 backport r143367.
svn path=/branches/mono-2-6/mcs/; revision=143370
2009-10-05 06:01:30 +00:00
Zoltan Varga 8253721cb0 2009-10-04 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_class): Only add GetGenericValueImpl wrappers
	when using full-aot.

svn path=/branches/mono-2-6/mono/; revision=143350
2009-10-04 16:34:37 +00:00
Zoltan Varga 589b50de6f 2009-10-04 Zoltan Varga <[email protected]>
* processes.c: Implement get_process_name_from_proc () on solaris.

svn path=/branches/mono-2-6/mono/; revision=143341
2009-10-04 15:35:47 +00:00
Ankit Jain 85f197004d Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2009-10-03  Ankit Jain  <[email protected]>

	Fix bug#542461.
	* xbuild/Microsoft.Common.targets (KeyOriginatorFile): Set to
	$(AssemblyOriginatorKeyFile), if SignAssembly is true.
	Use it for satellite assemblies also.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-03  Ankit Jain  <[email protected]>

	* Project.cs (OS): New.
	(InitializeProperties): Set 'OS' as a pre-defined property, set to
	'Windows_NT', 'Unix' or 'OSX' depending on the platform.


svn path=/branches/mono-2-6/mcs/; revision=143317
2009-10-02 22:08:37 +00:00
Zoltan Varga 01c866af9c 2009-10-02 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_emit_setret): Emit long return values using OP_LMOVE.
	(mono_arch_create_vars): Instead of allocating a stack slot by hand, allocate
	a variable to hold the stack slot used by the int<->float conversion opcodes.

svn path=/branches/mono-2-6/mono/; revision=143311
2009-10-02 18:53:26 +00:00
Zoltan Varga 4bf53054c2 2009-09-25 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_create_vars): Make the component vars of a long ret
	variable volatile. Fixes #541577.

	* basic-calls.cs: Add a new test.

	* basic-long.cs: Remove tests which are now in basic-calls.cs.

svn path=/branches/mono-2-6/mono/; revision=143310
2009-10-02 18:53:18 +00:00
Zoltan Varga 04ca35cc6a 2009-10-02 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_build_imt_thunk): Implement support for fail_tramp.

svn path=/branches/mono-2-6/mono/; revision=143270
2009-10-02 10:49:14 +00:00
Marek Safar 43806c6701 2009-10-02 Marek Safar <[email protected]>
* ecore.cs: Don't crash on overloads with optional paremeters where
	arguments count overflows.
	
	* parameter.cs: Import optional parameter constants using optional
	value type.


svn path=/branches/mono-2-6/mcs/; revision=143265
2009-10-02 10:43:14 +00:00
Ankit Jain 8dd2dbbe9e Update xbuild and Microsoft.Build.* from trunk.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-02  Ankit Jain  <[email protected]>

	* Expression.cs (Parse): Don't change '/' to '\\', not required.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-10-02  Ankit Jain  <[email protected]>

	* AppDomainIsolatedTask.cs (BuildEngine): Init 'log'.


svn path=/branches/mono-2-6/mcs/; revision=143217
2009-10-01 20:40:44 +00:00
Geoff Norton 5c45430b3f Include async dns in monotouch
svn path=/branches/mono-2-6/mcs/; revision=143194
2009-10-01 18:33:11 +00:00
Miguel de Icaza d70052496a Backport
svn path=/branches/mono-2-6/mcs/; revision=143110
2009-10-01 02:42:30 +00:00
Gonzalo Paniagua Javier 3de2cd8abe 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* HtmlSelectBuilder.cs: <option> allows the value of the 'selected'
	attribute to be a boolean or the string "selected", which is treated
	as "true".


svn path=/branches/mono-2-6/mcs/; revision=143106
2009-10-01 02:24:44 +00:00
Gonzalo Paniagua Javier 91f3e24d60 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* CodeNamespace.cs:
	* CodeTypeReference.cs:
	* CodeMemberMethod.cs:
	* CodeCompileUnit.cs:
	* CodeNamespaceImportCollection.cs:
	* CodeTypeDeclaration.cs: renamed/added fields so that we're
	compatible with MS serialization.


svn path=/branches/mono-2-6/mcs/; revision=143103
2009-10-01 01:44:23 +00:00
Gonzalo Paniagua Javier 681488c662 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* Hashtable.cs: MS (at least latest and greatest) does not always
	serialized the HashCodeProvider. Ignoring the error when the field
	is not found.


svn path=/branches/mono-2-6/mcs/; revision=143100
2009-10-01 01:41:07 +00:00
Gonzalo Paniagua Javier 3b095deb1e undo. Proper fix was in BuildManager
svn path=/branches/mono-2-6/mcs/; revision=143097
2009-10-01 01:25:17 +00:00
Gonzalo Paniagua Javier 5cc7eaea6e 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* BuildManager.cs: load/set the global resources assembly for
	precompiled and merged sites correctly.


svn path=/branches/mono-2-6/mcs/; revision=143094
2009-10-01 01:22:15 +00:00
Ankit Jain 7803cd3ec4 Update xbuild and Microsoft.Build.* from trunk.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-10-01  Ankit Jain  <[email protected]>

	* ImportTest.cs (TestAdd1): Add tests for multiple imports.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-01  Ankit Jain  <[email protected]>

	* Project.cs (AddImport): Show the correct source file name, when
	the import is in the main project file.

2009-10-01  Ankit Jain  <[email protected]>

	Fix bug #543299.
	* Import.cs (.ctor): Evaluate and set EvaluatedProjectPath to
	the full path of the imported project here itself, instead of ..
	(Evaluate): .. here.
	* ImportCollection.cs (Add): Use import.EvaluatedProjectPath .
	(Contains): New.
	* Project.cs (AddImport): Don't process if condition is false.
	Warn if a circular reference is detected, and ignore the import.


svn path=/branches/mono-2-6/mcs/; revision=143082
2009-09-30 23:21:18 +00:00
Geoff Norton 4ebde82145 Add AssemblyInfo so we can strong name the dll
svn path=/branches/mono-2-6/mcs/; revision=143064
2009-09-30 19:42:48 +00:00
Geoff Norton b9b681b89f fix S.W.S on monotouch
svn path=/branches/mono-2-6/mcs/; revision=143062
2009-09-30 19:39:07 +00:00
Geoff Norton a5aeef3952 2009-09-30 Miguel de Icaza <[email protected]>
* ExtensionManager.cs: Initialize the NET_2_0 pieces with
	MonoTouch, but do not register any of the System.Configuration
	depending extensions.

	BuildExtensionImporters, BuildExtensionReflectors: empty methods
	for MOnoTouch.

	* ServiceDescriptionImporter.cs, WebReference.cs: Remove
	codegeneration features for MonoTouch

2009-09-30  Miguel de Icaza  <[email protected]>

	* Methods.cs: Empty extensions for MonoTouch for now.

	* ServerType.cs: On MonoTouch, we do not support HttpGet or
	HttpPost variations yet.

	* SoapExtension.cs: Avoid System.Configuration features.

svn path=/branches/mono-2-6/mcs/; revision=143061
2009-09-30 19:38:50 +00:00
Jackson Harper 4de89dd439 Add a couple of classes to net_2_1 these are available in SL3
svn path=/branches/mono-2-6/mcs/; revision=143046
2009-09-30 16:30:55 +00:00
Geoff Norton 15c9b8f2ca Put WCF back in to monotouch
svn path=/branches/mono-2-6/mcs/; revision=143022
2009-09-30 15:09:17 +00:00
Jonathan Pobst 8baca4235f 2009-09-26 Jonathan Pobst <[email protected]>
[Backport]
	* TreeNode.cs: When we invalidate a node, make sure we start at
	0, instead of the node's Bounds.Left, which does not include
	the +/-, checkbox, or stateimages.
	[Fixes bug #542481]

svn path=/branches/mono-2-6/mcs/; revision=143020
2009-09-30 15:05:29 +00:00
Zoltan Varga a927d1db6a 2009-09-29 Zoltan Varga <[email protected]>
* mini-sparc.c: Fix the handling of enums with base type long.

svn path=/branches/mono-2-6/mono/; revision=143008
2009-09-30 13:50:38 +00:00
Zoltan Varga efed257d39 2009-09-29 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_output_basic_block): Fix IREM_UN_IMM.

svn path=/branches/mono-2-6/mono/; revision=143007
2009-09-30 13:50:30 +00:00
Zoltan Varga 9ad9b08458 2009-09-29 Zoltan Varga <[email protected]>
* mono-compiler.h (MONO_INTERNAL): Disable this on solaris as it produces a
	millions of warnings during compilation.

svn path=/branches/mono-2-6/mono/; revision=143006
2009-09-30 13:50:23 +00:00
Zoltan Varga 9b2393d1c7 2009-09-29 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_allocate_vars): Use mono_class_from_mono_type ()
	instead of using type->data.klass as the later doesn't work with generics.

svn path=/branches/mono-2-6/mono/; revision=143005
2009-09-30 13:50:16 +00:00
Zoltan Varga 463c186397 2009-09-29 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_allocate_vars): Use mono_class_from_mono_type ()
	instead of using type->data.klass as the later doesn't work with generics.

svn path=/branches/mono-2-6/mono/; revision=143004
2009-09-30 13:50:09 +00:00
Zoltan Varga 45d870860c 2009-09-30 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: Add a test for #543133.

svn path=/branches/mono-2-6/mono/; revision=143000
2009-09-30 13:32:00 +00:00
Zoltan Varga 47df667e6e 2009-09-30 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_object): Emit out marshalling of stringbuilders.
	Fixes #543133.

svn path=/branches/mono-2-6/mono/; revision=142999
2009-09-30 13:31:53 +00:00
Zoltan Varga 62e7e2c54d 2009-09-30 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Add a runtime invoke wrapper which is used by
	mono_runtime_capture_context () without calling mono_runtime_invoke ().
	(can_marshal_struct): Skip structures with auto layout.

svn path=/branches/mono-2-6/mono/; revision=142993
2009-09-30 12:49:29 +00:00
Zoltan Varga 788c9757fd 2009-09-30 Zoltan Varga <[email protected]>
* tramp-arm.c (GEN_TRAMP_SIZE): Increase this by 4.

svn path=/branches/mono-2-6/mono/; revision=142992
2009-09-30 12:49:21 +00:00
Marek Habersack daa2f108f3 Backport of r142984
svn path=/branches/mono-2-6/mcs/; revision=142985
2009-09-30 10:39:28 +00:00
Marek Safar 81bb1146d4 2009-09-30 Marek Safar <[email protected]>
A fix for bug #542959
	* delegate.cs: Emit correct delegate instance variable when there
	are static and non-static overloads.


svn path=/branches/mono-2-6/mcs/; revision=142978
2009-09-30 09:35:40 +00:00
Jb Evain 8da02c6d46 2009-09-30 Jb Evain <[email protected]>
* HttpRequestChannel.cs: When compiling for MonoTouch, avoid
	to use any of the remoting features.

svn path=/branches/mono-2-6/mcs/; revision=142972
2009-09-30 08:43:35 +00:00
Gonzalo Paniagua Javier fa1a176ef6 changelog
svn path=/branches/mono-2-6/mcs/; revision=142965
2009-09-30 06:06:31 +00:00
Gonzalo Paniagua Javier aebf222336 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* BinaryFormatter.cs: NoCheckDeserialize() was using PeekChar() on a
	reader when it should only read 1 byte. Also BinaryReader.PeekChar()
	tries to set the position of hte stream back to where it was before
	the read, which does not work well with broken Stream
	implementations like BZip2InputStream (reports CanSeek is true when
	it really can't seek). Now we do a Read() and then pass the value we
	read on to the next methods.

	* MessageFormatter.cs: 
	* ObjectReader.cs: added overloads that take a BinaryElement instead
	of reading it from the reader. Only for the methods used in
	NoCheckDeserialize.

	Fixes bug #503435.


svn path=/branches/mono-2-6/mcs/; revision=142964
2009-09-30 06:06:18 +00:00
Gonzalo Paniagua Javier 5afdc7affb 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: fixes bug #322330. Patch by Alexander Kojevnikov.
	This patch fixes the issues reported by the OP and in my previous
	comment. In particular:

	Hunks 1 and 4 remove the new_name_needed flag, it's not used
	anywhere and only adds confusion.

	Hunk 2 skips DeleteSelf event for sub-directories, they receive the
	Delete event anyway.

	Hunk 3 makes sure that we use a combination of Deleted+Created
	notifications instead of a single Renamed notification, if the watched item
	has been moved from one directory to another. This is because RenamedEventArgs
	supports only one directory name: FullPath is always directory+name,
	OldFullPath is always directory+old_name.

	Hunk 5 updates relevant InotifyData instances with the new directory
	name.  Without this, notifications always use the original folder names.

	The last hunk may be a bit slow as it needs to iterate on all the
	InotifyData instances. On the other hand, we are already doing it on the
	Delete event (lines 560:568) and by default inotify allows only 8192 watches
	per user.


svn path=/branches/mono-2-6/mcs/; revision=142959
2009-09-30 05:26:52 +00:00
Gonzalo Paniagua Javier 7d6aa1e322 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* TermInfoDriver.cs: attempt to fix bug #527487.


svn path=/branches/mono-2-6/mcs/; revision=142948
2009-09-30 03:14:42 +00:00
Marek Habersack db66ea05c0 Backport of r142943
svn path=/branches/mono-2-6/mcs/; revision=142944
2009-09-29 23:25:14 +00:00
Marek Habersack 43e34e9221 Backport of r142934
svn path=/branches/mono-2-6/mcs/; revision=142935
2009-09-29 21:52:05 +00:00
Andrew Jorgensen 69154db126 15:40 <kangaroo> its just apples assembler is horribly old and stupid
svn path=/branches/mono-2-6/mono/; revision=142933
2009-09-29 21:43:00 +00:00
Gonzalo Paniagua Javier 1f7a1c183c 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* AsyncResult.cs: do not create the handle if not needed.


svn path=/branches/mono-2-6/mcs/; revision=142930
2009-09-29 21:02:39 +00:00
Gonzalo Paniagua Javier beb7543392 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* EndPointListener.cs: fix matching a listener in presence of a query
	string or anchor.


svn path=/branches/mono-2-6/mcs/; revision=142901
2009-09-29 17:16:29 +00:00
Ankit Jain d0dbad9ad7 Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2009-09-29  Ankit Jain  <[email protected]>

	* SolutionParser.cs (Insert): Show project name in case of a cyclic
	dependency.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-09-29  Ankit Jain  <[email protected]>

	* Exec.cs: Write the commands, which can be multiline,
	to a temporary file, and execute that with "cmd.exe /c"
	on windows and "sh" on non-windows.
	(LogToolCommand): Override, and emit the commands instead
	of the actual args passed to the shell.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-09-29  Ankit Jain  <[email protected]>

	* ProjectTest.cs (TestPropertiesFromImportedProjects): New.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-09-29  Ankit Jain  <[email protected]>

	* GroupingCollection.cs (Evaluate): Mark internal.
	* Project.cs (AddImport): Only evaluate the properties,
	till before the import.

2009-09-29  Ankit Jain  <[email protected]>

	* Project.cs (DoLoad): Don't use XmlReader.Create, for loading
	the project xml, as returned Xml*Reader normalizes the newlines.
	Instead directly use the TextReader with XmlDocument.Load ().

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-09-29  Ankit Jain  <[email protected]>

	* ToolTask.cs (ExecuteTool): Use LogToolCommand, instead of
	directly logging.
	(LogToolCommand): Implement.


svn path=/branches/mono-2-6/mcs/; revision=142871
2009-09-29 14:47:09 +00:00
Alan McGovern 4f8c33af39 2009-09-29 Alan McGovern <[email protected]>
* CategoryAttributeTest.cs: Added new test file.


svn path=/branches/mono-2-6/mcs/; revision=142867
2009-09-29 14:28:01 +00:00
Alan McGovern 90c46b9308 2009-09-29 Alan McGovern <[email protected]>
* DefaultValueAttribute.cs: Implement the cctor which takes
	a Type and a string for the SL2 case.
	* CategoryAttribute.cs: Fix a typo in the CategoryAttribute.Asynchronous
	ctor and fix some SL2 specific naming changes for the default properties.


svn path=/branches/mono-2-6/mcs/; revision=142866
2009-09-29 14:27:34 +00:00
Sebastien Pouliot 8082e15625 2009-09-29 Sebastien Pouliot <[email protected]>
* Timer_2_1.cs: Removed. No longer needed by Moonlight
	[Backport r142853]


svn path=/branches/mono-2-6/mcs/; revision=142855
2009-09-29 12:13:04 +00:00
Sebastien Pouliot 58864d7fca 2009-09-29 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Remove Timer_2_1.cs and 
	related classes from System.dll - they are not required anymore
	since Gonzalo's changes on Socket.Close(int)
	[Backport r142851]


svn path=/branches/mono-2-6/mcs/; revision=142852
2009-09-29 12:10:39 +00:00
Rolf Bjarne Kvinge c79c91c80c 2009-09-29 Rolf Bjarne Kvinge <[email protected]>
* Thread.cs: StartSafe: ignore ThreadAbortExceptions.

	Backport of r142847.

svn path=/branches/mono-2-6/mcs/; revision=142848
2009-09-29 11:01:18 +00:00
Rolf Bjarne Kvinge 8973515d9d 2009-09-29 Rolf Bjarne Kvinge <[email protected]>
* appdomain.c|h: Add a mono_domain_try_unload method which is
	equivalent to mono_domain_unload, except that it returns an exception
	instead of throwing it. Make mono_domain_unload use the
	mono_domain_try_unload method to avoid code-duplication.

	Backport of r142658.

svn path=/branches/mono-2-6/mono/; revision=142846
2009-09-29 10:55:42 +00:00
Gonzalo Paniagua Javier 9346c56300 Fix 1.1 profile
svn path=/branches/mono-2-6/mcs/; revision=142837
2009-09-29 09:25:25 +00:00
Gonzalo Paniagua Javier 5a4e4d261b 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: fix the check for a time-out return value from 'ping'.


svn path=/branches/mono-2-6/mcs/; revision=142821
2009-09-29 05:57:31 +00:00
Gonzalo Paniagua Javier 259bc42379 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* HttpContext.cs: try to load App_GlobalResouces.dll if it has not
	been set but it exists in 'bin'.


svn path=/branches/mono-2-6/mcs/; revision=142818
2009-09-29 05:42:13 +00:00
Andrew Jorgensen 9b28a1de73 use wildcards for .mdbs
svn path=/branches/mono-2-6/mono/; revision=142814
2009-09-29 04:06:21 +00:00
Andrew Jorgensen 1eb27e1f63 don't build moonlight (not installed anyway)
grab entire xbuild directory (it's a deep structure and rpm doesn't like
un-owned directories)

svn path=/branches/mono-2-6/mono/; revision=142810
2009-09-29 03:34:16 +00:00
Marek Habersack 7edb572581 Backport of r142798
svn path=/branches/mono-2-6/mcs/; revision=142799
2009-09-28 21:42:17 +00:00
Ankit Jain 364a5d0b74 * mono-core.spec.in: Add Microsoft.WebApplication.targets
Backport r142787	

svn path=/branches/mono-2-6/mono/; revision=142788
2009-09-28 19:09:15 +00:00
Marek Habersack 3aa9628276 Backport of r142783
svn path=/branches/mono-2-6/mcs/; revision=142785
2009-09-28 18:54:18 +00:00
Marek Habersack bcc8b6fb2d Backport of r142780
svn path=/branches/mono-2-6/mcs/; revision=142781
2009-09-28 18:50:21 +00:00
Marek Habersack eefca1d2f0 Backport of r142773
svn path=/branches/mono-2-6/mcs/; revision=142776
2009-09-28 18:08:33 +00:00
Marek Habersack 075b2246c4 Backport of r142766
svn path=/branches/mono-2-6/mcs/; revision=142767
2009-09-28 16:44:14 +00:00
Atsushi Eno 70390d5989 merge from trunk (r142744, r142745, r142760).
svn path=/branches/mono-2-6/mcs/; revision=142761
2009-09-28 15:24:15 +00:00
Sebastien Pouliot 08a3283160 2009-09-28 Sebastien Pouliot <[email protected]>
* SocketAsyncEventArgs.cs: Default SocketError.AccessDenied on 
	Connect in case none of the DnsEndPoint provides an adequate 
	address (family).
	[Backport r142746]


svn path=/branches/mono-2-6/mcs/; revision=142747
2009-09-28 12:03:28 +00:00
Ankit Jain f65e2f5bde Update xbuild and Microsoft.Build.* from trunk.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-09-28  Ankit Jain  <[email protected]>

	* WriteLinesToFiles.cs (Execute): Handle empty list of
	lines.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-09-28  Ankit Jain  <[email protected]>

	* ToolTask.cs (ProcessOuputTool): Move logging of tool
	output from here to ..
	(ExecuteTool): .. here. As, ProcessOuputTool can be
	overridden.


svn path=/branches/mono-2-6/mcs/; revision=142742
2009-09-28 10:51:40 +00:00
Atsushi Eno 89a11d5206 backport r142735.
svn path=/branches/mono-2-6/mcs/; revision=142736
2009-09-28 04:48:46 +00:00
Gonzalo Paniagua Javier cd1791a956 fix
svn path=/branches/mono-2-6/mcs/; revision=142732
2009-09-28 03:29:48 +00:00
Gonzalo Paniagua Javier 06bce6170a 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* Socket_2_1.cs: Close(int timeout) blocks up to timeout ms if there's
	pending data to be written to the socket. If there's no pending data,
	it closes and returns right away. Instead of using Timer and then
	doing a 'hard' close(), we set the linger option for the socket.


svn path=/branches/mono-2-6/mcs/; revision=142730
2009-09-28 03:19:43 +00:00
Sebastien Pouliot 6eb53dd31a 2009-09-27 Sebastien Pouliot <[email protected]>
* SocketAsyncEventArgs.cs: Don't use Socket.Poll for NET_2_1.
	Throw NIE for use of BufferList in Receive.
	* Socket.cs: Move Close(int) to Socket_2_1.cs. Remove NET_2_1
	defines since the file is not used by Moonlight
	* Socket_2_1.cs: Add Close(int) from Socket. Define out Poll
	and Blocking.
	[Backport r142722]


svn path=/branches/mono-2-6/mcs/; revision=142723
2009-09-27 14:52:09 +00:00
Sebastien Pouliot 329316a6c6 2009-09-27 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Add Timer_2_1.cs and 
	related classes from System.dll
	[Backport of r142720]


svn path=/branches/mono-2-6/mcs/; revision=142721
2009-09-27 14:40:19 +00:00
Sebastien Pouliot cb768e733f 2009-09-27 Sebastien Pouliot <[email protected]>
* Timer_2_1.cs: New. A smaller, internal subset of Timer for 
	Moonlight - needed for Socket.Close(int)
	[Backport of r142718]


svn path=/branches/mono-2-6/mcs/; revision=142719
2009-09-27 14:38:23 +00:00
Gonzalo Paniagua Javier d1973e174d from trunk
svn path=/branches/mono-2-6/mono/; revision=142706
2009-09-27 06:19:31 +00:00
Gonzalo Paniagua Javier fd3fd2455f 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: account for the time spent sending jobs to the queue.


svn path=/branches/mono-2-6/mcs/; revision=142704
2009-09-27 05:48:26 +00:00
Gonzalo Paniagua Javier 7944cbd726 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* TermInfoDriver.cs: avoid segv if the pointer is not properly
	initialized.


svn path=/branches/mono-2-6/mcs/; revision=142701
2009-09-27 05:40:34 +00:00
Gonzalo Paniagua Javier ef0ea82263 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* marshal.c: don't create the handle when calling. It is created later
	if needed.


svn path=/branches/mono-2-6/mono/; revision=142700
2009-09-27 05:32:25 +00:00
Gonzalo Paniagua Javier 2de8607599 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* AsyncResult.cs: don't create the handle if we know the result is
	completed.


svn path=/branches/mono-2-6/mcs/; revision=142698
2009-09-27 05:29:16 +00:00
Gonzalo Paniagua Javier ca5715e665 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* RealProxy.cs: for a custom proxy, retrieve the OutArgs before
	allowing EndInvoke to proceed because after that, OutArgs will throw
	because there is no method. Fixes remoting2 and remoting3 tests.


svn path=/branches/mono-2-6/mcs/; revision=142696
2009-09-27 05:20:25 +00:00
Veerapuram Varadhan 774fd03e78 Test fix.
svn path=/branches/mono-2-6/mcs/; revision=142689
2009-09-26 21:01:35 +00:00
Veerapuram Varadhan 8b8d58705b backport of r142668
svn path=/branches/mono-2-6/mcs/; revision=142688
2009-09-26 21:01:10 +00:00
Ankit Jain c5cbb9cb4b Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2009-09-27  Ankit Jain  <[email protected]>

	* SolutionParser.cs: Implement support for WebSite projects. These
	projects lack a project file, so properties like references are read
	from the .sln file, and targets are generated for build/clean etc.

2009-09-26  Ankit Jain  <[email protected]>

	* xbuild/Microsoft.Common.targets: Remove _ValidateEssentialProperties
	from BuildDependsOn, which was a hack. It will get invoked from the
	InitialTargets now.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-09-26  Ankit Jain  <[email protected]>

	* TargetTest.cs (TestOverridingTargets): New.

2009-09-26  Ankit Jain  <[email protected]>

	* ProjectTest.cs (TestInitialTargetsWithImports):
	(TestDefaultTargets):
	(TestDefaultTargetsWithImports):
	(TestNoDefaultTargetsWithImports):
	(TestNoDefaultTargets): New tests.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-09-27  Ankit Jain  <[email protected]>

	* ConditionParser.cs: Show the condition being parsed in the
	exception message.

2009-09-26  Ankit Jain  <[email protected]>

	* Expression.cs: Allow '-' in item, property and metadata names.

2009-09-26  Ankit Jain  <[email protected]>

	* Project.cs (Evaluate): Split into this and ..
	(PrepareForEvaluate): .. this.
	(AddImport): Evaluate the current set of properties/items etc,
	before processing the imported project. Honor the Condition
	for the Import.
	(ProcessProjectAttributes): Update MSBuildProjectDefaultTargets
	property.
	* GroupingCollection.cs (Evaluate): Don't evaluate Imports here.
	* BuildItemGroup.cs (Evaluate): Evaluate only once.
	* BuildPropertyGroup.cs (Evaluate): Evaluate only once.

2009-09-26  Ankit Jain  <[email protected]>

	* Project.cs: Get InitialTargets from the imported projects also.
	The combined list of targets are executed, in the order they were
	found.
	DefaultTargets are also read in from imported projects, and the first
	non-empty DefaultTargets found is used.


svn path=/branches/mono-2-6/mcs/; revision=142686
2009-09-26 20:49:54 +00:00
Sebastien Pouliot 95ab6bc64d In Test/System.Net.Sockets:
2009-09-26  Sebastien Pouliot  <[email protected]>

	* SocketAsyncEventArgsTest.cs: New. Unit tests
	[Backport r142675]

In System.Net.Sockets:
2009-09-26  Sebastien Pouliot  <[email protected]>

	* SocketAsyncEventArgs.cs: Fix paramater validations and default 
	values
	[Backport r142675]

In .:
2009-09-26  Sebastien Pouliot  <[email protected]>

	* System_test.dll.sources: Add unit tests for SocketAsyncEventArgs
	[Backport r142675]


svn path=/branches/mono-2-6/mcs/; revision=142676
2009-09-26 15:29:25 +00:00
Andrew Jorgensen 2403930b66 version
svn path=/branches/mono-2-6/mono/; revision=142639
2009-09-25 14:53:05 +00:00
Ankit Jain 91e94ea8c4 * Makefile(EXTRA_DISTFILES): Add Microsoft.WebApplication.targets
svn path=/trunk/mcs/; revision=142631
2009-09-25 12:59:29 +00:00
Marek Habersack 3abec534c8 2009-09-25 Marek Habersack <[email protected]>
* StaticSiteMapProvider.cs: MapUrl must normalize paths. Fixes bug
	#541969

	* XmlSiteMapProvider.cs: siteMapFile parameter must be mapped in
	Initialize. Fixes bug #541969

svn path=/trunk/mcs/; revision=142627
2009-09-25 11:17:30 +00:00
Marek Safar eb1108d216 New tests.
svn path=/trunk/mcs/; revision=142626
2009-09-25 09:50:17 +00:00
Marek Safar 22fcc4b7b0 2009-09-25 Marek Safar <[email protected]>
* CSharpBinaryOperationBinder.cs, CSharpBinder.cs: More dynamic
	binary expressions.


svn path=/trunk/mcs/; revision=142625
2009-09-25 09:49:17 +00:00
Marek Safar 6eb805ec45 2009-09-25 Marek Safar <[email protected]>
* expression.cs, ecore.cs: More dynamic binary expressions.


svn path=/trunk/mcs/; revision=142624
2009-09-25 09:48:11 +00:00
Ankit Jain 2fa6f51064 * Project.cs (BuildTarget): Handle skipped targets.
svn path=/trunk/mcs/; revision=142617
2009-09-25 01:21:16 +00:00
Ankit Jain 07599a27c5 * xbuild/Microsoft.Common.targets: Emit list of files written
during the build, even if the build fails.

svn path=/trunk/mcs/; revision=142616
2009-09-25 01:20:57 +00:00
Ankit Jain 254fff96a7 In tools/xbuild:
Fix bug #534992.
	* xbuild/Microsoft.Common.targets: Add support for copying
	app.config to AssemblyName.config
	* xbuild/Microsoft.Common.tasks: Add FindAppConfigFile task.

In tools/xbuild/tests:
	* standalone/Project01: Add app.config to project Lib1.
	Remove Project01.sln.proj .

svn path=/trunk/mcs/; revision=142610
2009-09-25 00:33:07 +00:00
Ankit Jain 9075bdf381 In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks.dll.sources: Added
	FindAppConfigFile.cs
	* Microsoft.Build.Tasks_test.dll.sources: Added
	FindAppConfigFileTest.cs

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* FindAppConfigFile.cs: New.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* FindAppConfigFileTest.cs: New.

svn path=/trunk/mcs/; revision=142609
2009-09-25 00:32:37 +00:00
Veerapuram Varadhan 7bd9e4a1c3 2009-09-25 Veerapuram Varadhan <[email protected]>
** Fixes #535889
	* OracleParameter.cs: In case of OUT param, update sizeSet even if
	value is null or DBNull.  Also, use rsize instead of bindSize to
	avoid extra allocation.

svn path=/trunk/mcs/; revision=142608
2009-09-25 00:29:14 +00:00
Zoltan Varga a0afe23a2f 2009-09-24 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_debug_info_end): Disable this as it doesn't seem to
	work/required with recent iphone sdk versions.

svn path=/trunk/mono/; revision=142604
2009-09-24 20:49:46 +00:00
Zoltan Varga cc84f1ac1b 2009-09-24 Zoltan Varga <[email protected]>
* processes.c (load_modules): Applied patch from Thomas Philpot
	([email protected]). Fixes #533893.

svn path=/trunk/mono/; revision=142600
2009-09-24 19:34:01 +00:00
Sebastien Pouliot 23c90fba33 2009-09-24 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Substitute System.dll Dns
	implementation for a ML specific version.


svn path=/trunk/mcs/; revision=142599
2009-09-24 19:25:26 +00:00
Sebastien Pouliot 9347f2726c 2009-09-24 Sebastien Pouliot <[email protected]>
* Dns_2_1.cs: New. Smaller version of Dns.cs that offers just
	enough for DnsEndPoint support


svn path=/trunk/mcs/; revision=142598
2009-09-24 19:24:25 +00:00
Ankit Jain 118ede341f * xbuild.1: Add info about env var XBUILD_EMIT_SOLUTION.
svn path=/trunk/mono/; revision=142597
2009-09-24 19:05:38 +00:00
Ankit Jain 379d5dfbf7 * Project.cs (DoLoad): If a VS2003 project is detected, then throw
InvalidProjectFileException with useful error.

svn path=/trunk/mcs/; revision=142596
2009-09-24 19:04:52 +00:00
Ankit Jain fd672808f8 * Parameters.cs (ParseArguments): If no project file is specified,
then look for a .sln or *proj file in the current directory.

svn path=/trunk/mcs/; revision=142595
2009-09-24 19:04:36 +00:00
Ankit Jain f237da9659 * Project.cs (Load): Emit the .sln.proj file only if env var
XBUILD_EMIT_SOLUTION is set.

svn path=/trunk/mcs/; revision=142594
2009-09-24 19:04:11 +00:00
Veerapuram Varadhan 8db39691da 2009-09-15 Veerapuram Varadhan <[email protected]>
** Fixes #536194 - Patch by Andrew Kurochk <[email protected]>
	* MergeManager.cs (Merge*): Do nothing when source and target
	datasets are same.

svn path=/trunk/mcs/; revision=142590
2009-09-24 17:39:57 +00:00
Ankit Jain fedbeedab2 * ReadLinesFromFile.cs (Execute): Don't do anything, if
file is non-existant.

svn path=/trunk/mcs/; revision=142587
2009-09-24 17:00:27 +00:00
Ankit Jain 6f005156f5 * Project.cs (GetKeyForTarget): Make target name, case insensitive.
svn path=/trunk/mcs/; revision=142586
2009-09-24 17:00:07 +00:00
Sebastien Pouliot 83fc97b187 2009-09-24 Sebastien Pouliot <[email protected]>
* DnsEndPoint_2_1.cs: Remove (now) unneeded method


svn path=/trunk/mcs/; revision=142581
2009-09-24 15:43:15 +00:00
Ankit Jain 3d6f3137bc * Makefile: Create dir for WebApplication.targets .
* Microsoft.Common.targets (_ValidateEssentialProperties): New.
(BuildDependsOn): Add _ValidateEssentialProperties, temporary.
This should actually work via InitialTargets, which will be fixed
in a subsequent commit. Add PrepareForRun.
(PrepareForRun): New.
* xbuild/Microsoft.WebApplication.targets: New.

svn path=/trunk/mcs/; revision=142580
2009-09-24 15:09:45 +00:00
Zoltan Varga 87bcf6da5b 2009-09-24 Zoltan Varga <[email protected]>
* marshal.c (emit_ptr_to_object_conv): Generate an exception instead of
	aborting when a conversion is not implemented.

svn path=/trunk/mono/; revision=142579
2009-09-24 14:43:45 +00:00
Zoltan Varga 31bf33fc66 2009-09-24 Zoltan Varga <[email protected]>
* LinuxNetworkInterfaceMarshal.cs: Add StructLayout attribute to structures, so
	the aot compiler can generate PtrToStructure wrappers for them.

svn path=/trunk/mcs/; revision=142578
2009-09-24 14:34:43 +00:00
Zoltan Varga 8bf8ffed59 2009-09-24 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Generate PtrToStructure wrappers for more
	structures.

svn path=/trunk/mono/; revision=142577
2009-09-24 14:31:59 +00:00
Marek Safar 43dfe95cdb Fixes 2.1 build
svn path=/trunk/mcs/; revision=142575
2009-09-24 12:56:51 +00:00
Marek Safar 410b1478f4 2009-09-24 Marek Safar <[email protected]>
* Queue.cs, DictionaryEntry.cs, Hashtable.cs,
	CollectionDebuggerView.cs, Stack.cs, ArrayList.cs: Add nicer debug
	view for tools which support it.


svn path=/trunk/mcs/; revision=142568
2009-09-24 11:15:24 +00:00
Ankit Jain 9ce3b26396 * xbuild/Microsoft.Common.targets: Add 'Rebuild' target.
Also, set DefaultTargets to "Build".

svn path=/trunk/mcs/; revision=142567
2009-09-24 11:08:31 +00:00
Ankit Jain e577ab35fe * Project.cs (InitializeProperties): Set 'MSBuildProjectDefaultTargets'
reserved property.

svn path=/trunk/mcs/; revision=142566
2009-09-24 11:08:17 +00:00
Ankit Jain 8237f977ad In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* ToolTaskExtension.cs (HasLoggedErrors): Override.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:

	* ToolTask.cs (HasLoggedErrors): Add missing property.

svn path=/trunk/mcs/; revision=142565
2009-09-24 11:08:02 +00:00
Ankit Jain 69f05c318a * TaskLoggingHelper.cs (LogErrorFromException): Add missing overload.
svn path=/trunk/mcs/; revision=142564
2009-09-24 11:07:48 +00:00
Ankit Jain 997e14c0b7 * MSBuild.cs (BuildInParallel): Add missing property.
svn path=/trunk/mcs/; revision=142563
2009-09-24 11:07:24 +00:00
Marek Safar 2b2ac84aa3 2009-09-24 Marek Safar <[email protected]>
* Makefile: Removed System.Json from net_4_0 profile.


svn path=/trunk/mcs/; revision=142562
2009-09-24 11:06:22 +00:00
Marek Safar a416d714de New test.
svn path=/trunk/mcs/; revision=142561
2009-09-24 11:02:41 +00:00
Christian Hoff 69302534d7 2009-09-24 Christian Hoff <[email protected]>
* SerialPort.cs: Do not close the base stream if Dispose is called from
	the finalizer.

svn path=/trunk/mcs/; revision=142560
2009-09-24 10:23:41 +00:00
Marek Habersack 0f1ea30ed8 2009-09-24 Marek Habersack <[email protected]>
* XmlSiteMapProvider.cs: added "securityTrimmingEnabled" to the
	list of supported attributes in Initialize. Fixes bug #541607

svn path=/trunk/mcs/; revision=142556
2009-09-24 09:36:14 +00:00
Gonzalo Paniagua Javier 200e529f19 2009-09-24 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: lock access to the 'timer' field. Attemp to fix bug
	#537921.


svn path=/trunk/mcs/; revision=142548
2009-09-24 05:10:22 +00:00
Gonzalo Paniagua Javier e7daab3777 2009-09-24 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: no need to wake up the scheduler when removing the next
	scheduled item.


svn path=/trunk/mcs/; revision=142547
2009-09-24 04:31:58 +00:00
Sebastien Pouliot 4cfb97dff5 fix smcs with utf32 encoded files
svn path=/trunk/mcs/; revision=142544
2009-09-24 01:19:05 +00:00
Zoltan Varga f74d63111b 2009-09-24 Zoltan Varga <[email protected]>
* TypeTest.cs: Add a test for missing.

svn path=/trunk/mcs/; revision=142540
2009-09-24 00:21:55 +00:00
Zoltan Varga 69a147e85b 2009-09-24 Zoltan Varga <[email protected]>
* Type.cs: Initialize the Missing field.

svn path=/trunk/mcs/; revision=142539
2009-09-24 00:21:38 +00:00
Sebastien Pouliot f2eb8459f3 2009-09-23 Sebastien Pouliot <[email protected]>
* net_2_1_bootstrap_corlib.dll.sources: Simply include net_2_1_raw*


svn path=/trunk/mcs/; revision=142538
2009-09-24 00:17:58 +00:00
Ivan Zlatev d8a481cbba 2009-09-24 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Compare the name and not displayname of properties
	when checking if the column is already bound.

svn path=/trunk/mcs/; revision=142536
2009-09-24 00:10:15 +00:00
Ivan Zlatev eac09e707f 2009-09-24 Ivan Zlatev <[email protected]>
* EnumConverter.cs: Fix conversion of 0 flag values.
	* EnumConverterTests.cs: Add a test to verify behaviour when converting
	 a 0 flag value.
	[Fixes bug #541402]

svn path=/trunk/mcs/; revision=142534
2009-09-23 23:56:06 +00:00
Zoltan Varga 5571cd77c6 2009-09-24 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_vtype_opts): Avoid reading uninitialized memory
	in the VCALL decomposition code.

svn path=/trunk/mono/; revision=142529
2009-09-23 23:44:01 +00:00
Miguel de Icaza f8e11de224 Remove the use of G_GNUC_PRETTY_FUNCTION with the proper pattern which
is "%s....", __func__

We probably should remove these anyways

svn path=/trunk/mono/; revision=142528
2009-09-23 23:14:39 +00:00
Gonzalo Paniagua Javier e9fdbea331 comment out debugging method
svn path=/trunk/mcs/; revision=142525
2009-09-23 23:03:52 +00:00
Gonzalo Paniagua Javier 81d05c0ea4 2009-09-23 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: rewritten. It only has one queue now and it is sorted by
	due time. Before this changes, it was using a lot of CPU when there
	were a lot of 'future' timers.


svn path=/trunk/mcs/; revision=142524
2009-09-23 23:01:03 +00:00
Zoltan Varga 13138faf4e Remove a debug printf.
svn path=/trunk/mono/; revision=142523
2009-09-23 22:52:54 +00:00
Sebastien Pouliot 94a90d2d71 2009-09-23 Sebastien Pouliot <[email protected]>
* Socket_2_1.cs: Remove NET_2_1 socket policy checks from here.
	* SocketAsyncEventArgs.cs: Support DnsEndPoint correctly (NET_2_1 but
	that will be useful for NET_4_0 soon). Add socket policy checks here
	since it could be called several times to connect to a host.


svn path=/trunk/mcs/; revision=142518
2009-09-23 21:39:08 +00:00
Miguel de Icaza 24845a0886 This patch replaces the calls to g_strcasecmp with either
memcmp, g_ascii_strcasecmp or mono_utf8_strcasecmp since the
symbols are becoming deprecated in newer Glibs.

svn path=/trunk/mono/; revision=142515
2009-09-23 21:11:12 +00:00
Miguel de Icaza 5677f38210 First pass at replacing deprecated APIs in Glib 3 with the new names.
Pretty sad, hopefully we are moving away from Glib soon


svn path=/trunk/mono/; revision=142513
2009-09-23 20:27:24 +00:00
Miguel de Icaza f17218e984 2009-06-25 Miguel de Icaza <[email protected]>
* gc.c: Raise a NullArgumentException if the object passed is
	null.    

svn path=/trunk/mono/; revision=142510
2009-09-23 20:13:26 +00:00
Marek Safar 7a135046d8 2009-09-23 Marek Safar <[email protected]>
* MethodImplOptions.cs: Add NoOptimization.


svn path=/trunk/mcs/; revision=142509
2009-09-23 19:59:05 +00:00
Sebastien Pouliot 814751a79c 2009-09-23 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Don't include APTCA in NET_2_1


svn path=/trunk/mcs/; revision=142491
2009-09-23 14:20:44 +00:00
Sebastien Pouliot bdcdba7a88 2009-09-23 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Core.dll.sources: Remove some extra classes
	from NET_2_1


svn path=/trunk/mcs/; revision=142490
2009-09-23 14:19:08 +00:00
Gonzalo Paniagua Javier 855b8e5e8a 2009-09-23 Gonzalo Paniagua Javier <[email protected]>
* NetworkStream.cs: after disposing the stream, CanRead/CanWrite
	return false.


svn path=/trunk/mcs/; revision=142488
2009-09-23 13:41:37 +00:00
Zoltan Varga 5b6a9db59e 2009-09-23 Zoltan Varga <[email protected]>
* ContentType.cs: Fix the net 2.1 build.

svn path=/trunk/mcs/; revision=142486
2009-09-23 13:06:34 +00:00
Sebastien Pouliot fd548d5b1d 2009-09-23 Sebastien Pouliot <[email protected]>
* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
	Remove more unneeded code for NET_2_1


svn path=/trunk/mcs/; revision=142483
2009-09-23 12:59:30 +00:00
Sebastien Pouliot e65d4332ac 2009-09-23 Sebastien Pouliot <[email protected]>
* SecurityContext.cs: Remove NET_2_1 defines since the type is
	now unused in NET_2_1 profile


svn path=/trunk/mcs/; revision=142482
2009-09-23 12:59:17 +00:00
Sebastien Pouliot f07228a460 2009-09-23 Sebastien Pouliot <[email protected]>
* ExecutionContext.cs: Don't use SecurityContext and don't expose
	AsyncFlowControl for NET_2_1
	* ThreadAbortException.cs: Remove ExceptionState from NET_2_1
	* Thread.cs: Don't expose ApartmentState and remove Suspend and
	Resume methods for NET_2_1
	* ThreadPool.cs: Remove GetAvailableThreads and Unsafe* methods
	for NET_2_1


svn path=/trunk/mcs/; revision=142481
2009-09-23 12:58:58 +00:00
Sebastien Pouliot 9c2b650909 2009-09-23 Sebastien Pouliot <[email protected]>
* Calendar.cs: Don't expose AlgorithmType property in NET_2_1
	* CultureInfo.cs: Don't expose CultureTypes in NET_2_1
	* NumberFormatInfo.cs: Don't expose NativeDigits in NET_2_1
	* GregorianCalendar.cs, HebrewCalendar.cs, HijriCalendar.cs,
	JapaneseCalendar.cs, KoreanCalendar.cs, TaiwanCalendar.cs,
	ThaiBuddhistCalendar.cs, UmAlQuraCalendar.cs: Don't expose 
	AlgorithmType property in NET_2_1


svn path=/trunk/mcs/; revision=142480
2009-09-23 12:46:33 +00:00
Sebastien Pouliot ada00d32ed 2009-09-23 Sebastien Pouliot <[email protected]>
* Directory.cs: Don't expose SearchOption in NET_2_1
	* DirectoryInfo.cs: Don't expose SearchOption in NET_2_1
	* MonoIO.cs: Don't throw a DriveNotFoundException under NET_2_1 -
	an IOExpection will be thrown (like the 1.x profile)


svn path=/trunk/mcs/; revision=142479
2009-09-23 12:41:59 +00:00
Marek Safar 40cc3b9703 Needed during 2.0 bootstrap
svn path=/trunk/mcs/; revision=142477
2009-09-23 12:34:39 +00:00
Miguel de Icaza 97d28988aa 2009-09-22 Mike Feldman and Stephen A. Jazdzewski <[email protected]>
* XUtil.cs: This patch fixes the '"False" is not a valid boolean
	value' exception in System.Xml.XmlConverter when using output from
	System.Linq.XUtil.  XUtil incorrectly uses "False" and "True"
	instead of "false" and "true" on boolean attributes.

svn path=/trunk/mcs/; revision=142442
2009-09-22 22:58:45 +00:00
Zoltan Varga 6bf3cb7adb 2009-09-22 Zoltan Varga <[email protected]>
* assembly-load-stress.cs: New stress test.

svn path=/trunk/mono/; revision=142439
2009-09-22 21:58:41 +00:00
Marek Safar b9fa6f381a 2009-09-22 Marek Safar <[email protected]>
* Queue.cs, Hashtable.cs, SortedList.cs, Stack.cs, ArrayList.cs:
	Add DebuggerDisplay attribute.


svn path=/trunk/mcs/; revision=142438
2009-09-22 21:54:55 +00:00
Zoltan Varga 107fa782da 2009-09-22 Zoltan Varga <[email protected]>
* image.c (mono_image_close): Atomically decrement the reference count and
	remove the image from the hash tables, to prevent another thread from seeing a
	dying MonoImage. Fixes #541194.

svn path=/trunk/mono/; revision=142437
2009-09-22 21:38:14 +00:00
Michael Barker 89bdc40294 2009-09-22 Michael Barker <[email protected]>
* AdminTest.cs:  Added support for unique queue names
	* AsyncPeekTest.cs:  Added support for unique queue names
	* AsyncReceiveTest.cs:  Added support for unique queue names
	* BasicMessagingTest.cs:  Added support for unique queue names
	* MessageEnumeratorTest.cs:  Added support for unique queue names
	* MQUtil.cs:  Added queue name generation and prepending server names
	to queue names based on environment variable
	* PeekTest.cs:  Added support for unique queue names
	* SelectorTest.cs:  Added support for unique queue names


svn path=/trunk/mcs/; revision=142436
2009-09-22 20:36:46 +00:00
Sebastien Pouliot 63476c73a4 In Test/System.Security.Cryptography:
2009-09-22  Sebastien Pouliot  <[email protected]> 

	* CryptoStreamTest.cs: Add (nunit-ized) test cases provided by
	Santa Marta (via Atsushi) as repro for bugs #539288 and #539229

In System.Security.Cryptography:
2009-09-22  Sebastien Pouliot  <[email protected]>

	* CryptoStream.cs: Fix [Input|Output]BlockSize for custom streams.
	Patches by Santa Marta (via Atsushi).
	[Fix bug #539288 and #539229]


svn path=/trunk/mcs/; revision=142435
2009-09-22 19:48:12 +00:00
Marek Habersack 8302308418 2009-09-22 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: ResourceProviderHasObject needs to
	close ResourceReader instance obtained from resource provider.

	* DefaultResourceProvider.cs: implemented the ResourceReader
	property. Fixes bug #520397

svn path=/trunk/mcs/; revision=142433
2009-09-22 19:28:04 +00:00
Atsushi Eno cdd92159ec 2009-09-22 Atsushi Enomoto <[email protected]>
* UriTemplate.cs : Fix method signatures. Take care of dictionary
	  case sensitivity.

	* UriTemplateTest.cs : add test for case-insensitive comparison in
	  IDictionary, and test for null-value string in there.


svn path=/trunk/mcs/; revision=142428
2009-09-22 17:52:31 +00:00
Raja R Harinath 162d3490c5 Dictionary: Ensure that invalid arrays to CopyTo result in ArgumentExceptions.
* System.Collections.Generic/Dictionary.cs (CopyToCheck, Do_CopyTo):
Carve out of ...
(CopyTo): ... this.
(Do_ICollectionCopyTo): Carve out of ICollection.CopyTo.  Convert
type-cast exceptions to ArgumentExceptions.
(KeyCollection.CopyTo): Use them.
(ValueCollection.CopyTo): Use them.
* Test/System.Collections.Generic/DictionaryTest.cs (ICollectionCopyTo):
Test various odd scenarios where .NET CopyTo does _not_ throw an exception.
(ICollectionCopyTo_ex1..4): Ensure that ArgumentExceptions are
thrown in appropriate cases.

svn path=/trunk/mcs/; revision=142427
2009-09-22 17:39:52 +00:00
Atsushi Eno 2c83ff30ac 2009-09-22 Atsushi Enomoto <[email protected]>
* JsonValue.cs, JsonReader.cs, JsonPrimitive.cs :
	  Handle "null" values, as string, so far (haven't tried what .NET
	  actually does).
	  Fix array ToString() that missed commas (while Save() worked fine -
	  it has different serialization logic).


svn path=/trunk/mcs/; revision=142424
2009-09-22 17:35:35 +00:00
Atsushi Eno 42e9eccb49 2009-09-22 Atsushi Enomoto <[email protected]>
* JsonSerializationWriter.cs : output "type" attribute on bool
	  values too.
	* JsonSerializationReader.cs : type loading attempt was insufficient
	  and hence often missed indicated types to deserialize.


svn path=/trunk/mcs/; revision=142423
2009-09-22 17:30:32 +00:00
Marek Safar dd0e028f7d New test.
svn path=/trunk/mcs/; revision=142422
2009-09-22 16:52:09 +00:00
Marek Safar 19c65b195a 2009-09-22 Marek Safar <[email protected]>
* nullable.cs, expression.cs: Fixed null lifted conversion for
	bitwise enum operations.


svn path=/trunk/mcs/; revision=142421
2009-09-22 16:39:55 +00:00
Jb Evain dc7c368828 add comment
svn path=/trunk/mcs/; revision=142420
2009-09-22 16:35:40 +00:00
Zoltan Varga 8ffe471921 2009-09-22 Zoltan Varga <[email protected]>
* Makefile.am: Disable filter-stack.cs on ia64.

svn path=/trunk/mono/; revision=142416
2009-09-22 16:00:42 +00:00
Sebastien Pouliot 19966401ea 2009-09-22 Sebastien Pouliot <[email protected]>
* MembershipProvider.cs: Ensure password decryption is always
	possible.
	[Fix bug #538406]


svn path=/trunk/mcs/; revision=142414
2009-09-22 15:55:07 +00:00
Sebastien Pouliot d3b0f1e249 2009-09-22 Sebastien Pouliot <[email protected]>
* CryptoStreamTest.cs: Convert to newer nunit syntax


svn path=/trunk/mcs/; revision=142413
2009-09-22 15:53:19 +00:00
Zoltan Varga 1ef7b73cc8 2009-09-22 Zoltan Varga <[email protected]>
* mini-ia64.c (mono_arch_output_basic_block): Fix ISHR/ISHR_IMM.

	* basic.cs: Add a test.

svn path=/trunk/mono/; revision=142412
2009-09-22 15:53:07 +00:00
Jb Evain 0fda7eb8e7 2009-09-22 Jb Evain <[email protected]>
* Timer.cs: MONOTOUCH doesn't support remoting, so do not pass
	true to exitContext when calling WaitOne on a WaitHandle.


svn path=/trunk/mcs/; revision=142411
2009-09-22 15:43:35 +00:00
Zoltan Varga a3190ef376 2009-09-22 Zoltan Varga <[email protected]>
* mini-ia64.c (mono_arch_build_imt_thunk): Implement support the virtual
	generic invokes.

svn path=/trunk/mono/; revision=142406
2009-09-22 15:16:10 +00:00
Sebastien Pouliot b3c836fb05 2009-09-22 Sebastien Pouliot <[email protected]>
* Evidence_2_1.cs: New.

svn path=/trunk/mcs/; revision=142403
2009-09-22 13:58:47 +00:00
Sebastien Pouliot 632b287d98 2009-09-22 Sebastien Pouliot <[email protected]>
* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
	Remove more unneeded code and replace some classes with simpler
	NET_2_1 versions.


svn path=/trunk/mcs/; revision=142402
2009-09-22 13:42:13 +00:00
Sebastien Pouliot a0818feb95 2009-09-22 Sebastien Pouliot <[email protected]>
* Thread.cs: Remove [Get|Set]CompressedStack for NET_2_1


svn path=/trunk/mcs/; revision=142401
2009-09-22 13:40:55 +00:00
Sebastien Pouliot 5d8f11c64a 2009-09-22 Sebastien Pouliot <[email protected]>
* CodeAccessPermission_2_1.cs: New. Stub to compile NET_2_1
	* IPermission.cs: Remove ISecurityEncodable for NET_2_1
	* PermissionSet_2_1.cs: New. Stub to compile NET_2_1
	* SecurityContext.cs: Remove usage of CompressedStack for NET_2_1
	* SecurityException_2_1.cs: New, CAS-less version for NET_2_1
	* SecurityException.cs: Remove NET_2_1 conditions
	* SecurityFrame.cs: Keep structures (needed by the runtime) but
	remove SecurityFrame itself for NET_2_1


svn path=/trunk/mcs/; revision=142400
2009-09-22 13:40:44 +00:00
Sebastien Pouliot 7bd19bb2be 2009-09-22 Sebastien Pouliot <[email protected]>
* Assembly.cs: Remove Evidence and GlobalAssemblyCache 
	properties for NET_2_1


svn path=/trunk/mcs/; revision=142399
2009-09-22 13:36:51 +00:00
Sebastien Pouliot e2572fab1e 2009-09-22 Sebastien Pouliot <[email protected]>
* _Assembly.cs: Remove Evidence and GlobalAssemblyCache 
	properties for NET_2_1
	* Marshal.cs: Avoid depending on SecureString for NET_2_1


svn path=/trunk/mcs/; revision=142398
2009-09-22 13:35:47 +00:00
Sebastien Pouliot ba83238a54 2009-09-22 Sebastien Pouliot <[email protected]>
* Encoding.cs: Remove UTF32, Latin1 and custom (loaded code)
	encodings for NET_2_1


svn path=/trunk/mcs/; revision=142397
2009-09-22 13:34:24 +00:00
Sebastien Pouliot 30d4dbc5ab 2009-09-22 Sebastien Pouliot <[email protected]>
* PolicyLevel_2_1.cs: Remove use of NamedPermissionSet


svn path=/trunk/mcs/; revision=142396
2009-09-22 13:32:39 +00:00
Sebastien Pouliot fe3e735aa1 2009-09-22 Sebastien Pouliot <[email protected]>
* PermissionSetAttribute.cs: Don't create a pset for NET_2_1


svn path=/trunk/mcs/; revision=142395
2009-09-22 13:30:41 +00:00
Marek Safar 223e85cd71 2009-09-22 Marek Safar <[email protected]>
* convert.cs, ecore.cs: Fixed explicit unsafe coversion of long
	values in checked context.


svn path=/trunk/mcs/; revision=142394
2009-09-22 13:29:15 +00:00
Sebastien Pouliot 3c7adc78e4 2009-09-22 Sebastien Pouliot <[email protected]>
* Environment.cs: Remove imperative CAS environment
	permission checks under NET_2_1


svn path=/trunk/mcs/; revision=142393
2009-09-22 13:15:06 +00:00
Sebastien Pouliot 5574bdb8b5 2009-09-22 Sebastien Pouliot <[email protected]>
* StreamReader.cs: Don't use UTF32 under NET_2_1


svn path=/trunk/mcs/; revision=142392
2009-09-22 13:13:56 +00:00
Sebastien Pouliot 9d97cda8b6 2009-09-22 Sebastien Pouliot <[email protected]>
* StrongName.cs: Moonlight NET_2_1 cannot depend on machine.config
	* StrongNameManager_2_1.cs: Minimal version for NET_2_1


svn path=/trunk/mcs/; revision=142391
2009-09-22 13:12:28 +00:00
Zoltan Varga e2aeee90c7 2009-09-22 Zoltan Varga <[email protected]>
* appdomain-thread-abort.cs: Add a new test.

svn path=/trunk/mono/; revision=142390
2009-09-22 12:32:42 +00:00
Zoltan Varga 61fbf159c3 2009-09-22 Zoltan Varga <[email protected]>
* mini-exceptions.c (mini_jit_info_table_find): New helper function which
	searches all the domains of the current thread.

	* exceptions-<ARCH>.c: Use it. Fixes #539394.

svn path=/trunk/mono/; revision=142389
2009-09-22 12:32:32 +00:00
Sebastien Pouliot f7bb3d1ff7 2009-09-22 Sebastien Pouliot <[email protected]>
* X509Certificate20.cs: Don't depend on SecureString for NET_2_1


svn path=/trunk/mcs/; revision=142388
2009-09-22 12:27:33 +00:00
Marek Habersack 74981d7e5f 2009-09-22 Marek Habersack <[email protected]>
* WebServiceParser.cs: GetCompiledType uses BuildManager on the
	2.0 profile. Fixes bug #533166

svn path=/trunk/mcs/; revision=142386
2009-09-22 12:15:04 +00:00
Gonzalo Paniagua Javier 242aeb6534 2009-09-22 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: actually use the minimum number of 'completion ports'
	(for us is just a potential worker thread).


svn path=/trunk/mono/; revision=142379
2009-09-22 10:30:07 +00:00
Gonzalo Paniagua Javier c4edb45060 2009-09-22 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: remove ares_htable. It does not make sense any more
	since the same objects are now stored in GC-tracked arrays while they are
	in the queue.


svn path=/trunk/mono/; revision=142378
2009-09-22 10:05:03 +00:00
Gonzalo Paniagua Javier db3865870a 2009-09-22 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: increase the minimum length of the queues to 128.
	Remove warning.


svn path=/trunk/mono/; revision=142377
2009-09-22 10:00:28 +00:00
Marek Safar 9802218668 New tests.
svn path=/trunk/mcs/; revision=142374
2009-09-22 09:50:21 +00:00
Marek Safar 3dea3e8280 2009-09-22 Marek Safar <[email protected]>
* expression.cs, ecore.cs: Fixed array index constant conversion.


svn path=/trunk/mcs/; revision=142373
2009-09-22 09:50:04 +00:00
Marek Safar 6fbaec5885 New test.
svn path=/trunk/mcs/; revision=142358
2009-09-21 21:57:16 +00:00
Zoltan Varga 2fd0e32e1a 2009-09-21 Zoltan Varga <[email protected]>
* exceptions-arm.c (mono_arm_throw_exception): Set ctx->ebp to fp instead of sp
	so catching exceptions thrown in the same method works. Fixes exception17.exe.

	* tramp-arm.c (mono_arch_create_trampoline_code_full): Store NULL into lmf->method
	for non-jit trampolines.

svn path=/trunk/mono/; revision=142354
2009-09-21 20:45:07 +00:00
Sebastien Pouliot dff7c66a52 2009-09-21 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.dll.sources: Remove System.Net.Mime since
	System.Runtime.Serialization does not need them anymore


svn path=/trunk/mcs/; revision=142346
2009-09-21 19:00:15 +00:00
Sebastien Pouliot 62ce295bf9 In System.Xml:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* XmlDictionaryWriter.cs: Remove usage of XmlMtomDictionaryWriter
	for NET_2_1

In .:
2009-09-21  Sebastien Pouliot  <[email protected]> 

	* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove 
	System.Xml/XmlMtomDictionaryWriter.cs


svn path=/trunk/mcs/; revision=142345
2009-09-21 18:57:37 +00:00
Zoltan Varga 43dff9dcbf 2009-09-21 Zoltan Varga <[email protected]>
* runtime-invoke.cs: Add a test for invoking string ctors. Remove tests wihich
	are auto-generated now by gen-runtime-invoke.cs.

svn path=/trunk/mono/; revision=142338
2009-09-21 16:04:18 +00:00
Zoltan Varga 16623a2d7c 2009-09-21 Zoltan Varga <[email protected]>
* mini.c (mono_jit_runtime_invoke): Allow string ctors with dyn runtime invoke.

	* aot-compiler.c (add_wrappers): Ditto.

svn path=/trunk/mono/; revision=142337
2009-09-21 16:04:11 +00:00
Zoltan Varga cb72a3efc2 2009-09-21 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_string_ctor_signature): New internal function to
	return the modified signature used by string ctors.

svn path=/trunk/mono/; revision=142336
2009-09-21 16:04:02 +00:00
Zoltan Varga aaf1e19ff7 2009-09-21 Zoltan Varga <[email protected]>
* mini-arm.c: Implement support for passing vtypes and floats, and increase
	the size of the param area used by dyn_call to 6 which covers the majority of
	methods.

	* mini.c aot-compiler.c: Allow dyn_call for string methods except ctors.

svn path=/trunk/mono/; revision=142333
2009-09-21 15:44:14 +00:00
Zoltan Varga a9285b9cb5 Fix the build.
svn path=/trunk/mono/; revision=142332
2009-09-21 15:22:44 +00:00
Zoltan Varga d63632d722 2009-09-21 Zoltan Varga <[email protected]>
* gen-runtime-invoke.cs: New test generator for runtime invoke tests.

	* Makefile.am (test-runtime-invoke): New test target.

svn path=/trunk/mono/; revision=142331
2009-09-21 15:22:35 +00:00
Jonathan Pryor f9a82239b1 * man/mdoc-export-html.1: Document --with-profile, --with-version.
svn path=/trunk/mono/; revision=142330
2009-09-21 14:31:43 +00:00
Rodrigo Kumpera f18ac8a6ab 2009-09-21 Rodrigo Kumpera <[email protected]>
* array_load_exception.il: Test for broken arrays.

svn path=/trunk/mono/; revision=142327
2009-09-21 12:27:48 +00:00
Gonzalo Paniagua Javier 726e9d9883 2009-09-21 Gonzalo Paniagua Javier <[email protected]>
* Console.cs: mark methods/properties that only work on windows.
	Fixes bug #540593.


svn path=/trunk/mcs/; revision=142325
2009-09-21 11:56:34 +00:00
Sebastien Pouliot 5d0ed14755 In System.Threading:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* Thread.cs: Remove CurrentPrincipal property for NET_2_1
	* ExecutionContext.cs: Remove Run method for NET_2_1

In System.Security:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* SecurityContext.cs: Don't use WindowsIdentity under NET_2_1

In System:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* AppDomain.cs: Remove use of IPrincipal, Evidence and 
	PermissionSet types for NET_2_1

In .:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
	Remove most of System.Security.Policy and System.Security.Principal
	and more of System.Security.Permissions from NET_2_1 build

In System.Security.Policy:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* PolicyLevel_2_1.cs: Remove use of PolicyStatement


svn path=/trunk/mcs/; revision=142324
2009-09-21 11:54:24 +00:00
Zoltan Varga af5cabb4f4 2009-09-21 Zoltan Varga <[email protected]>
* runtime-invoke.cs: Add more tests.

svn path=/trunk/mono/; revision=142323
2009-09-21 11:53:00 +00:00
Zoltan Varga 088413a841 2009-09-21 Zoltan Varga <[email protected]>
* mini-arm.c: Implement support for passing/receiving
	longs and receiving floats in the dyn_call code.

svn path=/trunk/mono/; revision=142322
2009-09-21 11:52:02 +00:00
Carlos Alberto Cortez 0933488e80 2009-09-21 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: For SelectedRtf, after inserting the stream, adjust
	the position of the caret by adding the needed chars represented by the new line chars,
	according to the system, using rich *or* hard new lines as needed. Also do a
	check to be sure we don't move the cursor position beyond the limits
	of our text. This should avoid problems with text being pasted,
	regarding the position of the caret.


svn path=/trunk/mcs/; revision=142316
2009-09-21 11:42:04 +00:00
Leszek 'skolima' Ciesielski 0cfe5fd8ab * SerialPortStream.cs: Throw exception when errors occur in Close()
svn path=/trunk/mcs/; revision=142302
2009-09-21 08:20:59 +00:00
Leszek 'skolima' Ciesielski 84716a447d * serial.c: return -1 from close() on error
svn path=/trunk/mono/; revision=142301
2009-09-21 08:19:09 +00:00
Daniel Morgan 6f918d0c77 2009-09-20 Daniel Morgan <[email protected]>
* OracleConnection.cs: implement GetSchema methods

svn path=/trunk/mcs/; revision=142299
2009-09-21 03:18:37 +00:00
Sebastien Pouliot 350ecb9b2c In System:
2009-09-20  Sebastien Pouliot  <[email protected]>

	* Activator.cs: Remove COM related method for NET_2_1
	* AppDomain.cs: Remove extra methods and properties for NET_2_1
	* AppDomainSetup.cs: Remove some properties for NET_2_1

In .:
	Remove more types (e.g. AccessControl, Soap) from NET_2_1

2009-09-20  Sebastien Pouliot  <[email protected]>

	* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:

svn path=/trunk/mcs/; revision=142296
2009-09-21 00:43:47 +00:00
Sebastien Pouliot f403456324 2009-09-20 Sebastien Pouliot <[email protected]>
* compiler-tester.cs: Define out some parts for NET_2_1 since
	they are not part of Silverlight 2 public API


svn path=/trunk/mcs/; revision=142295
2009-09-21 00:43:37 +00:00
Zoltan Varga fcadfa99b3 2009-09-21 Zoltan Varga <[email protected]>
* mini-amd64.c: Implement support for receiving vtypes in registers in
	the dyn_call code.

svn path=/trunk/mono/; revision=142294
2009-09-20 23:16:08 +00:00
Zoltan Varga e38be260cb 2009-09-21 Zoltan Varga <[email protected]>
* mini.c mini-amd64.c: Implement partial support for passing vtypes in
	the dyn_call code.

svn path=/trunk/mono/; revision=142293
2009-09-20 23:01:21 +00:00
Zoltan Varga 24846befdc 2009-09-21 Zoltan Varga <[email protected]>
* runtime-invoke.cs: Add tests for passing/receiving generic instances of
	vtypes.

svn path=/trunk/mono/; revision=142292
2009-09-20 23:01:15 +00:00
Zoltan Varga e0f509ce93 2009-09-20 Zoltan Varga <[email protected]>
* mini-arm.c (get_call_info): Return more precise information in
	ArgInfo->regtype.
	(dyn_call_supported): Use the information in CallInfo.

svn path=/trunk/mono/; revision=142291
2009-09-20 21:46:01 +00:00
Zoltan Varga cb2f9ff8b1 2009-09-20 Zoltan Varga <[email protected]>
* mini-arm.c: Enable support for returning vtypes in the dyn_call code.

svn path=/trunk/mono/; revision=142288
2009-09-20 20:03:42 +00:00
Zoltan Varga 041395346f 2009-09-20 Zoltan Varga <[email protected]>
* mini.c mini-amd64.c: Enable support for returning vtypes in the dyn_call
	code.

svn path=/trunk/mono/; revision=142287
2009-09-20 19:09:02 +00:00
Miguel de Icaza cd354cf405 2009-09-20 Miguel de Icaza <[email protected]>
* expression.cs: Do not crash when MemberLookup returns something
	that is not a MemberExpr here.   Report error 582 instead. 

	Fixes #499988.


svn path=/trunk/mcs/; revision=142286
2009-09-20 18:08:04 +00:00
Zoltan Varga 411777b03c 2009-09-20 Zoltan Varga <[email protected]>
* mini-arm.c: Update after the dyn_call api changes.

svn path=/trunk/mono/; revision=142285
2009-09-20 17:11:04 +00:00
Zoltan Varga f243417ce0 2009-09-20 Zoltan Varga <[email protected]>
* mini.c (mini_create_jit_domain_info): Register a destructor function
	for the runtime_invoke_hash.

	* mini-amd64.c (mono_arch_get_dyn_call_args): Rename this to
	'mono_arch_dyn_call_start'. Pass the pointer to the return value buffer to
	this function.
	(mono_arch_get_dyn_call_ret): Rename this to 'mono_arch_dyn_call_finish'.
	(dyn_call_supported): Simplify this by using get_call_info ().
	(mono_arch_dyn_call_free): New destructor function.

svn path=/trunk/mono/; revision=142284
2009-09-20 16:49:18 +00:00
Zoltan Varga bd0b05d705 2009-09-20 Zoltan Varga <[email protected]>
* generics.cs: Remove a printf.

svn path=/trunk/mono/; revision=142283
2009-09-20 16:49:11 +00:00
Sebastien Pouliot 056ff6d3a9 2009-09-20 Sebastien Pouliot <[email protected]>
* AppDomain.cs, Environment.cs: Remove imperative CAS file IO
	permission checks under NET_2_1


svn path=/trunk/mcs/; revision=142282
2009-09-20 16:43:43 +00:00
Sebastien Pouliot 9f87d8f285 2009-09-20 Sebastien Pouliot <[email protected]>
* EventWaitHandle.cs: Remove AccessControl usage for NET_2_1
	* Mutex.cs: Remove some ctors and AccessControl usage for NET_2_1
	* NativeEventCalls.cs: Remove AccessControl usage for NET_2_1


svn path=/trunk/mcs/; revision=142281
2009-09-20 16:38:40 +00:00
Sebastien Pouliot ee2725f4c2 NET_2_1 specific implementation of AppDomainManager
svn path=/trunk/mcs/; revision=142280
2009-09-20 16:25:54 +00:00
Sebastien Pouliot af0d912dea 2009-09-20 Sebastien Pouliot <[email protected]>
* VersioningHelper.cs: Refactor AppDomain.Id for NET_2_1


svn path=/trunk/mcs/; revision=142279
2009-09-20 16:05:55 +00:00
Sebastien Pouliot 21a5b9a17a 2009-09-20 Sebastien Pouliot <[email protected]>
* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
	Remove more unneeded types from NET_2_1


svn path=/trunk/mcs/; revision=142278
2009-09-20 16:00:22 +00:00
Sebastien Pouliot f168ec84e6 2009-09-20 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Remove ComCompatibleVersion and 
	AllowPartiallyTrustedCallers for NET_2_1


svn path=/trunk/mcs/; revision=142277
2009-09-20 15:59:10 +00:00
Sebastien Pouliot 9ced5e4815 2009-09-20 Sebastien Pouliot <[email protected]>
* MarshalAsAttribute.cs: Remove VarEnum field for NET_2_1


svn path=/trunk/mcs/; revision=142276
2009-09-20 15:58:24 +00:00
Sebastien Pouliot 3a3e03f669 2009-09-20 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Remove ComCompatibleVersion and 
	AllowPartiallyTrustedCallers for NET_2_1


svn path=/trunk/mcs/; revision=142275
2009-09-20 15:57:19 +00:00
Zoltan Varga baab1a5415 2009-09-20 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Allocate some param area for DYN_CALL.

	* mini-arm.c: Add support for enum return values and passing a few arguments
	on the stack.

svn path=/trunk/mono/; revision=142274
2009-09-20 14:12:40 +00:00
Zoltan Varga cf9cd74a0c 2009-09-20 Zoltan Varga <[email protected]>
* mini.c (mono_jit_runtime_invoke): Add support for enum return values to
	dyn invoke.

	* mini-amd64.c (mono_arch_get_dyn_call_ret): Ditto.

svn path=/trunk/mono/; revision=142273
2009-09-20 13:42:58 +00:00
Zoltan Varga 4445b90fdb 2009-09-20 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Add a few restrictions for the use of
	the dynamic invoke wrappers.

	* mini-arm.c: Implement OP_DYN_CALL for arm.

svn path=/trunk/mono/; revision=142272
2009-09-20 13:05:34 +00:00
Zoltan Varga 56303193c3 2009-09-20 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Avoid aot-ing runtime invoke wrappers
	supported by the dynamic runtime invoke wrapper.

	* aot-compiler.c aot-runtime.c: Add support for encoding the dynamic
	runtime invoke wrapper.

	* mini.c (mono_jit_runtime_invoke): Use the dynamic runtime invoke wrappers
	if possible when running with full-aot.

svn path=/trunk/mono/; revision=142271
2009-09-20 12:23:04 +00:00
Zoltan Varga 9ca5821dc2 2009-09-20 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke_dynamic): New internal function
	to return a runtime-invoke wrapper which uses DYN_CALL to call the wrapped
	method, to be used by full-aot.

svn path=/trunk/mono/; revision=142270
2009-09-20 12:22:56 +00:00
Zoltan Varga dc22b9cbee 2009-09-20 Zoltan Varga <[email protected]>
* cil-opcodes.xml: Add mono_dyn_call opcode.

svn path=/trunk/mono/; revision=142269
2009-09-20 12:22:49 +00:00
Zoltan Varga 33c01932ae 2009-09-20 Zoltan Varga <[email protected]>
* runtime-invoke.cs: Add more tests.

svn path=/trunk/mono/; revision=142268
2009-09-20 12:22:43 +00:00
Zoltan Varga 59a685d44e 2009-09-20 Zoltan Varga <[email protected]>
* mini-ops.h: Add OP_DYN_CALL opcode.

	* mini-amd64.c method-to-ir.c: Add infrastructure for making method calls
	with dynamic arguments lists similar to libffi.

svn path=/trunk/mono/; revision=142267
2009-09-20 12:22:35 +00:00
Sebastien Pouliot 0ee6194428 In .:
2009-09-19  Sebastien Pouliot  <[email protected]>

	* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
	New. Moonlight specific build files to minimize size and build time.
	Copied from corlib.dll.sources minus some 4.0 stuff and COM types.

In System.Runtime.InteropServices:
2009-09-19  Sebastien Pouliot  <[email protected]>

	* Marshal.cs: Avoid depending on COM stuff for NET_2_1


svn path=/trunk/mcs/; revision=142266
2009-09-19 23:29:17 +00:00
Jonathan Pryor 8adb5f5b34 * Mono.Documentation/monodocs2html.cs: Add --with-profile=PROFILE
option, which just provides a simple mapping between profile names
	  like net_3_5 to the versions used in that profile.

svn path=/trunk/mcs/; revision=142263
2009-09-19 19:30:39 +00:00
Zoltan Varga 73f016fb2f 2009-09-19 Zoltan Varga <[email protected]>
* method-to-ir.c: Fix the previous change on 64 bit platforms.

svn path=/trunk/mono/; revision=142261
2009-09-19 18:57:46 +00:00
Zoltan Varga aa133b1418 2009-09-19 Zoltan Varga <[email protected]>
* method-to-ir.c: Applied patch from Rodrigo Kumpera. Allow an i8 argument
	to NEWARR.

	* iltests.il.in: Add a new test.

svn path=/trunk/mono/; revision=142259
2009-09-19 18:48:20 +00:00
Jonathan Pryor ae24768860 * Mono.Documentation/monodocs2html.cs: By request of Edd Dumbill, add
--with-version=VERSION option.  This will generate HTML
	  documentation for ONLY those types/members which exist within
	  VERSION.  This makes it easy to generate HTML that will show e.g.
	  only MonoTouch docs (and not the full class library docs).
	* Makefile: Add test for 'mdoc export-html --with-version=VERSION'.
	  Somewhat brain-dead, as it only checks for added types (and not
	  added members), but better than nothing...

svn path=/trunk/mcs/; revision=142258
2009-09-19 17:34:16 +00:00
Atsushi Eno e4b911dee6 2009-09-18 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : parameter Wrapped check in Validate() should
	  not be done only for GET.


svn path=/trunk/mcs/; revision=142257
2009-09-19 17:00:08 +00:00
Sebastien Pouliot cc934218ec 2009-09-19 Sebastien Pouliot <[email protected]>
* TargetException.cs, TargetInvocationException.cs,
	TargetParameterCountException.cs: Inherit from Exception for 
	NET_2_1 since ApplicationException does not exists


svn path=/trunk/mcs/; revision=142256
2009-09-19 15:19:31 +00:00
Gonzalo Paniagua Javier ea0c9270a9 2009-09-19 Gonzalo Paniagua Javier <[email protected]>
* SocketAsyncEventArgs.cs: fix check for non-null.
	Fixes bug #516455.


svn path=/trunk/mcs/; revision=142252
2009-09-19 05:03:02 +00:00
Gonzalo Paniagua Javier 454ccc913a 2009-09-19 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: if we receive a packet that is ignored, adjust the
	timeout. Fixes bug #538013.


svn path=/trunk/mcs/; revision=142250
2009-09-19 04:44:28 +00:00
Atsushi Eno 9c6cb77223 2009-09-18 Atsushi Enomoto <[email protected]>
* Normalization.cs : Handle blocked characters which are not
	  immediately next to the primary composite character. This fixes
	  some Arabic string sequence normalization.
	* Makefile : fix test build.

	* StringTest.cs : add more normalization tests.


svn path=/trunk/mcs/; revision=142249
2009-09-19 04:37:12 +00:00
Zoltan Varga 35ae59dbf8 2009-09-18 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_instances): Add more instances of
	GenericEqualityComparer.

svn path=/trunk/mono/; revision=142242
2009-09-18 21:21:22 +00:00
Rodrigo Kumpera b1e88e22c5 2009-09-18 Rodrigo Kumpera <[email protected]>
* mini.c: Add asserts for mono_class_vtable calls that are not meant to fail.

svn path=/trunk/mono/; revision=142235
2009-09-18 20:10:57 +00:00
Rodrigo Kumpera 240c831189 2009-09-17 Rodrigo Kumpera <[email protected]>
* method-to-ir.c: Handle failures from mono_class_vtable. Added some
	comments on some functions that now can fail.

svn path=/trunk/mono/; revision=142234
2009-09-18 20:10:44 +00:00
Rodrigo Kumpera e8e4e2e0c6 2009-09-17 Rodrigo Kumpera <[email protected]>
Since the runtime supports lazy initialization of a type's vtable and this can cause a type
	to fail, we need to ensure that the vtable is properly initialized at spots were the type must
	be known to be good.

	* class.c (mono_class_init): Fail array types if their element type fails initialization
	as well.

	* object.c (mono_class_create_runtime_vtable): Fail array types if their element type fails
	initialization, additionally we request the element_type vtable to be initialized as well.

	This is fine and should not increase the working set in any meaningful way since it's reasonable
	to assume	that most code will create an array and eventually populate it, which will require the
	type's vtable to be initialized.

	* loader.c (field_from_memberref): Add a comment for a possibly useless mono_class_init call.

svn path=/trunk/mono/; revision=142233
2009-09-18 20:10:33 +00:00
Rodrigo Kumpera d010703716 2009-09-15 Rodrigo Kumpera <[email protected]>
* class.c (verify_class_overrides): Remove useless argument.

	* class.c (mono_class_setup_vtable_general): Move the overrides check to happen
	before interface enumeration as this is no longer required.

svn path=/trunk/mono/; revision=142232
2009-09-18 20:10:23 +00:00
Sebastien Pouliot ae520cdbfc 2009-09-18 Sebastien Pouliot <[email protected]>
* AssemblyBuilder.cs, ConstructorBuilder.cs, MethodBuilder.cs, 
	TypeBuilder.cs: Don't process PermissionSet under NET_2_1


svn path=/trunk/mcs/; revision=142222
2009-09-18 19:14:29 +00:00
Rodrigo Kumpera 280e24f4bd 2009-09-18 Rodrigo Kumpera <[email protected]>
* Documentation/en/*: Updates to the API. Add some explanation
	for more methods. Fix the code sample for runtime detection.

svn path=/trunk/mcs/; revision=142221
2009-09-18 19:00:24 +00:00
Rodrigo Kumpera 44883fe0f2 2009-09-18 Rodrigo Kumpera <[email protected]>
* SimdRuntime.cs: Raise an exception if the method been queried
	for acceleration is not found. Methods taking an array now are
	variadic.

svn path=/trunk/mcs/; revision=142220
2009-09-18 19:00:02 +00:00
Sebastien Pouliot 3314a5b408 2009-09-18 Sebastien Pouliot <[email protected]>
* EnvironmentPermissionAttribute.cs, FileIOPermissionAttribute.cs,
	HostProtectionAttribute.cs, ReflectionPermissionAttribute.cs,
	SecurityPermissionAttribute.cs, StrongNamePermissionAttribute.cs: 
	Return a null IPermission for NET_2_1
	* PermissionSetAttribute.cs: Return null when paring from XML for 
	NET_2_1


svn path=/trunk/mcs/; revision=142215
2009-09-18 18:18:08 +00:00
Atsushi Eno e8e37ffe9e 2009-09-17 Atsushi Enomoto <[email protected]>
* normalization-tables.h : regenerated.


svn path=/trunk/mono/; revision=142213
2009-09-18 17:09:37 +00:00
Atsushi Eno 09acefa459 2009-09-17 Atsushi Enomoto <[email protected]>
* Normalization.cs : some renaming for disambiguation.
	* NormalizationTableUtil.cs : fix some wrong ranges in
	  mapIdxToComposite. This fixes some Arabic normalization (and more).
	* normalization-notes.txt : added some notes on the implementation.


svn path=/trunk/mcs/; revision=142211
2009-09-18 17:07:51 +00:00
Sebastien Pouliot 2203a2bb29 2009-09-18 Sebastien Pouliot <[email protected]>
* Directory.cs: Avoid imperative CAS checks and remove 
	AccessControl types for NET_2_1
	* DirectoryInfo.cs: Remove AccessControl types for NET_2_1
	* File.cs: Remove AccessControl types for NET_2_1
	* FileInfo.cs: Remove AccessControl types for NET_2_1
	* FileStream.cs: Remove AccessControl types for NET_2_1
	* Path.cs: Avoid imperative CAS checks for NET_2_1


svn path=/trunk/mcs/; revision=142197
2009-09-18 15:57:32 +00:00
Sebastien Pouliot 243fb2b872 2009-09-18 Sebastien Pouliot <[email protected]>
* ActivationServices.cs: Avoid depending on COM stuff for NET_2_1


svn path=/trunk/mcs/; revision=142193
2009-09-18 15:35:58 +00:00
Sebastien Pouliot 4d177fd9eb 2009-09-18 Sebastien Pouliot <[email protected]>
* RemotingServices.cs: Avoid depending on COM stuff for NET_2_1


svn path=/trunk/mcs/; revision=142192
2009-09-18 15:34:41 +00:00
Sebastien Pouliot 6c4c194226 2009-09-18 Sebastien Pouliot <[email protected]>
* StackFrame.cs: Avoid imperative CAS checks for NET_2_1


svn path=/trunk/mcs/; revision=142191
2009-09-18 15:15:01 +00:00
Sebastien Pouliot 30dccf5d6a 2009-09-18 Sebastien Pouliot <[email protected]>
* PKCS1.cs: Fix compiler warning for NET_2_1


svn path=/trunk/mcs/; revision=142190
2009-09-18 15:12:53 +00:00
Sebastien Pouliot 8f9c14d36a 2009-09-18 Sebastien Pouliot <[email protected]>
* RNGCryptoServiceProvider.cs: Remove unneeded SSC from NET_2_1


svn path=/trunk/mcs/; revision=142189
2009-09-18 15:06:33 +00:00
Sebastien Pouliot fc523e8619 2009-09-18 Sebastien Pouliot <[email protected]>
* Assembly.cs, Module.cs: Avoid imperative CAS checks for NET_2_1


svn path=/trunk/mcs/; revision=142188
2009-09-18 14:58:28 +00:00
Marek Safar be871430f0 New test.
svn path=/trunk/mcs/; revision=142176
2009-09-18 09:15:52 +00:00
Marek Safar 7c2c252170 2009-09-18 Marek Safar <[email protected]>
* decl.cs, class.cs: Check protected property accessors.


svn path=/trunk/mcs/; revision=142175
2009-09-18 09:15:34 +00:00
Marek Safar 09d5e93d62 New tests.
svn path=/trunk/mcs/; revision=142174
2009-09-18 08:46:02 +00:00
Marek Safar a97a7c8a6e 2009-09-18 Marek Safar <[email protected]>
* CSharpBinaryOperationBinder.cs, CSharpBinder.cs: Implemented
	binary AddAssign operator.


svn path=/trunk/mcs/; revision=142173
2009-09-18 08:45:42 +00:00
Marek Safar 2d78093f90 2009-09-18 Marek Safar <[email protected]>
* dynamic.cs, assign.cs: Dynamic compound assignment.


svn path=/trunk/mcs/; revision=142172
2009-09-18 08:45:11 +00:00
Marek Habersack 4a7be3c007 2009-09-18 Marek Habersack <[email protected]>
* MetaTable.cs: implemented Init - calls Init on all the columns
	present in this instance.

	* MetaModel.cs: constructor initializes FieldTemplateFactory after
	it is instantiated.
	RegisterContextCore first registers the context type, then creates
	tables and finally calls Init on all the tables.

	* MetaColumn.cs: added internal Init method - called by MetaModel
	after context is registered and all tables are created and
	registered.

	* MetaChildrenColumn.cs: implemented ChildTable,
	ColumnInOtherTable, GetChildrenListPath, GetChildrenPath and added
	an internal Init method override. MonoTODO attributes stay until I
	write tests for the class.

	* FieldTemplateUserControl.cs: implemented ChildrenColumn,
	ChildrenPath, Column, ForeignKeyColumn, ForeignKeyPath,
	MetadataAttributes, Mode, Row, Table, SetHost

	* FieldTemplateFactory.cs: GetFieldTemplateVirtualPath fixes

	* DynamicControl.cs: implemented ApplyFormatInEditMode,
	ConvertEmptyStringToNull, DataField, DataFormatString, HtmlEncode,
	FormattingOptions, NullDisplayText, UIHint, OnInit, Render.

2009-09-18  Marek Habersack  <[email protected]>

	* TestsBasePage.cs: added an event ItemDataBinding, invoked
	whenever an item is data bound.

2009-09-18  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/WebPages/ListView_DynamicControl_10.aspx,
	Test/WebPages/ListView_DynamicControl_10.aspx.cs

2009-09-18  Marek Habersack  <[email protected]>

	* DynamicControlTest.cs: FieldTemplate_1 - fixed fake edit
	postback for Mono.

svn path=/trunk/mcs/; revision=142161
2009-09-18 00:24:11 +00:00
Andrew Jorgensen 9d219ed158 Add Info.plist to EXTRA_DIST
svn path=/trunk/mono/; revision=142155
2009-09-17 22:56:35 +00:00
Marek Safar beed5b3632 2009-09-17 Marek Safar <[email protected]>
* expression.cs: Fixed compound assignment explicit conversion.


svn path=/trunk/mcs/; revision=142139
2009-09-17 18:47:23 +00:00
Sebastien Pouliot 5c429132ae 2009-09-17 Sebastien Pouliot <[email protected]>
* coreclr-security.cs: Add test cases for arrays (one dimension, 
	multidimentional and jagged) creation.


svn path=/trunk/mono/; revision=142133
2009-09-17 18:21:17 +00:00
Atsushi Eno a48e76b758 2009-09-17 Atsushi Enomoto <[email protected]>
* Makefile: move core WCF assemblies before Sys.Web.Extensions,
	  which will depend on them.


svn path=/trunk/mcs/; revision=142131
2009-09-17 18:21:09 +00:00
Atsushi Eno a39726ff89 2009-09-17 Atsushi Enomoto <[email protected]>
* WebScriptEnablingBehavior.cs : basic implementation. Create custom
	  ChannelDispatchers for "/js" and "/jsdebug" like we do for
	  /wsdl (ServiceMetadataExtension). And they return Javascript
	  generated from ProxyGenerator in Sys.Web.Extensions.

	* WebMessageEncoder.cs : handle /js and /jsdebug specially, as raw
	  javascript stream.

	* Makefile : add -r:System.Web.Extensions.dll.


svn path=/trunk/mcs/; revision=142129
2009-09-17 18:13:49 +00:00
Atsushi Eno 4a4e0ecb23 2009-09-17 Atsushi Enomoto <[email protected]>
* WebScriptServiceHostFactory.cs : do tasks in previous change only
	  if it is done under ASP.NET environment.


svn path=/trunk/mcs/; revision=142127
2009-09-17 18:09:09 +00:00
Atsushi Eno 5e57e4a7dd 2009-09-17 Atsushi Enomoto <[email protected]>
* ServiceMetadataExtension.cs : when its url is requested without
	  any parameters, it simply returns the WSDL, not the help page.


svn path=/trunk/mcs/; revision=142125
2009-09-17 17:59:37 +00:00
Atsushi Eno e3f4a64baf 2009-09-17 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs, EndpointDispatcher.cs :
	  when an EndpointDispatcher is added to ChannelDispatcher, its
	  ChannelDispatcher property is automatically filled. To do this,
	  create a derived collection type for Endpoints (that's what .NET
	  does). Remove extra InitializeEndpoint() argument.

	* DuplexClientRuntimeChannel.cs : reflecting EndpointDispatcher change.

	* ChannelDispatcherTest.cs : add a test to make sure that
	  EndpointDispatcher.ChannelDispatcher property is filled by Add().


svn path=/trunk/mcs/; revision=142124
2009-09-17 17:58:15 +00:00
Atsushi Eno 25e7e1b747 2009-09-17 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : OnOpened() should not hide events that are
	  invoked at the base class.


svn path=/trunk/mcs/; revision=142123
2009-09-17 17:54:37 +00:00
Atsushi Eno ddc4a200f1 2009-09-17 Atsushi Enomoto <[email protected]>
* OperationInvokerHandler.cs : make error message a bit verbose.


svn path=/trunk/mcs/; revision=142121
2009-09-17 17:53:35 +00:00
Atsushi Eno 7dcf3d38a6 2009-09-17 Atsushi Enomoto <[email protected]>
* UriTemplateTable.cs : do not raise an error when MatchSingle() did
	  not result in any match. Match methods should reject empty table.

	* UriTemplateTableTest.cs : new test file.

	* System.ServiceModel.Web_test.dll.sources :
	  added UriTemplateTableTest.cs.


svn path=/trunk/mcs/; revision=142114
2009-09-17 14:44:26 +00:00
Marek Safar e45ed74d99 New tests.
svn path=/trunk/mcs/; revision=142108
2009-09-17 13:02:06 +00:00
Marek Safar f83e6cdde8 2009-09-17 Marek Safar <[email protected]>
* expression.cs, ecore.cs: Cannot infer variables from method group.


svn path=/trunk/mcs/; revision=142107
2009-09-17 13:01:47 +00:00
Gonzalo Paniagua Javier 93e506d40e 2009-09-17 Gonzalo Paniagua Javier <[email protected]>
* DirectoryInfo.cs: throw if FullPath is not a directory.
	Fixes bug #539791.


svn path=/trunk/mcs/; revision=142092
2009-09-17 04:36:06 +00:00
Zoltan Varga 1d5c7d3804 2009-09-16 Zoltan Varga <[email protected]>
* mono-debug.c (mono_debug_add_method): Increase the size of the buffer,
	a leb128 encoding can take up to 5 bytes.

svn path=/trunk/mono/; revision=142069
2009-09-16 18:17:28 +00:00
Zoltan Varga 5d47fe37a1 2009-09-16 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Allow AOT for CEE_LDTOKEN in
	static synchronized wrappers. Fixes #539500.

svn path=/trunk/mono/; revision=142068
2009-09-16 18:17:21 +00:00
Andrés G. Aragoneses a3e92130ba * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Sort the
descriptors wrt type name, to avoid false negatives at MoonAtkBridge
build time.

svn path=/trunk/mcs/; revision=142066
2009-09-16 17:59:13 +00:00
Carlos Alberto Cortez f6031c412f 2009-09-16 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When SelectedRtf is set, and we are in the 0
	position in the x axis, force to re-use any already available line,
	even if it is not empty. This way pasting text into our textbox in the
	beginning for non empty lines should work fine.


svn path=/trunk/mcs/; revision=142065
2009-09-16 17:35:26 +00:00
Marek Safar 1072d99675 New tests.
svn path=/trunk/mcs/; revision=142056
2009-09-16 15:49:48 +00:00
Marek Safar 7bc0cdc849 Initial set enabled.
svn path=/trunk/mcs/; revision=142055
2009-09-16 15:37:30 +00:00
Marek Safar 1dd42c0e99 2009-09-16 Marek Safar <[email protected]>
* RuntimeBinderContext.cs, CSharpBinaryOperationBinder.cs,
	CSharpBinder.cs: Fully implemented binary Add operator.


svn path=/trunk/mcs/; revision=142054
2009-09-16 15:36:57 +00:00
Marek Safar b28cd0574b 2009-09-16 Marek Safar <[email protected]>
* argument.cs, dynamic.cs, convert.cs, context.cs, anonymous.cs,
	constant.cs, nullable.cs, expression.cs, literal.cs, ecore.cs,
	codegen.cs: Dynamic binary operations scaffolding.


svn path=/trunk/mcs/; revision=142053
2009-09-16 15:35:13 +00:00
Andrés G. Aragoneses cb14936125 * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Speed up by
two orders of magnitude, thanks to caching XPathNavigator objects and
calling Directory.GetFiles() just once.

* tuner/Mono.Tuner/MoonlightA11yApiMarker.cs: Fix typo in comment.

svn path=/trunk/mcs/; revision=142035
2009-09-16 13:57:08 +00:00
Zoltan Varga c35f3b94bc 2009-09-16 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_handle_exception_internal): Store the computed
	lmf before calling filter clauses as well. Fixes #539550.

	* exceptions.cs: Add a test.

svn path=/trunk/mono/; revision=142029
2009-09-16 11:51:44 +00:00
Atsushi Eno f6f60a7e50 2009-09-16 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : make sure to close the request context,
	  some channels such as http keeps opening it. Patch by Levi Bard.
	  Fixed bug #533776.


svn path=/trunk/mcs/; revision=142008
2009-09-16 05:02:42 +00:00
Gonzalo Paniagua Javier 151ad72517 2009-09-15 Gonzalo Paniagua Javier <[email protected]>
* HttpClientTransportSink.cs: ensure the response stream is disposed.
	* HttpServerTransportSink.cs: use the public API of HttpConnection.
	* RemotingHttpListener.cs: use the public API of HttpConnection
	instead of hooking into an internal method, possibly cause exception
	and leave the Connection in an unstable state.


svn path=/trunk/mcs/; revision=142006
2009-09-16 01:38:49 +00:00
Gonzalo Paniagua Javier bd709d64b7 add timeout here too
svn path=/trunk/mcs/; revision=142005
2009-09-16 01:36:39 +00:00
Gonzalo Paniagua Javier f512a21cb8 2009-09-15 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerRequest.cs: add the right status code.
	* HttpConnection.cs: exception might come from more places when
	reading the input. Catch all of them.


svn path=/trunk/mcs/; revision=142004
2009-09-16 01:27:36 +00:00
Rodrigo Kumpera 3f7f91d140 Fix changelog notice. Don't want to put blame on others for my stuff.
svn path=/trunk/mono/; revision=142001
2009-09-16 00:29:57 +00:00
Rodrigo Kumpera 79ce582f7b 2009-09-15 Rodrigo Kumpera <[email protected]>
* class.c: New function mono_class_is_assignable_from_slow that is safe to be
	used under mono_class_init context. This functions avoid any code path that
	calls mono_class_init, which leads it to be slow as some things like the interface
	bitmap are not available.

	* class.c (verify_class_overrides): Use mono_class_is_assignable_from_slow instead
	of it's own broken version. Fixes the verifier part of #538588.

	* class-internals.h: Export mono_class_is_assignable_from_slow as part of the internal
	API.

svn path=/trunk/mono/; revision=142000
2009-09-16 00:27:43 +00:00
Rodrigo Kumpera 7cd4b6f0d0 2009-09-14 Zoltan Varga <[email protected]>
* jit-icalls.c (mono_class_static_field_address): handle vtable failure
	properly.

svn path=/trunk/mono/; revision=141999
2009-09-16 00:27:31 +00:00
Jeffrey Stedfast 474deeedc9 2009-09-15 Jeffrey Stedfast <[email protected]>
* io.c (CreateFile): In the directory fallback case, use
	_wapi_open() again so that IOMAP magic happens.
	(CopyFile): Need to consistently use _wapi_open() here too.
	(ReplaceFile): Use _wapi_open() here too and get rid of the
	fallback code that tried re-opening the file w/o O_TRUNC since
	there's no reason to do that.


svn path=/trunk/mono/; revision=141987
2009-09-15 20:10:41 +00:00
Atsushi Eno 0431791d2b 2009-09-15 Atsushi Enomoto <[email protected]>
* SyndicationElementExtension.cs : make it ready for 2.1 build.


svn path=/trunk/mcs/; revision=141983
2009-09-15 18:58:08 +00:00
Gonzalo Paniagua Javier 6fa547ff4f 2009-09-15 Gonzalo Paniagua Javier <[email protected]>
* System.Net.Configuration/DefaultProxyHandler.cs:
	* System.Net/WebRequest.cs: handle upper and lowercase HTTP_PROXY and
	the Any address.
	Fixes bug #537283.


svn path=/trunk/mcs/; revision=141981
2009-09-15 18:47:01 +00:00
Geoff Norton 94769ddb14 fix monotouch build
svn path=/trunk/mcs/; revision=141980
2009-09-15 18:19:33 +00:00
Marek Safar 95caa76c53 New tests.
svn path=/trunk/mcs/; revision=141970
2009-09-15 15:07:35 +00:00
Marek Safar 9facd7100d 2009-09-15 Marek Safar <[email protected]>
* expression.cs: Fixes nullable promotion for enum type variables.


svn path=/trunk/mcs/; revision=141969
2009-09-15 15:07:18 +00:00
Marek Safar af34b08d4f Some compatibility work
svn path=/trunk/mcs/; revision=141968
2009-09-15 15:06:57 +00:00
Atsushi Eno 41d459231c 2009-09-15 Atsushi Enomoto <[email protected]>
* Expression.cs : to support external function that returns non-
	  double (such as int) as number, add conversion from non-double at
	  evaluation. This should fix bug #498389.


svn path=/trunk/mcs/; revision=141965
2009-09-15 13:20:14 +00:00
Marek Habersack 7c2b88b9fe 2009-09-15 Marek Habersack <[email protected]>
* TemplateParser.cs: FindNamespaceInAssembly must catch
	ReflectionTypeLoadException so that it doesn't break on invalid
	assemblies.

svn path=/trunk/mcs/; revision=141962
2009-09-15 13:04:06 +00:00
Atsushi Eno c0cd089348 2009-09-15 Atsushi Enomoto <[email protected]>
* XDocument.cs : XmlReaderSettings on XmlReader may be null.
	  Fixed bug #496285.

	* XDocumentTest.cs : added test for bug #496285.


svn path=/trunk/mcs/; revision=141961
2009-09-15 13:03:54 +00:00
Mark Probst 389dcc9004 2009-09-15 Mark Probst <[email protected]>
* class.c (mono_class_init): Always set an exception in a class if
        vtable setup fails.  Fixes #538577.

        * generic-sharing.c: Raise an exception if mono_class_vtable()
        returns NULL.

2009-09-15  Mark Probst  <[email protected]>

        * generic-type-load-exception.2.il: Test case for vtable setup
        failure in shared generic code.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=141954
2009-09-15 12:50:12 +00:00
Atsushi Eno 361af0a399 2009-09-15 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : removed duplicate ID attribute check
	  here as this behavior not specifically defined by W3C DOM Level 2
	  specification. Fixed bug #508296.

	* XmlAttributeCollectionTests.cs : add test for bug #508296 by
	  Tom Hindle.


svn path=/trunk/mcs/; revision=141952
2009-09-15 12:40:28 +00:00
Atsushi Eno 203934254f 2009-09-15 Atsushi Enomoto <[email protected]>
* XDocument.cs : fix SaveOptions behavior in Save() with filename.
	  Fixed bug #527421.


svn path=/trunk/mcs/; revision=141941
2009-09-15 11:26:20 +00:00
Atsushi Eno 362207db51 2009-09-15 Atsushi Enomoto <[email protected]>
* XElement.cs : consider default namespace in GetNamespaceOfPrefix().
	* XNodeReader.cs : 3.5 RTM does not return empty string for undefined
	  namespace URI with the argument prefix in LookupNamespace().

	* XNodeReaderTest.cs : Updated test to match the latest linq2xml
	  and added test for LookupNamespace().


svn path=/trunk/mcs/; revision=141940
2009-09-15 11:16:18 +00:00
Atsushi Eno 0c1d661a61 2009-09-15 Atsushi Enomoto <[email protected]>
* XObject.cs : do not throw AE when target object is not found in
	  Annotation(). Fixed bug #527887.

	* XObjectTest.cs : added test for #527887.


svn path=/trunk/mcs/; revision=141939
2009-09-15 11:12:49 +00:00
Atsushi Eno 437ac6f7c7 2009-09-15 Atsushi Enomoto <[email protected]>
* JsonWriter.cs : use Stream as its output directly and avoid
	  extraneous preamble output. Fix interop with .NET.


svn path=/trunk/mcs/; revision=141934
2009-09-15 09:34:51 +00:00
Atsushi Eno e059cb3243 2009-09-15 Atsushi Enomoto <[email protected]>
* WebServiceHelper.cs : remove old code.

	* System.ServiceModel.dll.sources: remove WebServiceHelper.cs.


svn path=/trunk/mcs/; revision=141932
2009-09-15 08:41:18 +00:00
Atsushi Eno b7b8e92332 2009-09-15 Atsushi Enomoto <[email protected]>
* WebHttpBehaviorTest.cs : enable working test.


svn path=/trunk/mcs/; revision=141927
2009-09-15 06:45:12 +00:00
Atsushi Eno 6854f26bba 2009-09-15 Atsushi Enomoto <[email protected]>
* ServiceDebugBehaviorTest.cs : it still seems there are some port-
	  blocking tests that blocks here, so change the port and make sure
	  it is available. 8080 is anyways likely to interfere with others.


svn path=/trunk/mcs/; revision=141926
2009-09-15 06:44:23 +00:00
Carlos Alberto Cortez a065387447 2009-09-14 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When we are inserting a flow of rtf text, and we are
	*not* loading it from a file, try to re-use a line if already
	available, since the default behaviour of the parser is to create new
	lines for the document.
	This should fix a regressions we found after the last fix for #513030.


svn path=/trunk/mcs/; revision=141923
2009-09-15 05:32:15 +00:00
Marek Habersack 47a0d24870 2009-09-15 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/WebPages/ListView_DynamicControl_09.aspx and
	Test/WebPages/ListView_DynamicControl_09.aspx.cs

2009-09-15  Marek Habersack  <[email protected]>

	* FieldTemplateFactoryTest.cs: implemented tests for
	BuildVirtualPath, GetFieldTemplateVirtualPath and PreprocessMode.

2009-09-15  Marek Habersack  <[email protected]>

	* MetaColumn.cs: DataTypeAttribtue created automatically for
	string columns, must be of type MultilineText for long strings.

	* FieldTemplateFactory.cs: implemented BuildVirtualPath,
	CreateFieldTemplate, GetFieldTemplateVirtualPath, PreprocessMode
	and fixed implementation of TemplateFolderVirtualPath.

2009-09-15  Marek Habersack  <[email protected]>

	* DataTypeAttribute.cs: implemented GetDataTypeName

2009-09-15  Marek Habersack  <[email protected]>

	* ListView.cs: CreateChildControls calls EnsureDataBound only if
	we're not in post-back and if data binding is required.

svn path=/trunk/mcs/; revision=141922
2009-09-14 23:24:54 +00:00
Jonathan Pobst 51e80b2ecd 2009-09-14 Tom Hindle <[email protected]>
* ToolStripOverflow.cs: Fixes #536036 by adding null ptr check.

svn path=/trunk/mcs/; revision=141910
2009-09-14 19:11:25 +00:00
Jonathan Pryor 161d8652ab * MonoTouch/MonoPInvokeCallbackAttribute.cs: Added.
* monotouch_System.dll.sources: Include MonoPInvokeCallbackAttribute.

svn path=/trunk/mcs/; revision=141909
2009-09-14 18:31:35 +00:00
Jonathan Pryor 77f951b6f1 * DeflateStream.cs: MonoTouch reverse callbacks need to be static
methods and be annotated with [MonoPInvokeCallback].  Get things
	  working with these limitations.

svn path=/trunk/mcs/; revision=141905
2009-09-14 18:25:28 +00:00
Massimiliano Mantione 8f2f7d2495 Updated the profiler documentation, removing the obsolete signal related options and adding the description of the new socket based command interface.
svn path=/trunk/mono/; revision=141902
2009-09-14 18:23:48 +00:00
Massimiliano Mantione ac945c3c9e Removed the use of signals to control the profiler and extended the socket based interface to control also heap snapshots.
svn path=/trunk/mono/; revision=141901
2009-09-14 18:23:43 +00:00
Jonathan Pryor d3c8efd063 * zlib-helper.c: support reverse callbacks within MonoTouch.
svn path=/trunk/mono/; revision=141900
2009-09-14 18:23:20 +00:00
Atsushi Eno 3f987a1b6f 2009-09-14 Atsushi Enomoto <[email protected]>
* MessagePropertiesTest.cs : new test.

	* MessageProperties.cs : fix CopyProperties() behavior to not
	  clear existing items. Make all properties call this[name].

	* System.ServiceModel_test.dll.sources: add MessagePropertiesTest.cs.


svn path=/trunk/mcs/; revision=141898
2009-09-14 17:03:34 +00:00
Atsushi Eno 7c758401c0 2009-09-14 Atsushi Enomoto <[email protected]>
* HttpTransportBindingElement.cs : fix 2.1 build.


svn path=/trunk/mcs/; revision=141896
2009-09-14 15:41:16 +00:00
Atsushi Eno ed6ea58db0 2009-09-14 Atsushi Enomoto <[email protected]>
* TransportBindingElement.cs : another GetProperty fix, iterate
	  other binding elements.


svn path=/trunk/mcs/; revision=141891
2009-09-14 13:23:01 +00:00
Atsushi Eno 6f0a6b36f1 2007-09-14 Atsushi Enomoto <[email protected]>
* MsmqIntegrationBindingElement.cs : implemented some parts.

	* HttpTransportBindingElement.cs, PeerTransportBindingElement.cs :
	  some GetProperty() implementation.


svn path=/trunk/mcs/; revision=141890
2009-09-14 13:20:21 +00:00
Ivan Zlatev 493615634c 2009-09-14 Ivan Zlatev <[email protected]>
* DesignSurface.cs: Prevent a NRE in Flush by cheching if the
	designer loader is null.
	[Fixes bug #538929]

svn path=/trunk/mcs/; revision=141888
2009-09-14 12:22:33 +00:00
Zoltan Varga 644af233a0 2009-09-14 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_class): Add instances of
	Array.GetGenericValueImpl as well.

	* Makefile.am (fullaotcheck): Copy and aot more assemblies so linq
	can be tested too.

	* generics.cs: Add a fullaot linq test.

svn path=/trunk/mono/; revision=141887
2009-09-14 11:42:03 +00:00
Atsushi Eno 5f5c1dabb2 2007-09-14 Atsushi Enomoto <[email protected]>
* MsmqIntegrationMessageProperty.cs, MsmqMessage.cs:
	  cleanup couple of warnings.


svn path=/trunk/mcs/; revision=141883
2009-09-14 10:09:08 +00:00
Atsushi Eno baff9c75c8 2009-09-14 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : do not try to wait for channel closer
	  handle when the loop is not started yet. This fixes lengthy wait
	  in the nunit tests.


svn path=/trunk/mcs/; revision=141881
2009-09-14 09:03:15 +00:00
Atsushi Eno 9b00574253 2009-09-14 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : release HttpListener and avoid extra
	  close process more than once.


svn path=/trunk/mcs/; revision=141880
2009-09-14 09:01:39 +00:00
Zoltan Varga 61bf9023af 2009-09-13 Zoltan Varga <[email protected]>
* runtime-invoke.cs: Add a test.

svn path=/trunk/mono/; revision=141869
2009-09-13 19:10:37 +00:00
Zoltan Varga 46e3bc4989 2009-09-13 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Don't share instance
	methods of vtypes, as they could be incorrectly shared with static methods
	taking an IntPtr argument.

svn path=/trunk/mono/; revision=141868
2009-09-13 19:10:25 +00:00
Gonzalo Paniagua Javier d5c8747c5a painfully updated these
svn path=/trunk/mcs/; revision=141863
2009-09-13 03:30:33 +00:00
Gonzalo Paniagua Javier 8d6883358e 2009-09-12 Gonzalo Paniagua Javier <[email protected]>
* HttpServerChannelTests.cs:
	* BaseCalls.cs:
	* System.Runtime.Remoting.Channels.Tcp/TcpChannelTest.cs: ignore tests
	that fail on MS.NET.


svn path=/trunk/mcs/; revision=141862
2009-09-13 03:15:56 +00:00
Gonzalo Paniagua Javier d0ba5ee475 2009-09-12 Gonzalo Paniagua Javier <[email protected]>
* AsyncResult.cs: lock when setting the 'completed' field and use the
	property instead of the 'handle' field.


svn path=/trunk/mcs/; revision=141860
2009-09-13 02:49:03 +00:00
Gonzalo Paniagua Javier 32ce184cba 2009-09-12 Gonzalo Paniagua Javier <[email protected]>
* StringBuilderTest.cs: new test.


svn path=/trunk/mcs/; revision=141859
2009-09-13 02:44:02 +00:00
Gonzalo Paniagua Javier c7b050db21 avoid ISO C90 warning
svn path=/trunk/mono/; revision=141858
2009-09-13 02:40:08 +00:00
Gonzalo Paniagua Javier 21e52d70f8 2009-09-12 Gonzalo Paniagua Javier <[email protected]>
* domain.c:
	* object.c:
	* class-internals.h: renamed waithandle_class to
	manualresetevent_class.
	* marshal.c: propagate the exception if a remoting BeginInvoke call
	fails.


svn path=/trunk/mono/; revision=141856
2009-09-13 02:36:58 +00:00
Marek Habersack 3d8fd810f5 Slightly changed exception footer
svn path=/trunk/mcs/; revision=141814
2009-09-11 23:15:15 +00:00
Rodrigo Kumpera 2f17a7b59d 2009-09-11 Rodrigo Kumpera <[email protected]>
* object.c: Properly handle vtable failures.

svn path=/trunk/mono/; revision=141812
2009-09-11 22:47:09 +00:00
Rodrigo Kumpera 2025eec179 2009-09-11 Rodrigo Kumpera <[email protected]>
* socket-io.c: Assert on vtable failure.

	* mono-mlist.c: Assert on vtable failure.

svn path=/trunk/mono/; revision=141811
2009-09-11 22:46:58 +00:00
Rodrigo Kumpera 22ef56862e 2009-09-11 Rodrigo Kumpera <[email protected]>
* marshal.c: Assert on vtable failure.

svn path=/trunk/mono/; revision=141810
2009-09-11 22:46:48 +00:00
Rodrigo Kumpera 17b92c22dd 2009-09-11 Rodrigo Kumpera <[email protected]>
* icall.c: Properly handle vtable failures.

svn path=/trunk/mono/; revision=141809
2009-09-11 22:46:38 +00:00
Rodrigo Kumpera 637e1304b5 2009-09-11 Rodrigo Kumpera <[email protected]>
* debug-helpers.c (mono_class_describe_statics): Properly handle vtable failures.

svn path=/trunk/mono/; revision=141808
2009-09-11 22:46:28 +00:00
Rodrigo Kumpera f47cdfa997 2009-09-11 Rodrigo Kumpera <[email protected]>
* cominterop.c (ves_icall_System_ComObject_CreateRCW): Property handle vtable failures.

	* console-unix.c (do_console_cancel_event): Same.

svn path=/trunk/mono/; revision=141807
2009-09-11 22:46:18 +00:00
Rodrigo Kumpera 5b4261722f 2009-09-11 Rodrigo Kumpera <[email protected]>
* class-internals.h: Add mono_class_vtable_full function that allows control
	if an exception should be raised or not.

	* object.c (mono_class_vtable): Call into mono_class_vtable_full. Fix this function
	to do what its documentation say, that is to return NULL and set exception_type on
	failure.

	* object.c (mono_class_create_runtime_vtable): Add new raise_on_error parameter
	and change the code to honor it.

svn path=/trunk/mono/; revision=141806
2009-09-11 22:46:06 +00:00
Rodrigo Kumpera 5dd1c9405a 2009-09-11 Rodrigo Kumpera <[email protected]>
* verify.c: Fix typo in error message.

svn path=/trunk/mono/; revision=141805
2009-09-11 22:45:56 +00:00
Marek Safar a7efbc2ef6 Bootstrap 4.0 Mono.Posix
svn path=/trunk/mcs/; revision=141803
2009-09-11 22:35:36 +00:00
Marek Safar 6d2dd00b2a More 4.0 bootstrap work
svn path=/trunk/mcs/; revision=141787
2009-09-11 20:08:44 +00:00
Marek Safar ded8493bf0 Updated.
svn path=/trunk/mcs/; revision=141785
2009-09-11 17:28:13 +00:00
Marek Safar ffbf5538c5 New tests.
svn path=/trunk/mcs/; revision=141782
2009-09-11 17:13:04 +00:00
Marek Safar 82da599f08 2009-09-11 Marek Safar <[email protected]>
* driver.cs, dynamic.cs: Reset more static variables.


svn path=/trunk/mcs/; revision=141781
2009-09-11 17:12:09 +00:00
Marek Safar e13f820c5c Moved System.Core up to top of build order
svn path=/trunk/mcs/; revision=141780
2009-09-11 17:02:00 +00:00
Marek Safar 5887b2e37c Add NO_BUILD for invalid profiles
svn path=/trunk/mcs/; revision=141779
2009-09-11 17:01:06 +00:00
Marek Safar 7db5bc5282 2008-09-11 Marek Safar <[email protected]>
* library.make: Add NO_BUILD to ignore assembly during build.


svn path=/trunk/mcs/; revision=141778
2009-09-11 16:49:52 +00:00
Atsushi Eno 7200b3ed0d 2009-09-11 Atsushi Enomoto <[email protected]>
* ChannelDispatcherTest.cs : refine AcceptChannel invocation check
	  and make it not to fail on .NET.


svn path=/trunk/mcs/; revision=141776
2009-09-11 15:53:18 +00:00
Atsushi Eno aa516607c1 2009-09-11 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs : do not iterate channel list to close
	  channels which in turn removes them from the list while iteration.


svn path=/trunk/mcs/; revision=141773
2009-09-11 15:31:31 +00:00
Marek Safar b78f0edd3b Add Mono.Posix to 4.0 bootstrap
svn path=/trunk/mcs/; revision=141768
2009-09-11 15:17:22 +00:00
Marek Safar 3377e78d3c 2009-09-11 Marek Safar <[email protected]>
* RuntimeBinderContext.cs, CSharpBinaryOperationBinder.cs,
	ErrorPrinter.cs, Extensions.cs, CSharpBinder.cs: Binary binder.


svn path=/trunk/mcs/; revision=141767
2009-09-11 14:48:22 +00:00
Atsushi Eno cd040e80be 2009-09-11 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : partly revert dispatcher builder refactoring
	  to fix some ServiceHostBaseTest regressions.

	* ServiceMetadataExtension.cs : reflect ServiceHostBase change.


svn path=/trunk/mcs/; revision=141766
2009-09-11 14:16:40 +00:00
Marek Safar 238db58b4b 2009-09-11 Marek Safar <[email protected]>
* dynamic.cs, expression.cs, rootcontext.cs, namespace.cs, ecore.cs,
	driver.cs: Introduced Expression::MakeExpression.


svn path=/trunk/mcs/; revision=141762
2009-09-11 13:31:40 +00:00
Marek Safar edad6798ca 2009-09-11 Marek Safar <[email protected]>
* Makefile: Add System.Core to net_4_0_boostrap.


svn path=/trunk/mcs/; revision=141761
2009-09-11 13:14:19 +00:00
Marek Safar 7b3e4e46ca Prepared for net_4_0_bootsrap
svn path=/trunk/mcs/; revision=141760
2009-09-11 13:12:10 +00:00
Marek Safar 12faba85d1 Expose more stuff for 4.0 bootstrap
svn path=/trunk/mcs/; revision=141759
2009-09-11 13:10:37 +00:00
Marek Safar b50452a0e1 2009-09-11 Marek Safar <[email protected]>
* Makefile: Add System.Core dependency for 4.0


svn path=/trunk/mcs/; revision=141758
2009-09-11 13:09:46 +00:00
Ivan Zlatev 751e6de3b7 2009-09-11 Ivan N. Zlatev <[email protected]>
* PropertyGrid.cs: Hide the splitter when the help is hidden.

svn path=/trunk/mcs/; revision=141748
2009-09-11 12:22:47 +00:00
Marek Habersack b8aa255901 Unbreak some tests
svn path=/trunk/mcs/; revision=141746
2009-09-11 12:03:15 +00:00
Ivan Zlatev 4e862d69ed 2009-09-11 Ivan N. Zlatev <[email protected]>
* InternalWindowManager.cs: Call Invalidate-Update instead of
	Refresh for MS compitability. Note also that Refresh is virtual
	and several controls override it in order to provide data refresh
	functionallity on top of the redraw and they do not expect this
	extra refresh call.
	* Control.cs: In Refresh Invalidate the control and all children
	insead of calling Refresh for each of them.
	[Fixes bug #538336]

svn path=/trunk/mcs/; revision=141744
2009-09-11 11:04:02 +00:00
Atsushi Eno 8110699760 2009-09-11 Atsushi Enomoto <[email protected]>
* EndpointDispatcher.cs : AddressFilter is always non-null.
	* DispatchRuntime.cs : CallbackClientRuntime seems to be created even
	  for non-callback dispatchers. Fixing this also results in fixes in
	  couple of nunit regressions.
	* InputOrReplyRequestProcessor.cs : the change above required fix
	  here too (it has null check).


svn path=/trunk/mcs/; revision=141743
2009-09-11 10:33:15 +00:00
Atsushi Eno e761b63fbb 2009-09-11 Atsushi Enomoto <[email protected]>
* ServiceDebugBehavior.cs : help page enabling properties are true
	  by default (fix regressions).


svn path=/trunk/mcs/; revision=141742
2009-09-11 10:00:41 +00:00
Marek Safar b43be95f89 2009-09-11 Marek Safar <[email protected]>
* compiler.info: Update to changes in mcs.


svn path=/trunk/mcs/; revision=141740
2009-09-11 09:44:20 +00:00
Marek Safar 9a32bc5573 2009-09-11 Marek Safar <[email protected]>
* eval.cs: Exposed MessageOutput instead of cleaning up eval API.


svn path=/trunk/mcs/; revision=141739
2009-09-11 09:43:13 +00:00
Ivan Zlatev cd4dd2e0b4 2009-09-11 Ivan N. Zlatev <[email protected]>
* PropertyGrid.cs: Always set the help panel properties on the
	internal control, because they are inherited and can change with
	the parent.
	[Fixes bug #525305]

svn path=/trunk/mcs/; revision=141733
2009-09-11 09:07:02 +00:00
Atsushi Eno 47765e1338 2009-09-11 Atsushi Enomoto <[email protected]>
* BaseMessagesFormatter.cs, DefaultOperationInvoker.cs:
	  Fix the crash that ref parameter in contract methods caused.


svn path=/trunk/mcs/; revision=141731
2009-09-11 09:02:11 +00:00
Zoltan Varga 340c4a5c36 2009-09-10 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_static_rgctx_trampoline): Don't clobber argument
	reg r1 on arm.

svn path=/trunk/mono/; revision=141701
2009-09-10 21:46:57 +00:00
Rodrigo Kumpera dd6f7f3790 2009-09-10 Rodrigo Kumpera <[email protected]>
object.c (mono_delegate_ctor_with_method): Guard against null method.

svn path=/trunk/mono/; revision=141699
2009-09-10 21:07:41 +00:00
Rodrigo Kumpera d59c89bfc2 2009-09-10 Rodrigo Kumpera <[email protected]>
* marshal.c (mono_marshal_get_xappdomain_dispatch): Add an assert
	that should be replaced with error handling later.

svn path=/trunk/mono/; revision=141698
2009-09-10 21:07:31 +00:00
Rodrigo Kumpera 7c1a21f9d1 2009-09-10 Rodrigo Kumpera <[email protected]>
* marshal.c (mono_delegate_end_invoke): Fix warning.

svn path=/trunk/mono/; revision=141697
2009-09-10 21:07:20 +00:00
Rodrigo Kumpera e4daf405b4 2009-09-10 Rodrigo Kumpera <[email protected]>
* loader.c (mono_field_from_token): Properly handle invalid
	dynamic tokens.

svn path=/trunk/mono/; revision=141696
2009-09-10 21:07:10 +00:00
Rodrigo Kumpera 4170f67db2 2009-09-10 Rodrigo Kumpera <[email protected]>
* pedump.c (verify_image_file): Skip types that can't be
	decoded.

svn path=/trunk/mono/; revision=141695
2009-09-10 21:07:00 +00:00
Geoff Norton d0774b2d66 fix thebuild on monotouch
svn path=/trunk/mcs/; revision=141692
2009-09-10 20:30:02 +00:00
Sebastien Pouliot f0a462d9db 2009-09-10 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Fix default_platform_check so it can run
	the runtime coreclr tests (without an infinite recursion when
	throwing an exception).


svn path=/trunk/mono/; revision=141690
2009-09-10 20:04:33 +00:00
Geoff Norton 1d2a85ca3b fix Personal on monotouch
svn path=/trunk/mcs/; revision=141688
2009-09-10 18:39:44 +00:00
Andrés G. Aragoneses 12933a1dcc * linker/Mono.Linker.Steps/MarkStep.cs: Make IgnoreScope() virtual to
prevent marking custom attributes of foreign assemblies in a derived
step in the tuner. ( r: jb )

* tuner/Mono.Tuner/MoonlightA11yApiMarker.cs: Don't mark attributes of
non-a11y assemblies.

svn path=/trunk/mcs/; revision=141687
2009-09-10 18:16:49 +00:00
Rodrigo Kumpera 7d4c5b5dc8 2009-09-10 Rodrigo Kumpera <[email protected]>
* verify.c: Look for recursive valuetypes only against the
	type been initialized as this is a lot simpler and works.

svn path=/trunk/mono/; revision=141686
2009-09-10 16:20:34 +00:00
Rodrigo Kumpera 1d4db12621 2009-09-10 Rodrigo Kumpera <[email protected]>
* verify.c: Ensure that fields are properly loaded before
	checking them.

svn path=/trunk/mono/; revision=141685
2009-09-10 16:20:13 +00:00
Ankit Jain d80e1ad5d0 * AssemblyResolver.cs: Move the SearchLogger to be a list of
strings, so that it can be emitted with correct indentation.
(SearchLogger): Remove.
(LogSearchMessage): New.
(LogSearchLoggerMessages): New.
* ResolveAssemblyReference.cs: Track api changes.

svn path=/trunk/mcs/; revision=141684
2009-09-10 14:52:41 +00:00
Ankit Jain f0ea14902b * TaskLoggingHelper.cs (FormatString): Use the unformatted string
even if the args array was empty.

svn path=/trunk/mcs/; revision=141683
2009-09-10 14:52:11 +00:00
Bill Holmes f12f30eb08 2009-09-10 Bill Holmes <[email protected]>
* object.c (mono_object_get_virtual_method) : Call
	  mono_cominterop_get_invoke if the object is a COM object.

	* mini-trampolines.c (mono_delegate_trampoline) : Call
	  mono_cominterop_get_invoke if the delegate target object
	  is a COM object.

	* cominterop.cs : Adding a test for invoking delegates that
	  target COM methods.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=141680
2009-09-10 14:07:35 +00:00
Ivan Zlatev e15dd9b4fd 2009-09-10 Ivan N. Zlatev <[email protected]>
* DocumentDesigner.cs: Changing the ISelectionService at run time was a
	bad idea, so wrap it inside the extended UISelectionService instead.

svn path=/trunk/mcs/; revision=141679
2009-09-10 14:03:55 +00:00
Ivan Zlatev 041c3c5ee4 2009-09-10 Ivan N. Zlatev <[email protected]>
* DesignSurface.cs: Provide the default implementation of the
	ISelectionService in the DesignSurface service container.
	* DocumentDesigner.cs: If there is already a ISelectionService registered
	in the ServiceContainer but it's not an IUISelectionService (WinForms
	specific) then replace it with one.
	[Fixes bug #538037]

svn path=/trunk/mcs/; revision=141677
2009-09-10 13:35:22 +00:00
Marek Habersack 7db9098b2e 2009-09-10 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/WebPages/ListView_DynamicControl_05.aspx
	Test/WebPages/ListView_DynamicControl_05.aspx.cs
	Test/WebPages/ListView_DynamicControl_06.aspx
	Test/WebPages/ListView_DynamicControl_06.aspx.cs
	Test/WebPages/ListView_DynamicControl_07.aspx
	Test/WebPages/ListView_DynamicControl_07.aspx.cs
	Test/WebPages/ListView_DynamicControl_08.aspx
	Test/WebPages/ListView_DynamicControl_08.aspx.cs

2009-09-10  Marek Habersack  <[email protected]>

	* DynamicControl.cs: implemented several properties.
	Added code for ResolveColumn method, called from OnInit

2009-09-10  Marek Habersack  <[email protected]>

	* DynamicControlTest.cs: added seveal tests for DataField and UIHint

svn path=/trunk/mcs/; revision=141651
2009-09-10 00:04:37 +00:00
Veerapuram Varadhan 08c6647da5 2009-09-10 Veerapuram Varadhan <[email protected]>
** Fixes #510176
	* DataView.cs (OnRowChanged/OnRowDeleted): Raise appropriate events iff
	view is affected. This silence of the numerous Add/Change events that were
	getting raised from DataView.
	(ToTable): Use appropriate index to generated DataTable in case of
	RowFilter / Sort conditions.

	* DataRow.cs (AcceptChanges/RejectChanges): Raise appropriate Changing events

svn path=/trunk/mcs/; revision=141649
2009-09-09 22:39:47 +00:00
Veerapuram Varadhan 1c5588c2d8 Broken test fix
svn path=/trunk/mcs/; revision=141648
2009-09-09 22:39:24 +00:00
Veerapuram Varadhan b1e0716ffa Fixes tests related to #510176
svn path=/trunk/mcs/; revision=141647
2009-09-09 22:39:03 +00:00
Veerapuram Varadhan ea202868f0 Fix for #510176
svn path=/trunk/mcs/; revision=141646
2009-09-09 22:38:40 +00:00
Veerapuram Varadhan 625d7a4da3 Fix for #510176
svn path=/trunk/mcs/; revision=141645
2009-09-09 22:37:28 +00:00
Rodrigo Kumpera 41fa085c51 2009-09-09 Rodrigo Kumpera <[email protected]>
* badrt-recursive-struct.il: New test for structs with bad layout.

svn path=/trunk/mono/; revision=141643
2009-09-09 20:57:01 +00:00
Rodrigo Kumpera ab73e3a5a8 2009-09-09 Rodrigo Kumpera <[email protected]>
* verify.c: Check for recursive valuetype definitions.

svn path=/trunk/mono/; revision=141642
2009-09-09 20:56:49 +00:00
Geoff Norton 4d21b100ac Fix Mono.Security on MONOTOUCH
svn path=/trunk/mcs/; revision=141634
2009-09-09 20:06:57 +00:00
Andrés G. Aragoneses d8be2fc4fe * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Rather use the
OutputDirectory provided on the command line, and redirect some
progress info or errors to the console.

* tuner/Mono.Tuner/MoonlightA11yUsageInspectionStep.cs: Remove
unnecessary step.

svn path=/trunk/mcs/; revision=141633
2009-09-09 20:04:57 +00:00
Marek Habersack aa7314ad76 2009-09-09 Marek Habersack <[email protected]>
* RouteTest.cs: added two tests for empty and null route URLs (bug
	#537751)

2009-09-09  Marek Habersack  <[email protected]>

	* Route.cs: when Url is set to null, create a parser for empty
	string. Fixes bug #537751

	* PatternParser.cs: Parse allows for null/empty URLs. Fixes bug
	#537751

svn path=/trunk/mcs/; revision=141630
2009-09-09 19:49:50 +00:00
Jonathan Pryor eae23c0130 * Mono.Documentation/monodocs2html.cs: Fix behavior when multiple
source directories are provided, e.g. 'mdoc export-html -o o a b c'
	  with docs located in directories a, b, and c.  Previously this would
	  be equivalent to running aginst a, b, and c separately, resulting in
	  o/index.html being continually overwritten (and thus not showing ALL
	  available types).
	* Resources/stylesheet.xsl: Make $Index a parameter (as monodocs2html
	  will create an in-memory index containing all types from all
	  specified directories), and various changes to cope with $Index no
	  longer being a file.  Better support files in the global namespace.
	* Test/html.expected/NoNamespace.html: Fix assembly link.

svn path=/trunk/mcs/; revision=141629
2009-09-09 19:38:57 +00:00
Jonathan Pryor 5d66a7c092 * Mono.Documentation/ManifestResourceResolver.cs: Allow it to lookup
files located in multiple directories.  Needed so that 'mdoc
	  export-html' can properly deal with multiple source directories.

svn path=/trunk/mcs/; revision=141628
2009-09-09 19:34:51 +00:00
Ankit Jain ce8957f93b In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* BuildItem.cs (Evaluate): Metadata from "Include" should be,
	preserved, so use ConvertTo ITaskItem, rather than string.
	Ensure that the new items have the metadata from references _in_
	Include, and the metadata of _this_ builditem.
	* DirectoryScanner.cs (Includes): Change to a array of ITaskItem.
	(MatchedFilenames): Rename to ..
	(MatchedItems): .. this, and change type of array of ITaskItem.
	Ensure that metadata of items in Includes are retained in the
	final matched items.

	* BuildItemGroup.cs (ConvertoToITaskItemArray): Add 'separator'
	param. If separator is present, then just return a "Join'ed"
	string as the single task item.
	* ItemReference.cs: Track api changes.

	* BuildProperty.cs (ConvertToITaskItemArray): Split the value,
	as we need separate task items.

In class/Microsoft.Build.Engine/Test/various:

	* Items.cs (TestItems2a):
	(TestInheritedMetadataFromItemRefs):
	(TestInheritedMetadataFromItemRefs2):
	(TestMetadataFromItemReferences): New.

svn path=/trunk/mcs/; revision=141627
2009-09-09 19:34:01 +00:00
Stephen Shaw 85fe819f71 Oops, forgot the package line
svn path=/trunk/mono/; revision=141625
2009-09-09 17:08:17 +00:00
Geoff Norton 8bc6de5cc8 fix monotouch build
svn path=/trunk/mcs/; revision=141623
2009-09-09 16:35:01 +00:00
Marek Safar 8001335bb0 2009-09-09 Marek Safar <[email protected]>
* eval.cs, report.cs: Use Console.Out for all eval error or warning
	output.


svn path=/trunk/mcs/; revision=141622
2009-09-09 16:17:35 +00:00
Marek Safar 2f111012af New test.
svn path=/trunk/mcs/; revision=141620
2009-09-09 15:48:28 +00:00
Marek Safar 8780658a14 2009-09-09 Marek Safar <[email protected]>
A fix for bug #518707
	* expression.cs (Is): Optimize only generic parameter type
	expression probing value type generic parameter.


svn path=/trunk/mcs/; revision=141619
2009-09-09 15:46:13 +00:00
Stephen Shaw af2a667660 Added mono-winfxcore for the new windowsbase.dll
svn path=/trunk/mono/; revision=141617
2009-09-09 15:37:55 +00:00
Marek Safar 19ca80083b New test.
svn path=/trunk/mcs/; revision=141616
2009-09-09 15:37:22 +00:00
Jb Evain 288e614ea4 bring Mono Security to monotouch
svn path=/trunk/mcs/; revision=141615
2009-09-09 15:34:58 +00:00
Andrés G. Aragoneses 0f78c16383 * linker/Mono.Linker.Steps/MarkStep.cs: Visibility changes needed by
the need of some new tuner step to redefine or call some methods.

* tuner/Mono.Tuner.csproj:
* tuner/Mono.Tuner.dll.sources: Add new step MoonlightA11yApiMarker.

* tuner/Mono.Tuner/MoonlightA11yApiMarker.cs:
* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Use a new
marker step to only mark API used, not mark recursively.

* tuner/Mono.Tuner/MoonlightA11yUsageInspectionStep.cs: Use the new
marker step.

* tuner/Makefile: Adding reference to System, as we need it for
System.Text.RegularExpressions.

r: jb

svn path=/trunk/mcs/; revision=141614
2009-09-09 15:00:07 +00:00
Ivan Zlatev 56a55f7302 2009-09-09 Ivan N. Zlatev <[email protected]>
* ParentControlDesigner.cs, ControlDesigner.cs, UISelectionService.cs,
	IUISelectionService.cs: Support IToolboxService control creation via
	point-(resize)-click.
	[Fixes part of bug #537604]

svn path=/trunk/mcs/; revision=141612
2009-09-09 14:35:50 +00:00
Gonzalo Paniagua Javier ce69cb7d8a Fixing the cygwin build: the saga continues
svn path=/trunk/mono/; revision=141610
2009-09-09 14:24:05 +00:00
Sebastien Pouliot 04ec436d09 2009-09-09 Sebastien Pouliot <[email protected]>
* SecurityManager.cs, SecurityManager_2_1.cs: Replace existing
	throw methods (for coreclr) with a single one.


svn path=/trunk/mcs/; revision=141608
2009-09-09 14:10:10 +00:00
Sebastien Pouliot f724ab946c 2009-09-09 Sebastien Pouliot <[email protected]>
* method-to-ir.c: For CoreCLR throw a SecurityException if an 
	internal call is defined outside platform code. Reduce code 
	duplication with existing [Method|Field]AccessException


svn path=/trunk/mono/; revision=141607
2009-09-09 14:10:03 +00:00
Marek Safar 25152a7cbb 2009-09-08 Marek Safar <[email protected]>
A fix for bug #532571
	* ecore.cs: Check for simple name type arguments used with
	non-generic type.


svn path=/trunk/mcs/; revision=141606
2009-09-09 13:21:58 +00:00
Gonzalo Paniagua Javier 2aecb29e61 2009-09-09 Gonzalo Paniagua Javier <[email protected]>
* zconf.h:
	* Makefile.am: attempt to fix the windows GCC build.


svn path=/trunk/mono/; revision=141562
2009-09-09 04:11:09 +00:00
Rodrigo Kumpera e197f25388 2009-09-08 Rodrigo Kumpera <[email protected]>
* mini-x86.c (mono_arch_emit_call): Don't reduce stack usage by 4
	if the return value is a small struct passed on regs.

svn path=/trunk/mono/; revision=141552
2009-09-09 00:20:19 +00:00
Zoltan Varga 8772d07477 2009-09-09 Zoltan Varga <[email protected]>
* cpu-arm.md mini-arm.c: Remove unused opcodes.

	* mini-codegen.c: Enable the cpu description validation for arm.

svn path=/trunk/mono/; revision=141551
2009-09-09 00:05:57 +00:00
Jonathan Chambers 87ecd50c9b 2009-09-08 Jonathan Chambers <[email protected]>
* libtest.vcproj: Add toplevel include directory for config.h.


svn path=/trunk/mono/; revision=141543
2009-09-08 20:44:48 +00:00
Marek Safar e177c78c7d New tests.
svn path=/trunk/mcs/; revision=141540
2009-09-08 19:29:20 +00:00
Marek Safar bf242cd0b1 Wrong bug number.
svn path=/trunk/mcs/; revision=141539
2009-09-08 19:29:06 +00:00
Marek Safar 2b81b78d9f 2009-09-08 Marek Safar <[email protected]>
A fix for bug #537402
	* generic.cs (CheckConstraint): Don't use buildin types to check for
	parameterless constructor.


svn path=/trunk/mcs/; revision=141538
2009-09-08 19:28:09 +00:00
Rodrigo Kumpera db6e232304 2009-09-08 Rodrigo Kumpera <[email protected]>
* iface4.cs: Add one more check.

svn path=/trunk/mono/; revision=141536
2009-09-08 18:09:42 +00:00
Rodrigo Kumpera 6909a2ef0c 2009-09-08 Rodrigo Kumpera <[email protected]>
Use inheritance-aware interface offsets. Inherited types use the same offsets
	of their parents. This reduce offset duplication in case more than one type in
	the inheritance tree explicitly implements the same interface.

	This also removes a source of vtable bubbles found in #532409. An abstract type
	isn't required to provide abstract methods to all interfaces it implements, which
	resulted in a bubble with the previous scheme as the child would get a non-full
	vtable from its parent. We fail all concrete types with vtable bubbles, so this
	should be fixed.

	This change causes an increase of 1.7% in vtable memory usage for IronPython pystone but
	it's expected to not cause any significant increase beyond that.

	* class.c (setup_interface_offsets): Compute super class iface offsets
	first to force sharing.

	* class.c: Add VTABLE_SELECTOR macro to the vtable debug macros to help
	dumping only the relevant ones.

	* class.c (mono_class_setup_vtable_general): Give newslot, non final, virtual
	methods a new slot regardless if they belong to an interface or not. This allows
	an inherited type to override the iface method separately from the class one.

svn path=/trunk/mono/; revision=141535
2009-09-08 18:09:30 +00:00
Marek Safar 822e926aef New test.
svn path=/trunk/mcs/; revision=141533
2009-09-08 16:49:18 +00:00
Marek Safar 3b5fd164e4 2009-09-08 Marek Safar <[email protected]>
A fix for bug #537402
	* generic.cs (CheckConstraint): Correctly inflate generic type
	arguments when checking generic method. 


svn path=/trunk/mcs/; revision=141532
2009-09-08 16:48:53 +00:00
Carlos Alberto Cortez 584e5a3169 2009-09-08 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When processing rtf, don't add a new line if we
	already have one for that position. This way we avoid overriding by
	mistake our lines when copying/pasting.
	Fixes #513030.


svn path=/trunk/mcs/; revision=141531
2009-09-08 15:45:11 +00:00
Raja R Harinath ce41ff407f Check in up-to-date version of RegexTest.cs. Somehow the previous
checkin got an untested preliminary version

svn path=/trunk/mcs/; revision=141530
2009-09-08 15:12:38 +00:00
Jonathan Chambers 39cf318897 2009-09-08 Jonathan Chambers <[email protected]>
* cominterop.cs libtest.c: Add support to run tests
        on all x86 and amd64 platforms.


svn path=/trunk/mono/; revision=141527
2009-09-08 14:45:17 +00:00
Jonathan Pobst cc73e26443 - Fix System tests build. (There were two tests named Split_InvalidCount.)
svn path=/trunk/mcs/; revision=141525
2009-09-08 14:26:08 +00:00
Zoltan Varga 1e05ed1089 2009-09-08 Zoltan Varga <[email protected]>
* basic-calls.cs: Move the test_0_float_load_and_store_with_big_offset ()
	test which depends on structs to objects.cs.

svn path=/trunk/mono/; revision=141524
2009-09-08 14:24:54 +00:00
Zoltan Varga 39aff18888 2009-09-08 Zoltan Varga <[email protected]>
* basic-calls.cs: Remove calls to Console.WriteLine and throws, since those
	require object model related stuff working.

svn path=/trunk/mono/; revision=141523
2009-09-08 14:21:25 +00:00
Marek Safar c98a5a360a New test.
svn path=/trunk/mcs/; revision=141522
2009-09-08 14:13:47 +00:00
Marek Safar 161aa266f5 New test.
svn path=/trunk/mcs/; revision=141521
2009-09-08 14:12:59 +00:00
Marek Safar bd657aa7c6 2009-09-08 Marek Safar <[email protected]>
A fix for bug #536463
	* decl.cs (AddToContainer): Don't report collision between explicit
	and parameterless non-explicit members.


svn path=/trunk/mcs/; revision=141520
2009-09-08 14:12:29 +00:00
Marek Habersack f5031440f5 2009-09-08 Marek Habersack <[email protected]>
* ListView.cs: if total row count has been retrieved from the
	view, don't reset it to the number of items returned from the data
	source. Fixes bug #535701

svn path=/trunk/mcs/; revision=141509
2009-09-08 11:48:49 +00:00
Marek Safar 15b28f2d57 2009-09-08 Marek Safar <[email protected]>
* eval.cs: Reset more static stuff.


svn path=/trunk/mcs/; revision=141506
2009-09-08 11:38:53 +00:00
Marek Habersack 88561032dc 2009-09-08 Marek Habersack <[email protected]>
* ProfileParser.cs: GetProfileGroupType creates type name with
	"ProfileGroup" prefix instead of "ProfileCommon". Fixes bug
	#535655

	* ProfileBase.cs: typo fix - renamed CreateSettingsPropery to
	CreateSettingsProperty

2009-09-08  Marek Habersack  <[email protected]>

	* AppCodeCompiler.cs: HaveCustomProfile returns true for profiles
	which don't contain top-level properties. Fixes bug #535655

svn path=/trunk/mcs/; revision=141504
2009-09-08 11:25:09 +00:00
Ankit Jain e7323cf64f * ToolTask.cs (LogEventsFromTextOutput): Log message even if its not
identified as an error or a warning.

svn path=/trunk/mcs/; revision=141500
2009-09-08 10:29:05 +00:00
Ankit Jain db3961e173 In class/Microsoft.Build.Engine/Test/various:
* Items.cs (TestItems5):
	(TestItems6): Remove 'NotWorking' attribute.

In class/Microsoft.Build.Utilities/Mono.XBuild.Utilities:

	* ReservedNameUtils.cs (RelativeDir): Add a trailing \ .

svn path=/trunk/mcs/; revision=141499
2009-09-08 10:28:51 +00:00
Geoff Norton dd5c475d20 disable this optimization on monotouch
svn path=/trunk/mcs/; revision=141479
2009-09-08 01:30:59 +00:00
Zoltan Varga 838867a133 2009-09-08 Zoltan Varga <[email protected]>
* cpu-x86.md mini-x86.c: Remove more unused opcodes.

	* mini-ops.h: Fix OP_BIGMUL instruction descriptions.

svn path=/trunk/mono/; revision=141478
2009-09-08 01:11:50 +00:00
Zoltan Varga a5adb1be30 2009-09-08 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Enable this for mips.

svn path=/trunk/mono/; revision=141477
2009-09-08 01:03:47 +00:00
Zoltan Varga 2fe16426e8 2009-09-08 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Validate the cpu description
	against the instruction metadata in mini-ops.h. amd64 only for now.

	* mini-ops.h: Fix some instruction descriptions.

	* mini-ops.h mini-x86.c mini-amd64.c cpu-<ARCH>.md: Remove some
	unused instructions.

svn path=/trunk/mono/; revision=141476
2009-09-08 01:03:39 +00:00
Marek Habersack fe05e952a4 2009-09-08 Marek Habersack <[email protected]>
* BuildManager.cs: added IsPrecompiled internal property.

	* AppResourcesCompiler.cs: load precompiled site local and global
	resource assemblies from static constructor. Fixes bugs #536138
	and #536143

svn path=/trunk/mcs/; revision=141474
2009-09-08 00:13:00 +00:00
Marek Habersack 93d477f370 2009-09-08 Marek Habersack <[email protected]>
* UrlRoutingModule.cs: store original request path in
	PostResolveRequestCache and restore it in
	PostMapRequestHandler. Fixes bug #537089

svn path=/trunk/mcs/; revision=141471
2009-09-07 22:22:18 +00:00
Marek Safar 48f1977613 2009-09-07 Marek Safar <[email protected]>
* repl.cs: Disabled Report.Stderr hacking.


svn path=/trunk/mcs/; revision=141470
2009-09-07 21:00:00 +00:00
Marek Safar b7b3f9326e Fixes pre 2.0 bootstrap
svn path=/trunk/mcs/; revision=141469
2009-09-07 20:43:55 +00:00
Marek Safar 76f02b09cd Fixes build
svn path=/trunk/mcs/; revision=141468
2009-09-07 20:33:27 +00:00
Miguel de Icaza dd585d5c22 Dist this one as well
svn path=/trunk/mcs/; revision=141467
2009-09-07 20:13:00 +00:00
Marek Safar a7aa5476c3 Check the test results.
svn path=/trunk/mcs/; revision=141463
2009-09-07 17:43:34 +00:00
Marek Safar f23f7a9bc1 New tests.
svn path=/trunk/mcs/; revision=141462
2009-09-07 17:35:48 +00:00
Marek Safar 9ee905ee00 2009-09-07 Marek Safar <[email protected]>
A fix for bug #324625
	* expression.cs, ecore.cs: Create nested generic type expression
	using declaring and not current type.


svn path=/trunk/mcs/; revision=141461
2009-09-07 17:31:56 +00:00
Carlos Alberto Cortez 83fec915d3 2009-09-07 Carlos Alberto Cortez <[email protected]>
* TextControl.cs: When inserting new lines, look for the end of file
	char, and remove chars after it. This is unlikely to happeng either
	loading a file, pasting text or pressing a char, but can happen using
	the TextBox.Text property.
	Fixes #535884.


svn path=/trunk/mcs/; revision=141460
2009-09-07 17:16:00 +00:00
Raja R Harinath 2d8031df3c regex: A few more null and bounds checks
* Regex.cs (Escape, Unescape): Add null checks.
(validate_options): Add ECMAScript option checks.
(Replace, Split): Add a few bounds checks.

svn path=/trunk/mcs/; revision=141459
2009-09-07 17:14:37 +00:00
Raja R Harinath e8d4a97211 Add some null checks and bounds checks.
* Regex.cs (default_startat): New.  Replaces the fragment
'RightToLeft ?  input.Length : 0' with a null-safe variant.
(Replace) <string variant>: Add null checks for argument strings.
(Split): Likewise.
(.ctor): Likewise.  Validate regex options partially.
(Match): Add null check on string arguments, and bounds checks for
offset and length arguments.

svn path=/trunk/mcs/; revision=141457
2009-09-07 16:25:50 +00:00
Marek Safar 904d1b71f3 Better description.
svn path=/trunk/mcs/; revision=141442
2009-09-07 15:40:45 +00:00
Marek Safar 5a3d0c9d65 2009-09-07 Marek Safar <[email protected]>
* *.cs: Changed Report class to accept various ouput printers and
	be an instance class.


svn path=/trunk/mcs/; revision=141436
2009-09-07 15:14:31 +00:00
Miguel de Icaza 634f8b6149 Add WindowsBase to the build
svn path=/trunk/mcs/; revision=141433
2009-09-07 15:01:09 +00:00
Miguel de Icaza 020b3147b3 Copy
svn path=/trunk/mcs/; revision=141432
2009-09-07 14:59:40 +00:00
Zoltan Varga b1aee1fa7a 2009-09-07 Zoltan Varga <[email protected]>
* Makefile.am (runtest): Disable aot on some tests which contain loading
	errors.

svn path=/trunk/mono/; revision=141427
2009-09-07 13:11:23 +00:00
Marek Safar 3e5203dd72 New test.
svn path=/trunk/mcs/; revision=141426
2009-09-07 13:04:32 +00:00
Marek Habersack dfcef08918 2009-09-07 Marek Habersack <[email protected]>
* HttpContext.cs: when creating local resource provider, pass the
	current file's virtual path to CreateLocalResourceProvider. Fixes
	bug #536757

svn path=/trunk/mcs/; revision=141424
2009-09-07 11:57:20 +00:00
Marek Habersack 2c3659caa0 Minor adjustment
svn path=/trunk/mcs/; revision=141422
2009-09-07 11:19:10 +00:00
Marek Habersack 04bfff9c53 2009-09-07 Marek Habersack <[email protected]>
* HostingEnvironment.cs: MapPath checks if HttpContext.Request
	actually exists before using it.

2009-09-07  Marek Habersack  <[email protected]>

	* XmlSiteMapProviderTest.cs: added

	* StaticSiteMapProviderTest.cs: added test for FindSiteMapNode

2009-09-07  Marek Habersack  <[email protected]>

	* XmlSiteMapProvider.cs: do not allow the provider to be
	intialized more than once.
	Initialize throws if it finds unknown attributes in the
	'attributes' collection.
	AddNode checks its arguments and throws if they are null or aren't
	from the same provider.
	FindStartingNode throws exceptions in several erroneous situations
	now.
	Added private method GetConfigDocument which performs several
	checks on the source .sitemap file and throws exceptions if it
	finds any errors.
	BuildSiteMap clears provider state before building the map.
	BuildSiteMapRecursive correctly deals with custom providers. Fixes
	bug #465696
	FindSiteMapNode maps url before searching. Fixes bug #465696

	* VirtualPathUtility.cs: Combine a bit more efficient

	* StaticSiteMapProvider.cs: FindSiteMap node checks if rawUrl is
	relative to application root and if yes, makes it absolute.
	MapUrl converts both rooted and not rooted urls to absolute.

	* SiteMapProvider.cs: check if HttpContext.Request exists before
	using it in FindSiteMapnode

	* SiteMap.cs: Providers collection must be read-only.

2009-09-07  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWeb/NunitWeb/Resources/sub_map_01.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_01.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_02.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_03.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_04.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_05.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_06.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_07.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_08.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_09.sitemap

2009-09-07  Marek Habersack  <[email protected]>

	* Tests/TestSiteMapProvider.cs: added

svn path=/trunk/mcs/; revision=141420
2009-09-07 11:07:43 +00:00
Atsushi Eno 110967e4e9 2009-09-07 Atsushi Enomoto <[email protected]>
* Makefile: add some WCF assemblies to centum_tests.


svn path=/trunk/mcs/; revision=141418
2009-09-07 10:48:14 +00:00
Atsushi Eno 328cda0652 2009-09-07 Atsushi Enomoto <[email protected]>
* X509CertificateClaimSetTest.cs : mark as Ignore (not working on
	  .NET either).


svn path=/trunk/mcs/; revision=141417
2009-09-07 10:45:50 +00:00
Atsushi Eno 5606e78b5a 2009-09-07 Atsushi Enomoto <[email protected]>
* XmlObjectSerializerTest.cs : fix (here too) bad serialization-
	  compatibility-dependent test.


svn path=/trunk/mcs/; revision=141415
2009-09-07 10:40:07 +00:00
Atsushi Eno a7fb224ef8 2009-09-07 Atsushi Enomoto <[email protected]>
* XmlObjectSerializerTest.cs : fixed wrong EOLs that resulted in
	  failure in .NET.
	* XsdDataContractExporterTest.cs : fix test that failed on .NET,
	  and marked as NotWorking (no proceeding wsdl work yet).


svn path=/trunk/mcs/; revision=141414
2009-09-07 10:23:37 +00:00
Atsushi Eno f7306fc799 2009-09-07 Atsushi Enomoto <[email protected]>
* DataContractJsonSerializerTest.cs : fix non-datacontract
	  serialization test. It depended on IPAddress field internals
	  (runtime serialization incompatibility).


svn path=/trunk/mcs/; revision=141412
2009-09-07 09:47:23 +00:00
Atsushi Eno 559e9dc912 2009-09-07 Atsushi Enomoto <[email protected]>
* JsonReaderWriterFactory.cs : check null stream (fix test failure).


svn path=/trunk/mcs/; revision=141411
2009-09-07 09:46:09 +00:00
Atsushi Eno 1eb212f5cf 2008-09-07 Atsushi Enomoto <[email protected]>
* UriTemplate.cs, UriTemplateMatch.cs : add support for wildcard.

	* UriTemplateTest.cs : add test for wildcard.


svn path=/trunk/mcs/; revision=141410
2009-09-07 08:58:58 +00:00
Atsushi Eno d8cd2bea1a 2008-09-07 Atsushi Enomoto <[email protected]>
* UriTemplate.cs : implement IsEquivalentTo().
	* UriTemplateEquivalenceComparer.cs : implement.

	* UriTemplateEquivalenceComparerTest.cs : new test.

	* System.ServiceModel.Web_test.dll.sources :
	  added UriTemplateEquivalenceComparerTest.cs.


svn path=/trunk/mcs/; revision=141409
2009-09-07 08:21:16 +00:00
Atsushi Eno 401f5e15eb 2008-09-07 Atsushi Enomoto <[email protected]>
* UriTemplate.cs : add BindByName() overloads with Dictionary.


svn path=/trunk/mcs/; revision=141408
2009-09-07 08:09:13 +00:00
Ivan Zlatev a2bb9365be 2009-09-07 Ivan N. Zlatev <[email protected]>
* DesignSurface.cs: Don't be so strict and allow for the users
	to get the View even if the DesignSurface wasn't properly initialized
	with a DesignerLoader. MS compatibility.
	[Fixes bug #537131]

svn path=/trunk/mcs/; revision=141406
2009-09-07 08:01:33 +00:00
Atsushi Eno bc0a1d8633 2008-09-07 Atsushi Enomoto <[email protected]>
* UriTemplate.cs : implemented Defaults and IgnoreTrailingSlash.

	* UriTemplateTest.cs :
	  added tests for IgnoreTrailingSlash and Defaults.


svn path=/trunk/mcs/; revision=141405
2009-09-07 07:57:48 +00:00
Atsushi Eno 0ff985bc0f 2009-09-07 Atsushi Enomoto <[email protected]>
* net_2_1_System.Runtime.Serialization.dll.sources : ditto.


svn path=/trunk/mcs/; revision=141404
2009-09-07 07:42:53 +00:00
Atsushi Eno f469ce8ab5 2009-09-07 Atsushi Enomoto <[email protected]>
* UriTemplateTest.cs : fixed a couple of tests to match 3.5 SP1
	  behavior.

	* UriTemplate.cs : Fixed a couple of parse/match behavior to match
	  3.5 SP1 (except for Defaults which misses implementation).


svn path=/trunk/mcs/; revision=141403
2009-09-07 07:03:15 +00:00
Atsushi Eno 39fa97993e 2009-09-07 Atsushi Enomoto <[email protected]>
* Rss20FeedFormatter.cs, CategoriesDocument.cs,
	  AtomPub10ServiceDocumentFormatter_1.cs,
	  AtomPub10CategoriesDocumentFormatter.cs,
	  AtomPub10ServiceDocumentFormatter.cs : a couple of corcompare fixes.


svn path=/trunk/mcs/; revision=141401
2009-09-07 04:55:14 +00:00
Atsushi Eno 47b9f23413 forgot to add.
svn path=/trunk/mcs/; revision=141400
2009-09-07 04:08:09 +00:00
Atsushi Eno 92c7eb6170 2009-09-07 Atsushi Enomoto <[email protected]>
* System.Runtime.Serialization.dll.sources :
	  added IgnoreDataMemberAttribute.cs.

	* IgnoreDataMemberAttribute.cs : add missing type.
	* SerializationMap.cs : support above.

	* XmlObjectSerializerTest.cs : add test for [IgnoreDataMember].


svn path=/trunk/mcs/; revision=141399
2009-09-07 04:06:00 +00:00
Miguel de Icaza 5e52dab0a6 Put WindowsBase on mcs/class for System.IO.Packaging
svn path=/trunk/mcs/; revision=141398
2009-09-06 23:19:06 +00:00
Carlos Alberto Cortez 34cacce63c 2009-09-06 Carlos Alberto Cortez <[email protected]>
* Line.cs: In DeleteCharacters, cache line.Length for every tag, since
	tag.Start changes will modify it indirectly and then we would end up
	with wrong values.
	Fixes #512521.


svn path=/trunk/mcs/; revision=141397
2009-09-06 17:20:10 +00:00
Zoltan Varga b2710fc7c0 2009-09-06 Zoltan Varga <[email protected]>
* exceptions.cs: Add a new test.

svn path=/trunk/mono/; revision=141396
2009-09-06 14:59:29 +00:00
Zoltan Varga 106d16bcbf 2009-09-06 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Add a few more missing casts,
	skip empty phi opcodes.

svn path=/trunk/mono/; revision=141395
2009-09-06 14:58:34 +00:00
Atsushi Eno f5d6d3167b 2009-09-06 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : default action name is prepended
	  "urn:", and on the other hand do not add extra '/' in such case.

	* HttpRequestChannel.cs : Fix message version member comparison.
	  Double-quote SOAPAction. Remove extra Exception.
	* HttpReplyChannel.cs : ditto for version comparison. Unquote above.
	* HttpRequestContext.cs : when addressing is None, remove action
	  from the message.


svn path=/trunk/mcs/; revision=141394
2009-09-06 10:32:38 +00:00
Atsushi Eno 0ed29e41ae 2009-09-06 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : end method lookup should be
	  done against the type that defines begin method.

	* ClientProxyGenerator.cs : it missed end method argument on
	  generating end method proxy.


svn path=/trunk/mcs/; revision=141393
2009-09-06 02:34:53 +00:00
Rodrigo Kumpera ededb3f370 2009-09-06 Rodrigo Kumpera <[email protected]>
* ConstructorOnTypeBuilderInst.cs (GetParameters): Make it work for
	finished types.

svn path=/trunk/mcs/; revision=141392
2009-09-06 02:22:31 +00:00
Rodrigo Kumpera 5fe7758edc 2009-09-05 Rodrigo Kumpera <[email protected]>
* mini-x86.c (needs_stack_frame): OSX requires full frames to keep proper alignment.

svn path=/trunk/mono/; revision=141391
2009-09-06 02:14:31 +00:00
Zoltan Varga be40792ee2 2009-09-06 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Handle unsigned volatile variables
	correctly by zero extending after loads. Skip methods containing calls
	to the monitor enter/exit trampolines.

svn path=/trunk/mono/; revision=141390
2009-09-06 02:06:29 +00:00
Zoltan Varga a4ac9a6c8a 2009-09-06 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_create_trampoline_code): Align the stack
	when calling mono_thread_force_interruption_checkpoint ().

svn path=/trunk/mono/; revision=141389
2009-09-05 23:48:59 +00:00
Zoltan Varga e85ae56868 2009-09-06 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Disable llvm when AOT compiling.

	* tramp-amd64.c (mono_arch_patch_callsite): Add support for 32 bit ->
	64 bit thunks.
	(mono_arch_nullify_class_init_trampoline): Read 'buf' instead of 'code'.

	* mini-llvm.c (mono_llvm_emit_method): Add a few missing conversions so a
	bootstrap could run.

svn path=/trunk/mono/; revision=141388
2009-09-05 23:46:46 +00:00
Zoltan Varga 8550c4ebfb 2009-09-05 Zoltan Varga <[email protected]>
* handles.c (_wapi_handle_real_new): Call _wapi_process_reap () when running
	out of shared handes. Fixes #536776.

svn path=/trunk/mono/; revision=141381
2009-09-05 18:22:35 +00:00
Zoltan Varga d37904d534 2009-09-05 Zoltan Varga <[email protected]>
* process-stress.cs: New stress test for spawning processes.

svn path=/trunk/mono/; revision=141380
2009-09-05 18:22:29 +00:00
Zoltan Varga c6557b0196 2009-09-05 Zoltan Varga <[email protected]>
* processes.c (CreateProcess): Return false and set the error to
	ERROR_OUTOFMEMORY when a process handle cannot be created.
	(ShellExecuteEx): Propagate an ERROR_OUTOFMEMORY error code. Fixes part of
	#536776.

svn path=/trunk/mono/; revision=141379
2009-09-05 17:22:42 +00:00
Zoltan Varga 1217d6467c 2009-09-05 Zoltan Varga <[email protected]>
* MemoryMappedFileTest.cs: Add a minimal test for CreateViewAccessor ().

svn path=/trunk/mcs/; revision=141377
2009-09-04 22:31:10 +00:00
Zoltan Varga 08351b9b95 2009-09-05 Zoltan Varga <[email protected]>
* MemoryMappedViewAccessor.cs: New net 4.0 class.

	* MemoryMappedViewStream.cs: Move the mmap code to MemoryMappedFile.cs,
	so it can be used by ViewAccessor as well.

svn path=/trunk/mcs/; revision=141375
2009-09-04 22:22:58 +00:00
Zoltan Varga ec2ab25c33 2009-09-04 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add System.IO/UnmanagedMemoryAccessor.cs.

svn path=/trunk/mcs/; revision=141374
2009-09-04 21:50:07 +00:00
Zoltan Varga bc4360c4a2 2009-09-04 Zoltan Varga <[email protected]>
* UnmanagedMemoryAccessor.cs: New net 4.0 class.

svn path=/trunk/mcs/; revision=141373
2009-09-04 21:50:00 +00:00
Zoltan Varga 13de10e2f0 2009-09-04 Zoltan Varga <[email protected]>
* SafeBuffer.cs: Mark specific methods as non-cls compliant instead of
	the whole class.

svn path=/trunk/mcs/; revision=141372
2009-09-04 21:49:51 +00:00
Marek Habersack 652d412e1a 2009-09-04 Marek Habersack <[email protected]>
* HttpRuntime.cs: retrieve real Mono version from the runtime and
	store it in the MonoVersion internal static property.

svn path=/trunk/mcs/; revision=141370
2009-09-04 21:38:17 +00:00
Zoltan Varga 5db9a777e9 2009-09-04 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add System.Runtime.InteropServices/SafeBuffer.cs.

svn path=/trunk/mcs/; revision=141369
2009-09-04 21:28:31 +00:00
Zoltan Varga e1fe3ded9a 2009-09-04 Zoltan Varga <[email protected]>
* SafeBuffer.cs: New net 4.0 class.

svn path=/trunk/mcs/; revision=141368
2009-09-04 21:28:17 +00:00
Zoltan Varga be635b5bc5 2009-09-04 Zoltan Varga <[email protected]>
* mini.c (mini_init): Set callbacks.get_runtime_build_info ().

svn path=/trunk/mono/; revision=141367
2009-09-04 21:23:36 +00:00
Zoltan Varga 5a5c799625 2009-09-04 Zoltan Varga <[email protected]>
* object-internals.h (MonoRuntimeCallbacks): Add a 'get_runtime_build_info' callback.

	* object.c (mono_get_runtime_callbacks): New helper function to return
	the runtime callbacks.

	* icall.c (ves_icall_Mono_Runtime_GetDisplayName): Use the result of
	mono_get_runtime_build_info () as the display name.

svn path=/trunk/mono/; revision=141366
2009-09-04 21:23:29 +00:00
Jonathan Pryor 51fe9f0e89 * Makefile: Also rsync dblinq2007/examples sources.
* build/DbLinq.Sqlite_test_mono_strict.dll.sources: Added; .sources
	  file to build build/DbLinq.Sqlite_test_mono_strict.dll, the
	  "end-to-end" unit tests for SQLite using Mono.Data.Sqlite.
	* build/Makefile: Added; builds all "end-to-end" unit tests.
	* examples/**/*: Sync with DbLinq r1217; includes sources needed for
	  end-to-end tests located in 'build'.

svn path=/trunk/mcs/; revision=141365
2009-09-04 20:50:26 +00:00
Gonzalo Paniagua Javier 20b5cffa2c 2009-09-04 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: make the Sleep() alertable to prevent delays exiting
	applications that take less than 2s to execute.
	Bug #524984 fixed.


svn path=/trunk/mono/; revision=141363
2009-09-04 20:35:29 +00:00
Miguel de Icaza b4e9a7677e 2009-09-04 Miguel de Icaza <[email protected]>
* TermInfoDriver.cs: Handle a few more key combinations.

svn path=/trunk/mcs/; revision=141360
2009-09-04 19:13:17 +00:00
Gonzalo Paniagua Javier 3d39a08751 2009-09-04 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: if the request has already finished reading, don't
	throw ObjectDisposedException here, just return as if nothing
	happened. Fixes bug #312968.


svn path=/trunk/mcs/; revision=141346
2009-09-04 17:35:08 +00:00
Jonathan Pryor 263d129a2d * src/**/*: Sync with DbLinq r1217. This removes a slew of
FieldAccessExceptions when running the DbLinq unit tests.

svn path=/trunk/mcs/; revision=141344
2009-09-04 17:22:41 +00:00
Geoff Norton fe30a24e6f dont crash is config is null
svn path=/trunk/mcs/; revision=141343
2009-09-04 17:21:45 +00:00
Marek Habersack 0ab036c732 2009-09-04 Marek Habersack <[email protected]>
* HttpRuntime.cs: detect (and parse if possible) real Mono version
	and make it available via internal, static property
	MonoVersion. MonoVersionParsed property tells whether
	Mono.Runtime.GetDisplayName returned string in a format we
	understood.

	* HttpException.cs: report real Mono version when backtrace is
	displayed.

svn path=/trunk/mcs/; revision=141339
2009-09-04 16:05:39 +00:00
Gonzalo Paniagua Javier fa81a173d1 Avoid nullref in 2.0 too
svn path=/trunk/mcs/; revision=141334
2009-09-04 15:15:05 +00:00
Marek Safar 170a1b14ad New test.
svn path=/trunk/mcs/; revision=141332
2009-09-04 15:00:02 +00:00
Marek Safar c7adf50fba 2009-09-04 Marek Safar <[email protected]>
* statement.cs, ecore.cs: Removed error reporting from emit code.


svn path=/trunk/mcs/; revision=141331
2009-09-04 14:59:38 +00:00
Atsushi Eno 006af1c9f7 2009-09-04 Atsushi Enomoto <[email protected]>
* OperationInvokerHandler.cs, ReplyHandler.cs :
	  - Eliminate ReplyHandler use. What is does is simple reply, while
	    it brings inconsistency between sync and async models.
	    What reply handler used to do are now integrated.
	  - Support ErrorHandlers and InputSessionShutdownHandlers.
	    Actually ErrorHandlers were processed at wrong place and they
	    weren't called where they are expected.
	* InputOrReplyRequestProcessor.cs : hence eliminated ReplyHandler.
	* BaseRequestProcessor.cs : add FIXME notes on ErrorHandlers.


svn path=/trunk/mcs/; revision=141326
2009-09-04 13:51:22 +00:00
Atsushi Eno 5091bf6144 2009-09-04 Atsushi Enomoto <[email protected]>
* OutgoingWebResponseContext.cs : add missing methods.


svn path=/trunk/mcs/; revision=141317
2009-09-04 10:43:30 +00:00
Marek Safar 416ccd996d New test.
svn path=/trunk/mcs/; revision=141316
2009-09-04 10:42:13 +00:00
Marek Safar d74a720acf 2009-09-04 Marek Safar <[email protected]>
* cs-parser.jay, parameter.cs: Moved parser check out of constructor


svn path=/trunk/mcs/; revision=141315
2009-09-04 10:42:01 +00:00
Atsushi Eno db820aa7c6 2009-09-04 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : remove obsoleted method.


svn path=/trunk/mcs/; revision=141314
2009-09-04 10:41:45 +00:00
Atsushi Eno 47dfe0a55e 2009-09-04 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : URI trailing '/' can be added only when the
	  relative URI is non-empty. Do not make http://host/foo.svc as
	  http://host/foo.svc/ , it's not a directory.

	* SvcHttpHandler.cs : set Uri property based on baseAddresses and
	  path, to pick those endpoints that are added at custom factories.


svn path=/trunk/mcs/; revision=141307
2009-09-04 09:55:04 +00:00
Atsushi Eno c30926c3e5 2009-09-04 Atsushi Enomoto <[email protected]>
* ServiceHostBaseTest.cs : a few more base address test.
	  Remove NotWorking marks.


svn path=/trunk/mcs/; revision=141305
2009-09-04 09:06:47 +00:00
Atsushi Eno de6fa7f549 2009-09-04 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : add AddBaseAddress(). BaseAddresses must be
	  non-null.

	* ServiceHostBaseTest.cs : added test for AddBaseAddress().


svn path=/trunk/mcs/; revision=141301
2009-09-04 08:44:18 +00:00
Atsushi Eno 62776aadf3 2009-09-04 Atsushi Enomoto <[email protected]>
* WebScriptServiceHostFactory.cs : endpoints are automatically added
	  and if they are added through configuration, it is an error
	  (as documented).


svn path=/trunk/mcs/; revision=141294
2009-09-04 07:45:49 +00:00
Marek Safar 2d848214ff 2009-09-03 Marek Safar <[email protected]>
* anonymous.cs, expression.cs, statement.cs, cs-parser.jay: Moved
	parser checks out of constructors.


svn path=/trunk/mcs/; revision=141280
2009-09-03 19:06:26 +00:00
Ivan Zlatev 773a04f646 2009-09-03 Ivan N. Zlatev <[email protected]>
* DataColumnPropertyDescriptor.cs, DataView.cs: Not browsable if Hidden.
	[Fixes the second part of bug #536547]

svn path=/trunk/mcs/; revision=141272
2009-09-03 18:00:48 +00:00
Zoltan Varga 5d27ffb730 2009-09-03 Zoltan Varga <[email protected]>
* pinvoke3.cs libtest.c: Add a test for #481559.

svn path=/trunk/mono/; revision=141269
2009-09-03 17:56:32 +00:00
Zoltan Varga 648947e9b3 2009-09-03 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_array): Call conv.ovf.i on the array parameter
	argument, since NEWARR expects a native int. Fixes #481559.

svn path=/trunk/mono/; revision=141268
2009-09-03 17:56:25 +00:00
Rodrigo Kumpera 58d8264003 2009-09-03 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_MonoMethod_GetDllImportAttribute): Guard
	against broken SRE methods.

svn path=/trunk/mono/; revision=141267
2009-09-03 17:48:48 +00:00
Rodrigo Kumpera 0958de52eb 2009-09-03 Rodrigo Kumpera <[email protected]>
* class.c (mono_type_get_full): Don't call mono_metadata_free_type on
	a NULL variable. Abort early on failure.

svn path=/trunk/mono/; revision=141266
2009-09-03 17:48:38 +00:00
Rodrigo Kumpera 700c5631f4 2009-09-03 Rodrigo Kumpera <[email protected]>
* class.c (can_access_type): Fail visibility test for non nested
	types with nested visibility.

svn path=/trunk/mono/; revision=141265
2009-09-03 17:48:27 +00:00
Ivan Zlatev d21eec3902 2009-09-03 Ivan N. Zlatev <[email protected]>
* BindingSource.cs: Implement support for chained data sources.
	* ListBindingHelper.cs: Add support for ICurrencyManagerProvider and
	clean up.
	[Fixes part of bug #536547]

svn path=/trunk/mcs/; revision=141261
2009-09-03 16:32:22 +00:00
Zoltan Varga 2ae8ced866 2009-09-03 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass the start
	of the method to
	mono_breakpoint_clean_code () when using LLVM as the prologues generated by
	LLVM might be very short.

svn path=/trunk/mono/; revision=141260
2009-09-03 16:14:27 +00:00
Zoltan Varga f0c42c5d66 2009-09-03 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass the start
	of the method to
	mono_breakpoint_clean_code () when using LLVM as the prologues generated by
	LLVM might be very short.

svn path=/trunk/mono/; revision=141259
2009-09-03 16:14:20 +00:00
Gonzalo Paniagua Javier cf9aa23358 typo
svn path=/trunk/mono/; revision=141254
2009-09-03 15:07:06 +00:00
Gonzalo Paniagua Javier caf2328cd4 We need the g_free symbol in the library
svn path=/trunk/mono/; revision=141253
2009-09-03 15:06:28 +00:00
Zoltan Varga 03149b1138 2009-09-03 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Maintain stack alignment
	in OP_THROW/RETHROW.

	* exceptions-x86.c: Rewrite the throw trampolines so they maintain stack
	alignment on osx.

svn path=/trunk/mono/; revision=141250
2009-09-03 14:46:13 +00:00
Gonzalo Paniagua Javier 110b77b72f Fix the VS build. Part 2/2
svn path=/trunk/mono/; revision=141249
2009-09-03 14:42:17 +00:00
Gonzalo Paniagua Javier 8ce0fe0d78 Fix the MSVC build. Part 1/2.
svn path=/trunk/mono/; revision=141248
2009-09-03 14:41:31 +00:00
Marek Habersack a0c36b84a2 Compilation fix: typo
svn path=/trunk/mcs/; revision=141245
2009-09-03 13:13:38 +00:00
Jb Evain 37693dfb5e 2009-09-03 Jb Evain <[email protected]>
* ExpressionTest_Constant.cs: add test to emit dbnull constants.


svn path=/trunk/mcs/; revision=141242
2009-09-03 12:10:36 +00:00
Jb Evain 245ad0e086 2009-09-03 Jb Evain <[email protected]>
* ConstantExpression.cs (Emit): add support to emit DBNull values.


svn path=/trunk/mcs/; revision=141241
2009-09-03 12:10:09 +00:00
Jb Evain 6e5d9d672f 2009-09-03 Jb Evain <[email protected]>
* ExpressionTest_Constant.cs: add test to emit DateTime constants.


svn path=/trunk/mcs/; revision=141239
2009-09-03 12:00:59 +00:00
Jb Evain 332e5b400d 2009-09-03 Jb Evain <[email protected]>
* ConstantExpression.cs (Emit): add support for emitting
	DateTime constants.


svn path=/trunk/mcs/; revision=141238
2009-09-03 12:00:32 +00:00
Atsushi Eno abe7c5c6c5 2009-09-03 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : move DispatcherBuilder out from ServiceHostBase.


svn path=/trunk/mcs/; revision=141236
2009-09-03 11:34:45 +00:00
Atsushi Eno 0a17ae4318 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : apply configuration, and if there is still no
	  endpoint, then add default one.


svn path=/trunk/mcs/; revision=141230
2009-09-03 11:08:35 +00:00
Atsushi Eno 62f6587d9b 2009-09-03 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : on service contract lookup, do not always
	  expect contract name to match type name.
	* ServiceHost.cs : remove extra local var.


svn path=/trunk/mcs/; revision=141229
2009-09-03 10:51:59 +00:00
Atsushi Eno e5518a68ff 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : another URL to make relative.


svn path=/trunk/mcs/; revision=141227
2009-09-03 10:49:35 +00:00
Atsushi Eno b7389dd966 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs : some GetHandler changes.
	* SvcHttpHandler.cs : significant changes on receiver structure. Now
	  ProcessRequest() stores pending requests (this might be extraneous,
	  but maybe useful when it implements async handler). Also removed
	  reply_channel field as it may become to handle multiple requests.
	* HttpChannelListener.cs : bind to corresponding SvcHttpHandler.
	* AspNetReplyChannel.cs : make it receive requests like
	  HttpReplyChannel (for HttpListener) to make them consistent.


svn path=/trunk/mcs/; revision=141224
2009-09-03 10:13:08 +00:00
Zoltan Varga 6444df1d96 Fix the build.
svn path=/trunk/mono/; revision=141221
2009-09-03 09:57:55 +00:00
Marek Habersack d0c210841f 2009-09-03 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: SanitizeResourceName uses VB/C# rules
	to attempt to create valid identifiers from resource
	names. Identifier is also escaped by the CodeDOM provider before
	returning. Possible fix for bug #536364

svn path=/trunk/mcs/; revision=141220
2009-09-03 09:57:31 +00:00
Atsushi Eno 96409c115e 2009-09-03 Atsushi Enomoto <[email protected]>
* AspNetRequestContext.cs, HttpRequestContext.cs :
	  fix NRE on HttpListenerContext for AspNetRequestContext (mismatch)
	  by splitting HttpListener-based context out from common code base.


svn path=/trunk/mcs/; revision=141219
2009-09-03 09:52:07 +00:00
Atsushi Eno c5387b6791 2009-09-03 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : fix wrong listenUri argument in
	  AddServiceEndpoint() call chain.


svn path=/trunk/mcs/; revision=141218
2009-09-03 09:48:56 +00:00
Atsushi Eno 5ce2b80051 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : use baseAddresses in ServiceHost and make URIs
	  relative or absolute. new Uri ("/foobar") doesn't work on non-unix
	  environment.


svn path=/trunk/mcs/; revision=141206
2009-09-03 06:13:18 +00:00
Miguel de Icaza b72d1ba23c 2009-08-11 Jérémie Laval <[email protected]>
* corlib.dll.sources: Update with moved files.
	* corlib_test.dll.source: Updated with moved files.

2009-07-31  Jérémie Laval  <[email protected]>

svn path=/trunk/mcs/; revision=141190
2009-09-03 00:11:57 +00:00
Zoltan Varga dd8991817c 2009-09-03 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_get_vcall_slot): Pass the start of the method to
	mono_breakpoint_clean_code () when using LLVM as the prologues generated by
	LLVM might be very short.

svn path=/trunk/mono/; revision=141189
2009-09-02 23:50:56 +00:00
Rodrigo Kumpera dcdc2c4a43 2009-09-02 Rodrigo Kumpera <[email protected]>
* icall.c, icall-def.h: Remove some dead code from early SRE changes.

svn path=/trunk/mono/; revision=141185
2009-09-02 22:56:13 +00:00
Rodrigo Kumpera ce0a590a58 2009-09-02 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_fields): Remove duplicated local variable
	named gklass.
	Rename gklass to gtd to reflect the fact that it points to the generic
	type definition.
	Remove the duplicated call to mono_class_setup_fields on gtd and move
	the error check to the beginning.

svn path=/trunk/mono/; revision=141184
2009-09-02 22:56:02 +00:00
Rodrigo Kumpera 1eb1c2e4d0 2009-09-02 Rodrigo Kumpera <[email protected]>
* time.c (Mono_Posix_Syscall_nanosleep): Avoid referencing unitialized
	memory.

svn path=/trunk/mono/; revision=141183
2009-09-02 22:55:53 +00:00
Rodrigo Kumpera 79436b9aa4 2009-09-02 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Test for #536243.

svn path=/trunk/mcs/; revision=141177
2009-09-02 20:50:08 +00:00
Rodrigo Kumpera 91af725545 2009-09-02 Rodrigo Kumpera <[email protected]>
* ILGenerator.cs (label_fixup): Check for unmarked labels.
	Fixes #536243.

svn path=/trunk/mcs/; revision=141176
2009-09-02 20:49:48 +00:00
Jonathan Pryor a49f30b844 * src/**/*: Sync with DbLinq r1215. This fixes the
../../tools/sqlmetal build.

svn path=/trunk/mcs/; revision=141172
2009-09-02 19:42:28 +00:00
Sebastien Pouliot ef34f0d0f7 2009-09-02 Sebastien Pouliot <[email protected]>
* assembly.c (parse_public_key): Avoid allocating (and not 
	freeing) the public key array when it's not requested by the 
	caller.
	* threads.c (mono_thread_manage, mono_thread_create_internal, 
	ves_icall_System_Threading_Thread_Thread_internal): Free 
	allocated memory on error.


svn path=/trunk/mono/; revision=141170
2009-09-02 19:11:12 +00:00
Rodrigo Kumpera be94fda9b5 2009-09-02 Rodrigo Kumpera <[email protected]>
* marshal.c (mono_array_to_lparray): Do DISABLE_COM properly.
	Remove cruft of the previous patch.

svn path=/trunk/mono/; revision=141169
2009-09-02 19:03:45 +00:00
Miguel de Icaza a2bf1947c6 Update comment
svn path=/trunk/mono/; revision=141167
2009-09-02 18:45:48 +00:00
Rodrigo Kumpera 46d2aae827 2009-09-02 Rodrigo Kumpera <[email protected]>
* mono-sha1.c: Update documentation.

svn path=/trunk/mono/; revision=141163
2009-09-02 18:13:44 +00:00
Rodrigo Kumpera 694d240b8f 2009-09-02 Rodrigo Kumpera <[email protected]>
* mono-md5.c: Update documentation.

svn path=/trunk/mono/; revision=141162
2009-09-02 18:09:00 +00:00
Sebastien Pouliot 9c55633c10 2009-09-02 Sebastien Pouliot <[email protected]>
* mono-dl.c (mono_dl_open): Don't leak module if name is NULL
	* mono-md5.c (mono_md5_get_digest_from_file): Close 'fp' even on
	success (just like we do for sha1)


svn path=/trunk/mono/; revision=141161
2009-09-02 18:07:11 +00:00
Jonathan Pryor cc5ca17ec0 * src/**/*: Sync with DbLinq r1214. This integrates several
performance patches from Zoltan Varga, and adds a
	  DataContextSubclass(string) constructor to sqlmetal output.

svn path=/trunk/mcs/; revision=141160
2009-09-02 17:56:50 +00:00
Jb Evain 724ec894de 2009-09-02 Jb Evain <[email protected]>
* Makefile: include System.Json in monotouch.


svn path=/trunk/mcs/; revision=141140
2009-09-02 16:04:02 +00:00
Marek Safar 7c698bbdd2 2009-09-02 Marek Safar <[email protected]>
* expression.cs, statement.cs, ecore.cs: Use common Report.Error.


svn path=/trunk/mcs/; revision=141138
2009-09-02 15:50:55 +00:00
Marek Safar 9d924d7a09 New test.
svn path=/trunk/mcs/; revision=141130
2009-09-02 12:56:15 +00:00
Marek Safar dbd7b32c4e 2009-09-02 Marek Safar <[email protected]>
A fix for bug #535448
	* anonymous.cs, class.cs: Copy return label between all contexts.


svn path=/trunk/mcs/; revision=141129
2009-09-02 12:56:00 +00:00
Atsushi Eno d75a16d629 2009-09-02 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs : make use of BuildManager aid. Now it
	  loads types from system assemblies appropriately.


svn path=/trunk/mcs/; revision=141128
2009-09-02 12:48:01 +00:00
Atsushi Eno f8705002b6 2009-09-02 Atsushi Enomoto <[email protected]>
* WebMessageFormatter.cs : it was not returning value with correct
	  wrapper name/namespace. Fix interop with .NET client.


svn path=/trunk/mcs/; revision=141121
2009-09-02 11:41:43 +00:00
Atsushi Eno fb98aedb8e 2009-09-02 Atsushi Enomoto <[email protected]>
* WebMessageEncodingBindingElement.cs : implement GetProperty<T>().


svn path=/trunk/mcs/; revision=141119
2009-09-02 11:16:45 +00:00
Atsushi Eno b231dcede6 2009-09-02 Atsushi Enomoto <[email protected]>
* WebMessageFormatter.cs : Made the same prohibition for dispatch
	  formatters too. Support WebMessageBodyStyle on dispatcher side too.


svn path=/trunk/mcs/; revision=141117
2009-09-02 11:04:52 +00:00
Marek Safar 1f073e845f New test.
svn path=/trunk/mcs/; revision=141116
2009-09-02 10:53:05 +00:00
Marek Safar 77ebd5438d 2009-09-02 Marek Safar <[email protected]>
A fix for bug #535395
	* namespace.cs: Resolve context can be null.


svn path=/trunk/mcs/; revision=141115
2009-09-02 10:52:53 +00:00
Atsushi Eno d64b10b0c7 2009-09-02 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : now message formatters are pairs of request/
	  reply formatters.

	* WebMessageFormatter.cs : override some serialization methods as
	  prohibited.

	* WebHttpBehaviorTest.cs : some message formatters tests.


svn path=/trunk/mcs/; revision=141112
2009-09-02 10:35:08 +00:00
Atsushi Eno b98bb73fa6 2009-09-02 Atsushi Enomoto <[email protected]>
* BaseMessagesFormatter.cs :
	  implement XmlBodyWriter.OnCreateBufferedCopy().

	* XmlReaderBodyWriter.cs : implement OnCreateBufferedCopy()
	  for XmlReader input.


svn path=/trunk/mcs/; revision=141111
2009-09-02 10:18:38 +00:00
Atsushi Eno f3bae627cb 2009-09-02 Atsushi Enomoto <[email protected]>
* HttpRequestMessageProperty.cs : fix default values.

	* HttpRequestMessagePropertyTest.cs : new test.

	* System.ServiceModel_test.dll.sources:
	  add HttpRequestMessagePropertyTest.cs


svn path=/trunk/mcs/; revision=141110
2009-09-02 10:16:21 +00:00
Atsushi Eno 36942bc07b 2009-09-02 Atsushi Enomoto <[email protected]>
* WebHttpDispatchOperationSelector.cs : use common extension method.
	* WebMessageFormatter.cs : support WebMessageBodyStyle(.Wrapped*).
	  Cache serializers.


svn path=/trunk/mcs/; revision=141102
2009-09-02 08:53:30 +00:00
Atsushi Eno 0504367a09 2009-09-02 Atsushi Enomoto <[email protected]>
* Makefile : use System.Core.


svn path=/trunk/mcs/; revision=141101
2009-09-02 08:48:19 +00:00
Atsushi Eno 2f38d535fb 2009-09-02 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : BodyStyle is operation specific.


svn path=/trunk/mcs/; revision=141100
2009-09-02 08:47:23 +00:00
Atsushi Eno ec2607604c 2009-09-02 Atsushi Enomoto <[email protected]>
* JsonQueryStringConverterTest.cs : comment out one cosmetic case
	  that is not working under .NET.


svn path=/trunk/mcs/; revision=141099
2009-09-02 08:44:31 +00:00
Gonzalo Paniagua Javier 9a4968ac21 2009-09-01 Gonzalo Paniagua Javier <[email protected]>
* DB2CLIWrapper.cs: changed libname to 'db2'. Use 'int' instead of
	'IntPtr' for most of the SQL handles. Only SQLPOINTER is 64 bits in
	64-bit machines.


svn path=/trunk/mcs/; revision=141088
2009-09-01 21:48:31 +00:00
Rodrigo Kumpera 848de93c3a 2009-09-01 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: New test for method abstract + final.
	Tests #534175.

svn path=/trunk/mono/; revision=141081
2009-09-01 21:04:16 +00:00
Rodrigo Kumpera 17b00a3521 2009-09-01 Rodrigo Kumpera <[email protected]>
* Makefile: Fix makefile.

svn path=/trunk/mono/; revision=141080
2009-09-01 21:04:08 +00:00
Rodrigo Kumpera e39778a144 2009-09-01 Rodrigo Kumpera <[email protected]>
* assembly-with-fields.cs: New test source.

	* Makefile: Add test source

svn path=/trunk/mono/; revision=141079
2009-09-01 21:04:00 +00:00
Rodrigo Kumpera 56f68f3b83 2009-09-01 Rodrigo Kumpera <[email protected]>
* cli-global-props-tests.md: Add test for field table.

svn path=/trunk/mono/; revision=141078
2009-09-01 21:03:52 +00:00
Rodrigo Kumpera ecf792389c 2009-09-01 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add suppport for badrt mode for metadata
	tests that require runtime type initialization.

	* Makefile: Add support for badrt.

svn path=/trunk/mono/; revision=141077
2009-09-01 21:03:42 +00:00
Rodrigo Kumpera c33e8218e2 2009-09-01 Rodrigo Kumpera <[email protected]>
* verify.c (verify_class_fields): Check for duplicate fields.

svn path=/trunk/mono/; revision=141076
2009-09-01 21:03:33 +00:00
Rodrigo Kumpera 4c6ac342d0 2009-09-01 Rodrigo Kumpera <[email protected]>
* cli-global-props-tests.md: Add test for typeref table.

	* cli-tables-tests.md: Disable test that pass under MS.

svn path=/trunk/mono/; revision=141075
2009-09-01 21:03:25 +00:00
Rodrigo Kumpera 4c0e461857 2009-09-01 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the typeref table for duplicates.

svn path=/trunk/mono/; revision=141074
2009-09-01 21:03:15 +00:00
Rodrigo Kumpera 0a65b85bfb 2009-09-01 Rodrigo Kumpera <[email protected]>
This reverts r140936 and properly handles interfaces with static methods. The
	right fix is to ensure vtables without bubles which is an easier to verify
	constraint. We should avoid such special cases as of the reverted patch as those
	only make the runtime more brittle.

	* class.c (mono_class_setup_vtable_general): Revert previous change that handle
	static methods on interfaces.

	* class.c (setup_interface_offsets): Use the number of virtual methods when
	calculating interface offsets instead of the number of methods. This way we
	avoid bubles on the layout.

svn path=/trunk/mono/; revision=141073
2009-09-01 21:03:05 +00:00
Geoff Norton d15c42f4ae Revert "2009-08-20 Geoff Norton <[email protected]>"
This reverts commit c33ce01c93fcd9c03021dcd9613cdc8000d84330.

svn path=/trunk/mcs/; revision=141071
2009-09-01 20:39:54 +00:00
Zoltan Varga e9ab9f7e13 2009-09-01 Zoltan Varga <[email protected]>
* exceptions-x86.c (throw_exception): Fix the previous change by substracting
	the alignment for the value of sp.

svn path=/trunk/mono/; revision=141069
2009-09-01 20:32:01 +00:00
Andrew Jorgensen 9aa407e3d0 add spec file for monkeywrench
svn path=/trunk/mono/; revision=141065
2009-09-01 19:28:15 +00:00
Marek Habersack 33b856ff2b 2009-09-01 Marek Habersack <[email protected]>
* ListView.cs: LoadControlState must call OnTotalRowCountAvailable
	after restoring the state, so that all parties subscribed to that
	event are given chance to react accordingly.
	SetPageProperties should use values stored in
	PagePropertiesChangingEventArgs arguments after handler returns.

2009-09-01  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs: ExecuteSelect must call
	QueryTotalRowCount after executing the select method (that's what
	.NET does)

svn path=/trunk/mcs/; revision=141062
2009-09-01 19:24:40 +00:00
Atsushi Eno 59c349171c 2009-09-01 Atsushi Enomoto <[email protected]>
* MustUnderstandBehavior.cs : fix build.


svn path=/trunk/mcs/; revision=141046
2009-09-01 13:42:08 +00:00
Atsushi Eno bdc9b8e0aa 2009-09-01 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : on validation, check wrapped parameter style.


svn path=/trunk/mcs/; revision=141044
2009-09-01 13:11:17 +00:00
Atsushi Eno a77b1d8ee6 2009-09-01 Atsushi Enomoto <[email protected]>
* ChannelFactory_1.cs : validate behaviors.


svn path=/trunk/mcs/; revision=141043
2009-09-01 13:09:00 +00:00
Atsushi Eno bb799df7b9 2009-09-01 Atsushi Enomoto <[email protected]>
* ClientCredentials.cs, ClientViaBehavior.cs,
	  MustUnderstandBehavior.cs : implement most of the methods.


svn path=/trunk/mcs/; revision=141042
2009-09-01 13:08:32 +00:00
Atsushi Eno 51c7fba575 2009-09-01 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : add Extensions.


svn path=/trunk/mcs/; revision=141036
2009-09-01 12:28:44 +00:00
Gonzalo Paniagua Javier 3ef6d027f0 typo
svn path=/trunk/mcs/; revision=141028
2009-09-01 10:49:34 +00:00
Carlos Alberto Cortez 59622e0c61 2009-09-01 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When saving the text to a file using SaveFile use
	Environment.NewLine to separate the lines. This way we should be
	saving the files according to the system.
	Fixes the remaining part of #511515.


svn path=/trunk/mcs/; revision=141027
2009-09-01 10:45:44 +00:00
Ankit Jain d1f158bfd2 Fix bug #534965.
* Project.cs (BuildTarget): Move caching of target outputs to ..
* Target.cs: .. here. Move LogTargetSkipped also here.
Ensure that caching happens for target dependencies also.

svn path=/trunk/mcs/; revision=141025
2009-09-01 10:16:10 +00:00
Raja R Harinath 10b2528ab7 Fix #533572
* Uri.cs (ParseNoExceptions): Don't look for '@' in absolute unix paths.

2009-09-01  Andres Aragoneses  <[email protected]>
	* UriTest.cs: New tests from #533572.

svn path=/trunk/mcs/; revision=141020
2009-09-01 09:54:56 +00:00
Atsushi Eno e0606b9a87 2009-09-01 Atsushi Enomoto <[email protected]>
* WebOperationContext.cs : Current is automatically created (even
	  without WebHttpBehavior or WebChannelFactory).
	* IncomingWebRequestContext.cs, IncomingWebResponseContext.cs:
	  WebOperationContext could be created regardless of whether it is
	  request or not. So do not premise incoming members existence.

	* WebOperationContextTest.cs : new test.
	* WebInvokeAttributeTest.cs : new test, not working.

	* System.ServiceModel.Web_test.dll.sources :
	  added WebOperationContextTest.cs.


svn path=/trunk/mcs/; revision=141005
2009-09-01 07:07:30 +00:00
Geoff Norton 0a3231a8f0 2009-09-01 Geoff Norton <[email protected]>
* mini.c (mono_get_lmf_addr): Fix jit_thread_attach for native to
        managed wrappers in full aot.

svn path=/trunk/mono/; revision=141001
2009-09-01 04:28:29 +00:00
Ankit Jain 0ff805a946 * ResolveAssemblyReference.cs (ResolveReference): targetFrameworkDirectories
can be null.

svn path=/trunk/mcs/; revision=141000
2009-09-01 04:04:29 +00:00
Ankit Jain 7642269ac1 * DirectoryScanner.cs (Scan): Ignore empty entries in includes and
excludes.

svn path=/trunk/mcs/; revision=140999
2009-09-01 04:04:11 +00:00
Ankit Jain 64b342c4e8 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Expression.cs (ParseOptions): New enum. Replace the bool params
	of exression.Parse with this. Add option to control expansion of
	metadata references.
	(CopyToExpressionCollection): Track api changes.

	Update all expr.Parse calls to use the new enum.
	* BuildItem.cs, BuildProperty.cs, BuildTask.cs, Import.cs,
	Target.cs, TargetBatchingImpl.cs, UsingTask.cs: Track api changes.

	* BatchingImplBase.cs: Track api changes. Allow metadata refs
	in task attributes.
	* ConditionFactorExpression.cs: Allow metadata refs in conditions.
	* ItemReference.cs: Allow metadata in transforms.
	* TaskEngine.cs: Allow metadata refs.

	* MetadataReference.cs (.ctor): Add a 'original string' param.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* TaskBatchingTest.cs: Add new tests for metadata refs found
	in places other than task attributes.

svn path=/trunk/mcs/; revision=140998
2009-09-01 04:00:38 +00:00
Zoltan Varga 4f8958f6d6 2009-09-01 Zoltan Varga <[email protected]>
* processes.c (EnumProcessModules): Applied patch from Romain Tartière
	([email protected]). Fix this on freebsd/OSX. Fixes #533893.

svn path=/trunk/mono/; revision=140994
2009-09-01 00:15:08 +00:00
Zoltan Varga 676026a3b3 2009-08-31 Zoltan Varga <[email protected]>
* exceptions-x86.c (get_throw_exception): Align the stack on osx.

svn path=/trunk/mono/; revision=140989
2009-08-31 20:56:59 +00:00
Michael Barker 2ac3ad3afb 2009-08-31 Michael Barker <[email protected]>
* Updated to version 1.6 of the RabbitMQ libraries

svn path=/trunk/mcs/; revision=140984
2009-08-31 18:18:17 +00:00
Carlos Alberto Cortez f4113d61f5 2009-08-31 Carlos Alberto Cortez <[email protected]>
* RichText.cs: Remove some unix new line characters and use
	Environment.NewLine. Fixes part of #511515.


svn path=/trunk/mcs/; revision=140983
2009-08-31 17:42:41 +00:00
Rodrigo Kumpera 82b4a5cf13 2009-08-31 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_metadata_header): Some very smart
	obfuscators like to add extra stream headers. Ignore them.

svn path=/trunk/mono/; revision=140963
2009-08-31 13:33:01 +00:00
Atsushi Eno 7a217b8104 2009-08-31 Atsushi Enomoto <[email protected]>
* HttpChannelFactory.cs, HttpRequestChannel.cs,
	  ChannelFactoryBase.cs : fix to previous one; allow null Via uri.
	  Check ManualAddressing value and reject address-missing ones.


svn path=/trunk/mcs/; revision=140962
2009-08-31 12:26:49 +00:00
Atsushi Eno 59fceba19b 2009-08-31 Atsushi Enomoto <[email protected]>
* HttpChannelFactory.cs : reject URI mismatch cases when required.

	* HttpTransportBindingElementTest.cs : test for URI mismatch case.


svn path=/trunk/mcs/; revision=140960
2009-08-31 12:10:33 +00:00
Gonzalo Paniagua Javier 84558bda8f fix
svn path=/trunk/mcs/; revision=140953
2009-08-31 10:10:11 +00:00
Gonzalo Paniagua Javier 91749a356c PAtch by Adam Wendt
svn path=/trunk/mcs/; revision=140952
2009-08-31 09:47:49 +00:00
Gonzalo Paniagua Javier f272f2d0a7 2009-08-31 Gonzalo Paniagua Javier <[email protected]>
* CustomizableFileSettingsProvider.cs: reset the property value
	instead of using the DefaultValue.
	* SettingsPropertyValue.cs: new Reset() method.
	* ApplicationSettingsBase.cs: Reset happens in Reload().
	Patch by Andrew Kurochka that fixes bug #532180.


svn path=/trunk/mcs/; revision=140950
2009-08-31 09:20:07 +00:00
Jb Evain bd9b888867 2009-08-30 Jb Evain <[email protected]>
* IsolatedStorageFileEnumerator.cs
	* MoonIsolatedStorageFileStream.cs
	* MoonIsolatedStorageFile.cs
	* MoonIsolatedStorage.cs
	* IsolatedStorageScope.cs
	* IsolatedStorageFileStream.cs
	* IsolatedStorage.cs
	* IsolatedStorageFile.cs:
		Use the traditional net_2_0 version of isolated storage
		for MonoTouch.


svn path=/trunk/mcs/; revision=140937
2009-08-30 16:24:36 +00:00
Zoltan Varga 1005b51150 2009-08-30 Zoltan Varga <[email protected]>
* class.c (mono_class_setup_vtable_general): Verify interfaces with static
	methods correctly.

svn path=/trunk/mono/; revision=140936
2009-08-30 14:25:06 +00:00
Zoltan Varga a308db1127 2009-08-30 Zoltan Varga <[email protected]>
* MD5CngTest.cs: Update to new nunit style.

svn path=/trunk/mcs/; revision=140935
2009-08-30 00:03:18 +00:00
Zoltan Varga 36dcaf4d3f 2009-08-30 Zoltan Varga <[email protected]>
* HashSetTest.cs: Fix warnings.

svn path=/trunk/mcs/; revision=140934
2009-08-30 00:03:10 +00:00
Zoltan Varga 0a79353e58 2009-08-30 Zoltan Varga <[email protected]>
* System.Core_test.dll.sources: Add MemoryMappedFileTest.cs.

svn path=/trunk/mcs/; revision=140933
2009-08-29 23:59:34 +00:00
Zoltan Varga bcc0515221 2009-08-30 Zoltan Varga <[email protected]>
* MemoryMappedFileTest.cs: New file.

svn path=/trunk/mcs/; revision=140932
2009-08-29 23:59:26 +00:00
Zoltan Varga ba7339169a 2009-08-30 Zoltan Varga <[email protected]>
* Makefile: Pass -unsafe to gmcs.

svn path=/trunk/mcs/; revision=140931
2009-08-29 23:59:20 +00:00
Zoltan Varga 1994c7d03b 2009-08-30 Zoltan Varga <[email protected]>
* MemoryMappedViewStream.cs: Implement this for unix.

svn path=/trunk/mcs/; revision=140930
2009-08-29 23:59:13 +00:00
Zoltan Varga 4174126774 2009-08-29 Zoltan Varga <[email protected]>
* net_4_0_System.Core.dll.sources: Add System.IO.MemoryMappedFiles/*.cs
	and Microsoft.Win32.SafeHandles/SafeMemoryMappedFileHandle.cs.

svn path=/trunk/mcs/; revision=140929
2009-08-29 23:59:04 +00:00
Zoltan Varga 6854adc9c7 2009-08-29 Zoltan Varga <[email protected]>
* ObjectSecurity_T.cs: New file, empty stub for new net 4.0 class.

svn path=/trunk/mcs/; revision=140928
2009-08-29 23:58:51 +00:00
Rodrigo Kumpera 0caa2f60d6 2009-08-29 Rodrigo Kumpera <[email protected]>
* cli-global-props-tests.md: New tests for global
	properties to check tables for.

	* Makefile: Add new test source.

svn path=/trunk/mono/; revision=140927
2009-08-29 21:18:32 +00:00
Rodrigo Kumpera f4ab31567f 2009-08-29 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify for duplicated types.

svn path=/trunk/mono/; revision=140926
2009-08-29 21:18:23 +00:00
Rodrigo Kumpera 6d3f84a3c4 2009-08-28 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Verify for nested types
	without an entry on the nested class table.

svn path=/trunk/mono/; revision=140925
2009-08-29 21:18:13 +00:00
Gonzalo Paniagua Javier 94659b81ae 2009-08-29 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: HEAD response does not have a body even if the
	response is an error. Fixes buf #535102.


svn path=/trunk/mcs/; revision=140923
2009-08-29 21:09:20 +00:00
Jonathan Pryor 8ac5f1ce9a * man/mdoc.5: Document the new <format/> element.
svn path=/trunk/mono/; revision=140922
2009-08-29 20:32:54 +00:00
Ankit Jain 2f3d65b5c3 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Expression.cs (ExpressionOptions): New.

	Introduce a ExpressionOptions argument to all ConvertTo*
	methods. Implement the rule: in evaluation phase, expand
	all items completely, but dont expand item refs in properties.
	At other times, expand the item refs in the properties.
	See comments in Expression.cs, for a full explanation.
	* BuildItem.cs: Track api changes.
	* BuildItemGroup.cs: Likewise.
	* BuildProperty.cs: Track api changes. Handle self-references.
	* BuildTask.cs: Track api changes.
	* IReference.cs: Add ExpressionOptions param.
	* ItemReference.cs: Track api changes.
	* PropertyReference.cs: Likewise.
	* MetadataReference.cs: Likewise.
	* ExpressionCollection.cs: Track api changes. Add support for
	converting all primitive types and DateTime, instead of a fixed
	few.
	* Project.cs (GetMetadataBatched): Use the evaluated metadata.
	* TaskBatchingImpl.cs: Handle the case when batching is required,
	but no items are available.

	* TaskEngine.cs: Throw on unsupported types. Correctly handle
	properties in case of empty values.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* BuildItemTest.cs (TestSetMetadata5a): New.
	* ProjectTest.cs: Add tests for different property types
	with required attribute. Also, check the values - null or
	empty array.
	* TestTasks.cs: Add new tasks for above.

In class/Microsoft.Build.Engine/Test/resources:

	* TestTasks.cs: Add new tasks for different property types
	with required attribute. Also, emit whether the value was
	null or a zero length array.

In class/Microsoft.Build.Engine/Test/various:

	* Items.cs: Add tests for property/item evaluation.

svn path=/trunk/mcs/; revision=140911
2009-08-28 21:55:29 +00:00
Ankit Jain 2296bb2de0 In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* AssignCulture.cs, AssignTargetPath.cs,
	CallTarget.cs, CombinePath.cs, Copy.cs,
	CreateItem.cs, CreateManifestResourceName.cs,
	Delete.cs, Error.cs, FindUnderPath.cs,
	GenerateResource.cs, MSBuild.cs, MakeDir.cs,
	Message.cs, RemoveDir.cs, RemoveDuplicates.cs,
	ResolveAssemblyReference.cs, Touch.cs,
	WriteLinesToFiles.cs: Add null checks and array
	length checks.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* CopyTest.cs (TestCopy_EmptySources): New.
	(TestCopy_EmptyDestFolder): New.

svn path=/trunk/mcs/; revision=140910
2009-08-28 21:53:50 +00:00
Zoltan Varga c8f4754ba1 2009-08-28 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp mini-llvm.c: Update to latest llvm api.

svn path=/trunk/mono/; revision=140907
2009-08-28 20:33:21 +00:00
Carlos Alberto Cortez 08c1d6e17b 2009-08-28 Carlos Alberto Cortez <[email protected]>
* TextBoxTest.cs: Improve the ModifiedTest test.


svn path=/trunk/mcs/; revision=140892
2009-08-28 15:45:24 +00:00
Carlos Alberto Cortez e7e2f4d030 2009-08-28 Carlos Alberto Cortez <[email protected]>
* TextBoxBase.cs: Modified should *not* be modified from the Text
	property, as our new tests show. It should be to false, however, in
	Append and Clear; and Paste, Cut, Undo, and direct user input should set it
	to true. Also, as opposed to what the .net docs say -but proven by our
	tests-, the changes should be generating a ModifiedChanged event
	(thus we set the property, instead of the field).
	Fixes #511267.


svn path=/trunk/mcs/; revision=140891
2009-08-28 15:43:26 +00:00
Atsushi Eno 3158eafdc5 2009-08-28 Atsushi Enomoto <[email protected]>
* UnixEncodingTest.cs : upgrade to modern nunit style.


svn path=/trunk/mcs/; revision=140874
2009-08-28 10:51:46 +00:00
Atsushi Eno 1eec5e9208 2009-08-28 Atsushi Enomoto <[email protected]>
* upgraded to modern nunit style.


svn path=/trunk/mcs/; revision=140873
2009-08-28 10:39:36 +00:00
Atsushi Eno 18037a7949 2009-08-28 Atsushi Enomoto <[email protected]>
* DataGridViewCellTest.cs : nunit test upgrade to modern style.


svn path=/trunk/mcs/; revision=140872
2009-08-28 10:36:33 +00:00
Atsushi Eno c36e34c3bd 2009-08-28 Atsushi Enomoto <[email protected]>
* TestBlend.cs, TestMatrix.cs : nunit test upgrade to modern style.


svn path=/trunk/mcs/; revision=140869
2009-08-28 10:28:08 +00:00
Atsushi Eno 036afe79ce 2009-08-28 Atsushi Enomoto <[email protected]>
* TestColor.cs, TestPoint.cs, TestGraphics.cs, TestSystemBrushes.cs,
	  TestPens.cs, TestSize.cs, TestSystemPens.cs: nunit test upgrade.


svn path=/trunk/mcs/; revision=140868
2009-08-28 10:22:46 +00:00
Zoltan Varga 7e5167727a 2009-08-28 Zoltan Varga <[email protected]>
* cominterop.c (cominterop_get_ccw): Applied patch from tom hindle
	<[email protected]>. Add locking around hash table accesses.

svn path=/trunk/mono/; revision=140843
2009-08-27 23:38:42 +00:00
Rodrigo Kumpera 995a3188cc 2009-08-25 Rodrigo Kumpera <[email protected]>
* verify.c (mono_verifier_verify_class): Verify all interface if
	really are interfaces. Fixes #534184.

svn path=/trunk/mono/; revision=140839
2009-08-27 19:59:18 +00:00
Rodrigo Kumpera 68eee83fb9 2009-08-27 Rodrigo Kumpera <[email protected]>
* pedump.c: Initialize all types during metadata validation so we report
	errors only detected as part of class initialization.

svn path=/trunk/mono/; revision=140838
2009-08-27 19:59:07 +00:00
Ivan Zlatev 4c43417b7b 2009-08-27 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fire the CellDoubleClicked event.
	[Fixes bug #533430]

svn path=/trunk/mcs/; revision=140834
2009-08-27 17:44:47 +00:00
Ivan Zlatev 66d1a67b13 2009-08-27 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Add support for column DataGridViewAutoSizeColumnMode
	DisplayedCells and DisplayedCellsExceptHeader.
	[Fixes bug #533435]

svn path=/trunk/mcs/; revision=140833
2009-08-27 17:27:51 +00:00
Jb Evain 4bae34a588 add monotouch sources file
svn path=/trunk/mcs/; revision=140804
2009-08-27 11:45:11 +00:00
Atsushi Eno 63e3ea6d29 2009-08-27 Atsushi Enomoto <[email protected]>
* PipeStream.cs : add set_Stream.
        * PipeUnix.cs : some impl. code (not really functional).

        * Makefile : add -r:Mono.Posix on required profiles.


svn path=/trunk/mcs/; revision=140793
2009-08-27 11:18:51 +00:00
Marek Habersack e6ad1de337 2009-08-27 Marek Habersack <[email protected]>
* BuildManager.cs: when HttpRequest.FilePath is '/' in
	GetAbsoluteVirtualPath, don't try to use
	VirtualPathUtility.GetDirectory on it. Fixes bug #532679

svn path=/trunk/mcs/; revision=140786
2009-08-27 11:02:51 +00:00
Carlos Alberto Cortez c3faa3d827 2009-08-27 Carlos Alberto Cortez <[email protected]>
* TextControl.cs: When removing a simple char, actually record the
	action in the undo manager. This way we both support undoing the
	removal of chars using backspace/delete, as well as keeping data
	integrity when other undo tasks are performed.
	Fixes #531983.


svn path=/trunk/mcs/; revision=140769
2009-08-27 08:49:46 +00:00
Sebastien Pouliot 06ff2040e4 2009-08-26 Sebastien Pouliot <[email protected]>
* TimeSpanTest.cs: Add test case where seconds are not specified.


svn path=/trunk/mcs/; revision=140758
2009-08-26 21:36:04 +00:00
Sebastien Pouliot 176caa7886 TimeSpan.cs: Fix parsing when seconds are not specified.
svn path=/trunk/mcs/; revision=140757
2009-08-26 21:35:22 +00:00
Rodrigo Kumpera c83369d654 2009-08-26 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Regression test for #534189

svn path=/trunk/mono/; revision=140751
2009-08-26 20:01:05 +00:00
Rodrigo Kumpera 85add08bbe 2009-08-26 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_method_table): PInvoke requires method to
	be static. Fixes #534189

svn path=/trunk/mono/; revision=140750
2009-08-26 20:00:55 +00:00
Marek Habersack 0802535ee7 2009-08-26 Marek Habersack <[email protected]>
* IApplicationHost.cs: added

svn path=/trunk/mcs/; revision=140745
2009-08-26 19:18:49 +00:00
Gonzalo Paniagua Javier 48f2b9233e this is internal
svn path=/trunk/mcs/; revision=140738
2009-08-26 18:05:19 +00:00
Marek Habersack 5e89ae81f5 2009-08-26 Marek Habersack <[email protected]>
* AspTokenizer.cs: when there's put back record and we're in
	verbatim mode, get_token must be careful with what it returns - it
	can't return Token.* values, instead it should look at Value and
	retrieve the next token from it. Fixes bug #400807

2009-08-26  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #400807

2009-08-26  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/OneLetterIdentifierInCodeRender.aspx

svn path=/trunk/mcs/; revision=140703
2009-08-26 11:02:17 +00:00
Atsushi Eno ef6042e66b 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : When received Connect() from neighbor,
	  add the peer to its internal list.
	  Finally ChatApplication got working.


svn path=/trunk/mcs/; revision=140700
2009-08-26 10:40:05 +00:00
Atsushi Eno d206a94290 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : since the channel factory is per instance,
	  do not reuse factory that is tied to different callback instance.
	  It resolved the issue that mono callback client didn't receive
	  messages from the client itself.


svn path=/trunk/mcs/; revision=140698
2009-08-26 09:51:10 +00:00
Atsushi Eno ca6c65b459 2009-08-26 Atsushi Enomoto <[email protected]>
* SilverlightClientConfigLoader.cs : add (incomplete) binary
	  encoder support at config layer. see:
	  http://lists.ximian.com/pipermail/mono-list/2009-August/043245.html


svn path=/trunk/mcs/; revision=140694
2009-08-26 08:24:36 +00:00
Atsushi Eno 48420dfd94 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerNode.cs : use ulong as same as Welcome message value.

	* PeerDuplexChannel.cs : in the Welcome response, return the NodeId
	  of the receiver, not the requestor. It resolved the issue that
	  .NET client didn't send further messages to mono server.


svn path=/trunk/mcs/; revision=140693
2009-08-26 07:16:25 +00:00
Gonzalo Paniagua Javier dc22fd5a2b 2009-08-26 Gonzalo Paniagua Javier <[email protected]>
* System.dll.sources:
	* monotouch_System.dll.sources:
	* System20.csproj: add Mono.Http/NtmlClient.cs

	* Mono.Http/ChangeLog: New file.
	* Mono.Http/NtlmClient.cs: copied from Mono.Http.
	* System.Net/NtlmClient.cs: use Mono.Http.NtmlClient from System
	instead of dynamically loading the one in Mono.Http.


svn path=/trunk/mcs/; revision=140690
2009-08-26 06:53:55 +00:00
Atsushi Eno 0dbe067726 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : remove some comment on [MC-PRCH] behavior.
	* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs,
	  TcpReplyChannel.cs, TcpRequestChannel.cs,
	  NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs:
	  rename EndRecord handling method to appropriate one.
	  Write EndRecord from recipient too.


svn path=/trunk/mcs/; revision=140687
2009-08-26 05:00:42 +00:00
Ankit Jain 6d0ef5405b * xbuild/Microsoft.Common.targets: Remove dummy
@(_TargetPathItem), since we support item refs with transforms
as a property value.

svn path=/trunk/mcs/; revision=140685
2009-08-26 01:56:25 +00:00
Ankit Jain 325b27d587 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Expression.cs: Correctly handle a item reference with transform
	when allowItems is false. If item ref is ignored, then the transform
	will get incorrectly matched as a metadata ref.
	* ItemReference.cs (.ctor): Add a @original_string param.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
	* CreateItemTest.cs (TestVariableExpansion): Update test to
	use a transform with a item reference in a property.

svn path=/trunk/mcs/; revision=140684
2009-08-26 01:56:11 +00:00
Ankit Jain b863f9726e * Utilities.cs (UnescapeFromXml): New. From md.
* BuildProperty.cs (.ctor): Unescape xml codes from the InnerXml
of the property element.

svn path=/trunk/mcs/; revision=140683
2009-08-26 01:55:56 +00:00
Ankit Jain 37cabce6a2 Fix bug #533903.
* xbuild/Microsoft.Common.targets: Support building projects
directly from command line. Builds referenced projects. Honors
$(BuildingSolutionFile) and $(BuildingInsideVisualStudio) now.
Also, clean referenced projects.

svn path=/trunk/mcs/; revision=140679
2009-08-25 23:53:01 +00:00
Ankit Jain b75ff50306 Ensure that properties are fully expanded.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

	* BuildProperty.cs (ConvertToString): New.
	(ConvertoToITaskItemArray): New. Parse the property value.
	* PropertyReference.cs (ConvertToString): Use BuildProperty's
	ConvertToString.
	(ConvertoToITaskItemArray): Likewise.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* CreateItemTest.cs (TestVariableExpansion): New.
	* CreatePropertyTest.cs (TestExecution2): New.

svn path=/trunk/mcs/; revision=140678
2009-08-25 23:50:37 +00:00
Zoltan Varga a0ea98aafe 2009-08-26 Zoltan Varga <[email protected]>
* threads.c (mono_thread_suspend_all_other_threads): Handle 'threads_starting_ip'
	being NULL.

svn path=/trunk/mono/; revision=140665
2009-08-25 22:20:48 +00:00
Marek Habersack 137e1a8bd2 2009-08-25 Marek Habersack <[email protected]>
* AspGenerator.cs:
	Detect IE conditional comments when processing comment blocks in
	TextParsed. Fixes bug #367273

2009-08-25  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs:
	Added test for bug #367273

2009-08-25  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/ConditionalClientComments.aspx

svn path=/trunk/mcs/; revision=140662
2009-08-25 21:04:51 +00:00
Rodrigo Kumpera 1c81b381f6 2009-08-25 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_vtable_general): Verify the resulting vtable
	for holes or bad methods. Fixes #525314.

svn path=/trunk/mono/; revision=140653
2009-08-25 17:50:45 +00:00
Rodrigo Kumpera d2b7a149b5 2009-08-25 Rodrigo Kumpera <[email protected]>
* class.c (setup_interface_offsets): Don't allocate slot
	for the same interface multiple times. This creates bubbles
	that waster space and make vtable verification harder.

	The same interface get a slot multiple times since we need
	to get the closure of all implemented interfaces, which means
	the same interface is reported multiple times.

svn path=/trunk/mono/; revision=140652
2009-08-25 17:50:34 +00:00
Jb Evain 93ef7a84d2 remove WCF from monotouch
svn path=/trunk/mcs/; revision=140644
2009-08-25 16:19:09 +00:00
Rodrigo Kumpera 03f17fbbb0 2009-08-25 Rodrigo Kumpera <[email protected]>
* verify.c (mono_verifier_verify_class): Don't check the fields
	of generic instances since the context on which they got expanded
	might lead to false positives.

	Such thing happens when a generic type is inflated in the context
	of a generic method and the inflated type of a field turns into a
	generic method argument, which causes the checking code to think
	it's an invalid class when it's not.

svn path=/trunk/mono/; revision=140634
2009-08-25 15:19:50 +00:00
Jb Evain fb6ca6c3d5 bring xpath to monotouch xlinq
svn path=/trunk/mcs/; revision=140626
2009-08-25 14:33:21 +00:00
Gonzalo Paniagua Javier b34504aa4d new test case
svn path=/trunk/mcs/; revision=140625
2009-08-25 14:31:10 +00:00
Marek Safar 5ec4754b9d New test, msg update.
svn path=/trunk/mcs/; revision=140623
2009-08-25 14:22:37 +00:00
Marek Safar 766d1b5174 New test.
svn path=/trunk/mcs/; revision=140622
2009-08-25 14:21:45 +00:00
Marek Safar 1f23d8460a 2009-08-25 Marek Safar <[email protected]>
A fix for bug #533912
	* generic.cs: Use correct context for constraints resolving.


svn path=/trunk/mcs/; revision=140621
2009-08-25 14:20:34 +00:00
Marek Safar 0a1cec4122 Fixes a warning.
svn path=/trunk/mcs/; revision=140620
2009-08-25 14:10:02 +00:00
Marek Safar fb1581775e 2009-08-25 Marek Safar <[email protected]>
A fix for bug #532630
	* driver.cs: Trim conditional symbols.


svn path=/trunk/mcs/; revision=140616
2009-08-25 11:34:26 +00:00
Marek Habersack dfabffa5b2 2009-08-25 Marek Habersack <[email protected]>
* AspGenerator.cs: correctly parse server-side tags nested in
	client-side ones. Fixes bug #323719

2009-08-25  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/TagsNestedInClientTag.aspx

2009-08-25  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #323719

svn path=/trunk/mcs/; revision=140611
2009-08-25 11:22:37 +00:00
Jb Evain 561bf6b6b2 bring a net_2_0 feature set to monotouch
svn path=/trunk/mcs/; revision=140606
2009-08-25 10:18:20 +00:00
Jb Evain bbe7b2313f add StringCollection to the monotouch profile
svn path=/trunk/mcs/; revision=140605
2009-08-25 10:17:10 +00:00
Veerapuram Varadhan 298595df27 2009-08-25 Veerapuram Varadhan <[email protected]>
** Fixes #521951
	* DataViewManager.cs (CollectionToListChangeEventArgs) : Use a corresponding
	DataTable/DataRelation obj instead of only DataRelation.

svn path=/trunk/mcs/; revision=140597
2009-08-25 09:23:28 +00:00
Marek Safar c7cd90c3b6 Removed no longer used DeclContainer
svn path=/trunk/mcs/; revision=140596
2009-08-25 09:17:26 +00:00
Marek Habersack d83880bd08 2009-08-25 Marek Habersack <[email protected]>
* WebColorConverter.cs: inform the user that the might need to
	check if libgdiplus is installed when parsing a color name
	fails. Fixes bug #533749

svn path=/trunk/mcs/; revision=140593
2009-08-25 08:51:58 +00:00
Marek Safar 2332d6ff00 Requires gmcs
svn path=/trunk/mcs/; revision=140592
2009-08-25 08:33:13 +00:00
Marek Safar c417ce9c95 2009-08-25 Marek Safar <[email protected]>
* context.cs: New file.
	
	* *.exe.sources, *.csproj: Updated.


svn path=/trunk/mcs/; revision=140591
2009-08-25 08:30:07 +00:00
Marek Safar ff6b4a17a1 2009-08-25 Marek Safar <[email protected]>
* generic.cs, parameter.cs, decl.cs, statement.cs, namespace.cs,
	class.cs, generic-mcs.cs, codegen.cs: Add GetSignatureForError to
	IMembercontext, some small cleanups.


svn path=/trunk/mcs/; revision=140588
2009-08-25 08:13:34 +00:00
Rodrigo Kumpera 5c45bd728e 2009-08-24 Rodrigo Kumpera <[email protected]>
* verify.c (mono_verifier_verify_class): Check fields for
	invalid generic arguments.

svn path=/trunk/mono/; revision=140571
2009-08-25 01:26:46 +00:00
Zoltan Varga 60a7a51327 2009-08-25 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_exception_debug_info): Emit ei->flags too.

	* aot-runtime.c (decode_exception_debug_info): Decode ei->flags from the
	saved info.

svn path=/trunk/mono/; revision=140570
2009-08-25 00:54:41 +00:00
Rodrigo Kumpera a83e0d641c 2009-08-24 Rodrigo Kumpera <[email protected]>
* load-exceptions.cs:
	* load-missing.il: Test for virtual and static methods.

svn path=/trunk/mono/; revision=140567
2009-08-24 23:41:36 +00:00
Rodrigo Kumpera 07b25672a3 2009-08-24 Rodrigo Kumpera <[email protected]>
* class.c (verify_class_overrides): Verify if for static
	and non virtual methods.

svn path=/trunk/mono/; revision=140566
2009-08-24 23:41:27 +00:00
Rodrigo Kumpera 00f8e072c8 2009-08-24 Rodrigo Kumpera <[email protected]>
* icaa.c (ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor):
	Check for errors after retrieving the vtable.

svn path=/trunk/mono/; revision=140561
2009-08-24 22:31:20 +00:00
Rodrigo Kumpera 84b760c00a 2009-08-24 Rodrigo Kumpera <[email protected]>
* load-exceptions.cs:
	* load-missing.il: Test for invalid method overrides.

svn path=/trunk/mono/; revision=140560
2009-08-24 22:31:10 +00:00
Rodrigo Kumpera 24ec8a9287 2009-08-24 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_vtable_general): Verify
	if method overrides are valid before processing them.

svn path=/trunk/mono/; revision=140559
2009-08-24 22:30:55 +00:00
Zoltan Varga c2d511e567 2009-08-25 Zoltan Varga <[email protected]>
* mini.h (MONO_AOT_FILE_VERSION): Bump this.

	* aot-runtime.c aot-compiler.c: Emit exception causes fully so we don't
	depend on the info MonoMethodHeader which could be missing in IL stripped
	assemblies.

svn path=/trunk/mono/; revision=140558
2009-08-24 22:30:26 +00:00
Zoltan Varga 4e12e36f14 2009-08-25 Zoltan Varga <[email protected]>
* mini-arm.c (add_general): Fix the passing of 64 bit values on darwin, where
	they are only 4 byte aligned.

svn path=/trunk/mono/; revision=140557
2009-08-24 22:25:36 +00:00
Marek Safar d611431d52 2009-08-24 Marek Safar <[email protected]>
* *.cs: Split ResolveContext and EmitContext.


svn path=/trunk/mcs/; revision=140556
2009-08-24 22:18:38 +00:00
Marek Habersack b6969f355f 2009-08-24 Marek Habersack <[email protected]>
* PageParser.cs: 2.0 profile takes advantage of the inputFile
	parameter to GetCompiledPageInstance. A check is made whether the
	file pointed to by this parameter is inside the application's
	virtual path and if not, the compilation request is assumed to
	refer to a fake location. Part of fix for bug #463813

2009-08-24  Marek Habersack  <[email protected]>

	* PageBuildProvider.cs: MapPath now takes a VirtualPath
	instance. Part of fix for bug #463813

	* BuildManager.cs: public APIs which take virtual path strings as
	their parameters got internal counterparts accepting a VirtualPath
	instance in place of string. Part of fix for bug #463813

	* GenericBuildProvider.cs:
	MapPath now takes a VirtualPath instance. Part of fix for bug
	#463813

2009-08-24  Marek Habersack  <[email protected]>

	* SoapDocumentationHandler.cs: get rid of the ugly fake virtual
	path hack when creating the helper page. Part of fix for bug
	#463813

2009-08-24  Marek Habersack  <[email protected]>

	* VirtualPath.cs: Added new constructor which takes virtual and
	physical paths as well as a boolean marking the instance as
	referring to a fake location. Part of fix for bug #463813

svn path=/trunk/mcs/; revision=140548
2009-08-24 20:34:57 +00:00
Carlos Alberto Cortez 38cedbcbfa * Control.cs: Remove the ancient code in ResetText, which was setting
the internal field to String.Empty, instead of doing it for our Text
	property, as .net does (which also causes a TextChanged event and all
	the other related routines).
	Fixes #531587.

2009-08-24  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=140535
2009-08-24 18:45:35 +00:00
Gonzalo Paniagua Javier 09a6edee71 fix take 2
svn path=/trunk/mono/; revision=140533
2009-08-24 18:34:51 +00:00
Ankit Jain a373ab3b82 * LibraryPcFileCache.cs: New. From monodevelop.
* PcFileCache.cs: Update from monodevelop, see r140528.
* AssemblyResolver.cs: Track api changes.

svn path=/trunk/mcs/; revision=140532
2009-08-24 18:13:42 +00:00
Carlos Alberto Cortez 8ad48c8b74 * TreeNodeCollection.cs: Correctly implement Contains by using a
linear search - there's no possible way to use a binary search, since
	the node instances are not implementing IComparable, nor have a
	specific order.
	Fixes #529927.

2009-08-24  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=140531
2009-08-24 18:01:10 +00:00
Ankit Jain 15015329d4 In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* CreateManifestResourceName.cs (GetResourceIdFromFileName): Spaces
	in folder names should be converted to '_'.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* CreateCSharpManifestResourceNameTest.cs:
	* CreateVisualBasicManifestResourceNameTest.cs: Add tests for
	folder name with spaces in it.

svn path=/trunk/mcs/; revision=140530
2009-08-24 17:42:15 +00:00
Rodrigo Kumpera 8978bcf2f1 2009-08-24 Rodrigo Kumpera <[email protected]>
* marshal.c (mono_array_to_lparray): Fix minimal build with
	cominterop disabled.

	* marshal.c (mono_free_lparray): Same.

svn path=/trunk/mono/; revision=140524
2009-08-24 16:58:23 +00:00
Gonzalo Paniagua Javier acb7c59438 fix packaging
svn path=/trunk/mono/; revision=140515
2009-08-24 15:26:02 +00:00
Marek Safar e974066465 2009-08-24 Marek Safar <[email protected]>
* *.cs: Only ResolveContext implements IMemberContext.


svn path=/trunk/mcs/; revision=140512
2009-08-24 15:13:20 +00:00
Carlos Alberto Cortez 3725413948 * DataGrid.cs: If we are *not* changing a row
already added to the source, and thus we are adding a new 
	row instead, try to move to the previous row when Esc is
	pressed -if possible-.
	Fixes some bits of #322974.

2009-08-24  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=140510
2009-08-24 15:02:57 +00:00
Marek Habersack 7aa27e68e9 2009-08-24 Marek Habersack <[email protected]>
* TemplateBuildProvider.cs: ExtractDependencies checks if the
	input has already been parsed/compiled and, if yes, adds
	dependencies from the TemplateParser to the list of the ones
	extracted locally. Fixes bug #377915

	* GenericBuildProvider.cs: added Parsed property.

svn path=/trunk/mcs/; revision=140502
2009-08-24 12:34:56 +00:00
Atsushi Eno 6a08482396 2009-08-24 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : add PeerFlooder header (see comment).
	  Process PeerTo header to upgrade Message To header. Now mono
	  service accepts mono client (somehow not true for .NET client).


svn path=/trunk/mcs/; revision=140489
2009-08-24 10:13:34 +00:00
Atsushi Eno d2babd367d 2009-08-24 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, TcpRequestChannel.cs,
	  NamedPipeRequestChannel.cs : no need to add ReplyTo headers.


svn path=/trunk/mcs/; revision=140488
2009-08-24 09:54:17 +00:00
Atsushi Eno 3f9792e4f6 2009-08-24 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : fix PeerTo/PeerVia header namespace.


svn path=/trunk/mcs/; revision=140487
2009-08-24 09:53:28 +00:00
Atsushi Eno 54481ead34 2009-08-24 Atsushi Enomoto <[email protected]>
* Constants.cs : p2p constants should rather go here.

	* IPeerConnectorContract.cs : use common Constants class.


svn path=/trunk/mcs/; revision=140483
2009-08-24 09:51:33 +00:00
Atsushi Eno c9a4b1c1ca 2009-08-24 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, DuplexClientRuntimeChannel.cs : split out
	  from former to latter and implemented most part of listener part.
	  Make sure to open internal channel at base ClientRuntimeChannel.
	* ClientProxyGenerator.cs : minimize !NET_2_1 to here.

	* System.ServiceModel.dll.sources: added 
	  DuplexClientRuntimeChannel.cs and CallbackInstanceContextProvider.cs.


svn path=/trunk/mcs/; revision=140478
2009-08-24 08:57:57 +00:00
Atsushi Eno 329379f739 2009-08-24 Atsushi Enomoto <[email protected]>
* CallbackInstanceContextProvider.cs : new instance context provider
	  used by duplex client dispatcher.


svn path=/trunk/mcs/; revision=140477
2009-08-24 08:52:24 +00:00
Atsushi Eno 2297a7547e 2009-08-24 Atsushi Enomoto <[email protected]>
* SecurityHandler.cs : skip callback duplex blocker.


svn path=/trunk/mcs/; revision=140476
2009-08-24 08:50:51 +00:00
Atsushi Eno c3995f0e2f 2009-08-24 Atsushi Enomoto <[email protected]>
* EndpointDispatcher.cs, ChannelDispatcher.cs : differentiate
	  service dispatch and callback client dispatch at initialization.


svn path=/trunk/mcs/; revision=140475
2009-08-24 08:50:05 +00:00
Atsushi Eno dfdea80b4f 2009-08-24 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : check channel state before processing
	  Send and Receive.


svn path=/trunk/mcs/; revision=140474
2009-08-24 08:44:15 +00:00
Carlos Alberto Cortez c27e82555d 2009-08-24 Carlos Alberto Cortez <[email protected]>
* DataGridTextBoxColumn.cs:
	* DataGrid.cs: Moving the cell to the add row (the last one) should
	not immediately add a new row - this should happen until the very
	first change happens in that textbox.
	Fixes part of #322974.


svn path=/trunk/mcs/; revision=140461
2009-08-24 04:38:25 +00:00
Gonzalo Paniagua Javier 5dd3f99e04 2009-08-23 Gonzalo Paniagua Javier <[email protected]>
* deflate.c:
	* gzio.c:
	* deflate.h:
	* zutil.h:
	* crc32.c:
	* trees.c:
	* zconf.h:
	* inffast.c:
	* compress.c:
	* zlib.h:
	* inftrees.c:
	* inflate.c:
	* inflate.h:
	* adler32.c:
	* infback.c: updated to 1.2.3.3


svn path=/trunk/mono/; revision=140453
2009-08-23 06:14:52 +00:00
Marek Safar f2778264ea 2009-08-21 Marek Safar <[email protected]>
* *.cs: Detached ResolveContext from EmitContext.


svn path=/trunk/mcs/; revision=140445
2009-08-21 22:46:42 +00:00
Marek Safar 93c636468d 2009-08-21 Marek Safar <[email protected]>
* *.cs: Detached ResolveContext from EmitContext.


svn path=/trunk/mcs/; revision=140443
2009-08-21 21:42:23 +00:00
Marek Habersack a22edf372b 2009-08-21 Marek Habersack <[email protected]>
* Menu.cs: separator image is rendered next to the item in
	horizontal layout and is preceeded by 3px spacer (unless
	itemSpacing is set) to make output match .NET. Fixes bug #474716

svn path=/trunk/mcs/; revision=140438
2009-08-21 20:55:44 +00:00
Zoltan Varga 4975ebf95a 2009-08-21 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_allocate_vars): Use FP as the frame pointer as
	was done previously, since using SP causes too many problems.

svn path=/trunk/mono/; revision=140434
2009-08-21 19:59:18 +00:00
Marek Habersack 6935419d0e 2009-08-21 Marek Habersack <[email protected]>
* GenericBuildProvider.cs: added internal property LanguageName
	override which calls GetParserLanguage to get language name
	instead of using the application default one.

	* BuildManagerDirectoryBuilder.cs: removed CodeDOM provider cache,
	provider types are retrieved from build providers while assigning
	them to groups. Fixes bug #533166

svn path=/trunk/mcs/; revision=140433
2009-08-21 19:52:11 +00:00
Zoltan Varga af2e2e13cc 2009-08-21 Zoltan Varga <[email protected]>
* exceptions-arm.c: Fix the handling of sp/fp so unwinding through
	frames without a frame pointer works.

svn path=/trunk/mono/; revision=140428
2009-08-21 18:24:36 +00:00
Marek Safar a3f3039024 2009-08-21 Marek Safar <[email protected]>
* *.cs: Renamed IResolveContext to IMemberContext.


svn path=/trunk/mcs/; revision=140427
2009-08-21 17:45:42 +00:00
Marek Safar c63e9b4b3f 2009-08-21 Marek Safar <[email protected]>
* *.cs: Detached ResolveContext from EmitContext.


svn path=/trunk/mcs/; revision=140426
2009-08-21 17:33:38 +00:00
Mark Probst 824181c3cd 2009-08-21 Mark Probst <[email protected]>
* mono-hash.c: When creating a hash table, if the keys are managed
	objects, assert that we have a hash function.  Remove the
	rehashing after GC marking.

2009-08-21  Mark Probst  <[email protected]>

	* threadpool.c (mono_thread_pool_init): Use mono_object_hash() as
	the hash function for the ares_htable.

svn path=/trunk/mono/; revision=140423
2009-08-21 16:52:46 +00:00
Marek Safar 45a828730c 2009-08-21 Marek Safar <[email protected]>
* codegen.cs: Moved flow-analysis to BlockContext.


svn path=/trunk/mcs/; revision=140421
2009-08-21 16:19:41 +00:00
Marek Safar 1ae69e656e Updated.
svn path=/trunk/mcs/; revision=140416
2009-08-21 14:08:12 +00:00
Marek Safar 6400595327 2009-08-21 Marek Safar <[email protected]>
* *.cs: Detached BlockContext from EmitContext.


svn path=/trunk/mcs/; revision=140415
2009-08-21 14:07:18 +00:00
Atsushi Eno d577a89aa2 2009-08-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : also made reference to host optional.


svn path=/trunk/mcs/; revision=140406
2009-08-21 08:26:28 +00:00
Atsushi Eno 5678390b82 2009-08-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : isolated loop manager class from parent,
	  as well as moved some code from parent.


svn path=/trunk/mcs/; revision=140405
2009-08-21 08:25:23 +00:00
Atsushi Eno 2894cf473f 2009-08-21 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : some refactoring to reduce weird limitation
	  to apply behaviors to endpoints. (no need to limit to [0]).


svn path=/trunk/mcs/; revision=140404
2009-08-21 08:16:40 +00:00
Atsushi Eno 194aaa5431 2009-08-21 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : some refactoring to isolate dispatcher
	  builder code from here.

	* ServiceMetadataExtension.cs:
	  some dependent changes to ServiceHostBase.


svn path=/trunk/mcs/; revision=140403
2009-08-21 07:27:43 +00:00
Atsushi Eno c79ccba22b 2009-08-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcherCollection.cs : remove extra members.


svn path=/trunk/mcs/; revision=140402
2009-08-21 07:09:54 +00:00
Atsushi Eno 6ac70127d7 2009-08-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs, EndpointDispatcher.cs :
	  moved some initialization code from ServiceHostBase, to start
	  reducing dependencies on ServiceHostBase.

	* ServiceHostBase.cs : moved some code to channel/endpoint dispatcher
	  to reduce their dependencies on this type.


svn path=/trunk/mcs/; revision=140401
2009-08-21 06:35:21 +00:00
Massimiliano Mantione 3c5c734e69 Changed max depth of call chains to 128.
svn path=/trunk/mono/; revision=140400
2009-08-21 06:06:22 +00:00
Massimiliano Mantione e2c96f15f9 Report all wrapper types.
svn path=/trunk/mono/; revision=140399
2009-08-21 06:06:19 +00:00
Massimiliano Mantione 45c33f97ec While debugging file writes, also print the exact number of bytes written to disk.
svn path=/trunk/mono/; revision=140398
2009-08-21 06:06:14 +00:00
Atsushi Eno 6d0574134d 2009-08-21 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : there still was use of bogus
	  XmlParserContext.NameTable.

	* XmlTextReaderTests.cs : added test for null nametable in parser
	  context.


svn path=/trunk/mcs/; revision=140397
2009-08-21 03:45:06 +00:00
Marek Habersack f61b24b177 2009-08-21 Marek Habersack <[email protected]>
* TreeNodeCollection.cs: {Save,Load}ViewState now store/load the
	type of the node, if node is a of a custom type. Fixes bug #475997

svn path=/trunk/mcs/; revision=140394
2009-08-21 00:41:34 +00:00
Rodrigo Kumpera c7bb5af6fc 2009-08-20 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_assembly_table): Accept 0x10 as a valid
	bit for assembly flags. MS is ok with it but there is no spec anywhere
	on its mean

svn path=/trunk/mono/; revision=140392
2009-08-21 00:01:31 +00:00
Rodrigo Kumpera 771e24b7ad 2009-08-19 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_create_from_typedef): Emit profiler events
	in all cases.

svn path=/trunk/mono/; revision=140391
2009-08-21 00:01:21 +00:00
Zoltan Varga 6ce9ae68f9 2009-08-21 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_get_global_int_regs): Avoid using V5 as a
	global register in methods with calls, since the calls can go through
	a static rgctx trampoline which doesn't save it.

svn path=/trunk/mono/; revision=140389
2009-08-20 23:22:40 +00:00
Ankit Jain 8ad2b68f21 * Makefile.am (man_MANS): Add xbuild.1
* xbuild.1: New.

svn path=/trunk/mono/; revision=140383
2009-08-20 22:28:39 +00:00
Marek Habersack 6163d748f1 2009-08-20 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: GetSection does not use
	FindWebConfig to get the virtual path to open configuration for -
	doing so would make the configuration system ignore <location>
	sections. Fixes bug #482181

svn path=/trunk/mcs/; revision=140375
2009-08-20 21:07:20 +00:00
Marek Habersack 947a38fd94 Fix for tests I broke yesterday
svn path=/trunk/mcs/; revision=140371
2009-08-20 21:03:07 +00:00
Geoff Norton e87b01301c 2009-08-20 Geoff Norton <[email protected]>
* Socket_2_1.cs: Disable ipv6 on monotouch.

svn path=/trunk/mcs/; revision=140368
2009-08-20 20:40:59 +00:00
Ankit Jain cc085fd742 Fix bug #531926
* xbuild/Microsoft.Common.targets: Add $(ConfigurationName)
and $(PlatformName) default values.
Move CoreCompile to a Compile target with corresponding
Before/After hooks and *DependsOn.
Add Pre/PostBuildEvents handling.

svn path=/trunk/mcs/; revision=140367
2009-08-20 20:04:01 +00:00
Ankit Jain 0a3c9eff30 * Engine.cs (EndProjectBuild): Use the @succeeded argument
instead of hardcoding 'true'.
* Target.cs (Build): Add an overload to return executeOnErrors
value for the target executed. If building dependencies fails,
and executeOnErrors is true, then execute OnError tasks.
Add the new param to ..
(BuildDependencies): this, ..
(DoBuild): and this.
(GetDependencies): Improve error message and variable name.
(ExecuteOnErrors): Honor OnError tag's Condition also.
* TaskBatchingImpl.cs (Run): Correctly set executeOnErrors param.

svn path=/trunk/mcs/; revision=140366
2009-08-20 20:03:22 +00:00
Marek Habersack 805167d03f Unbreak the 4.0 build
svn path=/trunk/mcs/; revision=140364
2009-08-20 19:17:34 +00:00
Sebastien Pouliot 52a76350d1 2009-08-20 Sebastien Pouliot <[email protected]>
* SslStream.cs : Always use/provide a X509Chain even if this 
	duplicates some of the old/existing logic of Mono.Security.
	This makes it possible to provide a callback using 
	ServicePointManager.ServerCertificateValidationCallback


svn path=/trunk/mcs/; revision=140359
2009-08-20 18:26:28 +00:00
Sebastien Pouliot f7613c5708 2009-08-20 Sebastien Pouliot <[email protected]>
* TlsServerCertificate.cs: If no usage information is available then
	assume it's ok for SSL since we'll (later) check that the CN contains
	a host name (that match the server) and such a certificate wouldn't
	be much useful for anything but SSL/TLS. Fix the new stmp.gmail.com
	certificate usage failure.


svn path=/trunk/mcs/; revision=140358
2009-08-20 18:25:50 +00:00
Sebastien Pouliot c259a8cc51 2009-08-20 Sebastien Pouliot <[email protected]>
* SmtpClient.cs: Honor ServicePointManager.
	ServerCertificateValidationCallback when provided


svn path=/trunk/mcs/; revision=140347
2009-08-20 16:01:57 +00:00
Atsushi Eno 0acf7fe9ab 2009-08-20 Atsushi Enomoto <[email protected]>
* NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs,
	  NamedPipeChannelFactory.cs, NamedPipeChannelListener.cs :
	  ongoing works, not working at all yet.

	* System.ServiceModel.dll.sources: add more named pipe files.


svn path=/trunk/mcs/; revision=140341
2009-08-20 14:09:09 +00:00
Atsushi Eno 35c7b8b925 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpReplyChannel.cs :
	  cosmetic cleanup and corrections.


svn path=/trunk/mcs/; revision=140340
2009-08-20 14:07:11 +00:00
Atsushi Eno dde8b27ca0 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpChannelFactory.cs : use expected Via uri.
	  Remove extra NIE stuff that are implemented in base.


svn path=/trunk/mcs/; revision=140339
2009-08-20 14:05:29 +00:00
Ankit Jain b7b543d24d Fix bug #532264.
In class/Microsoft.Build.Engine:

	* Microsoft.Build.Engine.dll.sources: Add tools/xbuild/SolutionParser.cs

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
	Fix bug #532264
	* Project.cs (Load): Add support for loading .sln files.

In tools/xbuild:
	Fix bug #532264.
	* Main.cs: Dont generate .sln.proj, project.Load can handle
	.sln directly now. Show stack trace for exceptions if logger
	verbosity is > normal
	* SolutionParser.cs (ParseSolution): Add a param for a raise
	warning delegate. Use Dictionary.TryGetValue, key might not
	be present.

svn path=/trunk/mcs/; revision=140334
2009-08-20 13:03:22 +00:00
Atsushi Eno ea9ecf0143 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : remove extra code.


svn path=/trunk/mcs/; revision=140332
2009-08-20 12:41:20 +00:00
Atsushi Eno f3b27c84c8 2009-08-20 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing implementation towards get callback
	  replies on peer connector clients (not working as duplex client
	  callback is not working yet).


svn path=/trunk/mcs/; revision=140329
2009-08-20 11:32:57 +00:00
Atsushi Eno ef7b0747f1 2009-08-20 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : implement async OnBegin/EndOpen like close.
	  Add FIXME and OnOpen() override on duplex channel.


svn path=/trunk/mcs/; revision=140328
2009-08-20 11:30:51 +00:00
Atsushi Eno c78338f2fb 2009-08-20 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : support UnknownMessageReceived (used by
	  ChannelDispatcher).

	* ChannelDispatcher.cs : handle unknown message in host event.


svn path=/trunk/mcs/; revision=140324
2009-08-20 10:48:11 +00:00
Atsushi Eno 653f2127b4 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : in callback client channels,
	  OperationContext.IncomingMessageHeaders is null.


svn path=/trunk/mcs/; revision=140320
2009-08-20 09:58:31 +00:00
Atsushi Eno 0cc0ab6f33 2009-08-20 Atsushi Enomoto <[email protected]>
* OperationContext.cs, OperationContextScope.cs :
	  implement IsUserContext.

	* OperationContextTest.cs : new.

	* System.ServiceModel_test.dll.sources: add OperationContextTest.cs.


svn path=/trunk/mcs/; revision=140319
2009-08-20 09:48:40 +00:00
Atsushi Eno 70fb8c6a61 2009-08-20 Atsushi Enomoto <[email protected]>
* DuplexChannelFactory.cs, ChannelFactory_1.cs: with static factory
	  methods, they should close the factory when the channel is closed,
	  but nonstatic CreateChannel() could be called more than once, so
	  do not always close it.
	* ClientRuntimeChannel.cs : take OperationContext.Current into
	  consideration (it could be created by users).


svn path=/trunk/mcs/; revision=140316
2009-08-20 08:22:37 +00:00
Atsushi Eno a190897311 2009-08-20 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : duplicate check was sloppy.

	* MessageHeadersTest.cs : added a couple od duplicate tests. Fixed
	  non-working test output.


svn path=/trunk/mcs/; revision=140315
2009-08-20 08:05:00 +00:00
Gonzalo Paniagua Javier a6e32c9619 2009-08-20 Gonzalo Paniagua Javier <[email protected]>
* statement.cs: avoid nullref when the return value of GetEnumerator()
	does not contain any MoveNext() method.


svn path=/trunk/mcs/; revision=140314
2009-08-20 05:50:42 +00:00
Ankit Jain df378a28f3 * BuildTask.cs (Execute): Use task_logger only after the task
has been initialized. Catch and report task loading errors.
* Target.cs (DoBuild): Dont rethrow the exception, and emit
the stacktrace as a low importance message.

svn path=/trunk/mcs/; revision=140302
2009-08-19 22:44:52 +00:00
Marek Habersack fa1c79515f 2009-08-18 Marek Habersack <[email protected]>
* ControlBuilder.cs: Location property makes a copy of assigned
	ILocation now.

2009-08-20  Marek Habersack  <[email protected]>

	* ControlAdapter.cs: check if Control isn't null before using it.
	CreateChildControls () must forward call to the control. Fixes bug
	#517172

2009-08-20  Marek Habersack  <[email protected]>

	* ControlAdapterTest.cs: added test for bug #517172

svn path=/trunk/mcs/; revision=140299
2009-08-19 22:33:52 +00:00
Rodrigo Kumpera 7a45bcbe53 2009-08-19 Rodrigo Kumpera <[email protected]>
* constraints-load.il: New test for errors related to loading
	type and method constraints.

svn path=/trunk/mono/; revision=140298
2009-08-19 22:29:57 +00:00
Rodrigo Kumpera 7e774b021d 2009-08-19 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Don't leak loader errors.
	Release memory on failure.

svn path=/trunk/mono/; revision=140297
2009-08-19 22:29:47 +00:00
Rodrigo Kumpera 1bb7e2b63d 2009-08-19 Rodrigo Kumpera <[email protected]>
* class-internals.h: Add mono_metadata_load_generic_param_constraints_full
	to the internal API.

	* metadata.c (get_constraints): Use a single-linked table as we don't
	traverse it backward. Fail and return FALSE if only of the contraint types
	is not found.

	* metadata.c (mono_metadata_load_generic_param_constraints_full): Identical
	to mono_metadata_load_generic_param_constraints except for having a return value.
	This has to be done since the later is part of the public API.

	* class.c (mono_class_create_from_typedef): Properly check the loading of constrains
	and fail the type.

	* loader.c (mono_get_method_from_token): Properly check the loading of constraints
	and fail the method.

svn path=/trunk/mono/; revision=140296
2009-08-19 22:29:36 +00:00
Zoltan Varga 6e7321fefe 2009-08-19 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_context_get_int_reg): Handle SP as well.

svn path=/trunk/mono/; revision=140295
2009-08-19 21:54:23 +00:00
Zoltan Varga 7d32f3601e 2009-08-19 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_context_get_int_reg): Handle SP as well.

svn path=/trunk/mono/; revision=140294
2009-08-19 21:54:14 +00:00
Ankit Jain 6ada756070 * xbuild/Microsoft.Common.targets (ResolveReferences*): Add
a *DependsOn property and Before/After hooks. Change output
of ResolvedFiles to @(ReferencePath).
* xbuild/Microsoft.CSharp.targets (Csc): Use @(ReferencePath)
for references.

svn path=/trunk/mcs/; revision=140291
2009-08-19 21:21:54 +00:00
Raja R Harinath 66fee73c0a Final piece of explicit numeric group support
* parser.cs (gap): New.
(GetMapping): Return it.
(ResolveReferences): Collect explicit numeric groups which may not
match their indices.
(HandleExplicitNumericGroups): New.  Process the above list to
assign appropriate indices, and compute the correct value of 'gap'.

svn path=/trunk/mcs/; revision=140290
2009-08-19 20:43:01 +00:00
Raja R Harinath 6dac1251cd * syntax.cs (CapturingGroup.Index): Rename from Number to clarify semantics.
(CapturingGroup.CompareTo): New.
* parser.cs, syntax.cs: Update to changes.

svn path=/trunk/mcs/; revision=140289
2009-08-19 20:42:36 +00:00
Raja R Harinath f6656df299 Implement some more group number/index distinction
* Regex.cs (gap, Gap): New.
(Init, InitNewRegex): Update it.
(GroupNumberFromName): If the 'name' is beyond the gap, it is an
explicit numeric group -- use the name as the group number.
GetGroupIndex): Use a binary search to map a group number to its
index when we know that they don't match.
(GroupNumbers): Use group number, not group index, for explicit
numeric groups.
* Match.cs (.ctor): Use the newly introduce 'Regex.Gap'.

svn path=/trunk/mcs/; revision=140288
2009-08-19 20:42:13 +00:00
Raja R Harinath 61c45d91d6 Minor code re-organization
* Regex.cs (group_numbers): New.
(GetGroupNumbers): Move array initialization ...
(GroupNumbers): ... to new on-demand initializer.

svn path=/trunk/mcs/; revision=140287
2009-08-19 20:41:51 +00:00
Raja R Harinath 27c8bd541f Use IDictionaryEnumerator in a loop where both key and value are used
* Regex.cs (group_names): Rename from _groupNumbersToNameMap.
(GetGroupNamesArray): Use an IDictionaryEnumerator to walk the
mapping, since both the key and value are used in the loop.

svn path=/trunk/mcs/; revision=140286
2009-08-19 20:41:26 +00:00
Raja R Harinath a21d173159 Introduce 'gap' concept into all the variants of regex
* arch.cs (IMachineFactory::Gap): New property.
* compiler.cs (InterpreterFactory): Update to changes.
* RxCompiler.cs (RxInterpreterFactory): Likewise.
* JvmReMachineFactory.cs: Likewise.
* parser.cs (GetMapping): Return the 'gap' index.  Move creation
of mapping dictionary ...
* Regex.cs (CreateMachineFactory): ... here.  Update to changes.

svn path=/trunk/mcs/; revision=140285
2009-08-19 20:41:03 +00:00
Raja R Harinath fb54e0e6c7 Distinguish between the internal index of a group and group number.
* Regex.cs (GetGroupIndex): New.
(GroupNameFromNumber): Use it.
* GroupCollection.cs (.ctor): Introduce 'gap' argument.  It is the
index of the first group whose group number differs from its index.
(Item.get): Likewise.

svn path=/trunk/mcs/; revision=140284
2009-08-19 20:40:39 +00:00
Marek Habersack a8cfd91279 2009-08-19 Marek Habersack <[email protected]>
* Route.cs: GetRouteData adds contents of its DataTokens
	dictionary to the returned RouteData.DataTokens dictionary. Fixes
	bug #523330. Patch from [email protected], thanks!

svn path=/trunk/mcs/; revision=140273
2009-08-19 18:37:10 +00:00
Rodrigo Kumpera 99131f496c 2009-08-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_method_header): Add work-around to deal
	with MS broken behavior of emmitting EH section sizes without the
	header size added.

svn path=/trunk/mono/; revision=140267
2009-08-19 17:32:51 +00:00
Rodrigo Kumpera 7d831bb868 2009-08-19 Rodrigo Kumpera <[email protected]>
* metadata.c (mono_type_create_from_typespec): Don't allocate image
	memory until we're sure that we'll need it. This avoids leaking for
	broken types or duplicated instantiation.

svn path=/trunk/mono/; revision=140266
2009-08-19 17:32:41 +00:00
Carlos Alberto Cortez 6b3f398260 2009-08-19 Carlos Alberto Cortez <[email protected]>
* System.Windows.Forms_test.dll.sources: Add a new test file.


svn path=/trunk/mcs/; revision=140263
2009-08-19 16:58:21 +00:00
Carlos Alberto Cortez 65d3a029d3 2009-08-19 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDownItemTest.cs: New test file.


svn path=/trunk/mcs/; revision=140262
2009-08-19 16:56:18 +00:00
Marek Safar b8a503e12d 2009-08-19 Marek Safar <[email protected]>
* *.cs: Removed IResolveContext::GenericDeclContainer.


svn path=/trunk/mcs/; revision=140259
2009-08-19 16:47:46 +00:00
Carlos Alberto Cortez fec2caa7ed 2009-08-19 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDown.cs: When assigning the owner item, use its Font as
	well.


svn path=/trunk/mcs/; revision=140258
2009-08-19 16:37:59 +00:00
Marek Safar 7e5692bc7f New test.
svn path=/trunk/mcs/; revision=140252
2009-08-19 15:54:08 +00:00
Marek Safar 256e18902b 2009-08-19 Marek Safar <[email protected]>
* *.cs: Removed IResolveContext::GenericDeclContainer.


svn path=/trunk/mcs/; revision=140251
2009-08-19 15:53:32 +00:00
Marek Safar 570918f5e8 2009-08-19 Marek Safar <[email protected]>
* class.cs, delegate.cs: Changed Delegate to be TypeContainer based.


svn path=/trunk/mcs/; revision=140246
2009-08-19 14:15:32 +00:00
Rodrigo Kumpera 13f62b2222 2009-08-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_method_header): Fix stupid formating
	mistake.

svn path=/trunk/mono/; revision=140245
2009-08-19 13:56:14 +00:00
Atsushi Eno 6f74c4f671 2009-08-19 Atsushi Enomoto <[email protected]>
* NetNamedPipeBinding.cs, NetNamedPipeSecurity.cs
	  NamedPipeTransportSecurity.cs : new files.
	* Dummy.cs : remove above ones.

	* System.ServiceModel.dll.sources: add named pipe files.


svn path=/trunk/mcs/; revision=140244
2009-08-19 13:54:11 +00:00
Atsushi Eno dff60d67a7 2009-08-18 Atsushi Enomoto <[email protected]>
* net_2_1_raw_System.Core.dll.sources : now it should be created.


svn path=/trunk/mcs/; revision=140243
2009-08-19 13:34:09 +00:00
Rodrigo Kumpera 8986292b15 2009-08-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_method_header): Fix number of clauses
	and expected size calculation.

svn path=/trunk/mono/; revision=140242
2009-08-19 13:21:17 +00:00
Marek Safar 0bd4004c83 New tests.
svn path=/trunk/mcs/; revision=140231
2009-08-19 10:58:38 +00:00
Marek Safar 74f5e93b13 2009-08-19 Marek Safar <[email protected]>
* generic.cs, iterators.cs, expression.cs, statement.cs, ecore.cs,
	cs-parser.jay, attribute.cs, codegen.cs: Better error reports.


svn path=/trunk/mcs/; revision=140230
2009-08-19 10:58:20 +00:00
Jérémie Laval e828ffcda6 2009-08-19 Jérémie Laval <[email protected]>
In class/System/System.Collections.Concurrent/:
   * BlockingCollection.cs: Rewrite to use a transaction id
   based approach. Ported to 4.0 API. Fix GetConsumingEnumerable.

In class/System/Test/System.Collections.Concurrent/:
   * BlockingCollectionTests.cs: Track API changes.

In class/System/System.Threading/:
   * Barrier.cs: Fix Barrier to be really thread-safe.
   Remove deadlocking.

In class/corlib/System.Collections.Concurrent/:
   * Partitioner.cs: Fix infinite recursion when calling Create
   with a IList.
   * Partitionners/ListPartitioner.cs: Fix bad splitting for the
   last partition.

In class/corlib/System.Threading.Tasks/:
   * Task.cs: Refactor Wait methods.

In class/corlib/System.Threading/:
   * AtomicBoolean.cs: Turn it into a class
   * CountdownEvent.cs: Work on cached variable. Make sure
   count doesn't go under 0.
   * ParallelLoopState.cs: Initialize correctly AtomicBoolean.

svn path=/trunk/mcs/; revision=140229
2009-08-19 10:51:42 +00:00
Atsushi Eno 6a93ece2a5 Adding System.IO.Pipes implementation.
svn path=/trunk/mcs/; revision=140228
2009-08-19 10:19:40 +00:00
Marek Habersack 5c24f18f97 1.1 test fixes
svn path=/trunk/mcs/; revision=140213
2009-08-18 23:56:22 +00:00
Rodrigo Kumpera 0c39cceecb 2009-08-17 Rodrigo Kumpera <[email protected]>
* valid_generic_type_definition_on_boxing_position.cs: Valid encoding of GTD on
	box position.

svn path=/trunk/mono/; revision=140212
2009-08-18 23:14:43 +00:00
Rodrigo Kumpera b07107d2f6 2009-08-18 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_get_field_idx): Add fixme for broken
	behavior for types with multiple fields with the same name.
	I would rather fix it, but have no idea on how to generate
	such artifact for testing.

svn path=/trunk/mono/; revision=140211
2009-08-18 23:14:32 +00:00
Rodrigo Kumpera bd1901d090 2009-08-18 Rodrigo Kumpera <[email protected]>
* verify.c (verifier_load_field): We should allow references to
	fields to be made using the generic type definition. It's up to
	the loader system to fail invalid ops.

	* verify.c (get_boxable_mono_type): Only uninstantiated GTDs
	are invalid.

svn path=/trunk/mono/; revision=140210
2009-08-18 23:14:22 +00:00
Rodrigo Kumpera 67b0d35d1e 2009-08-18 Rodrigo Kumpera <[email protected]>
* class.c: Fix usage of mono_metadata_interfaces_from_typedef_full.

	* metadata-internals.h: Fix declaration of
	mono_metadata_interfaces_from_typedef_full.

	* metadata.c (mono_metadata_interfaces_from_typedef_full): Add extra
	heap_alloc_result parameter that controls if the result should be
	g_malloc'd.

	* metadata.c (mono_metadata_interfaces_from_typedef): Let the resulting
	array be g_malloc'd and properly document this public API function.

svn path=/trunk/mono/; revision=140209
2009-08-18 23:14:11 +00:00
Rodrigo Kumpera e21cf3ce2a 2009-08-18 Rodrigo Kumpera <[email protected]>
* cil-coff.h: Fix METHOD_HEADER_FORMAT_MASK to be 2 bits and
	remove METHOD_HEADER_TINY_FORMAT1.

	* reflection.c: Remove reference to METHOD_HEADER_TINY_FORMAT1.

	* metadata.c (mono_metadata_parse_mh_full): Kill tiny format1.

	Both spec and MS uses only 2 bits to enumerate the kind of header.
	So given that 0x6 and 0x2 are equal under a 2 bits mask, tiny format1
	is superfluous, only used for tiny headers with odd code lengths.

	This change also make sure that mono doesn't wronly interpret bit 2
	of fat header flags, which is currently reserved.

svn path=/trunk/mono/; revision=140208
2009-08-18 23:14:00 +00:00
Rodrigo Kumpera 43f5f07e21 2009-08-18 Rodrigo Kumpera <[email protected]>
* metadata.c (do_mono_metadata_parse_type): Do error
	checking for element types. Don't abort if presented
	with a broken type kind.

svn path=/trunk/mono/; revision=140207
2009-08-18 23:13:48 +00:00
Rodrigo Kumpera ab5e921fba 2009-08-18 Rodrigo Kumpera <[email protected]>
* metadata.c (mono_metadata_parse_method_signature_full):
	Gracefully fail bad vararg signatures.

svn path=/trunk/mono/; revision=140206
2009-08-18 23:13:38 +00:00
Christian Hergert 01eb007dfa 2009-08-18 Christian Hergert <[email protected]>
* wthreads.c: Roll back change for thread-id as it "embraces
	and extends" the api by passing word-size for thread id on
	s390 and amd64.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140201
2009-08-18 21:45:23 +00:00
Zoltan Varga 110af9e7c3 Fix the build.
svn path=/trunk/mcs/; revision=140199
2009-08-18 21:04:23 +00:00
Zoltan Varga 245622e12e 2009-08-18 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_instances): Fix the net 1.1 build.

svn path=/trunk/mono/; revision=140197
2009-08-18 20:38:02 +00:00
Ankit Jain 22fa5bce0f * xbuild/Microsoft.Common.targets (ResolveAssemblyReference):
Make SearchPaths get value from a property (AssemblySearchPaths)
to allow it to be overridden.

svn path=/trunk/mcs/; revision=140191
2009-08-18 20:18:31 +00:00
Zoltan Varga c1f1c8dd77 2009-08-18 Zoltan Varga <[email protected]>
* MonoGenericClass.cs: Use StringComparison.Ordinal when calling
	String.EndsWith ().

svn path=/trunk/mcs/; revision=140185
2009-08-18 18:46:57 +00:00
Zoltan Varga fd182ac734 2009-08-18 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_instances): Add string[] wrapper methods.
	Add GetGenericValueImpl<string>.

svn path=/trunk/mono/; revision=140184
2009-08-18 18:43:39 +00:00
Marek Safar 4bec408f2a New test.
svn path=/trunk/mcs/; revision=140177
2009-08-18 17:24:38 +00:00
Marek Safar d4bffdbdde 2009-08-18 Marek Safar <[email protected]>
* *.cs: Removed boolean fields from EmitContext.


svn path=/trunk/mcs/; revision=140176
2009-08-18 17:24:20 +00:00
Marek Safar 90b26c582a New tests.
svn path=/trunk/mcs/; revision=140172
2009-08-18 16:23:47 +00:00
Marek Safar aa77e2e45a 2009-08-18 Marek Safar <[email protected]>
* *.cs: Add IResolveContext::IsStatic.


svn path=/trunk/mcs/; revision=140171
2009-08-18 16:23:08 +00:00
Michael Hutchinson b6ddbda74e 2009-08-18 Michael Hutchinson <[email protected]>
* Mono.Cecil/BaseAssemblyResolver.cs: Search GACs specified in the 
	  MONO_GAC_PREFIX environment variable.


svn path=/trunk/mcs/; revision=140166
2009-08-18 15:56:06 +00:00
Marek Habersack b68b65ad17 2009-08-18 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/DuplicateControlsInClientComment.aspx

2009-08-18  Marek Habersack  <[email protected]>

	* ControlBuilder.cs: Location property makes a copy of assigned
	ILocation now.

2009-08-18  Marek Habersack  <[email protected]>

	* AspParser.cs: added a constructor which creates an internal
	parser, nested within the outer one, and adjusts its ILocation
	members to report correct locations in the outer parser for better
	error reporting. Inner parser also returns the outer's FileText,
	if available.

	* AspGenerator.cs: restored part of r138474 reverted in r138657,
	r138658 and r138659 to fix bug #525104
	BuilderLocation creates a copy of Location for its own use (since
	the ILocation passed is actually AspParser, the line numbers
	change between creating a BuilderLocation and using its Location
	member).
	The end of tag, expression and client comment regular expressions
	now use lazy quantifiers. This fixes bugs #525104 and #517656
	Client side comment blocks aren't ignored anymore, they are parsed
	just as the other parts of the document. Fixes bug #524358

2009-08-18  Marek Habersack  <[email protected]>

	* JavaScriptSerializer.cs: read converters from the config only if
	explicitly requested.

2009-08-18  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #525104 and
	improved test for bug #517656

svn path=/trunk/mcs/; revision=140161
2009-08-18 13:31:49 +00:00
Ankit Jain 68037b2d56 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* BatchingImplBase.cs: Make the item name lookups and metadata be case
	insensitive.
	* TaskDatabase.cs: Likewise.
	* TaskEngine.cs: Make property name looks, case insensitive.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* ProjectTest.cs (TestCaseSensitivityOfProjectElements): New.

svn path=/trunk/mcs/; revision=140153
2009-08-18 11:57:52 +00:00
Ankit Jain 8322e9b09d * SolutionParser.cs (ParseSolution): Project reference in a project
file, but not found in .sln file is ignored. Also, add dependencies
specified in the .sln file.

svn path=/trunk/mcs/; revision=140152
2009-08-18 11:57:18 +00:00
Christian Hergert 805cb46ba2 2009-08-18 Christian Hergert <[email protected]>
* security.c:
	* processes.c:
	* wthreads.c: Be explicit when we are changing word sizes.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140151
2009-08-18 11:43:35 +00:00
Christian Hergert 9e0383346f 2009-08-18 Christian Hergert <[email protected]>
* strtod.c: Fix warnings for uninitialized variables.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140150
2009-08-18 11:39:59 +00:00
Christian Hergert 1b8f3c16ec 2009-08-18 Christian Hergert <[email protected]>
* method-to-ir.c: Fix warnings for uninitialized variables.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140149
2009-08-18 11:38:46 +00:00
Christian Hergert 6fa9e70206 2009-08-18 Christian Hergert <[email protected]>
* profiler.c:
	* class.c: Fix warnings for uninitialized variables.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140148
2009-08-18 11:37:47 +00:00
Christian Hergert 847934db6f 2009-08-18 Christian Hergert <[email protected]>
* mono-profiler-aot.c:
	* mono-cov.c: Add missing method declarations.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140147
2009-08-18 11:34:35 +00:00
Christian Hergert 179709ffe8 2009-08-18 Christian Hergert <[email protected]>
* processes.c: Fix method declaration warnings.
	* sockets.c: getsockopt() wants socklen_t for size.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140146
2009-08-18 11:33:26 +00:00
Christian Hergert 5383ab9c56 2009-08-18 Christian Hergert <[email protected]>
* icall.c: Fix _NSGetEnviron method declaration warning.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140145
2009-08-18 11:30:29 +00:00
Christian Hergert 6fc2a8c2c0 2009-08-18 Christian Hergert <[email protected]>
* icall.c:
	* reflection.c: Make bitwise checks explicit.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140144
2009-08-18 11:26:21 +00:00
Christian Hergert 05b2ef8efb 2009-08-18 Christian Hergert <[email protected]>
* mini-exceptions.c:
	* aot-compiler.c: Fix printf warnings.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140143
2009-08-18 11:22:31 +00:00
Christian Hergert a9d90435d9 2009-08-18 Christian Hergert <[email protected]>
* monograph.c: Fix printf warnings.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140142
2009-08-18 11:22:00 +00:00
Christian Hergert c99abd082e 2009-08-18 Christian Hergert <[email protected]>
* mono-proclib.c:
	* mono-counters.c: Fix printf warnings.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140140
2009-08-18 11:21:28 +00:00
Christian Hergert a9fef6398f 2009-08-18 Christian Hergert <[email protected]>
* debug-helpers.c:
	* marshal.c: Fix printf warnings.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140139
2009-08-18 11:20:22 +00:00
Christian Hergert 8f3f7376bc 2009-08-18 Christian Hergert <[email protected]>
* dis-cil.c:
	* main.c: Fix printf warnings.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140138
2009-08-18 11:19:39 +00:00
Marek Safar 7ae1152cc7 2009-08-18 Marek Safar <[email protected]>
* *.cs: Moved TopBlock's methods from EmitContext to TopBlock.


svn path=/trunk/mcs/; revision=140135
2009-08-18 10:54:32 +00:00
Zoltan Varga 01330948a3 2009-08-18 Zoltan Varga <[email protected]>
* reflection.c (encode_cattr_value): Fix a warning.

svn path=/trunk/mono/; revision=140133
2009-08-18 10:22:18 +00:00
Zoltan Varga bcfdc33cc1 2009-08-18 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_instances): Add instances of
	GenericEqualityComparer<T> for primitive types. Only emit the array
	wrappers into the mscorlib image.

svn path=/trunk/mono/; revision=140132
2009-08-18 10:18:04 +00:00
Atsushi Eno b2e1fea729 2009-08-18 Atsushi Enomoto <[email protected]>
* Message.cs, MessageImpl.cs, BodyWriter.cs :
	  Implement BodyWriter.OnCreateBufferedCopy() and use it.


svn path=/trunk/mcs/; revision=140124
2009-08-18 03:47:21 +00:00
Atsushi Eno f661396df6 2009-08-18 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs : initialize field.


svn path=/trunk/mcs/; revision=140123
2009-08-18 03:41:12 +00:00
Geoff Norton b1341488bf 2009-08-17 Geoff Norton <[email protected]>
* NtlmClient.cs: Mono.Http does not exist on monotouch

svn path=/trunk/mcs/; revision=140122
2009-08-18 03:27:25 +00:00
Carlos Alberto Cortez fcc25ad9b0 * ToolStripItem.cs: When the owner changes its Font, call the
OnFontChanged event, so we let our users know that we likely have a
	new font - since Font is an ambient property.
	* ToolStripDropDownItem.cs: When our Font changes, propagate that
	information to our DropDown control, if any.
	Fixes #531515.

2009-08-17  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=140121
2009-08-18 02:43:58 +00:00
Zoltan Varga ec02c4b91f 2009-08-18 Zoltan Varga <[email protected]>
* scripts/Makefile.am: Applied patch from Hib Eris ([email protected]).
	Add $(SCRIPT_SUFFIX) to the name of the 'mod' tool.

svn path=/trunk/mono/; revision=140116
2009-08-18 00:05:51 +00:00
Veerapuram Varadhan b3fd359ec4 2009-07-23 Adam Wendt <[email protected]>
* Comparison.cs (Compare): Parse string if other object is DateTime
       regardless of which side the DateTime is on.

svn path=/trunk/mcs/; revision=140113
2009-08-17 22:11:38 +00:00
Rodrigo Kumpera 7310e20c13 2009-08-17 Rodrigo Kumpera <[email protected]>
* metadata.c (mono_metadata_parse_array_full): Fix memory leak
	of array bounds.

svn path=/trunk/mono/; revision=140112
2009-08-17 21:37:00 +00:00
Rodrigo Kumpera 2b4148e735 2009-08-17 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_signature): Don't assert on broken
	signature. Print a more usefull error message.

svn path=/trunk/mono/; revision=140111
2009-08-17 21:36:49 +00:00
Rodrigo Kumpera 9f66f3cdca 2009-08-17 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_marshal_info): Assert if
	signature is invalid. Bounds check stores to the
	mspecs array;

svn path=/trunk/mono/; revision=140110
2009-08-17 21:36:39 +00:00
Rodrigo Kumpera a9aef8eb1f 2009-08-17 Rodrigo Kumpera <[email protected]>
* loader.c (field_from_memberref): Fix warning.

svn path=/trunk/mono/; revision=140109
2009-08-17 21:36:26 +00:00
Rodrigo Kumpera 3c1dbef09c 2009-08-17 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_param_names): Check if signature
	is null. Don't store beyond the size of the name array.

svn path=/trunk/mono/; revision=140108
2009-08-17 21:36:16 +00:00
Rodrigo Kumpera fbe0b1ef63 2009-08-17 Rodrigo Kumpera <[email protected]>
* loader.c (mono_get_method_constrained): Check if signature
	is null.

svn path=/trunk/mono/; revision=140107
2009-08-17 21:36:06 +00:00
Rodrigo Kumpera 11a1be90ff 2009-08-17 Rodrigo Kumpera <[email protected]>
* loader.c (mono_loader_set_error_bad_image): Improve
	error messages.

svn path=/trunk/mono/; revision=140106
2009-08-17 21:35:56 +00:00
Ankit Jain 404109fbfa * TaskLoggingHelperExtensios.cs (.ctor): Mark internal.
svn path=/trunk/mcs/; revision=140105
2009-08-17 21:19:50 +00:00
Ankit Jain 6756c667ae * PcFileCache.cs (PackageInfo): Mark internal.
svn path=/trunk/mcs/; revision=140104
2009-08-17 21:19:20 +00:00
Marek Habersack 83dfe82864 2009-08-17 Marek Habersack <[email protected]>
* ScriptingJsonSerializationSection.cs: MaxJsonLength default
	value is 2097152 for .NET 3.5+

2009-08-17  Marek Habersack  <[email protected]>

	* JsonSerializer.cs: serialize fields before properties.

	* JavaScriptSerializer.cs: MaxJsonLength default value for .NET
	3.5 is 2097152

2009-08-17  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: fixed broken tests

svn path=/trunk/mcs/; revision=140098
2009-08-17 20:43:45 +00:00
Raja R Harinath 4735fd50bc * parser.cs (GetMapping): Extend duplicate check for numeric groups too.
svn path=/trunk/mcs/; revision=140097
2009-08-17 19:26:40 +00:00
Raja R Harinath 51c4ad074a * parser.cs (ResolveReferences): Handle some cases of explicitly-named numeric groups.
svn path=/trunk/mcs/; revision=140096
2009-08-17 19:26:18 +00:00
Raja R Harinath 1c27a86429 * parser.cs (ResolveReferences): Rearrange slightly to prepare for future changes.
svn path=/trunk/mcs/; revision=140095
2009-08-17 19:25:50 +00:00
Ankit Jain 939c5bcae8 * AssemblyResolver.cs (FindInTargetFramework): Perform case insensitive
assembly name comparison. Use the new AssemblyNamesCompatible api.
(AssemblyNamesCompatible): Add new overload with a 'ignoreCase' param.

svn path=/trunk/mcs/; revision=140092
2009-08-17 18:58:19 +00:00
Ankit Jain 0028c1b8a9 * AssemblyResolver.cs (TargetFrameworkAssemblies..ctor): Make assembly
name lookups for target framework assemblies, case insensitive. Helps
with cases like "System.configuration", which vs.net is known to emit.

svn path=/trunk/mcs/; revision=140090
2009-08-17 18:33:14 +00:00
Carlos Alberto Cortez 47458f0aeb 2009-08-17 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: 
	* ThemeWin32Classic.cs: When the user clicks on a new cell, we should reset any
	previous selection, just like .net does. Also, in the cases where a
	cell is being edited and it keeps the selected status, use the normal
	colors for it, and use the selected colors for the rest of the columns of
	that row.
	Fixes the remaining bits of #323051.


svn path=/trunk/mcs/; revision=140089
2009-08-17 18:18:25 +00:00
Veerapuram Varadhan 1aea1446a7 2009-08-17 Veerapuram Varadhan <[email protected]>
** Fixes #525306
	* SqlConnection.cs (Open): Use Tds80 also in case of non-pooling
	connections.

svn path=/trunk/mcs/; revision=140086
2009-08-17 17:24:22 +00:00
Veerapuram Varadhan 936bf462b2 2009-08-17 Veerapuram Varadhan <[email protected]>
** Fixes #381151 NRE
	* Tds.cs (ProcessColumnInfo): Use Columns instead of creating a new list.
	* TdsDataColumnCollection.cs (Clear, Add): New utility methods
	* Tdsxx.cs: ProcessColumnInfo definition changes.

svn path=/trunk/mcs/; revision=140085
2009-08-17 17:24:04 +00:00
Marek Safar 78b7bfae2e 2009-08-17 Marek Safar <[email protected]>
* *.cs: Removed DeclContainer from EmitContext.


svn path=/trunk/mcs/; revision=140072
2009-08-17 14:45:15 +00:00
Rodrigo Kumpera e847bfd93a 2009-08-17 Rodrigo Kumpera <[email protected]>
* class-internals.h, class.c: Better naming and documentation.

svn path=/trunk/mono/; revision=140061
2009-08-17 13:46:34 +00:00
Rodrigo Kumpera 44d7bd37d3 2009-08-14 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_signature_full): Fail gracefully if signature
	parsing fails.

svn path=/trunk/mono/; revision=140060
2009-08-17 13:46:23 +00:00
Atsushi Eno b36294853a 2009-08-17 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : use wildcard for the actual message
	  transfer operation.

	* ServiceHostBase.cs : wildcard action support was not working
	  for one-way channels.


svn path=/trunk/mcs/; revision=140059
2009-08-17 13:38:25 +00:00
Atsushi Eno 9f9ce350de 2009-08-17 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : set expected AddressFilter.

	* EndpointDispatcher.cs : do not try to create wrong filter.


svn path=/trunk/mcs/; revision=140058
2009-08-17 12:54:31 +00:00
Sebastien Pouliot 02a44bc87b 2009-08-17 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Add some existing System.dll
	files required for SL3 and some new files.


svn path=/trunk/mcs/; revision=140057
2009-08-17 12:49:57 +00:00
Sebastien Pouliot ffe9d6a57c 2009-08-17 Sebastien Pouliot <[email protected]>
* NetworkChange_2_1.cs: New. Minimal SL3 version
	* NetworkInterface_2_1.cs: New. Minimal SL3 version


svn path=/trunk/mcs/; revision=140056
2009-08-17 12:47:36 +00:00
Sebastien Pouliot 96cff3ef51 2009-08-17 Sebastien Pouliot <[email protected]>
* CookieCollection.cs: Seal class for NET_2_1 (SL3)
	* CookieContainer.cs: Seal class for NET_2_1 (SL3)
	* NetworkCredential.cs: Use in NET_2_1 (SL3) but without implementing
	ICredentialsByHost


svn path=/trunk/mcs/; revision=140055
2009-08-17 12:45:34 +00:00
Atsushi Eno f6f884bf79 2009-08-17 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs, DuplexChannelBase.cs, RequestChannelBase.cs:
	  implement GetProperty<T>() and return its channel manager.


svn path=/trunk/mcs/; revision=140054
2009-08-17 12:38:10 +00:00
Atsushi Eno 09f739ee34 2009-08-17 Atsushi Enomoto <[email protected]>
* EndpointAddress.cs : #if !NET_2_1 is removing code too much.


svn path=/trunk/mcs/; revision=140053
2009-08-17 12:33:12 +00:00
Raja R Harinath 58b4f2fb60 * RegexTrial.cs (Execute): Prepare to handle dis-contiguous group numbers.
svn path=/trunk/mcs/; revision=140052
2009-08-17 12:28:23 +00:00
Raja R Harinath 3c675a0e62 * Regex.cs (GetGroupNumbers): List group numbers in ascending order.
(GetGroupNames): List names in order of group number.

svn path=/trunk/mcs/; revision=140051
2009-08-17 12:27:57 +00:00
Zoltan Varga 9978af59ef 2009-08-17 Zoltan Varga <[email protected]>
* boehm-gc.c (mono_gc_add_weak_track_handle): Don't do any work if
	obj is NULL.

svn path=/trunk/mono/; revision=140048
2009-08-17 10:09:21 +00:00
Atsushi Eno bdc678d382 2009-08-17 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing implementation. Fix wrong peer
	  destination address in Connect() request. To repeat sending
	  request, use buffered copy. Set some peer-channel specific
	  header items. (todo: and consume them.)


svn path=/trunk/mcs/; revision=140047
2009-08-17 10:06:36 +00:00
Marek Safar 3be750b30e 2009-08-17 Marek Safar <[email protected]>
* *.cs: Add IResolveContext::CurrentTypeParameters.


svn path=/trunk/mcs/; revision=140046
2009-08-17 10:02:21 +00:00
Atsushi Eno 9f127bdcf5 2009-08-17 Atsushi Enomoto <[email protected]>
* Message.cs : state is set only after WriteBodyContents().

	* MessageTest.cs : added test for State.


svn path=/trunk/mcs/; revision=140045
2009-08-17 09:41:16 +00:00
Atsushi Eno e7fb9bf4ec 2009-08-17 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : eliminate wrong use of
	  ReadElementContentAsString() (it is not always simple string).


svn path=/trunk/mcs/; revision=140043
2009-08-17 09:05:21 +00:00
Atsushi Eno 3068fbdf08 2009-08-17 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : when the value is null, do not try to
	  deserialize EndpointAddress.


svn path=/trunk/mcs/; revision=140042
2009-08-17 08:36:05 +00:00
Atsushi Eno a7a1dedafc 2009-08-17 Atsushi Enomoto <[email protected]>
* MessageHeader.cs : add Value property. (Forgot dependent change.)


svn path=/trunk/mcs/; revision=140041
2009-08-17 08:03:42 +00:00
Atsushi Eno bd5c27a86a 2009-08-17 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : made some properties in duplex context
	  channel dispatching to internal client.


svn path=/trunk/mcs/; revision=140040
2009-08-17 08:02:42 +00:00
Atsushi Eno 7d71be09c4 2009-08-17 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : GetHeader<T>() could mostly skip extra
	   serialization and deserialization of values.


svn path=/trunk/mcs/; revision=140039
2009-08-17 08:01:22 +00:00
Atsushi Eno f10fde344f 2009-08-17 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : fix internal member name to get
	  serialized correctly.


svn path=/trunk/mcs/; revision=140038
2009-08-17 07:58:27 +00:00
Carlos Alberto Cortez 6af5f34688 2009-08-16 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: When getting ProcessKeyPreview fired, call Edit() if we
	are not editing already - so the edition is actually active on our
	column style textbox. Also, it seems the code handling process the
	grid keys is repeated, but instead of removing it, just comment it for
	now.
	Fixes part of #323051.


svn path=/trunk/mcs/; revision=140033
2009-08-17 04:34:20 +00:00
Raja R Harinath a5b5a5ee3c Remove debugging spew
svn path=/trunk/mono/; revision=140010
2009-08-15 10:19:53 +00:00
Marek Habersack 1a9392fea7 2009-08-15 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: make sure JavaScriptSerializer instance used
	here reads custom converters from web.config. Fixes bug #525589

svn path=/trunk/mcs/; revision=140004
2009-08-15 02:23:55 +00:00
Marek Habersack 7dadfa1b28 2009-08-15 Marek Habersack <[email protected]>
* AspGenerator.cs: CodeRenderParser.DoParseExpressions - match
	newline characters inside expressions. Fixes bug #526449

2009-08-15  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/NewlineInCodeExpression.aspx

svn path=/trunk/mcs/; revision=139989
2009-08-15 00:32:46 +00:00
Zoltan Varga 0c8a6ce4d3 2009-08-15 Zoltan Varga <[email protected]>
* aot-runtime.c (load_method): Rename 'aot_module' -> 'amodule'. Allocate
	the methods_loaded array using amodule->info->nmethods.

	* mini.h (MonoAotFileInfo): Add an 'nmethods' field.
	(MONO_AOT_FILE_VERSION): Bump this.

	* aot-compiler.c: Emit more generic instances allowing some parts of linq
	to work.

svn path=/trunk/mono/; revision=139977
2009-08-14 23:58:45 +00:00
Zoltan Varga 57f5e76b3c 2009-08-15 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_unwind_info): Handle the case when the
	MonoJitInfo doesn't belong to its methods aot image.

svn path=/trunk/mono/; revision=139975
2009-08-14 22:52:55 +00:00
Rodrigo Kumpera e676b01165 2009-08-14 Rodrigo Kumpera <[email protected]>
* loader.c (mono_loader_error_prepare_exception): Handle missing field
	errors with no class set.

	* loader.c (field_from_memberref): If the field signature is of the wrong
	type fail with a MissingFieldException instead of a BadImageException as
	this is the behavior observed on MS.

svn path=/trunk/mono/; revision=139974
2009-08-14 22:29:03 +00:00
Rodrigo Kumpera 8c15ff0efa 2009-08-14 Rodrigo Kumpera <[email protected]>
loader.c (field_from_memberref): Don't crash if either the field
	signature or the typespec class are invalid.

svn path=/trunk/mono/; revision=139973
2009-08-14 22:28:53 +00:00
Rodrigo Kumpera 27467904a7 2009-08-14 Rodrigo Kumpera <[email protected]>
* verify.c (verifier_load_field): Don't allow field related
	ops to reference fields on generic type definition.

svn path=/trunk/mono/; revision=139972
2009-08-14 22:28:43 +00:00
Marek Habersack c92f940e98 2009-08-14 Marek Habersack <[email protected]>
* BuildManagerDirectoryBuilder.cs: when VirtualPathProvider
	reports a virtual directory doesn't exist, try to get the
	requested virtual path using VirtualPathProvider.GetFile. Fixes
	#525974

svn path=/trunk/mcs/; revision=139969
2009-08-14 21:38:29 +00:00
Massimiliano Mantione 6802499706 Flush buffers synchronously so the GUI knows when we are done.
svn path=/trunk/mono/; revision=139966
2009-08-14 20:38:23 +00:00
Massimiliano Mantione ad7f48e573 Added user thread reading commands from a local tcp port.
svn path=/trunk/mono/; revision=139964
2009-08-14 20:22:00 +00:00
Zoltan Varga 5ddc320d8c 2009-08-14 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_allocate_vars): Use SP as the default frame reg.

	* mini-arm.c: Fix warnings.

svn path=/trunk/mono/; revision=139962
2009-08-14 19:55:47 +00:00
Atsushi Eno be4a6a6314 2009-08-14 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : add itself as CallbackContract.


svn path=/trunk/mcs/; revision=139960
2009-08-14 19:17:05 +00:00
Atsushi Eno 79a9700b7a 2009-08-14 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : handle Welcome and Refuse at client side.
	  Now simply use connector contract.

	* IPeerConnectorContract.cs : remove receiver contract.


svn path=/trunk/mcs/; revision=139958
2009-08-14 18:26:50 +00:00
Ankit Jain 7f5589b758 Fix bug #530368.
* SolutionParser.cs (AddProjectTargets): If a project name matches one
of the targets that we emit (Build/Clean etc), then rename to
"Solution:<project name>".

svn path=/trunk/mcs/; revision=139936
2009-08-14 17:56:56 +00:00
Ankit Jain 51380df21d * xbuild/Microsoft.Common.targets (AllowUnsafeBlocks): Don't set any
default value.
(OutputPath): Set a default value.
(DeployOutputFiles): Copy only if something available to copy.

svn path=/trunk/mcs/; revision=139935
2009-08-14 17:56:39 +00:00
Miguel de Icaza 3454aeac93 Fix build
svn path=/trunk/mcs/; revision=139934
2009-08-14 17:56:29 +00:00
Ankit Jain 328db53daa Build projects in correct order and allow for parallel builds.
In tools/xbuild:
	* SolutionParser.cs (ProjectInfo.Dependencies): Change to a dictionary
	to keep track of corresponding ProjectInfo objects.
	(ParseSolution): Refactor to populate the ProjectInfo.Dependencies
	dictionary. Use AddBuildLevels to emit build levels to allow
	parallel builds.
	(AddProjectTargets): Dependency's projectInfo is directly available now.
	(AddBuildLevels): New. Emit items named BuildLevelN, where each level
	has projects that can be built in parallel. Lower levels represent
	dependencies for higher levels.
	(AddSolutionTargets): Instead of using CallTarget, directly use MSBuild
	task with the new BuildLevelN stuff. Also tell the user about disabled
	projects or missing project configs.
	(TopologicalSort): New.
	(Insert): New. Based on code from monodevelop.

In tools/xbuild/tests:

	* standalone/Project01: Update .sln.proj file.

svn path=/trunk/mcs/; revision=139933
2009-08-14 17:55:48 +00:00
Zoltan Varga 9231dd4d6e 2009-08-14 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arm_emit_load_imm): Only emit a movt if needed.

svn path=/trunk/mono/; revision=139930
2009-08-14 17:04:32 +00:00
Rodrigo Kumpera 1642965ec0 2009-08-14 Rodrigo Kumpera <[email protected]>
*unverifiable_ldobj_with_generic_type_definition.il: Regression test for
	bug #531237.

svn path=/trunk/mono/; revision=139924
2009-08-14 14:46:46 +00:00
Rodrigo Kumpera 97c5a3224c 2009-08-14 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add new warning level for errors specified
	by ECMA 335 but that MS ignores.

	* metadata-verify.c (verify_method_table): Make compiler controled
	visibility + (rt)specialname error a warning as MS ignores this. Ignoring
	this check is safe because the end result will only be some visibility
	exceptions been thrown.

svn path=/trunk/mono/; revision=139923
2009-08-14 14:46:36 +00:00
Rodrigo Kumpera c5207f17d4 2009-08-14 Rodrigo Kumpera <[email protected]>
* verify.c (get_boxable_mono_type): Don't allow the
	use of the generic type definition on boxed type positions.

	Fixes #531237.

svn path=/trunk/mono/; revision=139922
2009-08-14 14:46:25 +00:00
Mark Probst 93d2dab9ed 2009-08-14 Mark Probst <[email protected]>
* threadpool.c: Make sure no cross-domain references remain in
	ares_htable or the arrays that are thrown away when resizing.

svn path=/trunk/mono/; revision=139921
2009-08-14 14:10:25 +00:00
Mark Probst 0655eb3731 2009-08-14 Mark Probst <[email protected]>
* appdomain.c, metadata-internals.h, image.c: In MonoImage add a
	list of classes for which we have to unregister reflection_info
	with the GC and which are not in the namespace cache.

	* reflection.c (mono_reflection_initialize_generic_parameter): Add
	the class to the list.

svn path=/trunk/mono/; revision=139920
2009-08-14 13:50:26 +00:00
Zoltan Varga c6f1f1aa8b 2009-08-14 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arm_emit_load_imm): Use movt/movw if the cpu
	supports it.

svn path=/trunk/mono/; revision=139919
2009-08-14 13:49:23 +00:00
Zoltan Varga bb40ca58fc 2009-08-14 Zoltan Varga <[email protected]>
* arm/arm-codegen.h: Add armv6 MOVW/MOVT.

svn path=/trunk/mono/; revision=139918
2009-08-14 13:49:01 +00:00
Marek Safar a6ac037e87 2009-08-14 Marek Safar <[email protected]>
* *.cs: Removed TypeContainer and ContainerType from EmitContext.


svn path=/trunk/mcs/; revision=139917
2009-08-14 13:47:37 +00:00
Marek Safar 231c3d84e8 New test.
svn path=/trunk/mcs/; revision=139916
2009-08-14 13:46:47 +00:00
Mark Probst 09500940e1 2009-08-14 Mark Probst <[email protected]>
* domain.c (mono_domain_free): Unregister the GC roots in
	MonoDomain.

svn path=/trunk/mono/; revision=139915
2009-08-14 13:21:05 +00:00
Atsushi Eno 5457a39916 2009-08-14 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : handle Disconnect(). Fix URLs a bit.


svn path=/trunk/mcs/; revision=139914
2009-08-14 12:42:49 +00:00
Atsushi Eno 2037c58953 2009-08-14 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : add Disconnect() to receiver contract.


svn path=/trunk/mcs/; revision=139913
2009-08-14 12:38:59 +00:00
Atsushi Eno 255030c77a 2009-08-14 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs : do not try to compare dead connection's
	  IPEndPoint (it raises an error).


svn path=/trunk/mcs/; revision=139912
2009-08-14 12:37:01 +00:00
Atsushi Eno 0e567db131 2009-08-14 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : EndpointNotFoundException message could
	  be a bit kindful.


svn path=/trunk/mcs/; revision=139911
2009-08-14 12:35:24 +00:00
Atsushi Eno ee14a754ea 2009-08-14 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : allow null header value on each specific setter.


svn path=/trunk/mcs/; revision=139910
2009-08-14 12:34:15 +00:00
Atsushi Eno 9be6aef0a3 2009-08-14 Atsushi Enomoto <[email protected]>
* OperationContextScope.cs : check null arg.


svn path=/trunk/mcs/; revision=139909
2009-08-14 12:30:19 +00:00
Marek Safar 02b66a52b9 2009-08-14 Marek Safar <[email protected]>
* decl.cs, expression.cs, namespace.cs, ecore.cs, class.cs,
	codegen.cs: Add IResolveContext::LookupExtensionMethod.


svn path=/trunk/mcs/; revision=139908
2009-08-14 12:27:31 +00:00
Marek Safar 55a8cb72ec Updated.
svn path=/trunk/mcs/; revision=139907
2009-08-14 11:49:49 +00:00
Marek Safar 445bf2bbf7 2009-08-14 Marek Safar <[email protected]>
* Type.cs: Made IsClass work under compiler context.


svn path=/trunk/mcs/; revision=139905
2009-08-14 10:58:30 +00:00
Atsushi Eno 4db580beaf 2009-08-14 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs, TcpDuplexSessionChannel.cs :
	  get local and remote address of connected counterpart to get
	  callback channel connected.
	* PeerDuplexChannel.cs : remove FIXME wrt above.


svn path=/trunk/mcs/; revision=139903
2009-08-14 10:10:48 +00:00
Atsushi Eno 2068cade51 2009-08-14 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : return timeouts that are set at
	  dispatch runtime later than its .ctor(). Provide ListenUri too.


svn path=/trunk/mcs/; revision=139902
2009-08-14 10:07:48 +00:00
Atsushi Eno 9e8fa6e41d 2009-08-14 Atsushi Enomoto <[email protected]>
* AllEnums.cs : add AddressFilterMode and SupportedAddressingMode.
	* ServiceBehaviorAttribute.cs : added missing properties.


svn path=/trunk/mcs/; revision=139901
2009-08-14 10:06:45 +00:00
Marek Habersack bbd9577d71 2009-08-14 Marek Habersack <[email protected]>
* ControlBuilder.cs: when CreateSubBuilder is called on a builder
	which is supposed to treat its children as properties and the
	default property builder is defined, first check if the tag which
	has just been parsed isn't a template property. If it is, don't
	use the default property builder, instead create a template
	property builder directly. Fixes bug #527753

svn path=/trunk/mcs/; revision=139895
2009-08-14 02:01:12 +00:00
Ankit Jain 816e1d6dc3 Add support for resolving pkg-config provided assemblies.
In class/Microsoft.Build.Tasks:

	* Microsoft.Build.Tasks_test.dll.sources: Added
	PcFileCache.cs from md.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* PcFileCache.cs: New. From monodevelop.
	* AssemblyResolver.cs (ResolvePkgConfigReference): New. Use PcFileCache
	to resolve assembly references.
	(AssemblyNamesCompatible): If SpecificVersion is false, then compare
	only simple names.
	(GetResolvedReference): Rename default_value to default_copy_local_value.
	(Cache): New.
	(PcFileCacheContext): New.
	(SearchPath): Add 'PkgConfig' to the enum.
	* ResolveAssemblyReference.cs: Add support for '{PkgConfig}'. Update
	messages.
	* ResolvedReference.cs (FoundInSearchPathToString): Create from ..
	(FoundInSearchPathAsString): .. this. Change this to a property to
	allow custom "found in .. " messages.

In tools/xbuild:

	* xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Add
	'{PkgConfig}' to SearchPaths.

svn path=/trunk/mcs/; revision=139892
2009-08-13 23:28:55 +00:00
Gonzalo Paniagua Javier ae20ad47f0 2009-08-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs:
	* WebConnectionStream.cs: if there's an error writing the headers from
	a buffered request, propagate the error instead of hiding it and
	causing a different one later (ie, ObjectDisposedException instead of
	the original WebException). This happened when posting without
	Content-Length set to an HTTPS url without validating the server
	certificate.


svn path=/trunk/mcs/; revision=139885
2009-08-13 22:12:18 +00:00
Marek Safar 612b6780cd More tests.
svn path=/trunk/mcs/; revision=139873
2009-08-13 20:53:51 +00:00
Marek Safar 2648277bde 2009-08-13 Marek Safar <[email protected]>
* decl.cs: Look in PartialContainer for parent type parameters.


svn path=/trunk/mcs/; revision=139872
2009-08-13 20:53:33 +00:00
Jonathan Pryor b3e58ca68a * Monodoc/provider.cs: Add a RootTree.AddSource(string) method, so that
additional directories can be checked for .source file loading.

svn path=/trunk/mcs/; revision=139862
2009-08-13 17:40:13 +00:00
Marek Safar 76c1cc09e3 2009-08-13 Marek Safar <[email protected]>
* decl.cs, namespace.cs, ecore.cs, class.cs, attribute.cs,
	codegen.cs: Add IResolveContext::LookupTypeParameter.


svn path=/trunk/mcs/; revision=139857
2009-08-13 16:35:49 +00:00
Marek Safar 46199680c6 New test.
svn path=/trunk/mcs/; revision=139856
2009-08-13 16:29:48 +00:00
Carlos Alberto Cortez 7c87220bf5 2009-08-13 Carlos Alberto Cortez <[email protected]>
* AsyncMethodResult.cs: Store a exception field in case the called
	method actually caused an exception. This way we can throw it later.
	* XplatUIDriver.cs: Check if the async method result has an exception
	- throw it if needed. 
	The idea is that Control.Invoke throws the exception from the thread
	that called it, not the main MWF thread. 
	Patch by Tom Spink <[email protected]>. Fixes #497175.


svn path=/trunk/mcs/; revision=139853
2009-08-13 15:36:14 +00:00
Andrés G. Aragoneses 3d7b265282 * tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Don't whitelist SC
attribs for base methods that are on our assembly.
This finally makes a11y work without security disabled. The summary of
the troubles encountered:
- GetHashCode() -> base method not SC. (r139589+r139649)
- Dispose() -> interface method not SC. (r139796)
- get_Handle() -> interface method SC while impl not SC. (this commit)

svn path=/trunk/mcs/; revision=139852
2009-08-13 15:18:12 +00:00
Jonathan Pryor 48cfc458c7 * Monodoc/provider.cs: Make RootTree.LoadTree() just call
RootTree.LoadTree(null), and move the .config-file parsing into
	  .LoadTree(string) (for when basedir==null).  This will simplify the
	  logic of monodoc, as we want to add the ability to monodoc to use
	  any arbitrary directory, and this will remove the need to do 
	  `if (d==null) RootTree.LoadTree(); else RootTree.LoadTree(d)`.
	  This also conforms to FxDG guidelines.

svn path=/trunk/mcs/; revision=139850
2009-08-13 14:53:14 +00:00
Marek Safar 8aeff11832 2009-08-13 Marek Safar <[email protected]>
* lambda.cs, expression.cs, statement.cs, namespace.cs, ecore.cs:
	Moved resolved logic from Emit to Resolve.


svn path=/trunk/mcs/; revision=139846
2009-08-13 12:29:41 +00:00
Atsushi Eno 5b2374b248 2009-08-13 Atsushi Enomoto <[email protected]>
* class/System.Json/Makefile: add System.Json to net_4_0 profile.

	* class/Makefile : update profile check.


svn path=/trunk/mcs/; revision=139835
2009-08-13 10:26:45 +00:00
Marek Safar a651e64e75 2009-08-13 Marek Safar <[email protected]>
* parameter.cs, decl.cs, roottypes.cs, class.cs, attribute.cs,
	codegen.cs: Reworked atttributes handling of ResolveContext.


svn path=/trunk/mcs/; revision=139833
2009-08-13 08:30:36 +00:00
Jonathan Pryor a4b5bbdf9c * Test/DocTest-v1.cs: Add a comment which uses <format/>, to test html
escaping behavior.
	* Resources/monodoc-ecma.xsd: Permit <format/> in various elements.
	* Test/en.expected.importslashdoc/Mono.DocTest/DocAttribute.xml,
	  Test/html.expected/Mono.DocTest/DocAttribute.html,
	  Test/msxdoc-expected.importslashdoc.xml: Flush.

svn path=/trunk/mcs/; revision=139831
2009-08-13 03:20:10 +00:00
Rodrigo Kumpera 37560f97d8 2009-08-12 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_reflection_type_get_handle): Fix typo.

svn path=/trunk/mono/; revision=139823
2009-08-13 00:01:28 +00:00
Marek Habersack 290b8a6b66 2009-08-13 Marek Habersack <[email protected]>
* CodeTypeReferenceTest.cs: added test for bug #523341

2009-08-13  Marek Habersack  <[email protected]>

	* CodeTypeReference.cs: generic types specialized on arrays must
	not be treated as array declarations. Fixes bug #523341

svn path=/trunk/mcs/; revision=139819
2009-08-12 23:50:32 +00:00
Marek Habersack 1450807c9f 2009-08-13 Marek Habersack <[email protected]>
* Makefile: build only in the 2.0 profile, or otherwise we'll end
	up with the resulting assembly referencing the 4.0 corlib.

svn path=/trunk/mcs/; revision=139818
2009-08-12 23:50:16 +00:00
Rodrigo Kumpera ae714fdff4 2009-08-12 Rodrigo Kumpera <[email protected]>
* bug-528055.il: Regression test for #528055.

svn path=/trunk/mono/; revision=139816
2009-08-12 23:38:04 +00:00
Rodrigo Kumpera 30540a2ec1 2009-08-12 Rodrigo Kumpera <[email protected]>
* class.c: Add mono_class_get_field_from_name_full which does
	the same as mono_class_get_field_from_name but does check field
	signature as well.

	* class-internals.h: Export mono_class_get_field_from_name_full as
	part of the internal API.

	* loader.c (field_from_memberref): Search fields by name and signature
	as it's valid to have two fields with same name but different types.

	Fixes #528055.

svn path=/trunk/mono/; revision=139815
2009-08-12 23:37:51 +00:00
Rodrigo Kumpera 225f580b02 2009-08-10 Rodrigo Kumpera <[email protected]>
* icall-def.h: Add a bunch of temporary icalls to MonoGenericClass.

	* reflection.c (mono_reflection_type_get_handle): Handle MonoGenericClass.

	* reflection.c (encode_cattr_value): Use mono_reflection_type_get_handle to encode
	System.Type.

svn path=/trunk/mono/; revision=139814
2009-08-12 23:37:38 +00:00
Zoltan Varga f29905064f 2009-08-13 Zoltan Varga <[email protected]>
* GCHandleTest.cs: Add a test for null GC handles with type
	WeakTrackResurrection.

svn path=/trunk/mcs/; revision=139813
2009-08-12 23:30:32 +00:00
Zoltan Varga a8155a034b 2009-08-13 Zoltan Varga <[email protected]>
* gc.c (GCHandle_CheckCurrentDomain): Moved this here from icall.c.

	* boehm-gc.c (mono_gc_add_weak_track_handle): Handle nulls.

svn path=/trunk/mono/; revision=139812
2009-08-12 23:29:18 +00:00
Zoltan Varga afe8d6c0ee 2009-08-13 Zoltan Varga <[email protected]>
* gc.c (GCHandle_CheckCurrentDomain): Moved this here from icall.c.

	* boehm-gc.c (mono_gc_add_weak_track_handle): Handle nulls.

svn path=/trunk/mono/; revision=139811
2009-08-12 23:29:11 +00:00
Andrés G. Aragoneses a36d9407cd * tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Look for base methods in
interfaces as well.

svn path=/trunk/mcs/; revision=139796
2009-08-12 20:53:48 +00:00
Jonathan Pryor c100402c75 * mdoc/Makefile: Add ../monodoc/Resources/mdoc-html-format.xsl as a
resource.
	* monodoc/Resources/mdoc-html-format: Added; XSLT file to match
	  "//format[@type='text/html']//*", to support "pass-through"
	  semantics.  This allows you to use actual HTML within your
	  documentation and have it visible to HTML-supporting output formats.
	  WARNING: Use as a "last resort" -- this is primarily intended for
	  importing existing HTML w/o needing lots of extra logic to convert
	  into mdoc format XML first (with a corresponding loss of fidelity).
	  However, it means that if (when) we get non-HTML output format
	  support, the <format type="text/html" /> blocks WILL be skipped for
	  that non-HTML output format.

	  For example, the forever-on-the-back-burner ROFF output support --
	  to remove the use of lynx, as no one ever has it installed --
	  wouldn't be able to support HTML format, so it would skip these
	  <format type="text/html"/> blocks.

	  Consider <format /> the moral equivalent of Perl POD's 
	  '=begin formatname' block; see perlpod(1).
	* monodoc/Resources/mdoc-html-utils.xsl: <xsl:import/> 
	  mdoc-html-format.xsl.  It *must* be imported (NOT included) so that 
	  it will have a lower priority than other <template/>s, thus allowing 
	  the HTML formatter to <xsl:apply-templates/> which then use the 
	  "normal" rules.  This allows:
		<format type="text/html">
			<p><see cref="T:System.String" /></p>
		</format>
	  to work as expected.
	* monodoc/Makefile: Add mdoc-html-format.xsl as a resource.

svn path=/trunk/mcs/; revision=139795
2009-08-12 20:42:42 +00:00
Carlos Alberto Cortez 79681b979f 2009-08-12 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: In mouse move we need to shift the selection in case
	the pointer is on the row headers.
	Fixes #323052.


svn path=/trunk/mcs/; revision=139791
2009-08-12 19:52:12 +00:00
Zoltan Varga 8f7e538cf8 2009-08-12 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_imt_thunk): Rework the arm code to
	avoid clobbering IP.

svn path=/trunk/mono/; revision=139784
2009-08-12 18:20:24 +00:00
Marek Safar 2eea853bba 2009-08-12 Marek Safar <[email protected]>
* decl.cs, ecore.cs, class.cs, attribute.cs, codegen.cs: Pushed
	LookupNamespaceOrType to ResolveContext.


svn path=/trunk/mcs/; revision=139780
2009-08-12 17:49:41 +00:00
Zoltan Varga a887357b8e 2009-08-12 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_magic_trampoline): Allocate a local to
	hold the trampoline argument, so its initial value is available during
	debugging.

svn path=/trunk/mono/; revision=139777
2009-08-12 17:04:03 +00:00
Mark Probst 3bf863158f 2009-08-12 Mark Probst <[email protected]>
* sgen-gc.c, sgen-scan-object.h: Object scanning code factored out
	to sgen-scan-object.h, which can be included and parameterized via
	macros.

	* Makefile.am: sgen-scan-object.h added.

svn path=/trunk/mono/; revision=139768
2009-08-12 14:52:47 +00:00
Marek Safar 376043f138 2009-08-12 Marek Safar <[email protected]>
* typemanager.cs, decl.cs, expression.cs, namespace.cs, ecore.cs,
	class.cs: Removed unused parameters and methods.


svn path=/trunk/mcs/; revision=139767
2009-08-12 14:26:36 +00:00
Zoltan Varga e31c152927 2009-08-12 Zoltan Varga <[email protected]>
* ResolveEventArgs.cs: Add net 4.0 RequestingAssembly property.

svn path=/trunk/mcs/; revision=139765
2009-08-12 13:58:11 +00:00
Mark Probst 33f3172f29 2009-08-12 Mark Probst <[email protected]>
* gc.c: #define GC_dont_gc if we're compiling with SGen.

svn path=/trunk/mono/; revision=139764
2009-08-12 13:25:52 +00:00
Mark Probst 0571870915 2009-08-12 Mark Probst <[email protected]>
* domain.c (mono_domain_free): Free a domain's mono_g_hash_tables
	before clearing a domain in the GC.

svn path=/trunk/mono/; revision=139762
2009-08-12 12:29:17 +00:00
Mark Probst c89b6ded90 2009-08-12 Mark Probst <[email protected]>
* exception.c (mono_exception_from_name_domain): Actually create
	the exception in the specified domain.

	* appdomain.c (mono_domain_create_appdomain_internal): Create the
	OutOfMemoryException a bit later so that the domain is inialized
	"enough" that it works.

svn path=/trunk/mono/; revision=139761
2009-08-12 12:00:10 +00:00
Mark Probst d4428a1862 2009-08-12 Mark Probst <[email protected]>
* threads.c (thread_cleanup): Clean up the cached_culture_info
	array to prevent cross-domain references.

svn path=/trunk/mono/; revision=139760
2009-08-12 11:15:52 +00:00
Mark Probst a239a0faa7 2009-08-12 Mark Probst <[email protected]>
* mono-hash.c (mono_g_hash_mark): If the keys are managed objects,
	rehash the table after marking.

svn path=/trunk/mono/; revision=139759
2009-08-12 11:03:37 +00:00
Jérémie Laval a4b7fe1bf1 2009-08-11 Jérémie Laval <[email protected]>
* Future.cs: Add static to Factory property

svn path=/trunk/mcs/; revision=139739
2009-08-11 21:44:25 +00:00
Andrés G. Aragoneses fbd6416b58 * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Yet another
blacklisted element (SW.dll is not linked).

svn path=/trunk/mcs/; revision=139738
2009-08-11 21:39:05 +00:00
Jérémie Laval 2e21472723 2009-08-11 Jérémie Laval <[email protected]>
In build/common/:
   * Consts.cs.in: Add BOOTSTRAP_NET_4_0.

In class/corlib/System.Collections.Concurrent/:
   * ConcurrentQueue.cs:
   * IProducerConsumerCollection.cs: Add BOOTSTRAP_NET_4_0.

In class/corlib/System.Runtime.CompilerServices/:
   * TypeForwardedFromAttribute.cs: Add BOOTSTRAP_NET_4_0.

In class/corlib/System.Threading/:
   * Watch.cs:
   * SpinWait.cs:
   * CountdownEvent.cs:
   * CancellationToken.cs:
   * ICancelableOperation.cs:
   * CancellationTokenSource.cs:
   * CancellationTokenRegistration.cs: Add BOOTSTRAP_NET_4_0.

In class/corlib/System/:
   * Funcs.cs:
   * Action.cs:
   * AggregateException.cs: Add BOOTSTRAP_NET_4_0.

svn path=/trunk/mcs/; revision=139736
2009-08-11 21:10:04 +00:00
Raja R Harinath 4d8fa96830 * syntax.cs (BackslashNumber.ResolveReference): Improve ECMAScript semantics.
svn path=/trunk/mcs/; revision=139731
2009-08-11 19:11:26 +00:00
Jérémie Laval 6f55cefb86 2009-08-11 Jérémie Laval <[email protected]>
* Make Task.WaitAny use safest continuation mechanism rather than old hack

svn path=/trunk/mcs/; revision=139728
2009-08-11 18:47:49 +00:00
Jérémie Laval 9bf30cecff 2009-08-11 Jérémie Laval <[email protected]>
* Update unit tests
    * Moved BlockingCollection and Barrier in System.dll (with assorted fixes)
    * Fix wrong signature in TaskFactory<T>
    * Update .dll.sources files
    * Move AggregateException in System namespace
    * Remove While in Parallel
    * Correct Wait(CancellationToken) signature in CountdownEvent
    * update corlib.dll.sources

svn path=/trunk/mcs/; revision=139727
2009-08-11 18:47:31 +00:00
Ivan Zlatev e3c1a01725 2009-08-11 Ivan N. Zlatev <[email protected]>
* SplitContainer.cs: Avoid updating the splitter distance if it hasn't
	moved. Updating the distance was causing a re-layout which was resetting
	the clicks counter and preventing DoubleClick from every firing.
	[Fixes bug #521387]

svn path=/trunk/mcs/; revision=139721
2009-08-11 17:41:28 +00:00
Carlos Alberto Cortez 9e4fb5ff17 2009-08-11 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: When a new TableStyle is added, don't create new
	columns for it unless it is empty - this is the correct way to both
	respect the columns if they were provided by our user, or create them
	for him in case the column collection is empty.
	Fixes #323111.


svn path=/trunk/mcs/; revision=139717
2009-08-11 16:13:36 +00:00
Gonzalo Paniagua Javier 3f0c47aa48 2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: the 'Message Layout' can now handle
	self-referencing types. Fixes bug #529353.


svn path=/trunk/mono/; revision=139712
2009-08-11 15:09:11 +00:00
Andrés G. Aragoneses d431cd0cae * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Blacklist more
stuff.

svn path=/trunk/mcs/; revision=139706
2009-08-11 14:35:50 +00:00
Andrés G. Aragoneses 4ead2cb835 * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Blacklist our
bridge.

* tuner/ChangeLog: 

svn path=/trunk/mcs/; revision=139705
2009-08-11 14:26:46 +00:00
Paolo Molaro 14dc3ec96c Tue Aug 11 14:38:57 CEST 2009 Paolo Molaro <[email protected]>
* metadata.c: more documentation for MonoType accessors.


svn path=/trunk/mono/; revision=139702
2009-08-11 12:40:27 +00:00
Gert Driesen 812bfb22f4 * sqlserver7.sql: Added script for SQL Server 7.0, with unicode
encoding (as isql7 does not deal well with utf-8).

svn path=/trunk/mcs/; revision=139701
2009-08-11 11:47:32 +00:00
Atsushi Eno 0ce6eaa803 2009-08-11 Atsushi Enomoto <[email protected]>
* ClientBase.cs : (ChannelBase) now ClientRuntimeChannel demands an
	  explicit address.


svn path=/trunk/mcs/; revision=139700
2009-08-11 11:27:42 +00:00
Atsushi Eno 760543f402 2009-08-11 Atsushi Enomoto <[email protected]>
* WebChannelFactory.cs : added missing constructors.


svn path=/trunk/mcs/; revision=139699
2009-08-11 11:08:13 +00:00
Marek Safar 15bdcfe9d4 New test.
svn path=/trunk/mcs/; revision=139698
2009-08-11 10:19:48 +00:00
Marek Safar 9a4efa2510 2009-08-11 Marek Safar <[email protected]>
* generic.cs, lambda.cs, anonymous.cs, statement.cs, generic-mcs.cs,
	codegen.cs: Finding the best common type of a set of expressions for
	lambda statements.


svn path=/trunk/mcs/; revision=139697
2009-08-11 10:19:13 +00:00
Atsushi Eno 95ce234785 2009-08-11 Atsushi Enomoto <[email protected]>
* IOperationInvoker.cs : fix interface.
	* DefaultOperationInvoker.cs : refresh implementation of the above.
	* BaseMessagesFormatter.cs, OperationInvokerHandler.cs :
	  dependent changes for above.

	* ServiceHostBase.cs : use new IOperationInvoker implementation.

	* System.ServiceModel.dll.sources: add DefaultOperationInvoker.cs.


svn path=/trunk/mcs/; revision=139695
2009-08-11 08:14:30 +00:00
Atsushi Eno 6051696bfd 2009-08-11 Atsushi Enomoto <[email protected]>
* DataContractSerializerOperationBehavior.cs : add missing members.


svn path=/trunk/mcs/; revision=139694
2009-08-11 07:20:13 +00:00
Atsushi Eno 4e5534a936 2009-08-11 Atsushi Enomoto <[email protected]>
* MetadataExchangeClient.cs : add missing async methods.


svn path=/trunk/mcs/; revision=139692
2009-08-11 06:59:48 +00:00
Atsushi Eno 37d821ea9f 2009-08-11 Atsushi Enomoto <[email protected]>
* MetadataResolver.cs : added remaining methods.
	* MetadataExchangeClient.cs : a bit of required changes for above.


svn path=/trunk/mcs/; revision=139691
2009-08-11 06:47:27 +00:00
Atsushi Eno 6c199c5959 2009-08-11 Atsushi Enomoto <[email protected]>
* ServiceDebugBehavior.cs, ServiceMetadataBehavior.cs :
	  add Binding properties. Properties are now auto.
	* ServiceMetadataExtension.cs : take Binding too to build dispatcher.


svn path=/trunk/mcs/; revision=139690
2009-08-11 06:45:58 +00:00
Raja R Harinath af65b00f58 Fix incorrect size definitions where the tail array isn't a list of pointers
* class-internals.h (MONO_SIZEOF_MARSHAL_TYPE): Use offsetof to define size.
* domain-internals.h (MONO_SIZEOF_JIT_INFO): Likewise.
* metadata.h (MONO_SIZEOF_TYPE): Likewise.
* reflection.h (MONO_SIZEOF_CUSTOM_ATTR_INFO): Likewise.

svn path=/trunk/mono/; revision=139689
2009-08-11 06:30:39 +00:00
Gonzalo Paniagua Javier 140d96305c 2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* reflection.h:
	* reflection.c: MONO_SIZEOF_CUSTOM_ATTR_INFO.


svn path=/trunk/mono/; revision=139688
2009-08-11 05:26:27 +00:00
Gonzalo Paniagua Javier abce6ff162 2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* metadata.c:
	* loader.c:
	* metadata-internals.h:
	* method-builder.c:
	* reflection.c: use MONO_SIZEOF_METHOD_HEADER.


svn path=/trunk/mono/; revision=139687
2009-08-11 05:18:54 +00:00
Gonzalo Paniagua Javier 1a998bc0b2 SIZEOF
svn path=/trunk/mono/; revision=139686
2009-08-11 05:13:29 +00:00
Gonzalo Paniagua Javier c171755053 2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* cominterop.c:
	* metadata.c:
	* metadata.h:
	* loader.c:
	* marshal.c:
	* reflection.c: #define for sizeof in MonoType and
	MonoMethodSignature.


svn path=/trunk/mono/; revision=139685
2009-08-11 05:13:11 +00:00
Gonzalo Paniagua Javier 5bcfd754a5 2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* metadata/domain.c:
	* metadata/domain-internals.h:
	* mini/exceptions-arm.c:
	* mini/exceptions-hppa.c:
	* mini/mini.c:
	* mini/exceptions-s390x.c:
	* mini/exceptions-mips.c:
	* mini/exceptions-ppc.c:
	* mini/exceptions-sparc.c:
	* mini/exceptions-alpha.c:
	* mini/aot-runtime.c:
	* mini/mini-trampolines.c:
	* mini/exceptions-x86.c:
	* mini/exceptions-s390.c: add and use #define's instead of sizeof()
	for MonoJitInfo and MonoJitInfoTable.


svn path=/trunk/mono/; revision=139684
2009-08-11 04:49:15 +00:00
Gonzalo Paniagua Javier b860ba49dc 2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* object.c:
	* class.h: use #define instead of sizeof() for MonoRemoteClass.


svn path=/trunk/mono/; revision=139683
2009-08-11 04:31:25 +00:00
Gonzalo Paniagua Javier a29ec2c3ca 2009-08-10 Gonzalo Paniagua Javier <[email protected]>
* metadata/metadata.c:
	* metadata/metadata.h:
	* metadata/object.c:
	* metadata/class-internals.h:
	* metadata/generic-sharing.c:
	* metadata/marshal.c:
	* mini/tramp-arm.c:
	* mini/tramp-amd64.c:
	* mini/tramp-ppc.c:
	* mini/tramp-x86.c: use a #define instead of sizeof() for a few
	structures that use a zero-length array.


svn path=/trunk/mono/; revision=139675
2009-08-10 21:58:39 +00:00
Gonzalo Paniagua Javier 6602b6d728 2009-08-10 Gonzalo Paniagua Javier <[email protected]>
* monobitset.h: add comment.


svn path=/trunk/mono/; revision=139674
2009-08-10 21:40:30 +00:00
Gonzalo Paniagua Javier a04645d022 VS does not support zero-length arrays
svn path=/trunk/mono/; revision=139666
2009-08-10 19:55:57 +00:00
Raja R Harinath 1163a482f7 regexp backreferences: Implement fallback to octal numbers, and ECMAScript semantics.
* syntax.cs (BackslashNumber.ResolveReference): Implement fallback
to octal numbers, and ECMAScript semantics.
* parser.cs (ResolveReferences): Use it.
* RegexMatchTests.cs (RegexTrial0054..60): New.

svn path=/trunk/mcs/; revision=139657
2009-08-10 16:25:10 +00:00
Raja R Harinath 54481772e9 Distinguish between the potentially ambiguous \nnn and the non-ambiguous \k<...> back-references
* syntax.cs (BackslashNumber): New class.
* parser.cs (ParseSpecial): Create it instead of 'Reference' if a
numeric backreference is seen.

svn path=/trunk/mcs/; revision=139656
2009-08-10 16:24:45 +00:00
Raja R Harinath 88c39f81b9 Regex.IsMatch("abcab", @"(?<ab>ab)c\1")
* System.Text.RegularExpressions/parser.cs (ResolveReferences):
Allow named groups to be referred-to by their group numbers too.
* RegexMatchTests.cs (RegexTrial0053): New.

svn path=/trunk/mcs/; revision=139655
2009-08-10 16:24:21 +00:00
Andrés G. Aragoneses 05672500d5 * tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Move FIXME to a better
place. Fix NRE.

svn path=/trunk/mcs/; revision=139649
2009-08-10 15:36:40 +00:00
Atsushi Eno a2c0c02564 2009-08-10 Atsushi Enomoto <[email protected]>
* MoonlightChannelBaseExtension.cs : fixed a couple of generated
	  code to compile on .NET (not in mcs yet; some nested generics bug).


svn path=/trunk/mcs/; revision=139645
2009-08-10 14:55:40 +00:00
Carlos Alberto Cortez 31a3d7f101 2009-08-10 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: Actually call BindColumns in the handler for
	ListManager.MetaDataChanged, since the current code is already taking
	into account the scenario when a custom table style is used - this was
	confusing us before, and that's why we commented the call to
	BindColumns. Also call CallAreasAndInvalidate, to properly reflect the
	changes as needed.
	Fixes #465021.


svn path=/trunk/mcs/; revision=139643
2009-08-10 14:34:55 +00:00
Carlos Alberto Cortez 6dc05aadf5 * DataGridTest.cs: Don't use DataGrid.Rows.Add() for our latest test,
since it is 2.0. Use DataGrid.NewRow() instead.

2009-08-10  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=139642
2009-08-10 14:33:00 +00:00
Atsushi Eno 5b3009e9d5 2009-08-10 Atsushi Enomoto <[email protected]>
* Driver.cs, CommandLineOptions.cs : add moonlight proxy generator
	  support.
	* MoonlightChannelBaseExtension.cs : new, moonlight proxy generator.
	  Implemented as I[Service|Operation]ContractGenerationExtension.
	* svcutil.exe.sources : add above.


svn path=/trunk/mcs/; revision=139641
2009-08-10 14:22:21 +00:00
Atsushi Eno a88efb6f01 2009-08-10 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : removed ChannelBase proxy stuff,
	  which will be moved to svcutil source.
	  The targets for extension should be the interface, not the client
	  class.


svn path=/trunk/mcs/; revision=139639
2009-08-10 13:30:34 +00:00
Marek Safar e92a799182 2009-08-10 Marek Safar <[email protected]>
* CSharpInvokeBinder.cs, CSharpGetMemberBinder.cs,
	CSharpInvokeMemberBinder.cs: Defer fallback for now.


svn path=/trunk/mcs/; revision=139638
2009-08-10 13:12:58 +00:00
Atsushi Eno aae196a7f4 2009-08-10 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs,
	  OperationContractGenerationContext.cs : support extensions i.e.
	  IServiceContractGenerationExtension and IOperation...(ditto) .


svn path=/trunk/mcs/; revision=139630
2009-08-10 11:38:23 +00:00
Carlos Alberto Cortez 693c94a2c6 2009-08-10 Carlos Alberto Cortez <[email protected]>
* DataGridTest.cs: New test for the interaction between DataSource and
	TableStyles.


svn path=/trunk/mcs/; revision=139623
2009-08-10 08:04:55 +00:00
Carlos Alberto Cortez a2d077c88c 2009-08-10 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: When setting the data source, if we have a user
	provided table style available, force a complete bind in case the
	column styles for that table style is empty.


svn path=/trunk/mcs/; revision=139622
2009-08-10 07:52:45 +00:00
Atsushi Eno 6730801610 2009-08-10 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : first step to add moonlight-based
	  client proxy generator (it is not supported in 3.5. needs to be
	  enabled by some hook, such as reflection-based hack).


svn path=/trunk/mcs/; revision=139621
2009-08-10 07:16:23 +00:00
Miguel de Icaza 718f5f5014 2009-08-09 Miguel de Icaza <[email protected]>
* ConsoleLogger.cs: Change the format of the error and warnings
	strings to work when invoked inside Emacs by not rendering the
	column if available, by using lowercase "error"/"warning" strings
	instead of camelcased versions and to not have unnecessary padding.

2009-07-31  Ankit Jain  <[email protected]>

svn path=/trunk/mcs/; revision=139618
2009-08-09 16:01:18 +00:00
Miguel de Icaza 15b93c6240 Update
svn path=/trunk/mcs/; revision=139617
2009-08-09 15:42:31 +00:00
Ivan Zlatev 82b0da56e3 2009-08-09 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: Handle null and DBNull values.

svn path=/trunk/mcs/; revision=139616
2009-08-09 12:19:59 +00:00
Atsushi Eno 1ed5e1ad21 2009-08-07 Atsushi Enomoto <[email protected]>
* ContractDescription.cs : wcf & 2.1 is specially annoying land :(


svn path=/trunk/mcs/; revision=139597
2009-08-08 00:35:39 +00:00
Rodrigo Kumpera 8aba75ce1f 2009-08-07 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Implement almost all methods required
	to move to inherit from System.Type. The only missing methods
	are Is(Array|Pointer|ByRef)Impl and GetElementType since the
	runtime still generates weird instances for generics instances
	of non-SRE types with SRE types as generic arguments.

2009-08-07 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClassTest.cs: Test for methods that must
	throw.

svn path=/trunk/mcs/; revision=139596
2009-08-07 23:39:30 +00:00
Andrés G. Aragoneses b26affd3c9 2009-08-07 Andrés G. Aragoneses <[email protected]>
* tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Don't use var.
        Remove debug spew.


svn path=/trunk/mcs/; revision=139591
2009-08-07 20:13:28 +00:00
Andrés G. Aragoneses 7efa113808 oops, removed commented code
svn path=/trunk/mcs/; revision=139590
2009-08-07 20:08:30 +00:00
Andrés G. Aragoneses 2dd5ea989d * tuner/Mono.Tuner/InjectSecurityAttributes.cs: Make an enum
protected.

* tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Prevent Type*Exceptions
because of badly placed SC attrib on methods.

* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Typo in
comment.

svn path=/trunk/mcs/; revision=139589
2009-08-07 20:05:52 +00:00
Rodrigo Kumpera 0e57ff8832 2009-08-07 Rodrigo Kumpera <[email protected]>
* ListBindingHelper.cs: Fix the 1.0 build by making this type available
	under that profile.

svn path=/trunk/mcs/; revision=139587
2009-08-07 20:01:53 +00:00
Rodrigo Kumpera e138e70adc 2009-08-07 Rodrigo Kumpera <[email protected]>
* DynamicMethodTest.cs: Add regression test for bug #529238.

svn path=/trunk/mcs/; revision=139585
2009-08-07 19:28:02 +00:00
Jb Evain 8306598e5d hard code the authentication modules for monotouch
svn path=/trunk/mcs/; revision=139584
2009-08-07 19:27:22 +00:00
Rodrigo Kumpera ec795e13df 2009-08-07 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir/CEE_CONSTRAINED_): Handle the
	case when the method is dynamic. Fixes #529238.

svn path=/trunk/mono/; revision=139583
2009-08-07 19:10:11 +00:00
Ivan Zlatev 0cdd60e546 2009-08-07 Ivan N. Zlatev <[email protected]>
* CurrencyManager.cs: Remove duplicate code.

svn path=/trunk/mcs/; revision=139582
2009-08-07 18:24:55 +00:00
Ivan Zlatev f559c9b192 2009-08-07 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewCell.cs, DataGridViewColumn.cs:
	Massive population performance boost. From seconds to ms.
	[Fixes bug #528887]

svn path=/trunk/mcs/; revision=139581
2009-08-07 18:24:25 +00:00
Zoltan Varga 7a6b057458 Add missing files.
svn path=/trunk/mcs/; revision=139576
2009-08-07 15:14:25 +00:00
Marek Safar 5945ed28b3 2009-08-07 Marek Safar <[email protected]>
* AppDomain.cs: IsHomogenous always returns true for now.


svn path=/trunk/mcs/; revision=139563
2009-08-07 10:55:45 +00:00
Marek Safar f541e61ee6 New tests.
svn path=/trunk/mcs/; revision=139562
2009-08-07 10:53:03 +00:00
Marek Safar 727841576e 2009-08-07 Marek Safar <[email protected]>
* dynamic.cs, expression.cs: More dynamic conversions.


svn path=/trunk/mcs/; revision=139561
2009-08-07 10:51:18 +00:00
Marek Safar 25cb5c4338 2009-08-07 Marek Safar <[email protected]>
* CSharpInvokeBinder.cs, CSharpGetIndexBinder.cs, Extensions.cs,
	CSharpArgumentInfo.cs, CSharpInvokeMemberBinder.cs,
	CSharpSetIndexBinder.cs: Skip overhead arguments.


svn path=/trunk/mcs/; revision=139560
2009-08-07 10:49:24 +00:00
Marek Safar ed47ca25ea 2009-08-07 Marek Safar <[email protected]>
* Enumerable.cs (Skip): Optimized and fixed int.MaxValue overflow.


svn path=/trunk/mcs/; revision=139558
2009-08-07 10:44:50 +00:00
Marek Safar c1be496ffb Wrong file name.
svn path=/trunk/mcs/; revision=139554
2009-08-07 08:54:13 +00:00
Atsushi Eno 36c002b7b7 2009-08-07 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : add fixme comment and remove extra FIXME.


svn path=/trunk/mcs/; revision=139553
2009-08-07 08:26:53 +00:00
Atsushi Eno 0c22cb44ff 2009-08-07 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : change .ctor() args.
	  Add proxy hook methods that simply calls those in callback
	  ClientRuntimeChannel.

	* InputOrReplyRequestProcessor.cs : now it could return an instance
	  of dynamically generated proxy over DuplexServiceRuntimeChannel.


svn path=/trunk/mcs/; revision=139550
2009-08-07 06:33:38 +00:00
Atsushi Eno 061135e10b 2009-08-07 Astushi Enomoto <[email protected]>
* System.ServiceModel.dll.sources: add ServiceProxyGenerator.cs.


svn path=/trunk/mcs/; revision=139549
2009-08-07 06:31:22 +00:00
Atsushi Eno 179ab148aa 2009-08-07 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : add new contract getter to
	  create callback contract type (which does not demand
	  ServiceContractAttribute).


svn path=/trunk/mcs/; revision=139548
2009-08-07 06:27:33 +00:00
Atsushi Eno 265b42e192 2009-08-07 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : create callback runtime here, if required.


svn path=/trunk/mcs/; revision=139547
2009-08-07 06:25:58 +00:00
Atsushi Eno 6105965541 2009-08-07 Atsushi Enomoto <[email protected]>
* ClientRuntime.cs : oops, it should have been committed at a time.
	  Change .ctor() args. Make some properties auto.


svn path=/trunk/mcs/; revision=139546
2009-08-07 06:24:08 +00:00
Atsushi Eno c65767432f 2009-08-07 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : factory was not fully optional. Add
	  contextChannel argument to make room for duplex callback channel.


svn path=/trunk/mcs/; revision=139545
2009-08-07 06:21:50 +00:00
Atsushi Eno 1ac99f5eaa 2009-08-07 Atsushi Enomoto <[email protected]>
* ServiceEndpoint.cs, ContractDescription.cs : moved client runtime
	  creator from former to latter.

	* ClientProxyGenerator.cs : split client-specific code generation
	  from those common to service callback generation.
	* ServiceProxyGenerator.cs : new file, uses common basis above.


svn path=/trunk/mcs/; revision=139544
2009-08-07 06:20:19 +00:00
Atsushi Eno a8b7f12194 2009-08-07 Atsushi Enomoto <[email protected]>
* DispatchRuntime.cs : callback runtime is set later.


svn path=/trunk/mcs/; revision=139543
2009-08-07 06:12:21 +00:00
Atsushi Eno b24a5ca835 2009-08-07 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : add callback contract.


svn path=/trunk/mcs/; revision=139542
2009-08-07 06:07:14 +00:00
Miguel de Icaza 857f143465 2009-08-06 Miguel de Icaza <[email protected]>
* generic.cs: This loop was incorrect, it was increment ii, but
	checking for `i'.  This was a change introduced to fix #327497,
	now we fix #424012.


svn path=/trunk/mcs/; revision=139540
2009-08-07 02:59:03 +00:00
Atsushi Eno 0b580f7a17 2009-08-07 Atsushi Enomoto <[email protected]>
* MessageHeader.cs : fill IsReferenceParameter.


svn path=/trunk/mcs/; revision=139539
2009-08-07 02:47:01 +00:00
Miguel de Icaza c8f2bc98cc 2009-08-06 Miguel de Icaza <[email protected]>
* class.cs: Catch another case for cs0533 error, fixes #324782.


svn path=/trunk/mcs/; revision=139538
2009-08-07 02:40:27 +00:00
Atsushi Eno 15dc8695ad 2009-08-07 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : created derived duplex type.


svn path=/trunk/mcs/; revision=139537
2009-08-07 02:30:33 +00:00
Atsushi Eno 44bcad3d2e 2009-08-07 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : close/abort channels.
	  factory is optional now.


svn path=/trunk/mcs/; revision=139536
2009-08-07 02:29:12 +00:00
Rodrigo Kumpera 8018f7b220 2009-08-06 Rodrigo Kumpera <[email protected]>
* object-internals.h (MonoReflectionMethodOnTypeBuilderInst): Add new fields
	to handle inflated generic methods.

	* appdomain.c: Bump corlib version.

	* reflection.c (mono_image_get_method_on_inst_token): Handle generic method
	instances.

	* reflection.c (fixup_method): Same

	* reflection.c (resolve_object): Same.

	* reflection.c (inflate_method): Replace a g_assert_not_reached with a
	g_error and a decent message.

svn path=/trunk/mono/; revision=139535
2009-08-07 01:58:29 +00:00
Rodrigo Kumpera e5d7850ed8 2009-08-06 Rodrigo Kumpera <[email protected]>
* Environment.cs: Bump corlib version.

2009-08-06 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs (InflateType): Add support to inflate
	generic method arguments.

	* MonoGenericClass.cs (GetMethod): Remove restriction
	with generic methods.

2009-08-06 Rodrigo Kumpera  <[email protected]>

	* MethodOnTypeBuilderInstTest.cs: Add tests for
	generic method instances over generic type instances.

2009-08-06 Rodrigo Kumpera  <[email protected]>

	* MethodBuilder.cs: Mark generic_params internal.

	* MethodOnTypeBuilderInst.cs: Add fields to support
	inflated generic methods. Implement generics related
	methods.

svn path=/trunk/mcs/; revision=139534
2009-08-07 01:56:45 +00:00
Rodrigo Kumpera ecb3993369 2009-08-06 Rodrigo Kumpera <[email protected]>
* typemanager.cs (GetGenericArguments): SRE returns null for
	generic methods on type builder instances if they are not generic
	themselves. For example, for Foo<int>::Bar() it returns null, but
	not for Foo<int>::Bar<>() or Foo<int>::Bar<double>().

svn path=/trunk/mcs/; revision=139533
2009-08-07 01:56:21 +00:00
Zoltan Varga bf6d37ff9a 2009-08-06 Zoltan Varga <[email protected]>
* *.*: Applied patch from Marcus Griep <[email protected]>. Update
	C5 to v.1.1.0.

svn path=/trunk/mcs/; revision=139524
2009-08-06 19:55:14 +00:00
Jonathan Pryor 467d71e1c9 * mdoc.exe.sources: Add ../../build/common/Consts.cs to the build.
* Mono.Documentation/mdoc.cs: mdoc version is Consts.MonoVersion, not
	  some hard-coded, perpetually out-of-date version.

svn path=/trunk/mcs/; revision=139518
2009-08-06 18:40:22 +00:00
Jb Evain 337d570c69 2009-08-06 Jb Evain <[email protected]>
* Mono.Cecil/BaseAssemblyResolver.cs:
	Do not crash when the GAC folder can't be found.


svn path=/trunk/mcs/; revision=139517
2009-08-06 18:14:23 +00:00
Marek Safar 11d747479f Updated
svn path=/trunk/mcs/; revision=139504
2009-08-06 15:22:24 +00:00
Marek Safar fad030361f Missing eol-style
svn path=/trunk/mcs/; revision=139503
2009-08-06 15:18:16 +00:00
Marek Safar 4bf58cba75 ChangeLog
svn path=/trunk/mcs/; revision=139501
2009-08-06 15:04:18 +00:00
Massimiliano Mantione 659b6f6fb9 Get the domain from the object because it could not yet be available globally.
svn path=/trunk/mono/; revision=139500
2009-08-06 14:56:47 +00:00
Massimiliano Mantione b3e715f6c0 Profiler writer thread code cleanup.
svn path=/trunk/mono/; revision=139499
2009-08-06 14:56:36 +00:00
Marek Safar 3de7d1eb70 2009-08-04 Marek Safar <[email protected]>
* Updated to r26623.


svn path=/trunk/mcs/; revision=139498
2009-08-06 14:51:39 +00:00
Marek Safar 57e4b484ca Add some 4.0 bits
svn path=/trunk/mcs/; revision=139497
2009-08-06 14:49:56 +00:00
Atsushi Eno 1f41ae038f 2009-08-06 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : unify IChannel field to one.


svn path=/trunk/mcs/; revision=139496
2009-08-06 13:53:23 +00:00
Marek Safar 001a173407 Missing eol-style
svn path=/trunk/mcs/; revision=139495
2009-08-06 13:51:41 +00:00
Atsushi Eno 5dbbd545a1 2009-08-06 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : de-factorying toward callback instancing.


svn path=/trunk/mcs/; revision=139491
2009-08-06 13:25:21 +00:00
Zoltan Varga 552fc44aa2 2009-08-06 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Throw an exception instead
	of asserting when a method is JIT compiled in full-aot mode.

svn path=/trunk/mono/; revision=139470
2009-08-06 12:05:22 +00:00
Atsushi Eno 0958b6e6ce 2009-08-06 Atsushi Enomoto <[email protected]>
* DuplexChannelFactory.cs, ClientRuntimeChannel.cs,
	  ChannelFactory_1.cs : more ServiceEndpoint dep reduction.


svn path=/trunk/mcs/; revision=139467
2009-08-06 11:43:28 +00:00
Atsushi Eno bbe1510f77 2009-08-06 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs, TcpReplyChannel.cs, HttpReplyChannel.cs:
	  implement remaining async methods and LocalAddress.


svn path=/trunk/mcs/; revision=139466
2009-08-06 11:41:46 +00:00
Atsushi Eno 9e4d364a6d 2009-08-06 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : removing extra deps on ServiceEndpoint.

	* ClientRuntime.cs :
	  .ctor() just needs contract. Fill some properties.

	* ServiceEndpoint.cs : follow ClientRuntime change.


svn path=/trunk/mcs/; revision=139464
2009-08-06 08:39:05 +00:00
Atsushi Eno f74dc00c6e 2009-08-06 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : eliminate dependency on ChannelFactory,
	  which will block using it for callback instances.


svn path=/trunk/mcs/; revision=139462
2009-08-06 03:43:17 +00:00
Atsushi Eno e4b8b41c57 2009-08-06 Atsushi Enomoto <[email protected]>
* WebScriptEnablingBehavior.cs : revert GetQueryStringConverter().
	  (MSDN missing entry issue.)


svn path=/trunk/mcs/; revision=139461
2009-08-06 03:39:11 +00:00
Atsushi Eno 9bacb28423 2009-08-06 Atsushi Enomoto <[email protected]>
* web.config: add WCF assemblies as references at compilation.
	* machine.config: add some missing WCF sections (new in 3.5).


svn path=/trunk/mono/; revision=139460
2009-08-06 03:06:03 +00:00
Raja R Harinath 8cfc7de843 known-issues-dmcs: Add testcases that have an assembly version in the error message string.
svn path=/trunk/mcs/; revision=139459
2009-08-06 02:42:24 +00:00
Marek Safar b3810185ba Updated.
svn path=/trunk/mcs/; revision=139414
2009-08-05 17:17:40 +00:00
Marek Safar 47a14feb3f 2009-08-05 Marek Safar <[email protected]>
* argument.cs, dynamic.cs, expression.cs, ecore.cs, class.cs,
	delegate.cs: Work on dynamic binding.


svn path=/trunk/mcs/; revision=139413
2009-08-05 17:17:26 +00:00
Atsushi Eno f5f2ed0068 2009-08-05 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : fix 2.1 build.


svn path=/trunk/mcs/; revision=139407
2009-08-05 15:42:11 +00:00
Rodrigo Kumpera b30bc9dc1a 2009-08-05 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (FullName): mcs depends that FullName
	doesn't return null for instantiations over generic params
	of type builders. We special case this under compiler context.

svn path=/trunk/mcs/; revision=139403
2009-08-05 15:03:51 +00:00
Jérémie Laval 6edd2683c2 2009-08-05 Jérémie Laval <[email protected]>
In class/corlib/System.Threading.Tasks/:
	* Future.cs: Fix for Future, when using TaskCompletionSource
	don't try to run Wait before returning value

In class/corlib/Test/System.Collections.Concurrent/:
	* ConcurrentDictionaryTests.cs: Re-enable ConcurrentDictionary unit
	tests.

svn path=/trunk/mcs/; revision=139402
2009-08-05 15:02:40 +00:00
Rodrigo Kumpera 62ac371188 2009-08-05 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Remove Is(Array|Pointer|ByRef)Impl
	and GetElementType since the runtime still produces instances
	of MonoGenericClass for those types.

svn path=/trunk/mcs/; revision=139400
2009-08-05 14:28:28 +00:00
Atsushi Eno 14c172a9e2 2009-08-05 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs, WebScriptEnablingBehavior.cs :
	  implemented properties as in documented way.
	  Remove extra derived GetQueryStringConverter().


svn path=/trunk/mcs/; revision=139395
2009-08-05 09:54:14 +00:00
Atsushi Eno 17c5d00055 2009-08-05 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs, WebScriptEnablingBehavior.cs :
	  mostly implemented Validate().


svn path=/trunk/mcs/; revision=139394
2009-08-05 09:28:31 +00:00
Atsushi Eno b77ea43126 2009-08-05 Atsushi Enomoto <[email protected]>
* web.config: add WCF assemblies as references at compilation.
	* machine.config: add some missing WCF sections (new in 3.5).


svn path=/trunk/mono/; revision=139392
2009-08-05 07:22:42 +00:00
Atsushi Eno 6311f336e0 2009-08-05 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing listener refactoring. Now it uses
	  ServiceHost to process neighbor connection (not sure if this is
	  right way to go though ...).


svn path=/trunk/mcs/; revision=139391
2009-08-05 06:31:23 +00:00
Atsushi Eno ae9754dd00 2009-08-05 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : actually CallbackInstance is set and
	  should be available.


svn path=/trunk/mcs/; revision=139389
2009-08-05 05:46:11 +00:00
Atsushi Eno 3bb5cdd217 2009-08-05 Atsushi Enomoto <[email protected]>
* DuplexChannelFactory.cs, ClientProxyGenerator.cs, ClientBase.cs,
	  ChannelFactory_1.cs, DuplexClientBase.cs :
	  create IDuplexContextChannel from ClientBase if required.


svn path=/trunk/mcs/; revision=139388
2009-08-05 05:38:48 +00:00
Atsushi Eno 3fa360201b 2009-08-05 Atsushi Enomoto <[email protected]>
* DuplexClientRuntimeChannel.cs : new proxy base channel.


svn path=/trunk/mcs/; revision=139387
2009-08-05 05:36:42 +00:00
Atsushi Eno c91df6baaf 2009-08-05 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : it should implement IServiceChannel,
	  not IClientChannel.


svn path=/trunk/mcs/; revision=139386
2009-08-05 05:35:44 +00:00
Rodrigo Kumpera 5d43739e8a 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClassTest.cs: New file.

svn path=/trunk/mcs/; revision=139381
2009-08-05 01:08:15 +00:00
Rodrigo Kumpera 96cea2f037 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Implement more methods from MonoType.
	Done with all type name related properties.

svn path=/trunk/mcs/; revision=139380
2009-08-05 01:07:54 +00:00
Rodrigo Kumpera 01f8d10d86 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Implement Is*Impl methods to simply
	return false.

svn path=/trunk/mcs/; revision=139379
2009-08-05 00:08:27 +00:00
Rodrigo Kumpera 7e56b7183d 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Implement Make(Array,ByRef,Pointer) using the
	new managed types.

svn path=/trunk/mcs/; revision=139378
2009-08-05 00:08:05 +00:00
Rodrigo Kumpera 211e1e5c9a 2009-08-04 Rodrigo Kumpera <[email protected]>
* MethodOnTypeBuilderInstTest.cs: Really fix the test.

svn path=/trunk/mcs/; revision=139377
2009-08-05 00:07:42 +00:00
Rodrigo Kumpera 1376376f3a 2009-08-04 Rodrigo Kumpera <[email protected]>
* MethodOnTypeBuilderInstTest.cs: Pointer inflation
	was fixed. Use the right assert on the test.

svn path=/trunk/mcs/; revision=139376
2009-08-05 00:07:21 +00:00
Rodrigo Kumpera 83de2c8050 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (InflateType): Implement it in terms of managed
	code and kill the corresponding icall.

svn path=/trunk/mcs/; revision=139375
2009-08-05 00:06:57 +00:00
Rodrigo Kumpera d95e5cdc19 2009-08-04 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs (DerivedType): Implement ToString ().

svn path=/trunk/mcs/; revision=139374
2009-08-05 00:06:36 +00:00
Rodrigo Kumpera 400fa81a6d 2009-08-04 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_generic_class_get_object): Initialized the
	managed type arguments array.

	* object-internals.h (MonoReflectionGenericClass): Add type_arguments field.

	* appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=139373
2009-08-05 00:06:14 +00:00
Rodrigo Kumpera 9b26abaed8 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Add type_arguments field and constructor
	that initializes it.

2009-08-04 Rodrigo Kumpera  <[email protected]>

	* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=139372
2009-08-05 00:06:13 +00:00
Gonzalo Paniagua Javier fc9eac201d Check GC_dont_gc just in case an embedder used it.
svn path=/trunk/mono/; revision=139365
2009-08-04 20:27:21 +00:00
Miguel de Icaza 7bf9a04a99 2009-08-04 Miguel de Icaza <[email protected]>
* Start the split between PLATFORM_WIN32 and TARGET_WIN32.  

	PLATFORM_WIN32 should be used to configure the runtime while
	building it.   TARGET_WIN32 is used for target execution.

	This is used by Mono's AOT cross compiler when running on Windows,
	but targetting a different operating system.    So we have to tell
	those two apart.


svn path=/trunk/mono/; revision=139363
2009-08-04 20:07:39 +00:00
Miguel de Icaza de3ac7c01e 2009-08-04 Miguel de Icaza <[email protected]>
* posix.c (_wapi_stdhandle_create): Split this into a new file to
	more easily support non-Posix platforms.

svn path=/trunk/mono/; revision=139362
2009-08-04 20:01:38 +00:00
Raja R Harinath 27813e51ba * ParallelConcurrentQueueTests.cs (CountTestCase): Remove call to internal method.
svn path=/trunk/mcs/; revision=139349
2009-08-04 15:18:07 +00:00
Marek Safar 0b79091d79 2009-08-04 Marek Safar <[email protected]>
* RuntimeBinderInternalCompilerException.cs,
	RuntimeBinderException.cs: New files.


svn path=/trunk/mcs/; revision=139348
2009-08-04 15:06:51 +00:00
Carlos Alberto Cortez b2ccd60457 * DataGrid.cs: When handling mouse down on a column, don't do any sort
even if the list supports it if we are empty. This way we avoid an exc
	sorting the empty list, and keep the UI compatible with .net.

2009-08-04  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=139347
2009-08-04 14:50:49 +00:00
Carlos Alberto Cortez 6875c8bfb1 2009-08-04 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: In Edit () check we have any row before trying to use
	the current row. Fixes a IOOR exc with an empty data grid.


svn path=/trunk/mcs/; revision=139346
2009-08-04 14:37:36 +00:00
Zoltan Varga dd20363212 2009-08-04 Zoltan Varga <[email protected]>
* threads.c (thread_cleanup): Free serialized_ui_culture_info. Fixes
	#527902.

svn path=/trunk/mono/; revision=139341
2009-08-04 12:13:25 +00:00
Jérémie Laval 9a8be31839 2009-08-04 Jérémie Laval <[email protected]>
In class/corlib/System.Collections.Concurrent/:
	* ConcurrentDictionary: Fix compilation issue
	with IDictionary methods.

In class/corlib/System.Threading/:
	* SpinLock: Remove unused private methods.

svn path=/trunk/mcs/; revision=139338
2009-08-04 10:58:51 +00:00
Marek Safar a75e4168d2 New test.
svn path=/trunk/mcs/; revision=139336
2009-08-04 10:30:36 +00:00
Marek Safar e547e1244a 2009-08-04 Marek Safar <[email protected]>
A second fix for bug #525342
	* class.cs: Attach partial method attributes to method
	implementation.


svn path=/trunk/mcs/; revision=139335
2009-08-04 10:30:10 +00:00
Atsushi Eno 82a318ea82 2009-08-04 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : fix contract and add receiver iface
	  (might be unnecessary though).


svn path=/trunk/mcs/; revision=139331
2009-08-04 09:55:15 +00:00
Atsushi Eno bfc1a2f6ea 2009-08-04 Atsushi Enomoto <[email protected]>
* OperationContext.cs : GetCallbackChannel<T>() should just return
	  channel (which should also implement T, which must be callback
	  type).


svn path=/trunk/mcs/; revision=139330
2009-08-04 09:53:47 +00:00
Atsushi Eno 5acd571234 2009-08-04 Atsushi Enomoto <[email protected]>
* ServiceBehaviorAttribute.cs : cosmetic spelling fix.


svn path=/trunk/mcs/; revision=139323
2009-08-04 08:44:17 +00:00
Atsushi Eno 3d637ff7a1 2009-08-04 Atsushi Enomoto <[email protected]>
* ReplyHandler.cs : there is better way to check IsOneWay.


svn path=/trunk/mcs/; revision=139322
2009-08-04 08:43:18 +00:00
Atsushi Eno 9977bb5fdd 2009-08-04 Atsushi Enomoto <[email protected]>
* OperationInvokerHandler.cs : One way operation has no reply.
	* ReplyHandler.cs : ditto.


svn path=/trunk/mcs/; revision=139321
2009-08-04 08:14:11 +00:00
Atsushi Eno 98a56ae890 2009-08-04 Atsushi Enomoto <[email protected]>
* make_imt_test.sh: fix freebsd build by Makoto Kishimoto
	  http://lists.ximian.com/pipermail/mono-devel-list/2008-November/029970.html


svn path=/trunk/mono/; revision=139316
2009-08-04 06:02:04 +00:00
Carlos Alberto Cortez c58cdec8e5 2009-08-03 Carlos Alberto Cortez <[email protected]>
* GridColumnStylesCollectionTest.cs: New test for #465019. Also make
	public the test class, so it is *actually* loaded by nunit.


svn path=/trunk/mcs/; revision=139315
2009-08-04 04:16:37 +00:00
Carlos Alberto Cortez 28450f7f3c 2009-08-03 Carlos Alberto Cortez <[email protected]>
* DataGridColumnStyle.cs: Don't call CheckValidDataSource when setting
	the owner DataGrid - even if this seems to be the right thing to do,
	.net is not doind this check at this point, but in later operations.
	Fixes #465019.


svn path=/trunk/mcs/; revision=139314
2009-08-04 03:48:03 +00:00
Jerri Maine 2fa16c23b1 Contributed under the terms of the MIT/X11 license by
Jerry Maine <[email protected]>.

* Mono.Simd/VectorOperations.cs: Added packed double method.

svn path=/trunk/mcs/; revision=139313
2009-08-04 00:36:49 +00:00
Jerri Maine 3909f865ce svn path=/trunk/mono/; revision=139311 2009-08-04 00:34:42 +00:00
Jerri Maine e1de5c8745 svn path=/trunk/mono/; revision=139310 2009-08-04 00:34:07 +00:00
Jerri Maine 6bc5d9eb80 Contributed under the terms of the MIT/X11 license by
Jerry Maine <[email protected]>.

* mono/arch/amd64/amd64-codegen.h: Added missing code gen marco for single packed square root.
* mono/mini/basic-simd.cs: added test for packed double square root.
* mono/mini/cpu-amd64.md: added opcode info for packed double square root.
* mono/mini/cpu-x86.md: added opcode info for packed double square root.
* mono/mini/mini-ops.h: added IR opcode for packed double square root.
* mono/mini/mini-x86.c: added IR to native translation code for packed double square root.
* mono/mini/mini-amd64.c: removed todo for packed double square root.
* mono/mini/simd-intrinsics.c: added method to IR opcode converstion for
packed double square root.

svn path=/trunk/mono/; revision=139309
2009-08-04 00:31:14 +00:00
Miguel de Icaza 2e07af9423 Fix
svn path=/trunk/mcs/; revision=139308
2009-08-04 00:19:56 +00:00
Rodrigo Kumpera 2909089503 2009-08-03 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (initialize): Remember the number
	of events available at initialization time. This is required as
	mcs expect this behavior under compiler context that new events
	are not returned for an instance that was inflated before.

	* MonoGenericClass.cs: Kill GetEvents_internal and implement it
	in terms of managed code.

2009-08-03 Rodrigo Kumpera  <[email protected]>

	* EventBuilder.cs: Make some fields internal.

	* TypeBuilder.cs: Make events field internal.
	Remove some MonoTODOs that are already done.

	* EventOnTypeBuilderInst.cs: New file which implements
	the required functionality by compiler context.

svn path=/trunk/mcs/; revision=139307
2009-08-04 00:10:17 +00:00
Jb Evain 32304d19e0 monotouch uses the real HttpWebRequest
svn path=/trunk/mcs/; revision=139300
2009-08-03 22:22:36 +00:00
Jb Evain 8bba669db0 fix horrible typo
svn path=/trunk/mcs/; revision=139298
2009-08-03 21:19:24 +00:00
Jerri Maine c00f790201 Jerry Maine <[email protected]>.
* mini-amd64.c: Added a change to help tell the difference as 
to what perpose the xmm register is being used--mainly to help
with debuging.
* mini-amd64.h: Changed callee regs to use 15 out of 16 
(one used for special cases) xmm registers for both fp
and simd ops. Added define to turn on new feature in the regalloc
that allows fp and simd ops to share the xmm regs happily.
* codegen.c: Added code to detect for which perpose an xmm reg is
being used (fp or simd) and to translate back and forth to the
correct logical reg bank (fp or simd) for 'spill load's.

svn path=/trunk/mono/; revision=139297
2009-08-03 20:12:47 +00:00
Jerri Maine 6d8abd74c6 Contributed under the terms of the MIT/X11 license by
Jerry Maine <[email protected]>.

basic-simd.cs: Added tests for stressing the regalloc when running with
16 simd regs and when simd and fp ops share the same reg bank.

svn path=/trunk/mono/; revision=139296
2009-08-03 19:44:21 +00:00
Zoltan Varga 60469b50bb 2009-08-03 Zoltan Varga <[email protected]>
* threads.c (ves_icall_System_Threading_Thread_Thread_free_internal):
	Avoid a crash if synch_cs is not set.

svn path=/trunk/mono/; revision=139283
2009-08-03 14:03:26 +00:00
Zoltan Varga 0a76abf0a5 2009-08-03 Zoltan Varga <[email protected]>
* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=139282
2009-08-03 13:29:08 +00:00
Zoltan Varga f1fd210aab 2009-08-03 Zoltan Varga <[email protected]>
* Thread.cs: Always call Thread_free_internal from the finalizer, since
	it frees other things besides the handle. Fixes #527576.

svn path=/trunk/mcs/; revision=139281
2009-08-03 13:28:59 +00:00
Zoltan Varga 8166b1d9c4 2009-08-03 Zoltan Varga <[email protected]>
* threads.c (ves_icall_System_Threading_Thread_Thread_free_internal):
	Handle the case when the handle is 0.

	* appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=139280
2009-08-03 13:27:33 +00:00
Gonzalo Paniagua Javier adcc59f1eb 2009-08-03 Gonzalo Paniagua Javier <[email protected]>
* Attachment.cs: set the body encoding for multipart attachments.
	Fixes bug #527177.


svn path=/trunk/mcs/; revision=139278
2009-08-03 12:48:11 +00:00
Marek Safar 2d06498fe6 New tests.
svn path=/trunk/mcs/; revision=139276
2009-08-03 11:09:41 +00:00
Marek Safar 1eaab48c19 2009-08-03 Marek Safar <[email protected]>
* typemanager.cs, parameter.cs, support.cs, class.cs: Dynamic type
	restrictions.
	
	* rootcontext.cs: Default to langversion v4.


svn path=/trunk/mcs/; revision=139275
2009-08-03 11:09:27 +00:00
Marek Safar 9852bdc096 New test.
svn path=/trunk/mcs/; revision=139273
2009-08-03 10:11:27 +00:00
Marek Safar 5a7f478fb5 2009-08-03 Marek Safar <[email protected]>
* pending.cs: Check return type before member info is set.


svn path=/trunk/mcs/; revision=139272
2009-08-03 10:11:14 +00:00
Marek Safar 8d73d3ee4f 2009-08-03 Marek Safar <[email protected]>
* anonymous.cs: Fully initialize generic hoisted field expression.


svn path=/trunk/mcs/; revision=139269
2009-08-03 09:30:00 +00:00
Miguel de Icaza f10bcc5071 2009-08-03 Miguel de Icaza <[email protected]>
* Extensions.cs: Add a null guard and return null on failure,
	instead of crashing.

svn path=/trunk/mcs/; revision=139263
2009-08-03 04:45:00 +00:00
Miguel de Icaza 6b01e49ed1 2009-08-02 Miguel de Icaza <[email protected]>
* cs-parser.jay: Flag variables declared on the interactive shell
	as used to prevent the 168 warning about local variable not being
	used. 

svn path=/trunk/mcs/; revision=139261
2009-08-02 21:38:52 +00:00
Jb Evain 08dc55550d fix monotouch build
svn path=/trunk/mcs/; revision=139260
2009-08-02 21:11:29 +00:00
Jb Evain 8805f72dd8 add custom dirs for monotouch
svn path=/trunk/mcs/; revision=139259
2009-08-02 20:08:38 +00:00
Jb Evain f2a6f61bad use a 2.0 network stack for MONOTOUCH
svn path=/trunk/mcs/; revision=139255
2009-08-02 15:43:12 +00:00
Jb Evain 7cbccaca2d 2009-08-02 Jb Evain <[email protected]>
* XElement.cs: fix the monotouch build.


svn path=/trunk/mcs/; revision=139254
2009-08-02 14:29:00 +00:00
Zoltan Varga c225b1e276 2009-08-02 Zoltan Varga <[email protected]>
* reflection.c (mono_type_get_object): Fix a warning.

svn path=/trunk/mono/; revision=139253
2009-08-02 13:33:15 +00:00
Jonathan Pryor b9bd8c7158 * Mono.Documentation/monodocer.cs: Sometimes <AssemblyVersion/> is
found twice when it's actually present only once (!).  Attempt to
	  work around this by usinq LINQ instead of a foreach (which oddly
	  works...).

svn path=/trunk/mcs/; revision=139252
2009-08-02 11:42:45 +00:00
Miguel de Icaza 57dea3038a 2009-08-01 Miguel de Icaza <[email protected]>
* Various changes to support the non-XAP XmlSchema resolution on
	the Moonlight build.    

	Major missing feature: WebRequest resolution.

svn path=/trunk/mcs/; revision=139248
2009-08-01 17:57:00 +00:00
Miguel de Icaza 3fc2ac11bc 2009-08-01 Miguel de Icaza <[email protected]>
* Various changes to support the non-XAP XmlSchema resolution on
	the Moonlight build.    

	Major missing feature: WebRequest resolution.

svn path=/trunk/mcs/; revision=139246
2009-08-01 16:31:08 +00:00
Miguel de Icaza a155696f61 Do not use Xap loading on MonoTouch profile
svn path=/trunk/mcs/; revision=139245
2009-08-01 16:12:22 +00:00
Gert Driesen 5def661365 * SqlDataReaderTest.cs: Fixes for SQL Server 7.0 / TDS 7. Avoid
catching and rethrowing AssertionException. Minor code formatting
changes.

svn path=/trunk/mcs/; revision=139244
2009-08-01 14:38:27 +00:00
Mark Probst 36208d6a9f 2009-08-01 Mark Probst <[email protected]>
* sgen-gc.c (mono_gc_wbarrier_value_copy): Don't compute the GC
	descriptor here.  We assume it's already been computed.

	* generic-sharing.c (instantiate_other_info): Compute the GC
	descriptor for info type MONO_RGCTX_INFO_KLASS.

2009-08-01  Mark Probst  <[email protected]>

	* method-to-ir.c (mini_emit_stobj): If we call mono_value_copy()
	in shared generic code, we might have to look up the class in the
	RGCTX.  If we use the class directly, compute its GC descriptor.

svn path=/trunk/mono/; revision=139243
2009-08-01 14:16:18 +00:00
Gert Driesen b5fa4ed568 * SqlCommandBuilderTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlCommandTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlConnectionTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlDataAdapterTest.cs: Added tests for Update. Fixed Fill_Test_Data,
Fill_Test_PriKey and Fill_Test_FillErrorTest to pass on SQL Server 7.0.
Avoid catching and rethrowing AssertionException. Minor improvements.
* SqlParameterTest.cs: Fixes for SQL Server 7.0 / TDS 7. Updated
ZeroLengthString to pass on 1.0 profile.
* SqlTransactionTest.cs: Fixes for SQL Server 7.0 / TDS 7.

svn path=/trunk/mcs/; revision=139242
2009-08-01 13:07:28 +00:00
Gert Driesen fd94203d2e * SqlParameter.cs (ConvertToFrameworkType): Only wrap FormatException
on 2.0 profile.

svn path=/trunk/mcs/; revision=139241
2009-08-01 13:01:05 +00:00
Mark Probst 90ba0aaafa 2009-08-01 Mark Probst <[email protected]>
* reflection.c (mono_type_get_object): MonoDomain is an unmanaged
	type, so don't use MONO_OBJECT_SETREF to set a field.

svn path=/trunk/mono/; revision=139240
2009-08-01 12:14:43 +00:00
Mark Probst ce064fa7b3 2009-08-01 Mark Probst <[email protected]>
* gc.c: We were missing one case where invoking a finalizer would
	not reset the domain.  Also, in the finalizer thread loop, assert
	that we're in the root domain.

svn path=/trunk/mono/; revision=139239
2009-08-01 12:06:21 +00:00
Gert Driesen 3af3766d03 * app-net_1.1.config: added engine config for SQL Server 7.0. Fixed
values of clientVersion.
* app-net_2.0.config: added engine config for SQL Server 7.0. Fixed
values of clientVersion.

svn path=/trunk/mcs/; revision=139238
2009-08-01 12:01:37 +00:00
Zoltan Varga c7ef4e79ad 2009-08-01 Zoltan Varga <[email protected]>
* mono-sigcontext.h (UCONTEXT_GREGS): Fix freebsd definition.

svn path=/trunk/mono/; revision=139237
2009-08-01 11:16:12 +00:00
Jonathan Pryor 57489528ee Oops.
svn path=/trunk/mcs/; revision=139231
2009-08-01 02:36:49 +00:00
Rodrigo Kumpera 5d42ade56b 2009-07-31 Rodrigo Kumpera <[email protected]>
TypeTest.cs: Add test for Type::GetArrayRank.

svn path=/trunk/mcs/; revision=139230
2009-08-01 02:32:27 +00:00
Rodrigo Kumpera 007ee74848 2009-07-31 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_MonoType_GetArrayRank): Throw ArgumentException
	if the type is not an array.

svn path=/trunk/mono/; revision=139229
2009-08-01 02:32:20 +00:00
Jonathan Pryor b422ade2ea * Mono.Documentation/monodocer.cs: Record attributes that are placed
on property get/set and event add/remove accessors.
	* Test/DocTest-v1.cs: Add attributes to some accessors.
	* Test/en.expected.importslashdoc/Mono.DocTest/Widget.xml,
	  Test/en.expected.since/Mono.DocTest/Widget.xml,
	  Test/en.expected/Mono.DocTest/Widget.xml,
	  Test/html.expected/Mono.DocTest/Widget.html,
	  Test/msxdoc-expected.importslashdoc.xml: Flush.

svn path=/trunk/mcs/; revision=139227
2009-08-01 02:20:01 +00:00
Rodrigo Kumpera ddd3882ac3 2009-07-31 Rodrigo Kumpera <[email protected]>
TypeTest.cs: Add test for Type::DeclaringMethod.
	In special for throwing when the type is not a
	generic param and for DeclaringMethod returning
	a method bound to the right type.

svn path=/trunk/mcs/; revision=139226
2009-08-01 02:17:11 +00:00
Rodrigo Kumpera 5716d8a965 2009-07-31 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_MonoType_get_DeclaringMethod): Return the
	method bound to the declaring type of the method. Raise an exception
	if the type is not a generic param.

svn path=/trunk/mono/; revision=139225
2009-08-01 02:13:54 +00:00
Rodrigo Kumpera 794a0718f7 2009-07-31 Rodrigo Kumpera <[email protected]>
* mini.c (mono_jit_runtime_invoke): Fix a warning.

svn path=/trunk/mono/; revision=139223
2009-08-01 00:07:05 +00:00
Rodrigo Kumpera 20419622f9 2009-07-31 Rodrigo Kumpera <[email protected]>
* class.c (print_unimplemented_interface_method_info): Print the
	full type name.

	* class.c (mono_class_setup_vtable_general): When dealing with a
	generic instance first check if the generic type definition is
	not broken.

svn path=/trunk/mono/; revision=139222
2009-08-01 00:06:49 +00:00
Rodrigo Kumpera 353c7b6dbf 2009-07-31 Rodrigo Kumpera <[email protected]>
* mini.c (mono_jit_runtime_invoke): Initialize the class and
	check for errors. Fixed the case when the class with the Main
	method is broken.

svn path=/trunk/mono/; revision=139221
2009-08-01 00:06:34 +00:00
Rodrigo Kumpera 94ec38fc1b 2009-07-31 Rodrigo Kumpera <[email protected]>
* generic_type_definition.2.cs: This test verifies for a lot of stuff
	that must work under compiler context. A few of those used to work outside
	of it, so this test worked by pure luck.
	The fix is to run the test under compiler context.

svn path=/trunk/mono/; revision=139220
2009-08-01 00:06:19 +00:00
Jerri Maine e1093c73c0 cpu-amd64.md: Fixed simple bug in machine discrition file.
Contributed under the terms of the MIT/X11 license by
Jerry Maine <[email protected]>.

svn path=/trunk/mono/; revision=139218
2009-07-31 23:28:30 +00:00
Jérémie Laval 7baa3c7178 In class/corlib/:
* corlib.dll.sources: Added TaskCompletionSource
        * corlib_test.dll.sources: Removed SnziTests due to
		visibility change in Snzi.
        Added TaskCompletionSource tests.

In class/corlib/System.Collections.Concurrent/:
        * ConcurrentBag.cs:
        * ConcurrentQueue.cs:
        * ConcurrentStack.cs:
        * ConcurrentSkipList.cs:
        * ConcurrentDictionary.cs:
        * IProducerConsumerCollection.cs: Make the namespace comply to 4.0b1

In class/corlib/System.Threading.Tasks/:
        * Task.cs:
        * Future.cs:
        * TaskFactory.cs:
        * TaskCanceledException.cs:
        * TaskSchedulerException.cs:
        * Internal/SchedulerProxy.cs: Make System.Threading.Tasks API fully 4.0 b1 compliant.
        * TaskCompletionSource.cs: Add TaskCompletionSource class

In class/corlib/System.Threading/:
        * Snzi.cs:
        * Parallel.cs:
        * SpinLock.cs:
        * SpinWait.cs:
        * ThreadLocal.cs:
        * SemaphoreSlim.cs:
        * CountdownEvent.cs:
        * ManualResetEventSlim.cs:
        * CancellationTokenSource.cs: Various 4.0 b1 API mismatch fixes.

In class/corlib/Test/System.Collections.Concurrent/:
        * ConcurrentDictionary: Ignore tests until runtime/compiler
        is fixed

svn path=/trunk/mcs/; revision=139206
2009-07-31 18:08:49 +00:00
Zoltan Varga 8de6ac7766 2009-02-11 Tom Hindke <[email protected]>
* marshal.c (mono_array_to_lparray): Implemented so managed object types are converted to native types.

	* marshal.c: Added new method mono_free_lparray to free memory allocated by mono_array_to_lparray

	* marshal.c (emit_marshal_array): call emit mono_free_lparray where approprate.

	* marshal.c (conv_to_icall): added MONO_MARSHAL_FREE_LPARRAY case

	* metadata.h (MonoMarshalConv enum): added MONO_MARSHAL_FREE_LPARRAY

	Code is contributed under MIT/X11 license

svn path=/trunk/mono/; revision=139201
2009-07-31 17:10:30 +00:00
Atsushi Eno 4bd222cfb5 2009-07-31 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : raise error on multiple endpoint match
	  (documented at EndpointDispatcher.FilterPriority).


svn path=/trunk/mcs/; revision=139194
2009-07-31 16:10:27 +00:00
Marek Safar 534fd892ce 2009-07-31 Marek Safar <[email protected]>
* parameter.cs, dynamic.cs, support.cs, class.cs, delegate.cs,
	attribute.cs: Emit dynamic export attribute.


svn path=/trunk/mcs/; revision=139191
2009-07-31 15:24:30 +00:00
Atsushi Eno 586aae4f6a 2009-07-31 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing [MC-PRCH] implementation. Rewrote
	  connection part to use new internal IPeerConnectorContract for
	  neighbor connection.


svn path=/trunk/mcs/; revision=139174
2009-07-31 12:42:24 +00:00
Jérémie Laval 58e13b8909 * Fix System.Collections.Concurrent API mismatches
* Update unit tests with the modified API

svn path=/trunk/mcs/; revision=139172
2009-07-31 12:36:18 +00:00
Atsushi Eno 81a4201cfe 2009-07-31 Atsushi Enomoto <[email protected]>
* ChannelListenerBase_1.cs, TcpChannelListener.cs,
	  PeerChannelListener.cs, HttpChannelListener.cs :
	  support ListenUri accordingly too so that it could be used when
	  it is different from LocalAddress.Uri.


svn path=/trunk/mcs/; revision=139171
2009-07-31 12:27:07 +00:00
Zoltan Varga 81a87bb839 2009-07-31 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_output_basic_block): Implement OP_IREM_UN_IMM.

svn path=/trunk/mono/; revision=139169
2009-07-31 12:24:32 +00:00
Atsushi Eno 479ce8b9a0 2009-07-31 Atsushi Enomoto <[email protected]>
* TcpChannelFactory.cs, TcpDuplexSessionChannel.cs,
	  TcpRequestChannel.cs : use Via uri to validate and connect.


svn path=/trunk/mcs/; revision=139162
2009-07-31 11:46:23 +00:00
Atsushi Eno 4215f77e2a 2009-07-31 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs, ClientBase.cs,
	  ChannelFactory_1.cs : now proxies take remote address and via uri
	  which could be optionally specified and use it whenever required.


svn path=/trunk/mcs/; revision=139161
2009-07-31 11:42:51 +00:00
Atsushi Eno 6940bbad21 2009-07-31 Atsushi Enomoto <[email protected]>
* RequestChannelBase.cs, DuplexChannelBase.cs :
	  Return endpoint address Uri when no explicit Via uri is specified.
	* ChannelFactoryBase.cs : Remove extra async close methods.
	  Add async open methods. Reject null EndpointAddress.
	* PeerChannelFactory.cs : remove async open methods (now in base).


svn path=/trunk/mcs/; revision=139160
2009-07-31 11:40:39 +00:00
Raja R Harinath f741a048f0 IList implementation: convert NullReferenceException to ArgumentException
* List.cs (IList.this.set): Convert NullReference and InvalidCast
exceptions into ArgumentExceptions.
(IList.Add, IList.Contains, IList.IndexOf, IList.Insert, IList.Remove):
Convert NullReferenceException to ArgumentException.
* ListTest.cs: Add a few testcases for IList interface, using null
values with a List<int>.

svn path=/trunk/mcs/; revision=139159
2009-07-31 10:25:04 +00:00
Atsushi Eno 99764f539c 2009-07-31 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : new file for [MC-PRCH].

	* System.ServiceModel.dll.sources: add IPeerConnectorContract.cs.


svn path=/trunk/mcs/; revision=139158
2009-07-31 09:27:47 +00:00
Atsushi Eno d8ccfe78c1 2009-07-31 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : set correct message endpoint (To header).


svn path=/trunk/mcs/; revision=139148
2009-07-31 05:23:02 +00:00
Atsushi Eno df8af8990c 2009-07-31 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
	  DuplexChannelBase.cs : set LocalAddress property at base.


svn path=/trunk/mcs/; revision=139147
2009-07-31 05:13:36 +00:00
Atsushi Eno da98a889f4 2009-07-31 Atsushi Enomoto <[email protected]>
* ServiceEndpoint.cs : ListenUri defaults to Address.Uri.

	* ServiceEndpointTest.cs : new.

	* System.ServiceModel_test.dll.sources: add ServiceEndpointTest.cs.


svn path=/trunk/mcs/; revision=139146
2009-07-31 05:09:24 +00:00
Rodrigo Kumpera 00abc35d4c 2009-07-30 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (IsDefined): Throw if not
	created and not in compiler context.

2009-07-30 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest: Test for IsDefined.

svn path=/trunk/mcs/; revision=139142
2009-07-31 02:46:00 +00:00
Rodrigo Kumpera b7758f888a 2009-07-30 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetNestedTypes): Throw if not
	created and not in compiler context.

svn path=/trunk/mcs/; revision=139137
2009-07-31 00:10:32 +00:00
Rodrigo Kumpera 04e8f61052 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetEvents): Throw if not created
	and not in compiler context.

	* TypeBuilder.cs (GetNestedType): Don't rely on
	MonoType implementation as it doesn't work if the
	nested type is defined after the TypeBuilder is
	created.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest: Test for GetNestedType.

svn path=/trunk/mcs/; revision=139136
2009-07-31 00:10:04 +00:00
Rodrigo Kumpera ac5d999caf 2009-07-30 Rodrigo Kumpera <[email protected]>
cil-opcodes.xml: Fix naming of stelem and ldelem to be
	the same of the spec. Fix stack effect of stelem. Change
	type of constrained and readonly prefixes.

2009-08-30  Rodrigo Kumpera  <[email protected]>

	* method-to-ir.c: Fix naming of stelem and ldelem.

2009-08-30  Rodrigo Kumpera  <[email protected]>

	* verify.c: Fix naming of stelem and ldelem.

svn path=/trunk/mono/; revision=139135
2009-07-31 00:04:16 +00:00
Gonzalo Paniagua Javier be2400e182 remove warnings
svn path=/trunk/mono/; revision=139134
2009-07-30 23:08:34 +00:00
Ankit Jain d38f12dd54 * ConsoleLogger.cs: Keep track of all the errors and warnings
and show them at the end.

svn path=/trunk/mcs/; revision=139127
2009-07-30 21:24:40 +00:00
Ankit Jain e2b6b480a7 * Target.cs (Build): Log a message if a target is skipped.
(LogMessage): New.
* BuildTask.cs (Execute): Log error if task execution fails.

svn path=/trunk/mcs/; revision=139126
2009-07-30 21:24:18 +00:00
Ankit Jain 28b1a41c68 * MSBuild.cs (Execute): Log error if the file doesn't exist.
svn path=/trunk/mcs/; revision=139125
2009-07-30 21:23:56 +00:00
Ankit Jain f9b9d05796 * ErrorUtilities.cs (ShowUsage): Implement.
svn path=/trunk/mcs/; revision=139124
2009-07-30 21:23:08 +00:00
Gonzalo Paniagua Javier 973bc25490 2009-07-30 Gonzalo Paniagua Javier <[email protected]>
* HttpResponseWrapper.cs: removed a few TODO/NotImplemented.
	Fixes bug #526297.


svn path=/trunk/mcs/; revision=139122
2009-07-30 21:20:30 +00:00
Gert Driesen 86f912a56e * SqlParameterTest.cs: Improved tests for bug #382589.
svn path=/trunk/mcs/; revision=139119
2009-07-30 19:56:59 +00:00
Mark Probst ec8cf09817 2009-07-30 Mark Probst <[email protected]>
* generic-sharing.c: Replace the templates lock with the loader
        lock because of very hard to resolve deadlock issues.

svn path=/trunk/mono/; revision=139118
2009-07-30 19:54:08 +00:00
Raja R Harinath 1e3534eca1 Test the Dictionary Keys and Values slices
* DictionaryTest.cs (KeyEnumerator_Current): New test.  Test the
Keys slice enumerator.
(ValueEnumerator_Current): Likewise, for the Values slice.

svn path=/trunk/mcs/; revision=139117
2009-07-30 19:47:53 +00:00
Gert Driesen 594407eb88 * SqlParameter.cs: Modified ConvertToFrameworkType to only perform
conversion if type of value is different from "system type". Make
DbTypeMapping hashtable available on 1.0 profile, and add missing
mappings. Wrap FormatException adding information on conversion
that failed.
* SqlParameterTest.cs: Added test for bug #526794, and failed
conversion from (zero-length) string to int. Changed spaces to tabs.

svn path=/trunk/mcs/; revision=139116
2009-07-30 19:42:59 +00:00
Raja R Harinath 876b8f2fb6 Fix Enumerator.Current handling in SortedDictionary<,>
* System.Collections.Generic/RBTree.cs (NodeEnumerator.check_current):
 New helper.
(NodeEnumerator.Current): Don't check invariants.
* SortedDictionary.cs (Enumerator.Current): Likewise.
(ValueCollection.Enumerator.Current): Likewise.
(KeyCollection.Enumerator.Current): Likewise.

* Test/System.Collections.Generic/SortedDictionaryTest.cs
(Enumerator_Current, KeyEnumerator_Current, ValueEnumerator_Current): New tests.

svn path=/trunk/mcs/; revision=139115
2009-07-30 19:42:04 +00:00
Raja R Harinath 6d523ef3e4 * List.cs (Enumerator.MoveNext): Simplify.
svn path=/trunk/mcs/; revision=139112
2009-07-30 19:04:39 +00:00
Raja R Harinath ac80cb8d8e * Dictionary.cs (Enumerator.MoveNext): Avoid an out-of-bounds access.
svn path=/trunk/mcs/; revision=139111
2009-07-30 19:04:14 +00:00
Zoltan Varga b7528a8ae7 2009-07-30 Zoltan Varga <[email protected]>
* driver.c (main_thread_handler): Check that the assembly loaded
	matches the filename when doing AOT.

svn path=/trunk/mono/; revision=139110
2009-07-30 18:36:30 +00:00
Raja R Harinath b0ce9fa874 * HashSet.cs (Enumerator.IEnumerator.Reset): Check invariants.
svn path=/trunk/mcs/; revision=139107
2009-07-30 18:03:20 +00:00
Raja R Harinath 16b5f90d63 Fix HashSet<>-related parts of #491858, #517415
* System.Collections.Generic/HashSet.cs (Enumerator.next): Rename from
Enumerator.current and change meaning to be the index of the slot to start
searching on the next iteration.
(Enumerator.current): New.  Contains the current element.
(Enumerator.MoveNext): Update.  Avoid an out-of-bounds access.
(Enumerator.Current): Don't check any invariants.
* Test/System.Collections.Generic/HashSetTest.cs (Enumerate_Current):
New test, including cases from #491858, #517415.

svn path=/trunk/mcs/; revision=139105
2009-07-30 17:49:41 +00:00
Veerapuram Varadhan e08e9acfcc 1.x build fix
svn path=/trunk/mcs/; revision=139098
2009-07-30 16:57:47 +00:00
Ankit Jain bf05078a49 * standalone/Project01/final-outputs.txt: Update to include obj/
dir also, and sort the list.

svn path=/trunk/mcs/; revision=139095
2009-07-30 16:17:44 +00:00
Gonzalo Paniagua Javier c676b64524 2009-07-30 Gonzalo Paniagua Javier <[email protected]>
* BuildManager.cs: path fixup should work now for /foo running on
	/foo. Fixes bug #526563.


svn path=/trunk/mcs/; revision=139093
2009-07-30 15:56:49 +00:00
Ankit Jain 9fd63e3517 Fix bug #484771.
* xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Add support
for $(OutDir).

svn path=/trunk/mcs/; revision=139092
2009-07-30 15:54:58 +00:00
Ankit Jain d5dd825784 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Engine.cs (.ctor): Set default BinPath. Currently this assumes
	v2.0, this will change when multi-targeting lands.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* EngineTest.cs (TestNewProject): Disable. Invalid for
	v3.5 profile.

svn path=/trunk/mcs/; revision=139089
2009-07-30 15:20:50 +00:00
Raja R Harinath ef326448f4 List<>-relevant fix for #491858 and #517415
* System.Collections.Generic/List.cs (Enumerator.current): New.
(Enumerator.MoveNext): Update it.
(Enumerator.Current): Don't verify any invariants.
(Enumerator.Dispose): Set 'l' to null.
* Test/System.Collections.Generic/ListTest.cs (Enumerator_Current):
New test, includes relevant parts of #491858 and #517415.

svn path=/trunk/mcs/; revision=139087
2009-07-30 14:55:24 +00:00
Veerapuram Varadhan 302d82e42d 2009-07-30 Veerapuram Varadhan <[email protected]>
** Fixes the issue reported by Scott <[email protected]> in Mono-list
	* SqlParameter.cs (ConvertToFrameworkType): Return String.Empty
	in case of zero-length strings.

svn path=/trunk/mcs/; revision=139086
2009-07-30 14:32:52 +00:00
Veerapuram Varadhan 9d78eb395e 2009-07-30 Veerapuram Varadhan <[email protected]>
* CustomDataClassGenerator.cs (MakeSafeName): Throw NRE instead of
	ArgumentNullException - fixes failing tests.

svn path=/trunk/mcs/; revision=139085
2009-07-30 14:32:29 +00:00
Jérémie Laval b5d889b654 Author: Jérémie Laval <[email protected]>
Date:   Thu Jul 30 15:37:21 2009 +0200

First code drop of ParallelFx.

svn path=/trunk/mcs/; revision=139083
2009-07-30 13:56:32 +00:00
Raja R Harinath a22621964d Fix Dictionary<,>-relevant parts of #491858 and #517415
* System.Collections.Generic/Dictionary.cs (Enumerator.current): New.
(Enumerator.MoveNext): Update it.
(Enumerator.Current): Don't verify any invariants.
* Test/System.Collections.Generic/DictionaryTest.cs (Enumerator_Current):
New test, includes relevant parts of #491858 and #517415.

svn path=/trunk/mcs/; revision=139082
2009-07-30 13:52:39 +00:00
Ankit Jain b560a41ec9 * ErrorUtilities.cs: Set version to Consts.MonoVersion .
svn path=/trunk/mcs/; revision=139081
2009-07-30 13:47:26 +00:00
Veerapuram Varadhan 6a4a2997d8 2009-07-30 Veerapuram Varadhan <[email protected]>
* SqlDataAdapter.cs (IDbDataAdapter.*Command): Remove over-engineered
	checks as the base implementation is changed.

svn path=/trunk/mcs/; revision=139080
2009-07-30 13:41:31 +00:00
Marek Safar db15ad807c Updated.
svn path=/trunk/mcs/; revision=139079
2009-07-30 13:32:08 +00:00
Marek Safar 168b365892 2009-07-30 Marek Safar <[email protected]>
* expression.cs: More verifier work.


svn path=/trunk/mcs/; revision=139078
2009-07-30 13:31:41 +00:00
Marek Safar b54ac55eab 2009-07-30 Marek Safar <[email protected]>
* AppDomain.cs: Implemented 2.0 CreateDomain.


svn path=/trunk/mcs/; revision=139077
2009-07-30 13:27:12 +00:00
Marek Safar ff23ffb22f 2009-07-30 Marek Safar <[email protected]>
* ApplicationTrust.cs: Add FullTrustAssemblies.


svn path=/trunk/mcs/; revision=139076
2009-07-30 13:23:09 +00:00
Marek Safar a4a749d6a3 2009-07-30 Marek Safar <[email protected]>
* ReflectionPermission.cs: RestrictedMemberAccess can be set.

	* ReflectionPermissionFlag.cs: Add [Obsolete] on NET_4_0.


svn path=/trunk/mcs/; revision=139075
2009-07-30 13:19:58 +00:00
Ankit Jain c437ca8cfb * xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Output
ResolvedFiles to @(ReferencePath), required for IDE integration.

svn path=/trunk/mcs/; revision=139074
2009-07-30 13:12:07 +00:00
Ankit Jain b71aeab593 * ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
required for IDE integration.
* AssemblyResolver.cs (GetResolvedReference): All the original metadata
should be retained. Track api changes.

svn path=/trunk/mcs/; revision=139073
2009-07-30 13:10:54 +00:00
Veerapuram Varadhan 543d5aad8e Conflict merge between trunk/local tree
svn path=/trunk/mcs/; revision=139072
2009-07-30 12:38:11 +00:00
Veerapuram Varadhan 5c9d9ec104 2009-07-29 Veerapuram Varadhan <[email protected]>
* SqlParameterTest.cs: Marked SqlChars/SqlBytes tests for SqlValue
        as NotWorking as these types are considered as SqlString/SqlBinary
        respectively.

svn path=/trunk/mcs/; revision=139071
2009-07-30 12:37:57 +00:00
Veerapuram Varadhan d1dd7697ac 2009-07-29 Veerapuram Varadhan <[email protected]>
* SqlDataAdapter.cs (IDbDataAdapter.*Command): Revert some of my earlier
	changes.  Validate the incoming value as we use bases' implementation now.
	Fixes failing tests.

	* SqlParameter.cs (GetSqlValue): Simplify handling of SqlValue and SqlTypes.
	(SqlTypeToFramworkType): Added support for SqlChars and SqlBytes types.

svn path=/trunk/mcs/; revision=139070
2009-07-30 12:37:44 +00:00
Veerapuram Varadhan 741394be33 2009-07-29 Veerapuram Varadhan <[email protected]>
* DbDataAdapter.cs (*Command properties): Don't call IDbDataAdapter.*Command,
	as provider specific DbDataAdapters would have its own implementation.

svn path=/trunk/mcs/; revision=139069
2009-07-30 12:37:30 +00:00
Veerapuram Varadhan f866c62874 2009-07-28 Gert Driesen <[email protected]>
* More clean up of fix for #522624/#507663
	* SqlCommandBuilder.cs: Appropriately handle rowUpdatingHandler and
	more cleanup for 2.0 profile.

svn path=/trunk/mcs/; revision=139068
2009-07-30 12:37:15 +00:00
Veerapuram Varadhan 9c7e6d31d1 2009-07-27 Veerapuram Varadhan <[email protected]>
* DbCommandBuilder.cs (CreateUpdateCommand): Don't set Nullable
	property "Original_*" fields.

svn path=/trunk/mcs/; revision=139067
2009-07-30 12:36:57 +00:00
Veerapuram Varadhan d3e0a1b198 2009-07-26 Veerapuram Varadhan <[email protected]>
* SqlParameter.cs (get/set_SqlValue, GetSqlValue): Return the appropriately
	SQL-typed param value.  Fixes failing provider tests.

svn path=/trunk/mcs/; revision=139066
2009-07-30 12:36:37 +00:00
Veerapuram Varadhan 15afef1475 2009-07-24 Veerapuram Varadhan <[email protected]>
* DbCommandBuilder.cs (Create*Command): Fill up the missing pieces from
	SqlCommandBuilder version of Create*Commands that fixes the failing tests.

svn path=/trunk/mcs/; revision=139065
2009-07-30 12:36:23 +00:00
Veerapuram Varadhan ea3ee3d074 Test fix.
svn path=/trunk/mcs/; revision=139064
2009-07-30 12:36:07 +00:00
Veerapuram Varadhan 8d5211d815 conflict fix between trunk and local tree
svn path=/trunk/mcs/; revision=139063
2009-07-30 12:35:52 +00:00
Veerapuram Varadhan bb222be3f8 2009-07-25 Veerapuram Varadhan <[email protected]>
* SqlDataReader.cs: Added new schema fields to the schema row.
	Fixes a failing provider test.

svn path=/trunk/mcs/; revision=139062
2009-07-30 12:35:33 +00:00
Veerapuram Varadhan cee0485905 2009-07-25 Veerapuram Varadhan <[email protected]>
* Fixes #507663
	* SqlCommandBuilder.cs: From 2.0 onwards, use base's
	implementation for handling auto-generated commands.
	* SqlDataAdapter.cs: -- ditto --

svn path=/trunk/mcs/; revision=139061
2009-07-30 12:35:12 +00:00
Atsushi Eno 4a35a807f1 2009-07-30 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing refactoring to work both as
	  listener and client. Now it creates a listening peer node, and
	  creates a set of TCP client channels for each peer in the mesh.

	  (EndpointAddress must be fixed to not filter out correct inputs).

	* PeerNode.cs : remove TCP listener creator.
	  It is now in PeerDuplexChannel.


svn path=/trunk/mcs/; revision=139059
2009-07-30 11:40:52 +00:00
Atsushi Eno 9915ebcd27 2009-07-30 Atsushi Enomoto <[email protected]>
* PeerChannelListener.cs : do not accept more than one channel
	  which results in lots of listening peer node. Only one is enough.


svn path=/trunk/mcs/; revision=139058
2009-07-30 11:35:23 +00:00
Zoltan Varga 2c6415356b 2009-07-30 Zoltan Varga <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Use
	mono_class_get_vtable_size () instead of accessing klass->vtable_size
	directly. Fixes #525338.

	* class.c (mono_class_get_vtable_size): New helper function.

svn path=/trunk/mono/; revision=139057
2009-07-30 11:33:03 +00:00
Zoltan Varga 295d696d9b 2009-07-30 Zoltan Varga <[email protected]>
* FieldInfoTest.cs: Add a test for #525733.

svn path=/trunk/mcs/; revision=139055
2009-07-30 11:20:57 +00:00
Raja R Harinath 7d47e782a0 Make CreateConcreteTypeWithAbstractMethod testcase compile
svn path=/trunk/mcs/; revision=139054
2009-07-30 11:19:56 +00:00
Zoltan Varga 281f6e73c9 2009-07-30 Zoltan Varga <[email protected]>
* FieldInfo.cs: Throw an exception if internal_from_handle_type ()
	returns null. Fixes #525733.

svn path=/trunk/mcs/; revision=139053
2009-07-30 11:15:14 +00:00
Zoltan Varga ffaaace601 2009-07-30 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle_type): Fix the second argument, its a MonoType* not a MonoClass*. Check whenever
	the field belongs to the type. Fixes #525733.

svn path=/trunk/mono/; revision=139052
2009-07-30 11:12:35 +00:00
Mark Probst 23829102af 2009-07-30 Mark Probst <[email protected]>
* mono-sigcontext.h: Include config.h.

2009-07-30  Mark Probst  <[email protected]>

	* sgen-gc.c: When we stop a thread and its stack top is not within
	its allocated stack (because it's in an altstack signal handler),
	restart it and stop it again, until it is.

svn path=/trunk/mono/; revision=139047
2009-07-30 10:29:14 +00:00
Mark Probst eaa4a2f70b 2009-07-30 Mark Probst <[email protected]>
* mono-sigcontext.h, Makefile.am: Arch-dependent sigcontext
	macros, moved from mini.

2009-07-30  Mark Probst  <[email protected]>

	* sgen-gc.c: Take a thread's stack top and registers from the
	sigcontext in the suspend signal handler.

	* sgen-gc.h, sgen-archdep.h, Makefile.am: Move arch-dependent
	stuff to sgen-archdep.h.

	* gc.c, gc-internal.h: Remove the get_ip_from_sigctx installer and
	caller, because have code in sgen-archdep.h to acquire that data.

2009-07-30  Mark Probst  <[email protected]>

	* mini.c: get_ip_from_sigctx installer has been removed, so don't
	call it anymore.

	* mini-x86.h, mini-amd64.h, mini-ppc.h: UCONTEXT macros moved (to
	utils/mono-sigcontext.h).

	* exceptions-amd64.c: Use the UCONTEXT_GREGS macro instead of an
	#ifdef.

svn path=/trunk/mono/; revision=139045
2009-07-30 10:03:57 +00:00
Raja R Harinath 7f5f04aa65 Add a sanity-check to catch cyclic-dependency issues
* build/library.make (SNFLAGS): Remove '-R', since it's specific to the
action required.
($(build_lib)): Use -R flag with $(SN).
($(the_lib)): Add a sanity check to verify that the assembly is signed.
* tools/csharplib/Makefile ($(the_lib)): Update to changes in build/library.make.

svn path=/trunk/mcs/; revision=139041
2009-07-30 09:07:12 +00:00
Raja R Harinath 1c79419713 * Makefile ($(build_lib)): Move cyclic dependencies onto this.
svn path=/trunk/mcs/; revision=139040
2009-07-30 09:02:30 +00:00
Atsushi Eno 311d3c0e86 2009-07-30 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs : fix wrong loop implementation.


svn path=/trunk/mcs/; revision=139033
2009-07-30 07:49:45 +00:00
Ankit Jain f53b1e3350 * ReadLinesFromFile.cs (Execute): Log a warning instead of an error
if unable to read from the file. Fix a null check. Always return
true.

svn path=/trunk/mcs/; revision=139017
2009-07-29 23:28:41 +00:00
Ankit Jain f0784c71ea In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Project.cs (InitializeProperties) Set 'MSBuildProjectFile' and
	'MSBuildProjectName' properties.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* Delete.cs (Execute): Log a message when deleting a file.

In tools/xbuild:

	* xbuild/Microsoft.Common.targets: Implement 'Clean' target. Currently
	just handles clean for a full build.

svn path=/trunk/mcs/; revision=139013
2009-07-29 22:24:32 +00:00
Rodrigo Kumpera 2ef395d58f 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetConstructors): Throw if
	TypeBuilder is incomplete.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs (initialize): Call TypeBuilder::GetConstructorsInternal
	since the public version throws.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest: Test for GetConstructors.

svn path=/trunk/mcs/; revision=139009
2009-07-29 22:04:02 +00:00
Rodrigo Kumpera 9dae2c14ec 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetInterfaces): Return the expanded
	interface list if the type has been created.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest: Test for GetInterfaces.

svn path=/trunk/mcs/; revision=139008
2009-07-29 22:03:34 +00:00
Rodrigo Kumpera 7be2042377 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetGenericArguments): Returns null for
	 non generic TypeBuilders.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest: Test for GetGenericArguments.

svn path=/trunk/mcs/; revision=139007
2009-07-29 22:03:03 +00:00
Rodrigo Kumpera 9750d4a7d7 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetElementType): Throw always.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest.cs: Test for GetElementType.

svn path=/trunk/mcs/; revision=139006
2009-07-29 22:02:30 +00:00
Rodrigo Kumpera ba0cfe0ee9 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetGenericTypeDefinition): Either
	throw or return itself.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest.cs: Test for GetGenericTypeDefinition.

svn path=/trunk/mcs/; revision=139005
2009-07-29 22:02:00 +00:00
Rodrigo Kumpera 03316f88b7 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GenericParameterPosition): Return 0
	instead of throwing.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest.cs: Test for GenericParameterPosition.

svn path=/trunk/mcs/; revision=139004
2009-07-29 22:01:31 +00:00
Rodrigo Kumpera 93fb7cb54a 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (DeclaringMethod): Return null
	instead of throwing.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest.cs: Test for DeclaringMethod.

svn path=/trunk/mcs/; revision=139003
2009-07-29 22:01:02 +00:00
Sebastien Pouliot 4e3edc4e1f hopefully fix the build (from clean)
svn path=/trunk/mcs/; revision=138996
2009-07-29 20:34:10 +00:00
Atsushi Eno d50ee44924 2009-07-28 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs : to avoid creating two or more channels
	  for one remote endpoint, check existing remote endpoints and
	  ignore such connections (it must be handled in different thread
	  fired by ChannelDispatcher loop).

	* ChannelDispatcher.cs : move Open() inside acceptor lock, so that
	  the channel does not have to be fired Receive() before Open().


svn path=/trunk/mcs/; revision=138986
2009-07-29 19:02:40 +00:00
Massimiliano Mantione cb619ab477 Keep track of cexecutable code buffers in the runtime instead of using mono_jit_info_table_find().
svn path=/trunk/mono/; revision=138980
2009-07-29 18:43:43 +00:00
Massimiliano Mantione f33ab472f1 Call profiler hook to keep track of method code buffers.
svn path=/trunk/mono/; revision=138979
2009-07-29 18:43:39 +00:00
Massimiliano Mantione 411d518b71 Call profiler hooks to keep track of code chunks.
svn path=/trunk/mono/; revision=138978
2009-07-29 18:43:29 +00:00
Massimiliano Mantione 584596c0fd Added support for keeping track of code chunks and buffers.
svn path=/trunk/mono/; revision=138977
2009-07-29 18:43:25 +00:00
Marek Safar 71c3dff91c Fixes build.
svn path=/trunk/mcs/; revision=138972
2009-07-29 17:12:18 +00:00
Marek Safar dbb7381c34 2009-07-29 Marek Safar <[email protected]>
* nullable.cs: Fixed SRE crash during corlib compilation.


svn path=/trunk/mcs/; revision=138971
2009-07-29 16:57:22 +00:00
Miguel de Icaza a6823f34ca Update man page
svn path=/trunk/mono/; revision=138964
2009-07-29 15:14:19 +00:00
Marek Safar 36ec58d6f4 Add 4.0 profile
svn path=/trunk/mcs/; revision=138960
2009-07-29 13:57:36 +00:00
Marek Safar 907bca6614 Use correct naming, add 4.0 profile
svn path=/trunk/mcs/; revision=138957
2009-07-29 13:53:27 +00:00
Marek Safar e1198af4d6 2009-07-29 Marek Safar <[email protected]>
* compiler-tester.cs: Add predefined file masks.


svn path=/trunk/mcs/; revision=138955
2009-07-29 13:51:33 +00:00
Rodrigo Kumpera 5fae23e310 2009-07-29 Rodrigo Kumpera <[email protected]>
* Makefile: Fix mac build and dependencies.
	Add new file.

	* cli-blob-tests.md: stand-alone-method-sig tests now use
	a separate input file with a single standalone sig so it's
	no longer dependent on ilasm ordering.

	* assembly-with-calli.il: New file with a single standalone
	signature.

svn path=/trunk/mono/; revision=138953
2009-07-29 13:40:26 +00:00
Rodrigo Kumpera c4384675fb 2009-07-29 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Fix endianness problems on decoding functions.
	Based on a patch by Ulrich Weigand <[email protected]>

svn path=/trunk/mono/; revision=138952
2009-07-29 13:40:15 +00:00
Marek Safar 8cc18f36a6 2009-07-29 Marek Safar <[email protected]>
* generic.cs, typemanager.cs, decl.cs, iterators.cs, convert.cs,
	nullable.cs, expression.cs, ecore.cs, class.cs, attribute.cs:
	More TypeManager.TypeToCoreType needed.


svn path=/trunk/mcs/; revision=138951
2009-07-29 13:26:40 +00:00
Marek Safar becff01e57 Forget to commit.
svn path=/trunk/mcs/; revision=138949
2009-07-29 12:58:40 +00:00
Marek Safar 095de6fc98 2008-07-29 Marek Safar <[email protected]>
* MonoGenericClass.cs: Removed one IsCompilerContext hack.


svn path=/trunk/mcs/; revision=138948
2009-07-29 12:55:02 +00:00
Marek Safar 4ddfd0fa68 2009-07-29 Marek Safar <[email protected]>
* anonymous.cs: Update after recent SRE fixes.


svn path=/trunk/mcs/; revision=138947
2009-07-29 12:52:19 +00:00
Atsushi Eno 637dfea50e 2009-07-28 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs : make sure to not try to receive request when
	  it is already closed.


svn path=/trunk/mcs/; revision=138928
2009-07-29 09:48:15 +00:00
Atsushi Eno a73150931d 2009-07-28 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
	  some mannerless clients [*1] do not send EndRecord accordingly, but
	  such channels at listener side should not be kept open. So, close
	  disconnected channels when the listener needs to accept another
	  one.
	  [*1] see olive/samples/wcf/clientbase/samplecli4.cs.


svn path=/trunk/mcs/; revision=138923
2009-07-29 08:39:22 +00:00
Atsushi Eno 9680fe4fc6 2009-07-28 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs :
	  Remove extra NIE overrides.
	  Implement OnAbort() apart from OnClose().
	  For duplex session channel, unlike reply channel, it must acquire
	  TCP connection before OnOpen(), otherwise ChannelDispatcher
	  releases the connection acceptance WaitHandle and the detected
	  live connection may be stolen by another channel acceptor.


svn path=/trunk/mcs/; revision=138915
2009-07-29 05:26:39 +00:00
Rodrigo Kumpera e4ce9c740f 2009-07-28 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (CreateType): Throw if concrete
	type has abstract method.

2009-07-28 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest.cs: Test for concrete type with
	abstract method.

svn path=/trunk/mcs/; revision=138913
2009-07-29 03:02:47 +00:00
Rodrigo Kumpera 1d16127979 2009-07-28 Rodrigo Kumpera <[email protected]>
* GenericTypeParameterBuilder.cs: SetBaseTypeConstraint with
	null argument is the same as passing typeof (object).

2009-07-28 Rodrigo Kumpera  <[email protected]>

	* GenericTypeParameterBuilderTest.cs: Test for BaseType
	and SetBaseTypeConstraint.

svn path=/trunk/mcs/; revision=138911
2009-07-29 02:04:15 +00:00
Rodrigo Kumpera 6dec7be9bf 2009-07-28 Rodrigo Kumpera <[email protected]>
TypeTest.cs: Fix the test.

svn path=/trunk/mcs/; revision=138910
2009-07-29 02:03:50 +00:00
Rodrigo Kumpera 78e076db59 2009-07-28 Rodrigo Kumpera <[email protected]>
Type.cs (MakeArrayType): Handle one-dym multidimensional array
	created with Type::MakeArrayType (1).

svn path=/trunk/mcs/; revision=138908
2009-07-29 00:43:04 +00:00
Rodrigo Kumpera a6b0d06329 2009-07-28 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs (ArrayType): Special case vector arrays using zero
	 as rank. This is required because we need to make the distinction
	between a vector and a one dimension SZARRAY.

	* EnumBuilder.cs: Create vectors as rank-zero ArrayType objects.

 	* TypeBuilder.cs: Same.

	* GenericTypeParameterBuilder.cs: Same.

2009-07-28 Rodrigo Kumpera  <[email protected]>

	* DerivedTypesTests.cs: Add test for the distinction between
	vector and one-dimension SZARRAY.

svn path=/trunk/mcs/; revision=138907
2009-07-29 00:42:38 +00:00
Rodrigo Kumpera 2fbbd92309 2009-07-28 Rodrigo Kumpera <[email protected]>
DerivedTypes.cs: ByRef and Pointer types return Array as base
	type.

2009-07-28 Rodrigo Kumpera  <[email protected]>

	DerivedTypesTest.cs: ByRef and Pointer types return Array as base
	type.

svn path=/trunk/mcs/; revision=138906
2009-07-29 00:42:11 +00:00
Rodrigo Kumpera 9b235bf409 2009-07-28 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_make_array_type): Handle the new encoding
	schema for vectors and one dimension SZARRAY.

svn path=/trunk/mono/; revision=138905
2009-07-29 00:41:57 +00:00
Rodrigo Kumpera 83b1af3f3d 2009-07-28 Rodrigo Kumpera <[email protected]>
* Type.cs (FindMembers): Fix the ordering of returned members
	to method, ctor, property, event, field and nested type.

svn path=/trunk/mcs/; revision=138904
2009-07-29 00:41:44 +00:00
Rodrigo Kumpera 1a07e4c017 2009-07-28 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_reflection_type_get_handle): Handle the new encoding
	schema for vectors and one dimension SZARRAY.

svn path=/trunk/mono/; revision=138903
2009-07-29 00:41:42 +00:00
Sebastien Pouliot 68dbce7f7b 2009-07-28 Sebastien Pouliot <[email protected]>
* CryptoConfig_2_1.cs: Add SHA1 support in MapNameToOID in order to
	be able to verify the codecs signature integrity.


svn path=/trunk/mcs/; revision=138901
2009-07-28 23:39:31 +00:00
Ankit Jain b402153f22 Fix the Exec task to work correctly.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* Exec.cs (AddCommandLineCommands): First word from @command is treated
	as exec name, and rest as arguments. Extract arguments here.
	(ExecuteTool): Don't ignore params.
	(GenerateFullPathToTool): Extract first word as tool name.
	(HandleTaskExecutionErrors): Honor IgnoreExitCode property.
	(LogEventsFromTextOutput): Log as messages.
	* ManagedCompiler.cs (HandleTaskExecutionErrors): Implement.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:

	* ToolTask (.ctor): Initialize Timeout value.
	(Execute): Use HandleTaskExecutionErrors to determine task result. Set
	exitCode to the result of ExecuteTool and let HandleTaskExecutionErrors
	determine final result of the task.
	(RealExecute): Rename to ..
	(ExecuteTool): .. this. @responseFileCommands could be empty.
	Use specified timeout value for the executing tool.
	Rename 'compilerOutput' to 'toolOutput'. Cleanup resources in the
	finally block. Move processing of stdout/stderr output to ..
	(ProcessOutputFile): .. here and ..
	(LogEventsFromTextOutput): .. here.
	(HandleTaskExecutionErrors): Implement.
	(DeleteTempFile): Implement.

svn path=/trunk/mcs/; revision=138900
2009-07-28 23:37:24 +00:00
Ankit Jain f987a2a36c * xbuild/Microsoft.Common.targets: Add missing 'SkipUnchangedFiles=true'
for the Copy tasks.
(CopyDeployFiles*): Fix typos, Add inputs/outputs for the
PreserveNewest case and remove for copy always case.

svn path=/trunk/mcs/; revision=138899
2009-07-28 23:36:54 +00:00
Ankit Jain 16bd64b93b * TaskEngine.cs (Prepare): Fix formatting mistake.
* ConsoleLogger.cs: Emit "-- FAILED" also when project/target building
fails. Also, emit result of project at Normal verbosity level.

svn path=/trunk/mcs/; revision=138897
2009-07-28 23:35:44 +00:00
Marek Safar 8c3af1301d 2009-07-28 Marek Safar <[email protected]>
* DynamicMethod.cs: Pass skipVisibility.


svn path=/trunk/mcs/; revision=138886
2009-07-28 22:07:01 +00:00
Mike Gorse e941c13250 * ToolStripMenuItem.cs: Added UIA CheckOnClickChanged event.
svn path=/trunk/mcs/; revision=138874
2009-07-28 20:30:53 +00:00
Gonzalo Paniagua Javier de80b74af3 2009-07-28 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: rethrow WebExceptions instead of creating a new one
	with less information on the actual error.
	Fixes bug #526069.


svn path=/trunk/mcs/; revision=138855
2009-07-28 17:26:51 +00:00
Gert Driesen 1925fbede7 * SqlCommandTest.cs: Improved test for invalid statement to cover
CloseConnection behavior.
* SqlCommand.cs: Ensure connection is closed if CloseConnection
behavior is set, and reader could not be created.

svn path=/trunk/mcs/; revision=138854
2009-07-28 17:24:35 +00:00
Gonzalo Paniagua Javier ee3b324a2c fix the build
svn path=/trunk/mcs/; revision=138852
2009-07-28 16:31:24 +00:00
Atsushi Eno 016ed4186e 2009-07-28 Astushi Enomoto <[email protected]>
* System.ServiceModel.dll.sources: add TransactionFlowAttribute.cs.

	* TransactionFlowAttribute.cs : new file.


svn path=/trunk/mcs/; revision=138842
2009-07-28 14:47:42 +00:00
Atsushi Eno 635e545cbd 2009-07-28 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs : implement some remaining members.
	  Remove null argument check and make setter optional.


svn path=/trunk/mcs/; revision=138841
2009-07-28 14:41:43 +00:00
Atsushi Eno db61e675d7 2009-07-28 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : implement OnAbort().


svn path=/trunk/mcs/; revision=138839
2009-07-28 14:38:17 +00:00
Carlos Alberto Cortez 32bde1cb72 2009-07-28 Carlos Alberto Cortez <[email protected]>
* Application.cs: Make FilterMessage internal for 1.1. Fixes the 1.1 build.


svn path=/trunk/mcs/; revision=138834
2009-07-28 13:48:25 +00:00
Marek Safar b0c6700e4a Updated.
svn path=/trunk/mcs/; revision=138833
2009-07-28 13:32:27 +00:00
Marek Safar 67b1f1022c 2009-07-28 Marek Safar <[email protected]>
* typemanager.cs, expression.cs, ecore.cs, delegate.cs: Use correct
	version of GetFieldHandle for fields of generic types.


svn path=/trunk/mcs/; revision=138832
2009-07-28 13:32:11 +00:00
Carlos Alberto Cortez 1804709f3c * XplatUIX11.cs:
* XplatUIWin32.cs: We need to filter the messages using
	Application.FilterMessage for our DoEvents implementations. Observe
	that I don't like the idea of XplatUI call the upper level Application
	class, but at this point is easier and simpler to do this call - based
	on the fact it's only one simple call.
	Fixes #516735.

2009-07-28  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=138826
2009-07-28 12:24:04 +00:00
Marek Safar 7995a39a83 Fixes build.
svn path=/trunk/mcs/; revision=138825
2009-07-28 12:03:40 +00:00
Carlos Alberto Cortez 92101ff506 2009-07-28 Carlos Alberto Cortez <[email protected]>
* TreeNodeCollection.cs: When removing the selected node, set the
	SelectedNode value of TreeView to null if there aren't more nodes left - 
	this is better than to clear the selected node in Clear, since we need
	to handle the situation in the Remove methods as well.
	Fixes #525002.


svn path=/trunk/mcs/; revision=138824
2009-07-28 12:02:09 +00:00
Jb Evain c5a93694dd fix the build
svn path=/trunk/mcs/; revision=138794
2009-07-28 08:14:49 +00:00
Jb Evain ff389637a3 2009-07-28 Jb Evain <[email protected]>
* Mono.Cecil/AssemblyStripper.cs: Make all methods share
	the same body.
	


svn path=/trunk/mcs/; revision=138791
2009-07-28 07:59:05 +00:00
Miguel de Icaza e13c611802 2009-07-28 Miguel de Icaza <[email protected]>
* UTF8Encoding.cs: Small optimization, reuse the static
	EncoderFallback and DecoderFallback instead of creating new ones. 

svn path=/trunk/mcs/; revision=138787
2009-07-28 05:06:31 +00:00
Miguel de Icaza 9afbbceb72 2009-07-28 Miguel de Icaza <[email protected]>
* UTF8Encoding.cs: Use Equals to compare the objects as the
	fallback objects do not overload operator ==.    The comparison
	was previously failing.

svn path=/trunk/mcs/; revision=138786
2009-07-28 05:04:08 +00:00
Gonzalo Paniagua Javier f838727b8f 2009-07-28 Gonzalo Paniagua Javier <[email protected]>
* HttpApplicationFactory.cs: allow subclasses of EventHandler for
	event handlers in global.asax.
	Fixes bug #525743.


svn path=/trunk/mcs/; revision=138784
2009-07-28 04:55:07 +00:00
Atsushi Eno fb60368a09 2009-07-28 Atsushi Enomoto <[email protected]>
* OutgoingWebRequestContext.cs : implement.

	* WebMessageFormatter.cs : apply OutgoingRequest if available.


svn path=/trunk/mcs/; revision=138782
2009-07-28 03:21:20 +00:00
Rodrigo Kumpera 5665bc31c9 2009-07-27 Rodrigo Kumpera <[email protected]>
* Assembly.cs (GetType): Throw if name is empty.

2009-07-27 Rodrigo Kumpera  <[email protected]>

	* AssemblyTest.cs: Add test for empty string passed to
	Assembly::GetType.

svn path=/trunk/mcs/; revision=138780
2009-07-28 02:00:05 +00:00
Rodrigo Kumpera 71a3174faa 2009-07-27 Rodrigo Kumpera <[email protected]>
OpCode.cs: HashCode is meant to be calculated based on Name.

	OpCodeNames.cs: Fix some names.

	OpCodes.cs: Fix Stelem, Constrained and Readonly specs.

svn path=/trunk/mcs/; revision=138776
2009-07-27 23:10:13 +00:00
Rodrigo Kumpera d3d3ba84b9 2009-07-27 Rodrigo Kumpera <[email protected]>
* EventInfo (RemoveEventHandler): Throw InvalidOperationException if the
	event remove method is not visible.

2009-07-27 Rodrigo Kumpera  <[email protected]>

	* EventInfoTest.cs: Add test for private event and
	RemoveEventHandler.

svn path=/trunk/mcs/; revision=138773
2009-07-27 21:43:13 +00:00
Rodrigo Kumpera d6241c123d 2009-07-27 Rodrigo Kumpera <[email protected]>
* EventInfo (AddEventHandler): Throw TargetException if target is not cast
	compatible.

	* EventInfo (AddEventHandler): Throw InvalidOperationException if the
	event add method is not visible.

	* EventInfo (AddEventHandler): Throw TargetException if source is null
	and the event is not static.

2009-07-27 Rodrigo Kumpera  <[email protected]>

	* EventInfoTest.cs: Add test for cast incompatible type.

	* EventInfoTest.cs: Add test for private event.

	* EventInfoTest.cs: Add test for null target for non static
	event.

svn path=/trunk/mcs/; revision=138772
2009-07-27 21:42:50 +00:00
Marek Safar 27f45f2fa5 2009-07-27 Marek Safar <[email protected]>
* typemanager.cs, argument.cs, convert.cs, assign.cs, expression.cs,
	ecore.cs: Add TypeManager.IsDynamicType,
	PredefinedAttributes.Dynamic.


svn path=/trunk/mcs/; revision=138753
2009-07-27 17:32:39 +00:00
Marek Safar a8aa6faa9a 2009-07-27 Marek Safar <[email protected]>
* typemanager.cs, argument.cs, convert.cs, assign.cs, expression.cs,
	ecore.cs: Add TypeManager.IsDynamicType.


svn path=/trunk/mcs/; revision=138749
2009-07-27 17:00:20 +00:00
Marek Safar 9c81481874 New test.
svn path=/trunk/mcs/; revision=138748
2009-07-27 16:30:53 +00:00
Marek Safar 6291f14bd3 2009-07-27 Marek Safar <[email protected]>
A fix for bug #415375
	* expression.cs: Fixed object and reference type parameter
	comparison.


svn path=/trunk/mcs/; revision=138747
2009-07-27 16:30:00 +00:00
Marek Safar 2afff0eb75 2009-07-27 Marek Safar <[email protected]>
A fix for bug #415375
	* expression.cs: Fixed object and reference type parameter
	comparison.


svn path=/trunk/mcs/; revision=138740
2009-07-27 15:53:51 +00:00
Gonzalo Paniagua Javier a1b4d6f1c7 2009-07-27 Gonzalo Paniagua Javier <[email protected]>
* ArrayTest.cs: new LastIndexOf test for 0-length arrays.


svn path=/trunk/mcs/; revision=138735
2009-07-27 15:35:42 +00:00
Gonzalo Paniagua Javier 60cf83789b 2009-07-27 Gonzalo Paniagua Javier <[email protected]>
* Array.cs: empty arrays just return -1 in LastIndexOf().


svn path=/trunk/mcs/; revision=138733
2009-07-27 15:35:30 +00:00
Marek Safar ee395c76f5 New test.
svn path=/trunk/mcs/; revision=138732
2009-07-27 15:14:36 +00:00
Marek Safar 923ab6cf34 2009-07-27 Marek Safar <[email protected]>
A fix for bug #525342
	* class.cs: Attach partial method attributes to method
	implementation.


svn path=/trunk/mcs/; revision=138731
2009-07-27 15:14:17 +00:00
Miguel de Icaza 101b01ea67 2009-07-27 Miguel de Icaza <[email protected]>
* Value types implementing IConvertible.ToType now throw an
	ArgumentNullException if they are passed a null as the
	"targetType" argument.

	This code can not be put directly in the Convert.ToType method, as
	this method is used by Convert.ToType (object o, TypeCode tc)
	which uses null as a target to throw a different kind of error
	(InvalidCastException).

	Fixes a few more bugs in the Silverlight BCL test suite.

	Additionally, the parameter type has been renamed.

svn path=/trunk/mcs/; revision=138730
2009-07-27 14:55:16 +00:00
Mark Probst bfe949041c 2009-07-27 Mark Probst <[email protected]>
* icall-def.h, thread-types.h, threads.c: New separate icalls for
        Interlocked.(Compare)Exchange with object arguments, which invoke
        write barriers.

2009-07-27  Mark Probst  <[email protected]>

        * method-to-ir.c: Invoke write barriers for the
        Interlocked.(Compare)Exchange JIT intrinsics.

svn path=/trunk/mono/; revision=138722
2009-07-27 11:28:11 +00:00
Miguel de Icaza 4bd75f536e 2009-07-26 Miguel de Icaza <[email protected]>
* Type.cs: (GetMember) call directly the worker method, instead of
	calling through an intermediary.

	(GetMember, full): throw if the name is null.

svn path=/trunk/mcs/; revision=138710
2009-07-27 00:09:11 +00:00
Miguel de Icaza 722d660422 2009-07-26 Miguel de Icaza <[email protected]>
* ILGenerator.cs: Fix the exception thrown when LocalBuilders are
	mixed between ILGenerators.

svn path=/trunk/mcs/; revision=138709
2009-07-26 23:48:12 +00:00
Miguel de Icaza c47371fdc3 2009-07-26 Miguel de Icaza <[email protected]>
* icall.c (ves_icall_Type_GetNestedType): Throw an exception when
	passed invalid arguments.   Fixes another crasher in the
	Silverlight test suite.

svn path=/trunk/mono/; revision=138708
2009-07-26 23:31:12 +00:00
Miguel de Icaza 4f2e0e8cb7 Add new test
svn path=/trunk/mcs/; revision=138707
2009-07-26 22:44:29 +00:00
Miguel de Icaza 8fa761a5c6 2009-07-26 Miguel de Icaza <[email protected]>
* class.c (mono_class_array_element_size): Return 0 for the size
	of the class;  This fixes the crasher exposed by :

	typeof (void).MakeArrayType ();

svn path=/trunk/mono/; revision=138706
2009-07-26 22:42:18 +00:00
Miguel de Icaza c7302d1930 Revert
svn path=/trunk/mcs/; revision=138705
2009-07-26 22:39:47 +00:00
Miguel de Icaza 84edaec258 Wrong fix; Revert
svn path=/trunk/mcs/; revision=138704
2009-07-26 22:38:04 +00:00
Miguel de Icaza 49f9169288 2009-06-10 Gert Driesen <[email protected]>
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

svn path=/trunk/mcs/; revision=138703
2009-07-26 22:25:39 +00:00
Miguel de Icaza 2395bc3b35 2009-07-26 Miguel de Icaza <[email protected]>
* icall.c (ves_icall_MonoType_GetEvent): Do not dereference method
	if there is no method to dereference.    Put all the code that
	depends on this inside the if (method) block.

	This fixes the crasher exposed by Microsoft's Silvelright CLR test
	suite  ./Reflection/Emit/TypeBuilder/TypeBuilderGetEvent.exe

	With this change, we pass the test.

svn path=/trunk/mono/; revision=138702
2009-07-26 22:16:24 +00:00
Miguel de Icaza ae14a1802d 2009-07-26 Miguel de Icaza <[email protected]>
* reflection.c (mono_reflection_sighelper_get_signature_local):
	Only dereference the assembly if it has been set.    Fixes a
	crasher exposed by #525328

svn path=/trunk/mono/; revision=138701
2009-07-26 20:56:22 +00:00
Miguel de Icaza f1e1542ea2 Small fix for trace
svn path=/trunk/mono/; revision=138700
2009-07-26 20:35:28 +00:00
Gert Driesen 5cc9f25881 * SqlParameter.cs: Improved support for SqlValue and SqlTypes.
* SqlParameterTest.cs: Added/improved tests for SqlValue, and
SqlTypes. Improved tests for char and char [] type inferrence.

svn path=/trunk/mcs/; revision=138699
2009-07-26 19:53:09 +00:00
Raja R Harinath 28e2595fdb Make AOT compilation explicit
* platforms/darwin.make (PLATFORM_AOT_SUFFIX): New.
* platforms/linux.make (PLATFORM_AOT_SUFFIX): New.
* library.make ($(build_lib)): Don't try to AOT compile the
library in its possibly temporary location.
(DO_AOT): Remove.  Move to ...
($(the_lib)$(PLATFORM_AOT_SUFFIX)): ... here, new rule to
explicitly run the AOT compilation.
(all-local) [ENABLE_AOT]: Build the AOT compiled library as appropriate.

svn path=/trunk/mcs/; revision=138696
2009-07-26 18:46:17 +00:00
Miguel de Icaza 31f9ff7de5 2009-07-26 Miguel de Icaza <[email protected]>
* Calendar.cs: Do not add internal abstract methods to the
	Calendar class, it prevents derived classes from existing. 

svn path=/trunk/mcs/; revision=138695
2009-07-26 17:44:33 +00:00
Raja R Harinath bc81939f50 Fix sed expression to only print if substitution happened
svn path=/trunk/mono/; revision=138694
2009-07-26 17:39:40 +00:00
Gonzalo Paniagua Javier 58ee030265 2009-07-26 Gonzalo Paniagua Javier <[email protected]>
* StringBuilder.cs: don't throw on null values in ctor(string, int).
	Unify another ctor into the main one to account for MaxCapacity.


svn path=/trunk/mcs/; revision=138692
2009-07-26 17:08:10 +00:00
Raja R Harinath 38c89643f2 Fix parallel-build issues with LIBRARY_USE_INTERMEDIATE_FILE
* library.make (build_lib): Define to a profile dependent
temporary location for LIBRARY_USE_INTERMEDIATE_FILE.
(DO_AOT): New.  Extracted from ...
($(build_lib)): ... here.  Simplify.  Extract code handling
LIBRARY_USE_INTERMEDIATE_FILE into ...
($(the_lib)) [LIBRARY_USE_INTERMEDIATE_FILE]: ... here, a new rule
that takes care of copying the library from its temporary location
to the final location.

svn path=/trunk/mcs/; revision=138691
2009-07-26 16:56:02 +00:00
Raja R Harinath d531a7515e * Makefile ($(build_lib)): Make CYCLIC_DEP_FILES depend on this.
svn path=/trunk/mcs/; revision=138690
2009-07-26 16:55:30 +00:00
Gonzalo Paniagua Javier 885b9f9f7e 2009-07-26 Gonzalo Paniagua Javier <[email protected]>
* StringBuilderTest.cs: new overflow tests.


svn path=/trunk/mcs/; revision=138688
2009-07-26 16:27:07 +00:00
Gonzalo Paniagua Javier 02d4790b5d 2009-07-26 Gonzalo Paniagua Javier <[email protected]>
* StringBuilder.cs: small fixes dealing with _maxCapacity.


svn path=/trunk/mcs/; revision=138686
2009-07-26 16:26:55 +00:00
Miguel de Icaza 1fc0a7899a 2009-07-22 Jb Evain <[email protected]>
* monotouch_System.dll.sources: bring Process in.

svn path=/trunk/mcs/; revision=138685
2009-07-26 16:05:47 +00:00
Raja R Harinath 0aeaad22d1 * Makefile.am (version.h): Fix issues when built out of tree.
Remove some redundant 'grep's piped through 'sed's.

svn path=/trunk/mono/; revision=138684
2009-07-26 06:47:19 +00:00
Miguel de Icaza 4a8c3ce77f Typo fix
svn path=/trunk/mcs/; revision=138683
2009-07-26 02:01:44 +00:00
Miguel de Icaza 5949b71fb0 Revert patch until Rodrigo comes back on Monday
svn path=/trunk/mcs/; revision=138681
2009-07-26 01:33:08 +00:00
Veerapuram Varadhan 5ec22cbe2f 2009-07-24 Veerapuram Varadhan <[email protected]>
* DbCommandBuilder.cs (CreateDeleteCommand, CreateUpdateCommand): Add the
	nullcheck-param into the respective command's parameter list.  Fixes
	build breaks.  Individual provider's CommandBuilder classes from 2.0
	profile onwards use the base version of methods to maintain these commands.
	(Get*Command): Cleanup code duplication
	* DbDataAdapter (Update): Use SourceColumnNullMapping property to handle
	nullcheckparams.  Fixes #522624.  Patch by
	Gert Driesen  <[email protected]>.

svn path=/trunk/mcs/; revision=138678
2009-07-25 19:10:42 +00:00
Miguel de Icaza 97487d9789 Fix
svn path=/trunk/mono/; revision=138677
2009-07-25 18:40:34 +00:00
Gert Driesen 9e2137bf23 * TdsConnectionPool.cs: Fixed typo in ResetConnectionPool.
svn path=/trunk/mcs/; revision=138674
2009-07-25 15:17:11 +00:00
Mark Probst e2d1249a97 2009-07-25 Mark Probst <[email protected]>
* sgen-gc.c, object.h, null-gc.c, boehm-gc.c, marshal.c: Really
        don't perform the store in mono_gc_wbarrier_generic_nostore().
        Remove the second argument (value), which is not needed.

svn path=/trunk/mono/; revision=138673
2009-07-25 09:24:42 +00:00
Michael Barker dc9f6046d2 2009-07-20 Michael Barker <[email protected]>
* MessagingProviderLocator.cs: Changed System.Exceptions to
	MonoMessagingExceptions.

svn path=/trunk/mcs/; revision=138672
2009-07-25 05:34:40 +00:00
Rodrigo Kumpera 5ab33cc376 2009-07-24 Rodrigo Kumpera <[email protected]>
* EventBuilder.cs: Make some fields internal.

	* TypeBuilder.cs: Make events field internal.
	Remove some MonoTODOs that are already done.

2009-07-24 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs (initialize): Remember the number
	of events available at initialization time. This is required as
	mcs expect this behavior under compiler context that new events
	are not returned for an instance that was inflated before.

	* MonoGenericClass.cs: Kill GetEvents_internal and implement it
	in terms of managed code.

svn path=/trunk/mcs/; revision=138669
2009-07-25 00:24:41 +00:00
Rodrigo Kumpera 8963bb7cb2 2009-07-24 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (GetParentType): Implement using managed code.

svn path=/trunk/mcs/; revision=138668
2009-07-25 00:24:26 +00:00
Rodrigo Kumpera 40cadb8e14 2009-07-24 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Make all icalls private. Kill GetInterfaces_internal.
	Add a workaround for a GetField under compiler context.

2009-07-24 Rodrigo Kumpera  <[email protected]>

	* TypeBuilder.cs: Make the interfaces field internal.

svn path=/trunk/mcs/; revision=138667
2009-07-25 00:24:15 +00:00
Gonzalo Paniagua Javier 51752b021d revert 138474, causes bug# 525104
svn path=/trunk/mcs/; revision=138659
2009-07-24 22:16:13 +00:00
Jb Evain 77d3f6cacb try to fix the build
svn path=/trunk/mono/; revision=138656
2009-07-24 20:52:51 +00:00
Carlos Alberto Cortez 6eb6c709fc 2009-07-24 Carlos Alberto Cortez <[email protected]>
* ToolStripItemCollectionTest.cs: New test for Find.


svn path=/trunk/mcs/; revision=138653
2009-07-24 17:48:18 +00:00
Carlos Alberto Cortez 67714db581 2009-07-24 Carlos Alberto Cortez <[email protected]>
* ToolStripItemCollection.cs: Find should do a case insensitive
	search, and should throw an ArgumentNullException if the parameter is
	an empty string.


svn path=/trunk/mcs/; revision=138652
2009-07-24 17:47:05 +00:00
Marek Safar 87db46fe09 New tests.
svn path=/trunk/mcs/; revision=138651
2009-07-24 17:41:53 +00:00
Marek Safar bc12ad6f76 2009-07-24 Marek Safar <[email protected]>
* argument.cs, dynamic.cs, expression.cs, class.cs, attribute.cs:
	Dynamic arguments.


svn path=/trunk/mcs/; revision=138650
2009-07-24 17:41:26 +00:00
Jb Evain e0bd639733 2009-07-24 Jb Evain <[email protected]>
* scripts/Makefile.am: generate a dmcs script for the 4.0 compiler
	when building the net_4_0 profile.


svn path=/trunk/mono/; revision=138646
2009-07-24 16:50:32 +00:00
Jb Evain a253f07c66 2009-07-24 Jb Evain <[email protected]>
* configure.in
	* runtime/Makefile.am
	* data/Makefile.am: create a and populate a configuration folder
	for the net_4_0 profile.

svn path=/trunk/mono/; revision=138645
2009-07-24 16:49:29 +00:00
Zoltan Varga ec57a82f13 2009-07-24 Zoltan Varga <[email protected]>
* null-gc.c (mono_gc_wbarrier_generic_nostore): Define this to fix
	the build.

	* boehm-gc.c: Ditto.

svn path=/trunk/mono/; revision=138644
2009-07-24 16:49:04 +00:00
Jb Evain 4ac73e9775 2009-07-24 Jb Evain <[email protected]>
* Initial import of the net_4_0 specific files.


svn path=/trunk/mono/; revision=138643
2009-07-24 16:47:12 +00:00
Rodrigo Kumpera f41f040c36 2009-07-24 Rodrigo Kumpera <[email protected]>
* FieldOnTypeBuilderInst.cs: Add a ToString() to help debugging.
	Make fields internal.

	* MethodOnTypeBuilderInst.cs: Build it under BOOTSTRAP_NET_2_0.

2009-07-24 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs (GetMethod): Use the new code always. Don't
	accept MethodOnTypeBuilderInst under compiler context.

	* MonoGenericClass.cs (GetField): Use the new code always.

	* MonoGenericClass.cs: Make a bunch of methods raise NotSupportedException
	when not under compiler context. Remove some dead code.

svn path=/trunk/mcs/; revision=138640
2009-07-24 15:59:27 +00:00
Paolo Molaro 6140690d50 Fri Jul 24 17:28:37 CEST 2009 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

	* mini-ppc.c (mono_arch_output_basic_block):
	(OP_STOREI1_MEMBASE_REG): Handle 32-bit offsets combining addis
	for bits 32-47 with signed load/store diplacements for bits
	48-63.  Use prefered base/offset order for indexed form.
	(OP_STOREI2_MEMBASE_REG, OP_STORE_MEMBASE_REG): Same.
	(OP_LOAD_MEMBASE, OP_LOADI4_MEMBASE, OP_LOADU4_MEMBASE,
	OP_LOADI1_MEMBASE, OP_LOADU1_MEMBASE, OP_LOADU2_MEMBASE,
	OP_LOADI2_MEMBASE): Same.
	(OP_STORER8_MEMBASE_REG, OP_LOADR8_MEMBASE,
	OP_STORER4_MEMBASE_REG, OP_LOADR4_MEMBASE): Same.
	(OP_STOREI1_MEMINDEX): Use prefered base/offset order for
	indexed form.
	(OP_STOREI2_MEMINDEX, OP_STORE_MEMINDEX): Same.
	(OP_LOAD_MEMINDEX, OP_LOADI4_MEMINDEX, OP_LOADU4_MEMINDEX,
	OP_LOADU2_MEMINDEX, OP_LOADI2_MEMINDEX, OP_LOADU1_MEMINDEX,
	OP_LOADI1_MEMINDEX): Same
	(OP_LOADR4_MEMINDEX, OP_LOADR8_MEMINDEX, OP_STORER4_MEMINDEX,
	OP_STORER8_MEMINDEX): Same
	(OP_JMP): Use addis/addi sequence for int cfg->stack_usage
	computations.
	(mono_arch_emit_prolog): Handle 32-bit offsets combining addis
	for bits 32-47 with signed load/store diplacements for bits
	48-63.  Use prefered base/offset order for indexed form.


svn path=/trunk/mono/; revision=138639
2009-07-24 15:31:39 +00:00
Marek Safar 85aaf17b9a 2009-07-24 Marek Safar <[email protected]>
* anonymous.cs (MutateField): Add imported types handling.


svn path=/trunk/mcs/; revision=138638
2009-07-24 15:24:19 +00:00
Marek Safar 218bba7783 Push GetFieldFromHandle to BOOTSTRAP_NET_2_0
svn path=/trunk/mcs/; revision=138637
2009-07-24 15:21:36 +00:00
Paolo Molaro 5c9f2285ac Fri Jul 24 16:57:12 CEST 2009 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

	* mini-ppc.c: Define PPC_MOVE_FPR_GPR and PPC_ISA_64.
	(mono_arch_get_vcall_slot): Fx pointer to int cast warning.
	(mono_arch_decompose_opts): Make OP_ICONV_TO_R4 and
	OP_ICONV_TO_R8 decompose conditional on !PPC_ISA_64.
	(mono_arch_output_basic_block) [OP_JMP]: Use ppc_load32 for
	cfg->stack_usage to avoid size warnings.
	(mono_arch_output_basic_block) [__mono_ppc64__]: Replace
	store/load sequence with mffgpr if PPC_MOVE_FPR_GPR is true.
	(mono_arch_output_basic_block) [!__mono_ppc64__]: For
	OP_ICONV_TO_R4 or OP_ICONV_TO_R8 and PPC_ISA_64 use fcfid
	to convert.
	(mono_arch_emit_prolog): Move mono_emit_unwind_op_def_cfa 
	after code varible is initialized.
	Add g_assert ppc_is_imm16 for ainfo->offset. Handle
	ainfo->size == 8 when ainfo->offset !ppc_is_imm16.
	(mono_arch_emit_epilog): 
	Move Use ppc_load32 for cfg->stack_usage to avoid size
	warnings.


svn path=/trunk/mono/; revision=138636
2009-07-24 15:01:54 +00:00
Paolo Molaro d4b61ac811 Fri Jul 24 16:54:13 CEST 2009 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license
	
	* arch/ppc/ppc-codegen.h (ppc_ha): Define high adjusted
	conversion to support combining addis for bits 32-47 with
	signed load/store diplacements for bits 48-63.
	(ppc_fcfidx, ppc_fctidx, ppc_fctidzx): Share with PPC32.
	These instructions are availble to 32-bit programs on 64-bit
	hardware and 32-bit both starting with PowerISA V2.01.
	[__mono_ppc64__]: Define ppc_mftgpr and ppc_mffgpr for Power6
	native mode.
	[!__mono_ppc64__]: Define ppc_is_imm32 as constant true for
	ppc32.


svn path=/trunk/mono/; revision=138635
2009-07-24 15:00:25 +00:00
Mark Probst d4e7630ae7 2009-07-24 Mark Probst <[email protected]>
* sgen-gc.c, marshal.c, object.h: Make the managed write barrier
        not perform the store itself.  Introduce
        mono_gc_wbarrier_generic_nostore(), which is the same as
        mono_gc_wbarrier_generic_store(), except it doesn't perform the
        store.

2009-07-24  Mark Probst  <[email protected]>

        * method-to-ir.c: The write barrier doesn't do the store anymore,
        so we have always to emit it.  Also, emit the wbarrier after the
        store.

svn path=/trunk/mono/; revision=138634
2009-07-24 14:47:23 +00:00
Mark Probst 4a73ac29a7 2009-07-24 Mark Probst <[email protected]>
* icall.c (ves_icall_System_Array_SetGenericValueImpl):
        mono_gc_wbarrier_value_copy() doesn't perform the copy itself, so
        we still need the memcpy().

svn path=/trunk/mono/; revision=138632
2009-07-24 14:34:51 +00:00
Zoltan Varga 87d0c0348a 2009-07-24 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_get_delegate_invoke_impls): Add a trampoline
	for argument count 3 too.

svn path=/trunk/mono/; revision=138631
2009-07-24 14:09:17 +00:00
Atsushi Eno 2e8709a97b 2009-07-24 Atsushi Enomoto <[email protected]>
* PeerChannelListener.cs : set source field. Remove unnecessary NIE.
	* DuplexChannelBase.cs : comment out some extra fields (so far).
	* PeerDuplexChannel.cs : pass valid EndpointAddress to PeerNodeImpl.


svn path=/trunk/mcs/; revision=138609
2009-07-24 07:09:45 +00:00
Atsushi Eno 1651ce46f8 2009-07-24 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs: add some null checks.

	* PeerCustomResolverBindingElement.cs : add some null checks.


svn path=/trunk/mcs/; revision=138604
2009-07-24 05:36:10 +00:00
Rodrigo Kumpera fe8dbb3491 2009-07-23 Rodrigo Kumpera <[email protected]>
* ConstructorBuilder.cs: Make parameters and pinfo fields internal.

	* ConstructorOnTypeBuilderInst.cs: Build it under BOOTSTRAP_NET_2_0.
	Properly implement GetParameters under compiler context.

	* TypeBuilder.cs: Make ctors field internal.

2009-07-23 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs: Kill GetConstructors_internal and implement it
	all in terms of managed code.

	* MonoGenericClass.cs: Return instances of ConstructorOnTypeBuilderInst
	under bootstrap profile.

svn path=/trunk/mcs/; revision=138591
2009-07-23 21:05:01 +00:00
Rodrigo Kumpera dc3c422dbc 2009-07-23 Rodrigo Kumpera <[email protected]>
* FieldOnTypeBuilderInst.cs: Implement MetadataToken and FieldToken
	for compiler context.

	* TypeBuilder.cs: Make FieldBuilder related fields internal.

2009-07-23 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs: Kill GetFields_internal and implement it
	all in terms of managed code.

svn path=/trunk/mcs/; revision=138590
2009-07-23 21:04:50 +00:00
Rodrigo Kumpera 270a4ee7ee 2009-07-23 Rodrigo Kumpera <[email protected]>
* PropertyOnTypeBuilderInst.cs: Use TypeBuilder::GetMethod instead of
	MonoGenericClass::GetCorrespondingInflatedMethod. This is possible
	since the returned methods of MonoGenericClass::GetMethods have been
	unified with TypeBuilder::GetMethod.

	* TypeBuilder.cs: Make property related fields internal.

2009-07-23 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs: Kill GetMethods_internal and implement it
	all in terms of managed code.

svn path=/trunk/mcs/; revision=138589
2009-07-23 21:04:34 +00:00
Sebastien Pouliot f6db29bd36 2009-07-23 Sebastien Pouliot <[email protected]>
* SerializationMap.cs : Ensure Dictionary is still deserialized
	correctly (wrt previous change). Fix moonlight isolated storage
	settings.


svn path=/trunk/mcs/; revision=138587
2009-07-23 20:02:43 +00:00
Gonzalo Paniagua Javier 33832e187f 2009-07-23 Gonzalo Paniagua Javier <[email protected]>
* BuildManager.cs: precompilation setup failed if the precompiled
	virtual directory was / and it was deployed somewhere else.


svn path=/trunk/mcs/; revision=138576
2009-07-23 17:45:31 +00:00
Marek Safar f28cdf6fb4 2009-07-23 Marek Safar <[email protected]>
* expression.cs, delegate.cs: Moved arguments resolve into their
	counterparts expressions. Removed argument resolve from
	CollectionElementInitializer.


svn path=/trunk/mcs/; revision=138574
2009-07-23 17:40:39 +00:00
Ankit Jain 9314e8d0c3 * xbuild/Microsoft.Common.targets: Oops, forgot to remove some
debug stuff.

svn path=/trunk/mcs/; revision=138561
2009-07-23 16:11:31 +00:00
Marek Safar e1249f47b5 2009-07-23 Marek Safar <[email protected]>
* expression.cs, delegate.cs: Moved arguments resolve into their
	counterparts expressions.


svn path=/trunk/mcs/; revision=138559
2009-07-23 15:50:07 +00:00
Zoltan Varga 07f4d1f84f 2009-07-23 Zoltan Varga <[email protected]>
* load-exceptions.cs: Add a test for #524498.

svn path=/trunk/mono/; revision=138545
2009-07-23 14:39:25 +00:00
Zoltan Varga d0c10ccf5f 2009-07-23 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_with_opt): Add an 'ex' argument to let
	the caller handle the exceptions.
	(mono_jit_runtime_invoke): Handle exceptions thrown while compiling the
	method. Fixes #524498.

svn path=/trunk/mono/; revision=138544
2009-07-23 14:39:18 +00:00
Sebastien Pouliot 07ee56ae94 2009-07-23 Sebastien Pouliot <[email protected]>
* XmlObjectSerializerTest.cs: Add test cases with a generic
	dictionary (empty, broken with r138386, and with one element) 
	that both works on MS.NET and for which Moonlight depends on.


svn path=/trunk/mcs/; revision=138531
2009-07-23 12:38:49 +00:00
Gonzalo Paniagua Javier 9fcc125dd2 location,location,location. Fixes all the tests I broke last night
svn path=/trunk/mcs/; revision=138529
2009-07-23 11:53:26 +00:00
Marek Habersack 0460df3566 2009-07-23 Marek Habersack <[email protected]>
* AspGenerator.cs:
	Check for duplicate control IDs at the end of parse. Fixes bug
	#524358

2009-07-23  Marek Habersack  <[email protected]>

	* ControlBuilder.cs: added an internal helper property
	IsNamingContainer.

2009-07-23  Marek Habersack  <[email protected]>

	* HttpException.cs: if an exception is processed which refers to
	internal "files", don't show the internal name.

svn path=/trunk/mcs/; revision=138521
2009-07-23 10:16:54 +00:00
Marek Habersack d2702cac24 Do not skip comments, just pluck expressions/tags from within them
svn path=/trunk/mcs/; revision=138520
2009-07-23 10:16:40 +00:00
Carlos Alberto Cortez 060fe2f8d5 2009-07-23 Carlos Alberto Cortez <[email protected]>
* PropertyGrid.cs: Use click handlers for each ToolStripButton instead
	of using a global handler for the ToolStrip. This way the buttons can
	be recovered and can have its PerformClick method called properly.
	Fixes #522454.


svn path=/trunk/mcs/; revision=138519
2009-07-23 10:07:26 +00:00
Marek Safar fd96aa17a7 New test.
svn path=/trunk/mcs/; revision=138514
2009-07-23 09:28:39 +00:00
Marek Safar 6aa6e7fd72 2009-07-23 Marek Safar <[email protected]>
A fix for bug #523683
	* convert.cs, delegate.cs: Use common overload mechanism for method
	group conversion check.


svn path=/trunk/mcs/; revision=138513
2009-07-23 09:27:56 +00:00
Veerapuram Varadhan 65a00499e9 2009-07-23 Veerapuram Varadhan <[email protected]>
* XmlSchemaDataImporter.cs (HandleDataSourceAnnotation): Don't rely
	on the order of elements.

svn path=/trunk/mcs/; revision=138507
2009-07-23 07:56:24 +00:00
Veerapuram Varadhan 4cb5ebabc0 2009-07-23 Veerapuram Varadhan <[email protected]>
* XmlSchemaDataImporter.cs: String.IsNullOrEmpty changes

svn path=/trunk/mcs/; revision=138506
2009-07-23 07:55:32 +00:00
Atsushi Eno e4dc971355 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpReplyChannel.cs, TcpRequestChannel.cs:
	  Acquire TcpClient for each request/reply. Now it is fully
	  interoperable with .NET.


svn path=/trunk/mcs/; revision=138501
2009-07-23 07:21:16 +00:00
Atsushi Eno 1ce9d1db36 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs, TcpRequestChannel.cs: it somehow adds/expects
	  ReplyTo and MessageId (though it is session-less), and it expects
	  EndRecord at weird stage, inconsistent with [MC-NMF]...
	  Now .NET service accepts one mono client request.


svn path=/trunk/mcs/; revision=138499
2009-07-23 06:31:30 +00:00
Atsushi Eno 899a95c371 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs, TcpRequestChannel.cs, TcpBinaryFrameManager.cs:
	  Send and receive unsized message terminator at once.
	  Send EndRecord mutually. Got one .net client request working.


svn path=/trunk/mcs/; revision=138498
2009-07-23 05:38:17 +00:00
Atsushi Eno 8eb2e41c66 2009-07-23 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : revert the previous dictionary change.
	  They are indeed used for non-in-band-dictionary messages.


svn path=/trunk/mcs/; revision=138496
2009-07-23 05:05:21 +00:00
Gonzalo Paniagua Javier f7a0e3a47d 2009-07-23 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationManager.cs: avoid possible infinite loop when the
	path starts with ~ and 1 file check.


svn path=/trunk/mcs/; revision=138495
2009-07-23 05:01:23 +00:00
Gonzalo Paniagua Javier 374b8ff979 2009-07-23 Gonzalo Paniagua Javier <[email protected]>
* LogicalMethodInfo.cs: add CacheDuration property.
	* WebServiceHandlerFactory.cs: use CacheDuration.
	Fixes bug #524460.


svn path=/trunk/mcs/; revision=138492
2009-07-23 04:22:15 +00:00
Atsushi Eno 3c099af375 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs:
	  split out binary frame manager class into separate file.

	* System.ServiceModel.dll.sources:
	  split out binary frame manager class into separate file.


svn path=/trunk/mcs/; revision=138489
2009-07-23 03:02:29 +00:00
Gonzalo Paniagua Javier eff748464b 2009-07-22 Gonzalo Paniagua Javier <[email protected]>
* WebHeaderCollectionTest.cs: test for allowed characters in headers.


svn path=/trunk/mcs/; revision=138487
2009-07-23 02:57:41 +00:00
Gonzalo Paniagua Javier ce35b7094a 2009-07-22 Gonzalo Paniagua Javier <[email protected]>
* WebHeaderCollection.cs: check the validity of the characters in the
	header names.


svn path=/trunk/mcs/; revision=138485
2009-07-23 02:57:21 +00:00
Rodrigo Kumpera 488831bf77 2009-07-22 Rodrigo Kumpera <[email protected]>
* MethodOnTypeBuilderInst.cs: Implement ToString to help debugging.

	* TypeBuilder.cs: Make the properties field internal.

	* PropertyOnTypeBuilderInst.cs: New type implementing a property of an
	inflated TypeBuilder.

2009-07-22 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs: Kill GetProperties_internal and implement it
	all in terms of managed code.

svn path=/trunk/mcs/; revision=138482
2009-07-23 02:22:31 +00:00
Geoff Norton 67b7a8bf90 2009-07-22 Geoff Norton <[email protected]>
* mini-exceptions.c: Fix build on ia64.

svn path=/trunk/mono/; revision=138479
2009-07-23 01:28:20 +00:00
Geoff Norton 53656a155e 2009-07-20 Geoff Norton <[email protected]>
* mini-x86.h: Fix the x86 version guards to use Apple's
	properly defined macros.

svn path=/trunk/mono/; revision=138478
2009-07-23 01:28:16 +00:00
Geoff Norton af21a3e74c 2009-07-20 Geoff Norton <[email protected]>
* darwin_stop_world.c: Fix the x86 version guards to use Apple's
        properly defined macros.

svn path=/trunk/mono/; revision=138477
2009-07-23 01:28:12 +00:00
Marek Habersack 9763e79a27 Unbreak the build
svn path=/trunk/mcs/; revision=138476
2009-07-22 23:46:36 +00:00
Marek Habersack bd852c92f4 2009-07-23 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/FullTagsInText.aspx
	Test/mainsoft/NunitWebResources/TagsExpressionsAndCommentsInText.aspx

2009-07-23  Marek Habersack  <[email protected]>

	* AspGenerator.cs: TextParsed takes a different approach to
	post-processing text blocks now. It applies, in order, client-side
	comment, tag and expression regular expressions to the text
	and splits it into blocks of different types. Then the blocks are
	processed accordingly.

svn path=/trunk/mcs/; revision=138474
2009-07-22 23:41:32 +00:00
Gonzalo Paniagua Javier 874ad36781 Implement the 2.0 IsRestricted and add tests
svn path=/trunk/mcs/; revision=138472
2009-07-22 23:29:10 +00:00
Ankit Jain c9bf6e9a78 Fix bug #511370.
* Project.cs (ExtensionsPath): New.
(InitializeProperties): Set "MSBuildExtensionsPath" property.

svn path=/trunk/mcs/; revision=138471
2009-07-22 23:28:36 +00:00
Ankit Jain 1a27cb10f2 * Makefile: Create a lib/mono/xbuild directory for xbuild
extensions.

svn path=/trunk/mcs/; revision=138470
2009-07-22 23:28:12 +00:00
Gonzalo Paniagua Javier 5cda501c0c 2.0
svn path=/trunk/mcs/; revision=138462
2009-07-22 21:52:26 +00:00
Ankit Jain 49176f66ec Implement AssignProjectConfiguration task.
In class/Microsoft.Build.Tasks:

	* Microsoft.Build.Tasks_test.dll.sources: Added
	AssignProjectConfigurationTest.cs .

	* Microsoft.Build.Tasks.dll.sources: Added
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* AssignProjectConfiguration.cs (Execute): Implement.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* AssignProjectConfigurationTest.cs: New.

In tools/xbuild:

	* xbuild/Microsoft.Common.targets (AssignProjectConfigurations): New.
	(ResolveProjectReferences): Add dependency on AssignProjectConfigurations
	target. Also, set the config and platform properties for the msbuild task
	being invoked.
	* xbuild/Microsoft.Common.tasks: Add AssignProjectConfiguration .

In tools/xbuild/tests:

	* standalone/Project01: Change config mappings a bit to mix them up,
	like Debug->Release etc. Update .proj file and final-outputs.txt.

svn path=/trunk/mcs/; revision=138461
2009-07-22 21:51:58 +00:00
Gonzalo Paniagua Javier 27e633cf32 2009-07-22 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: when sending a 0-length POST, ignore further
	writes instead of throwing.
	Fixes bug #524049.


svn path=/trunk/mcs/; revision=138447
2009-07-22 19:58:51 +00:00
Veerapuram Varadhan 81945b7f28 2009-07-23 Veerapuram Varadhan <[email protected]>
* XmlSchemaDataImporter.cs: Added null checks.

svn path=/trunk/mcs/; revision=138444
2009-07-22 18:52:56 +00:00
Veerapuram Varadhan 02090a48a4 2009-07-22 Veerapuram Varadhan <[email protected]>
* XmlSchemaDataImporter.cs:
	CustomDataClassGenerator.cs: Silence off CWLs.

svn path=/trunk/mcs/; revision=138439
2009-07-22 18:27:00 +00:00
Veerapuram Varadhan 9f93422191 * Implementation of System.Data.Design.TypedDataSetGenerator::Generate methods that generate TableAdapter code
svn path=/trunk/mcs/; revision=138437
2009-07-22 18:26:17 +00:00
Veerapuram Varadhan 5c13496c4d * Use System.Data.Design version of TypedDataSetGenerator instead of from System.Data
svn path=/trunk/mcs/; revision=138436
2009-07-22 18:25:42 +00:00
Veerapuram Varadhan c3898c2f89 * Implemented generation of code for TableAdapters
svn path=/trunk/mcs/; revision=138435
2009-07-22 18:24:58 +00:00
Veerapuram Varadhan 46cdbd98ec * Utility changes to convert between DbType/SqlDbType/System.Type
svn path=/trunk/mcs/; revision=138434
2009-07-22 18:24:13 +00:00
Veerapuram Varadhan 6576febcaf * Handle <TableAdapter ...> tags in XSD
svn path=/trunk/mcs/; revision=138433
2009-07-22 18:23:24 +00:00
Marek Safar 7de386daa0 New test.
svn path=/trunk/mcs/; revision=138411
2009-07-22 14:26:28 +00:00
Marek Safar deeb072fcc 2009-07-22 Marek Safar <[email protected]>
A fix for bug #523899
	* generics.cs: Exact type inference with other bound types.


svn path=/trunk/mcs/; revision=138410
2009-07-22 14:25:53 +00:00
Jb Evain ed3bd999cc 2009-07-22 Jb Evain <[email protected]>
* monotouch_System.dll.sources: bring Process in.


svn path=/trunk/mcs/; revision=138409
2009-07-22 14:20:44 +00:00
Jb Evain 00d03b988f 2009-07-22 Jb Evain <[email protected]>
* ExpandableObjectConverter.cs: no method to override for a NET_2_1 profile.


svn path=/trunk/mcs/; revision=138408
2009-07-22 14:20:27 +00:00
Jb Evain 44d5cd6772 2009-07-22 Jb Evain <[email protected]>
* ProcessStartInfo.cs: force no-verb on MONOTOUCH.


svn path=/trunk/mcs/; revision=138407
2009-07-22 14:19:51 +00:00
Mark Probst 4becd3d80e 2009-07-22 Mark Probst <[email protected]>
* sgen-gc.c: Align array bounds calculation to mono_array_size_t
        so that big arrays are handled correctly.  Always use
        safe_object_get_size() to calculate array object sizes, which
        takes bounds into account.

svn path=/trunk/mono/; revision=138406
2009-07-22 14:07:21 +00:00
Mark Probst 974172dd12 2009-07-22 Mark Probst <[email protected]>
* sgen-gc.c (mono_gc_wbarrier_value_copy): Make sure the class's
        GC descriptor is computed before we use it.

svn path=/trunk/mono/; revision=138398
2009-07-22 12:46:40 +00:00
Mark Probst 3a489a0589 2009-07-22 Mark Probst <[email protected]>
* icall.c (ves_icall_System_Array_SetGenericValueImpl): Use a
        write barrier if necessary.

svn path=/trunk/mono/; revision=138397
2009-07-22 12:37:53 +00:00
Atsushi Eno 62f25871a3 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : Adding prefix "xml" seems to be allowed
	  as long as the URI is correct. Fixed bug #514015.

	* XmlNamespaceManagerTests.cs : add test for bug #514015.


svn path=/trunk/mcs/; revision=138396
2009-07-22 12:33:56 +00:00
Mark Probst fe94dfb1cf 2009-07-22 Mark Probst <[email protected]>
* icall-def.h, icall.c, thread-types.h: New separate icall for
        VolatileWrite(object&,object) that uses a write barrier.

        * console-unix.c, file-io.c, icall.c, threads.c: Use write
        barriers in icalls which write to "ref" or "out" arguments.

2009-07-22  Mark Probst  <[email protected]>

        * mini-exceptions.c (ves_icall_get_frame_info): Use write
        barriers.

svn path=/trunk/mono/; revision=138395
2009-07-22 12:22:33 +00:00
Atsushi Eno 4d231fec12 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : ReadValueAsBase64(byte[],int,int) is only
	  in SL2.


svn path=/trunk/mcs/; revision=138387
2009-07-22 12:10:53 +00:00
Atsushi Eno 4f78675e26 2009-07-22 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : for empty element, do not try to consume
	  children. Fixed bug #524086.
	  For enum, it is always error when the enum is not flags, and
	  is always default value for flags.

	* XmlObjectSerializerTest.cs :
	  Add test for bug #524086 by Rolf Bjarne Kvinge.
	  Add enum flags test, which should not raise an error.


svn path=/trunk/mcs/; revision=138386
2009-07-22 12:08:21 +00:00
Raja R Harinath 241e383926 Don't complain when the same type is implemented by the
output assembly as well as multiple referenced assemblies

* namespace.cs (RootNamespace.LookupTypeReflection): Add
'must_be_unique' flag.
(GlobalRootNamespace): Update to changes.
(Namespace.LookupType): Pass 'must_be_unique' only when we don't
already have a type in hand.

svn path=/trunk/mcs/; revision=138385
2009-07-22 11:10:49 +00:00
Atsushi Eno 60d5aeb3f8 2009-07-22 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : name test did not handle String.Empty cases
	  for name and ns (i.e. no filter). Fixed bug #515136.

	* XPathNavigatorTests.cs : added test for bug #515136.


svn path=/trunk/mcs/; revision=138384
2009-07-22 11:05:00 +00:00
Marek Safar 2204b9afbb New test & update.
svn path=/trunk/mcs/; revision=138381
2009-07-22 10:45:34 +00:00
Marek Safar 54333f1972 2009-07-22 Marek Safar <[email protected]>
* expression.cs: More verifier instrumentation.
	
	* statement.cs: Do proper throw expression conversion.


svn path=/trunk/mcs/; revision=138380
2009-07-22 10:45:12 +00:00
Marek Safar eb3ba7fe7a 2009-07-22 Marek Safar <[email protected]>
A fix for bug #522789
	* expression.cs: Mutate invocation return type.


svn path=/trunk/mcs/; revision=138375
2009-07-22 09:43:58 +00:00
Ankit Jain be4cb0e8e8 * xbuild/Microsoft.VisualBasic.targets (Vbc.References): Remove
"@(ChildProjectReferences)" as it gets resolved earlier
and is part of @(ResolvedFiles).

svn path=/trunk/mcs/; revision=138370
2009-07-22 08:39:12 +00:00
Atsushi Eno ca5cc074aa 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : cosmetic exception type change. Patch by
	  Hib Eris. Fixed bug #523971.

	* XmlTextReaderTests.cs : added test for bug #523971 by Hib Eris.


svn path=/trunk/mcs/; revision=138369
2009-07-22 08:38:04 +00:00
Atsushi Eno 49c3dbeaee 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs : when reading empty primitive value,
	  make sure to consume the reader. Fixed bug #524083.

	* XmlObjectSerializerTest.cs : add test for bug #524083, by
	  Rolf Bjarne Kvinge.


svn path=/trunk/mcs/; revision=138367
2009-07-22 08:21:30 +00:00
Atsushi Eno 8bf2399d11 2009-07-22 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : call MoveToContent() before examining
	  the reader node type.

	* XmlObjectSerializerTest.cs : now we can make xml indented as
	  originally done in #524088.


svn path=/trunk/mcs/; revision=138364
2009-07-22 07:47:33 +00:00
Atsushi Eno 9a4b82cacf 2009-07-22 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : Find KnownTypeAttributes in base types
	  too. Patch by Rolf Bjarne Kvinge. Fixed bug #524088.

	* XmlObjectSerializerTest.cs : added test for bug #524088 by
	  Rolf Bjarne Kvinge (a bit modified).


svn path=/trunk/mcs/; revision=138360
2009-07-22 07:22:25 +00:00
Atsushi Eno 54d1220134 2009-07-21 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : do not possibly return null as the Prefix value.
	  Fixed bug #524084.

	* XNodeReaderTest.cs : test Prefix on default namespace.


svn path=/trunk/mcs/; revision=138356
2009-07-22 06:23:35 +00:00
Atsushi Eno 7fed85ca45 2009-07-21 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : a couple of properties did not return correct
	  value for EOF state.

	* XNodeReaderTest.cs : test member behaviors at EOF state.


svn path=/trunk/mcs/; revision=138354
2009-07-22 06:13:07 +00:00
Atsushi Eno ab1fa42c8f 2009-07-21 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : do not return element's IsEmpty on attributes.

	* XNodeReaderTest.cs : on attributes IsEmptyElement is false.


svn path=/trunk/mcs/; revision=138352
2009-07-22 06:02:13 +00:00
Marek Habersack 347c9c8898 Fix the build
svn path=/trunk/mcs/; revision=138339
2009-07-21 22:42:27 +00:00
Ankit Jain 03a605af7f Fix bug #517974.
In class/Microsoft.Build.Tasks:

	* Makefile: Add System.Core .

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	Fix bug #517974.
	* ResolvedReference.cs (AssemblyName): New.
	(IsPrimary): New. Primary (eg. specified in the project file) or
	dependent reference.
	(FoundInSearchPathAsString): New.
	* AssemblyResolver.cs (GetResolvedReference): Add a 'assembly name'
	param for the new field in ResolvedReference.
	(AssemblyNamesCompatible): Fix the check for public key token.
	Track api changes.

	* ResolveAssemblyReference.cs: Keep track of resolved assemblies,
	prevent duplicate references and other files.
	Process dependencies after resolving all the primary references.
	Search for dependencies in parent assembly's dir first and then
	the specified search paths.
	Detect assembly version conflicts and try to resolve.
	Improve logged messages.
	(PrimaryReference): New.
	(ResolveAssemblyReferenceHelper.AddUniqueFile): New extension method.

In tools/xbuild:

	* xbuild.Microsoft.CSharp.targets (Csc.References): Remove
	"@(ChildProjectReferences)" as it gets resolved earlier
	and is part of @(ResolvedFiles).

In tools/xbuild/tests:

	* standalone/Project01: Add references to two "external" assemblies
	with dependencies.
	* standalone/Project01/Program.cs: Add references in code to the new
	assemblies, to ensure that they are required for compilation.

svn path=/trunk/mcs/; revision=138329
2009-07-21 20:20:26 +00:00
Gert Driesen 3b2ca87f4f * Container.cs: Replaced for loop with for loop.
[Fixes bug #522474]
* ContainerTest.cs: Added test for bug #522474.

svn path=/trunk/mcs/; revision=138328
2009-07-21 19:12:18 +00:00
Zoltan Varga 699b859adc 2009-07-21 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_emit_prolog): Fix thread attaching in aot
	code.

svn path=/trunk/mono/; revision=138326
2009-07-21 18:49:47 +00:00
Jb Evain 5a7278b078 2009-07-21 Jb Evain <[email protected]>
* ThreadPool.cs: avoid an unecessary method call when not running
	in moonlight.


svn path=/trunk/mcs/; revision=138313
2009-07-21 16:23:42 +00:00
Gonzalo Paniagua Javier d80e62fc89 2009-07-21 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: use glib for malloc/free.


svn path=/trunk/mono/; revision=138312
2009-07-21 16:23:03 +00:00
Jb Evain 6b1e826209 2009-07-21 Jb Evain <[email protected]>
* configure.in: add a --with-monotouch option.
	* runtime/Makefile.am: use it to trigger the mcs monotouch build.


svn path=/trunk/mono/; revision=138308
2009-07-21 16:04:23 +00:00
Jonathan Pobst ca2b850122 - Fix the msvc build for the zlib changes in r138254.
svn path=/trunk/mono/; revision=138307
2009-07-21 15:50:03 +00:00
Jb Evain 7d47820bac forgot one entry
svn path=/trunk/mcs/; revision=138305
2009-07-21 15:32:10 +00:00
Gonzalo Paniagua Javier c66cf64fec moved
svn path=/trunk/mcs/; revision=138304
2009-07-21 15:31:41 +00:00
Gonzalo Paniagua Javier faaad5d9b0 do not nullify deflateStream
svn path=/trunk/mcs/; revision=138301
2009-07-21 15:28:56 +00:00
Atsushi Eno 300441d742 2009-07-21 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs : new reply channel implementation.
	* TcpChannelListener.cs : use above for streamed reply channel.
	* TcpDuplexSessionChannel.cs : more streaming mode support.
	* TcpRequestChannel.cs : a couple of updates to get it working
	  with the reply channel above. Still some issues on .NET interop.

	* System.ServiceModel.dll.sources: add TcpReplyChannel.


svn path=/trunk/mcs/; revision=138299
2009-07-21 14:13:06 +00:00
Atsushi Eno 02914de861 2009-07-21 Atsushi Enomoto <[email protected]>
* RequestContext.cs : added internal derived class that implements
	  some members.


svn path=/trunk/mcs/; revision=138298
2009-07-21 14:05:37 +00:00
Atsushi Eno 6160165eb4 2009-07-21 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : for non-session reader and writer, do not
	  use dictionary.


svn path=/trunk/mcs/; revision=138297
2009-07-21 14:03:17 +00:00
Jb Evain 073c557a4b 2009-07-21 Jb Evain <[email protected]>
* Makefile: specify bootstrap and SUBDIRS for the monotouch profile.


svn path=/trunk/mcs/; revision=138296
2009-07-21 13:56:23 +00:00
Atsushi Eno c3501cbb33 2009-07-21 Atsushi Enomoto <[email protected]>
* DataContractSerializer.cs : it does not write dictionary string
	  when it was not created with it.


svn path=/trunk/mcs/; revision=138295
2009-07-21 13:49:37 +00:00
Zoltan Varga 624e4ac4b6 2009-07-21 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Do the work done in the exception
	handler in a separate icall, to reduce the size of the wrappers.

svn path=/trunk/mono/; revision=138287
2009-07-21 12:28:09 +00:00
Marek Habersack d4cc6a70f7 2009-07-21 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/UnquotedAngleBrackets.aspx

2009-07-21  Marek Habersack  <[email protected]>

	* AspTokenizer.cs: in put_back, store inTag value as well.

	* AspParser.cs: correctly parse code like "<asp:tag> < </asp:tag>"

svn path=/trunk/mcs/; revision=138280
2009-07-21 11:24:45 +00:00
Gonzalo Paniagua Javier 90f1896867 2009-07-21 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: don't try to finish the z_stream if it has not been
	used. This fixes all the tests after the latest change.


svn path=/trunk/mono/; revision=138272
2009-07-21 10:36:47 +00:00
Gonzalo Paniagua Javier b08aa45a2b free internal buffer
svn path=/trunk/mono/; revision=138259
2009-07-21 05:42:20 +00:00
Gonzalo Paniagua Javier 4ae9d2a4c2 2009-07-20 Gonzalo Paniagua Javier <[email protected]>
* Makefile.am: replaced zlib_macros.c with zlib-helper.c
	* zlib_macros.c: Removed file.
	* zlib-helper.c: new interface for DeflateStream. Flush() actually
	does something.


svn path=/trunk/mono/; revision=138254
2009-07-21 02:25:00 +00:00
Gonzalo Paniagua Javier 8c052b4698 2009-07-20 Gonzalo Paniagua Javier <[email protected]>
* GzipStream.cs: fixed Dispose (bool).
	* DeflateStream.cs: simplify the interface with unmanaged code, big
	reduction of managaed<->unmanaged round trips.
	Also fixes bug #523418.


svn path=/trunk/mcs/; revision=138252
2009-07-21 02:24:53 +00:00
Carlos Alberto Cortez b4ea9b93c0 * X11Dnd.cs: Implement support for XdndActionList, so we can get the
complete list of the supported actions in the drag source, and use the
	action passed in the Position message only as a fallback. This will
	help us with dnd operations with non winforms apps.
	Fixes #402158.

2009-07-20  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=138251
2009-07-21 02:11:39 +00:00
Sebastien Pouliot b8b335ca7b 2009-07-20 Sebastien Pouliot <[email protected]>
* Aes.cs: Use the fully qualified name since this is not a type known
	in the default corlib (2.0 or 1.x).


svn path=/trunk/mcs/; revision=138249
2009-07-21 00:55:39 +00:00
Carlos Alberto Cortez 906d7bb541 2009-07-20 Carlos Alberto Cortez <[email protected]>
* ToolStripItemCollection.cs: Use a List<> instead of an ArrayList in
	Find. This should fix the exception we were getting when trying to
	convert the ArrayList to an array of objects (since we were losing the
	type parameter).
	Fixes #519944.


svn path=/trunk/mcs/; revision=138248
2009-07-21 00:32:03 +00:00
Marek Habersack dd23181e08 2009-07-21 Marek Habersack <[email protected]>
* BuildManager.cs: GetReferencedAssemblies unconditionally
	includes all assemblies from bin/ for precompiled sites. Fixes bug
	#502016

svn path=/trunk/mcs/; revision=138246
2009-07-20 23:32:36 +00:00
Marek Habersack 8175b977ad 2009-07-21 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: make sure to ignore invalid bin/
	assemblies in AddAssembliesInBin and GetTypeFromBin.

svn path=/trunk/mcs/; revision=138245
2009-07-20 23:32:03 +00:00
Zoltan Varga 90e5b9777b 2009-07-20 Zoltan Varga <[email protected]>
* basic-simd.cs (Main): Pass args to the test driver.

svn path=/trunk/mono/; revision=138243
2009-07-20 20:45:55 +00:00
Zoltan Varga b992b77507 2009-07-20 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h (amd64_sse_pminud_reg_reg): Fix the encoding
	of this instruction.

svn path=/trunk/mono/; revision=138242
2009-07-20 20:45:49 +00:00
Michael Barker b81aefde91 2009-07-20 Michael Barker <[email protected]>
* AdminTest.cs:  Fixed namespace
	* AsyncPeekTest.cs:  Fixed namespace
	* AsyncReceiveTest.cs:  Fixed namespace
	* BasicMessagingTest.cs:  Fixed namespace
	* MessageEnumeratorTest.cs:  Fixed namespace
	* MQUtil.cs:  Fixed namespace
	* PeekTest.cs:  Fixed namespace
	* SelectorTest.cs:  Fixed namespace

svn path=/trunk/mcs/; revision=138239
2009-07-20 20:38:23 +00:00
Rodrigo Kumpera 989582c4e3 2009-07-20 Rodrigo Kumpera <[email protected]>
* Makefile: Add support for new test kind badmd for tests with broken
	metadata.

	* make_tests.sh: Fix some tests that have broken metadata.

	* *.sh: Add execute bit.

svn path=/trunk/mono/; revision=138236
2009-07-20 19:57:50 +00:00
Rodrigo Kumpera e0e0a6280d 2009-07-20 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_typespec_blob): Fix error message.

svn path=/trunk/mono/; revision=138235
2009-07-20 19:57:39 +00:00
Rodrigo Kumpera 5cac534122 2009-07-20 Rodrigo Kumpera <[email protected]>
* assembly-with-locals.il: Fix method to be verifiable.
	Add more shapes of valid locals.

	* cli-blob-tests.md (locals-sig): Fix some tests.

svn path=/trunk/mono/; revision=138234
2009-07-20 19:57:25 +00:00
Rodrigo Kumpera 812d445630 2009-07-20 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_field): Allow byref field.

	* metadata-verify.c (parse_locals_signature): Allow byref locals.

	* metadata-verify.c (is_valid_typespec_blob): Allow byref typespec.

svn path=/trunk/mono/; revision=138233
2009-07-20 19:57:15 +00:00
Rodrigo Kumpera 1659e7965f 2009-07-20 Rodrigo Kumpera <[email protected]>
* verify.c (do_cast): Fail for any non reference type that isn't boxed.
	Fixes #522784.

svn path=/trunk/mono/; revision=138232
2009-07-20 19:57:01 +00:00
Robert Jordan 8b1cb688ea 2009-07-20 Robert Jordan <[email protected]>
* cominterop.c (cominterop_get_managed_wrapper_adjusted):
	Fix invalid IL in valuetype handling (STOBJ must push the
	corresponding class). Fixes bug #523149.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=138231
2009-07-20 19:05:55 +00:00
Michael Barker 9b2c889017 2009-07-20 Michael Barker <[email protected]>
* MessagingProviderLocator.cs: Default to rabbitmq if no
	MONO_MESSAGING_PROVIDER variable is defined.

svn path=/trunk/mcs/; revision=138230
2009-07-20 18:38:46 +00:00
Michael Barker 38e85130a7 Move tests that do not reference RabbitMQ to System.Messaging.
svn path=/trunk/mcs/; revision=138229
2009-07-20 18:20:32 +00:00
Jb Evain ab62f6e017 missed that part
svn path=/trunk/mcs/; revision=138227
2009-07-20 16:12:45 +00:00
Jb Evain a5ee08151c hopefully fixes the Makefile
svn path=/trunk/mcs/; revision=138226
2009-07-20 16:07:44 +00:00
Jb Evain 6fe38f5790 2009-07-20 Jb Evain <[email protected]>
* Thread.cs: use the moonlight specific thread start
	hack for the net_2_1 profile exclusively.


svn path=/trunk/mcs/; revision=138225
2009-07-20 16:03:23 +00:00
Jb Evain 1edf90b806 2009-07-20 Jb Evain <[email protected]>
* Makefile: set monotouch_SUBDIRS to the net_2_1 assemblies set.


svn path=/trunk/mcs/; revision=138224
2009-07-20 16:00:52 +00:00
Jb Evain a11361bd10 2009-07-20 Jb Evain <[email protected]>
* profiles/monotouch.make: add monotouch profile.


svn path=/trunk/mcs/; revision=138223
2009-07-20 16:00:04 +00:00
Jb Evain 875472ae3a add monotouch sources files
svn path=/trunk/mcs/; revision=138222
2009-07-20 15:59:30 +00:00
Geoff Norton 4a81cc2410 2009-07-20 Geoff Norton <[email protected]>
* mini-x86.c: Fix --trace on darwin-x86 and other systems which require
        aligned access.

svn path=/trunk/mono/; revision=138218
2009-07-20 15:39:36 +00:00
Zoltan Varga 9e65e7bdd2 2009-07-20 Zoltan Varga <[email protected]>
* mini.c (mono_jit_runtime_invoke): Speed this up by adding a hash to
	MonoJitDomainInfo which maps MonoMethod's to a structure containing all
	the information which is needed for invokes, so only one locking+hash table
	lookup is needed.

svn path=/trunk/mono/; revision=138217
2009-07-20 15:13:06 +00:00
Zoltan Varga 2eee6832b5 2009-07-20 Zoltan Varga <[email protected]>
* mini.c (mono_jit_runtime_invoke): Speed this up by adding a hash to
	MonoJitDomainInfo which maps MonoMethod's to a structure containing all
	the information which is needed for invokes, so only one locking+hash table
	lookup is needed.

svn path=/trunk/mono/; revision=138216
2009-07-20 15:12:57 +00:00
Geoff Norton 0678c966fd 2009-07-20 Geoff Norton <[email protected]>
* gc.c: Use proper semaphores where available on posix and darwin.

svn path=/trunk/mono/; revision=138214
2009-07-20 15:06:45 +00:00
Geoff Norton a72b62b5a3 2009-07-20 Geoff Norton <[email protected]>
* thread-private.h: Use the new mono-semaphore.h.

svn path=/trunk/mono/; revision=138213
2009-07-20 15:06:42 +00:00
Geoff Norton 77a3328b68 2009-07-20 Geoff Norton <[email protected]>
* mono-semaphore.h: Refactor from io-layer/thread-private.h so it
        can be used by the runtime as well.

svn path=/trunk/mono/; revision=138212
2009-07-20 15:06:38 +00:00
Zoltan Varga ff905a3591 2009-07-20 Zoltan Varga <[email protected]>
* aot-compiler.c: Add a 'tool-prefix' option to be used when cross-compiling.

svn path=/trunk/mono/; revision=138211
2009-07-20 14:23:56 +00:00
Zoltan Varga 8ee7e9102b 2009-07-20 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_instances): Emit instances of
	GenericComparer<T> for primitive types.

svn path=/trunk/mono/; revision=138210
2009-07-20 14:10:29 +00:00
Jb Evain 06b76b7ca5 avoid using a custom sources file for the net_2_1_raw profile
svn path=/trunk/mcs/; revision=138205
2009-07-20 09:32:00 +00:00
Jb Evain cf8fcd3143 2009-07-20 Jb Evain <[email protected]>
* Makefile: filter the valid profile on the framework version,
	to make it easier to have custom variants.


svn path=/trunk/mcs/; revision=138204
2009-07-20 09:06:50 +00:00
Jb Evain 7d441b75f6 2009-07-20 Jb Evain <[email protected]>
* Makefile: filter the valid profile on the framework version,
	to make it easier to have custom variants.


svn path=/trunk/mcs/; revision=138203
2009-07-20 09:06:08 +00:00
Jb Evain 2649202006 2009-07-20 Jb Evain <[email protected]>
* Makefile: filter the valid profile on the framework version,
	to make it easier to have custom variants.


svn path=/trunk/mcs/; revision=138202
2009-07-20 09:05:50 +00:00
Jb Evain 85f8fcd99f 2009-07-20 Jb Evain <[email protected]>
* Makefile: filter the valid profile on the framework version,
	to make it easier to have custom variants.


svn path=/trunk/mcs/; revision=138201
2009-07-20 09:05:30 +00:00
Jb Evain cdc044525f 2009-07-20 Jb Evain <[email protected]>
* Makefile: filter the valid profile on the framework version,
	to make it easier to have custom variants.


svn path=/trunk/mcs/; revision=138199
2009-07-20 08:54:16 +00:00
Jb Evain f72473979d 2009-07-20 Jb Evain <[email protected]>
* Makefile: filter the valid profile on the framework version,
	to make it easier to have custom variants.


svn path=/trunk/mcs/; revision=138198
2009-07-20 08:53:57 +00:00
Jb Evain 43f59cd5b9 2009-07-20 Jb Evain <[email protected]>
* Lookup.cs: avoid a double dictionary lookup on the indexer.


svn path=/trunk/mcs/; revision=138194
2009-07-20 06:17:06 +00:00
Geoff Norton 5f37b8ab11 2009-07-19 Geoff Norton <[email protected]>
* gc.c: Unnamed posix semaphores are broken on darwin-arm too.



svn path=/trunk/mono/; revision=138192
2009-07-20 03:59:20 +00:00
Gonzalo Paniagua Javier f8ca363886 2009-07-19 Gonzalo Paniagua Javier <[email protected]>
* Lookup.cs: when there are no matching elements, return an empty
	enumerable. Fixes bug #523386.


svn path=/trunk/mcs/; revision=138190
2009-07-20 02:45:47 +00:00
Rodrigo Kumpera 0449ef109f 2009-07-19 Rodrigo Kumpera <[email protected]>
* mini-posix.c: Fix linux build.

svn path=/trunk/mono/; revision=138189
2009-07-19 18:04:12 +00:00
Rodrigo Kumpera c221f4215e 2009-07-19 Rodrigo Kumpera <[email protected]>
* refletion.c (is_sre_usertype): Change name to is_usertype and
	invert it's result so it returns true if the type is an user type
	and not the opposite.

	* reflection.c (is_*_type): Change all of those to use new macro
	check_corlib_type_cached that cached the type lookup so we don't
	need to do string comparisons all the type. Changed the signature
	to take a MonoClass instead.

	* reflection.c: Change mono_image_create_token and resolve_object
	to use is_sre_* functions.

svn path=/trunk/mono/; revision=138188
2009-07-19 17:44:45 +00:00
Geoff Norton 31c7fde068 2009-07-19 Geoff Norton <[email protected]>
* mini.h: Add prototypes for mono_runtime_syscall_fork and
        mono_gdb_render_native_backtraces
        * mini-darwin.c: Apple's syscall(SYS_fork) is very weird on x86,
        so we implement the sane semantics to the runtime here
        (mono_gdb_render_native_backtraces).  Apple also uses an ancient gdb
        so we need to call it differently (mono_gdb_render_native_backtraces)
        * mini-posix.c: Move the old semantics from mini.c to the prototypes
        here for default implementations.
        * mini.c: Refactor mono_handle_native_sigsegv so that we can properly
        support Apple's weird syscall (SYS_fork) implementation and not busy
        loop in abort() on native crashes on OSX anymore.

svn path=/trunk/mono/; revision=138187
2009-07-19 17:27:38 +00:00
Gert Driesen 3b86dc3ee4 * BinderTests.cs: Modified SelectMethod_ByRef and BindToMethod_ByRef
to compile on net_1_1 profile. Added tests for SelectMethod and
BindToMethod with params arguments, currently marked NotWorking.

svn path=/trunk/mcs/; revision=138186
2009-07-19 15:08:43 +00:00
Robert Jordan 50e650bdaa In Mono.Interop:
2009-07-11  Robert Jordan  <[email protected]>

	* ComInteropProxy.cs: Implement CreateProxy. Hide public/internal
	ctors forcing CreateProxy's usage. Hide CacheProxy since the
	runtime is able to lookup it anyways.
	Fixes bug #520437.

In System:
2009-07-19  Robert Jordan  <[email protected]>

	* __ComObject.cs: Factor out Initialize method and expose it to
	ComInteropProxy. Fixes bug #520437.

In System.Runtime.Remoting:
2009-07-11  Robert Jordan  <[email protected]>

	* RemotingServices.cs: Track ComInteropProxy's changes.


svn path=/trunk/mcs/; revision=138182
2009-07-18 23:15:10 +00:00
Michael Barker 785d541abd Added support for setting the provider using an App.config file, also allow for Mono.Messaging.RabbitMQ provider to be loaded from
the GAC.

svn path=/trunk/mcs/; revision=138179
2009-07-18 16:52:20 +00:00
Marek Habersack 21d1cf5593 2009-07-18 Marek Habersack <[email protected]>
* HttpContext.cs: GetGlobalResourceObject must look for resources
	in the 'Resources' "namespace" - it was a regression from the
	previous change to that method.

2009-07-18  Marek Habersack  <[email protected]>

	* DefaultResourceProvider.cs: if GetResourceObject is passed a
	null or empty classKey it just returns null.

	* AppResourcesAssemblyBuilder.cs: satellite assemblies are now
	built using al instead of gmcs - makes the build slightly faster.

svn path=/trunk/mcs/; revision=138177
2009-07-18 13:04:56 +00:00
Gert Driesen 41cb9e9a05 * Container.cs: Use generic list on 2.0 profile, and avoid using var
on 1.0 profile. Use for loop instead of while in Dispose to avoid
accessing count on each iteration.

svn path=/trunk/mcs/; revision=138176
2009-07-18 12:14:42 +00:00
Gert Driesen c58d431a74 * Container.cs: Avoid NRE in Remove and RemoveWithoutUnsiting.
* ContainerTest.cs: Added tests for Remove and RemoveWithoutUnsiting.

svn path=/trunk/mcs/; revision=138175
2009-07-18 09:56:51 +00:00
Gert Driesen 506ae3239b * ContainerTest.cs: Added tests for Add, Dispose, ValidateName and
GetService.
* Container.cs: Changed Dispose(bool) behaviour to match .NET, based
on patch by Tom Hindle ([email protected]). Also use ValidateName
in Add overloads on 1.0 profile by making it available as private
method. Use case-insensitive comparison of component name.

svn path=/trunk/mcs/; revision=138174
2009-07-18 08:20:49 +00:00
Zoltan Varga f827098163 2009-07-18 Zoltan Varga <[email protected]>
* aot-runtime.c (load_method): Change the handling of the
	MONO_LASTAOT env variable so MONO_LASTAOT=0 means that no aot methods
	are used.

svn path=/trunk/mono/; revision=138172
2009-07-17 23:50:11 +00:00
Zoltan Varga 6bc40ff1a0 2009-07-18 Zoltan Varga <[email protected]>
* mini.c (mono_patch_info_equal): Really fix the handling of RGCTX_FETCH.

svn path=/trunk/mono/; revision=138171
2009-07-17 23:50:02 +00:00
Mark Probst 6631e69d44 2009-07-18 Mark Probst <[email protected]>
* sgen-gc.c: Check for writes to the stack in the managed
        wbarrier as well.

svn path=/trunk/mono/; revision=138167
2009-07-17 23:15:35 +00:00
Mark Probst b87f407259 2009-07-18 Mark Probst <[email protected]>
* sgen-gc.c: When a thread is unregistered, don't free its remsets
        but put them on a list which is processed with the other thread's
        remsets.

svn path=/trunk/mono/; revision=138165
2009-07-17 23:07:15 +00:00
Mark Probst b97baf7bc5 2009-07-18 Mark Probst <[email protected]>
* sgen-gc.c: Fix and enable the internal allocator instead of
        using malloc/free (which causes deadlocks).

svn path=/trunk/mono/; revision=138164
2009-07-17 22:45:34 +00:00
Zoltan Varga 8fc5501bd4 2009-07-17 Zoltan Varga <[email protected]>
* add-conditional.pl Makefile: Applied patch from Marcus Griep
	<[email protected]>. Remove workarounds for compiling this assembly in the
	net 1.1 profile.

svn path=/trunk/mcs/; revision=138152
2009-07-17 19:22:32 +00:00
Zoltan Varga 1a3e569c0c 2009-07-17 Zoltan Varga <[email protected]>
* add-conditional.pl Makefile: Applied patch from Marcus Griep
	<[email protected]>. Remove workarounds for compiling this assembly in the
	net 1.1 profile.

svn path=/trunk/mcs/; revision=138151
2009-07-17 19:22:02 +00:00
Zoltan Varga daa2244782 2009-07-17 Zoltan Varga <[email protected]>
* Makefile: Applied patch from Marcus Griep <[email protected]>.
	Move Mono.C5 to net_2_0_dirs.

svn path=/trunk/mcs/; revision=138150
2009-07-17 19:21:43 +00:00
Carlos Alberto Cortez 200693d8d8 2009-07-17 Carlos Alberto Cortez <[email protected]>
* RadioButtonTest.cs: Update the Checked test to not depend on
	Form.Show, since we need to check the same behaviour even if no handle
	has been created yet.


svn path=/trunk/mcs/; revision=138146
2009-07-17 18:27:29 +00:00
Carlos Alberto Cortez ae62cfc993 2009-07-17 Carlos Alberto Cortez <[email protected]>
* RadioButton.cs: Setting Checked when none of the sibligs is checked
	should happen *not* in GotFocus, but in the Enter event. This is
	specially important since we should get that Checked behaviour even if
	no handle is created yet - and thus, no actual GotFocus call happens at
	the time.
	Fixes #520764.


svn path=/trunk/mcs/; revision=138145
2009-07-17 18:24:44 +00:00
Zoltan Varga 244bbf3172 2009-07-17 Zoltan Varga <[email protected]>
* mini.c (mono_patch_info_equal): Revert the last change for now as it
	seems to break the aot tests.

svn path=/trunk/mono/; revision=138144
2009-07-17 18:01:33 +00:00
Gonzalo Paniagua Javier 72090fea58 2009-07-17 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationElement.cs: don't skip xml nodes when reading 2
	ConfigurationElement in a row. Patch by Greg Smolyn that fixes bug
	#521231.


svn path=/trunk/mcs/; revision=138142
2009-07-17 17:58:53 +00:00
Gonzalo Paniagua Javier c2db846430 2009-07-17 Gonzalo Paniagua Javier <[email protected]>
* mono-proclib.c: fix reading processor usage for a process. Patch
	from Jacob Gladish that fixes bug #523052.


svn path=/trunk/mono/; revision=138138
2009-07-17 17:40:46 +00:00
Atsushi Eno 201e82eed4 2009-07-17 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs: add the registered node itself to peer list.
	  (The messaging must be done as TCP request/reply pattern, so it's
	  not working yet.)


svn path=/trunk/mcs/; revision=138126
2009-07-17 13:47:15 +00:00
Atsushi Eno b10ae22317 2009-07-17 Atsushi Enomoto <[email protected]>
* TcpRequestChannel.cs : new channel file (TCP for request/reply
	  messaging pattern). The messaging part is not working yet.
	* TcpChannelFactory.cs : support IRequestChannel.
	* TcpDuplexSessionChannel.cs : add unsized message support.

	* System.ServiceModel.dll.sources: add TcpRequestChannel.


svn path=/trunk/mcs/; revision=138125
2009-07-17 13:45:19 +00:00
Atsushi Eno 25e1fd20dc 2009-07-17 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs, RequestChannelBase.cs :
	  A couple of async members are now implemented in the base class.
	  Ditto for EndpointAddress and Via.


svn path=/trunk/mcs/; revision=138122
2009-07-17 12:48:45 +00:00
Atsushi Eno 2299a9c64b 2009-07-17 Atsushi Enomoto <[email protected]>
* NetTcpBinding.cs : a couple of members should be passed to
	  appropriate binding element.


svn path=/trunk/mcs/; revision=138121
2009-07-17 12:45:36 +00:00
Zoltan Varga e61bf64edb 2009-07-17 Zoltan Varga <[email protected]>
* mini.c (mono_patch_info_equal): Fix the handling of
	MONO_PATCH_INFO_RGCTX_FETCH.

svn path=/trunk/mono/; revision=138095
2009-07-17 02:45:38 +00:00
Miguel de Icaza b6fc772f91 Update docs
svn path=/trunk/mono/; revision=138079
2009-07-16 20:54:19 +00:00
Zoltan Varga 0ba5ce8809 2009-07-16 Zoltan Varga <[email protected]>
* unwind.c: Use TARGET_AMD64 instead of __x86_64__.

svn path=/trunk/mono/; revision=138077
2009-07-16 20:01:17 +00:00
Carlos Alberto Cortez e377b0e3f2 2009-07-16 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: Adjust manually the top border for out internal
	ComboBox, since removing the border from it leaves it without any
	margin. This is not noticeable in a default ComboBox, but it is in an
	instance shown on top of ToolStrip.
	Fixes the remaining part of #507462.


svn path=/trunk/mcs/; revision=138075
2009-07-16 19:46:27 +00:00
Zoltan Varga ef75244fe3 2009-07-16 Zoltan Varga <[email protected]>
* mini.c (mono_patch_info_hash): Fix the handling of
	MONO_PATCH_INFO_INTERNAL_METHOD.
	(mono_patch_info_equal): Ditto.

svn path=/trunk/mono/; revision=138074
2009-07-16 19:23:02 +00:00
Marek Safar 73f18004ec Run the test.
svn path=/trunk/mcs/; revision=138073
2009-07-16 19:13:08 +00:00
Raja R Harinath ef2286816d Improve coarse-grain parallelism in the build
* Makefile (_boot_:net_2_0_bootstrap): Depend on
'net_1_1_bootstrap' profile, rather than 'net_1_1'.
* build/profiles/net_2_0_bootstrap.make (BOOTSTRAP_PROFILE): Set to
net_1_1_bootstrap instead of net_1_1.

svn path=/trunk/mcs/; revision=138070
2009-07-16 17:56:14 +00:00
Sebastien Pouliot f09d0beed3 2009-07-16 Sebastien Pouliot <[email protected]>
* WebHeaderCollection_2_1.cs: Seal type.


svn path=/trunk/mcs/; revision=138068
2009-07-16 17:38:58 +00:00
Sebastien Pouliot 838010f0cd 2009-07-16 Sebastien Pouliot <[email protected]>
* InvalidTimeZoneException.cs, TimeZoneInfo.AdjustmentRule.cs,
	TimeZoneInfo.cs, TimeZoneInfo.TransitionTime.cs: Bring back those
	inside NET_2_1 profile for Moonlight.


svn path=/trunk/mcs/; revision=138067
2009-07-16 17:30:34 +00:00
Raja R Harinath b77fbbbf06 * get.c (get_type): Make robust to invalid types.
svn path=/trunk/mono/; revision=138066
2009-07-16 17:17:00 +00:00
Marek Safar 0515750119 2009-07-16 Marek Safar <[email protected]>
* anonymous.cs: Split assignable and readonly generated variable
	references.


svn path=/trunk/mcs/; revision=138063
2009-07-16 17:03:50 +00:00
Marek Safar 4071a7b618 New test.
svn path=/trunk/mcs/; revision=138060
2009-07-16 15:57:14 +00:00
Marek Safar c81246520d 2009-07-16 Marek Safar <[email protected]>
A fix for bug #521671
	* statement.cs: Fixed crash when checking missing type.


svn path=/trunk/mcs/; revision=138058
2009-07-16 15:56:30 +00:00
Marek Safar a95dd14068 New tests.
svn path=/trunk/mcs/; revision=138055
2009-07-16 15:24:22 +00:00
Marek Safar 09bb8bac27 2009-07-16 Marek Safar <[email protected]>
* typemanager.cs, generic.cs, argument.cs, linq.cs, convert.cs,
	assign.cs, expression.cs, statement.cs, support.cs, ecore.cs,
	class.cs, driver.cs: Work on dynamic binding.

	* dynamic.cs: New file.

	* *.sources, *.proj: Updated.


svn path=/trunk/mcs/; revision=138054
2009-07-16 15:24:06 +00:00
Zoltan Varga 750b6999d3 2009-07-16 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Use module instead of ctx->module
	in a few places.

svn path=/trunk/mono/; revision=138052
2009-07-16 15:10:10 +00:00
Marek Habersack 3d3cd1037f 2009-07-16 Marek Habersack <[email protected]>
* main.c: added new --presources option which prints manifest
	resource offsets and names.

	* monodis.1: added documentation of the --presources option.

svn path=/trunk/mono/; revision=138037
2009-07-16 14:26:18 +00:00
Rodrigo Kumpera 17395d6851 2009-07-16 Rodrigo Kumpera <[email protected]>
* refletion.c: Fix builds with SRE disabled by adding a minimal
	implementation of mono_reflection_type_get_handle.

svn path=/trunk/mono/; revision=138025
2009-07-16 12:33:44 +00:00
Zoltan Varga 14e964f94f 2009-07-16 Zoltan Varga <[email protected]>
* mini-llvm.c: Add some infrastructure for AOT support.

svn path=/trunk/mono/; revision=138022
2009-07-16 11:42:17 +00:00
Zoltan Varga 96f9c506f7 2009-07-15 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (mono_llvm_build_alloca): Update to latest llvm api.

svn path=/trunk/mono/; revision=138021
2009-07-16 11:42:09 +00:00
Jb Evain 481c937742 2009-07-16 Jb Evain <[email protected]>
* Mono.Cecil/AssemblyFactory.cs
	* Mono.Cecil.Metadata/MetadataWriter.cs
	* Mono.Cecil.Binary/ImageWriter.cs:
		Support for properly writing 4.0 dlls.
		Patch by Carlo Kok  <[email protected]>.


svn path=/trunk/mcs/; revision=138018
2009-07-16 09:34:14 +00:00
Rodrigo Kumpera a179aab9e6 2009-07-15 Rodrigo Kumpera <[email protected]>
* refletion.c: Make mono_reflection_type_get_handle non static.

	* object-internals.h: Export mono_reflection_type_get_handle.

	* icall.c (ves_icall_MonoGenericClass_InflateType): Resolve the
	unmanaged handle using mono_reflection_type_get_handle.

	Fix changelog date of previous commit.

svn path=/trunk/mono/; revision=138013
2009-07-16 03:58:07 +00:00
Gonzalo Paniagua Javier a7ad6b8027 2009-07-15 Gonzalo Paniagua Javier <[email protected]>
* Font.cs: implement OriginalFontName.


svn path=/trunk/mcs/; revision=138012
2009-07-16 03:34:10 +00:00
Gonzalo Paniagua Javier ef5858d1fe build hacks
svn path=/trunk/mcs/; revision=138010
2009-07-16 00:43:35 +00:00
Gonzalo Paniagua Javier 59e62f3d10 new class
svn path=/trunk/mcs/; revision=138006
2009-07-15 22:24:05 +00:00
Rodrigo Kumpera bcdb988988 2009-07-14 Rodrigo Kumpera <[email protected]>
* refletion.c: Replace all reads of MonoReflectionType::type with
	calls to mono_reflection_type_get_handle. Only the functions that
	deal with constructing TypeBuilder::type have not been changed
	because they have to deal with NULL values.

	This is a first step into supporting reflection types that don't
	map directly into their unmanaged counterpart.

svn path=/trunk/mono/; revision=138001
2009-07-15 20:46:56 +00:00
Rodrigo Kumpera 4a5288e9e0 2009-07-15 Rodrigo Kumpera <[email protected]>
* cpu-x86.md:
	* cpu-amd64.md: Revert previous change as those instructions
	take 2 separate arguments. Remember to read the arch docs more
	carefully next time.

svn path=/trunk/mono/; revision=138000
2009-07-15 20:46:41 +00:00
Gonzalo Paniagua Javier 66b7461582 2009-07-15 Gonzalo Paniagua Javier <[email protected]>
* mono-proclib.c: fixed setting the NUL terminator.
	Thanks to Jacob Gladish.


svn path=/trunk/mono/; revision=137998
2009-07-15 20:28:25 +00:00
Rodrigo Kumpera 6fa184bfef 2009-07-15 Rodrigo Kumpera <[email protected]>
* EnumBuilder.cs: Use new derived types for array, pointer and byref.

2009-07-15 Rodrigo Kumpera  <[email protected]>

	* DerivedTypesTest.cs: New tests for interaction with
	EnumBuilder objects.

svn path=/trunk/mcs/; revision=137989
2009-07-15 19:56:21 +00:00
Rodrigo Kumpera 387ba7e029 2009-07-15 Rodrigo Kumpera <[email protected]>
* GenericTypeParameterBuilder.cs (MakeByRefType): Return an instance
	of PointerType instead of relying on the runtime for it.

2009-07-15 Rodrigo Kumpera  <[email protected]>

	* DerivedTypesTest.cs: New tests for PointerTypeinteraction
	with GenericTypeParameterBuilder.

svn path=/trunk/mcs/; revision=137988
2009-07-15 19:56:10 +00:00
Rodrigo Kumpera 9b77ca33c6 2009-07-15 Rodrigo Kumpera <[email protected]>
* GenericTypeParameterBuilder.cs (MakeByRefType): Return an instance
	of ByRefType instead of relying on the runtime for it.

2009-07-15 Rodrigo Kumpera  <[email protected]>

	* DerivedTypesTest.cs: New tests for generics related
	stuff and interaction with GenericTypeParameterBuilder.

svn path=/trunk/mcs/; revision=137987
2009-07-15 19:55:58 +00:00
Ankit Jain 8b8f1f0122 Fix bug #519922.
* AssemblyResolver.cs (FindInDirectory): Try the @reference as a
filename as it is, or with different @file_extensions.
If @reference is a assembly name, then look for *.@file_extensions
for target assembly.
(GetAssemblyNameFromFile): Log FileNotFoundException and BadImageFormatException
separately, instead of a single unclear message.

Change all uses of Assembly.GetAssemblyName with GetAssemblyNameFromFile
which does the required error checking and logging.

svn path=/trunk/mcs/; revision=137986
2009-07-15 19:43:02 +00:00
Zoltan Varga 064974f0d5 2009-07-15 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (mono_llvm_build_alloca): Update to latest llvm api.

svn path=/trunk/mono/; revision=137984
2009-07-15 19:04:10 +00:00
Sebastien Pouliot c82f5c894c 2009-07-15 Sebastien Pouliot <[email protected]>
* gdipFunctions.cs: Fix XVisualIDFromVisual to return an IntPtr
	since 64 bits X servers will return a 64 bits value.
	* gdipStructs.cs: Fix XVisualInfo to use IntPtr on fields that
	are 64 bits on 64 bits X servers.
	* Graphics.cs: Adjust CopyFromScreenX11 to work with IntPtr so the
	screenshot code can work on both 32 and 64 bits X servers.
	[Fix bug #521718]


svn path=/trunk/mcs/; revision=137982
2009-07-15 18:57:09 +00:00
Geoff Norton e0d3afd9ac fix a typo
svn path=/trunk/mono/; revision=137974
2009-07-15 17:02:30 +00:00
Paolo Molaro 4f0c6b7f94 Wed Jul 15 17:20:27 CEST 2009 Paolo Molaro <[email protected]>
* mini-ppc.c: exploit multiple load/store units if available (rest of
	the change from Steven Munroe (<[email protected]>) first patch at 
	http://bugzilla.novell.com/show_bug.cgi?id=487846).


svn path=/trunk/mono/; revision=137965
2009-07-15 15:24:02 +00:00
Paolo Molaro c10cd0c617 Wed Jul 15 16:24:57 CEST 2009 Paolo Molaro <[email protected]>
* mini-ppc.c: integrate most of Steven Munroe (<[email protected]>)
	first patch at http://bugzilla.novell.com/show_bug.cgi?id=487846.


svn path=/trunk/mono/; revision=137954
2009-07-15 14:31:18 +00:00
Marek Habersack 4a2ae0bb4f 2009-07-15 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: another approach to suppressing
	application reloads after the app writes to its root web.config
	file. Leaving the previous code in place to get more
	protection. It's a kludge, but it's the best option to avoid
	all the races caused by System.Configuration+FileSystemWatcher
	without rewriting large parts of System.Configuration (and
	System.Web.Configuration). Fixes bug #522017

2009-07-15  Marek Habersack  <[email protected]>

	* Configuration.cs: explicitly flush the stream when writing XML
	data. Part of fix for bug #522017

2009-07-15  Marek Habersack  <[email protected]>

	* HttpApplicationFactory.cs: added internal methods to
	enable/disable specific watchers. Part of fix for bug #522017

svn path=/trunk/mcs/; revision=137951
2009-07-15 13:22:33 +00:00
Marek Safar 5a4401690e 2009-07-15 Marek Safar <[email protected]>
* expression.cs (Conditional): Avoid double Resolve.



svn path=/trunk/mcs/; revision=137948
2009-07-15 13:05:41 +00:00
Rodrigo Kumpera 387d0f5ff9 2009-07-14 Rodrigo Kumpera <[email protected]>
* cpu-x86.md: Fix missing clobbering from trancendental simd
	ops.

	* cpu-amd64.md: Same.

svn path=/trunk/mono/; revision=137924
2009-07-15 01:45:03 +00:00
Gonzalo Paniagua Javier 56f3fa4091 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* SortedListTest.cs: new tests by Kevin Fitzgerald.


svn path=/trunk/mcs/; revision=137921
2009-07-15 01:09:20 +00:00
Gonzalo Paniagua Javier b0a047f690 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* SortedList.cs: same issue as bug #521750 in System.


svn path=/trunk/mcs/; revision=137918
2009-07-15 01:07:45 +00:00
Gonzalo Paniagua Javier c8fd06fbe8 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* SortedListTest.cs: new tests for bug #521750 provided by
	Kevin Fitzgerald.


svn path=/trunk/mcs/; revision=137916
2009-07-15 01:05:07 +00:00
Gonzalo Paniagua Javier 05f367e52d 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* SortedList.cs: the IComparar.Compare arguments were reversed.
	Fixes bug #521750. Patch by Kevin Fitzgerald.


svn path=/trunk/mcs/; revision=137914
2009-07-15 01:02:35 +00:00
Rodrigo Kumpera 6318401c2a 2009-07-14 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_locals_signature): Don't complain
	on signature with zero locals since MS generates it and doesn't
	bother with.

svn path=/trunk/mono/; revision=137913
2009-07-15 00:57:08 +00:00
Gonzalo Paniagua Javier ba5baa26d2 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* ApplicationShutdownReason.cs: add new 3.5 value.
	* ParserErrorCollection.cs: add setter for ParserError.
	Patch from Daniel Gagne.


svn path=/trunk/mcs/; revision=137911
2009-07-15 00:28:16 +00:00
Gonzalo Paniagua Javier 5a1a456325 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* Path.cs: only trim the end of the file.
	Fixes bug #521924.

svn path=/trunk/mcs/; revision=137909
2009-07-15 00:25:06 +00:00
Rodrigo Kumpera b79a0d6279 2009-07-14 Rodrigo Kumpera <[email protected]>
* Attribute.cs (GetCustomAttributes): Pass typeof(Attribute)
	to GetCustomAttributes to match MS.

	* MonoCustomAttrs.cs (GetCustomAttributesBase): Do proper
	checking of which types are handled by the runtime.

	* MonoCustomAttrs.cs (IsDefined): Same.

	Fixes #521885.

2009-07-14 Rodrigo Kumpera  <[email protected]>

	* AttributeTest.cs: Add tests for user types passed to
	Attribute.GetCustomAttribute[s].

svn path=/trunk/mcs/; revision=137908
2009-07-15 00:23:22 +00:00
Jerri Maine 690b202cae Contributed under the terms of the MIT/X11 license by
Jerry Maine <[email protected]>.

* basic-simd.cs: Added tests for single and doulble indexers.

* cpu-amd64.md: Added simd opcode information.

* mini-amd64.c: Added IR to native simd generation code.
Added simd register names and function that returns them.

* mini-amd64.h: Added marcos to turn on simd code compilation in
amd64. Added max simd register count marco. Added caller/callee
register mask marcos. Added marcos to use simd register bank.

* mini.h: Added helper marco for shufling dwords and simple
floats.

svn path=/trunk/mono/; revision=137905
2009-07-14 23:16:37 +00:00
Michael Barker 8979501ecc 2009-07-14 Michael Barker <[email protected]>
* RabbitMQMessageQueue.cs: Refactored, removed dead code and renamed methods.

svn path=/trunk/mcs/; revision=137897
2009-07-14 20:31:07 +00:00
Sebastien Pouliot 14846e6f2f Security fix for CVE-2009-0217
svn path=/trunk/mcs/; revision=137886
2009-07-14 18:45:19 +00:00
Zoltan Varga bbccb6b5ad 2009-07-14 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp: Update to latest llvm SVN api.

svn path=/trunk/mono/; revision=137885
2009-07-14 18:28:42 +00:00
Raja R Harinath 973dd2725e * BinderTests.cs (SelectMethod_ByRef, BindToMethod_ByRef): Disable
in net_1_1 profile.

svn path=/trunk/mcs/; revision=137883
2009-07-14 17:59:13 +00:00
Zoltan Varga 79aaaa30b7 2009-07-14 Zoltan Varga <[email protected]>
* Makefile.am (mono_LDADD): Pass LLVM_LDFLAGS to the linked.

	* unwind.c (mono_unwind_get_ops_from_fde): Make this return
	the length of the native code as well.

svn path=/trunk/mono/; revision=137880
2009-07-14 17:47:07 +00:00
Zoltan Varga 7e65d16db3 2009-07-14 Zoltan Varga <[email protected]>
* configure.in: Add more libraries needed by the llvm backend.

svn path=/trunk/mono/; revision=137879
2009-07-14 17:46:58 +00:00
Rodrigo Kumpera 74045e2b03 2009-07-14 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_image_get_array_token): Resolve return
	type using mono_reflection_type_get_handle.

	* reflection.c (mono_image_get_array_token): Resolve array method
	parent type using mono_reflection_type_get_handle.

svn path=/trunk/mono/; revision=137878
2009-07-14 17:45:25 +00:00
Rodrigo Kumpera 799721dae9 2009-07-14 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs (DerivedType): Implement IsAssignableFrom
	and ContainsGenericParameters

	* DerivedTypes.cs (DerivedType::UnderlyingSystemType): Create
	the unmanaged type before returning so the resulting object is
	understood as a SystemType.

	* DerivedTypes.cs (DerivedType::AssemblyQualifiedName): Return null
	if element's FullName is null as well.

	* DerivedTypes.cs (ArrayType::GetAttributeFlagsImpl): Return proper
	array flags if under compiler context.

	* DerivedTypes.cs (*::FormatName): Return null if elementName is.

	* GenericTypeParameterBuilder.cs: Improve compatibility when not
	under compler context.

	* GenericTypeParameterBuilder.cs (MakeArrayType): Return an instance
	of ArrayType instead of relying on the runtime for it.

	* TypeBuilder.cs: Add error checking to MakeArrayType and remove some
	MonoTODO.

2009-07-14 Rodrigo Kumpera  <[email protected]>

	* DerivedTypesTest.cs: Added tests for generics related
	stuff and interaction with GenericTypeParameterBuilder.

	* GenericTypeParameterBuilderTest.cs: New file with tests
	for the changes done.

svn path=/trunk/mcs/; revision=137877
2009-07-14 17:45:15 +00:00
Marek Safar 38d6f430bf 2009-07-14 Marek Safar <[email protected]>
* CSharpInvokeBinder.cs, CSharpBinaryOperationBinder.cs,
	CSharpGetMemberBinder.cs, CSharpGetIndexBinder.cs, Extensions.cs,
	CSharpIsEventBinder.cs, CSharpUnaryOperationBinder.cs,
	CSharpConvertBinder.cs, CSharpSetIndexBinder.cs,
	CSharpInvokeMemberBinder.cs, CSharpSetMemberBinder.cs: New files.


svn path=/trunk/mcs/; revision=137873
2009-07-14 16:39:03 +00:00
Gonzalo Paniagua Javier be811a6260 fix the build
svn path=/trunk/mcs/; revision=137868
2009-07-14 15:03:13 +00:00
Marek Habersack 0878d95699 2009-07-14 Marek Habersack <[email protected]>
* FieldTemplateFactoryTest.cs: added

    	* DynamicControlTest.cs: added TearDown method to clean up after
    	non-default field template tests.
    	Added tests for GetAttribute, HtmlEncode, FormattingOptions, Mode,
    	NullDisplayText, SetAttribute, ValidationGroup.

    2009-07-14  Marek Habersack  <[email protected]>

    	* AssertExtensions.cs: include full exception trace in the Fail
    	message

    2009-07-14  Marek Habersack  <[email protected]>

    	* FieldTemplateFactory.cs: implemented TemplateFolderVirtualPath

svn path=/trunk/mcs/; revision=137862
2009-07-14 13:57:54 +00:00
Atsushi Eno bdc7f66289 2009-07-14 Atsushi Enomoto <[email protected]>
* ServiceBehaviorAttribute.cs : fix IsolationLevel default value.
	* CallbackBehaviorAttribute.cs : ditto.
	  Partly implemented interface methods.


svn path=/trunk/mcs/; revision=137861
2009-07-14 13:42:36 +00:00
Atsushi Eno b407c938e5 2009-07-14 Atsushi Enomoto <[email protected]>
* ServiceSettingsResponseInfo.cs
	  RegisterResponseInfo.cs
	  RefreshResponseInfo.cs
	  ResolveInfo.cs
	  UpdateInfo.cs
	  RegisterInfo.cs
	  UnregisterInfo.cs
	  ResolveResponseInfo.cs
	  RefreshInfo.cs : implement HasBody(). I couldn't find any case
	  that this method might return false.

	* PeerResolverSerializationTest.cs : fix test name/namespace.
	  add HasBody() test.


svn path=/trunk/mcs/; revision=137859
2009-07-14 12:41:31 +00:00
Sebastien Pouliot 3b041a87a7 2009-07-14 Sebastien Pouliot <[email protected]>
* System.Net.dll.sources: Remove extra files not needed to
	compile System.Net (and cut the tuning time too)
	* DummySystemNet.cs: Remove. Not needed anymore.


svn path=/trunk/mcs/; revision=137856
2009-07-14 12:24:03 +00:00
Sebastien Pouliot 4d12f1bee0 2009-07-14 Sebastien Pouliot <[email protected]>
* Socket_2_1.cs, SocketAsyncEventArgs.cs: A bit more NET_2_1 defines
	to help the tuner remove some extra types for moonlight.


svn path=/trunk/mcs/; revision=137855
2009-07-14 12:21:46 +00:00
Atsushi Eno a69bc349e4 2009-07-14 Atsushi Enomoto <[email protected]>
* CallbackBehaviorAttributeTest.cs : new test.

	* System.ServiceModel_test.dll.sources:
	  add CallbackBehaviorAttributeTest.cs.


svn path=/trunk/mcs/; revision=137850
2009-07-14 11:33:17 +00:00
Atsushi Eno f1915fefb7 2009-07-14 Atsushi Enomoto <[email protected]>
* OperationBehaviorAttribute.cs :
	  add AutoDisposeParameters, and apply it.
	* CallbackBehaviorAttribute.cs : added couple of missing members.

	* DispatchRuntime.cs : add ValidateMustUnderstand.
	* DispatchOperation.cs : add AutoDisposeParameters.


svn path=/trunk/mcs/; revision=137849
2009-07-14 11:31:10 +00:00
Marek Habersack 01916d259e 2009-07-14 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: added support for suppressing
	application reload when the main config file is written to from
	application.

	* WebConfigurationHost.cs: added minimal implementation of
	WriteCompleted, which checks if there's need to suppress
	application reload.

2009-07-14  Marek Habersack  <[email protected]>

	* ConfigurationSaveEventArgs.cs, ConfigurationSaveEventHandler.cs:
	added

	* Configuration.cs: added two internal events - SaveStart and
	SaveEnd. They are used by System.Web's configuration system to
	suppress application reloads when configuration is modified and
	saved from within a web application. It is necessary to use events
	since there is no guarantee the web application will use
	WebConfigurationManager (and thus WebConfigurationHost) for
	writing.

2009-07-14  Marek Habersack  <[email protected]>

	* System.Configuration.dll.sources: added
	System.Configuration/ConfigurationSaveEventArgs.cs
	System.Configuration/ConfigurationSaveEventHandler.cs

2009-07-14  Marek Habersack  <[email protected]>

	* AssemblyInfo.cs: added InternalsVisibleTo for System.Web

2009-07-14  Marek Habersack  <[email protected]>

	* HttpApplicationFactory.cs: OnFileChanged doesn't reload
	application if reload suppression is active.

svn path=/trunk/mcs/; revision=137847
2009-07-14 11:24:36 +00:00
Zoltan Varga acc16b8735 2009-07-14 Zoltan Varga <[email protected]>
* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=137845
2009-07-14 10:39:52 +00:00
Zoltan Varga 7e9947b0c9 2009-07-14 Zoltan Varga <[email protected]>
* AssemblyBuilder.cs: Applied patch from <[email protected]>. Save
	the public key token to a field where the runtime can access it.

svn path=/trunk/mcs/; revision=137844
2009-07-14 10:39:44 +00:00
Zoltan Varga cb1627d570 2009-07-14 Zoltan Varga <[email protected]>
* reflection.c (mono_image_basic_init): Applied patch from
	<[email protected]>. Set the public key token from the assembly
	builder. Fixes #518909.

	* appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=137843
2009-07-14 10:39:35 +00:00
Atsushi Eno 3c33f30c83 2009-07-14 Atsushi Enomoto <[email protected]>
* CustomPeerResolverService.cs : remove commented code.
	  Fix and reduce extra code in ServiceBehaviorAttribute.


svn path=/trunk/mcs/; revision=137840
2009-07-14 08:05:38 +00:00
Atsushi Eno 39979ffd69 2009-07-14 Atsushi Enomoto <[email protected]>
* ServiceBehaviorAttribute.cs : fix default values and simplify code.


svn path=/trunk/mcs/; revision=137839
2009-07-14 08:04:26 +00:00
Atsushi Eno 13326a07ec 2009-07-14 Atsushi Enomoto <[email protected]>
* ResolveResponseInfo.cs : by default it returns empty address list,
	  instead of xsi:nil.
	* LocalPeerResolverService.cs : resolve operation should return
	  all registered nodes but the client itself.


svn path=/trunk/mcs/; revision=137838
2009-07-14 07:43:44 +00:00
Atsushi Eno b9bde7b74f 2009-07-14 Atsushi Enomoto <[email protected]>
* RefreshResponseInfo.cs : fix name typo.


svn path=/trunk/mcs/; revision=137837
2009-07-14 07:21:47 +00:00
Atsushi Eno 3844b994ec 2009-07-14 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : read false (0x84) and true (0x86).


svn path=/trunk/mcs/; revision=137836
2009-07-14 07:20:17 +00:00
Gonzalo Paniagua Javier 6457cfba7c 2009-07-13 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: when a watched subdirectory is deleted, remove it
	from the list of children and only raise an event if it matches the
	filter.


svn path=/trunk/mcs/; revision=137829
2009-07-13 22:31:34 +00:00
Zoltan Varga 35087f63d5 2009-07-14 Zoltan Varga <[email protected]>
* basic-simd.cs: Add a test for #521662.

svn path=/trunk/mono/; revision=137828
2009-07-13 22:21:45 +00:00
Zoltan Varga 12ce867093 Revert r137822
svn path=/trunk/mono/; revision=137827
2009-07-13 22:19:45 +00:00
Zoltan Varga 3f59a81f59 2009-07-14 Zoltan Varga <[email protected]>
* Changelog: Rename this to ChangeLog.

	* Mono.Simd/Mono.Simd/ArrayExtensions.cs: Don't ignore the 'offset'
	parameter in the GetVector () methods. Fixes #521692.

svn path=/trunk/mcs/; revision=137824
2009-07-13 22:09:35 +00:00
Zoltan Varga 40e91fcd27 2009-07-13 Zoltan Varga <[email protected]>
* basic-simd.cs: Add a test for #521662.

svn path=/trunk/mono/; revision=137822
2009-07-13 21:59:06 +00:00
Zoltan Varga 51c537951c 2009-07-13 Zoltan Varga <[email protected]>
* x86/x86-codegen.h: Applied patch from Marian Salaj <[email protected]>.
	Fix encoding of PMINSW and PMINSD. Fixes #521662.

svn path=/trunk/mono/; revision=137821
2009-07-13 21:58:58 +00:00
Zoltan Varga ad35774d1b 2009-07-13 Zoltan Varga <[email protected]>
* class.c (mono_class_needs_cctor_run): Make this return false if
	the class has no cctor.

svn path=/trunk/mono/; revision=137820
2009-07-13 21:46:41 +00:00
Zoltan Varga 29a69ae76a 2009-07-13 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): When calling a gshared method,
	call a generic class init trampoline if needed. Fixes #519336.

	* generics.cs: Add a test.

svn path=/trunk/mono/; revision=137819
2009-07-13 21:39:31 +00:00
Michael Barker 95dc3521c0 2009-07-11 Michael Barker <[email protected]>
* MessageQueueException.cs: Removed MonoTODO.
	* MessageBaseTest.cs: Moved from Mono.Messaging.Test
	* MessageEnumeratorTest.cs: Moved from Mono.Messaging.Test
	* MessageTest.cs: Used using aliases to prevent namespace clashes.
	* AdminTest.cs: Remove unused variables.
	* AsyncPeekTest.cs: Remove unused variables.
	* AsyncReceiveTest.cs: Remove unused variables.
	* MessageFactory.cs: Switched to DateTime.UtcNow.
	* RabbitMQMessageQueue.cs: Removed some unecessary references to realm.
	* RabbitMQMessagingProvider.cs: Removed some unecessary references to realm.
	Changed volatile field to use Interlocked.Increment (++i is not thread safe).
	* Mono.Messaging.RabbitMQ_test.dll.sources: Moved MessageEnumeratorTest.cs
	and MessageBaseTest.cs from Mono.Messaging.Test.
	* MessageBaseTest.cs: Moved to Mono.Messaging.RabbitMQ.Test
	* MessageEnumeratorTest.cs: Moved to Mono.Messaging.RabbitMQ.Test
	* MessagingProviderLocator.cs:  Removed unessecary fields, made fields
	readonly and some formatting changes.
	* Mono.Messaging_test.dll.sources:  Moved MessageBaseTest.cs and
	MessageEnumeratorTest.cs to Mono.Messaging.RabbitMQ.Test.

svn path=/trunk/mcs/; revision=137816
2009-07-13 20:59:00 +00:00
Marek Habersack 972ba36bac 2009-07-13 Marek Habersack <[email protected]>
* ProvidersHelper.cs: InstantiateProvider doesn't have to
	explicitly look for types in App_Code assemblies - this is done in
	HttpApplication.LoadType.

2009-07-13  Marek Habersack  <[email protected]>

	* AppCodeCompiler.cs: wrap HttpApplication.LoadTypeFromBin call in
	try/catch, so that we can wrap the possible exception in
	HttpException.

2009-07-13  Marek Habersack  <[email protected]>

	* HttpApplication.cs: LoadType - wrap call to LoadTypeFromBin in
	try/catch so that we can decide whether or not to throw
	exceptions. LoadTypeFromBin - ignore the FileLoadException and
	BadImageException exceptions as they don't matter in this
	context.

svn path=/trunk/mcs/; revision=137811
2009-07-13 19:52:03 +00:00
Carlos Alberto Cortez 138cedfb54 2009-07-13 Carlos Alberto Cortez <[email protected]>
* TextBoxBase.cs: Expose the margin top width as a property, to keep
	the code clean.
	* ToolStripTextBox.cs: Since we are actually using no border in the
	default TextBox impl, and we are drawing the border ourselves, we need
	to manually set the top margin.
	Fixes part of #507462.


svn path=/trunk/mcs/; revision=137810
2009-07-13 19:18:38 +00:00
Paolo Molaro 10f268b71b Mon Jul 13 17:58:50 CEST 2009 Paolo Molaro <[email protected]>
* mini-ppc.c: fixed bug introduced by Steven's TLS changes.


svn path=/trunk/mono/; revision=137786
2009-07-13 16:02:08 +00:00
Marek Safar d881c2fa14 New tests.
svn path=/trunk/mcs/; revision=137782
2009-07-13 15:26:47 +00:00
Marek Safar e73cbbc606 2009-07-13 Marcus Griep <[email protected]>
* ecore.cs: Fix obscure bug with resolving members of interfaces
	that hide parent interface members. Fixes bug #444388 and corrects
	bug #323096


svn path=/trunk/mcs/; revision=137781
2009-07-13 15:26:12 +00:00
Mark Probst f242f9eaf8 2009-07-13 Mark Probst <[email protected]>
* sgen-gc.c: When the minor GC needs to allocate a new section,
        invoke the major GC afterwards.

svn path=/trunk/mono/; revision=137780
2009-07-13 15:14:28 +00:00
Marek Safar 149cff9d30 2009-07-13 Marek Safar <[email protected]>
* expression.cs (LocalVariableReference): Bounce resolve.


svn path=/trunk/mcs/; revision=137779
2009-07-13 15:07:05 +00:00
Bill Holmes b7b3f9c874 2009-07-14 Bill Holmes <[email protected]>
* process.c  (ves_icall_System_Diagnostics_Process_ShellExecuteEx_internal) :
	  Applying the window_style field to the SHELLEXECUTEINFO struct.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=137776
2009-07-13 14:14:10 +00:00
Mark Probst 78f0c477dd 2009-07-13 Mark Probst <[email protected]>
* sgen-gc.c: Fix the race condition in the unmanaged allocator by
        locking earlier.  Fix it in the managed allocator by making sure
        that no thread is stopped there before the GC runs.  If we do stop
        a thread there, we restart it and let it run a but, until it stops
        somewhere else.

        * gc-internal.h, gc.c: Function for getting the IP from a signal
        context via a function registered by mini.

2009-07-13  Mark Probst  <[email protected]>

        * mini.c: Register function for getting the IP from a signal
        context with metadata.

svn path=/trunk/mono/; revision=137772
2009-07-13 12:38:22 +00:00
Atsushi Eno f28350170e migration to newer nunit style.
svn path=/trunk/mcs/; revision=137768
2009-07-13 07:52:51 +00:00
Gonzalo Paniagua Javier bb4cd0d150 remove TODOs
svn path=/trunk/mcs/; revision=137760
2009-07-13 04:25:11 +00:00
Gert Driesen 911d145064 * HttpResponseStream.cs: Added argument checks to Write. Modified
methods/properties that requires a readable stream to throw
NotSupportedException instead of InvalidOperationException for
compatibility with MS.
* HttpResponseTest.cs: Store data from all calls to
SendResponseFromMemory. Fixed ClearHeaders test to pass on MS. Added
several tests for outputstream of HttpResponse.

svn path=/trunk/mcs/; revision=137758
2009-07-12 22:19:02 +00:00
Gert Driesen 79490f1be9 * BinderTest.cs: Added SelectMethod/BindToMethod tests for methods
with byref arguments.
* Binder.cs: Only allow a type to match its byref version for
BindToMethod (and not for SelectMethod).
* TypeTest.cs: Enabled test that was failing due to regression.

svn path=/trunk/mcs/; revision=137753
2009-07-12 13:21:19 +00:00
Miguel de Icaza f3691cb232 fix
svn path=/trunk/mcs/; revision=137749
2009-07-11 18:12:17 +00:00
Zoltan Varga a12482d401 2009-07-11 Zoltan Varga <[email protected]>
* runtime-invoke.cs: Convert it to use TestDriver. Add tests for
	ptr types.

svn path=/trunk/mono/; revision=137748
2009-07-11 18:00:12 +00:00
Zoltan Varga d5fab0a706 2009-07-11 Zoltan Varga <[email protected]>
* object-internals.h (MonoIntPtr): New structure describing a boxed
	IntPtr.

	* object.c (mono_runtime_invoke_array): Handle ptr arguments and
	returns. Fixes #519953.

	* marshal.c (mono_marshal_get_runtime_invoke): Handle pointer returns.

svn path=/trunk/mono/; revision=137747
2009-07-11 18:00:04 +00:00
Zoltan Varga d13b74db5e 2009-07-11 Zoltan Varga <[email protected]>
* Binder.cs: Allow conversion of IntPtr to pointer types.

svn path=/trunk/mcs/; revision=137746
2009-07-11 17:57:39 +00:00
Miguel de Icaza 0c48a2f633 Found with Umbraco, this method ignores null pages
svn path=/trunk/mcs/; revision=137744
2009-07-11 16:56:38 +00:00
Jerri Maine 4a09eecd74 Contributed under the terms of the MIT/X11 license by
Jerry Maine <[email protected]>.

* amd64/amd64-codegen.h: Add marcos for coding several specific sse opcodes.
* amd64/amd64-codegen.h: Fix bugs in simd marcos.

svn path=/trunk/mono/; revision=137736
2009-07-10 22:35:07 +00:00
Gonzalo Paniagua Javier fbdb064a75 2009-07-10 Gonzalo Paniagua Javier <[email protected]>
* ProcessStartInfo.cs: HaveEnvVars is enabled by just using the
	EnvironmentVariables property. Bug #520650 fixed.


svn path=/trunk/mcs/; revision=137730
2009-07-10 20:54:29 +00:00
Gonzalo Paniagua Javier abbd1c723c 2009-07-10 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequest.cs: move this back to an instance property.
	Cache works now.


svn path=/trunk/mcs/; revision=137727
2009-07-10 20:01:38 +00:00
Miguel de Icaza 1fa7128b91 Flush
svn path=/trunk/mcs/; revision=137699
2009-07-10 17:10:47 +00:00
Marek Safar 592a760e95 Fixed public key
svn path=/trunk/mcs/; revision=137698
2009-07-10 16:06:17 +00:00
Gonzalo Paniagua Javier 3eb2239307 2009-07-10 Gonzalo Paniagua Javier <[email protected]>
* X509Chain.cs: revert my last change here since it caused 2 tests to
	fail.


svn path=/trunk/mcs/; revision=137694
2009-07-10 15:51:23 +00:00
Marek Safar 5b7067bc7c 2009-07-10 Marek Safar <[email protected]>
* typemanager.cs, lambda.cs, parameter.cs, convert.cs, anonymous.cs,
	expression.cs, literal.cs, ecore.cs, complete.cs: Moved internal
	types to new class.
	
	* support.cs: New dynamic type wrapper.


svn path=/trunk/mcs/; revision=137686
2009-07-10 11:39:24 +00:00
Atsushi Eno c9ed8b45ec 2009-07-10 Atsushi Enomoto <[email protected]>
* nunit20 : removed old framework.


svn path=/trunk/mcs/; revision=137685
2009-07-10 09:12:14 +00:00
Atsushi Eno 307a7776ed 2009-07-10 Atsushi Enomoto <[email protected]>
* SQLiteConnection.cs : remove Console.WriteLine().


svn path=/trunk/mcs/; revision=137684
2009-07-10 09:08:36 +00:00
Atsushi Eno 79f2ff30f9 2009-07-10 Atsushi Enomoto <[email protected]>
* DuplexClientBase.cs : oops, fix build.


svn path=/trunk/mcs/; revision=137683
2009-07-10 09:06:21 +00:00
Atsushi Eno c16ab81273 2009-07-10 Atsushi Enomoto <[email protected]>
* DuplexClientBase.cs : add missing members here too.


svn path=/trunk/mcs/; revision=137682
2009-07-10 09:03:49 +00:00
Atsushi Eno 9e1b47e26d 2009-07-10 Atsushi Enomoto <[email protected]>
* ClientBase.cs : some of Silverlight API are backported to full CLR.


svn path=/trunk/mcs/; revision=137680
2009-07-10 07:45:05 +00:00
Atsushi Eno d51ae9a74d 2009-07-10 Atsushi Enomoto <[email protected]>
* DuplexChannelFactory.cs : fill missing members.


svn path=/trunk/mcs/; revision=137679
2009-07-10 07:35:18 +00:00
Gonzalo Paniagua Javier cae867a722 2009-07-10 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: implement GetWebRequest and GetWebResponse. Use them
	instead of SetupRequest and ProcessResponse.


svn path=/trunk/mcs/; revision=137673
2009-07-10 05:45:10 +00:00
Atsushi Eno 6d5f8b6bbb 2009-07-10 Atsushi Enomoto <[email protected]>
* PeerNode.cs : significant refactoring. It does not call resolver
	  to manage the node itself but rather hold its state.

	* PeerDuplexChannel.cs : now it implements some of node management
	  functionality and Send operation. The receiver part is not yet.


svn path=/trunk/mcs/; revision=137671
2009-07-10 03:34:07 +00:00
Atsushi Eno 2964b69e86 2009-07-10 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs : do not pass
	  timeout to channel constructor. it does not make sense.


svn path=/trunk/mcs/; revision=137670
2009-07-10 03:30:17 +00:00
Atsushi Eno b4af91a324 2009-07-10 Atsushi Enomoto <[email protected]>
* PeerChannelFactory.cs, PeerChannelListener.cs : add MessageEncoder
	  as common interface member, and use binary encoder (not text).


svn path=/trunk/mcs/; revision=137669
2009-07-10 03:27:56 +00:00
Gonzalo Paniagua Javier bc9b46831d 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: use different ports for different tests since
	the shutdown might take a little bit and tests might conflict.


svn path=/trunk/mcs/; revision=137667
2009-07-10 03:21:35 +00:00
Gonzalo Paniagua Javier 64faaf06cf ignore test that fails on windows
svn path=/trunk/mcs/; revision=137665
2009-07-09 23:07:14 +00:00
Zoltan Varga 00fa98f26e 2009-07-10 Zoltan Varga <[email protected]>
* TypeTest.cs: Add a test for #520690. Disable a test which fails on
	MS.NET.

svn path=/trunk/mcs/; revision=137664
2009-07-09 23:05:36 +00:00
Zoltan Varga 9763367b96 2009-07-10 Zoltan Varga <[email protected]>
* Binder.cs (check_arguments): Allow a type to match its byref version.
	Fixes #520690.

svn path=/trunk/mcs/; revision=137663
2009-07-09 23:05:27 +00:00
Jb Evain 24fd267519 oops
svn path=/trunk/mcs/; revision=137655
2009-07-09 19:22:40 +00:00
Jb Evain df74eca620 2009-07-09 Jb Evain <[email protected]>
* HashSet.cs (ICollection<T>.Add): fix for bug #520760. Do not throw
	when adding duplicates.


svn path=/trunk/mcs/; revision=137653
2009-07-09 19:12:13 +00:00
Jb Evain 98e665927e 2009-07-09 Jb Evain <[email protected]>
* HashSetTest.cs: add test for #520760, ICollection<T>.Add
	should not throw on duplicates.


svn path=/trunk/mcs/; revision=137652
2009-07-09 19:11:23 +00:00
Gonzalo Paniagua Javier 44cc7fceee fix the build
svn path=/trunk/mcs/; revision=137650
2009-07-09 18:37:26 +00:00
Mark Probst c62af61a77 2009-07-09 Mark Probst <[email protected]>
* class-internals.h, generic-sharing.c: New RGCTX info type for
        getting a remoting invoke with check wrapper.

2009-07-09  Mark Probst  <[email protected]>

        * method-to-ir.c: When doing a call which might be remote from
        shared generic code to other shared code with open type arguments,
        get the remoting invoke wrapper from the RGCTX and do an indirect
        call to it.

2009-07-09  Mark Probst  <[email protected]>

        * generic-xdomain.2.cs: Test case for generic marshal-by-ref
        objects.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=137640
2009-07-09 17:21:57 +00:00
Gonzalo Paniagua Javier 3f6c08034a 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* HttpApplication.cs: use GetSection instead of
	OpenWebConfiguration+GetSection.


svn path=/trunk/mcs/; revision=137638
2009-07-09 17:18:34 +00:00
Gonzalo Paniagua Javier e9eeee5291 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* SqliteMembershipProvider.cs:
	* UrlAuthorizationModule.cs: use GetSection instead of
	OpenWebConfiguration+GetSection.


svn path=/trunk/mcs/; revision=137636
2009-07-09 17:13:34 +00:00
Gonzalo Paniagua Javier 2f88b4a701 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequest.cs: store the root web configuration path in a
	static variable.


svn path=/trunk/mcs/; revision=137634
2009-07-09 17:11:30 +00:00
Gonzalo Paniagua Javier 3d7ff5cc84 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationHost.cs: null means MachineToApplication.
	* WebConfigurationManager.cs: when caching configuration and sections,
	use the configuration file directory instead of the incoming request
	path.


svn path=/trunk/mcs/; revision=137632
2009-07-09 17:10:07 +00:00
Marek Habersack 6e2c12210d 2009-07-09 Marek Habersack <[email protected]>
* DefaultResourceProvider.cs, DefaultResourceProviderFactory.cs:
	added

2009-07-09  Marek Habersack  <[email protected]>

	* HttpContext.cs: fall back to default resource provider factory
	if the factory provided by user doesn't have the required object
	in Get{Global,Local}ResourceObject. Fixes bug #520397
	Refactored the GetResourceObject method and the
	ResourceManagerCacheKey class to DefaultResourceProvider.

svn path=/trunk/mcs/; revision=137624
2009-07-09 13:01:10 +00:00
Atsushi Eno f71a89b038 2009-07-09 Atsushi Enomoto <[email protected]>
* PeerNode.cs : some implementation cleanup before significant
	  refactoring. Mesh state is not maintained here. Use optionally
	  fixed listener address and port. Set offline status when closed.

	* PeerDuplexChannel.cs : PeerNode constructor argument changes.


svn path=/trunk/mcs/; revision=137621
2009-07-09 11:05:39 +00:00
Atsushi Eno c09d592238 2009-07-09 Atsushi Enomoto <[email protected]>
* LocalPeerResolverService.cs : fix RegistrationLifetime to return.


svn path=/trunk/mcs/; revision=137620
2009-07-09 11:02:31 +00:00
Marek Safar 3f5dd45fcc Updated.
svn path=/trunk/mcs/; revision=137615
2009-07-09 08:52:12 +00:00
Gert Driesen 70cfcbd496 * XmlSchemaTests.cs: Fixed tests for bug #502115.
svn path=/trunk/mcs/; revision=137595
2009-07-09 04:46:00 +00:00
Atsushi Eno 9ff32e41c8 2009-07-09 Atsushi Enomoto <[email protected]>
* XmlSchemaTests.cs : disabled wrong tests. I will revert them
	  unless it gets better shape.


svn path=/trunk/mcs/; revision=137594
2009-07-09 04:06:41 +00:00
Gonzalo Paniagua Javier 30b457b8e0 prefer MonoIOMAP directive over MONO_IOMAP, update version, fix long line
svn path=/trunk/mono/; revision=137592
2009-07-09 02:37:09 +00:00
Carlos Alberto Cortez a327820630 2009-07-09 Carlos Alberto Cortez <[email protected]>
* PageSourceTest.cs:
	* PaperSizeTest.cs: Include the new tests in NET_2_0 define, to fix
	the 1.1 build.


svn path=/trunk/mcs/; revision=137589
2009-07-08 23:40:55 +00:00
Marek Habersack b0e7fbf81a Fix 1.1 build
svn path=/trunk/mcs/; revision=137587
2009-07-08 22:22:03 +00:00
Rodrigo Kumpera ed4dffb25a 2009-07-08 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs: Implemented PointerType.

	* TypeBuilder.cs (MakePointerType): Return an
	instance of PointerType.

2009-07-08 Rodrigo Kumpera  <[email protected]>

	* DerivedTypesTest.cs: New tests for PointerType.

svn path=/trunk/mcs/; revision=137586
2009-07-08 21:46:10 +00:00
Rodrigo Kumpera a988de176c 2009-07-07 Rodrigo Kumpera <[email protected]>
* object-internals.h: Add MonoReflectionDerivedType.

	* reflection.c: Implement support for PointerType.
	Fixed tons of warnings.

svn path=/trunk/mono/; revision=137585
2009-07-08 21:46:01 +00:00
Rodrigo Kumpera 39ce1929d1 2009-07-08 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs: Implemented ByRefType.

	* TypeBuilder.cs (MakeByRefType): Return an
	instance of ByRefType.

2009-07-08 Rodrigo Kumpera  <[email protected]>

	* DerivedTypesTest.cs: New tests for ByRefType.

svn path=/trunk/mcs/; revision=137584
2009-07-08 21:45:54 +00:00
Rodrigo Kumpera a087862006 2009-07-08 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs: Refactor the types here to move
	a lot of code to the base DerivedType in preparation
	for upcomming ByRefType and PointerType puppies.

svn path=/trunk/mcs/; revision=137583
2009-07-08 21:45:36 +00:00
Rodrigo Kumpera e757ea98b1 2009-07-07 Rodrigo Kumpera <[email protected]>
* object-internals.h: Add MonoReflectionByRefType.

	* reflection.c: Implement support for ByRefType.

svn path=/trunk/mono/; revision=137582
2009-07-08 21:45:35 +00:00
Geoff Norton 68a0284d94 2009-07-07 Geoff Norton <[email protected]>
* icall-def.h: Fix the enable-minimal build.

svn path=/trunk/mono/; revision=137581
2009-07-08 21:02:51 +00:00
Gonzalo Paniagua Javier e35c0b2928 2009-07-08 Gonzalo Paniagua Javier <[email protected]>
* AssemblyResourceLoader.cs: send minimal headers set and don't call
	response.End.  When possible, write the resource using the unsafe
	methods in HttpResponseStream.a


svn path=/trunk/mcs/; revision=137576
2009-07-08 17:36:00 +00:00
Carlos Alberto Cortez 907f350f53 2009-07-08 Carlos Alberto Cortez <[email protected]>
* System.Drawing_test.dll.sources: Add PageSourceTest.cs and
	PaperSizeTest.cs.


svn path=/trunk/mcs/; revision=137573
2009-07-08 16:26:12 +00:00
Marek Habersack 4682ccf73b 2009-07-08 Marek Habersack <[email protected]>
* DynamicControlTest.cs: added tests for ApplyFormatInEditMode,
	Column, ConvertEmptyStringToNull, CssClass, DataField,
	DataFormatString, FieldTemplate, Table, UIHint

2009-07-08  Marek Habersack  <[email protected]>

	* WebTest.cs: added new public property - TestBaseDir, to be used
	by code which needs to access the files in the work dir.

2009-07-08  Marek Habersack  <[email protected]>

	* TestsSetup.cs: added the BuildPath helper method which converts
	unix-style filesystem paths to the os-specific format.

svn path=/trunk/mcs/; revision=137568
2009-07-08 13:48:59 +00:00
Carlos Alberto Cortez 3cbc62482a 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PaperSource.cs: Implement RawKind.
	Fixes the remaining bits of #507739.


svn path=/trunk/mcs/; revision=137565
2009-07-08 13:13:58 +00:00
Carlos Alberto Cortez dc58173d51 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PageSourceTest.cs: New file, by Andy Hume <[email protected]>


svn path=/trunk/mcs/; revision=137564
2009-07-08 12:56:29 +00:00
Carlos Alberto Cortez bba023dbd1 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PaperSizeTest.cs: New file, by Andy Hume <[email protected]>


svn path=/trunk/mcs/; revision=137560
2009-07-08 12:01:07 +00:00
Carlos Alberto Cortez f1e3a57f5b 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PaperSize.cs: Implement support for RawKind.
	Patch by Andy Hume ([email protected]).
	Fixes part of #507739.


svn path=/trunk/mcs/; revision=137559
2009-07-08 11:58:10 +00:00
Marek Habersack f077d18ea2 2009-07-08 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #520024

2009-07-08  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/PreprocessorDirectivesInMarkup.aspx

2009-07-08  Marek Habersack  <[email protected]>

	* AspParser.cs: GetServerTag mustn't treat <% # ... %> as
	data-binding directives. Fixes bug #520024

	* AssemblyBuilder.cs: if debugging information is on, append
	/d:DEBUG to the compiler's command line.

svn path=/trunk/mcs/; revision=137558
2009-07-08 11:54:37 +00:00
Marek Safar 7f8a5c9275 New tests.
svn path=/trunk/mcs/; revision=137556
2009-07-08 09:34:22 +00:00
Marek Safar b386732e3c 2009-07-08 Marek Safar <[email protected]>
* ecore.cs, cs-parser.jay: Better error reporting for implicitly
	typed local variable.


svn path=/trunk/mcs/; revision=137555
2009-07-08 09:34:09 +00:00
Atsushi Eno 680c9fc67d 2009-07-08 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs, PeerChannelListener.cs, PeerOutputChannel.cs,
	  PeerInputChannel.cs, PeerChannelFactory.cs : those channels are
	  going to be unified to PeerDuplexChannel. And it is likely that
	  input and output functionalities are to be unified too.


svn path=/trunk/mcs/; revision=137535
2009-07-08 08:21:03 +00:00
Atsushi Eno ef8b4ccae4 2009-07-08 Atsushi Enomoto <[email protected]>
* TcpChannelFactory.cs : (TcpChannelInfo) ease type restriction. I
	  may have to reuse it for peer transport.
	* PeerChannelListener.cs : add binding member.
	* PeerDuplexChannel.cs : remove NIE overrides. Fill fields a bit.


svn path=/trunk/mcs/; revision=137531
2009-07-08 05:13:21 +00:00
Atsushi Eno af7bf18f6f 2009-07-08 Atsushi Enomoto <[email protected]>
* NetTcpBindingTest.cs : added simple connection test. It somehow
	  stops for a while (without failing) though...


svn path=/trunk/mcs/; revision=137530
2009-07-08 05:11:13 +00:00
Atsushi Eno 7715d271bf 2009-07-08 Atsushi Enomoto <[email protected]>
* NetPeerTcpBinding.cs : Fix interface implementations.

	* NetPeerTcpBindingTest.cs : a bit of interface implementation test.


svn path=/trunk/mcs/; revision=137529
2009-07-08 05:04:11 +00:00
Atsushi Eno 09f0a1b008 2009-07-08 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs, HttpChannelFactory.cs,
	  PeerChannelFactory.cs : close opened channels at OnClose() as
	  documented. Implement async methods.
	* PeerChannelListener.cs : removed some NIE overrides.


svn path=/trunk/mcs/; revision=137528
2009-07-08 01:00:32 +00:00
Rodrigo Kumpera f8c591d6d1 2009-07-07 Rodrigo Kumpera <[email protected]>
* DerivedTypesTest.cs: New tests for types derived from
	TypeBuilder.

svn path=/trunk/mcs/; revision=137523
2009-07-07 23:21:08 +00:00
Rodrigo Kumpera 51e2ead759 2009-07-07 Rodrigo Kumpera <[email protected]>
* icall-def.h: Add System.Reflection.Emit.DerivedType::create_unmanaged_type.

	* object-internals.h: Add MonoReflectionArrayType and
	mono_reflection_create_unmanaged_type.

	* reflection.c: Implement support for ArrayType.

svn path=/trunk/mono/; revision=137522
2009-07-07 23:20:48 +00:00
Rodrigo Kumpera fe743a6977 2009-07-07 Rodrigo Kumpera <[email protected]>
* Type.cs (IsUserType): Only TypeDelegator and types
	outside of corlib are unhandled usertypes.

2009-07-07 Rodrigo Kumpera  <[email protected]>

	* TypeBuilder.cs (IsArrayImpl): Return false always as a
	typebuilder will never represent an array.

	* TypeBuilder.cs (MakeArrayType): Return a new instance of
	ArrayType instead of calling into MonoType machinery.

	* DerivedTypes.cs: New file with all the internal types
	used by SRE to represent derived types from TypeBuilder:
	arrays, pointers and byrefs'.

svn path=/trunk/mcs/; revision=137521
2009-07-07 23:20:45 +00:00
Rodrigo Kumpera 0cb2d62bdc 2009-07-07 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_method_header): Parse EH block
	flags correctly.

svn path=/trunk/mono/; revision=137510
2009-07-07 16:32:35 +00:00
Atsushi Eno 4d0710b0a4 2009-07-07 Atsushi Enomoto <[email protected]>
* CustomPeerResolverService.cs, LocalPeerResolverService.cs,
	  ICustomPeerResolverContract.cs : add local machine peer resolver
	  implementation that can work across appdomains (based on
	  dispatching peer resolver that communicates with a ServiceHost
	  which is either locally started or running as a different process).

	* System.ServiceModel.dll.sources:
	  Added new custom peer resolver files.


svn path=/trunk/mcs/; revision=137504
2009-07-07 15:16:55 +00:00
Gonzalo Paniagua Javier 0e2463e1d3 2009-07-07 Gonzalo Paniagua Javier <[email protected]>
* WebClientTest.cs: if we write the 100 response, reset the output
	stream writer.


svn path=/trunk/mcs/; revision=137500
2009-07-07 15:09:46 +00:00
Gonzalo Paniagua Javier 547e70a03b 2009-07-07 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: set the content length when uploading values. This
	allows reusing the connection.
	* WebConnectionStream.cs: SetHeaders() takes ownership of the buffer
	and does not need to copy it any more. WriteRequest() wasn't always
	setting 'requestWritten' to true.
	* HttpWebRequest.cs: change in SetHeaders call.


svn path=/trunk/mcs/; revision=137497
2009-07-07 14:57:51 +00:00
Gonzalo Paniagua Javier d05647432b 2009-07-07 Gonzalo Paniagua Javier <[email protected]>
* ParserError.cs: add 3 missing setters. Patch from Daniel Gagne.


svn path=/trunk/mcs/; revision=137494
2009-07-07 13:20:01 +00:00
Atsushi Eno 266150fbfa 2009-07-07 Atsushi Enomoto <[email protected]>
* EndpointAddress10Test.cs : added a few more serialization tests.


svn path=/trunk/mcs/; revision=137493
2009-07-07 12:51:01 +00:00
Atsushi Eno e2c8005ff7 2009-07-07 Atsushi Enomoto <[email protected]>
* PeerNodeAddressTest.cs : new test.

	* System.ServiceModel_test.dll.sources:
	  add PeerNodeAddressTest.cs.


svn path=/trunk/mcs/; revision=137492
2009-07-07 12:48:38 +00:00
Atsushi Eno 664b259d8d 2009-07-07 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs, SerializationMap.cs : IXmlSerializable
	  were not deserialized correctly as it has mismatch on wrapper
	  element. This fixes PeerNodeAddress.EndpointAddress deserialization.


svn path=/trunk/mcs/; revision=137491
2009-07-07 12:36:30 +00:00
Atsushi Eno 4b08c634b1 2009-07-07 Atsushi Enomoto <[email protected]>
* XmlSimpleDictionaryWriter.cs : fix bogus import of
	  XmlWriter.WriteNode() to handle more than two elements.

	* XmlSimpleDictionaryWriterTest.cs : test WriteNode() to not skip more
	  than two nodes in an element.


svn path=/trunk/mcs/; revision=137485
2009-07-07 10:27:58 +00:00
Carlos Alberto Cortez 207d41b7a5 2009-07-07 Carlos Alberto Cortez <[email protected]>
* PaperSize.cs: Actually implement RawKind by retrieving and setting
	the kind field.


svn path=/trunk/mcs/; revision=137481
2009-07-07 07:08:10 +00:00
Carlos Alberto Cortez a2c389bcc5 2009-07-06 Carlos Alberto Cortez <[email protected]>
* PrintPreviewDialog.cs: Record when left was pressed, so we can
	simulate Tab+Alt when moving the focus throughout our buttons and
	controls.
	Fixes the remaining bits of #509142.


svn path=/trunk/mcs/; revision=137479
2009-07-07 06:01:37 +00:00
Gert Driesen 8d403f0381 * WebConnectionStream.cs: Move and improve argument checks to match MS.
Modified CanRead and CanWrite to return false when instance is disposed.
* HttpWebRequestTest.cs: Enabled tests, and removed test that is now
covered by two separate CanTimeout tests for request and response
stream.
* HttpWebResponseStreamTest.cs: Enabled tests.

svn path=/trunk/mcs/; revision=137450
2009-07-06 19:58:00 +00:00
Gert Driesen ba7a4ef720 * HttpWebRequestTest.cs: Marked test notworking on 1.0 profile.
svn path=/trunk/mcs/; revision=137448
2009-07-06 19:34:33 +00:00
Gert Driesen 610473cb54 * HttpWebRequestTest.cs: Added tests for bug #511851. Added tests
for request stream. Fixed compiler warnings, and fixed code style.
* HttpWebResponseTest.cs: Added tests for response stream. Fixed
compiler warnings.

svn path=/trunk/mcs/; revision=137447
2009-07-06 19:30:33 +00:00
Raja R Harinath ff3044bb41 Handle absense of ExecutionScope
* ExpressionTest.cs (ExpressionDelegateTarget) [NET_4_0]: Disable
check for ExecutionScope.
(GlobalsInSpace) [NET_4_0]: Disable.

svn path=/trunk/mcs/; revision=137444
2009-07-06 19:21:33 +00:00
Raja R Harinath c1502d0e46 * AssemblyInfo.cs: Don't make internals visible to System.Web_test.
svn path=/trunk/mcs/; revision=137443
2009-07-06 19:15:09 +00:00
Raja R Harinath a0e5f81af7 * UrlUtilsTest.cs: Use SystemWebTestShim.UriUtils.
svn path=/trunk/mcs/; revision=137442
2009-07-06 19:14:48 +00:00
Raja R Harinath 950b594928 Expose internal constructors of various Adapter types.
In class/System.Web/Test/System.Web.UI.Adapters:

	* PageAdapterTest.cs (MyPage): Derive from SystemWebTestShim.Page.
	(MyPageAdapter): Derive from SystemWebTestShim.PageAdapter.
	(MyPageAdapter.GetPostBAckFormReference): New forwarding method.

In class/System.Web/Test/System.Web.UI.WebControls.Adapters:

	* DataBoundControlAdapterTest.cs: Derive from
	SystemWebTestShim.DataBoundControlAdapter.
	* HideDisabledControlAdapterTest.cs (Render): Use
	SystemWebTestShim.HideDisabledControlAdapter.
	* HierarchicalDataBoundControlAdapterTest.cs: Derive from
	SystemWebTestShim.HierarchicalDataBoundControlAdapter.
	* MenuAdapterTest.cs: Derive from SystemWebTestShim.MenuAdapter.
	* WebControlAdapterTest.cs: Derive from
	SystemWebTestShim.WebControlAdapter.cs.

In class/SystemWebTestShim:

	* SystemWebTestShim.dll.sources: Add Adapters.cs

svn path=/trunk/mcs/; revision=137441
2009-07-06 18:54:18 +00:00
Raja R Harinath dfb255822f More forwarding methods
* PageAdapterTest.cs (MyPage.MyDeterminePostBackMode): New
forwarding method to expose protected method.
(MyPageAdapter): Change constructor argument to type 'MyPage'.

svn path=/trunk/mcs/; revision=137439
2009-07-06 18:32:33 +00:00
Raja R Harinath efbf2da362 * MenuAdapterTest.cs (MyMenuAdapter): Add new forwarding methods
to expose protected base methods.

svn path=/trunk/mcs/; revision=137438
2009-07-06 18:32:05 +00:00
Raja R Harinath bccd4d4e3a * HtmlFormTest.cs: Derive from SystemWebTestShim.Page to make
explicit the dependence on the internals of the Page class.

svn path=/trunk/mcs/; revision=137436
2009-07-06 18:02:16 +00:00
Gonzalo Paniagua Javier 09ff251a3a 2009-07-06 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: add tests for POST + redirect and 401.


svn path=/trunk/mcs/; revision=137429
2009-07-06 17:40:28 +00:00
Raja R Harinath 03ad33bf54 Kill some un-necessary 'protected internal override'
* DataBoundControlAdapterTest.cs (PerformDataBinding): Don't use
'protected internal' when overriding a method from a different assembly.
* HideDisabledControlAdapterTest.cs (RenderContents): Likewise.
* HierarchicalDataBoundControlAdapterTest.cs (PerformDataBinding): Likewise.
* MenuAdapterTest.cs (OnInit, OnPreRender, RaisePostBackEvent)
(RenderContents): Likewise.
* WebControlAdapterTest.cs (RenderContents): Likewise.

svn path=/trunk/mcs/; revision=137423
2009-07-06 16:59:32 +00:00
Raja R Harinath 6b8d860a87 * ControlAdapterTest.cs: Use SystemWebTestShim to set
HttpCapabilitiesBase internal flag.

svn path=/trunk/mcs/; revision=137421
2009-07-06 16:02:42 +00:00
Raja R Harinath 3f9d37cf39 Use ExpectedException(string) when referring to internal exception types
In class/System.Web/Test/System.Web.Compilation:

	* TemplateControlCompilerTest.cs (InvalidPropertyBindTest1):
	Don't use 'typeof' on a System.Web internal exception type.
	(InvalidPropertyBindTest3): Likewise.

In class/System.Web/Test/System.Web.UI:

	* PageParserTest.cs (MissingMasterFile): Don't use 'typeof' on a
	System.Web internal exception type.

svn path=/trunk/mcs/; revision=137420
2009-07-06 16:02:16 +00:00
Marek Safar 3ae872a494 New test.
svn path=/trunk/mcs/; revision=137415
2009-07-06 15:01:02 +00:00
Marek Safar 5cd5118465 2009-07-06 Marek Safar <[email protected]>
A fix for bug #519005
	* anonymous.cs: Use null_type as no return type placeholder.


svn path=/trunk/mcs/; revision=137414
2009-07-06 14:58:42 +00:00
Raja R Harinath 60b4cff527 * AssemblyInfo.cs: Don't make internals visible to
System.Web.Extensions_test and System.Web.DynamicData_test.

svn path=/trunk/mcs/; revision=137413
2009-07-06 14:53:43 +00:00
Raja R Harinath af8967aed9 * WebTest.cs (Run): Use SystemWebTestShim.BuildManager.
svn path=/trunk/mcs/; revision=137412
2009-07-06 14:53:19 +00:00
Raja R Harinath def434b458 Add SystemWebTestShim so that we can avoid InternalsVisibleTo(testsuite)
class/Makefile (common_dirs): Add SystemWebTestShim.
class/System.Web/Makefile (TEST_MCS_FLAGS): Reference SystemWebTestShim.
class/System.Web.DynamicData/Makefile: Likewise.
class/System.Web.Extensions/Makefile: Likewise.

svn path=/trunk/mcs/; revision=137411
2009-07-06 14:52:54 +00:00
Raja R Harinath 68ba558de1 fix build: comment out non-checked-in files
svn path=/trunk/mcs/; revision=137410
2009-07-06 14:52:31 +00:00
Raja R Harinath 43727c097b fix build
svn path=/trunk/mcs/; revision=137409
2009-07-06 14:52:09 +00:00
Raja R Harinath 7eb0cf62a1 fix build break
svn path=/trunk/mcs/; revision=137408
2009-07-06 14:51:46 +00:00
Raja R Harinath 445d5d503b * Makefile (net_1_1_dirs): Move Mono.Cecil ...
(common_dirs): ... here.

svn path=/trunk/mcs/; revision=137404
2009-07-06 13:04:54 +00:00
Carlos Alberto Cortez 868a832f40 2009-07-05 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: When computing the width of each tab page, use the
	page's Font instead of the tab control one.
	Fixes #514368.


svn path=/trunk/mcs/; revision=137388
2009-07-05 10:26:21 +00:00
jonas c43d13b32e Fix distcheck building on OS X
svn path=/trunk/mono/; revision=137384
2009-07-04 15:02:34 +00:00
Marek Habersack 7d2a8fcc9c 2009-07-03 Marek Habersack <[email protected]>
* Added some resources to WebPages - a test web page for
	DynamicControlTest and the required DynamicData scaffolding.

2009-07-03  Marek Habersack  <[email protected]>

	* Makefile: added more resources to the test assembly

2009-07-03  Marek Habersack  <[email protected]>

	* DynamicControlTest.cs: added

2009-07-03  Marek Habersack  <[email protected]>

	* DynamicDataContainerModelProvider.cs,
	DynamicDataContainerTableProvider.cs: are generic classes now.

2009-07-03  Marek Habersack  <[email protected]>

	* IDynamicDataContainer.cs: became a generic interface.

	* DynamicDataSource.cs; some reformatting.
	DynamicDataSourceView is a generic class now.

	* DynamicDataContainer.cs: IDynamicDataContainer is a generic
	interface now.

2009-07-03  Marek Habersack  <[email protected]>

	* TestsSetup.cs: custom WebTest setup for DynamicData

	* TestsBasePage.cs: a base class for all the web pages used by the
	tests.

	* MiscExtensions.cs: added some helper extensions for fishing out
	controls from control trees.

	* ITestDataContext.cs: GetTableData gets full set of query
	arguments.

2009-07-03  Marek Habersack  <[email protected]>

	* AssemblyInfo.cs: added. Necessary, because we need to set up
	WebTest environment and it is done via an assembly-level custom
	attribute.

svn path=/trunk/mcs/; revision=137369
2009-07-03 15:07:04 +00:00
Mark Probst 13d3182c56 2009-07-03 Mark Probst <[email protected]>
* sgen-gc.c (finish_gray_stack): Set the to_space pointer after
        processing the disappearing links, and process disappearing links
        in a loop until no new objects are copied.

svn path=/trunk/mono/; revision=137366
2009-07-03 13:57:36 +00:00
Zoltan Varga 0dae14cb5c 2009-07-03 Zoltan Varga <[email protected]>
* mini-trampolines.c (get_unbox_trampoline): Add an rgctx trampoline
	after the unbox trampoline in the full-aot case.

svn path=/trunk/mono/; revision=137364
2009-07-03 13:42:48 +00:00
Carlos Alberto Cortez 7102b89910 2009-07-03 Carlos Alberto Cortez <[email protected]>
* MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
	the current menu is specifically a ContextMenu (this is what .net does
	as well). This way we also avoid a crash caused by MenuTracker trying
	to use the menu when it was already hidden.


svn path=/trunk/mcs/; revision=137363
2009-07-03 13:17:29 +00:00
Carlos Alberto Cortez b8ff167906 2009-07-03 Carlos Alberto Cortez <[email protected]>
* PrintPreviewDialog.cs: Remove the code used to handle the
	DropDown menu, since we are now doing it by default in ToolBar, and
	just call the base impl as needed.Also, deactivate the dropdown menu
	before moving the focus to a different button in our toolbar, as .net
	does.
	* ContextMenu.cs:
	* MenuAPI.cs: Make as internal the needed bits to deactivate a
	ContextMenu, and also to keep some beauty in our api.


svn path=/trunk/mcs/; revision=137342
2009-07-03 05:12:05 +00:00
Marek Habersack 4744a4f67e Another fixlet
svn path=/trunk/mcs/; revision=137336
2009-07-02 23:40:29 +00:00
Marek Habersack 6332620ed6 typo fix
svn path=/trunk/mcs/; revision=137335
2009-07-02 23:22:38 +00:00
Marek Habersack e02eef6036 2009-07-03 Marek Habersack <[email protected]>
* WebTestResourcesSetupAttribute.cs: added. Can be used to specify
	resources setup method alternative to the default
	WebTest.CopyResources (). Useful in cases when WebTest is used
	outside System.Web tests and different initial resources are
	required.

	* WebTest.cs: check whether the assembly WebTest is found in is
	decorated with the WebTestResourcesSetup attribute and, if yes,
	use handler specified by the attribute to perform initial
	resources copying in EnsureHosting ().

svn path=/trunk/mcs/; revision=137334
2009-07-02 23:05:02 +00:00
Gonzalo Paniagua Javier 781e4faf6c 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: provide better error message when there's an error
	writing.
	* WebConnectionStream.cs: don't nullify the buffer until
	CheckFinalStatus() decides that there are no more authentication
	retries or redirects.


svn path=/trunk/mcs/; revision=137332
2009-07-02 23:03:11 +00:00
Mark Probst 8bf864880d 2009-07-03 Mark Probst <[email protected]>
* object.c (handle_enum): Invoke the write barrier when copying
        value type instances.

        * sgen-gc.c: Register remsets for unmanaged write barriers only
        when the address written to is actually on the heap.  This makes
        set_value() in object.c work without requiring that the result be
        on the heap.

svn path=/trunk/mono/; revision=137331
2009-07-02 22:41:39 +00:00
Gonzalo Paniagua Javier 2c3b1ba9d4 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* HttpsClientStream.cs: if there's only an ICertificatePolicy and no
	ServerCertificateValicationCallback, don't fail.


svn path=/trunk/mcs/; revision=137329
2009-07-02 22:39:54 +00:00
Rodrigo Kumpera 5336756a92 2009-07-02 Rodrigo Kumpera <[email protected]>
The runtime wrappers are all bound to a given type that must
	exist in the same image. For regular images we use the <Module>
	type, which is required to exist for all images.

	The <Module> type can't be used for dynamic images because it
	might not exist at the time the wrapper is required, so we create
	a synthetic type to use instead.

	The current code works because of the 2 stage setup of MonoClass,
	but once this is gone it will no longer work.

	* icall-def.h: Add ModuleBuilder::set_wrappers_type.

	* metadata-internals.h (MonoDynamicImage): Add wrappers_type.

	* object-internals.h: Export mono_image_set_wrappers_type icall
	as part of the internal API.

	* marshal.c (get_wrapper_target_class): If the image is dynamic,
	use MonoDynamicImage::wrappers_type instead of the <Module> type.

	reflection.c: Add mono_image_set_wrappers_type qhixh sets the dynamic
	image wrappers_type to the provided value.

svn path=/trunk/mono/; revision=137325
2009-07-02 20:18:56 +00:00
Rodrigo Kumpera 971d445c56 2009-07-01 Rodrigo Kumpera <[email protected]>
* appdomain.c (deregister_reflection_info_roots): No need
	to use the image lock here.

svn path=/trunk/mono/; revision=137324
2009-07-02 20:18:39 +00:00
Rodrigo Kumpera 735f33a230 2009-07-02 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs: Add IsRun property that returns true if
	any execute mode is enabled.

	* ModuleBuilder.cs: Add set_wrappers_type icall to define which type
	is to be bound to wrappers. Create a new abstract type and call it
	when the assembly is build this way.

	Replace explicit checks for global_type with calls to CreateGlobalType.

	* TypeBuilder.cs: Internal ctor now takes an extra table_idx argument.

svn path=/trunk/mcs/; revision=137322
2009-07-02 20:09:39 +00:00
Mark Probst 8763c586e9 2009-07-02 Mark Probst <[email protected]>
* sgen-gc.c (collect_nursery): Also scan from write-barrier roots.

svn path=/trunk/mono/; revision=137319
2009-07-02 18:49:19 +00:00
Atsushi Eno e1fd25bc16 2009-07-02 Atsushi Enomoto <[email protected]>
* ServiceBehaviorAttribute.cs : fill SingletonInstanceContext on
	  opening the host.

	* ChannelDispatcherTest.cs : add singleton instance context test
	  (but disabled, for some weird conflict).


svn path=/trunk/mcs/; revision=137315
2009-07-02 18:32:20 +00:00
Gonzalo Paniagua Javier 276025c43e kick buildbot
svn path=/trunk/mono/; revision=137313
2009-07-02 17:59:43 +00:00
Atsushi Eno 358bd6b145 2009-07-02 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : actually it had to fill all of
	  the interface methods (and implementation methods).

	* ContractDescriptionTest.cs : make sure the contract actually
	  contains operations from the base types.


svn path=/trunk/mcs/; revision=137307
2009-07-02 16:07:53 +00:00
Marek Safar ec0d50cb0d 2009-07-02 Marek Safar <[email protected]>
* CSharpConversionKind.cs, CSharpArgumentInfo.cs, 
	CSharpInvokeMemberBinder.cs, CSharpCallFlags.cs: New files.


svn path=/trunk/mcs/; revision=137305
2009-07-02 16:05:40 +00:00
Jb Evain 5df883e569 oops
svn path=/trunk/mcs/; revision=137301
2009-07-02 14:34:16 +00:00
Jb Evain 365eb2f629 grr
svn path=/trunk/mcs/; revision=137296
2009-07-02 13:42:37 +00:00
Atsushi Eno 3e8b32b52e 2009-07-02 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs : some more async methods.


svn path=/trunk/mcs/; revision=137292
2009-07-02 13:05:39 +00:00
Atsushi Eno 2b471a3555 2009-07-02 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : do not reject derived service
	  contract from another service contract type.

	* ContractDescriptionTest.cs : added test for derived contract type.


svn path=/trunk/mcs/; revision=137288
2009-07-02 12:59:32 +00:00
Jb Evain 30fc499fde 2009-07-02 Jb Evain <[email protected]>
* Makefile: fix cecil's location.


svn path=/trunk/mcs/; revision=137287
2009-07-02 12:55:33 +00:00
Jb Evain fcf42cf582 2009-07-02 Jb Evain <[email protected]>
* Makefile: fix cecil's location.


svn path=/trunk/mcs/; revision=137286
2009-07-02 12:54:50 +00:00
Marek Safar b83bbc70e5 New test.
svn path=/trunk/mcs/; revision=137285
2009-07-02 12:31:00 +00:00
Marek Safar 283f16298d 2009-07-02 Marek Safar <[email protected]>
* generic.cs: Handle type inference of identical type parameters
	with different bounds.


svn path=/trunk/mcs/; revision=137284
2009-07-02 12:28:33 +00:00
Marek Safar 0f7eb6029b Flush.
svn path=/trunk/mcs/; revision=137283
2009-07-02 12:21:47 +00:00
Marek Safar 008274668d 2009-07-02 Marek Safar <[email protected]>
* Makefile: Add System.Dynamic.


svn path=/trunk/mcs/; revision=137282
2009-07-02 12:17:02 +00:00
Marek Safar 9703f674b8 2009-07-02 Marek Safar <[email protected]>
* Makefile: Initial commit.


svn path=/trunk/mcs/; revision=137281
2009-07-02 12:13:06 +00:00
Jb Evain 1c42c456c7 2009-07-02 Jb Evain <[email protected]>
* scripts/Makefile.am: monolinker is now a 2.0 assembly.


svn path=/trunk/mono/; revision=137280
2009-07-02 11:59:18 +00:00
Marek Safar 3a5a3cf1d3 2009-07-02 Marek Safar <[email protected]>
* net_4_0_System.Core.dll.sources: New file.


svn path=/trunk/mcs/; revision=137278
2009-07-02 11:57:13 +00:00
Marek Safar 340222ffe8 2009-07-02 Marek Safar <[email protected]>
* Initial import, revision 25679.


svn path=/trunk/mcs/; revision=137277
2009-07-02 11:50:24 +00:00
Jb Evain 6833026136 2009-07-02 Jb Evain <[email protected]>
* Makefile: adjust to the linker build change.


svn path=/trunk/mcs/; revision=137276
2009-07-02 11:48:59 +00:00
Jb Evain fc5f371d18 2009-07-02 Jb Evain <[email protected]>
* Makefile: build the linker and the tuner in the net_2_0 profile.


svn path=/trunk/mcs/; revision=137275
2009-07-02 11:48:38 +00:00
Marek Safar a9544047d5 2009-07-02 Marek Safar <[email protected]>
* ConditionalWeakTable.cs: New file.


svn path=/trunk/mcs/; revision=137274
2009-07-02 11:26:51 +00:00
Marek Safar 2cc1698924 2009-07-02 Marek Safar <[email protected]>
* StrongBox_T.cs: Add 4.0 bits.


svn path=/trunk/mcs/; revision=137273
2009-07-02 11:19:09 +00:00
Marek Safar 94ae118165 2009-07-02 Marek Safar <[email protected]>
* Type.cs, AppDomain.cs: 4.0 bits.


svn path=/trunk/mcs/; revision=137271
2009-07-02 11:07:29 +00:00
Jb Evain 8df0cd75f2 add test
svn path=/trunk/mcs/; revision=137269
2009-07-02 10:58:16 +00:00
Atsushi Eno 8b8a21d6c0 2009-07-02 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : when service instance is provided to the
	  ServiceHost, do not reject Type-less state.


svn path=/trunk/mcs/; revision=137266
2009-07-02 10:29:59 +00:00
jonas 26045ec0b2 2009-07-02 jonas echterhoff <[email protected]>
svn path=/trunk/mono/; revision=137261
2009-07-02 07:59:30 +00:00
Gonzalo Paniagua Javier 3513638089 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* X509Certificate2.cs:
	* X509Chain.cs: changes to make everything compile with latest changes
	and fixed typo in IsChainComplete().


svn path=/trunk/mcs/; revision=137259
2009-07-02 07:44:14 +00:00
Gonzalo Paniagua Javier db470fe4d2 make it compile
svn path=/trunk/mcs/; revision=137257
2009-07-02 07:42:17 +00:00
Gonzalo Paniagua Javier cd833bd5a0 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* HttpsClientStream.cs: invoke the ServerCertificateValidationCallback
	in the 2.0 profile. If there's a CertificatePolicy, it is run before
	the 2.0 callback.


svn path=/trunk/mcs/; revision=137255
2009-07-02 07:39:44 +00:00
Gonzalo Paniagua Javier f760e84e58 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* ServicePointManager.cs: implement ServerCertificateValidationCallback.
	* DefaultCertificatePolicy.cs: if there's a SCVC registered, don't do
	normal error checking.a


svn path=/trunk/mcs/; revision=137253
2009-07-02 07:39:40 +00:00
Gonzalo Paniagua Javier 77e7d3d183 fix
svn path=/trunk/mcs/; revision=137239
2009-07-02 07:34:09 +00:00
Gonzalo Paniagua Javier 7ff2c1978d 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: avoid duplicating Accept-Encoding if GetHeaders()
	is called twice.
	* WebConnectionStream.cs: don't send a 0 content length for non-write
	requests.


svn path=/trunk/mcs/; revision=137233
2009-07-02 07:33:12 +00:00
Gonzalo Paniagua Javier 1c8629a808 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: must use the 'int' version in 1.1.


svn path=/trunk/mcs/; revision=137231
2009-07-02 07:22:59 +00:00
Carlos Alberto Cortez 2d15968f5e 2009-07-02 Carlos Alberto Cortez <[email protected]>
* ToolBar.cs: When handling the key down message, if we are on a
	drop down button, either show the DropDownMenu or pass the key to its
	ProcessCmdKey method as needed.
	Fixes the remaining bits of #509985.


svn path=/trunk/mcs/; revision=137228
2009-07-02 04:05:41 +00:00
Marek Safar 37601b3db7 New test.
svn path=/trunk/mcs/; revision=137213
2009-07-01 19:03:59 +00:00
Marek Safar cdb3c4dc2c New tests.
svn path=/trunk/mcs/; revision=137212
2009-07-01 19:03:25 +00:00
Marek Safar 3752303479 2009-07-01 Marek Safar <[email protected]>
* expression.cs, class.cs: Events variance.
	
	* cs-parser.jay: Interface events error messages.


svn path=/trunk/mcs/; revision=137211
2009-07-01 19:02:50 +00:00
Gonzalo Paniagua Javier d0aef15578 2009-07-01 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs:
	* ServicePoint.cs: UseNagleAlgorithm determines NoDelay value.


svn path=/trunk/mcs/; revision=137202
2009-07-01 16:49:32 +00:00
Marek Safar 3ccb8dd31c New test.
svn path=/trunk/mcs/; revision=137201
2009-07-01 16:27:30 +00:00
Marek Safar 8e45a9e98d New tests.
svn path=/trunk/mcs/; revision=137200
2009-07-01 16:27:17 +00:00
Marek Safar 5d4944a42a 2009-07-01 Marek Safar <[email protected]>
* generic.cs, argument.cs: Updated type inference logic to C# 4.0.


svn path=/trunk/mcs/; revision=137199
2009-07-01 16:27:01 +00:00
Raja R Harinath 94617bc126 Disable sqlmetal nunit tests since they haven't compiled for some time
svn path=/trunk/mcs/; revision=137153
2009-06-30 15:23:05 +00:00
Raja R Harinath b10bc254b9 * XPathNavigatorTests.cs (XPathDocumentMoveToId) [!NET_2_0]: Fix compile.
svn path=/trunk/mcs/; revision=137152
2009-06-30 15:15:39 +00:00
Raja R Harinath 82673840c5 * errors/Makefile (run-test-local): Make parallel-make safe.
svn path=/trunk/mcs/; revision=137151
2009-06-30 15:15:17 +00:00
Marek Habersack fc4f263698 2009-06-30 Marek Habersack <[email protected]>
* AspGenerator.cs: TextParsed must remove client-side comments
	from the passed text before attempting to parse the text for
	server side controls and expressions. Fixes bug #517656

2009-06-30  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #517656

2009-06-30  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/ServerControlInClientSideComment.aspx

2009-06-30  Marek Habersack  <[email protected]>

	* NunitWebResources/ServerControlInClientSideComment.aspx: added

svn path=/trunk/mcs/; revision=137137
2009-06-30 09:06:16 +00:00
Carlos Alberto Cortez 790fb10e47 * ToolBar.cs: Isolate the event logic related to OnButtonClick. Also
set current_item when navigating with the keyboard, so we can use it
	properly later. Finally, handle both Enter and Space to fire
	OnButtonClick *only*, without any other impact, as .net does.
	Fixes part of #509985.

2009-06-29  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=137134
2009-06-30 05:06:29 +00:00
Zoltan Varga 17749a8b7f 2009-06-30 Zoltan Varga <[email protected]>
* IntPtrTest.cs: Disable a test whose corresponding fix was reverted.

svn path=/trunk/mcs/; revision=137133
2009-06-30 03:05:58 +00:00
Zoltan Varga f123286285 2009-06-30 Zoltan Varga <[email protected]>
* ReadOnlyCollectionBaseTest.cs NewArrayListTest.cs: Convert all tests
	to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=137132
2009-06-30 02:57:09 +00:00
Zoltan Varga ee0e40ca69 2009-06-30 Zoltan Varga <[email protected]>
* DebugTest.cs TextWriterTraceListenerTest.cs: Convert all tests to
	new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=137131
2009-06-30 02:50:34 +00:00
Zoltan Varga eadc6e6831 2009-06-30 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods. Enable
	some hidden tests.

svn path=/trunk/mcs/; revision=137130
2009-06-30 02:34:35 +00:00
Zoltan Varga 421b9cc38b 2009-06-30 Zoltan Varga <[email protected]>
* ObjectTest.cs RandomTest.cs SByteTest.cs SingleTest.cs
	TimeZoneTest.cs UInt16Test.cs UInt32Test.cs UInt64Test.cs
	UIntPtrTest.cs ValueTypeTest.cs: Convert all tests to new-style nunit
	classes/methods. Enable some hidden tests.

svn path=/trunk/mcs/; revision=137121
2009-06-29 23:32:45 +00:00
Zoltan Varga aba36b4f16 2009-06-30 Zoltan Varga <[email protected]>
* driver.c (mini_regression): Handle loading errors. Fixes #508869.

svn path=/trunk/mono/; revision=137119
2009-06-29 22:53:45 +00:00
Gonzalo Paniagua Javier c2aad5b0ae 2009-06-29 Gonzalo Paniagua Javier <[email protected]>
* Parameter.cs: add new DbType property.


svn path=/trunk/mcs/; revision=137117
2009-06-29 22:10:45 +00:00
Gonzalo Paniagua Javier c76e44451a 2009-06-29 Gonzalo Paniagua Javier <[email protected]>
* LicenseProviderAttribute.cs: avoid nullref when provider has not
	been set or cannot be loaded.


svn path=/trunk/mcs/; revision=137115
2009-06-29 22:02:41 +00:00
Gonzalo Paniagua Javier 6c8748a9ef 2009-06-29 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: use the 'Empty' field for Unit and
	FontUnit.


svn path=/trunk/mcs/; revision=137113
2009-06-29 22:01:19 +00:00
Marek Safar b0a00dd7e5 New tests.
svn path=/trunk/mcs/; revision=137100
2009-06-29 19:46:12 +00:00
Marek Safar 4c4a81e0da New tests.
svn path=/trunk/mcs/; revision=137099
2009-06-29 19:45:19 +00:00
Marek Safar f5a5486467 2009-06-29 Marek Safar <[email protected]>
* parameter.cs, convert.cs, expression.cs, class.cs: Default
	parameter expression can be value-type New.

	* cs-parser.jay: Clean up too many parameter modifier boolean flags.


svn path=/trunk/mcs/; revision=137098
2009-06-29 19:44:26 +00:00
Carlos Alberto Cortez 23fc945210 2009-06-29 Carlos Alberto Cortez <[email protected]>
* MenuAPI.cs: Close any active menu when we get a simple Alt.
	Fixes #509299.


svn path=/trunk/mcs/; revision=137094
2009-06-29 17:16:30 +00:00
Atsushi Eno 166e408ef7 2009-06-29 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : do not iterate extra channel acceptance
	  and hence close channels a bit more gracefully.

	* TcpDuplexSessionChannel.cs : on Abort(), do just Close() within
	  (almost) no time.
	* TcpChannelListener.cs : accept multiple channels at a time.


svn path=/trunk/mcs/; revision=137093
2009-06-29 17:08:50 +00:00
Gonzalo Paniagua Javier 485b815f66 increase timeouts to make this work on machines under load
svn path=/trunk/mcs/; revision=137088
2009-06-29 15:52:42 +00:00
Zoltan Varga 02eadc1292 2009-06-29 Zoltan Varga <[email protected]>
* generic-stack-traces.2.cs: Add a test for #509406.

svn path=/trunk/mono/; revision=137082
2009-06-29 15:25:29 +00:00
Zoltan Varga 31efebbf56 2009-06-29 Zoltan Varga <[email protected]>
* mini-exceptions.c (get_generic_context_from_stack_frame): Fix the case
	when the generic instance is an instantiation of a subclass of the
	methods class. Fixes #517166.

svn path=/trunk/mono/; revision=137081
2009-06-29 15:25:22 +00:00
Zoltan Varga 7d24a0f469 2009-06-29 Zoltan Varga <[email protected]>
* threads.c: Store the thread start argument in a hash table instead of
	registering it as a root, as libgc doesn't support unregistering roots
	under windows, leading to 'too many root sets' errors when many threads
	are created.

svn path=/trunk/mono/; revision=137080
2009-06-29 14:39:54 +00:00
Zoltan Varga 28d601f25d 2009-06-29 Zoltan Varga <[email protected]>
* dynamic-method-finalize.2.cs: New test.

svn path=/trunk/mono/; revision=137076
2009-06-29 13:34:22 +00:00
Zoltan Varga dde3844fe7 2009-06-29 Zoltan Varga <[email protected]>
* gc.c (mono_gc_run_finalize): Avoid finalizing dynamic methods during
	shutdown, they can still be referenced by the other dying objects.
	Fixes #514506.

svn path=/trunk/mono/; revision=137075
2009-06-29 13:34:14 +00:00
Marek Safar 9dbbb52f83 2009-06-29 Marek Safar <[email protected]>
* ChangeLog: Add DynamicAttribute.


svn path=/trunk/mcs/; revision=137069
2009-06-29 11:37:30 +00:00
Marek Safar b956e132b6 2009-06-29 Marek Safar <[email protected]>
* Makefile: Add Microsoft.CSharp.



svn path=/trunk/mcs/; revision=137065
2009-06-29 10:41:54 +00:00
Marek Safar 9c295c5587 New test.
svn path=/trunk/mcs/; revision=137064
2009-06-29 10:06:14 +00:00
Marek Safar b94f6444a5 Updated
svn path=/trunk/mcs/; revision=137063
2009-06-29 09:22:38 +00:00
Atsushi Eno 04bfdda5dd 2009-06-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : do not output all (stored) writer
	  session strings but output only those new ones in current message.
	  This fixes inconsistent body output in repetitive use of sender.


svn path=/trunk/mcs/; revision=137060
2009-06-29 06:07:28 +00:00
Gonzalo Paniagua Javier 0114287236 2009-06-28 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: sleep between reads as we do in
	WebClientTest.


svn path=/trunk/mcs/; revision=137052
2009-06-28 21:37:45 +00:00
Gert Driesen 916aaf1dbb * SocketTest.cs: Added tests for argument checks, and improved tests
for disposed socket.
* Socket.cs: Modified some argument names to match MS. Moved disposed
check before argument checks in Receive. Use SocketError.InvalidArgument
instead of using magic numbers. Added back comments that was 
accidentally removed in my previous commit.
* Socket_2_1.cs: Modified some argument names to match MS.

svn path=/trunk/mcs/; revision=137051
2009-06-28 20:39:25 +00:00
Gonzalo Paniagua Javier 2b3a1eaef4 fix the build
svn path=/trunk/mcs/; revision=137049
2009-06-28 16:54:59 +00:00
Gert Driesen ba798b342d * System_test.dll.sources: Added IPv6MulticastOptionTest.cs and
MulticastOptionTest.cs.
* Socket.cs: In GetSocketOption, throw SocketException when (byte [])
option value is null. Use SocketError fields instead of using "magic"
number. In SetSocketOption (SocketOptionLevel, SocketOptionName, object)
only accept Linger, AddMembership, DropMembership and verify option
value.
* MulticastOption.cs: Added argument checks. Save interfaceIndex that is
passed to .ctor, and removed MonoTODO. Renamed arguments to match MS.
Reset InterfaceIndex when LocalAddress is modified, and reset
LocalAddress when InterfaceIndex is modified.
* UdpClient.cs: Modified exception to more closely match MS. Fixed
(int, AddressFamily) .ctor to construct IPv6 endpoint when family is
InterNetworkV6. Added null check for multicastAddr to (IPAddress)
JoinMulticastGroup overload. In (int, IPAddress) and (IPAddress,
IPAddress) overloads of JoinMulticastGroup throw SocketException when
client is IPv4. Added null check for multicastAddr to (IPAddress, int),
overload, and moved JoinMulticastGroup call after argument checks.
* IPv6MulticastOption.cs: Renamed argument names to match MS. Added
null check to set_Group. Added range check to set_InterfaceIndex.
* IPv6MulticastOptionTest.cs: Added .ctor and property tests.
* MulticastOptionTest.cs: Added .ctor and property tests.
* SocketTest.cs: Fixed compiler warnings. Improved tests for
closed socket. Added tests fr GetSocketOption, and SetSocketOption
overloads (for Linger, DontLinger, AddMembership and DropMembership).
* UdpClientTest.cs: Added .ctor and JoinMulticastGroup tests.

svn path=/trunk/mcs/; revision=137048
2009-06-28 16:35:54 +00:00
Gonzalo Paniagua Javier 1691d6ff66 2009-06-28 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: fix 1.1 only test.


svn path=/trunk/mcs/; revision=137046
2009-06-28 07:17:33 +00:00
Gonzalo Paniagua Javier d53f423926 fix timing issue
svn path=/trunk/mcs/; revision=137045
2009-06-28 07:15:41 +00:00
Gonzalo Paniagua Javier 08a92a49eb 2009-06-28 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: when buffering the response, we have to set
	the internal length and regenerate the headers.


svn path=/trunk/mcs/; revision=137043
2009-06-28 04:03:49 +00:00
Gonzalo Paniagua Javier 0d6effc8d8 fix test
svn path=/trunk/mcs/; revision=137040
2009-06-28 03:50:35 +00:00
Gonzalo Paniagua Javier 834130ed3d 2009-06-27 Gonzalo Paniagua Javier <[email protected]>
* SocketResponder.cs: the listener might be closed right before
	Accept() is called and in that case we get an EINVAL.
	* WebClientTest.cs: now that we might send separate packets for
	headers and body, wait a little bit before checking socket.Available.


svn path=/trunk/mcs/; revision=137038
2009-06-28 02:33:55 +00:00
Gonzalo Paniagua Javier 1c7df92ca0 new test
svn path=/trunk/mcs/; revision=137033
2009-06-27 18:03:35 +00:00
Gonzalo Paniagua Javier 16d1a86aac 2009-06-27 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: turn WSAEINVAL into ArgumentException.


svn path=/trunk/mcs/; revision=137031
2009-06-27 18:02:46 +00:00
Gonzalo Paniagua Javier c899f83864 2009-06-27 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: DontLinger does not allow LingerOptions.


svn path=/trunk/mono/; revision=137029
2009-06-27 18:01:10 +00:00
Marek Habersack 91beae029c 2009-06-27 Marek Habersack <[email protected]>
* DynamicDataExtensionsTest.cs: added test for ConvertEditedValue

    2009-06-27  Marek Habersack  <[email protected]>

    	* DynamicDataExtensions.cs: implemented ConvertEditedValue

svn path=/trunk/mcs/; revision=137024
2009-06-26 22:59:01 +00:00
Marek Safar af0fb16f41 needs gmcs
svn path=/trunk/mcs/; revision=137023
2009-06-26 22:58:12 +00:00
Gonzalo Paniagua Javier b022b6fd1a 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: add a bunch of tests provided by
	Bassan Tabbara.


svn path=/trunk/mcs/; revision=137021
2009-06-26 22:48:39 +00:00
Gonzalo Paniagua Javier d89546ba92 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: don't send Content-Length header when SendChunked
	is enabled.
	* WebConnectionStream.cs: send the headers immediately when possible.
	When writing the request before a Close(), if there was an exception
	it was lost.


svn path=/trunk/mcs/; revision=137019
2009-06-26 22:45:35 +00:00
Gonzalo Paniagua Javier b0ea001694 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs:
	* HttpListenerResponse.cs: force closing the socket when the response
	is aborted.


svn path=/trunk/mcs/; revision=137016
2009-06-26 22:37:38 +00:00
Robert Jordan 13c812a9dd 2009-06-26 Robert Jordan <[email protected]>
* StringTest.cs: Convert all tests to new-style nunit
	classes/methods.

	* ArrayTest.cs, ConvertTest.cs, DecimalTest.cs, TimeSpanTest.cs:
	likewise.

	* DecimalTest2.cs: likewise, 5 hidden tests enabled.


svn path=/trunk/mcs/; revision=137015
2009-06-26 22:30:55 +00:00
Marek Habersack 3192ec7fa4 2009-06-27 Marek Habersack <[email protected]>
* MetaModel.cs: implemented DynamicDataFolderVirtualPath

    	* DynamicDataRouteHandler.cs: implemented SetRequestMetaTable,
    	GetCustomPageVirtualPath, GetScaffoldPageVirtualPath and
    	guessed at implementation of CreateHandler.

    2009-06-27  Marek Habersack  <[email protected]>

    	* MetaModelTest.cs: added test for DynamicDataFolderVirtualPath

    	* DynamicDataRouteHandlerTest.cs: implemented tests for
    	CreateHandler (one of them isn't working atm),
    	GetCustomVirtualPagePath, GetScaffoldVirtualPagePath,
    	GetRequestMetaTable, SetRequestMetaTable

    2009-06-26  Marek Habersack  <[email protected]>

    	* DynamicDataRouteTest.cs: MyDataContext3 is safely registered in
    	the fixture setup method.
    	Enabled the GetTableFromRouteData3 and GetRouteData tests - the
    	work fine now.
    	Added test for the RouteHandler property.

    	* DynamicDataRouteHandlerTest.cs: added tests for the constructor
    	and the Model property.

    2009-06-26  Marek Habersack  <[email protected]>

    	* MetaModel.cs: RegisterContextCore preserves already registered
    	tables.

    	* DynamicDataRouteHandler.cs: GetRequestContext must not retrieve
    	route data from the routes collection (if the matching route
    	happened to be an instance of DynamicDataRoute it would initialize
    	its RouteHandler's Model property, which is not correct, according
    	to tests). Instead a new RouteData instance is created each time
    	we don't find any cached context.

    	* DynamicDataRoute.cs: the associated route handler is set its
    	Model property when we initialize for the first time.
    	GetRouteData checks whether route data returned by base class
    	relates to a table which exists in the current context. If no such
    	table exists, null is returned.

svn path=/trunk/mcs/; revision=137013
2009-06-26 22:13:39 +00:00
Robert Jordan a5b5163351 2009-06-26 Robert Jordan <[email protected]>
* UTF8EncodingTest.cs: Fix the NET_1_1 build.


svn path=/trunk/mcs/; revision=137012
2009-06-26 21:53:51 +00:00
Robert Jordan 625757a962 2009-06-26 Robert Jordan <[email protected]>
* StringTest.cs: Convert all tests to new-style nunit 
	classes/methods.


svn path=/trunk/mcs/; revision=137011
2009-06-26 21:29:00 +00:00
Robert Jordan bd7622796a 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=137010
2009-06-26 21:06:21 +00:00
Rodrigo Kumpera 822e075bfe 2009-06-26 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Fix a cattr-table test
	where generic param is allowed as a parent.

svn path=/trunk/mono/; revision=137007
2009-06-26 20:14:25 +00:00
Rodrigo Kumpera 938782598a 2009-06-26 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: The spec doesn't mention that it's possible to add
	custom attribute to a generic parameter. Fixed.

svn path=/trunk/mono/; revision=137006
2009-06-26 20:14:16 +00:00
Rodrigo Kumpera 5273e86813 2009-06-26 Rodrigo Kumpera <[email protected]>
* class.c (inflate_generic_type): Don't crash while trying to output a message
	on why we're aborting.

svn path=/trunk/mono/; revision=137005
2009-06-26 20:14:02 +00:00
Carlos Alberto Cortez 6f53b2ee53 2009-06-26 Carlos Alberto Cortez <[email protected]>
* ToolBar.cs: In OnButtonClick only change the Pushed value for
	buttons with toogle style. We were previously doing it for
	DropDownButton's buttons, but that's not what .net is doing.
	Fixes #510030.


svn path=/trunk/mcs/; revision=137002
2009-06-26 19:47:22 +00:00
Zoltan Varga 2fd59a55db 2009-06-26 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_prolog): Fix thread attaching in AOTed
	code.

	* mini.c (mono_jit_thread_attach): Allow domain to be NULL for calls from
	AOTed code.

svn path=/trunk/mono/; revision=136995
2009-06-26 18:10:51 +00:00
Gonzalo Paniagua Javier 72754e7d4d 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* SocketTest.cs: tests for DontLinger.


svn path=/trunk/mcs/; revision=136982
2009-06-26 16:34:58 +00:00
Gonzalo Paniagua Javier 433d127533 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: MS throws a SocketException in the byte[] overload when
	the value is null.


svn path=/trunk/mcs/; revision=136980
2009-06-26 16:34:20 +00:00
Gonzalo Paniagua Javier a6d8d277e1 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: DontLinger can take an int or a boolean too.


svn path=/trunk/mono/; revision=136978
2009-06-26 16:33:58 +00:00
Atsushi Eno 4088935212 2009-06-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : handle EndRecord for repetitive
	  operation that does not involve session.
	  Preserve writer session as well as reader session.
	* MessageHeaders.cs : take name and namespace into consideration
	  when creating a serializer.


svn path=/trunk/mcs/; revision=136975
2009-06-26 15:44:16 +00:00
Marek Habersack c4f73e35c8 Unbreak last broken tests for DynamicData
svn path=/trunk/mcs/; revision=136974
2009-06-26 15:12:26 +00:00
Marek Safar 728aad5d34 New tests.
svn path=/trunk/mcs/; revision=136973
2009-06-26 15:08:24 +00:00
Marek Safar 7b2f03b697 New tests.
svn path=/trunk/mcs/; revision=136972
2009-06-26 15:08:05 +00:00
Marek Safar 8c0f55dbbb 2009-06-26 Marek Safar <[email protected]>
* generic.cs, argument.cs, expression.cs, ecore.cs, cs-parser.jay:
	Implemented C# 4.0 named arguments.


svn path=/trunk/mcs/; revision=136971
2009-06-26 15:07:48 +00:00
Zoltan Varga 554a24c3cb 2009-06-26 Zoltan Varga <[email protected]>
* CMakeLists.txt: Add minimal support for installation.

svn path=/trunk/mono/; revision=136970
2009-06-26 15:04:36 +00:00
Paolo Molaro 6a9b2ddcca Fri Jun 26 17:00:04 CEST 2009 Paolo Molaro <[email protected]>
* gc.c: check for a null argument to SuppressFinalize () and
	ReRegisterForFinalize ().


svn path=/trunk/mono/; revision=136969
2009-06-26 15:04:24 +00:00
Robert Jordan fc7def2009 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136968
2009-06-26 15:00:46 +00:00
Atsushi Eno 922abe10f3 2009-06-26 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs : verifyObjectName rather blocked
	  correct names provided as the root names.


svn path=/trunk/mcs/; revision=136964
2009-06-26 14:15:12 +00:00
Rodrigo Kumpera b04ce8e1da 2009-06-26 Rodrigo Kumpera <[email protected]>
* loader.c (method_from_methodspec): Call into the verifier to check
	the signature.

	* metadata-verify.c: Addmono_verifier_verify_methodspec_signature.

	* verify-internals.h: Export mono_verifier_verify_methodspec_signature as
	part of the internal API.

svn path=/trunk/mono/; revision=136963
2009-06-26 14:13:45 +00:00
Robert Jordan d05e8a0a33 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136962
2009-06-26 14:00:28 +00:00
Robert Jordan 0e35975fec In Test/System.Web.Services:
2009-06-26  Robert Jordan  <[email protected]>

	* *.cs: Upgrade to new NUnit style.

In Test/System.Web.Services.Configuration:
2009-06-26  Robert Jordan  <[email protected]>

	* *.cs: Upgrade to new NUnit style.

In Test/System.Web.Services.Discovery:
2009-06-26  Robert Jordan  <[email protected]>

	* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136961
2009-06-26 13:34:58 +00:00
Robert Jordan ccf0eeec37 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136960
2009-06-26 13:31:32 +00:00
Robert Jordan 7a5bd32c9a 2009-06-26 Robert Jordan <[email protected]>
* CodeGeneratorIdentifierTest.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136956
2009-06-26 13:01:11 +00:00
Robert Jordan b2b4ea5f30 2009-06-26 Robert Jordan <[email protected]>
* BitVector32Test.cs, NameValueCollectionTest.cs:
	Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136954
2009-06-26 12:49:57 +00:00
Robert Jordan 6fc23e40bc 2009-06-26 Robert Jordan <[email protected]>
* EventHandlerListTests.cs, LicenseManagerTests.cs:
	Upgrade to new NUnit style. Standalone tests (#if !NUNIT)
	removed.


svn path=/trunk/mcs/; revision=136952
2009-06-26 12:43:22 +00:00
Robert Jordan d7a6be8251 2009-06-26 Robert Jordan <[email protected]>
* SwitchesTest.cs, TraceTest.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136951
2009-06-26 12:34:15 +00:00
Robert Jordan 5f94e5e16c 2009-06-26 Robert Jordan <[email protected]>
* FileSystemWatcherTest.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136950
2009-06-26 12:29:53 +00:00
Robert Jordan 2f26089775 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136949
2009-06-26 12:20:08 +00:00
Robert Jordan 7d405be2c1 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136948
2009-06-26 11:59:34 +00:00
Robert Jordan ea919da532 In Test/System.Security.Cryptography.X509Certificates:
2009-06-26  Robert Jordan  <[email protected]>

	* X509CertificateCollectionTest.cs,
	X509ChainPolicyTest.cs: Upgrade to new NUnit style.

In Test/System.Security.Cryptography:
2009-06-26  Robert Jordan  <[email protected]>

	* OidCollectionTest.cs, OidEnumeratorTest.cs:
	Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136947
2009-06-26 11:22:31 +00:00
Zoltan Varga 00cdd0f325 2009-06-26 Zoltan Varga <[email protected]>
* NumberFormatterTest.cs: Convert all tests to new-style nunit
	classes/methods.

svn path=/trunk/mcs/; revision=136946
2009-06-26 11:20:13 +00:00
Zoltan Varga 67b04fd53a 2009-06-26 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods. Add
	[Test] attributes to some tests which were missing them.

svn path=/trunk/mcs/; revision=136944
2009-06-26 11:16:10 +00:00
Zoltan Varga 82bb1e41c5 2009-06-26 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136942
2009-06-26 11:05:19 +00:00
Robert Jordan a471f312c4 2009-06-26 Robert Jordan <[email protected]>
* BitArrayTest.cs: Upgrade to new NUnit style. Enable
	16 tests that were disabled after the NUnit 2.4 update.


svn path=/trunk/mcs/; revision=136935
2009-06-26 08:36:55 +00:00
Atsushi Eno 37a53ec9d7 2009-06-26 Atsushi Enomoto <[email protected]>
* XplatUICarbon.cs : support multi-byte text input.
	  Fixed bug #501276.

	* KeyboardHandler.cs : support multi-byte text input.
	  Fixed bug #501276.


svn path=/trunk/mcs/; revision=136932
2009-06-26 05:43:07 +00:00
Gonzalo Paniagua Javier c6120c6690 new tests
svn path=/trunk/mcs/; revision=136930
2009-06-26 05:28:01 +00:00
Atsushi Eno bea9bf9dc0 2009-06-26 Atsushi Enomoto <[email protected]>
* SelectNodesTests.cs
	  XPathNavigatorCommonTests.cs
	  XPathAtomicValueTests.cs
	  XPathNavigatorTests.cs
	  XPathNavigatorEvaluateTests.cs : convert to newer nunit style.


svn path=/trunk/mcs/; revision=136928
2009-06-26 05:26:36 +00:00
Gonzalo Paniagua Javier 0cac82f3bc 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* DateTime.cs: if the DateTimeOffset is out of bounds, let Parse
	report the error. Fix stupid harmless typo.
	* DateTimeOffset.cs: report error if the UTC date/time is out of
	bounds.


svn path=/trunk/mcs/; revision=136927
2009-06-26 05:25:56 +00:00
Rodrigo Kumpera 93ad323a22 2009-06-25 Rodrigo Kumpera <[email protected]>
* metadata.c (mono_type_create_from_typespec): Call into the verifier to check
	the signature.

	* metadata-verify.c: Add mono_verifier_verify_typespec_signature.

	* verify-internals.h: Export mono_verifier_verify_typespec_signature as
	part of the internal API.

svn path=/trunk/mono/; revision=136922
2009-06-26 02:24:39 +00:00
Rodrigo Kumpera 1aaac9a297 * metadata.c (mono_metadata_parse_mh_full): Call into the verifier to check
the signature.

	* metadata-verify.c: Add mono_verifier_verify_standalone_signature. Fix
	blob verification.

	* verify-internals.h: Export mono_verifier_verify_memberref_signature as
	part of the internal API.

svn path=/trunk/mono/; revision=136921
2009-06-26 02:24:25 +00:00
Rodrigo Kumpera 46d0349c1b 2009-06-25 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Use is_valid_blob_object to verify blob validity
	when doing basic verification.

	This check must be done since the runtime peeks into signatures in much
	more places than it does decoding so it makes sense to ensure that all
	pointers to blob objects are well formed.

svn path=/trunk/mono/; revision=136920
2009-06-26 02:24:11 +00:00
Rodrigo Kumpera 654da7bf03 2009-06-25 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_blob_object): Add extra minsize argument.
	Use proper overflow dectection. Fix usage of it.

svn path=/trunk/mono/; revision=136919
2009-06-26 02:23:58 +00:00
Rodrigo Kumpera b24a0a50a7 2009-06-25 Rodrigo Kumpera <[email protected]>
* loader.c (field_from_memberref): Call into the verifier to check
	the signature.

	* loader.c (mono_method_get_signature_full): Same.

	* loader.c (method_from_memberref): Same.

	* metadata-verify.c: Add mono_verifier_verify_memberref_signature.

	* verify-internals.h: Export mono_verifier_verify_memberref_signature as
	part of the internal API.

svn path=/trunk/mono/; revision=136918
2009-06-26 02:23:45 +00:00
Atsushi Eno be335acb42 another dos2unix.
svn path=/trunk/mcs/; revision=136917
2009-06-26 02:15:22 +00:00
Atsushi Eno a74f0aa1a6 dos2unix.
svn path=/trunk/mcs/; revision=136916
2009-06-26 01:44:37 +00:00
Miguel de Icaza 1601b10bbf 2009-06-25 Miguel de Icaza <[email protected]>
* Timer.cs: Throw ArgumentNullException if the callback is null. 

svn path=/trunk/mcs/; revision=136912
2009-06-26 00:47:19 +00:00
Miguel de Icaza be27e873d0 2009-06-10 Gert Driesen <[email protected]>
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

svn path=/trunk/mcs/; revision=136908
2009-06-26 00:15:37 +00:00
Miguel de Icaza ed2e53a956 2009-06-10 Gert Driesen <[email protected]>
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

2009-06-10  Marek Safar  <[email protected]>

svn path=/trunk/mcs/; revision=136902
2009-06-25 23:36:03 +00:00
Gonzalo Paniagua Javier 7584df6cf8 2009-06-25 Gonzalo Paniagua Javier <[email protected]>
* WebAsyncResult.cs: new field that tells us if the request is being
	written automatically because we reached the content length.
	* WebConnection.cs:
	* WebConnectionStream.cs: make sure we only access the NetworkStream
	while we own it. Automatically write the request when we reach
	ContentLength number of bytes. Kill the write buffer as soon as
	possible. Don't use the buffer at all when chunked encoding is
	enabled.

	Fixes bugs #515931 and #510642.

svn path=/trunk/mcs/; revision=136900
2009-06-25 23:23:24 +00:00
Miguel de Icaza 1e9d133fb6 2009-06-10 Gert Driesen <[email protected]>
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

2009-06-10  Marek Safar  <[email protected]>

svn path=/trunk/mcs/; revision=136898
2009-06-25 23:19:41 +00:00
Miguel de Icaza 41da76b7f2 2009-06-25 Miguel de Icaza <[email protected]>
* Int32.cs: Fix regression introduced in 2005, we need to throw
	ArgumentNullException on Parse.

svn path=/trunk/mcs/; revision=136895
2009-06-25 22:46:50 +00:00
Zoltan Varga 7908adf49b 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136888
2009-06-25 21:02:46 +00:00
Zoltan Varga 1b1e5438b3 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136887
2009-06-25 20:55:57 +00:00
Zoltan Varga a043d4f6bb 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136886
2009-06-25 20:45:27 +00:00
Gonzalo Paniagua Javier 62e5ff8350 2009-06-25 Gonzalo Paniagua Javier <[email protected]>
* sockets.c: add the error number to the message so we can figure out
	when this happens.


svn path=/trunk/mono/; revision=136883
2009-06-25 20:40:31 +00:00
Zoltan Varga 227b251f89 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136880
2009-06-25 20:16:53 +00:00
Zoltan Varga 2d7f05b512 2009-06-25 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_and_reloc_code): Factor out the code to
	determine whenever a method is directly callable to a separate function.

svn path=/trunk/mono/; revision=136876
2009-06-25 19:41:51 +00:00
Marek Habersack adba453b57 2009-06-25 Marek Habersack <[email protected]>
* RouteCollectionTest.cs, RouteTest.cs: added new tests for
	GetVirtualPath

2009-06-25  Marek Habersack  <[email protected]>

	* PatternParser.cs: parameter name lookups must be
	case-insensitive.
	Null and empty (string) parameters are skipped when building query
	part of the action path.

2009-06-25  Marek Habersack  <[email protected]>

	* LinqDataSource.cs: make ContextType not throw an exception when
	ContextTypeName is not set, but rather return a null in that
	case.

2009-06-25  Marek Habersack  <[email protected]>

	* MetaTableTest.cs: new GetVirtualPath tests.

	* DynamicDataRouteTest.cs: added tests for route.Defaults
	modifications on class init.

	* DynamicDataRouteHandlerTest.cs: added

2009-06-25  Marek Habersack  <[email protected]>

	* MetaTable.cs: Fixes to make tests succeed.

	* MetaModel.cs: added the GetDataFieldAttributes method for
	retrieving attributes associated with data type/field.
	Fixes to make tests succeed.

	* MetaColumn.cs: refactoring - use
	MetaModel.GetDataFieldAttributes instead of the local version.

	* DynamicDataRouteHandler.cs: implemented GetRequestContext,
	GetRequestMetaTable.

	* DynamicDataRoute.cs: when the Action and Table properties are
	set before one of GetVirtualPath or GetRouteData methods are
	called for the first time, a check is made whether the Defaults
	collection exists and whether it contains entries for Action and
	Table. Initialization code makes sure those entries are inserted
	into the dictionary in those cases.

svn path=/trunk/mcs/; revision=136875
2009-06-25 19:35:20 +00:00
Zoltan Varga 1908653a07 2009-06-25 Zoltan Varga <[email protected]>
* mini-<ARCH>.c tramp-<ARCH>.c: Remove needless casts and add new
	needed ones as a result of the previous change.

svn path=/trunk/mono/; revision=136874
2009-06-25 19:17:12 +00:00
Zoltan Varga f26fc20b69 2009-06-25 Zoltan Varga <[email protected]>
* mini-<ARCH>.c tramp-<ARCH>.c: Use mgreg_t* as the
	type of register arrays.

svn path=/trunk/mono/; revision=136873
2009-06-25 19:04:37 +00:00
Jonathan Pryor 2969606fa4 * src/**/*: Sync with DbLinq r1200. Among other fixes, this fixes an
issue where AttributeMappingSource.GetModel().GetTables() would 
	  return duplicate types, which was unexpected by Marek Habersack.

svn path=/trunk/mcs/; revision=136871
2009-06-25 18:57:33 +00:00
Zoltan Varga bb48a6163d 2009-06-25 Zoltan Varga <[email protected]>
* mini-trampolines.c tramp-<ARCH>.c aot-runtime.c: Use mgreg_t* as the
	type of register arrays.

svn path=/trunk/mono/; revision=136870
2009-06-25 18:54:18 +00:00
Mark Probst 95ac45165f 2009-06-25 Mark Probst <[email protected]>
* threadpool.c (mono_thread_pool_add): If the domain is unloading
        or unloaded, still return an AsyncResult, but don't add it to the
        threadpool.

2009-06-25  Mark Probst  <[email protected]>

        * appdomain-async-invoke.cs: Fail if BeginInvoke doesn't return an
        AsyncResult.

svn path=/trunk/mono/; revision=136868
2009-06-25 18:43:12 +00:00
Atsushi Eno e9dbae90d2 2009-06-25 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
	  Made required changes for repeated use of message exchanges.
	  Hold binary reader session. The channels use it incrementally.
	  Preambles are handled at Open, and EndRecords are handled at
	  Close, Add session shutdown hook here (not working yet though).


svn path=/trunk/mcs/; revision=136867
2009-06-25 18:41:52 +00:00
Atsushi Eno 1628f04de5 2009-06-25 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : instead of discarding channels, reuse them
	  unless it is closed by session manager (session manager does not
	  work, so channels are not actually closed automatically yet).


svn path=/trunk/mcs/; revision=136866
2009-06-25 18:37:22 +00:00
Atsushi Eno 50bad4b114 2009-06-25 Atsushi Enomoto <[email protected]>
* ChannelDispatcherTest.cs : add some instance provider tests.


svn path=/trunk/mcs/; revision=136861
2009-06-25 17:57:37 +00:00
Atsushi Eno 1f6faa59d2 2009-06-25 Atsushi Enomoto <[email protected]>
* InstanceContext.cs : add missing member / cosmetic API fix.
	* ServiceBehaviorAttribute.cs : InstanceContextMode is per-session
	  by default.


svn path=/trunk/mcs/; revision=136860
2009-06-25 17:53:55 +00:00
Atsushi Eno 242e87c4d3 2009-06-25 Astushi Enomoto <[email protected]>
* SessionInstanceContextProvider.cs : new instance context provider.

	* System.ServiceModel.dll.sources:
	  add SessionInstanceContextProvider.cs.


svn path=/trunk/mcs/; revision=136859
2009-06-25 17:53:23 +00:00
Gonzalo Paniagua Javier 6398ea6f34 2009-06-25 Gonzalo Paniagua Javier <[email protected]>
* threads.c: fix missing colon when DEBUG is defined.


svn path=/trunk/mono/; revision=136854
2009-06-25 17:40:39 +00:00
Gonzalo Paniagua Javier b86eb0eb80 2009-06-25 Gonzalo Paniagua Javier <[email protected]>
* wait.c: add missing 'break'.


svn path=/trunk/mono/; revision=136852
2009-06-25 17:37:40 +00:00
Mark Probst 2d37a7b349 2009-06-25 Mark Probst <[email protected]>
* threadpool.c: Don't add new calls to a threadpool if the domain
        of the call is unloading or unloaded.  When dequeuing a job, null
        the reference in the queue.

2009-06-25  Mark Probst  <[email protected]>

        * appdomain-async-invoke.cs: Test for adding async invokes while a
        domain is unloading.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=136849
2009-06-25 17:00:53 +00:00
Mark Probst 15b2b00b85 2009-06-25 Mark Probst <[email protected]>
* sgen-gc.c (null_link_in_range): Add the dislink for the old
        generation if an object was moved.

svn path=/trunk/mono/; revision=136847
2009-06-25 16:42:05 +00:00
Bill Holmes 5942115cf2 2009-06-25 Sylvain Dupont <[email protected]>
* cominterop.h cominterop.c marshal.c: Added support for marshalling out
	  parameters of type SAFEARRAY[VARIANT].

	* reflection.c (encode_marshal_blob): Properly generate element type
	  (SafeArraySubType marshal attribute option).

	* cominterop.cs libtest.c: Added tests for marshalling
	  out parameters of type SAFEARRAY[VARIANT].

	* CustomAttributeBuilder.cs: Properly handle element type for safe
	  arrays (SafeArraySubType marshal attribute option).

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=136836
2009-06-25 14:06:50 +00:00
Bill Holmes 18399a6f79 2009-06-25 Sylvain Dupont <[email protected]>
* cominterop.h cominterop.c marshal.c: Added support for marshalling out
	  parameters of type SAFEARRAY[VARIANT].

	* reflection.c (encode_marshal_blob): Properly generate element type
	  (SafeArraySubType marshal attribute option).

	* cominterop.cs libtest.c: Added tests for marshalling
	  out parameters of type SAFEARRAY[VARIANT].

	* CustomAttributeBuilder.cs: Properly handle element type for safe
	  arrays (SafeArraySubType marshal attribute option).

	Code is contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=136836
2009-06-25 14:06:50 +00:00
Paolo Molaro 3e2f55010e Thu Jun 25 15:48:09 CEST 2009 Paolo Molaro <[email protected]>
* reflection.c: in mono_method_clear_object () really ensure all the
	objects are removed.


svn path=/trunk/mono/; revision=136834
2009-06-25 13:51:47 +00:00
Robert Jordan 689ccb56fd 2009-06-25 Robert Jordan <[email protected]>
* UriTest.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136817
2009-06-25 11:25:57 +00:00
Robert Jordan 3b80e25382 2009-06-25 Robert Jordan <[email protected]>
* BinaryReaderTest.cs, BinaryWriterTest.cs, BufferedStreamTest.cs,
	PathTest.cs, PathTest.cs, StringWriterTest.cs, TextWriterTest.cs:
	Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136815
2009-06-25 11:02:07 +00:00
Zoltan Varga af37587927 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136811
2009-06-25 09:57:40 +00:00
Zoltan Varga f7402682e9 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136810
2009-06-25 09:38:28 +00:00
Rodrigo Kumpera 62107e8955 2009-06-24 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_signature): Call into the verifier to check
	the method signature.

	* metadata-verify.c (verify_method_table): Move signature verification
	to verify_method_table_full.

	* metadata-verify.c: Add mono_verifier_verify_method_signature.

	* verify-internals.h: Export mono_verifier_verify_method_signature as
	part of the internal API.

svn path=/trunk/mono/; revision=136799
2009-06-24 22:45:59 +00:00
Rodrigo Kumpera 66613c3380 2009-06-24 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_header): Call into the verifier to
	check the method header.

	* metadata-verify.c: Add mono_verifier_verify_method_header.

	* verify-internals.h: Export mono_verifier_verify_method_header as
	part of the internal API.

svn path=/trunk/mono/; revision=136798
2009-06-24 22:45:45 +00:00
Rodrigo Kumpera e5c1d26960 2009-06-24 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_find_enum_basetype): Call into the verifier to
	check the field signature. Replace an assert with an explicit check.

	* class.c (mono_class_setup_fields): Call into the verifier to check
	the field signature.

	* metadata-verify.c: Add mono_verifier_verify_field_signature.

	* verify-internals.h: Export mono_verifier_verify_field_signature as
	part of the internal API.

svn path=/trunk/mono/; revision=136797
2009-06-24 22:45:30 +00:00
Rodrigo Kumpera cc618a06b8 2009-06-24 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_find_enum_basetype): Simplify this function
	by moving code outside of the loop and not decoding static fields.

svn path=/trunk/mono/; revision=136796
2009-06-24 22:45:14 +00:00
Rodrigo Kumpera 66d25751fc 2009-06-24 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Check the extends
	token here. Move to here a flags check from verify_typedef_table_full.

svn path=/trunk/mono/; revision=136795
2009-06-24 22:44:59 +00:00
Jerri Maine 5d0aa36711 Fix wrong date in my entry to ChangeLog files. Sorry! :((
svn path=/trunk/mono/; revision=136786
2009-06-24 21:25:11 +00:00
Jerri Maine a821527b59 mini-amd64.c: Added code to convert simd IR to native amd64 sse.
amd64/amd64-codegen.h: Add marcos for coding several specific sse opcodes.

svn path=/trunk/mono/; revision=136785
2009-06-24 21:19:29 +00:00
Marek Safar 9e060eba21 New test.
svn path=/trunk/mcs/; revision=136778
2009-06-24 16:37:18 +00:00
Marek Safar 1a123c4ec5 2009-06-24 Marek Safar <[email protected]>
* typemanager.cs, parameter.cs, iterators.cs, convert.cs,
	expression.cs, ecore.cs, delegate.cs: Removed unnecessary ArgList
	parameter modifier. Also fixes bug #515497.


svn path=/trunk/mcs/; revision=136777
2009-06-24 16:36:56 +00:00
Robert Jordan d377f08546 typo
svn path=/trunk/mcs/; revision=136772
2009-06-24 15:38:01 +00:00
Robert Jordan 29e1464833 2009-06-24 Robert Jordan <[email protected]>
* ArrayListTest.cs, CollectionBaseTest.cs, DictionaryEntryTest.cs,
	HashtableTest.cs: Convert all tests to new-style nunit methods.

	* QueueTest.cs: likewise. Convertion revealed 25 test that were
	disabled after the NUnit 2.4 update.

	* StackTest.cs: likewise. Convertion revealed 24 test that were
	disabled after the NUnit 2.4 update.


svn path=/trunk/mcs/; revision=136771
2009-06-24 14:58:20 +00:00
Zoltan Varga 7ed9116d60 2009-06-24 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_plt): Define debug labels for most plt entries.

svn path=/trunk/mono/; revision=136768
2009-06-24 13:10:37 +00:00
Zoltan Varga f725c8183a 2009-06-24 Zoltan Varga <[email protected]>
* metadata-verify.c (is_valid_method_header): Fix a warning.

	* metadata-internals.h (MonoImage): Remove the unused
	static_rgctx_invoke_wrapper_cache.

	* image.c marshal.c: Ditto.

svn path=/trunk/mono/; revision=136767
2009-06-24 13:10:29 +00:00
Marek Safar 1fd7e91289 New tests.
svn path=/trunk/mcs/; revision=136766
2009-06-24 11:34:25 +00:00
Marek Safar 021922567a 2009-06-24 Marek Safar <[email protected]>
* *.cs: Replaced ArrayList with Arguments in need of a nonsequential 
	arguments expression to be implemented.
	
	*.sources: Add argument.cs



svn path=/trunk/mcs/; revision=136765
2009-06-24 11:33:50 +00:00
Gonzalo Paniagua Javier 777d9fb576 2009-06-24 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: 'socket' and 'Data' where being changed by 2
	threads at the same time when there were queued requests and the
	current one was aborted in Connect().
	* HttpWebRequest.cs: 'aborted' is now an int and we use Interlocked to
	access it. Added WebConnection field used when aborting the request.

	Fixes bug #514591 for good.


svn path=/trunk/mcs/; revision=136753
2009-06-24 06:41:14 +00:00
Zoltan Varga b22059242d 2009-06-24 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136751
2009-06-24 04:07:12 +00:00
Zoltan Varga 7c9418a910 2009-06-24 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136750
2009-06-24 04:07:02 +00:00
Zoltan Varga 52343ce767 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136749
2009-06-24 03:37:39 +00:00
Neale Ferguson d142be8eee Fix LCONV_TO_xx and ICONV_TO_xx. Fix leave_method dump of returned
structure. Fix formatting.
Correct instruction lengths.
Add new instructions.

svn path=/trunk/mono/; revision=136748
2009-06-23 23:55:26 +00:00
Zoltan Varga c5abb9b09f 2009-06-24 Zoltan Varga <[email protected]>
* libtest.c make_imt_test.sh: Applied patch from Romain Tartiere
	([email protected]). Fix tests on freebsd.

svn path=/trunk/mono/; revision=136747
2009-06-23 22:30:41 +00:00
Zoltan Varga ebba015d36 2009-06-24 Zoltan Varga <[email protected]>
* mini-x86.h: Applied patch from Romain Tartière ([email protected]).
	Use sigaction on freebsd as well.

svn path=/trunk/mono/; revision=136746
2009-06-23 22:30:35 +00:00
Zoltan Varga 519656843f 2009-06-23 Zoltan Varga <[email protected]>
* mini.h: Don't define MONO_ARCH_HAVE_TLS_GET to 0, as some code
	uses #ifdef on it.

svn path=/trunk/mono/; revision=136740
2009-06-23 19:52:51 +00:00
Zoltan Varga d3752d5f8b 2009-06-23 Zoltan Varga <[email protected]>
* mini.h: Don't define MONO_ARCH_HAVE_TLS_GET to 0, as some code
	uses #ifdef on it.

svn path=/trunk/mono/; revision=136739
2009-06-23 19:52:43 +00:00
Marek Habersack d9f9fea847 2009-06-23 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added InternalsVisibleTo for
	System.ComponentModel.DataAnnotations (needs
	ReflectionPropertyDescriptor)

2009-06-23  Marek Habersack  <[email protected]>

	* MetaTable.cs: constructor now takes ContextConfiguration instead
	of a boolean and uses the config to determine value of the
	ScaffoldAllTables property. Also, if context config is present,
	makes sure to register the associated type description provider
	(if any) with TypeDescriptor.

	* MetaModel.cs: no longer uses local cache for description
	providers. Uses TypeDescriptor.{Add,Get}Provider now.

	* MetaColumn.cs: fixed Scaffold to match tests - IsGenerated and
	IsCustomProperty take precedence over Table.ScaffoldAllTables.
	GetDataFieldAttribute doesn't use AttributeCollection indexer, as
	the latter would create a default instance of the requested
	attribute, which is not what we want here.

2009-06-23  Marek Habersack  <[email protected]>

	* ValidationAttribute.cs: error message must not ever be empty.

	* UIHintAttribute.cs: do not throw NIEX from the constructor.

	* DataTypeAttribute.cs: implemented correct DisplayFormat
	intialization for DataType.Time.

	* AssociatedMetadataTypeTypeDescriptor.cs: implemented retrieving
	attributes of the associated metadata type, as well as merging of
	attribute collections between metadata and main type properties.

	* AssociatedMetadataTypePropertyDescriptor.cs: added. Helper class
	which merges attributes from the metadata type (if any) with those
	associated with property from the "main" type.

2009-06-23  Marek Habersack  <[email protected]>

	* System.ComponentModel.DataAnnotations.dll.sources: added
	System.ComponentModel.DataAnnotations/AssociatedMetadataTypePropertyDescriptor.cs

2009-06-23  Marek Habersack  <[email protected]>

	* TypeDescriptor.cs: do not wrap DefaultTypeDescriptionProvider.
	Implemented GetAttributes and GetProperties in
	DefaultTypeDescriptor.

	* AttributeCollection.cs: make sure that attrList is never null.

svn path=/trunk/mcs/; revision=136732
2009-06-23 18:38:38 +00:00
Jonathan Pryor edda5602c1 * Mono.Documentation/monodocer.cs: Don't generate an exception when an
enumeration contains multiple names with the same value.
	  Fixes #515030.
	* Test/DocTest-v1.cs: Add test for #515030.
	* Test/en.expected/Mono.DocTest/Color.xml,
	  Test/en.expected.since/Mono.DocTest/Color.xml,
	  Test/html.expected/Mono.DocTest/Color.html,
	  Test/msxdoc-expected.importslashdoc.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest/Color.xml: Flush.

svn path=/trunk/mcs/; revision=136730
2009-06-23 18:34:00 +00:00
Rodrigo Kumpera 4d45e1f564 2009-06-23 Rodrigo Kumpera <[email protected]>
* image.c (do_mono_image_load): Enable table data verification.

svn path=/trunk/mono/; revision=136729
2009-06-23 18:18:43 +00:00
Rodrigo Kumpera 3c1d408e8e 2009-06-23 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_constant): Fix nullref check.

svn path=/trunk/mono/; revision=136728
2009-06-23 18:18:28 +00:00
Rodrigo Kumpera 6da266a1c1 2009-06-23 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_constant): Fix string bounds check.

svn path=/trunk/mono/; revision=136727
2009-06-23 18:18:11 +00:00
Gonzalo Paniagua Javier dcd922a92c make the ParseExact5 work for all timezones
svn path=/trunk/mcs/; revision=136725
2009-06-23 18:00:15 +00:00
Gonzalo Paniagua Javier 9cb328f9ea 2009-06-23 Gonzalo Paniagua Javier <[email protected]>
* DateTime.cs: ignore MinValue to avoid DateTimeOffset ctor throwing
	when adjusting for TZ.


svn path=/trunk/mcs/; revision=136722
2009-06-23 17:58:42 +00:00
Atsushi Eno 7e1dd782a8 2009-06-23 Atsushi Enomoto <[email protected]>
* XmlSchemaAssertion.cs, XmlSchemaTests.cs : migrate from Assertion
	  to Assert (it still uses XmlSchemaAssertion as the base class,
	  but XmlSchemaAssertion is not based on Assertion anymore).


svn path=/trunk/mcs/; revision=136714
2009-06-23 16:19:56 +00:00
Marek Habersack 2f91b0659e Assertion -> Assert migration
svn path=/trunk/mcs/; revision=136712
2009-06-23 15:30:13 +00:00
Atsushi Eno f27bca4e70 2009-06-23 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : remove more TODO.

	* DispatchRuntime.cs : do not fill InstanceContextProvider here.
	* ChannelDispatcher.cs : do it here instead.
	* ChannelDispatcherCollection.cs : remove TODOs.

	* ChannelDispatcherTest.cs : make sure that the port to be in use is
	  available before running the tests. Check attach state.
	* DispatchRuntimeTest.cs : make sure that it runs through all the
	  behavior tests.


svn path=/trunk/mcs/; revision=136695
2009-06-23 10:21:19 +00:00
Marek Safar 24b2c4de33 2009-06-23 Marek Safar <[email protected]>
* parameter.cs: Moved GetParameterIndexByName to base class.
	
	* expression.cs, statement.cs, ecore.cs, delegate.cs: Removed
	unused AType. Use argument's version of GetExpressionTree.


svn path=/trunk/mcs/; revision=136694
2009-06-23 10:19:35 +00:00
Atsushi Eno ca1a5d2296 2009-06-23 Atsushi Enomoto <[email protected]>
* OperationContext.cs : implement SessionId.
	* ServiceHostBase.cs : implement open/close async methods.
	  remove some TODOs.


svn path=/trunk/mcs/; revision=136674
2009-06-23 03:05:10 +00:00
Atsushi Eno e86ae29e70 2009-06-23 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : remove some NIEs for actual use.
	  Dispose->Close.


svn path=/trunk/mcs/; revision=136673
2009-06-23 03:03:12 +00:00
Atsushi Eno 5846997eef 2009-06-23 Atsushi Enomoto <[email protected]>
* InputOrReplyRequestProcessor.cs : bogus initialization.


svn path=/trunk/mcs/; revision=136672
2009-06-23 03:00:24 +00:00
Carlos Alberto Cortez c020fc9325 2009-06-22 Carlos Alberto Cortez <[email protected]>
* ListBox.cs: When creating DrawItemEventArgs, pass either
	Theme.ColorHighlightText or ForeColor depending on the selected state
	of our item, as .net does.
	Fixes #512115.


svn path=/trunk/mcs/; revision=136669
2009-06-23 01:57:50 +00:00
Zoltan Varga 8b38e58dbc 2009-06-23 Zoltan Varga <[email protected]>
* mini.c (mini_init): Revert a change which breaks cross-compilation.

svn path=/trunk/mono/; revision=136667
2009-06-22 23:53:50 +00:00
Mark Probst 51d753617b TLS_GET on Darwin/G4.
2009-06-22  Mark Probst  <[email protected]>

        * mini-ppc.c, cpu-ppc.md: Enable TLS on Darwin/G4.

svn path=/trunk/mono/; revision=136659
2009-06-22 22:50:41 +00:00
Mark Probst a9569b6419 SGen managed allocation with pthreads TLS.
2009-06-22  Mark Probst  <[email protected]>

        * sgen-gc.c: Managed allocation with pthreads TLS.

        * threads.c, threads-types.h: Functions for the JIT to tell the
        runtime whether it supports the MONO_TLS opcode.

2009-06-22  Mark Probst  <[email protected]>

        * mini.c, mini.h: Tell the runtime whether we support MONO_TLS.

svn path=/trunk/mono/; revision=136658
2009-06-22 22:49:11 +00:00
Neale Ferguson 1d84e36ab9 Define a no-op memory barrier for s390(x)
svn path=/trunk/mono/; revision=136657
2009-06-22 22:40:05 +00:00
Rodrigo Kumpera 9abda1f613 2009-06-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_param_table): Fix a crash for assemblies
	without methods.

svn path=/trunk/mono/; revision=136656
2009-06-22 22:29:51 +00:00
Rodrigo Kumpera bbba98bbd1 2009-06-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_constant): Fix the string length check.
	Use safe overflow checking. Add decent error messages.

svn path=/trunk/mono/; revision=136655
2009-06-22 22:29:23 +00:00
Rodrigo Kumpera 478b785fe1 2009-06-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Move remaininh blob checks to the offline
	verification path.

svn path=/trunk/mono/; revision=136654
2009-06-22 22:28:49 +00:00
Rodrigo Kumpera c6a38b5b66 2009-06-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Move more blob checks to the offline verification
	path.

svn path=/trunk/mono/; revision=136653
2009-06-22 22:28:22 +00:00
Miguel de Icaza 4a0cee9f03 2009-06-10 Gert Driesen <[email protected]>
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

svn path=/trunk/mcs/; revision=136652
2009-06-22 22:08:57 +00:00
Marek Safar a94f3c0910 Message update
svn path=/trunk/mcs/; revision=136651
2009-06-22 22:04:58 +00:00
Neale Ferguson dc7b885bae Fix typo in GC_compare_and_exchange
svn path=/trunk/mono/; revision=136648
2009-06-22 21:39:16 +00:00
Marek Habersack 1821e106c7 2009-06-22 Marek Habersack <[email protected]>
* WeakObjectWrapper.cs, WeakObjectWrapperComparer.cs: added - used
	by TypeDescriptor for storage of type description providers.

	* TypeDescriptor.cs: implemented part of the 2.0+ API which deals
	with adding/removing/getting type description providers.

	* AttributeCollection.cs: do not throw NREX when attrList is
	null in Count.

2009-06-22  Marek Habersack  <[email protected]>

	* TypeDescriptorTests.cs: added tests for 2.0+ APIs which deal
	with adding/removing/getting type description providers.

svn path=/trunk/mcs/; revision=136634
2009-06-22 18:24:19 +00:00
Bill Holmes 62732ea52e 2009-06-22 Bill Holmes <[email protected]>
* object-internals.h : Adding interrupt_on_stop field.

	* threads.c (mono_thread_request_interruption) : On Windows exit the
	  thread if interrupt_on_stop is set.

	* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
	  Removing old interrupt logic and setting the interrupt_on_stop for the
	  thread when calling accept.

	* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal) :
	  setting the interrupt_on_stop for the thread when calling accept.

	* Thread.cs : Adding interrupt_on_stop field.

	Contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=136628
2009-06-22 17:41:26 +00:00
Bill Holmes 48cfa18d07 2009-06-22 Bill Holmes <[email protected]>
* object-internals.h : Adding interrupt_on_stop field.

	* threads.c (mono_thread_request_interruption) : On Windows exit the
	  thread if interrupt_on_stop is set.

	* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
	  Removing old interrupt logic and setting the interrupt_on_stop for the
	  thread when calling accept.

	* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal) :
	  setting the interrupt_on_stop for the thread when calling accept.

	* Thread.cs : Adding interrupt_on_stop field.

	Contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=136628
2009-06-22 17:41:26 +00:00
Martin Baulig 635129d3f2 Add new 'thread_flags' field to 'MonoDebuggerThreadInfo' and mark daemon / threadpool threads.
2009-06-20  Martin Baulig  <[email protected]>

	* debug-mini.c
	(MonoDebuggerThreadFlags): New enum typedef.
	(MonoDebuggerThreadInfo): Added `guint32 thread_flags'.
	(mono_debugger_thread_created): Added `gpointer func' argument;
	initialize the new `thread_flags' field.

svn path=/trunk/mono/; revision=136619
2009-06-22 16:21:00 +00:00
Martin Baulig 8a8133cef3 Renamed 'MonoDebuggerInfo.dummy' into 'runtime_info' and set an "attach ok" flag for the debugger.
2009-06-18  Martin Baulig  <[email protected]>

	* debug-debugger.h (MonoDebuggerRuntimeFlags): New enum typedef.
	(MonoDebuggerInfo): Renamed the `dummy' field info `runtime_info'.

	* debug-debugger.c
	(mini_debugger_set_attach_ok): New function; sets the attach-ok
	flag in `MONO_DEBUGGER__info.runtime_info'.

	* driver.c
	(mono_main): Call mini_debugger_set_attach_ok() if generics
	sharing is disabled.

svn path=/trunk/mono/; revision=136618
2009-06-22 16:20:40 +00:00
Martin Baulig 287de277fd Improve exception handling when running in mdb: check whether an exception is caught inside a runtime-invoked method or the runtime-invoke wrapper.
2009-06-08  Martin Baulig  <[email protected]>

	* debug-mini.c
	(MonoDebuggerExceptionAction): Moved into debug-mini.h.
	(_mono_debugger_throw_exception): Don't make this static.
	(_mono_debugger_unhandled_exception): Likewise.
	(mono_debugger_handle_exception): Moved to mini-exceptions.c

	* debug-mini.c
	(MonoDebuggerExceptionAction): Moved here from debug-mini.c.
	(_mono_debugger_throw_exception): Add function prototype.
	(_mono_debugger_unhandled_exception): Likewise.

	* mini-exceptions.c
	(mono_handle_exception_internal): Added `MonoJitInfo **out_ji'
	arg; return the first exception handler if the exception is caught
	and we're running inside the debugger.
	(mono_debugger_handle_exception): Moved here from debug-mini.c;
	improve exception handle inside runtime-invoke, check whether the
	exception is actually caught in the method being invoked and not
	by the runtime-invoke-wrapper.

svn path=/trunk/mono/; revision=136617
2009-06-22 16:20:18 +00:00
Zoltan Varga 1d4de9bfc5 2009-06-22 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Fix a warning.

svn path=/trunk/mono/; revision=136609
2009-06-22 16:07:11 +00:00
Zoltan Varga b6d397b879 Fix a few uses of ppc_store_reg.
svn path=/trunk/mono/; revision=136607
2009-06-22 15:25:02 +00:00
Zoltan Varga e6142d86ba Fix a few uses of ppc_load_reg/ppc_store_reg.
svn path=/trunk/mono/; revision=136606
2009-06-22 15:24:56 +00:00
Zoltan Varga bbda6e9879 2009-06-22 Zoltan Varga <[email protected]>
* mini-ppc.c tramp-ppc.c exceptions-ppc.c aot-compiler.c: Update after
	the ppc load/store macro changes.

svn path=/trunk/mono/; revision=136605
2009-06-22 15:22:17 +00:00
Zoltan Varga 5c68a7494a 2009-06-22 Zoltan Varga <[email protected]>
* ppc/ppc-codegen.h: Rework the naming of the load/store macros,
	ldr/str now handle register sized quantities, while ldptr/stptr handle
	pointer sized quantities.

svn path=/trunk/mono/; revision=136604
2009-06-22 15:22:10 +00:00
Marek Safar 232d093e28 Fixes build.
svn path=/trunk/mcs/; revision=136601
2009-06-22 14:21:44 +00:00
Marek Safar f8be546146 2009-06-22 Marek Safar <[email protected]>
* expression.cs, cs-parser.jay, attribute.cs, codegen.cs: Named
	arguments grammar.


svn path=/trunk/mcs/; revision=136598
2009-06-22 13:52:33 +00:00
Marek Safar 2ce44cf2d6 2009-06-21 Marek Safar <[email protected]>
* Tuples.cs: Add Equals, GetHashCode.


svn path=/trunk/mcs/; revision=136596
2009-06-22 13:02:25 +00:00
Carlos Alberto Cortez eae6707fed 2009-06-22 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: When handling WM_CHAR, process the message first, and
	send it to the textbox only if it wasn't handled.
	Fixes #507459.


svn path=/trunk/mcs/; revision=136594
2009-06-22 12:56:26 +00:00
Marek Safar ac92d1a65e svn:eol-style
svn path=/trunk/mcs/; revision=136586
2009-06-22 11:38:21 +00:00
Gonzalo Paniagua Javier ef5b9248c9 2009-06-21 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: check for an aborted request in Begin* before
	proceeding. Fixes bug #511851.


svn path=/trunk/mcs/; revision=136574
2009-06-22 02:00:14 +00:00
Gonzalo Paniagua Javier f3f57ffb5d 2009-06-21 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: close the underlying socket if there's an
	exception when closing the stream. Fixes bug #514996.


svn path=/trunk/mcs/; revision=136572
2009-06-22 01:47:57 +00:00
Gert Driesen e9ff61a03b * HttpWebRequestTest.cs: Improved and enabled test for bug #510642.
* WebConnectionStream.cs: Keep count of all bytes written, and perform
write overflow check in both buffered and non-buffered writing (if
not using chunked transfer encoding). Fixes bug #510642.

svn path=/trunk/mcs/; revision=136570
2009-06-21 19:09:27 +00:00
Zoltan Varga 2f6c7d8077 2009-06-21 Zoltan Varga <[email protected]>
* tramp-ppc.c (mono_arch_patch_plt_entry): Implement this.

svn path=/trunk/mono/; revision=136569
2009-06-21 14:22:06 +00:00
Zoltan Varga da84626e5c 2009-06-21 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Sanitize the plt symbol too,
	not just the got symbol.

svn path=/trunk/mono/; revision=136568
2009-06-21 14:21:59 +00:00
Zoltan Varga 8cad9a58a9 2009-06-21 Zoltan Varga <[email protected]>
* IntPtr.cs (.ctor): Disable the check in the long ctor until we
	can figure out how to do it properly.

svn path=/trunk/mcs/; revision=136567
2009-06-21 13:41:49 +00:00
Zoltan Varga 3faaedad9d 2009-06-21 Zoltan Varga <[email protected]>
* mini-ppc.c aot-compiler.c unwind.c: Implement generation of unwind info
	on ppc.

svn path=/trunk/mono/; revision=136566
2009-06-21 01:11:28 +00:00
Zoltan Varga fc97bf275a Use TARGET_POWERPC instead of PPC.
svn path=/trunk/mono/; revision=136565
2009-06-21 00:19:44 +00:00
Zoltan Varga 057dd630fc 2009-06-21 Zoltan Varga <[email protected]>
* aot-compiler.c unwind.c: Add infrastructure for unwind support on
	ppc.

svn path=/trunk/mono/; revision=136564
2009-06-21 00:16:58 +00:00
Zoltan Varga dcb3d49d87 2009-06-21 Zoltan Varga <[email protected]>
* appdomain.c (mono_try_assembly_resolve): Don't call managed code when
	running in no-exec mode.

svn path=/trunk/mono/; revision=136563
2009-06-20 23:27:11 +00:00
Zoltan Varga 9fb25285a3 2009-06-21 Zoltan Varga <[email protected]>
* aot-compiler.c: Remove some fixmes.

svn path=/trunk/mono/; revision=136562
2009-06-20 23:23:28 +00:00
Zoltan Varga d269448e57 2009-06-21 Zoltan Varga <[email protected]>
* driver.c (mono_main): Print a helpful message when cross-compiling.

svn path=/trunk/mono/; revision=136561
2009-06-20 22:29:09 +00:00
Zoltan Varga 62ee661532 2009-06-21 Zoltan Varga <[email protected]>
* mini.c (mini_init): Disable signal handlers when cross-compiling.

svn path=/trunk/mono/; revision=136560
2009-06-20 22:25:23 +00:00
Zoltan Varga 7aa78f8186 2009-06-21 Zoltan Varga <[email protected]>
* method-to-ir.c (initialize_array_data): Do the optimization if the
	target byte order is little endian, instead of the host byte order.

svn path=/trunk/mono/; revision=136559
2009-06-20 22:19:16 +00:00
Zoltan Varga f0c1a9daad 2009-06-21 Zoltan Varga <[email protected]>
* configure.in (TARGET_BYTE_ORDER): New define containing the byte order of
	the target.

svn path=/trunk/mono/; revision=136558
2009-06-20 22:19:09 +00:00
Zoltan Varga 6a4485b4d7 2009-06-21 Zoltan Varga <[email protected]>
* aot-compiler.c: Emit sizes for most symbols, only emit runtime-invoke
	wrappers into the mscorlib image, Emit a unique plt symbol for each
	image, emit symbols for plt entries.

	* image-writer.c (img_writer_emit_symbol_size): New function to emit
	a .size directive.

svn path=/trunk/mono/; revision=136557
2009-06-20 22:05:48 +00:00
Zoltan Varga 6a3a4d1800 2009-06-20 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Avoid calling
	mono_marshal_get_type_info () since it can assert for some types.

	* method-to-ir.c (mono_method_to_ir): Disable aot when some forms of
	ldtoken are used inside wrappers.

svn path=/trunk/mono/; revision=136556
2009-06-20 21:49:43 +00:00
Zoltan Varga 88ba7144d3 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136555
2009-06-20 21:32:02 +00:00
Zoltan Varga 0e810e463b 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136554
2009-06-20 21:25:36 +00:00
Zoltan Varga 047cabb88a 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136553
2009-06-20 21:19:47 +00:00
Zoltan Varga 4efdd38b4d 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136552
2009-06-20 21:17:28 +00:00
Zoltan Varga bcb5152087 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136551
2009-06-20 21:05:16 +00:00
Zoltan Varga 9d5a01d6bf 2009-06-20 Zoltan Varga <[email protected]>
* IntPtr.cs (.ctor): Allow long values whose 31th bit is set.

svn path=/trunk/mcs/; revision=136550
2009-06-20 20:47:29 +00:00
Zoltan Varga 670bb4f4d0 2009-06-20 Zoltan Varga <[email protected]>
* atomic.h: Fix ilp32 support on ppc.

svn path=/trunk/mono/; revision=136549
2009-06-20 18:48:11 +00:00
Zoltan Varga 9a5d048d10 2009-06-20 Zoltan Varga <[email protected]>
* ppc/ppc-codegen.h: Fix the last change to avoid self-assignments inside
	macros.

svn path=/trunk/mono/; revision=136548
2009-06-20 18:47:03 +00:00
Gert Driesen e9891de02a * SocketResponder.cs: Made a little more robust.
svn path=/trunk/mcs/; revision=136546
2009-06-20 14:17:09 +00:00
Zoltan Varga 24702fba22 * mini-codegen.c: Remove definitions of OP_LOADR_MEMBASE/OP_STORER_MEMBASE
left in by mistake.

svn path=/trunk/mono/; revision=136545
2009-06-20 13:52:28 +00:00
Gert Driesen 2fc81bb034 * HttpListener2Test.cs: Added test for bug #513849.
* HttpWebRequestTest.cs: Enabled test for bug #508027. Added test for
bug #513087.
* WebClientTest.cs: Added test for bug #484795, for Encoding property.

svn path=/trunk/mcs/; revision=136544
2009-06-20 13:22:17 +00:00
Gert Driesen 6f8bd0b8a8 * WebClient.cs: Use lowercase hex bytes to match MS. Avoid using
zero-length string literal. Fixed exception argument name to match
MS.
* WebConnectionStream.cs: Throw a WebException that wraps an
IOException when closing the stream before all bytes are written.

svn path=/trunk/mcs/; revision=136543
2009-06-20 13:17:16 +00:00
Zoltan Varga 26f66b1159 2009-06-20 Zoltan Varga <[email protected]>
* helpers.c: Add support for prefixing tools with the arch name.

svn path=/trunk/mono/; revision=136542
2009-06-20 13:05:05 +00:00
Zoltan Varga fea4188330 2009-06-20 Zoltan Varga <[email protected]>
* mini.h (OP_LOADR_MEMBASE): New opcodes to load/store pointer sized
	quantities when using ilp32.

	* mini-codegen.c: Use OP_LOADR_MEMBASE/OP_STORER_MEMBASE for loading/storing
	spill slots. Use sizeof(mgreg_t) for the spill slot size.

	* image-writer.c: Use .long on ilp32.

	* aot-compiler.c: Use 32 bit loads on ilp32.

svn path=/trunk/mono/; revision=136541
2009-06-20 13:04:57 +00:00
Zoltan Varga 2fefe8320f 2009-06-20 Zoltan Varga <[email protected]>
* src/glib.h: Add GUINT32_FROM/TO_BE macros.

svn path=/trunk/mono/; revision=136540
2009-06-20 13:04:50 +00:00
Zoltan Varga cc73403e96 2009-06-20 Zoltan Varga <[email protected]>
* ppc/ppc-codegen.h: Add ppc_ldr/ppc_str macros to store regsize quantities.
	Handle little endian host platforms in ppc_emit32.

svn path=/trunk/mono/; revision=136539
2009-06-20 13:04:42 +00:00
Zoltan Varga 9c0c9bd2d4 2009-06-20 Zoltan Varga <[email protected]>
* tramp-ppc.c: Fix the calculation of the trampoline stack size now that
	we save all 31 registers.

svn path=/trunk/mono/; revision=136537
2009-06-19 23:54:28 +00:00
Zoltan Varga e187177c79 Revert "2009-06-20 Zoltan Varga <[email protected]>"
This reverts commit b51c762bc7dd2ea3ecdaec9ea8a7b499d785a7c8.

svn path=/trunk/mono/; revision=136536
2009-06-19 23:54:21 +00:00
Zoltan Varga b98445b8f8 2009-06-20 Zoltan Varga <[email protected]>
* tramp-ppc.c (STACK): Fix this since we now push 31 registers.

svn path=/trunk/mono/; revision=136535
2009-06-19 23:54:02 +00:00
Rodrigo Kumpera 1e33423208 Fix some typos on test description.
svn path=/trunk/mono/; revision=136534
2009-06-19 22:20:31 +00:00
Rodrigo Kumpera 0e507ccdc8 2009-06-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_method_table): Move header
	checking to verify_method_table_full.

	* metata-verify.c (mono_verifier_verify_full_table_data):
	Call verify_method_table_full.

svn path=/trunk/mono/; revision=136533
2009-06-19 22:20:22 +00:00
Rodrigo Kumpera 1d699d8e68 2009-06-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_field_table): Move signature
	checking to verify_field_table_full.

	* metata-verify.c (mono_verifier_verify_full_table_data):
	Call verify_field_table_full.

svn path=/trunk/mono/; revision=136532
2009-06-19 22:19:53 +00:00
Rodrigo Kumpera d9611ad498 2009-06-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Move remaining
	stuff to verify_typedef_table_full.

svn path=/trunk/mono/; revision=136531
2009-06-19 22:19:35 +00:00
Rodrigo Kumpera a9655d5a39 2009-06-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Kill is_corlib from VerifyContext.
	It is only used by the offline mode.
	So we better remove it from the runtime path.

svn path=/trunk/mono/; revision=136530
2009-06-19 22:19:20 +00:00
Rodrigo Kumpera 2867ac38a0 2009-06-19 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Fix a implmap-table test
	related to SupportLastError.

svn path=/trunk/mono/; revision=136529
2009-06-19 22:19:02 +00:00
Rodrigo Kumpera 94c44f0ad9 Fix typo in changelog
svn path=/trunk/mono/; revision=136528
2009-06-19 22:18:49 +00:00
Rodrigo Kumpera 257bcd00ac 2009-06-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add new mono_verifier_verify_full_table_data
	function that perform the offline metadata verification steps.

	* metadata-verify.c (verify_typedef_table): Move some checks to
	verify_typedef_table_full and make it been called by new function
	mono_verifier_verify_full_table_data.

	* pedump.c: Call mono_verifier_verify_full_table_data.

	* verify-internals.h: Export mono_verifier_verify_full_table_data as
	part of the internal API.

svn path=/trunk/mono/; revision=136527
2009-06-19 22:18:34 +00:00
Rodrigo Kumpera a4f0ed3227 2009-06-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (typedef_is_system_object): Fix System.Object
	check.

	* metadata-verify.c (verify_implmap_table): Fix implmap invalid
	flags bits. SupportLastError was confused as bit 7 instead of 6.

	* metadata-verify.c (verify_implmap_table): Fix import scope verication
	to check against the module ref table instead of module.

	* metadata-verify.c (verify_implmap_table): Fix corlib check.

	* pedump.c: Call mono_image_load_names.

svn path=/trunk/mono/; revision=136526
2009-06-19 22:18:18 +00:00
Rodrigo Kumpera 1553c69a4a 2009-06-19 Rodrigo Kumpera <[email protected]>
* image.c: Extract mono_image_load_names from do_mono_image_load.

	* metadata-internals.h: Export mono_image_load_names as part of
	the internal API.

svn path=/trunk/mono/; revision=136525
2009-06-19 22:17:57 +00:00
Jonathan Pryor 177c4d7469 * src/**/*, tests/**/*: Sync with DbLinq r1180. Gets unit tests into
a state (i.e. no release tests fail within NUnit), fixes several
	  bugs, massive code cleanup (#if removal), EntitySet<T> fixes,
	  removes some locale dependency issues, predicate building,
	  performance improvements, and likely more.  Remove src/VisualMetal;
	  it's no longer used.
	* Makefile (update-dblinq): Exclude more files so that there's less
	  "garbage" files to review on the next update.

svn path=/trunk/mcs/; revision=136523
2009-06-19 21:14:10 +00:00
Gonzalo Paniagua Javier 548ab41616 2009-06-19 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: make sure we don't open a new socket if the
	request is aborted before we establish the connection. Fixes bug
	#514591.

	* HttpWebRequest.cs: new property to return abort status. Invoke the
	abort handler before doing anything else when Abort() is called for
	the first time.


svn path=/trunk/mcs/; revision=136516
2009-06-19 20:20:35 +00:00
Zoltan Varga 572c5bc8be 2009-06-19 Zoltan Varga <[email protected]>
* tramp-ppc.c (mono_arch_create_trampoline_code): Fix the ppc build.

svn path=/trunk/mono/; revision=136505
2009-06-19 18:14:45 +00:00
Zoltan Varga 32ad86a648 2009-06-19 Zoltan Varga <[email protected]>
* mini-ops.h: Use TARGET_POWERPC define for consistency.

	* patch-info.h: Add 'MSCORLIB_GOT_ADDR' patch type.

	* aot-compiler.c aot-runtime.c: Put the mscorlib got address into the
	second got slot of every aot image.

	* aot-compiler.c aot-runtime.c mini-trampolines.c: Add support for
	aot on platforms with function pointers.

	* mini-ppc.h mini-ppp.c cpu-ppc.md exceptions-ppc.c tramp-ppc.c: Add
	support for aot/full aot on ppc/ppc64.

svn path=/trunk/mono/; revision=136504
2009-06-19 18:01:12 +00:00
Zoltan Varga 5a7df81c80 2009-06-19 Zoltan Varga <[email protected]>
* tramp-<ARCH>.c (mono_arch_patch_plt_entry): Add 'got' and 'regs'
	arguments which are needed on ppc.

	* tramp-arm.c (mono_arch_nullify_class_init_trampoline): Add 'regs'
	argument.

	* mini-trampolines.c aot-runtime.c: Update after the above changes.

svn path=/trunk/mono/; revision=136502
2009-06-19 17:52:40 +00:00
Massimiliano Mantione 60a3a4279f Removed debugging printf statement.
svn path=/trunk/mono/; revision=136500
2009-06-19 16:53:07 +00:00
Zoltan Varga a0bff8c5c1 2009-06-19 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_cleanup): Free the generic method cache
	first, as it could reference data in the other caches.

svn path=/trunk/mono/; revision=136499
2009-06-19 16:09:44 +00:00
Zoltan Varga fbe77305de 2009-06-19 Zoltan Varga <[email protected]>
* liveness.c (BITS_PER_CHUNK): Use MONO_BITSET_BITS_PER_CHUNK.

	* regalloc2.c (BITS_PER_CHUNK): Ditto.

svn path=/trunk/mono/; revision=136498
2009-06-19 15:37:53 +00:00
Zoltan Varga d13643c585 2009-06-19 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_got_info): Fix reading unused memory.

svn path=/trunk/mono/; revision=136496
2009-06-19 14:45:28 +00:00
Atsushi Eno 97d43a12a8 2008-06-19 Atsushi Enomoto <[email protected]>
* Normalization.cs :
	  - reverted the previous index calculation change. It was correctly
	    implemented and I rather broke it.
	  - fix index calculation on combining.
	  - NFKD was incorrectly directed to combining path. It should not.
	  - Simplify quick check.

	* StringTest.cs : Fix the previous test. It was expecting wrong
	  results. Added another NFC composition test.


svn path=/trunk/mcs/; revision=136474
2009-06-19 10:17:26 +00:00
Zoltan Varga e6b75b9f4e 2009-06-19 Zoltan Varga <[email protected]>
* ir-emit.h (alloc_dreg): Add a 'return -1' to quiet some compilers.

svn path=/trunk/mono/; revision=136451
2009-06-19 01:50:32 +00:00
Rodrigo Kumpera da826a217e 2009-06-18 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Last tests for method header.

svn path=/trunk/mono/; revision=136450
2009-06-19 01:47:42 +00:00
Rodrigo Kumpera 3529893255 2009-06-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Finished with method header verification.

svn path=/trunk/mono/; revision=136449
2009-06-19 01:47:33 +00:00
Massimiliano Mantione b73ecdebe8 Added assembly information to classes and wrapper flag to methods.
svn path=/trunk/mono/; revision=136445
2009-06-18 21:43:20 +00:00
Gonzalo Paniagua Javier db6c414cb6 new section in town
svn path=/trunk/mono/; revision=136441
2009-06-18 20:32:55 +00:00
Gonzalo Paniagua Javier 84c05c6666 new files
svn path=/trunk/mcs/; revision=136440
2009-06-18 20:32:19 +00:00
Gonzalo Paniagua Javier 664c12c8d8 2009-06-18 Gonzalo Paniagua Javier <[email protected]>
* IriParsingElement.cs:
	* UriSection.cs:
	* IdnElement.cs: new files that parse <uri> and subelements.


svn path=/trunk/mcs/; revision=136437
2009-06-18 20:31:47 +00:00
Gonzalo Paniagua Javier fb220f44e5 2009-06-18 Gonzalo Paniagua Javier <[email protected]>
* DateTime.cs: quick fix for the 1.x build.


svn path=/trunk/mcs/; revision=136432
2009-06-18 18:31:54 +00:00
Atsushi Eno 91e6a13f1b 2009-06-18 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : significant changes:
	  - simplified Open/Close async.
	  - implement OnAbort().
	  - create ServiceThrottle when it is null.
	  - Channels are accepted as much as the throttle allows, and
	    process requests when accepted an input (now it holds more than
	    one channel).
	  - Support ReceiveSynchronously and use Begin/EndAcceptChannel()
	    for async pattern.
	  - Close all channels and the listener when it is closed.
	  - Cosmetic simplification on channel acceptor delegate creation.


svn path=/trunk/mcs/; revision=136431
2009-06-18 18:22:23 +00:00
Gonzalo Paniagua Javier f95a1dbbf0 2009-06-18 Gonzalo Paniagua Javier <[email protected]>
* DateTimeTest.cs: add test for parsing a negative timezone.
	* DateTimeOffsetTest.cs: several tests for Parse.


svn path=/trunk/mcs/; revision=136428
2009-06-18 17:51:06 +00:00
Gonzalo Paniagua Javier 3d66f6eaff 2009-06-18 Gonzalo Paniagua Javier <[email protected]>
* AppDomainSetup.cs: update attribute.
	* TermInfoDriver.cs: ensure we are initialized in CheckWindowDimensions().
	* DateTimeOffset.cs: Implement Parse().
	* DateTime.cs: add 'zzz' to the list of default time formats. Return a
	DateTimeOffset from _DoParse. Fixed the offset minutes when the
	timezone is specified as a negative one.
	* Console.cs: updates for MoveBufferArea().
	* AppDomainManager.cs: implement EntryAssembly.
	* AppDomain.cs: update attribute.


svn path=/trunk/mcs/; revision=136426
2009-06-18 17:49:43 +00:00
Atsushi Eno 26e7cc7e0b 2009-06-18 Atsushi Enomoto <[email protected]>
* ChannelListenerBase_1.cs : added cancellation hook here too.
	  HttpChannelListener.cs : use above.
	  Do not allow parallel channel creation (this listener does not
	  allow more than one AcceptChannel().


svn path=/trunk/mcs/; revision=136425
2009-06-18 17:44:02 +00:00
Jonathan Pobst 90f82b729d 2009-06-18 Jonathan Pobst <[email protected]>
* ComboBox.cs: Only do my big sort at the end of AddRange if
	the combobox is actually set to Sorted.

svn path=/trunk/mcs/; revision=136423
2009-06-18 16:39:35 +00:00
Carlos Alberto Cortez d2bfe062d2 2009-06-18 Tom Hindle <[email protected]>
* XplatUIX11.cs: Enabled Text to coexist with custom data formats.
	Fixes #511849.


svn path=/trunk/mcs/; revision=136422
2009-06-18 16:34:59 +00:00
Atsushi Eno 29d6585f14 2009-06-18 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs, HttpReplyChannel.cs :
	  Add cancellation hook for async TryReceiveRequest.


svn path=/trunk/mcs/; revision=136407
2009-06-18 14:16:07 +00:00
Atsushi Eno 8a843924f5 2009-06-18 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs, HttpListenerManager.cs :
	  slightly improved BuildChannelListener().
	  Implement OnAbort() and differentiate it from OnClose().


svn path=/trunk/mcs/; revision=136406
2009-06-18 14:09:07 +00:00
Atsushi Eno 02f37acb53 2009-06-18 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : remove NIE stubs.


svn path=/trunk/mcs/; revision=136404
2009-06-18 12:52:55 +00:00
Atsushi Eno 93bf74e8a3 2009-06-18 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs : simple async delegate calls here too.


svn path=/trunk/mcs/; revision=136402
2009-06-18 11:57:49 +00:00
Carlos Alberto Cortez 01ca9db599 2009-06-18 Carlos Alberto Cortez <[email protected]>
* ListBox.cs: When calculating the scrollbars for non MultiColumn
	mode, force the use of the horizontal scrollbar only if
	ScrollAlwaysVisible is true as well.
	Fixes #513029.


svn path=/trunk/mcs/; revision=136399
2009-06-18 11:48:59 +00:00
Marek Habersack b67b99a9fd Another browscap.ini.diff update
svn path=/trunk/mcs/; revision=136394
2009-06-18 11:15:18 +00:00
Marek Habersack 8bd1522c63 2009-06-18 Marek Habersack <[email protected]>
* data/browscap.ini: applied Mono modifications to the upstream
	version. Fixes three tests failing in System.Web. Fixes bug #513965
	Added ecmascriptversion, msdomversion and w3cdomversion to the IE
	8.0 entry. Fixes bug #513965

svn path=/trunk/mono/; revision=136393
2009-06-18 11:12:26 +00:00
Marek Habersack 1892bdd0d2 2009-06-18 Marek Habersack <[email protected]>
* data/browscap.ini: applied Mono modifications to the upstream
	version. Fixes three tests failing in System.Web.

svn path=/trunk/mono/; revision=136392
2009-06-18 11:04:45 +00:00
Marek Habersack 7685e019c2 Added Test/ModelProviders/DynamicDataSortableAttribute.cs
svn path=/trunk/mcs/; revision=136387
2009-06-18 09:21:14 +00:00
Marek Habersack 84040b65ab 2009-06-18 Marek Habersack <[email protected]>
* MetaColumnTest.cs: added test for SortExpression

2009-06-18  Marek Habersack  <[email protected]>

	* DynamicDataContainerColumnProvider.cs: added setting of
	IsSortable

2009-06-18  Marek Habersack  <[email protected]>

	* Test/DataSource/DynamicDataColumn.cs: added Sortable property.

2009-06-18  Marek Habersack  <[email protected]>

	* TestDataColumn.cs: mark the column as sortable based on value of
	the DynamicDataSortable attribute.

	* Baz.cs: added a sortable column.

svn path=/trunk/mcs/; revision=136386
2009-06-18 09:21:04 +00:00
Marek Habersack 649e0eb752 2009-06-18 Marek Habersack <[email protected]>
* UnsafeNativeMethods.cs: added import of the old sqlite3_open
	function to make code compatible with sqlite3 versions older than
	3.5.0

	* SQLite3.cs: added a workaround for systems which come with
	sqlite3 older than 3.5.0 (which added new call sqlite3_open_v2,
	used in this version of Mono.Data.Sqlite). If this function is not
	found in the native shared library, the old sqlite3_open is used
	as fallback.

svn path=/trunk/mcs/; revision=136384
2009-06-18 08:48:16 +00:00
Marek Habersack 8553b393d0 2009-06-18 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: added comparison with the
	.NET-generated serialization result in TestDeserialize and
	TestDeserializeTypeResolver tests.

2009-06-18  Marek Habersack  <[email protected]>

	* ListViewTest.cs: hushed the output in ListView_Edit ()

svn path=/trunk/mcs/; revision=136383
2009-06-18 08:35:50 +00:00
Marek Habersack 38a1145d2d 2009-06-18 Marek Habersack <[email protected]>
* browscap.ini.diff: updated to match the latest upstream
	version.

svn path=/trunk/mcs/; revision=136382
2009-06-18 08:35:39 +00:00
Rodrigo Kumpera ff24243a18 2009-06-18 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for method header.

	* assembly-with-methods.cs: Fill in more methods
	with EH tables.

svn path=/trunk/mono/; revision=136372
2009-06-18 03:14:56 +00:00
Rodrigo Kumpera 19b25e081a 2009-06-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Added more header verification code.
	Now only EH clauses are missing.

svn path=/trunk/mono/; revision=136371
2009-06-18 03:14:43 +00:00
Geoff Norton 05bb2bb469 2009-06-17 Geoff Norton <[email protected]>
* aot-compiler.c: Ensure we dont try to close a null dwarf writer.

svn path=/trunk/mono/; revision=136367
2009-06-18 02:23:14 +00:00
Jonathan Pobst 86afac79d2 2009-06-17 Jonathan Pobst <[email protected]>
* ComboBox.cs: When using AddRange on a sorted combobox, don't
	try to use our inefficient sorted insert method, just append
	it and sort the whole thing at then end.
	[Fixes bug #511247]

svn path=/trunk/mcs/; revision=136358
2009-06-17 21:27:10 +00:00
Zoltan Varga 2fd570b20e 2009-06-17 Zoltan Varga <[email protected]>
* dwarfwriter.c (mono_dwarf_writer_create): Add an 'appending' parameter
	to control whenever the dwarf writer is in xdebug or aot mode.
	(emit_class_dwarf_info): Use a separate abbrev for structures without
	children.

	* aot-compiler.c: Pass the appending parameter to
	mono_dwarf_writer_create ().

svn path=/trunk/mono/; revision=136353
2009-06-17 21:13:52 +00:00
Massimiliano Mantione 58463ff3a4 Only emit initial stack snippet if we are tracking stacks.
svn path=/trunk/mono/; revision=136350
2009-06-17 20:01:56 +00:00
Marek Safar 08066c573d Add more tests.
svn path=/trunk/mcs/; revision=136345
2009-06-17 18:58:34 +00:00
Marek Safar 0c2bb8157f 2009-06-17 Marek Safar <[email protected]>
A fix for bug #514096
	* class.cs: Allow IntPtr/UIntPtr fields to be volatile.


svn path=/trunk/mcs/; revision=136342
2009-06-17 18:57:33 +00:00
Sebastien Pouliot f77c706aeb 2009-06-17 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: Fix BaseAddress and remove dual base[Address|
	String] variables.


svn path=/trunk/mcs/; revision=136341
2009-06-17 18:47:44 +00:00
Marek Safar 07585e2bdf Error message updated
svn path=/trunk/mcs/; revision=136340
2009-06-17 18:47:36 +00:00
Marek Safar eb418142df 2009-06-17 Marek Safar <[email protected]>
* statement.cs (Switch): Fixed error message to reflect 2.0 changes.


svn path=/trunk/mcs/; revision=136339
2009-06-17 18:47:16 +00:00
Marek Safar 64cfafb7e9 2009-06-17 Marek Safar <[email protected]>
* Makefile: Keep at least one target usable for me.


svn path=/trunk/mcs/; revision=136337
2009-06-17 18:16:52 +00:00
Marek Safar d127b29339 New tests.
svn path=/trunk/mcs/; revision=136336
2009-06-17 18:15:19 +00:00
Marek Safar e2078b6a8b 2009-06-17 Marek Safar <[email protected]>
* expression.cs: The first multi-dimensional array nested array
	initializers was not checked.


svn path=/trunk/mcs/; revision=136335
2009-06-17 18:14:44 +00:00
Gonzalo Paniagua Javier 27663f0d80 2009-06-17 Gonzalo Paniagua Javier <[email protected]>
* BrowserCapsUpdater.cs: update URLs.


svn path=/trunk/mcs/; revision=136324
2009-06-17 15:36:05 +00:00
Gonzalo Paniagua Javier 44c7c6ec64 2009-06-17 Gonzalo Paniagua Javier <[email protected]>
* EndPointListener.cs: call CheckIfRemove() after removing a regular
	prefix. Fixes bug #513849.
	* EndPointManager.cs: make sure we use the right lock when one prefix
	of a collection fails to be added and we need to remove all of the
	prefixes.
	Clear the ip_to_endpoints hashtable if there are no more prefixes
	listening on that address.


svn path=/trunk/mcs/; revision=136320
2009-06-17 15:24:03 +00:00
Gonzalo Paniagua Javier c6ac636350 updated browscap.ini
svn path=/trunk/mono/; revision=136317
2009-06-17 15:03:23 +00:00
Marek Safar e7299fda56 New tests.
svn path=/trunk/mcs/; revision=136315
2009-06-17 14:57:59 +00:00
Marek Safar 484d2078d4 2009-06-17 Marek Safar <[email protected]>
A fix for bug #513400
	* nullable.cs (EmitEquality): Operands emit could be simplified for
	built-in types when we now emit user operators differently.
	

svn path=/trunk/mcs/; revision=136314
2009-06-17 14:49:23 +00:00
Zoltan Varga 8858f65fc0 2009-06-17 Zoltan Varga <[email protected]>
* runtime-invoke.cs: Add test for sharing i8/u8 return values.

svn path=/trunk/mono/; revision=136307
2009-06-17 14:23:23 +00:00
Zoltan Varga 1ad6ecd871 2009-06-17 Zoltan Varga <[email protected]>
* marshal.c (get_runtime_invoke_type): Don't share primitive types
	for return values.

svn path=/trunk/mono/; revision=136306
2009-06-17 14:23:16 +00:00
Zoltan Varga a4624664c7 2009-06-17 Zoltan Varga <[email protected]>
* branch-opts.c (mono_merge_basic_blocks): Fix the case when bbn
	falls through to its next bblock. Fixes #513931.

	* iltests.il: Add a test.

svn path=/trunk/mono/; revision=136303
2009-06-17 13:49:24 +00:00
Geoff Norton 4881e6bfb4 2009-06-16 Geoff Norton <[email protected]>
* include/private/gcconfig.h:  Disable static scanning on this platform
        * misc.c: Enable platform-specific disabling of static scanning

svn path=/trunk/mono/; revision=136280
2009-06-17 01:13:07 +00:00
Marek Habersack efcfa151e4 2009-06-17 Marek Habersack <[email protected]>
* MetaColumnTest.cs: added another data context.
    	Added tests for EntityTypeProperty, HtmlEncode, IsBinaryData,
    	IsCustomProperty, IsFloatingPoint, IsForeignKeyComponent,
    	IsGenerated, IsInteger, IsLongString, IsPrimaryKey, IsReadOnly,
    	IsString, MaxLength, Model, Name, NullDisplayText, Provider,
    	RequiredErrorMessage, Scaffold, Table, TypeCode, UIHint.

    2009-06-17  Marek Habersack  <[email protected]>

    	* DynamicDataStringLengthAttribute.cs: added

    	* DynamicDataContainerColumnProvider.cs: implemented
    	EntityTypeProperty, IsCustomProperty, IsGenerated, MaxLength.

    2009-06-17  Marek Habersack  <[email protected]>

    	* MetaTable.cs: fixed Scaffold implementation.
    	Added internal ScaffoldAllTables property.

    	* MetaColumn.cs: fixed TypeCode, MaxLength, Scaffold, UIHint
    	implementations.
    	Implemented IsLongString, IsBinaryData, IsReadOnly,
    	NullDisplayText, RequiredErrorMessage

    2009-06-17  Marek Habersack  <[email protected]>

    	* System.Web.DynamicData_test.dll.sources: added
    	Common/FooNoScaffold.cs, Common/TestDataContext2.cs,
    	ModelProviders/DynamicDataStringLengthAttribute.cs

    2009-06-15  Marek Habersack  <[email protected]>

    	* MetaColumnTest.cs: added

    2009-06-15  Marek Habersack  <[email protected]>

    	* TestDataContext.cs: added new tables

    	* BazColumnAttributes.cs, BazDataTypeDefaultTypes.cs,
    	FooWithMetadataType.cs: added

    2009-06-15  Marek Habersack  <[email protected]>

    	* MetaColumn.cs: implemented ApplyFormatInEditMode, Attributes,
    	ConvertEmptyStringToNull, DataFormatString, DataTypeAttribute,
    	DefaultValue, Description, DisplayName

    2009-06-15  Marek Habersack  <[email protected]>

    	* MetaTable.cs: use MetaModel.GetTypeDescriptor to retrieve
    	associated entity type attributes.

    	* MetaModel.cs: implemented registration of type metadata
    	cache. Metadata is provided by a set of TypeDescriptionProvider
    	instances (if ContextConfig is present for given model provider)
    	or by default type description provider (note that this
    	functionality is not implemented in
    	System.ComponentModel.TypeDescriptor yet!).

svn path=/trunk/mcs/; revision=136272
2009-06-17 00:08:11 +00:00
Rodrigo Kumpera af4f5a4908 2009-06-16 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for method header.

	* assembly-with-methods.cs: Add some body to
	make for some fat headers.

svn path=/trunk/mono/; revision=136268
2009-06-16 23:08:25 +00:00
Rodrigo Kumpera 7c37df6008 2009-06-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Initial method header verification.

svn path=/trunk/mono/; revision=136267
2009-06-16 23:08:16 +00:00
Rodrigo Kumpera 0e92d2d781 2009-06-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_import_table): The IAT contents
	might end been patched by the windows DL when running with
	coree enabled.

svn path=/trunk/mono/; revision=136266
2009-06-16 23:08:01 +00:00
Zoltan Varga e467a77c94 2009-06-17 Zoltan Varga <[email protected]>
* dwarfwriter.c (mono_dwarf_writer_emit_base_info): Emit some line number
	infor even if emit_line is FALSE, as the apple linker seems to require it.

svn path=/trunk/mono/; revision=136265
2009-06-16 23:04:20 +00:00
Zoltan Varga d4a5c94aa6 2009-06-17 Zoltan Varga <[email protected]>
* image-writer.c (asm_writer_emit_symbol_diff): Call get_label ().

svn path=/trunk/mono/; revision=136264
2009-06-16 22:42:49 +00:00
Zoltan Varga 4b8ae8581f 2009-06-17 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_cie): Emit a separate symbol for the cie start, as
	gcc does.
	(emit_fde): Ditto.

svn path=/trunk/mono/; revision=136263
2009-06-16 22:32:23 +00:00
Gonzalo Paniagua Javier 96d75514d1 typo
svn path=/trunk/mono/; revision=136261
2009-06-16 22:17:04 +00:00
Miguel de Icaza 48b2136fd5 Up
svn path=/trunk/mono/; revision=136248
2009-06-16 20:02:47 +00:00
Andrés G. Aragoneses df51563624 * tuner/Mono.Tuner/MoonlightA11yProcessor.cs: GLibSharp uses
Activator.CreateInstance for *Adapter classes, so we need to have an
exception here for these ctors (to avoid MissingMethodExceptions).

svn path=/trunk/mcs/; revision=136245
2009-06-16 19:32:00 +00:00
Marek Safar 58a9543935 New test.
svn path=/trunk/mcs/; revision=136244
2009-06-16 19:27:35 +00:00
Marek Safar 4d3ef7ffae 2009-06-16 Marek Safar <[email protected]>
* ecore.cs: Report inaccessible delegate methods correctly.


svn path=/trunk/mcs/; revision=136243
2009-06-16 19:27:15 +00:00
Marek Safar 4dfa6d0c73 New tests.
svn path=/trunk/mcs/; revision=136236
2009-06-16 17:42:16 +00:00
Marek Safar f6fdbdb337 New tests.
svn path=/trunk/mcs/; revision=136235
2009-06-16 17:41:32 +00:00
Marek Safar a5f6fb9ca2 2009-06-16 Marek Safar <[email protected]>
* parameter.cs, expression.cs, ecore.cs, class.cs, delegate.cs,
	cs-parser.jay: Implemented C# 4.0 optional parameters.


svn path=/trunk/mcs/; revision=136234
2009-06-16 17:41:06 +00:00
Marek Safar f4cdf905db 2009-06-16 Marek Safar <[email protected]>
* driver.cs: Removed broken DefineManifestResource.


svn path=/trunk/mcs/; revision=136233
2009-06-16 17:21:16 +00:00
Raja R Harinath 0efe0d5294 Improve profile test coverage
* errors/Makefile (test-local): Empty out.
(run-test-local): Remove $(TEST_SUPPORT_FILES).
* tests/Makefile (test-local): Empty out.

svn path=/trunk/mcs/; revision=136231
2009-06-16 17:08:30 +00:00
Raja R Harinath 8075bec6b7 * Makefile [net_2_0_bootstrap]: Don't explicitly mention net_1_1.
Use $(BOOTSTRAP_PROFILE) instead.

svn path=/trunk/mcs/; revision=136230
2009-06-16 16:21:39 +00:00
Raja R Harinath 3fe2af257d * configure.in (--with-profile2): Simplify slightly.
(--with-profile4, --with-moonlight): Likewise.

svn path=/trunk/mono/; revision=136229
2009-06-16 16:16:50 +00:00
Carlos Alberto Cortez b9d41b0288 2009-06-16 Carlos Alberto Cortez <[email protected]>
* ToolBar.cs: Expose as internal the code used to show a dropdown menu.
	* PrintPreviewDialog.cs: Handle the down/up arrow keys for our
	DropDown element.
	Fixes #509152.


svn path=/trunk/mcs/; revision=136225
2009-06-16 15:15:29 +00:00
Marek Habersack 9743d97ec8 2009-06-16 Marek Habersack <[email protected]>
* RouteValueDictionaryExtensions.cs: do not compile if
	SYSTEMCORE_DEP is not defined

	* PatternParser.cs: if SYSTEMCORE_DEP is not defined, do not
	compile parts which require RouteValueDictionaryExtensions.

2009-06-16  Marek Habersack  <[email protected]>

	* Makefile (LIB_MCS_FLAGS): define SYSTEMCORE_DEP

2009-06-16  Marek Habersack  <[email protected]>

	* DynamicDataManager.cs, DynamicDataExtensions.cs: use new
	DataBoundControl.DataSourceObject instead of
	InternalGetDataSource

2009-06-16  Marek Habersack  <[email protected]>

	* Makefile: warn if the 4.0 assembly is compiled without
	System.Core

svn path=/trunk/mcs/; revision=136222
2009-06-16 13:48:30 +00:00
Atsushi Eno 91c8ac7b5c 2009-06-16 Atsushi Enomoto <[email protected]>
* DispatchRuntimeTest.cs : add reasonable timeout and close client
	  appropriately. Objects are disposed in different ways than .NET.
	  Do not expect things automatically disposed as just time goes by.


svn path=/trunk/mcs/; revision=136221
2009-06-16 13:34:26 +00:00
Atsushi Eno 36465d4ee2 2009-06-16 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs : cosmetic dependency reduction on listener.


svn path=/trunk/mcs/; revision=136220
2009-06-16 13:31:15 +00:00
Atsushi Eno 13cb841a01 2009-06-16 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : cosometic simplification.


svn path=/trunk/mcs/; revision=136219
2009-06-16 13:30:06 +00:00
Atsushi Eno 76a2d59775 2009-06-16 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : Fixed timeout handling. It was causing
	  infinite block in 2.0 profile.


svn path=/trunk/mcs/; revision=136218
2009-06-16 13:28:10 +00:00
Marek Safar 2af5e06322 2009-06-16 Marek Safar <[email protected]>
* driver.cs: Close resource handlers.


svn path=/trunk/mcs/; revision=136205
2009-06-16 08:23:50 +00:00
Andrés G. Aragoneses aa75a48a07 2009-06-16 Andrés G. Aragoneses <[email protected]>
* WebConnection.cs: propagate the exception to the request.    
        * WebException.cs: new internal ctor.
        * HttpWebRequest.cs: use new ctor to encapsulate the innerException.
        Fixes #323452.

2009-06-16  Andrés G. Aragoneses  <[email protected]>

        * WebRequestTest.cs: Drop NotWorking attrib, more accurate tests.


svn path=/trunk/mcs/; revision=136198
2009-06-16 04:21:58 +00:00
Ivan Zlatev 677f6012db 2009-06-16 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Scrolling fixes.
	[Fixes bug #512816]

svn path=/trunk/mcs/; revision=136193
2009-06-16 01:55:25 +00:00
Marek Habersack 2ad931f695 2009-06-16 Marek Habersack <[email protected]>
* HtmlHeadBuilder.cs: use faster String.Compare overloads.

	* HtmlHead.cs: implemented 4.0 properties Description and
	Keywords.

2009-06-16  Marek Habersack  <[email protected]>

	* IPersistedSelector.cs: removed AspNetHostingPermission
	attributes from the 4.0 profile.

	* IDataBoundControl.cs, IDataBoundItemControl.cs,
	IDataBoundListControl.cs, IFieldControl.cs: added

	* DetailsView.cs: control implements 4.0 IDataBoundItemControl
	interface.

	* DataBoundControl.cs: implemented 4.0 property DataSourceObject
	and made the InternalPerformDataBinding method internal for the
	4.0 profile.

2009-06-16  Marek Habersack  <[email protected]>

	* net_4_0_System.Web.dll.sources:
	Added
	System.Web.UI.WebControls/IDataBoundControl.cs,
	System.Web.UI.WebControls/IDataBoundItemControl.cs,
	System.Web.UI.WebControls/IDataBoundListControl.cs,,
	System.Web.UI.WebControls/IFieldControl.cs

svn path=/trunk/mcs/; revision=136192
2009-06-16 01:46:33 +00:00
Marek Habersack 1e9b3c88e0 2009-06-16 Marek Habersack <[email protected]>
* net_4_0_System.Web.dll.sources:
	Added System.Web.Routing/PageRouteHandler.cs

2009-06-16  Marek Habersack  <[email protected]>

	* PageRouteHandler.cs: added

svn path=/trunk/mcs/; revision=136187
2009-06-16 00:15:48 +00:00
Ivan Zlatev ffacdb06e9 2009-06-16 Ivan N. Zlatev <[email protected]>
* DataGridViewTest.cs: Duplicate test label fix.

svn path=/trunk/mcs/; revision=136186
2009-06-15 23:58:56 +00:00
Ivan Zlatev 3678383565 2009-06-16 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and
	optimize for batch adding rows.

svn path=/trunk/mcs/; revision=136185
2009-06-15 23:58:48 +00:00
Ivan Zlatev 3b48d6d3bd 2009-06-16 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Avoid calling ReBind twice during the initial data
	binding.
	[Fixes bug #512807]

svn path=/trunk/mcs/; revision=136184
2009-06-15 23:58:31 +00:00
Ivan Zlatev c24fdfcd31 2009-06-16 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Suppress invalidation during data binding.
	[Fixes part of bug #512807]

svn path=/trunk/mcs/; revision=136183
2009-06-15 23:57:51 +00:00
Marek Habersack c3de939907 2009-06-16 Marek Habersack <[email protected]>
* net_4_0_System.Web.Routing.dll.sources: added. In the 4.0
	profile all classes are compiled into System.Web,
	System.Web.Routing becomes an empty assembly.

2009-06-16  Marek Habersack  <[email protected]>

	* net_4_0_System.Web.Abstractions.dll.sources: added. In the 4.0
	profile all classes are compiled into System.Web,
	System.Web.Abstractions becomes an empty assembly.

2009-06-16  Marek Habersack  <[email protected]>

	* Decorated all classes with the TypeForwardedFrom attribute for
	the 4.0 profile.

2009-06-16  Marek Habersack  <[email protected]>

	* Decorated all classes with the TypeForwardedFrom attribute for
	the 4.0 profile.

2009-06-16  Marek Habersack  <[email protected]>

	* net_4_0_System.Web.dll.sources: added. System.Web.Routing and
	System.Web.Abstractions are part of System.Web.dll in the 4.0
	profile.

svn path=/trunk/mcs/; revision=136182
2009-06-15 23:57:37 +00:00
Zoltan Varga 8a589623e4 2009-06-16 Zoltan Varga <[email protected]>
* StringTest.cs: Fix make check.

svn path=/trunk/mcs/; revision=136177
2009-06-15 22:36:55 +00:00
Robert Jordan 55bb3a5122 2009-06-14 Robert Jordan <[email protected]>
* ScriptHandlerFactory.cs: handle precompiled web services.


svn path=/trunk/mcs/; revision=136163
2009-06-15 20:34:46 +00:00
Miguel de Icaza c4aa103e48 2009-06-15 Miguel de Icaza <[email protected]>
* configure.in: Changed the default to not build the 4.0 profile
	unless explicitly enabled.

svn path=/trunk/mono/; revision=136155
2009-06-15 19:27:36 +00:00
Carlos Alberto Cortez dcedf446a9 2009-06-15 Carlos Alberto Cortez <[email protected]>
* PrintPreviewDialog.cs: Tune the navigation among the buttons and
	controls that are part of our ToolBar, so we can mimic the behaviour
	observed in .Net, by handling also the arrow keys and doing the
	preprocess for them too.
	Fixes the remaining bits of #509142.


svn path=/trunk/mcs/; revision=136143
2009-06-15 17:41:45 +00:00
Miguel de Icaza 387c82113c 2009-06-15 Miguel de Icaza <[email protected]>
* MonoTODOAttribute.cs: Thin diet, no point in having virtual
	methods and overrides that do the same thing.

svn path=/trunk/mcs/; revision=136139
2009-06-15 16:21:08 +00:00
Gonzalo Paniagua Javier 9e79c42076 2009-06-15 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: for unknown methods, always send the request once
	we are connected even if there's no writeStream. Fixes bug #513087.


svn path=/trunk/mcs/; revision=136136
2009-06-15 15:37:55 +00:00
Rodrigo Kumpera 59dfb9a649 2009-06-15 Rodrigo Kumpera <[email protected]>
* load-exceptions.cs class.cs: Add regression test for #508487.

	* t-missing.cs: Add nested type.

svn path=/trunk/mono/; revision=136135
2009-06-15 15:25:08 +00:00
Rodrigo Kumpera 495f5d04f9 2009-06-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_from_typeref): If the enclosing type is not
	found return null instead of crashing. Fixes #508487.

svn path=/trunk/mono/; revision=136134
2009-06-15 15:24:59 +00:00
Atsushi Eno 440ba3208d 2009-06-15 Atsushi Enomoto <[email protected]>
* ReaderWriterLockSlim.cs : fix deadlock when entered
          read lock -> entered writer lock -> exited writer lock
          -> exited read lock and then entered reader lock.
          Fixed bug #512485, patch by Kazuki Oikawa.

        * ReaderWriterLockSlimTest.cs : test for bug #512485, by
          Kazuki Oikawa.


svn path=/trunk/mcs/; revision=136109
2009-06-15 10:27:41 +00:00
Zoltan Varga 5d0486fb4a 2009-06-15 Zoltan Varga <[email protected]>
* CMakeLists.txt: Add mips support.

svn path=/trunk/mono/; revision=136104
2009-06-15 09:38:18 +00:00
Zoltan Varga 6acca860c1 2009-06-15 Zoltan Varga <[email protected]>
* gc_wrapper.h: Disable thread local alloc on mips.

svn path=/trunk/mono/; revision=136103
2009-06-15 09:29:01 +00:00
Zoltan Varga a37636424a 2009-06-15 Zoltan Varga <[email protected]>
* exceptions-mips.c (mono_arch_get_throw_exception_by_name): Fix the
	mips build.

svn path=/trunk/mono/; revision=136102
2009-06-15 09:28:29 +00:00
Atsushi Eno 85b8e6cb11 2009-06-15 Atsushi Enomoto <[email protected]>
* Environment.cs : bump corlib version.

	* Normalization.cs : For NFC and NFKC, IsNormalized() was not working
	  enough to check composed characters. It's not possible without
	  the actual composition, so just call Normalize() and compare them.
	  In Normalize() mapping helper didn't pick correct map index since
	  the table for index stores index for "uncompressed" numbers.
	* NormalizationTableUtil.cs : updated to the latest UCD.
	* Makefile : to build test, source file must be downloaded too.

	* StringTest.cs : added string normalization test.


svn path=/trunk/mcs/; revision=136100
2009-06-15 08:57:18 +00:00
Atsushi Eno 0191763182 2009-06-15 Atsushi Enomoto <[email protected]>
* normalization-tables.h : updated to the latest unicode charcter
	  data.
	* appdomain.c : bump corlib version.


svn path=/trunk/mono/; revision=136099
2009-06-15 08:56:09 +00:00
Marek Habersack 1fb905ec9d 2009-06-15 Marek Habersack <[email protected]>
* AspGenerator.cs: CreateRootBuilder quits when root builder
	already exist. This can happen when recursively parsing an include
	file. Fixes bug #512028

svn path=/trunk/mcs/; revision=136096
2009-06-15 08:28:44 +00:00
Marek Habersack 1d21e73850 2009-06-15 Marek Habersack <[email protected]>
* HttpCachePolicy.cs: SetHeaders adds max-age when MaxAge is set
	to TimeSpan.Zero by calling SetMaxAge. Fixes bug #513000

svn path=/trunk/mcs/; revision=136093
2009-06-15 08:02:03 +00:00
Marek Habersack 563da7386f 2009-06-15 Marek Habersack <[email protected]>
* TemplateParser.cs: AddAssembliesInBin (1.1 profile) tries to
	load every assembly in order to see if it's a valid one. All bad
	dll image errors are silently ignored. Fixes bug #315816

svn path=/trunk/mcs/; revision=136089
2009-06-15 07:28:44 +00:00
Zoltan Varga f498394925 2009-06-14 Zoltan Varga <[email protected]>
* scripts/CMakeLists.txt: New file.

svn path=/trunk/mono/; revision=136081
2009-06-14 17:02:28 +00:00
Zoltan Varga 76a7dbe0ee 2009-06-14 Zoltan Varga <[email protected]>
* samples/CMakeLists.txt: New file, currently empty.

svn path=/trunk/mono/; revision=136079
2009-06-14 15:31:54 +00:00
Zoltan Varga 5e7b2478a9 2009-06-14 Zoltan Varga <[email protected]>
* class.c (mono_class_from_name): Fix support for assembly references
	in the EXPORTEDTYPE table. Fixes #511704.

svn path=/trunk/mono/; revision=136078
2009-06-14 11:42:12 +00:00
Geoff Norton 1e09edf150 2009-06-13 Geoff Norton <[email protected]>
* domain.c: Ensure that mono_domain_assembly_open actually opens the
        assembly in the target domain.

svn path=/trunk/mono/; revision=136068
2009-06-13 17:01:09 +00:00
Zoltan Varga 9bc4055673 2009-06-13 Zoltan Varga <[email protected]>
* mini.h (struct MonoBasicBlock): Add 'has_jump_table' and
	'has_call_handler' fields.

	* method-to-ir.c (mono_method_to_ir): Set them if needed.

	* branch-opts.c (mono_merge_basic_blocks): Avoid iterating through the
	first bblock if not needed. Fixes #512790.

svn path=/trunk/mono/; revision=136063
2009-06-13 10:52:48 +00:00
Bill Holmes 9e3a325d75 2009-06-12 Bill Holmes <[email protected]>
* Variant.cs (GetValue):  Changing the bool case to use the short value.
	  This is to avoid junk in the high word.

	Contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=136044
2009-06-12 21:28:26 +00:00
Andreia Gaita 5d4cb6c935 * config.in: add libcups dllmap entry
svn path=/trunk/mono/; revision=136039
2009-06-12 21:25:43 +00:00
Robert Jordan c7ab76d04d 2009-06-12 Robert Jordan <[email protected]>
* cominterop.c (cominterop_get_ccw): Increment mspec's SizeParamIndex
	because "this" of the managed signature has become an
	ordinary parameter in the unmanaged signature.


svn path=/trunk/mono/; revision=136029
2009-06-12 20:41:58 +00:00
Andrés G. Aragoneses 8a0f12baf5 2009-06-12 Andrés G. Aragoneses <[email protected]>
* AssemblyInfo.cs: Changing the public key, as we now use 
        mono-uia.snk.


svn path=/trunk/mcs/; revision=136025
2009-06-12 18:57:02 +00:00
Carlos Alberto Cortez 76e696b3e7 2009-06-12 Carlos Alberto Cortez <[email protected]>
* ToolBar.cs: Expose the current item as internal.
	* PrintPreviewDialog.cs: Tune the TabStop property for
	PrintPreviewControl/ToolBar so we match the .net scenario regarding
	Tab navigation. Also implement support to navigate throughout the
	items in the ToolBar.
	Fixes #509142.


svn path=/trunk/mcs/; revision=136020
2009-06-12 18:06:34 +00:00
Jerri Maine 6f61639d77 Add marcos for coding two byte SIMD/SSE opcodes. Added comments to help tell the different types of SSE code gen marcos appart.
svn path=/trunk/mono/; revision=136018
2009-06-12 17:33:11 +00:00
Atsushi Eno 795d81a430 2009-06-12 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs : no need for NIE at OnAbort() (at least so far).


svn path=/trunk/mcs/; revision=136007
2009-06-12 15:10:15 +00:00
Ankit Jain 0f3c1ba10e * xbuild/Microsoft.Common.targets (ProjectDir): Fix typo.
svn path=/trunk/mcs/; revision=136002
2009-06-12 14:43:29 +00:00
Ankit Jain 1e3a5c3ef6 * xbuild/Microsoft.Common.targets (IntermediateAssembly): Change to
an Item list to match msbuild.
* xbuild/Microsoft.CSharp.targets (IntermediateAssembly): Update for
above changes.

svn path=/trunk/mcs/; revision=136001
2009-06-12 14:04:53 +00:00
Ankit Jain 6cd0309d85 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Fix bug #512535.
	* ExpressionCollection.cs (ConvertToITaskItemArray): Whitespace around a
	itemref is allowed if the prev/next element is ";".

In class/Microsoft.Build.Engine/Test/various:

	* Items.cs (TestItemsInTarget3a): Add another case for valid whitespace
	around an item ref.

svn path=/trunk/mcs/; revision=136000
2009-06-12 14:04:06 +00:00
Marek Habersack acb327adb6 Updated test sources list
svn path=/trunk/mcs/; revision=135998
2009-06-12 13:15:23 +00:00
Marek Habersack 5776009840 2009-06-12 Marek Habersack <[email protected]>
* MetaTableTest.cs: tests use single data model provider now.
	Implemented tests for IsReadOnly, ListActionPath, Model, Name,
	Provider, Scaffold, SortColumn, SortDescending, ToString.
	Fixed ForeignKeyColumnNames test.

2009-06-12  Marek Habersack  <[email protected]>

	* TestDataContainer.cs: GetTables uses an object of the associated
	data type to create table collection.

	* TestDataColumn.cs: foreign key columns are determined using a
	custom attribute instead of a name now. This makes it possible to
	specify which table.column they are associated with.

	* FooDisplayColumnAttribute.cs: changed sortDescending to true in
	class attributes.

	* AssociatedBar.cs, AssociatedFoo.cs, FooEmptySortColumn.cs,
	FooMisnamedSortColumn.cs, FooNoScaffold.cs, FooReadOnly.cs,
	ITestDataContext.cs, TestDataContext.cs: added

2009-06-12  Marek Habersack  <[email protected]>

	* MetaTable.cs: implemented correct detection of foreign key
	columns.
	Implemented IsReadOnly, SortColumn, SortDescending.

svn path=/trunk/mcs/; revision=135997
2009-06-12 13:14:49 +00:00
Jb Evain d0331b90b1 2009-06-12 Jb Evain <[email protected]>
* mcs.1: update the /platform information.


svn path=/trunk/mono/; revision=135992
2009-06-12 12:42:17 +00:00
Jb Evain 514337e0fa 2009-06-12 Jb Evain <[email protected]>
* gtest-449.cs
	* gtest-450.cs:
		new tests for the /platform support.


svn path=/trunk/mcs/; revision=135991
2009-06-12 12:41:42 +00:00
Jb Evain 1903e0a65b 2009-06-12 Jb Evain <[email protected]>
* rootcontext.cs: add a Platform field.
	* driver.cs: handle /platform.
	* codegen.cs: pass the proper flags according to
	the platform when saving the assembly.


svn path=/trunk/mcs/; revision=135990
2009-06-12 12:41:01 +00:00
Jb Evain 2dc6ad8ed3 2009-06-12 Jb Evain <[email protected]>
* AssemblyBuilder.cs (Save): throw a NotImplementedException
	when asked to emit a pe32+ binary for a AMD64 or IA64
	specific assembly.


svn path=/trunk/mcs/; revision=135989
2009-06-12 12:39:17 +00:00
Marek Safar 9f47cd7021 Support all versions in mcs
svn path=/trunk/mcs/; revision=135981
2009-06-12 10:34:32 +00:00
Atsushi Eno f9e5916bca 2009-06-12 Atsushi Enomoto <[email protected]>
* ChannelDispatcherTest.cs : make sure to close service host,
	  within rational TimeSpan.


svn path=/trunk/mcs/; revision=135980
2009-06-12 10:09:59 +00:00
Atsushi Eno 74e481c954 2009-06-12 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : do not give up releasing further channel
	   dispatchers when one of them threw an error. Use strict timeout.


svn path=/trunk/mcs/; revision=135979
2009-06-12 10:08:47 +00:00
Atsushi Eno bf5748c3d7 2009-06-12 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
	  more careful close to avoid NRE.


svn path=/trunk/mcs/; revision=135978
2009-06-12 10:06:54 +00:00
Atsushi Eno 2fe81ef0a3 2009-06-12 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs : do not Close() more than once (though
	  it is allowed to call it twice, we don't reject it; just ignore).


svn path=/trunk/mcs/; revision=135977
2009-06-12 09:58:35 +00:00
Atsushi Eno 2c854f4100 2009-06-12 Atsushi Enomoto <[email protected]>
* CustomBinding.cs : copy timeouts from argument binding in copy ctr.


svn path=/trunk/mcs/; revision=135975
2009-06-12 09:12:20 +00:00
Marek Habersack 8edbc122b0 2009-06-12 Marek Habersack <[email protected]>
* BuildManager.cs: avoid a NREX in FixVirtualPath

svn path=/trunk/mcs/; revision=135970
2009-06-12 07:55:27 +00:00
Zoltan Varga ec0376fb81 2009-06-12 Zoltan Varga <[email protected]>
* ParameterInfoTest.cs: Add a test for #512330.

svn path=/trunk/mcs/; revision=135966
2009-06-12 00:52:45 +00:00
Zoltan Varga 63169b2e80 2009-06-12 Zoltan Varga <[email protected]>
* ParameterInfo.cs (DefaultValue): Add support for decimals, their default
	value is encoded using a custom attribute.

svn path=/trunk/mcs/; revision=135965
2009-06-12 00:52:37 +00:00
Zoltan Varga 3eb7b62eb7 2009-06-12 Zoltan Varga <[email protected]>
* class-internals.h (struct _MonoGenericContainer): Add an 'image'
	field for owner-less generic containers.

	* reflection.c (mono_reflection_initialize_generic_parameter): Set the
	image field of the owner-less generic containers created here.

	* metadata.c (mono_metadata_load_generic_params): Ditto, the
	contain is ownerless until the caller sets its owner.

	* metadata.c (type_in_image): Handle owner-less generic containers
	correctly.

svn path=/trunk/mono/; revision=135964
2009-06-11 23:44:21 +00:00
Gonzalo Paniagua Javier c95c37c8ca 2009-06-11 Gonzalo Paniagua Javier <[email protected]>
* ContentControlBuilderInternal.cs: detect missing
	ContentPlaceHolderID attribute when parsing instead of throwing a
	nullref later on.


svn path=/trunk/mcs/; revision=135960
2009-06-11 22:17:24 +00:00
Gonzalo Paniagua Javier 5fcada6106 2009-06-11 Gonzalo Paniagua Javier <[email protected]>
* HtmlTitle.cs: HtmlTitle allows children that are not
	LiteralControls. Fixes bug #511882.


svn path=/trunk/mcs/; revision=135958
2009-06-11 22:14:41 +00:00
Zoltan Varga 896fc62990 2009-06-11 Zoltan Varga <[email protected]>
* image.c (mono_image_close): Support debug_assembly_unload for
	dynamic images too.

svn path=/trunk/mono/; revision=135956
2009-06-11 21:57:53 +00:00
Ankit Jain 12ffd389cd * Utilities.cs: New.
* AL.cs, AspNetCompiler.cs, Csc.cs,
SGen.cs, Vbc.cs (ToolName): Append ".bat" when running
on windows.

svn path=/trunk/mcs/; revision=135952
2009-06-11 21:13:30 +00:00
Ankit Jain 1f67b35bb3 * Parameters.cs (.ctor): Use assembly's location to build
path for the default response file.

svn path=/trunk/mcs/; revision=135951
2009-06-11 21:13:11 +00:00
Ankit Jain cf45d232db * Utilities.cs (FromMSBuildPath): Return null if the path contains
"drive:" only on windows.

svn path=/trunk/mcs/; revision=135950
2009-06-11 21:11:58 +00:00
Zoltan Varga 6cb8f74977 2009-06-11 Zoltan Varga <[email protected]>
* reflection.c (add_custom_modifiers): Avoid reading invalid memory.

svn path=/trunk/mono/; revision=135948
2009-06-11 21:07:46 +00:00
Zoltan Varga 3a5363ece9 2009-06-11 Zoltan Varga <[email protected]>
* configure.in: Disable dtrace support if dtrace doesn't support the
	-h option.

svn path=/trunk/mono/; revision=135947
2009-06-11 21:07:36 +00:00
Andrés G. Aragoneses d230bcd86c 2009-06-11 Andrés G. Aragoneses <[email protected]>
* class.c: Fix some typos in comments.


svn path=/trunk/mono/; revision=135946
2009-06-11 19:46:26 +00:00
Zoltan Varga 137110fa16 2009-06-11 Zoltan Varga <[email protected]>
* threads.c (mono_thread_execute_interruption): Avoid creating the
	abort exception object while holding the synch_cs lock.

svn path=/trunk/mono/; revision=135944
2009-06-11 19:13:06 +00:00
Marek Safar 2ef2561a5a New test.
svn path=/trunk/mcs/; revision=135939
2009-06-11 17:01:39 +00:00
Marek Safar 7755c3d7d7 New tests.
svn path=/trunk/mcs/; revision=135938
2009-06-11 17:01:21 +00:00
Marek Safar 31483560fe 2009-06-11 Marek Safar <[email protected]>
* parameter.cs, const.cs, report.cs, cs-parser.jay, attribute.cs:
	Add optional parameters grammar.


svn path=/trunk/mcs/; revision=135937
2009-06-11 16:59:12 +00:00
Atsushi Eno bc5d68a2a4 2009-06-11 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : reject multiple WaitForRequest calls.
	  Temporarily disable HTTP Keep-Alive since it somehow results in
	  wrong reuse of connection (shown as NRE in HttpConnection).
	  Make sure to close RequestContext which was created from it.
	* HttpRequestContext.cs : simplify.


svn path=/trunk/mcs/; revision=135921
2009-06-11 09:33:54 +00:00
Marek Habersack 57950484e9 2009-06-11 Marek Habersack <[email protected]>
* PageCompiler.cs: if generating code to assign output cache
	parameters, use special case for generating OutputCacheLocation
	enum reference. Fixes bug #512037

svn path=/trunk/mcs/; revision=135918
2009-06-11 09:20:46 +00:00
Atsushi Eno 6f61807f8d 2009-06-11 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs, TcpChannelListener.cs,
	  ChannelListenerBase_1.cs : put common internal listener base
	  and let it handle those async stuff.


svn path=/trunk/mcs/; revision=135916
2009-06-11 09:10:38 +00:00
Zoltan Varga b6b70b878d 2009-06-11 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Fix a warning.

svn path=/trunk/mono/; revision=135904
2009-06-10 23:26:29 +00:00
Zoltan Varga 265fa779ed 2009-06-11 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Don't emit remoting-invoke-with-check
	wrappers.

	* aot-runtime.c (mono_aot_get_method): Use the original method's code for
	remoting-invoke-with-check wrappers, which are not needed when running with
	full-aot, since it doesn't support remoting.

svn path=/trunk/mono/; revision=135898
2009-06-10 22:28:21 +00:00
Rolf Bjarne Kvinge 003f517773 2009-06-10 Rolf Bjarne Kvinge <[email protected]>
* Thread.cs: MoonlightUnhandledException: ensure there's no way to
	reach native code with a managed exception.

svn path=/trunk/mcs/; revision=135897
2009-06-10 22:17:32 +00:00
Rodrigo Kumpera 6cb47457ae 2009-06-10 Rodrigo Kumpera <[email protected]>
* cli-cattr-tests.md: Tests for custom attributes
	encoding.

	*assembly-with-cattr-enc.cs: Input file

	* Makefile: Add new dependency and test.

svn path=/trunk/mono/; revision=135895
2009-06-10 22:08:16 +00:00
Rodrigo Kumpera 1a92b4e174 2009-06-10 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify basic cattr content.

svn path=/trunk/mono/; revision=135894
2009-06-10 22:08:07 +00:00
Zoltan Varga 24e15f5e72 2009-06-10 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_got_info): Don't emit offsets for the plt got entries.

	* aot-compiler.c aot-runtime.c: Don't emit the first got offset in the
	method info, it is not used anymore.

	* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=135891
2009-06-10 21:42:50 +00:00
Zoltan Varga 3dd824a7c5 2009-06-10 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_plt_entry): Make the arm plt entries one
	word smaller.

	* aot-runtime.c (mono_aot_get_plt_info_offset): Update after the
	change above.

	* tramp-arm.c (mono_arch_patch_plt_entry): Ditto.

	* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=135886
2009-06-10 20:13:23 +00:00
Gert Driesen 53e058a35a * corlib_test.dll.sources: Added test for InternalVisibleToAttribute.
* InternalVisibleToAttributeTest.cs: Added test for .ctor and
AllInternalsVisible property.

svn path=/trunk/mcs/; revision=135885
2009-06-10 20:11:53 +00:00
Andrés G. Aragoneses cbba74eb86 * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Cosmetic.
* tuner/Mono.Tuner/MoonlightA11yAssemblyStep.cs: Typo.

svn path=/trunk/mcs/; revision=135881
2009-06-10 19:19:36 +00:00
Geoff Norton 04038dfd95 This is dead now that 3.0 is out
svn path=/trunk/mono/; revision=135880
2009-06-10 18:57:17 +00:00
Zoltan Varga 1474dabafe 2009-06-10 Zoltan Varga <[email protected]>
* reflection.c (add_exported_type): Don't set the FORWARDER flag on
	nested types.

svn path=/trunk/mono/; revision=135878
2009-06-10 18:40:06 +00:00
Marek Safar 75199f9a2a 2009-06-10 Marek Safar <[email protected]>
* eval.cs, anonymous.cs, report.cs, rootcontext.cs, cs-parser.jay,
	driver.cs: Split lang version and metadata version.


svn path=/trunk/mcs/; revision=135877
2009-06-10 18:38:08 +00:00
Marek Safar 56fe0973cf 2009-06-10 Marek Safar <[email protected]>
* runtime/Makefile.am, configure.in: Make net_4_0 profile optional.


svn path=/trunk/mono/; revision=135876
2009-06-10 18:36:12 +00:00
Zoltan Varga 0ce276ef1d 2009-06-10 Zoltan Varga <[email protected]>
* reflection.c (mono_image_fill_export_table_from_type_forwarders): Add
	support for nested types. Fixes #511704.

svn path=/trunk/mono/; revision=135874
2009-06-10 18:34:24 +00:00
Zoltan Varga 8d881bf2ac 2009-06-10 Zoltan Varga <[email protected]>
* image-writer.c (asm_writer_emit_symbol_diff): Disable the
	TARGET_ASM_APPLE stuff for now, as it doesn't seem to work on the
	iphone.

svn path=/trunk/mono/; revision=135869
2009-06-10 17:42:29 +00:00
Jb Evain 0da7edbd0f 2009-06-10 Jb Evain <[email protected]>
* main.c: add support for extern types. Fixes #511672.


svn path=/trunk/mono/; revision=135868
2009-06-10 17:27:02 +00:00
Sebastien Pouliot bd19dacb39 2009-06-10 Sebastien Pouliot <[email protected]>
* Thread.cs: Refactor calling Moonlight's OnUnhandledException to 
	make sur the delegate it not called from a [SecuritySafeCritical]
	caller.
	* ThreadPool.cs: Reuse the above code for QueueUserWorkItem. 
	Original patch from Alan McGovern


svn path=/trunk/mcs/; revision=135866
2009-06-10 17:17:55 +00:00
Marek Safar c5a10f4d14 New error message.
svn path=/trunk/mcs/; revision=135863
2009-06-10 16:14:01 +00:00
Marek Safar 174baedb26 2009-06-10 Marek Safar <[email protected]>
* decl.cs: Better overload ctor collision error message.


svn path=/trunk/mcs/; revision=135862
2009-06-10 16:13:45 +00:00
Zoltan Varga 3417b730d6 2009-06-10 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_output_basic_block): Fix the implementation
	of CKFINITE and FBGE for VFP.

svn path=/trunk/mono/; revision=135859
2009-06-10 15:50:59 +00:00
Marek Safar bde21846ca 2009-06-10 Marek Safar <[email protected]>
* Consts.cs.in: Add AssemblySystemCore_3_5.


svn path=/trunk/mcs/; revision=135855
2009-06-10 14:25:25 +00:00
Marek Safar fe33ddf900 2009-06-10 Marek Safar <[email protected]>
* LockRecursionException.cs: Updated to 4.0 changes.


svn path=/trunk/mcs/; revision=135853
2009-06-10 14:25:02 +00:00
Marek Safar 00df7fd3e4 2009-06-10 Marek Safar <[email protected]>
* TimeZoneInfo.AdjustmentRule.cs, TimeZoneInfo.TransitionTime.cs,
	Funcs.cs, InvalidTimeZoneException.cs, Actions.cs, TimeZoneInfo.cs,
	TimeZoneNotFoundException.cs: Updated to 4.0 changes.


svn path=/trunk/mcs/; revision=135851
2009-06-10 14:24:10 +00:00
Marek Safar 8b07580ecd 2009-06-10 Marek Safar <[email protected]>
* corlib.dll.sources: Add new net 4.0 files.


svn path=/trunk/mcs/; revision=135849
2009-06-10 14:20:30 +00:00
Marek Safar 9c0eadd375 2009-06-10 Marek Safar <[email protected]>
* LockRecursionException.cs: New file.


svn path=/trunk/mcs/; revision=135848
2009-06-10 14:19:54 +00:00
Marek Safar 2fec4e4d1e 2009-06-10 Marek Safar <[email protected]>
* Predicate.cs, Action.cs, Funcs.cs, Comparison.cs, IComparable.cs,
	Converter.cs, EventHandler.cs: Add type variance.
	
	* InvalidTimeZoneException.cs,
	TimeZoneNotFoundException.cs: New file.


svn path=/trunk/mcs/; revision=135847
2009-06-10 14:17:59 +00:00
Marek Safar 7bfc38ec7a 2009-06-10 Marek Safar <[email protected]>
* IEqualityComparer.cs, IComparer.cs, IEnumerable.cs,
	IEnumerator.cs: Add type variance.


svn path=/trunk/mcs/; revision=135846
2009-06-10 14:14:17 +00:00
Marek Safar 3e6ce19271 Initialize AllInternalsVisible
svn path=/trunk/mcs/; revision=135845
2009-06-10 13:43:37 +00:00
Marek Habersack c0aae4dbed 2009-06-10 Marek Habersack <[email protected]>
* TestDataColumn.cs: added detection of foreign key columns.

    	* FooWithDefaults.cs: added foreign key columns

    	* FooDisplayName.cs, FooDisplayNameEmptyName.cs,
    	FooSettableDefaults.cs: added

    2009-06-10  Marek Habersack  <[email protected]>

    	* MetaTable.cs: fixed DisplayName implementation.
    	Implemented GetPrimaryKeyString, GetQuery.

    2009-06-10  Marek Habersack  <[email protected]>

    	* System.Web.DynamicData_test.dll.sources: added
    	Common/FooDisplayName.cs
    	Common/FooDisplayNameEmptyName.cs
    	Common/FooSettableDefaults.cs

    2009-06-10  Marek Habersack  <[email protected]>

    	* MetaTableTest.cs: added more table contexts.
    	Added tests for: Attributes, Columns, DataContextPropertyName,
    	DataContextType, DisplayName, EntityType, ForeignKeyColumnNames
    	(doesn't work on .NET), GetPrimaryKeyString, GetQuery,
    	HasPrimaryKey,

    2009-06-09  Marek Habersack  <[email protected]>

    	* MetaTableTest.cs: added two more tables for various kinds of
    	tests (in fixture setup).
    	More tests for GetActionPath.
    	Tests for GetPrimaryKeyValues, DisplayColumn, Attributes,
    	GetDisplayString, GetColumn, TryGetColumn

    2009-06-09  Marek Habersack  <[email protected]>

    	* Baz.cs, BazNoStrings.cs, BazNoStringsNoPrimary.cs,
    	FooDisplayColumnAttribute.cs, FooEmpty.cs,
    	FooEmptyDisplayColumnAttribute.cs,
    	FooInvalidDisplayColumnAttribute.cs, FooWithToString.cs,
    	TestDataColumn.cs, TestDataContainer.cs, TestDataTable.cs: added

    2009-06-09  Marek Habersack  <[email protected]>

    	* MetaTable.cs: implemented more overloads of GetActionPath.
    	Implemented GetPrimaryKeyValues, GetActionPathFromRoutes,
    	Attributes, DisplayColumn, GetDisplayString.

    2009-06-09  Marek Habersack  <[email protected]>

    	* MetaTableTest.cs: added two more tables for various kinds of
    	tests (in fixture setup).
    	More tests for GetActionPath.
    	Tests for GetPrimaryKeyValues.

    2009-06-09  Marek Habersack  <[email protected]>

    	* MetaTable.cs: implemented more overloads of GetActionPath.
    	Implemented GetPrimaryKeyValues.
    	Implemented GetActionPathFromRoutes.

    2009-06-09  Marek Habersack  <[email protected]>

    	* Utils.cs: added two BuildActionName methods to make building
    	action paths for testing more compact.

    	* FooNoPrimaryColumns.cs, FooNoDefaultsWithPrimaryKey.cs: added

    2009-06-09  Marek Habersack  <[email protected]>

    	* System.Web.DynamicData_test.dll.sources: added
    	Common/FooNoDefaultsWithPrimaryKey.cs
    	Common/FooNoPrimaryColumns.cs

    2009-06-08  Marek Habersack  <[email protected]>

    	* Utils.cs: added.
    	  Moved GetModel here from MetaModelTest.cs
    	  Added RegisterContext methods.

    	* FooWithDefaultsContainer.cs,
    	FooWithDefaultsColumn.cs,FooWithDefaultsTable.cs,
    	FooWithDefaults.cs: added

    2009-06-08  Marek Habersack  <[email protected]>

    	* MetaTableTest.cs: added.

svn path=/trunk/mcs/; revision=135844
2009-06-10 13:42:36 +00:00
Marek Safar aafd64f1ca 2009-06-10 Marek Safar <[email protected]>
* InternalsVisibleToAttribute.cs: Updated to 2.0 SP2.


svn path=/trunk/mcs/; revision=135842
2009-06-10 13:32:45 +00:00
Marek Safar 457cda4507 2009-06-10 Marek Safar <[email protected]>
* TypeForwardedFromAttribute: New file.


svn path=/trunk/mcs/; revision=135841
2009-06-10 13:03:22 +00:00
Atsushi Eno d508398f08 2009-06-10 Atsushi Enomoto <[email protected]>
* ServiceThrottlingBehavior.cs : implement Validate() (nothing to do
	  here).


svn path=/trunk/mcs/; revision=135825
2009-06-10 09:46:23 +00:00
Atsushi Eno a55851fb5e 2009-06-10 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs : fix wrong null delegate check point.


svn path=/trunk/mcs/; revision=135824
2009-06-10 07:15:46 +00:00
Atsushi Eno 3985a2029a 2009-06-10 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs, ReplyChannelBase.cs : async operations are
	  now implemented as virtual in base class. Remove NIEs in http.


svn path=/trunk/mcs/; revision=135823
2009-06-10 05:52:37 +00:00
Atsushi Eno c05443832e 2009-06-10 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs : hack async implementation.


svn path=/trunk/mcs/; revision=135822
2009-06-10 04:56:16 +00:00
Andrés G. Aragoneses 400de13dd0 2009-06-09 Andrés G. Aragoneses <[email protected]>
* WebRequestTest.cs: Added tests for bug #323452.


svn path=/trunk/mcs/; revision=135818
2009-06-10 02:56:34 +00:00
Gonzalo Paniagua Javier a054484fab re-disable the cache that was enabled by mistake
svn path=/trunk/mcs/; revision=135817
2009-06-10 02:55:07 +00:00
Gonzalo Paniagua Javier 95bee485a2 2009-06-09 Gonzalo Paniagua, Miguel de Icaza <[email protected], [email protected]>
* Expression.cs: improve the ExpressionCache, it still does not
	work, but it will at least work better with multithreaded apps (we
	take locks) and we use WeakReferences correctly.

	For WeakReferences it is important to not depend on IsAlive to
	retrieve the target (this is a documented race).  IsAlive is only
	useful to determine if it has already been collected, but if true,
	the Target can still be released.

	This race condition is exposed by #505678 on x86-64 platforms (only).

	Sadly, this fix is not good enough to re-enable the cache, on
	x86-64 this with a single thread, it still crashes randomly
	

svn path=/trunk/mcs/; revision=135815
2009-06-10 01:07:50 +00:00
Rodrigo Kumpera 186024db85 2009-06-09 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for methodspec signature.

svn path=/trunk/mono/; revision=135798
2009-06-09 22:55:23 +00:00
Rodrigo Kumpera d8b25300c0 2009-06-09 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify methodspec signatures.

svn path=/trunk/mono/; revision=135797
2009-06-09 22:55:14 +00:00
Rodrigo Kumpera 8dfdbd1777 2009-06-09 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for typespec signature.

	* assembly-with-typespec.il: Input file with a
	bunch of typespec instances.

	* Makefile: Add new dependency.

svn path=/trunk/mono/; revision=135796
2009-06-09 22:55:02 +00:00
Rodrigo Kumpera ab343bbe85 2009-06-09 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Added read.byte.

svn path=/trunk/mono/; revision=135795
2009-06-09 22:54:54 +00:00
Rodrigo Kumpera 88528374ca 2009-06-09 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify typespec signatures.

svn path=/trunk/mono/; revision=135794
2009-06-09 22:54:45 +00:00
Zoltan Varga 6789c06f31 2009-06-09 Zoltan Varga <[email protected]>
* aot-compiler.c: Don't align code to 16 bytes on arm.

svn path=/trunk/mono/; revision=135790
2009-06-09 21:43:09 +00:00
Zoltan Varga b31e4ed042 2009-06-09 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Emit the unbox trampolines right
	before the methods they belong to.

svn path=/trunk/mono/; revision=135787
2009-06-09 21:29:16 +00:00
Zoltan Varga 76c7cfcba3 2009-06-09 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_plt_resolve): Avoid creating trampolines in
	the full-aot case if possible, since the trampoline will be called right
	away.

	* aot-compiler.c (mono_compile_assembly): Decrease the number of full aot
	trampolines to 1024 after the change above.

svn path=/trunk/mono/; revision=135786
2009-06-09 21:10:43 +00:00
Zoltan Varga 4010938767 2009-06-09 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_plt_resolve): Avoid creating trampolines in
	the full-aot case if possible, since the trampoline will be called right
	away.

	* aot-compiler.c (mono_compile_assembly): Decrease the number of full aot
	trampolines to 1024 after the change above.

svn path=/trunk/mono/; revision=135785
2009-06-09 21:10:35 +00:00
Ivan Zlatev 0db3cea7fe 2009-06-09 Ivan N. Zlatev <[email protected]>
* DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs:
	Implement items syncing in the non-databound scenario.
	[Fixes bug #494031]

svn path=/trunk/mcs/; revision=135770
2009-06-09 15:56:21 +00:00
Gonzalo Paniagua Javier 90e8e19238 2009-06-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: ProtocolViolationException is not thrown in
	certain cases since 2.0. Fixes bug #508027.


svn path=/trunk/mcs/; revision=135767
2009-06-09 15:40:35 +00:00
Gonzalo Paniagua Javier b05c346630 enable test
svn path=/trunk/mcs/; revision=135760
2009-06-09 15:14:39 +00:00
Gonzalo Paniagua Javier 0721301465 2009-06-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: follow MS docs when throwing
	ProtocolViolationException at the beginning of an asynchronous
	operation. Fixes bug #465613.


svn path=/trunk/mcs/; revision=135758
2009-06-09 15:14:13 +00:00
Andrés G. Aragoneses 688f285585 * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Cosmetic.
svn path=/trunk/mcs/; revision=135744
2009-06-09 14:01:27 +00:00
Jonathan Chambers c241d94045 2009-06-09 Jonathan Chambers <[email protected]>
* CMakeLists.txt: Add start of CMake build.
        * src/CMakeLists.txt: Add start of CMake build.

        Contribution is licensed as MIT/X11.


svn path=/trunk/mono/; revision=135743
2009-06-09 14:01:16 +00:00
Andrés G. Aragoneses c44d20a7cf * linker/Mono.Linker.Steps/BaseStep.cs: New virtual API needed.
* linker/Mono.Linker/Pipeline.cs: API love.

* tuner/Mono.Tuner.csproj:
* tuner/Mono.Tuner.dll.sources: Update.

* tuner/Mono.Tuner/MoonlightA11yProcessor.cs:
* tuner/Mono.Tuner/MoonlightA11yAssemblyStep.cs: Typo.

* tuner/Mono.Tuner/MoonlightA11yUsageInspectionStep.cs:
* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: New steps for
prevention of API stripping.

svn path=/trunk/mcs/; revision=135742
2009-06-09 13:56:15 +00:00
Andrés G. Aragoneses 106bb2e72f * linker/Mono.Linker.csproj: Update.
* linker/Mono.Linker/Driver.cs: Prevent InvalidCastException.

svn path=/trunk/mcs/; revision=135741
2009-06-09 13:52:27 +00:00
Ivan Zlatev 44858e278d 2009-06-09 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Call OnCellValidating and OnCellValidated and
	handle the Cancel accordingly.
	[Fixes bug #506838]

svn path=/trunk/mcs/; revision=135739
2009-06-09 12:46:50 +00:00
Ivan Zlatev e9f162000b 2009-06-09 Ivan N. Zlatev <[email protected]>
* DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
	[Fixes bug #506796]

svn path=/trunk/mcs/; revision=135738
2009-06-09 11:32:19 +00:00
Ivan Zlatev 34703ea845 2009-06-09 Ivan N. Zlatev <[email protected]>
* DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs,
	DataGridView.cs: Fire CollectionChangeAction.Refresh collection
	changed when Clearing the collections so that the DataGridView
	can know and reset the current cell.
	[Fixes bug #492549]

svn path=/trunk/mcs/; revision=135737
2009-06-09 11:29:16 +00:00
Ivan Zlatev 98d9cc2b58 2009-06-09 Ivan N. Zlatev <[email protected]>
* BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor
	with the PropertyDescriptor parameter instead of index, because the
	latter will set some irelevant indices. Fixes a bug uncovered by recent
	 fix to ListChangedEventArgs.

svn path=/trunk/mcs/; revision=135736
2009-06-09 11:17:53 +00:00
Atsushi Eno c2fb2b65d1 2009-06-09 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : avoid NRE (actually it should eliminate
	  Thread.Abort()). Added some comments on throttling.


svn path=/trunk/mcs/; revision=135730
2009-06-09 07:51:40 +00:00
Atsushi Eno ad9d1f05cc 2009-06-09 Atsushi Enomoto <[email protected]>
* ChannelDispatcherTest.cs : add ServiceThrottle test, and comments.


svn path=/trunk/mcs/; revision=135729
2009-06-09 07:50:32 +00:00
Atsushi Eno 29364a9eb9 Prepare ServiceThorottle implementation.
svn path=/trunk/mcs/; revision=135727
2009-06-09 07:46:31 +00:00
Carlos Alberto Cortez b9f076bbf7 2009-06-09 Carlos Alberto Cortez <[email protected]>
* DataObject.cs: When looking for any specific format, do a case
	insensitive search, as .net does.
	Fixes #509199.


svn path=/trunk/mcs/; revision=135720
2009-06-09 04:03:59 +00:00
Zoltan Varga 996532f971 2009-06-09 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_specific_trampoline): Rework the arm
	trampoline to save 8 bytes per trampoline.

	* tramp-arm.c (mono_arch_create_trampoline_code_full): Update after the
	change above.

svn path=/trunk/mono/; revision=135715
2009-06-09 02:22:25 +00:00
Zoltan Varga 9ca3ee08e9 2009-06-09 Zoltan Varga <[email protected]>
* metadata.c (free_inflated_method): Call
	mono_marshal_free_inflated_wrappers (), which was missed earlier.

svn path=/trunk/mono/; revision=135714
2009-06-09 02:21:21 +00:00
Ivan Zlatev c1851c896f 2009-06-09 Ivan N. Zlatev <[email protected]>
* CurrencyManager.cs: In AllowNew firstly check if the list is a
	IBindingList and proxy to AllowNew. IBindingList has slightly differet
	logic and eventhough it's an IList IsReadOnly should not be used in this
	case as it might be True but AllowNew could be True as well.
	Fixes a bug uncovered by a fix to the Array class.

svn path=/trunk/mcs/; revision=135713
2009-06-09 01:54:08 +00:00
Miguel de Icaza 09edef96bb 2009-06-08 Miguel de Icaza <[email protected]>
* mono-config.c: Small change to report the PPC64/ILP32 model.

svn path=/trunk/mono/; revision=135708
2009-06-08 23:49:10 +00:00
Gonzalo Paniagua Javier 4bfc82f892 2009-06-08 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: throw a WebException instead of an IOException.


svn path=/trunk/mcs/; revision=135704
2009-06-08 22:26:59 +00:00
Carlos Alberto Cortez 4f9edb64d8 2009-06-08 Carlos Alberto Cortez <[email protected]>
* ListBindingHelper.cs: In GetListItemType do a null check when
	looking for IList.Item, since the impl could be explicit, and thus
	private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
	Fixes the remaining part of #507120


svn path=/trunk/mcs/; revision=135698
2009-06-08 21:09:01 +00:00
Ankit Jain f7a85c3491 * standalone/Project01: Add missing Lib2.deploy.txt in the correct
location.

svn path=/trunk/mcs/; revision=135697
2009-06-08 20:55:46 +00:00
Gonzalo Paniagua Javier 067efbfbd7 2009-06-08 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: avoid exception when the reply from the server
	contains just response code. Fixes bug #510852.


svn path=/trunk/mcs/; revision=135695
2009-06-08 20:48:03 +00:00
Ankit Jain 7650e5ef6f In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* EngineTest.cs (TestMSBuildOutputs): New.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* MSBuild.cs (Execute): Copy metadata from the @Projects items
	to the target outputs.

svn path=/trunk/mcs/; revision=135694
2009-06-08 20:43:05 +00:00
Gonzalo Paniagua Javier f3af4e6e1d 2009-06-08 Gonzalo Paniagua Javier <[email protected]>
* SmtpClient.cs: handle dots. Patch by Ted Unangst that fixes bug
	#392875.


svn path=/trunk/mcs/; revision=135692
2009-06-08 20:40:18 +00:00
Zoltan Varga 54bd1b1274 2009-06-08 Zoltan Varga <[email protected]>
* aot-compiler.c: Use acfg->temp_prefix instead of .L to prefix labels.

svn path=/trunk/mono/; revision=135687
2009-06-08 20:06:26 +00:00
Gonzalo Paniagua Javier aa9460908c 2009-06-08 Gonzalo Paniagua Javier <[email protected]>
* HttpHandlerAction.cs: fix path matching when the pattern has more
	than one slash.


svn path=/trunk/mcs/; revision=135685
2009-06-08 19:48:22 +00:00
Marek Safar 40715b8c91 Enabled 4.0 features for bootstrap too.
svn path=/trunk/mcs/; revision=135683
2009-06-08 19:05:34 +00:00
Atsushi Eno c39fe32eb8 2009-06-08 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : oops, extra line removal.


svn path=/trunk/mcs/; revision=135674
2009-06-08 16:48:51 +00:00
Atsushi Eno 84b8815a8e 2009-06-08 Atsushi Enomoto <[email protected]>
* HttpChannelManager.cs, HttpListenerManager.cs : rename file too.

	* System.ServiceModel.dll.sources: renamed a file.


svn path=/trunk/mcs/; revision=135673
2009-06-08 16:47:18 +00:00
Zoltan Varga 98cc1c9d03 2009-06-08 Zoltan Varga <[email protected]>
* CSharpCodeProviderTest.cs: Avoid depending on the order in which
	GetManifestResourceNames () returns resource names.

svn path=/trunk/mcs/; revision=135672
2009-06-08 16:44:50 +00:00
Atsushi Eno 23a7f085d6 2009-06-08 Atsushi Enomoto <[email protected]>
* HttpChannelManager.cs, HttpChannelListener.cs: renaming, as
	  "ChannelManager" is confusing (there is ChannelManagerBase).


svn path=/trunk/mcs/; revision=135671
2009-06-08 16:43:07 +00:00
Atsushi Eno 84d82f89c4 2009-06-08 Atsushi Enomoto <[email protected]>
* HttpChannelManager.cs, HttpTransportBindingElement.cs,
	  HttpReplyChannel.cs, AspNetReplyChannel.cs, HttpChannelListener.cs:
	  they should be split into separate listener->reply channel lines
	  (remove "if (HostingEnvironment.IsAspNet)".)


svn path=/trunk/mcs/; revision=135668
2009-06-08 16:37:52 +00:00
Marek Safar 8bcab2a591 Fixed bug number
svn path=/trunk/mcs/; revision=135658
2009-06-08 11:51:40 +00:00
Atsushi Eno b430f47799 svn:eol-style native.
svn path=/trunk/mcs/; revision=135653
2009-06-08 09:21:35 +00:00
Atsushi Eno fa4750ff59 another EOL inconsistency.
svn path=/trunk/mcs/; revision=135652
2009-06-08 09:20:52 +00:00
Atsushi Eno e06ca80826 fix inconsistent EOLs.
svn path=/trunk/mcs/; revision=135651
2009-06-08 09:18:06 +00:00
Atsushi Eno a455a4cbc9 fix inconsistent EOLs.
svn path=/trunk/mcs/; revision=135650
2009-06-08 09:16:39 +00:00
Atsushi Eno 198d728a95 2009-06-08 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : OnClosed() requires call to base method.
	  Close() could rather abort the channel, and Abort() does not
	  always invke OnAbort().
	* ChannelBase.cs : add call to base as above.

	* ChannelDispatcher.cs :
	  Add call to base (see CommunicationObject change).

	* InstanceContext.cs :
	  Add call to base (see CommunicationObject change).

	* CommunicationObjectTest.cs : added a couple of close/abort tests
	  for state transition and base call check.


svn path=/trunk/mcs/; revision=135649
2009-06-08 09:10:08 +00:00
Martin Baulig bf16cb052d Improve exception handling when running in mdb: check whether an exception is caught inside a runtime-invoked method or the runtime-invoke wrapper.
2009-06-08  Martin Baulig  <[email protected]>

	* debug-mini.c
	(MonoDebuggerExceptionAction): Moved into debug-mini.h.
	(_mono_debugger_throw_exception): Don't make this static.
	(_mono_debugger_unhandled_exception): Likewise.
	(mono_debugger_handle_exception): Moved to mini-exceptions.c

	* debug-mini.c
	(MonoDebuggerExceptionAction): Moved here from debug-mini.c.
	(_mono_debugger_throw_exception): Add function prototype.
	(_mono_debugger_unhandled_exception): Likewise.

	* mini-exceptions.c
	(mono_handle_exception_internal): Added `MonoJitInfo **out_ji'
	arg; return the first exception handler if the exception is caught
	and we're running inside the debugger.
	(mono_debugger_handle_exception): Moved here from debug-mini.c;
	improve exception handle inside runtime-invoke, check whether the
	exception is actually caught in the method being invoked and not
	by the runtime-invoke-wrapper.

svn path=/trunk/mono/; revision=135635
2009-06-08 08:45:31 +00:00
Marek Habersack d74135a620 2009-06-08 Marek Habersack <[email protected]>
* ConfigurationLocation.cs: if the path passed to constructor
	starts with any of ' ' '.' '/' or '\', throw an exception. Fixes
	bug #510735

svn path=/trunk/mcs/; revision=135630
2009-06-08 07:19:41 +00:00
Zoltan Varga 3dddd56d77 2009-06-08 Zoltan Varga <[email protected]>
* image-writer.c: Improve support for the osx assembler.

	* dwarfwriter.c: Avoid the usage of subsections if the assembler doesn't
	support them.

svn path=/trunk/mono/; revision=135624
2009-06-08 01:22:02 +00:00
Ankit Jain 22e0abd69b * standalone/Project01: Fix location for lib2.deploy.txt
svn path=/trunk/mcs/; revision=135622
2009-06-08 00:37:00 +00:00
Ankit Jain 43bc513ae5 * ResolvedReference.cs: Add missing file.
svn path=/trunk/mcs/; revision=135621
2009-06-08 00:36:41 +00:00
Ankit Jain 91b7b5fa6c In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* AssignCulture.cs (TrySplitResourceName): Reset culture arg to null
	if returning false.
	* CreateCSharpManifestResourceName.cs: Set culture to null if the
	culture was invalid.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* CreateCSharpManifestResourceNameTest.cs (TestInvalidCulture): New.

svn path=/trunk/mcs/; revision=135619
2009-06-08 00:06:11 +00:00
Ankit Jain 881b6cf16d Add support for resolving project and other assembly references, including
their dependant files.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* ProjectTest (TestBuildSolutionProject): New. Disabled for now.

In class/Microsoft.Build.Tasks:

	* Microsoft.Build.Tasks_test.dll.sources: Added
	ResolvedReference.cs

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* ResolvedReference.cs: New.
	* AssemblyResolver.cs (GetResolvedReference): New. Honor's the
	'Private' metadata and sets CopyLocal.
	(SearchPath): New. Used to track how the reference was resolved.
	(IsStrongNamed): Fix potential null ref.
	All the assembly resolution methods now return ResolvedReference
	instead of strings, to aid in proper CopyLocal behavior and
	dependency resolution.
	* ResolveAssemblyReference.cs: Add support for finding related files,
	satellite files, resolving dependencies, copy local files.
	Resolve files specified in "AssemblyFiles" param also, used to resolve
	project references and dependencies.

In tools/xbuild:

	* xbuild/Microsoft.Common.targets: Use ResolveAssemblyReference
	to find satellite assemblies, dependent assemblies, dependent
	files, copy local files etc.
	Add targets to fetch all this info for all referenced projects,
	and copy them to the target locations. Also, copy the debug (.mdb)
	files. Honor, "CopyToOutputDirectory" metadata.

In tools/xbuild/tests:

	* standalone/Project01: New. Solution with interdependent multiple projects,
	with deploy files, satellite assemblies etc.

svn path=/trunk/mcs/; revision=135618
2009-06-07 23:36:52 +00:00
Carlos Alberto Cortez 5eb48e9ff6 2009-06-07 Carlos Alberto Cortez <[email protected]>
* DataObjectTest.cs: New assertions for the text functionality.


svn path=/trunk/mcs/; revision=135612
2009-06-07 15:42:17 +00:00
Zoltan Varga f1e0805cd3 2009-06-07 Zoltan Varga <[email protected]>
* image-writer.c (append_subsection): Don't align subsections of the
	debug_line section as a workaround.

	* dwarfwriter.c: Emit line number info in the AOT case as well.

svn path=/trunk/mono/; revision=135611
2009-06-07 14:26:58 +00:00
Ankit Jain 8bd59c562d In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* Csc.cs (AddResponseFileCommands): Split DefineConstants on space also.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
	* CscTest.cs (TestDefineConstants): Update DefineConstants to include
	spaces also.

svn path=/trunk/mcs/; revision=135610
2009-06-07 12:57:52 +00:00
Ankit Jain a92162b50c In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* AssignTargetPath.cs (Execute): Expand incoming path to absolute
	path, and correctly extract relative path (skipping over the preceding
	dir separator).

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* AssignTargetPathTest.cs: Update tests to not depend on a fixed
	root (C:\) or cur dir.

svn path=/trunk/mcs/; revision=135609
2009-06-07 12:57:34 +00:00
Ankit Jain 8651252a42 * Copy.cs (CopyFile): Don't copy if the source and dest are the same.
svn path=/trunk/mcs/; revision=135608
2009-06-07 12:57:17 +00:00
Ankit Jain 78aa0f8ca9 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Target.cs (Outputs): Use ITaskItem[] for conversion, to retain
	the metadata.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* TargetTest (TestTargetOutputsIncludingMetadata): New.

svn path=/trunk/mcs/; revision=135607
2009-06-07 12:57:01 +00:00
Ankit Jain e7a7f58714 * Parameters.cs (ProcessProperty): Handle invalid syntax.
svn path=/trunk/mcs/; revision=135606
2009-06-07 12:56:43 +00:00
Ankit Jain fd0e3fa56e * SolutionParser.cs (AddGeneralSettings): Don't hardcode the default
config/platform. Move to ..
(AddDefaultSolutionConfiguration): .. here.
(AddCurrentSolutionConfigurationContents): Use the first solution target
as the default config/platform or use Debug/anycpu if no config is available.

svn path=/trunk/mcs/; revision=135605
2009-06-07 12:51:34 +00:00
Carlos Alberto Cortez 2c62f19c41 2009-06-07 Carlos Alberto Cortez <[email protected]>
* DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
	to match them in all the cases, as this is exactly what .net does.
	Fixes #510728.


svn path=/trunk/mcs/; revision=135604
2009-06-07 10:34:05 +00:00
Marek Safar 42786f0335 2009-06-07 Marek Safar <[email protected]>
* Makefile: Add net_4_0* profiles.


svn path=/trunk/mcs/; revision=135603
2009-06-07 10:22:16 +00:00
Marek Safar 0fdfe7bb83 2009-06-07 Marek Safar <[email protected]>
* runtime/Makefile.am: Enabled net_4_0 for compilation.


svn path=/trunk/mono/; revision=135602
2009-06-07 09:13:16 +00:00
Zoltan Varga 47c375fbd4 2009-06-06 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

       * mini-ppc.c (mono_arch_emit_exceptions): Change assert to
       code_len <= code_size

svn path=/trunk/mono/; revision=135601
2009-06-07 01:37:17 +00:00
Zoltan Varga 98579ed05e 2009-06-06 Zoltan Varga <[email protected]>
* CMakeLists.txt: Fix handling of powerpc and the selection of
	threads. Delete commented out stuff.

svn path=/trunk/mono/; revision=135600
2009-06-06 20:22:57 +00:00
Zoltan Varga 32cddb52a2 2009-06-06 Zoltan Varga <[email protected]>
* CMakeLists.txt: CMake build file for libgc.

svn path=/trunk/mono/; revision=135599
2009-06-06 20:05:21 +00:00
Gert Driesen 3ee30c68d1 * ContextStack.cs: Added argument check to Type indexer, avoiding a
NRE. Modify System.Int32 indexer to throw ArgumentOutOfRangeException
instead of ArgumentException. Reduce number of times that item count
must be obtained.
* ContextStackTest.cs: Added unit tests for indexers, and argument
(null) checks.

svn path=/trunk/mcs/; revision=135596
2009-06-06 17:07:34 +00:00
Carlos Alberto Cortez bf070eecb1 2009-06-06 Carlos Alberto Cortez <[email protected]>
* ListBindingHelperTest.cs: New assertion for GetListItemType, as well
	as a new helper collection class.


svn path=/trunk/mcs/; revision=135594
2009-06-06 12:25:13 +00:00
Carlos Alberto Cortez c43474db42 2009-06-06 Carlos Alberto Cortez <[email protected]>
* ListBindingHelper.cs: In GetListItemType handle gracefully the case
	where an instance of IEnumerator returns a null value for its Current
	property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
	Fixes #507120.


svn path=/trunk/mcs/; revision=135593
2009-06-06 12:22:51 +00:00
Zoltan Varga 80c2b7110b 2009-06-06 Zoltan Varga <[email protected]>
* mini-mips.c (mips_emit_exc_by_name): Fix the mips build.

svn path=/trunk/mono/; revision=135583
2009-06-06 01:16:19 +00:00
Gert Driesen 7815a96217 * bug-508538.cs: New regression test for bug #508538.
svn path=/trunk/mono/; revision=135575
2009-06-05 23:31:33 +00:00
Gert Driesen 6c3fbf55b9 * HttpWebRequestTest.cs: Added tests for bugs #465613, #510661,
#510642 and #508027.

svn path=/trunk/mcs/; revision=135573
2009-06-05 23:20:31 +00:00
Rodrigo Kumpera c88bd5348b 2009-06-05 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for szarray.

	* assembly-with-types.il: Fix the szarray field.

svn path=/trunk/mono/; revision=135571
2009-06-05 21:57:52 +00:00
Rodrigo Kumpera cd912a0bb5 2009-06-05 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_type): Check szarray.

svn path=/trunk/mono/; revision=135570
2009-06-05 21:57:41 +00:00
Rodrigo Kumpera 26e578b83a 2009-06-05 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for fnptr instance.

svn path=/trunk/mono/; revision=135569
2009-06-05 21:57:27 +00:00
Rodrigo Kumpera 299720f7ca 2009-06-05 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_type): Check fnptr.

svn path=/trunk/mono/; revision=135568
2009-06-05 21:57:16 +00:00
Rodrigo Kumpera 56d470eaf5 2009-06-05 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for generic instance.

	* assembly-with-types.il: Add some generic instances.

svn path=/trunk/mono/; revision=135567
2009-06-05 21:57:00 +00:00
Rodrigo Kumpera 8021029098 2009-06-05 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_type): Check generic instances.

svn path=/trunk/mono/; revision=135566
2009-06-05 21:56:49 +00:00
Rodrigo Kumpera 70dc3c18c2 2009-06-05 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for array shape.

svn path=/trunk/mono/; revision=135565
2009-06-05 21:56:35 +00:00
Rodrigo Kumpera 9de3fc6cba 2009-06-05 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_type): Check array shape.

svn path=/trunk/mono/; revision=135564
2009-06-05 21:56:24 +00:00
Marek Habersack a45970e198 Fix the 1.1 build
svn path=/trunk/mcs/; revision=135560
2009-06-05 21:10:03 +00:00
Marek Habersack 6a261e04ad 2009-06-05 Marek Habersack <[email protected]>
* VirtualPathUtility.cs: IsValidVirtualPath no longer uses
	WebConfigurationManager.GetSection to retrieve the verification
	setting. Instead, the setting is retrieved in the static
	constructor.

	* HttpRequest.cs: ApplyUrlMapping must not use
	WebConfigurationManager.GetSection as it would cause a recursive
	call loop. Code to detect whether url mappings are in effect has
	been moved to a static constructor.

2009-06-05  Marek Habersack  <[email protected]>

	* Page.cs: InitializeTheme uses WebConfigurationManager.GetSection
	to retrieve page theme name. GetWebApplicationSection cannot be
	used because the system.web/pages section is valid also in
	subdirectories. Fixes bug #510302

2009-06-05  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: OpenWebConfiguration caches
	configurations with a key generated from all the parameters passed
	to it, not just from path.
	Added internal GetSection method which takes HttpContext as its
	third parameter - used in calling OpenWebConfiguration.
	FindWebConfig is no longer used in GetSection - it breaks handling
	of <location> elements in config files. Fixes bug #510302

svn path=/trunk/mcs/; revision=135558
2009-06-05 20:53:26 +00:00
Jb Evain ef049fc166 2009-06-05 Jb Evain <[email protected]>
* Mono.Linker.Steps/MarkStep.cs: fix a nre.
	Based on patch by Andres G. Aragoneses  <[email protected]>.


svn path=/trunk/mcs/; revision=135557
2009-06-05 20:47:20 +00:00
Ivan Zlatev a01012c499 2008-06-05 Ivan N. Zlatev <[email protected]>
* ContextStack.cs: Also check for subclasses in the Type-based
	indexter property.
	[Fixes bug #509151]

svn path=/trunk/mcs/; revision=135546
2009-06-05 18:37:42 +00:00
Sebastien Pouliot 718a9bd3e3 In System/System.Net:
2009-06-05  Sebastien Pouliot  <[email protected]> 

	* DownloadStringCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
	* OpenReadCompletedEventArgs.cs: Remove Address property since it's 
	not part of SL2. Call RaiseExceptionIfNecessary
	* OpenWriteCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
	* UploadStringCompletedEventArgs.cs: Call RaiseExceptionIfNecessary

In System.Net/System.Net:
2009-06-05  Sebastien Pouliot  <[email protected]>

	* WebClient_2_1.cs: Make sure *CompletedEventArgs gets called 
	even in case an exception occurs before the BeginGetResponse 
	call. Adjust API for OpenReadCompletedEventArgs.


svn path=/trunk/mcs/; revision=135545
2009-06-05 18:19:16 +00:00
Sebastien Pouliot 162e6b6477 2009-06-05 Sebastien Pouliot <[email protected]>
* SecurityPermissionFlag.cs: Add [Obsolete] on NET_2_1 since CAS 
	stuff is not available in Moonlight.


svn path=/trunk/mcs/; revision=135544
2009-06-05 18:19:00 +00:00
Jb Evain 70c491a04f 2009-06-05 Jb Evain <[email protected]>
* Mono.Linker.Steps/ResolveFromXmlStep.cs: more ways of choosing fields.


svn path=/trunk/mcs/; revision=135543
2009-06-05 17:54:00 +00:00
Marek Safar 2d36f50709 2009-06-05 Marek Safar <[email protected]>
* Makefile: Fixed NET_2_0 conditional to actually handle Mono.Security
	dependency.


svn path=/trunk/mcs/; revision=135540
2009-06-05 16:27:11 +00:00
Jb Evain 2230659a57 2009-06-05 Jb Evain <[email protected]>
* Mono.Cecil/BaseAssemblyResolver.cs: properly look for the 4.0 corlib
	when running on Mono.


svn path=/trunk/mcs/; revision=135536
2009-06-05 15:09:56 +00:00
Robert Jordan 2ee8aa88d1 2009-06-05 Robert Jordan <[email protected]>
* WebClient.cs (UploadValuesCore): Encode POST arguments with UTF-8.
	Fixes bug #484795.


svn path=/trunk/mcs/; revision=135532
2009-06-05 14:53:24 +00:00
Marek Safar 039fb7a64a 2009-06-05 Marek Safar <[email protected]>
* NetConfigurationHandler.cs, DefaultProxyHandler.cs, 
	NetAuthenticationModuleHandler.cs, ConnectionManagementHandler.cs,
	WebRequestModuleHandler.cs: Always build
	IConfigurationSectionHandler.


svn path=/trunk/mcs/; revision=135529
2009-06-05 14:21:49 +00:00
Marek Safar ba5939a531 2009-06-05 Marek Safar <[email protected]>
* DictionarySectionHandler.cs, NameValueSectionHandler.cs,
	NameValueFileSectionHandler.cs, SingleTagSectionHandler.cs,
	IConfigurationSectionHandler.cs, IgnoreSectionHandler.cs: Always
	build IConfigurationSectionHandler.


svn path=/trunk/mcs/; revision=135528
2009-06-05 14:20:21 +00:00
Jb Evain e5fa2c157d oops
svn path=/trunk/mcs/; revision=135526
2009-06-05 14:04:44 +00:00
Robert Jordan 2206b054f5 2009-06-05 Robert Jordan <[email protected]>
* class.c (mono_class_create_from_typedef): Check only for
	mscorlib's System.Array.


svn path=/trunk/mono/; revision=135525
2009-06-05 13:50:02 +00:00
Jb Evain c4794b40a6 2009-06-05 Jb Evain <[email protected]>
* Mono.Linker.Steps/ResolveFromXmlStep.cs: give us more
	possibilities to detail the xml descriptors.


svn path=/trunk/mcs/; revision=135523
2009-06-05 13:12:52 +00:00
Jb Evain df67c58b98 2009-06-05 Jb Evain <[email protected]>
* driver.cs (EmbededResource): avoid using an internal method
	in gmcs to embed manifest resources.


svn path=/trunk/mcs/; revision=135520
2009-06-05 13:02:28 +00:00
Jb Evain 52b6089b22 2009-06-05 Jb Evain <[email protected]>
* ModuleBuilder.cs (DefineManifestResource): expose during
	BOOTSTRAP_NET_2_0 as well.


svn path=/trunk/mcs/; revision=135519
2009-06-05 12:59:31 +00:00
Atsushi Eno 83edc6dd33 2009-06-05 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : fix GetAttribute() that returns
	  attributes from cache that are *not* in current element.


svn path=/trunk/mcs/; revision=135517
2009-06-05 12:41:56 +00:00
Sebastien Pouliot d22e182ad0 In System.ServiceModel.Channels:
2009-06-05  Sebastien Pouliot  <[email protected]>

	* ClientAccessPolicy.cs: Removed
	* CrossDomainAccessManager.cs: Removed
	* CrossDomainPolicy.cs: Removed
	* HttpRequestChannel.cs: Remove call to CrossDomainAccessManager 
	since this is now done inside the BeginGetResponse call (outside
	this assembly) for Moonlight (NET_2_1)

In .:
2009-06-05  Sebastien Pouliot  <[email protected]>

	* net_2_1_raw_System.ServiceModel.dll.sources: Remove 
	ClientAccessPolicy.cs, CrossDomainPolicy.cs and 
	CrossDomainAccessManager.cs since the code and checks is now done
	inside System.Windows.Browser.dll, by BrowserHttpWebRequest, for
	every non-site-or-origin web connection - i.e. http[s]


svn path=/trunk/mcs/; revision=135513
2009-06-05 12:03:47 +00:00
Atsushi Eno ab539b8623 2009-06-05 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : there was wrong reusage of nodes
	  when the node was at the top of the stack. It was added twice and
	  call to reset resulted in end element with empty names.

	* XmlBinaryDictionaryReaderTest.cs : verify that end element has
	  non-empty local name.


svn path=/trunk/mcs/; revision=135512
2009-06-05 11:51:35 +00:00
Jb Evain 56e79111a8 2009-06-05 Jb Evain <[email protected]>
* Makefile: fix the 2.1 build.


svn path=/trunk/mcs/; revision=135503
2009-06-05 07:45:28 +00:00
Carlos Alberto Cortez ad63db0b22 2009-06-05 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: Properly detect whether we need to use our vertical
	scrollbar or not, specially for DropDownList/DropDown styles,
	depending on the value of DropDownHeight.
	Fixes #508541.


svn path=/trunk/mcs/; revision=135501
2009-06-05 04:43:57 +00:00
Rodrigo Kumpera a0c4251582 2009-06-04 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for type encoding.

	* assembly-with-types.il: Input file with all
	sorts of type encodings.

	* Makefile: Add new dependency.

svn path=/trunk/mono/; revision=135497
2009-06-05 01:20:10 +00:00
Rodrigo Kumpera eddf612714 2009-06-04 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement locals signature check.

2009-06-04 Rodrigo Kumpera  <[email protected]>

	* metadata-verify.c (parse_type): Check pointer, class/valuetype
	and generic params.

	* metadata-verify.c (parse_field): Check the signature.

svn path=/trunk/mono/; revision=135496
2009-06-05 01:20:02 +00:00
Rodrigo Kumpera 2feb5be6eb 2009-06-04 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: LocalsSig tests.

	* assembly-with-locals.il: File with all sort
	of locals sig.

	* Makefile: Add new dependency.

svn path=/trunk/mono/; revision=135495
2009-06-05 01:19:49 +00:00
Rodrigo Kumpera a7ab3c8edd 2009-06-04 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement locals signature check.

svn path=/trunk/mono/; revision=135494
2009-06-05 01:19:41 +00:00
Marek Safar 0370aa2c77 Revert last 2 chances
svn path=/trunk/mcs/; revision=135490
2009-06-04 21:52:42 +00:00
Marek Habersack 60f847468e 2009-06-04 Marek Habersack <[email protected]>
* HttpException.cs:
	Don't generate trace for 403. Fixes bug #509092

svn path=/trunk/mcs/; revision=135488
2009-06-04 21:22:44 +00:00
Marek Habersack 787a9fd5ff 2009-06-04 Marek Habersack <[email protected]>
* AspGenerator.cs: if plain text is parsed and it contains
	server-side controls, parse and process them. Fixes bug #508888

2009-06-04  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/ServerSideControlsInScriptBlock.aspx

2009-06-04  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #508888

svn path=/trunk/mcs/; revision=135486
2009-06-04 21:18:21 +00:00
Marek Safar 3f5d0eb70a This should work
svn path=/trunk/mcs/; revision=135485
2009-06-04 21:12:26 +00:00
Marek Safar 70f7fbf34c Fixes build.
svn path=/trunk/mcs/; revision=135475
2009-06-04 19:52:11 +00:00
Marek Habersack 7b2c6ced86 2009-06-04 Marek Habersack <[email protected]>
* HttpResponse.cs: version header configuration is read lazily
	now.

svn path=/trunk/mcs/; revision=135471
2009-06-04 18:47:55 +00:00
Sebastien Pouliot d1a3c208bd 2009-06-04 Sebastien Pouliot <[email protected]>
* generic.cs, parameter.cs: Avoid using 'var' so we can bootstrap
	the compiler from older mono versions (like moon's bots)


svn path=/trunk/mcs/; revision=135470
2009-06-04 18:42:48 +00:00
Alan McGovern 382c1c1f94 2009-06-04 Alan McGovern <[email protected]>
* HttpRequestChannel.cs : Rewrite ProcessRequest to use the async APIs
	instead of the sync apis. Prevents a possible deadlock condition in
	moonlight. 


svn path=/trunk/mcs/; revision=135467
2009-06-04 18:06:00 +00:00
Zoltan Varga 3c5a0c17d7 Get rid of all references to STATIC_RGCTX_INVOKE to fix the build.
svn path=/trunk/mono/; revision=135466
2009-06-04 18:01:37 +00:00
Marek Habersack 60592e9086 2009-06-04 Marek Habersack <[email protected]>
* HttpException.cs: do not show version info if custom errors are
	in effect. Fixes bug #509092

svn path=/trunk/mcs/; revision=135464
2009-06-04 17:45:05 +00:00
Sebastien Pouliot a59cbb5de4 2009-06-04 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: Remove the creation of threads and use the
	async methods provided by WebRequest (and its friends). Use an
	internal object to lock on (not this). Remove comments from the
	original (mono) WebClient since the code has diverged so much.
	Fix DRT#326 (hopefully others too or at least more than it breaks)


svn path=/trunk/mcs/; revision=135463
2009-06-04 17:40:24 +00:00
Marek Habersack 90b4f380d1 2009-06-04 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: OnFileChanged ignores the directory
	part of the file triggering the event. Fixes bug #509998

2009-06-04  Marek Habersack  <[email protected]>

	* InotifyWatcher.cs: filter pattern should be matched on file name
	alone, not on the relative path of the file triggering the
	event. Fixes bug #509998

svn path=/trunk/mcs/; revision=135460
2009-06-04 17:33:52 +00:00
Zoltan Varga 394ea70cd6 In metadata/
2009-06-04  Zoltan Varga  <[email protected]>

	* wrapper-types.h: Delete STATIC_RGCTX_INVOKE.

	* marshal.c (mono_marshal_ret_static_rgctx_invoke): Remove, no longer
	used.

	* icall.c (ves_icall_System_Delegate_CreateDelegate_internal): Avoid
	adding a static-rgctx invoke wrapper, it is done by the runtime trampolines.

	* generic-sharing.c (inflate_other_data): Ditto.

In mini/
2009-06-04  Zoltan Varga  <[email protected]>

	* aot-compiler.c aot-runtime.c: Delete references to static rgctx
	invoke wrappers, we now use trampolines instead.

svn path=/trunk/mono/; revision=135459
2009-06-04 17:30:02 +00:00
Marek Safar 6a83d5fe50 2009-06-04 Marek Safar <[email protected]>
* domain.c: Add .NET 4.0 Beta 1 version.


svn path=/trunk/mono/; revision=135457
2009-06-04 17:10:56 +00:00
Marek Safar 77f7c6bad0 More work on 4.0 profile
svn path=/trunk/mcs/; revision=135456
2009-06-04 17:08:28 +00:00
Marek Safar 6f1d5e5874 More work on 4.0 profile
svn path=/trunk/mcs/; revision=135454
2009-06-04 16:56:17 +00:00
Marek Safar 20a0fed11c Distribute the profiles
svn path=/trunk/mcs/; revision=135453
2009-06-04 16:54:04 +00:00
Marek Safar 8a3b69787f Distribute new files
svn path=/trunk/mcs/; revision=135449
2009-06-04 16:26:04 +00:00
Marek Safar 3dbf5800a0 New test.
svn path=/trunk/mcs/; revision=135448
2009-06-04 16:10:11 +00:00
Marek Safar 78dd1f6b2c 2009-06-04 Marek Safar <[email protected]>
* namespace.cs (LookupTypeReflection): Ignore collisions between
	forwarded types.


svn path=/trunk/mcs/; revision=135447
2009-06-04 16:08:28 +00:00
Andrés G. Aragoneses c7fa18cd68 r:jb
2009-06-04  Andrés G. Aragoneses  <[email protected]>

        * Mono.Tuner.dll.sources:
        * Mono.Tuner.csproj: Update.
        * Mono.Tuner/InjectSecurityAttributes.cs:
        * Mono.Tuner/MoonlightAssemblyStep.cs: Change some accessibility
        keywords, to be able to override and inherit.
        * Mono.Tuner/MoonlightA11yProcessor.cs:
        * Mono.Tuner/MoonlightA11yAssemblyStep.cs: New steps for a11y.


svn path=/trunk/mcs/; revision=135446
2009-06-04 16:01:59 +00:00
Marek Safar 05e9d0cd4c Removed enabled test.
svn path=/trunk/mcs/; revision=135444
2009-06-04 15:37:09 +00:00
Andrés G. Aragoneses d9143442ef Use better name for variables.
svn path=/trunk/mcs/; revision=135443
2009-06-04 15:37:04 +00:00
Marek Safar 2ab6ca79a8 New test.
svn path=/trunk/mcs/; revision=135441
2009-06-04 15:36:26 +00:00
Marek Safar abbea8abc5 2009-06-04 Marek Safar <[email protected]>
* codegen.cs: Enabled generic type forwarders.


svn path=/trunk/mcs/; revision=135440
2009-06-04 15:34:14 +00:00
Marek Habersack fed07c12c0 2009-06-04 Marek Habersack <[email protected]>
* RouteValueDictionaryExtensions.cs: if both values are strings in
	Has (string, value), compare them case-insensitively. Fixes bug
	#502555

2009-06-04  Marek Habersack  <[email protected]>

	* RouteCollectionTest.cs: added two more test cases to the bug
	#502555 test. They check whether url generation matches defaults
	case-insensitively.

svn path=/trunk/mcs/; revision=135438
2009-06-04 15:31:02 +00:00
Bill Holmes cfdbdef043 2009-06-04 Bill Holmes <[email protected]>
* cominterop.c (cominterop_ccw_queryinterface): Fix for bug 499566.
	  For QueryInterface on CCWs consider the base class
	  interfaces as well.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=135434
2009-06-04 15:26:11 +00:00
Marek Safar 488921f63f Add net_4_0_bootstrap
svn path=/trunk/mcs/; revision=135428
2009-06-04 15:14:23 +00:00
Veerapuram Varadhan 51879b7558 2009-06-04 Veerapuram Varadhan <[email protected]>
* OracleParameter.cs: Infer size only for 2.0 profile when only
	value is passed.  Fixes test failure under 1.1 profile.

svn path=/trunk/mcs/; revision=135427
2009-06-04 15:12:40 +00:00
Marek Safar 8358e16e0c 2009-06-04 Marek Safar <[email protected]>
* dmcs.*: Add another version of SRE compiler.


svn path=/trunk/mcs/; revision=135426
2009-06-04 15:11:19 +00:00
Marek Safar b478db4509 Add BOOTSTRAP_NET_4_0
svn path=/trunk/mcs/; revision=135425
2009-06-04 15:08:38 +00:00
Jb Evain 9ab7149b44 2009-06-04 Jb Evain <[email protected]>
* Mono.Linker.Steps/ResolveFromXmlStep.cs: fix handling
	of wildcards constructors.


svn path=/trunk/mcs/; revision=135423
2009-06-04 15:02:16 +00:00
Zoltan Varga 89c22ded4f 2009-06-04 Zoltan Varga <[email protected]>
* marshal.c metadata.c: Applied patch from Ulrich Weigand
	<[email protected]>: Free the wrappers of inflated generic methods when
	the inflated method is freed. Fixes #508389.

	The code is contributed under the MIT/X11 license.

svn path=/trunk/mono/; revision=135422
2009-06-04 14:53:02 +00:00
Mark Probst c44dc12cb3 Make SGen work on Darwin.
2009-06-04  Mark Probst  <[email protected]>

        * sgen-gc.h: Support for Darwin by using named semaphores and
        pthread conditions instead of unnamed semaphores.

2009-06-04  Mark Probst  <[email protected]>

        * mini-darwin.c: The exception thread must not be registered with
        the GC.

svn path=/trunk/mono/; revision=135421
2009-06-04 14:49:37 +00:00
Marek Safar 56331b603d Fixes build.
svn path=/trunk/mcs/; revision=135417
2009-06-04 14:39:59 +00:00
Jb Evain cefad88675 2009-06-04 Jb Evain <[email protected]>
* Makefile: fix the 2.1 profile version.


svn path=/trunk/mcs/; revision=135413
2009-06-04 13:17:25 +00:00
Marek Safar 472d1c4722 2009-06-04 Marek Safar <[email protected]>
* Consts.cs.in: Add NET_4_0 constants.


svn path=/trunk/mcs/; revision=135408
2009-06-04 11:33:57 +00:00
Mark Probst 6cda12925b Disable mini-gc.c because it makes SGen crash.
2009-06-04  Mark Probst  <[email protected]>

        * mini-gc.c: Disable the code because it makes SGen crash.

svn path=/trunk/mono/; revision=135405
2009-06-04 11:28:49 +00:00
Marek Safar 46013d5e5b Should fixed the build.
svn path=/trunk/mcs/; revision=135398
2009-06-04 08:42:04 +00:00
Jb Evain ecedd57486 2009-06-04 Jb Evain <[email protected]>
* resources/SR.resx: adjust file names.
	* Mono.Data.Sqlite.dll.sources: rename from
		net_2_0_Mono.Data.Sqlite.dll.sources.
		Hopefully fixes the build.


svn path=/trunk/mcs/; revision=135395
2009-06-04 07:27:57 +00:00
Rodrigo Kumpera f9e5bb71f6 2009-06-03 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: PropertySig tests.

	* assembly-with-properties.cs: Add property with
	parameters.

svn path=/trunk/mono/; revision=135385
2009-06-04 02:28:05 +00:00
Rodrigo Kumpera e79a53274c 2009-06-03 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement property signature check.

svn path=/trunk/mono/; revision=135384
2009-06-04 02:27:57 +00:00
Mark Probst 1fc79d9141 SGen register saving support for PPC.
2009-06-04  Mark Probst  <[email protected]>

        * sgen-gc.h: Register saving support for PPC.

svn path=/trunk/mono/; revision=135371
2009-06-03 23:08:48 +00:00
Mark Probst 6da2a007c4 Fixed a pthread TLS screwup.
2009-06-04  Mark Probst  <[email protected]>

        * sgen-gc.c: Fixed a pthread TLS screwup.

svn path=/trunk/mono/; revision=135370
2009-06-03 23:06:30 +00:00
Mark Probst 0fcba2de6b Do TLS using pthreads if __thread keyword not supported.
2009-06-04  Mark Probst  <[email protected]>

        * sgen-gc.c: Do TLS using pthread API if __thread keyword is not
        supported.

svn path=/trunk/mono/; revision=135368
2009-06-03 23:02:01 +00:00
Mark Probst a9a32e5ea3 Disable TLA and managed allocation if __thread not supported.
2009-06-04  Mark Probst  <[email protected]>

        * sgen-gc.c: Disable TLA and managed allocation if the __thread
        keyword is not supported.

svn path=/trunk/mono/; revision=135367
2009-06-03 22:59:23 +00:00
Marek Habersack 86ca037972 Forgotten ChangeLog
svn path=/trunk/mcs/; revision=135359
2009-06-03 21:37:00 +00:00
Marek Habersack 7592e14a96 Mono changes:
- renamed all public classes from SQLite* to Sqlite*
	- re-added Mono compatibility code for command string parsing
	- re-applied several patches from the past

svn path=/trunk/mcs/; revision=135357
2009-06-03 21:34:22 +00:00
Marek Habersack 09a5205cd9 - Moved all classes to the Mono.Data.Sqlite namespace.
- Applied changes to make the sources compile (added using statements, modified code to use fully qualified type names in some places)
- Modified AssemblyInfo.cs to reference correct public key, commented out InternalsVisibleTo for the upstream Linq library, changed the
  version to 2.0.0.0

svn path=/trunk/mcs/; revision=135356
2009-06-03 21:33:40 +00:00
Marek Habersack 05225d961d Build will use per-profile source lists
svn path=/trunk/mcs/; revision=135355
2009-06-03 21:33:04 +00:00
Marek Habersack 282de3b7ab Imported version 1.0.61.0 of SQLite.NET
svn path=/trunk/mcs/; revision=135354
2009-06-03 21:32:15 +00:00
Michael Barker 163810f640 2009-05-23 Michael Barker <[email protected]>
* MessageEnumerator.cs:  Added calls to the delegate IMessageEnumerator
	for methods that use a timeout and added exception handling.
	* MessageEnumeratorTest.cs:  Added tests for timeout methods.
	* MessageFactory.cs: Moved TimeSpanToInt32 method to here.
	* RabbitMQMessageEnumerator.cs:  Added Remove/MoveNext methods that include
	timeouts.
	* RabbitMQMessageQueue.cs: Updated to cater for moved TimeSpanToInt32 method
	* MessageEnumeratorExceptionTest.cs:  New
	* QueueReferenceTest.cs: Incorrect namespace for test
	* IMessageEnumerator.cs:  Added additional methods to support operations
	specified by the System.Messaging version.
	* Mono.Messaging_test.dll.sources:  Added MessageEnumeratorExceptionTest.cs
	* Makefile:  Added nunit-mocks.dll to build


svn path=/trunk/mcs/; revision=135338
2009-06-03 18:57:25 +00:00
Jb Evain 9a2c323408 2009-06-03 Jb Evain <[email protected]>
* main.c (dis_code): don't try to locate invalid entry points.


svn path=/trunk/mono/; revision=135337
2009-06-03 18:56:22 +00:00
Jb Evain a4611092b7 2009-06-03 Jb Evain <[email protected]>
* main.c (dis_type): espace namespaces.


svn path=/trunk/mono/; revision=135334
2009-06-03 18:42:49 +00:00
Marek Habersack 3346c35db8 2009-06-03 Marek Habersack <[email protected]>
* MonoSettingsSection.cs: added new property,
	verificationCompatibility, which serves the same purpose as the
	registry key described in http://support.microsoft.com/kb/932552
	(when set to 1 it turns off virtual path validity
	verification). Fixes bug #509163

2009-06-03  Marek Habersack  <[email protected]>

	* VirtualPathUtility.cs: IsValidVirtualPath now checks the value
	of the
	HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\VerificationCompatibility
	registry key when running on Windows and also consults the
	mono-specific system.web/monoSettings configuration section to see
	what is the verificationCompatibility property set to. If either
	of the two is set to 1, Mono will not verify the validity of
	the current request's path. Fixes bug #509163

svn path=/trunk/mcs/; revision=135328
2009-06-03 17:55:10 +00:00
Marek Safar 6f667408d9 Add handling of new net_4_0 profile
svn path=/trunk/mcs/; revision=135326
2009-06-03 17:46:12 +00:00
Marek Safar 80d2ae0f80 2009-06-03 Marek Safar <[email protected]>
* Func.cs: Add 4.0 forwarders.


svn path=/trunk/mcs/; revision=135323
2009-06-03 17:32:14 +00:00
Marek Habersack 8e5619574f 2009-06-03 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: OnFileChanged must check whether the
	modified location is a directory before it decides to ignore it
	when watcher's filter is "?eb.?config". Fixes bug #509450 (see
	also bug #495011)

svn path=/trunk/mcs/; revision=135313
2009-06-03 16:32:10 +00:00
Marek Habersack c635d98504 2009-06-03 Marek Habersack <[email protected]>
* HttpForbiddenHandler.cs: updated the error message to match
	.NET, added requested path and description. Fixes bug #509092

	* HttpException.cs: if trace is not requested, don't output <!--
	following the version information in WriteFileBottom. Fixes bug
	#509475
	GetDefaultErrorMessage appends trace only if showTrace is
	true. Fixes bug #509092

svn path=/trunk/mcs/; revision=135307
2009-06-03 15:44:01 +00:00
Veerapuram Varadhan 4530a2494e 2009-06-03 Veerapuram Varadhan <[email protected]>
* OracleParameterTest.cs: Mark tests for bug #424908 as NotWorking
        as it requires some more thorough debugging.

svn path=/trunk/mcs/; revision=135305
2009-06-03 15:28:59 +00:00
Jb Evain 061e73bd7f update scripts
svn path=/trunk/mcs/; revision=135301
2009-06-03 15:18:06 +00:00
Jb Evain 2c93b521c4 fix the call to mono-api-info
svn path=/trunk/mcs/; revision=135299
2009-06-03 14:59:32 +00:00
Jb Evain 2b18ff4c9c fix resolver
svn path=/trunk/mcs/; revision=135298
2009-06-03 14:57:55 +00:00
Jb Evain 59da8539b1 2009-06-03 Jb Evain <[email protected]>
* Mono.Cecil/MetadataResolver.cs: add support for resolving from
	a ModuleReference.


svn path=/trunk/mcs/; revision=135297
2009-06-03 14:54:44 +00:00
Marek Safar da51131e23 Add 4.0 stuff
svn path=/trunk/mcs/; revision=135292
2009-06-03 13:54:37 +00:00
Marek Safar e43630360d eol-style
svn path=/trunk/mcs/; revision=135290
2009-06-03 13:53:26 +00:00
Jb Evain 84d7e0f629 2009-06-03 Jb Evain <[email protected]>
* Mono.Cecil/BaseAssemblyResolver.cs: look for 4.0.0.0 assemblies.


svn path=/trunk/mcs/; revision=135287
2009-06-03 13:28:56 +00:00
Atsushi Eno af95841abe 2009-06-03 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : that SL2/ML2 does not seem to allow
          null callbacks, so add hacky ones.


svn path=/trunk/mcs/; revision=135285
2009-06-03 13:14:49 +00:00
Marek Safar da9bc59642 New test.
svn path=/trunk/mcs/; revision=135284
2009-06-03 13:10:52 +00:00
Marek Safar 3c21a1ed87 New tests.
svn path=/trunk/mcs/; revision=135283
2009-06-03 13:10:39 +00:00
Marek Safar 2cb65ee488 2009-06-03 Marek Safar <[email protected]>
* generic.cs, typemanager.cs, parameter.cs, convert.cs,
	generic-mcs.cs: Fixed variant type conversions.


svn path=/trunk/mcs/; revision=135282
2009-06-03 13:10:19 +00:00
Zoltan Varga 1118081c4b 2009-06-03 Zoltan Varga <[email protected]>
* marshal.c (get_wrapper_target_class): New helper function.
	(mono_marshal_get_runtime_invoke): Place runtime-invoke wrappers into
	the <Module> class of the image. Fixes #509049.

svn path=/trunk/mono/; revision=135280
2009-06-03 11:27:41 +00:00
Zoltan Varga 9f09810578 Fix the previous change.
svn path=/trunk/mono/; revision=135254
2009-06-02 22:58:42 +00:00
Rodrigo Kumpera da1346e4fd 2009-06-02 Rodrigo Kumpera <[email protected]>
* ILGenerator.cs (EmitCall): Under 2.0 profile ignore optional
	arguments if the method call conv is not vararg.

2009-06-02 Rodrigo Kumpera  <[email protected]>

	* ILGeneratorTest.cs: Tests for #509131.

svn path=/trunk/mcs/; revision=135251
2009-06-02 22:30:57 +00:00
Zoltan Varga f0a26a0446 2009-06-03 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Handle file open errors gracefully
	instead of asserting.

svn path=/trunk/mono/; revision=135249
2009-06-02 22:18:09 +00:00
Gonzalo Paniagua Javier b803228aad 2009-06-02 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: KeepAlive check not needed.
	Fixes bug #465613.


svn path=/trunk/mcs/; revision=135246
2009-06-02 22:13:45 +00:00
Zoltan Varga d0da8828d9 2009-06-03 Zoltan Varga <[email protected]>
* profiles/net_4_0.make: Add preliminary net 4.0 profile.

svn path=/trunk/mcs/; revision=135245
2009-06-02 22:11:40 +00:00
Gonzalo Paniagua Javier ef06a7c25b 2009-06-02 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs: unbind the context after every read for keep-alive
	connections.
	Bug #502274 fixed.


svn path=/trunk/mcs/; revision=135241
2009-06-02 21:42:31 +00:00
Marek Habersack 8f225cf892 2009-06-02 Marek Habersack <[email protected]>
* HttpApplication.cs: LocateHandler needs to pass current request
	path and filepath to WebConfigurationManager when retrieving
	system.web/httpHandlers section as only this will guarantee that
	any <location> elements relating to the current request's which
	contain system.web/httpHandlers section will be correctly read and
	used. Also fixes reading httpHandlers section if it's found in
	web.config located in a subdirectory. Fixes bug #509069

svn path=/trunk/mcs/; revision=135237
2009-06-02 21:26:57 +00:00
Bill Holmes bad8da7a7c 2009-06-02 Bill Holmes <[email protected]>
* src/gpath.c (g_find_program_in_path):  While searching on Windows
	  also try additional suffixes .exe, .cmd, .bat, and.com.

	Contributed under MIT/X11 license.



svn path=/trunk/mono/; revision=135235
2009-06-02 21:05:53 +00:00
Veerapuram Varadhan dcd2eb9f91 2009-06-03 Veerapuram Varadhan <[email protected]>
* OracleParameter.cs:  If a non-zero size is passed, update
	the size member but sizeSet is updated only when a non-null
	value is passed.

svn path=/trunk/mcs/; revision=135234
2009-06-02 21:00:18 +00:00
Gonzalo Paniagua Javier a5557351c4 2009-06-02 Gonzalo Paniagua Javier <[email protected]>
* BuildManager.cs: allow deployment of precompiled applications under
	any virtual path, not just the default one used when precompiling.
	Fixes bug #483268.


svn path=/trunk/mcs/; revision=135231
2009-06-02 20:38:02 +00:00
Marek Habersack 6595f580da 2009-06-02 Marek Habersack <[email protected]>
* HttpException.cs: 403 errors get same treatment as 404
	below. Fixes bug #509092

svn path=/trunk/mcs/; revision=135205
2009-06-02 15:26:18 +00:00
Andrés G. Aragoneses 78cae3e4bd * tuner/Mono.Tuner.csproj: Update.
* tuner/Mono.Tuner/InjectSecurityAttributes.cs: Avoid NRE.

svn path=/trunk/mcs/; revision=135204
2009-06-02 15:09:36 +00:00
Marek Safar d2bae0a896 New test.
svn path=/trunk/mcs/; revision=135197
2009-06-02 12:42:56 +00:00
Marek Safar 2e113704e9 2009-06-02 Marek Safar <[email protected]>
A fix for bug #508334
	* codegen.cs: Fixes a crash on invalid string value attribute.


svn path=/trunk/mcs/; revision=135196
2009-06-02 12:42:00 +00:00
Marek Safar 7842809745 2009-06-02 Marek Safar <[email protected]>
* compiler-tester.cs: Add "safe-execution" options.


svn path=/trunk/mcs/; revision=135195
2009-06-02 11:23:45 +00:00
Carlos Alberto Cortez dd31c16dcd 2009-06-01 Carlos Alberto Cortez <[email protected]>
* ToolTip.cs: Call the base implementation in Dispose, but do it
	before anything else to avoid a regression. This way we do the default
	routines related to any System.ComponentModel.Container.
	Fixes #508586.


svn path=/trunk/mcs/; revision=135174
2009-06-02 04:20:11 +00:00
Rodrigo Kumpera 239a7778fa 2009-06-01 Rodrigo Kumpera <[email protected]>
* threads.c (ves_icall_System_Threading_Thread_Sleep_internal):
	Check if the thread was interrupted and proccess it straight away.
	Makes abortion much more responsive.

svn path=/trunk/mono/; revision=135171
2009-06-02 02:25:35 +00:00
Rodrigo Kumpera 9f32aeb0c5 2009-06-01 Rodrigo Kumpera <[email protected]>
* threads.c (mono_thread_execute_interruption): Use atomic cas with
	MonoThread::interruption_requested to match it's counterpart.

	Fixes a hang in abort-stress-1 on a 2 core x86.

	* threads.c (ves_icall_System_Threading_Thread_GetAbortExceptionState):
	Fix warning.

svn path=/trunk/mono/; revision=135170
2009-06-02 01:36:56 +00:00
Sebastien Pouliot 5712ee7b18 2009-06-01 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Avoid possible NRE while settings a
	complete collection.
	* WebResponse_2_1.cs: Use StringComparer.OrdinalIgnoreCase on 
	the prefix Dictionary


svn path=/trunk/mcs/; revision=135169
2009-06-01 23:50:21 +00:00
Rodrigo Kumpera e8fa3094d1 2009-06-01 Rodrigo Kumpera <[email protected]>
Change MonoImage::name_cache to be protected by the image lock
	instead of the loader lock.

	* appdomain.c (deregister_reflection_info_roots): Protect access
	to name_cache.

	* class.c (mono_image_init_name_cache): Change from the loader lock
	to the image lock. Check if the cache wasn't already created.

	* class.c: Change from the loader to the image lock.

	* icall.c (ves_icall_System_Reflection_Assembly_GetNamespaces): Fix
	the code to hold the image lock while iterating over name_cache and
	not go into mono_array_new holding it.

	* metadata-internals.h: Add a comment about this change.

svn path=/trunk/mono/; revision=135168
2009-06-01 23:49:49 +00:00
Rodrigo Kumpera 62a320340d 2009-06-01 Rodrigo Kumpera <[email protected]>
* load-exceptions.cs: Fix thiko.

svn path=/trunk/mono/; revision=135167
2009-06-01 23:49:31 +00:00
Rodrigo Kumpera a9a9e91e59 2009-06-01 Rodrigo Kumpera <[email protected]>
* load-exceptions.cs: Test for #508532.

	* load-missing.il: Ditto.

svn path=/trunk/mono/; revision=135160
2009-06-01 22:02:29 +00:00
Rodrigo Kumpera 16e367d14d 2009-06-01 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_System_Reflection_Assembly_InternalGetType):
	Under the 2.0 profile raise the loader error.

	Fixes #508532.

svn path=/trunk/mono/; revision=135159
2009-06-01 22:02:19 +00:00
Rodrigo Kumpera 64df5a9266 2009-06-01 Rodrigo Kumpera <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Emit the right kind
	of ldind opcode for generic instances so we don't fail for direct wrappers.
	This only affect direct calls.

svn path=/trunk/mono/; revision=135158
2009-06-01 22:02:02 +00:00
Carlos Alberto Cortez 6c3ad79f5e 2009-06-01 Carlos Alberto Cortez <[email protected]>
* ClipboardTest.cs: New test for serializable types.


svn path=/trunk/mcs/; revision=135154
2009-06-01 21:04:35 +00:00
Carlos Alberto Cortez 7a0d5d3331 2009-06-01 Carlos Alberto Cortez <[email protected]>
* Clipboard.cs:
	* XplatUIX11.cs:
	* DataFormats.cs: Implement support for serializable types in our
	clipboard.
	Fixes #357642.


svn path=/trunk/mcs/; revision=135152
2009-06-01 21:03:09 +00:00
Marek Habersack 281b22f9fa 2009-06-01 Marek Habersack <[email protected]>
* HttpException.cs: if custom errors are enabled and the error
	code is 404 show the "standard" 404 error message instead of the
	default custom error mode one. Fixes bug #508649

2009-06-01  Marek Habersack  <[email protected]>

	* BuildManager.cs: when throwing a 404 exception, pass the virtual
	path to the exception constructor.

svn path=/trunk/mcs/; revision=135147
2009-06-01 20:43:24 +00:00
Marek Habersack f0030bbb27 2009-06-01 Marek Habersack <[email protected]>
* AspGenerator.cs: fix mapping of our tag types into
	CodeConstructType. Fixes bug #508570

svn path=/trunk/mcs/; revision=135144
2009-06-01 20:17:55 +00:00
Marek Habersack f247653485 2009-06-01 Marek Habersack <[email protected]>
* MetaModelTest.cs: disabled GetActionPath test - nothing to test
	there.

2009-06-01  Marek Habersack  <[email protected]>

	* MetaModel.cs: GetModel throws InvalidOperationException on
	missing model.
	Implemented GetActionPath and GetTable.

svn path=/trunk/mcs/; revision=135136
2009-06-01 18:35:41 +00:00
Marek Habersack e39f408251 2009-06-01 Marek Habersack <[email protected]>
* ClientScriptManager.cs: WriteHiddenFields doesn't add the id
	attribute to generated input element in the 1.1 profile. Fixes bug
	#508167. Patch from Hubert FONGARNAND
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=135134
2009-06-01 18:22:04 +00:00
Marek Habersack 33404a51a3 Moved Test/System.Web.DynamicData/TestStubTypes.cs to Test/Common/TestStubTypes.cs
svn path=/trunk/mcs/; revision=135133
2009-06-01 18:21:52 +00:00
Marek Habersack 2e0a1fad49 Added custom data sources, updated some MetaModel tests, added Mainsoft web testing framework, added some common classes used by tests, made System.DynamicData_test.dll a friend to System.Web.dll
svn path=/trunk/mcs/; revision=135132
2009-06-01 18:21:35 +00:00
Marek Habersack a38b9350f1 Added nunit.mocks.dll to the set of NUnit libraries used by test targets
svn path=/trunk/mcs/; revision=135131
2009-06-01 18:21:22 +00:00
Marek Safar 812752d82a New test.
svn path=/trunk/mcs/; revision=135125
2009-06-01 16:16:00 +00:00
Marek Safar bbd42ef193 New test.
svn path=/trunk/mcs/; revision=135124
2009-06-01 16:15:02 +00:00
Marek Safar 9a613bd32f 2009-06-01 Marek Safar <[email protected]>
A fix for bug #508334
	* typemanager.cs, parameter.cs, convert.cs, expression.cs, ecore.cs,
	cs-parser.jay: Fully import __arglist modifier.


svn path=/trunk/mcs/; revision=135123
2009-06-01 16:11:18 +00:00
Atsushi Eno c3abee4dfd 2009-06-01 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : WaitForMessage() should not return
	  true when socket input is not available.


svn path=/trunk/mcs/; revision=135117
2009-06-01 10:17:26 +00:00
Atsushi Eno e27bfb8a6c 2009-06-01 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : handle more errors gracefully.


svn path=/trunk/mcs/; revision=135116
2009-06-01 10:16:13 +00:00
Atsushi Eno 56d3f9a51e 2009-06-01 Atsushi Enomoto <[email protected]>
* CustomPeerResolverService.cs : Refresh() now gives readable reply.


svn path=/trunk/mcs/; revision=135114
2009-06-01 09:31:34 +00:00
Atsushi Eno 4fa6a38e3a 2009-06-01 Atsushi Enomoto <[email protected]>
* XmlFormatterSerializer.cs, KnownTypeCollection.cs : collection
	  types does not emit xsi:type when the actual type is different
	  from the nominal serilaization type. To achieve this, introduced
	  the idea of the actual serialization type.

	* XmlObjectSerializerTest.cs : enable interface collection test and
	  add some more test lines.


svn path=/trunk/mcs/; revision=135111
2009-06-01 08:17:24 +00:00
Zoltan Varga f8535d577e 2009-05-31 Zoltan Varga <[email protected]>
* reflection.c (create_dynamic_mono_image): Fix warnings.

	* generic-sharing.c (other_info_equal): Ditto.

svn path=/trunk/mono/; revision=135108
2009-05-31 21:34:47 +00:00
Zoltan Varga 47282075fc 2009-05-31 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Move the creation of the
	output file after the code has been compiled.

svn path=/trunk/mono/; revision=135107
2009-05-31 21:21:35 +00:00
Zoltan Varga 547ebbdb45 2009-05-31 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Get rid of the shared/non-shared got
	entries distinction to simplify the code.

	* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=135106
2009-05-31 21:16:02 +00:00
Zoltan Varga 8b5d441fac 2009-05-30 Zoltan Varga <[email protected]>
* tramp-ppc.c (mono_arch_get_static_rgctx_trampoline): Fix 64 bit support.

svn path=/trunk/mono/; revision=135095
2009-05-30 18:19:00 +00:00
Zoltan Varga 642b03592a 2009-05-29 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

       * template_main.c: Include string.h to define strchr, memcpy,
       and strdup.

svn path=/trunk/mcs/; revision=135093
2009-05-30 13:41:01 +00:00
Rodrigo Kumpera b2e9252bd0 2009-05-29 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: FieldSig tests.

svn path=/trunk/mono/; revision=135088
2009-05-29 21:45:29 +00:00
Rodrigo Kumpera 9ebf95db6a 2009-05-29 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement field signature check.

svn path=/trunk/mono/; revision=135087
2009-05-29 21:45:16 +00:00
Rodrigo Kumpera 56d33ea935 2009-05-29 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: StandAloneSig tests.

	* assembly-with-custommod.il: Added a calli

svn path=/trunk/mono/; revision=135085
2009-05-29 20:50:23 +00:00
Rodrigo Kumpera ed3c4e6349 2009-05-29 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement standalone signature check.

svn path=/trunk/mono/; revision=135084
2009-05-29 20:50:13 +00:00
Marek Safar 45759e780e New tests, updates.
svn path=/trunk/mcs/; revision=135081
2009-05-29 19:44:40 +00:00
Marek Safar 8e2c015847 New tests.
svn path=/trunk/mcs/; revision=135080
2009-05-29 19:44:21 +00:00
Marek Safar cbf32032f2 2009-05-29 Marek Safar <[email protected]>
* generic.cs, typemanager.cs, parameter.cs, ecore.cs, class.cs,
	delegate.cs, generic-mcs.cs: Rewrote type variance checks to
	actually work with closed generic types.


svn path=/trunk/mcs/; revision=135079
2009-05-29 19:44:03 +00:00
Marek Habersack 540708a71f 2009-05-29 Marek Habersack <[email protected]>
* ListItem.cs: when tracking view state is turned on after
	attributes have been set, make sure that the associated state bag
	begins tracking state and that all of its existing items are
	marked as dirty. Do the same after loading view state. Fixes bug
	#507836

2009-05-29  Marek Habersack  <[email protected]>

	* StateBag.cs: made SetDirty (bool) available on 1.1 as
	internal. Fixes bug #507836

svn path=/trunk/mcs/; revision=135057
2009-05-29 10:25:35 +00:00
Atsushi Eno 7bc65322fe 2009-05-29 Atsushi Enomoto <[email protected]>
* CustomPeerResolverService.cs : implement some members.


svn path=/trunk/mcs/; revision=135054
2009-05-29 09:06:35 +00:00
Atsushi Eno 22a8b39441 2009-05-29 Atsushi Enomoto <[email protected]>
* RegisterResponseInfo.cs : it does not always reply lifetime.


svn path=/trunk/mcs/; revision=135053
2009-05-29 09:05:54 +00:00
Atsushi Eno 8519255aae 2009-05-29 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : allow mapping an identical prefix
	  to different xmlns in different element level.

	* XmlBinaryDictionaryWriterTest.cs : added test for failing duplicate
	  namespace declaration in the same element context.


svn path=/trunk/mcs/; revision=135052
2009-05-29 08:12:47 +00:00
Atsushi Eno c48581fd72 2009-05-29 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : allow writing xml/xmlns attributes
	  without specifying their corresponding namespaces.

	* XmlBinaryDictionaryWriter.cs : added test for writing xml/xmlns
	  attributes with null namespace.


svn path=/trunk/mcs/; revision=135051
2009-05-29 07:50:45 +00:00
Marek Habersack 9a0870f6a1 Hush compilation warnings
svn path=/trunk/mcs/; revision=135050
2009-05-29 07:48:14 +00:00
Atsushi Eno fb62ee47c1 2009-05-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : Moved tcp listener accept to OnOpen().
	  I cannot precisely identify when EndRecord should be consumed,
	  so allow it at either at the end of ReadSizedMessage() or on
	  consuming preamble (it's likely handling EndRecord of previous
	  message though).

	  Now duplex IPeerResolverContract communication works between
	  either of .NET/Mono client and .NET/Mono server.


svn path=/trunk/mcs/; revision=135046
2009-05-29 07:27:16 +00:00
Atsushi Eno 5d79d1dc91 2009-05-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : looks like I have added some bogus
	  code. Handle preamble ack on ReadSizedMessage() only at server.
	  Consume EndRecord from server, at client side. Though it is likely
	  changed as it's blocking when mono is at server side.


svn path=/trunk/mcs/; revision=135044
2009-05-29 06:33:50 +00:00
Atsushi Eno 45bf2c7c45 2009-05-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : .NET seems to be based on somewhat
	  different protocol than existing code with related to preamble ack.
	  So changed it to work fine with .NET client (finally).


svn path=/trunk/mcs/; revision=135043
2009-05-29 04:05:16 +00:00
Rodrigo Kumpera 50275053ad 2009-05-28 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Methodref signature tests.

	* assembly-with-signatures.cs: File with vararg call.

	* Makefile: Add new dependency.

svn path=/trunk/mono/; revision=135039
2009-05-29 01:57:21 +00:00
Rodrigo Kumpera 62a79435af 2009-05-28 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement methodref signature check.

svn path=/trunk/mono/; revision=135038
2009-05-29 01:57:12 +00:00
Ankit Jain 5348f6719a Correctly handle global properties. Correctly log
project/build events.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
	Correctly handle global properties. Correctly log
	project/build events.

	* BuildPropertyGroup.cs (Clone): Implement.
	* Engine.cs (globalProperties): Rename to ..
	(global_properties): .. this.
	(currentlyBuildingProjectsStack): New. Used to correctly
	log and raise project/build start/finish events.
	(BuildProjectFile): Override any project global properties
	with explicitly specified ones, here in the param @globalProperties.
	Mark project for reevaluation, which will update the engine's
	global properties also.
	Reset both engine and project's old global properties at the end.
	(UnregisterAllLoggers): Log build finished only if we are currently
	building.
	(StartBuild): Rename to ..
	(StartProjectBuild): .. this. Keeps track of the projects being built
	in the new stack, and logs project and build events accordingly.
	(EndProjectBuild): New. Uses the stack to keep track of projects
	finishing builds, and raises project and build events accordingly.
	(LogProjectStarted): Move here from Project.cs
	(LogProjectFinished): Likewise.

	* Project.cs (Build): Log start of project build.
	Set current directory to the project file's dir, and reset at end.
	(BuildInternal): Don't log here, its done in Build.
	(BuildTarget): Already built targets are keyed by the set of global
	properties that they were built with.
	(GlobalPropertiesToString): New.
	(ResetBuildStatus): 'building' must be true to allow built targets to be reset.
	(RemoveBuiltTargets): Initialize builtTargetKeys in .ctor
	(Evaluate): Remove built targets only if we are currently building and
	build settings are None.
	Merge project's global properties with those of the parent engine.
	Add missing properties from engine's global properties.
	(LogTargetSkipped): Fix format string, add the reqd argument.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* EngineTest.cs (TestGlobalProperties*): New tests
	and some helper methods.
	* ProjectTest.cs (TestResetBuildStatus): Reset twice. Update
	the event counts.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* TestMessageLogger.cs: Add counts for project/build start/finish
	events.

svn path=/trunk/mcs/; revision=135019
2009-05-28 23:22:02 +00:00
Ankit Jain ab0378bf54 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* ConditionFunctionExpression.cs: Add 'HasTrailingSlash' function.
	(HasTrailingSlash): New.

In class/Microsoft.Build.Engine/Test/various:

	* Conditions.cs (TestHasTrailingSlash1): New.
	(TestUnknownFunction): New.

svn path=/trunk/mcs/; revision=135018
2009-05-28 23:21:40 +00:00
Massimiliano Mantione 4a7cb1f9fb Avoid tracking stacks and emitting allocation caller information if we are already emitting method enter and exit events.
svn path=/trunk/mono/; revision=135002
2009-05-28 21:19:30 +00:00
Zoltan Varga 4222a0512e Revert the last change, the saving and non-saving code is too tighly interleaved
now.

svn path=/trunk/mono/; revision=134993
2009-05-28 20:48:02 +00:00
Mark Probst 1bd5a2f130 Fix SLE10 PPC build.
2009-05-28  Mark Probst  <[email protected]>

	* collection.c (_wapi_collection_init): If pthread_create() fails,
	try again with larger and then with no stack size set.  Fixes
	#470336.

svn path=/trunk/mono/; revision=134985
2009-05-28 19:42:20 +00:00
Zoltan Varga 1a6fa9fed3 2009-05-28 Zoltan Varga <[email protected]>
* reflection-save.c: New file, a copy of reflection.c which will contain
	the reflection.emit AssemblyBuilder.Save related code. Not part of the build
	yet.

svn path=/trunk/mono/; revision=134972
2009-05-28 17:03:00 +00:00
Atsushi Eno db1b22949a 2009-05-28 Atsushi Enomoto <[email protected]>
* RegisterResponseInfo.cs : oops, Marcos was right. .NET returns
	  "Update" element here.


svn path=/trunk/mcs/; revision=134971
2009-05-28 16:58:31 +00:00
Atsushi Eno b1d393553b 2009-05-28 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : for default / shared type map, members are
	  serialized in alphabetical order.


svn path=/trunk/mcs/; revision=134970
2009-05-28 16:53:15 +00:00
Andrés G. Aragoneses e7e0444c15 2009-05-28 Andrés G. Aragoneses <[email protected]>
* Mono.Tuner/InjectSecurityAttributes.cs: show a warning if using
        the MoonlightAssemblyStep but no secattr option is specified.


svn path=/trunk/mcs/; revision=134969
2009-05-28 16:41:08 +00:00
Atsushi Eno 522c7da3b6 2009-05-28 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : generic interface search has to be more
	  complicated. Give kind error message on setting deserialized value.


svn path=/trunk/mcs/; revision=134963
2009-05-28 15:35:32 +00:00
Atsushi Eno b6f13aa839 2009-05-28 Atsushi Enomoto <[email protected]>
* SerializationMap.cs: collection interface cannot be instantiated,
	  so create List<T> (generic) or ArrayList (non-generic) instead.


svn path=/trunk/mcs/; revision=134962
2009-05-28 15:14:38 +00:00
Atsushi Eno 11c5ddbb44 2009-05-28 Atsushi Enomoto <[email protected]>
* ServiceSettingsResponseInfo.cs, RegisterResponseInfo.cs,
	  RefreshResponseInfo.cs, ResolveInfo.cs, UpdateInfo.cs,
	  UnregisterInfo.cs, ResolveResponseInfo.cs, RefreshInfo.cs :
	  set explicit namespaces on DataContract so that their members can
	  be serialized in appropriate namespace (namespaces in
	  MessageBodyMemberAttribute does not apply there).


svn path=/trunk/mcs/; revision=134956
2009-05-28 14:32:36 +00:00
Atsushi Eno d403559714 2009-05-28 Atsushi Enomoto <[email protected]>
* MessageBufferImpl.cs : do not output Action twice.


svn path=/trunk/mcs/; revision=134955
2009-05-28 14:30:23 +00:00
Atsushi Eno cb495e2901 2009-05-28 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : fill ProtectionLevel by
	  OperationContractAttribute.


svn path=/trunk/mcs/; revision=134954
2009-05-28 14:29:37 +00:00
Zoltan Varga fa376f2302 2009-05-28 Zoltan Varga <[email protected]>
* objects.cs: Fix the signature of one of the tests.

svn path=/trunk/mono/; revision=134950
2009-05-28 14:07:07 +00:00
Zoltan Varga 55ad8de7e4 2009-05-28 Zoltan Varga <[email protected]>
* mini.c (mini_create_ftnptr): New helper function, moved here from
	object.c.
	(mini_get_addr_from_ftnptr): Ditto.
	(mini_init): Install the new helpers.

svn path=/trunk/mono/; revision=134948
2009-05-28 13:59:01 +00:00
Zoltan Varga ef17f74458 2009-05-28 Zoltan Varga <[email protected]>
* object-internals.h (MonoRuntimeCallbacks): New structure containing
	callbacks supplied by the runtime.

	* object.c (mono_install_callbacks): New internal function to install
	the callbacks.

	* object.c (mono_create_ftnptr): Move the implementation of this to
	mini/.

	* object.c (mono_get_addr_from_ftnptr): Ditto.

svn path=/trunk/mono/; revision=134947
2009-05-28 13:58:54 +00:00
Marek Habersack 2bdcd3f9d8 2009-05-28 Marek Habersack <[email protected]>
* HttpUtility.cs: fixed UrlDecode for encoded strings which
	should be converted to byte sequences longer than 2 bytes. Fixes
	bug #507666

2009-05-28  Marek Habersack  <[email protected]>

	* HttpUtilityTest.cs: added test for bug #507666

svn path=/trunk/mcs/; revision=134942
2009-05-28 12:34:40 +00:00
Marek Habersack 8691b66d1e 2009-05-28 Marek Habersack <[email protected]>
* FormsAuthenticationModule.cs: if forms authentication login URL
	is not rooted, make it relative to the application root, so that
	MapPath maps it correctly.
	Use String.Compare for checking whether requested URL matches the
	login URL - be case-insensitive when running on Windows or with
	IOMAP in effect.

svn path=/trunk/mcs/; revision=134931
2009-05-28 09:03:28 +00:00
Atsushi Eno a6ea614983 2009-05-28 Atsushi Enomoto <[email protected]>
* machine.config: fix WCF diagnostics section name.


svn path=/trunk/mono/; revision=134930
2009-05-28 07:25:15 +00:00
Atsushi Eno c4295157ad 2009-05-28 Atsushi Enomoto <[email protected]>
* MessageBufferImpl.cs : it did not copy headers.
	* Message.cs : remove 2_1 conditional implementation for buffered
	  copy and hence remove bogus code.


svn path=/trunk/mcs/; revision=134929
2009-05-28 06:56:48 +00:00
Atsushi Eno e788908b53 2009-05-28 Atsushi Enomoto <[email protected]>
* MessageProperties.cs : copy argument is wrong.


svn path=/trunk/mcs/; revision=134928
2009-05-28 05:49:25 +00:00
Martin Baulig 336d6582df Correctly initialize the debugger when embedding Mono.
2009-05-28  Martin Baulig  <[email protected]>

	Correctly initialize the debugger when embedding Mono.

	* mdb-debug-info32.s, mdb-debug-info64.s: Add a global variable
	`MONO_DEBUGGER__using_debugger' to the `.mdb_debug_info' section;
	see documentation in mini_debug_running_inside_mdb().

	* debug-debugger.c
	(mini_debug_running_inside_mdb): New function to check whether
	we're running inside mdb.

	* mini.c (mini_init): Call mini_debugger_init() if we're running
	inside the debugger.

	* driver.c (mono_main): Moved the call to mini_debugger_init()
	into mini_init() to make this work when embedding Mono.

	* debug-debugger.c (mini_debugger_init): Warn about duplicate
	calls to mini_debugger_init().

	* mini.h: Rename mono_debugger_init() -> mini_debugger_init(),
	mono_debugger_main() -> mini_debugger_main() and put them inside a
	`MONO_DEBUGGER_SUPPORTED' conditional.

svn path=/trunk/mono/; revision=134926
2009-05-28 05:12:18 +00:00
Martin Baulig 1ac0c473fb Add missing 'MONO_DEBUGGER_SUPPORTED' conditional.
svn path=/trunk/mono/; revision=134925
2009-05-28 04:35:13 +00:00
Martin Baulig a16b96be66 Correctly initialize the debugger when embedding Mono.
2009-05-27  Martin Baulig  <[email protected]>

	Correctly initialize the debugger when embedding Mono.

	* mini.c (mini_init): Call mono_debugger_init() if we're running
	inside the debugger.

	* driver.c (mono_main): Moved the call to mono_debugger_init()
	into mini_init(); `mono_debug_init (MONO_DEBUG_FORMAT_DEBUGGER)'
	sets the mono_debug_using_mono_debugger () flag for us, so we can
	do the mono_debugger_init() call in mini_init().

svn path=/trunk/mono/; revision=134921
2009-05-28 02:55:22 +00:00
Rodrigo Kumpera d5a725c121 2009-05-27 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for parameters and generics

	* assembly-with-custommod.il: Added more methods to use
	in the tests.

svn path=/trunk/mono/; revision=134906
2009-05-28 00:05:48 +00:00
Rodrigo Kumpera ac6ea85156 2009-05-27 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_return_type): Proper byref check.
	* metadata-verify.c (is_valid_method_signature): Check for zero arity
	generic signatures and method params.

svn path=/trunk/mono/; revision=134905
2009-05-28 00:05:27 +00:00
Rodrigo Kumpera dbc8ae51eb 2009-05-27 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: More signature tests.

	* assembly-with-custommod.il: File with custom mods.

	* Makefile: Add new dependency.

svn path=/trunk/mono/; revision=134896
2009-05-27 22:26:19 +00:00
Rodrigo Kumpera d6d0f992ab 2009-05-27 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (decode_signature_header): Fix bounds check.

	* metadata-verify.c (parse_custom_mods): Check custom mods.

	* metadata-verify.c (parse_type): Do initial basic verification
	of valid values.

	* metadata-verify.c (is_valid_method_signature): Parse the generic
	param count.

svn path=/trunk/mono/; revision=134895
2009-05-27 22:26:09 +00:00
Rodrigo Kumpera a48378654c 2009-05-26 Rodrigo Kumpera <[email protected]>
* mini-trampolines.c: Kill mono_find_delegate_trampoline_by_addr as
	this is no longer in use.
	* mini.h: Same.

svn path=/trunk/mono/; revision=134894
2009-05-27 22:25:55 +00:00
Geoff Norton 660fc4073c 2009-05-27 Geoff Norton <[email protected]>
* src/gfile-posix.c: Fix g_get_current_dir on amd64

svn path=/trunk/mono/; revision=134889
2009-05-27 22:02:35 +00:00
Marek Habersack 9de8e1df99 2009-05-27 Marek Habersack <[email protected]>
* Makefile (LIB_MCS_FLAGS): added support for defining the DEBUG
	symbol on compiler command line.

2009-05-27  Marek Habersack  <[email protected]>

	* PatternParser.cs: if Match is passed an empty path, do not
	attempt to match the Url segments, skip to defaults matching right
	away.

2009-05-27  Marek Habersack  <[email protected]>

	* RouteCollectionTest.cs: added a test for routes from
	NerdDinner.

svn path=/trunk/mcs/; revision=134877
2009-05-27 20:53:58 +00:00
Alan McGovern ca37ada5e3 2009-05-27 Alan McGovern <[email protected]>
* class.cs, decl.cs, delegate.cs, parameter.cs: 
        Fix the build by replacing the use of 'var' with the actual
type.


svn path=/trunk/mcs/; revision=134867
2009-05-27 19:27:02 +00:00
Jackson Harper 7ac381196d * MoonIsolatedStorageFile.cs: Allow paths in search patterns.
svn path=/trunk/mcs/; revision=134860
2009-05-27 18:12:27 +00:00
Miguel de Icaza 228b3d0442 Up
svn path=/trunk/mono/; revision=134848
2009-05-27 16:37:26 +00:00
Rodrigo Kumpera dff3e7543b 2009-05-27 Rodrigo Kumpera <[email protected]>
* TypeDef.cs: Add field method_list to preserve definition
	order of methods when emiting the PE file.

svn path=/trunk/mcs/; revision=134840
2009-05-27 15:45:32 +00:00
Marek Safar 6c035e225a New tests, updates
svn path=/trunk/mcs/; revision=134833
2009-05-27 14:12:28 +00:00
Marek Safar d87c6385b1 2009-05-27 Marek Safar <[email protected]>
* generic.cs, parameter.cs, decl.cs, ecore.cs, class.cs, delegate.cs
    cs-parser.jay, generic-mcs.cs: Report wrong variant types declarations.
	  
	* driver.cs, rootcontext.cs, report.cs: Add 3.0 language version
	filter.


svn path=/trunk/mcs/; revision=134832
2009-05-27 14:11:59 +00:00
Zoltan Varga 83b5c0539d 2009-05-27 Zoltan Varga <[email protected]>
* configure.in: Disable USE_MUNMAP on ppc to work around #504411.

svn path=/trunk/mono/; revision=134828
2009-05-27 12:24:13 +00:00
Sebastien Pouliot 86ae882387 2009-05-27 Sebastien Pouliot <[email protected]>
* XmlReaderSettings.cs: Set prohibitDtd when changing the value 
	of DtdProcessing. Will fix a few Moonlight DRT tests


svn path=/trunk/mcs/; revision=134827
2009-05-27 11:43:29 +00:00
Zoltan Varga 558f3ac1ec 2009-05-27 Zoltan Varga <[email protected]>
* AppDomain.cs (DoAssemblyResolve): Fix recursion detection. Fixes #507003.

svn path=/trunk/mcs/; revision=134824
2009-05-27 11:02:03 +00:00
Atsushi Eno dab61630c2 2009-05-27 Atsushi Enomoto <[email protected]>
* ResolveInfo.cs : argument check.

	* PeerCustomResolverBindingElement.cs : some argument check.


svn path=/trunk/mcs/; revision=134821
2009-05-27 08:13:02 +00:00
Atsushi Eno 1772bc40c6 2009-05-27 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : the serializer somehow leaves binary
	  xml open, so close the writer as well as open elements.
	* TcpDuplexSessionChannel.cs : clear write buffer on each operation.
	  Do not output EndRecord and SizedMessage at a time.


svn path=/trunk/mcs/; revision=134820
2009-05-27 07:38:08 +00:00
Rodrigo Kumpera 15f7a51f07 2009-05-26 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: test for bug #506757.

svn path=/trunk/mcs/; revision=134811
2009-05-26 22:51:11 +00:00
Rodrigo Kumpera 8a33d428ca 2009-05-26 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Virtual methods should be
	discarded based on their most specific definition so we set the method_slots
	array before checking if the method is acceptable or not.

	Fixes #506757.

svn path=/trunk/mono/; revision=134810
2009-05-26 22:48:01 +00:00
Zoltan Varga bef447594f 2009-05-27 Zoltan Varga <[email protected]>
* CultureInfoTest.cs: Fix the net 1.1 build.

svn path=/trunk/mcs/; revision=134807
2009-05-26 22:06:32 +00:00
Zoltan Varga ede16d7e33 2009-05-27 Zoltan Varga <[email protected]>
* Makefile.am: Disable the test_messages test as it fails on the
	buildbot.

svn path=/trunk/mono/; revision=134806
2009-05-26 22:04:27 +00:00
Zoltan Varga 3ff3ed2ea6 2009-05-26 Zoltan Varga <[email protected]>
* shared.c (_wapi_shm_file): Avoid creating a .wapi directory here, create
	it in _wapi_shm_file_open (), since platforms using posix shm don't need it.

svn path=/trunk/mono/; revision=134798
2009-05-26 21:09:23 +00:00
Zoltan Varga 779153d819 2009-05-26 Zoltan Varga <[email protected]>
* mini-sparc.c (add_outarg_load): Fix the sparc build.

svn path=/trunk/mono/; revision=134797
2009-05-26 21:09:14 +00:00
Mark Probst d43b7d7a58 Free the old array when resizing a mono_ptr_array.
2009-05-26  Mark Probst  <[email protected]>

        * icall.c: Free the old array when resizing a mono_ptr_array.

svn path=/trunk/mono/; revision=134796
2009-05-26 21:05:26 +00:00
Andrés G. Aragoneses 84313ee6c5 r: spouliot
2009-05-26  Andrés G. Aragoneses  <[email protected]>

        * AssemblyInfo.cs: Add InternalsVisibleTo for MoonAtkBridge
        under a MOON_A11Y_INTERNAL_HACK define.
	* Makefile: Handling of the MOON_A11Y_INTERNAL_HACK env var.


svn path=/trunk/mcs/; revision=134789
2009-05-26 20:00:02 +00:00
Andrew Jorgensen 807a05fe98 Makefile: Fixed dist from last commit here
svn path=/trunk/mcs/; revision=134782
2009-05-26 18:23:00 +00:00
Mark Probst 5f8cd3682e Use mono_object_hash() for hashes with object keys.
2009-05-26  Mark Probst  <[email protected]>

        * reflection.c (create_dynamic_mono_image): Use mono_object_hash()
        for the hashes whose keys are managed objects.

svn path=/trunk/mono/; revision=134778
2009-05-26 16:59:24 +00:00
Marek Safar e2b31c9f8e New test.
svn path=/trunk/mcs/; revision=134777
2009-05-26 16:37:15 +00:00
Marek Safar 1c61efc247 2009-05-26 Rodrigo Kumpera <[email protected]>
Marek Safar  <[email protected]>

	A fix for bug #377509
	* parameter.cs: Use predefined and not empty name for implicit
	setters.


svn path=/trunk/mcs/; revision=134776
2009-05-26 16:36:46 +00:00
Zoltan Varga 5eb89e6856 2009-05-26 Zoltan Varga <[email protected]>
* CMakeLists.txt: Implement AC_OUTPUT, creation of config.make, etc.

svn path=/trunk/mono/; revision=134775
2009-05-26 16:25:06 +00:00
Mark Probst 5bb6e7f1dc 2009-05-26 Mark Probst <[email protected]>
* Thread.cs: Don't set the execution context when creating a
        thread because the _ec member is thread static and we set the
        wrong one.  It's now set by the runtime.  We just provide the
        correct one.

        * Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=134773
2009-05-26 16:06:58 +00:00
Mark Probst fe3460872a The execution context is now set by the runtime.
2009-05-26  Mark Probst  <[email protected]>

        * object-internals.h, threads.c: Set the execution context on
        thread start here, not in corlib.

        * appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=134772
2009-05-26 16:06:35 +00:00
Veerapuram Varadhan 7550c30a9a New file corresponding to r134765
svn path=/trunk/mcs/; revision=134770
2009-05-26 16:04:53 +00:00
Veerapuram Varadhan cda6fb90f3 2009-05-26 Veerapuram Varadhan <[email protected]>
* TdsComm.cs (Append):  When appending strings of length bigger than
	output buffer, calculate and iterate over the strings according to
	the output buffer length.  Fixes ArgumentOutOfRangeException.

svn path=/trunk/mcs/; revision=134769
2009-05-26 16:02:01 +00:00
Veerapuram Varadhan 3c2064f7a9 2009-05-26 Veerapuram Varadhan <[email protected]>
* TdsBulkCopy.cs (WriteParameterInfo): Update default precision from 28 to 29.

svn path=/trunk/mcs/; revision=134768
2009-05-26 16:01:45 +00:00
Veerapuram Varadhan 23de135ada 2009-05-26 Veerapuram Varadhan <[email protected]>
* TdsComm.cs (Append): When appending smalldatetime values, cast value of
	days to short instead of ushort.  Fixes Tds error in RPC packet.

	* Tds70.cs (WriteParameterInfo): Instead of IsLargetType, compare only
	the types that can take 0xFFFF as size if value is null.

svn path=/trunk/mcs/; revision=134767
2009-05-26 16:01:31 +00:00
Veerapuram Varadhan 04aecd285a 2009-05-26 Veerapuram Varadhan <[email protected]>
* TdsMetaParameter.cs (GetMetaType): If param is Nullable, use IntN instead
	of BigInt for column type.

svn path=/trunk/mcs/; revision=134766
2009-05-26 16:01:17 +00:00
Veerapuram Varadhan 7b01ff9a50 2009-05-26 Veerapuram Varadhan <[email protected]>
** Fixes #382734
	* Tds80.cs: Consider queries with Parameters as RPCs and avoid formatting
	param values as strings.  Fixes issues with locale specific string
	formatting/conversions.

	* TdsRpcProcId.cs: New - enum of rpc Ids to use with RPC packet type.

svn path=/trunk/mcs/; revision=134765
2009-05-26 16:00:45 +00:00
Sebastien Pouliot 0bca300863 2009-05-26 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: Add internal WebHeaderCollection. Change
	signature for OpenPolicyReadAsync to take an addtional object
	* WebResponse_2_1.cs: Add internal WebHeaderCollection


svn path=/trunk/mcs/; revision=134764
2009-05-26 15:58:33 +00:00
Zoltan Varga c364d0554a 2009-05-26 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Always write out C style symbols for
	methods.

svn path=/trunk/mono/; revision=134759
2009-05-26 14:24:21 +00:00
Marek Habersack 6629ef8e78 2009-05-26 Marek Habersack <[email protected]>
* Test/System.Web.UI/ScriptReferenceBaseTest.cs: added tests for
	ReplaceExtension

	* System.Web.Extensions_test.dll.sources: added
	System.Web.UI/ScriptReferenceBaseTest.cs

svn path=/trunk/mcs/; revision=134757
2009-05-26 12:42:15 +00:00
Atsushi Eno 7660037690 2009-05-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : there was a miscalculation on the
	  length of the SizedMessage in the output.


svn path=/trunk/mcs/; revision=134756
2009-05-26 12:33:36 +00:00
Marek Habersack 9cb8f88de9 2009-05-26 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	System.Web.UI/ScriptReferenceBase.cs

2009-05-26  Marek Habersack  <[email protected]>

	* ScriptReferenceBase.cs: implemented (3.5 SP1)

	* ScriptReference.cs: now inherits from the ScriptReferenceBase
	class. Implemented all the required methods, removed some
	properties which now live in the base class.

	* ScriptManager.cs: code refactoring - moved parts of script
	registration code to ScriptReference

2009-05-26  Marek Habersack  <[email protected]>

	* ListControlDesigner.cs: updated to match MSDN specs, added 2.0
	methods. Used in the latest AjaxControlToolkit.

2009-05-26  Marek Habersack  <[email protected]>

	* System.Design.dll.sources: added
	System.Web.UI.Design.WebControls/ListControlDesigner.cs

svn path=/trunk/mcs/; revision=134754
2009-05-26 12:16:56 +00:00
Atsushi Eno 7f49907597 2009-05-26 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : use sane default timeout.
	* PeerCustomResolverBindingElement.cs : check timeout arg sanity.
	* TcpDuplexSessionChannel.cs : ditto.


svn path=/trunk/mcs/; revision=134749
2009-05-26 10:25:38 +00:00
Marek Habersack a7d02457a9 2009-05-26 Marek Habersack <[email protected]>
* AspGenerator.cs: before including a file specified with the
	<!--#include file="" --> directive, check if it's within the
	current application's root.

svn path=/trunk/mcs/; revision=134747
2009-05-26 10:01:59 +00:00
Atsushi Eno d94140ff71 2009-05-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : It seems that buffered stream channel
	  only accepts buffered messages, so do as such for write buffers.
	  Add RelatesTo header.


svn path=/trunk/mcs/; revision=134745
2009-05-26 09:54:44 +00:00
Atsushi Eno 0dab47294e 2009-05-26 Atsushi Enomoto <[email protected]>
* OperationContext.cs : IncomingMessage* properties should work
	  for non-reply channels as well.


svn path=/trunk/mcs/; revision=134744
2009-05-26 09:54:27 +00:00
Atsushi Eno ab2cc8b39b 2009-05-26 Atsushi Enomoto <[email protected]>
* DuplexSessionChannelBase.cs, DuplexChannelBase.cs:
	  rename from former to latter.

	* System.ServiceModel.dll.sources: cosmetic file renaming.


svn path=/trunk/mcs/; revision=134743
2009-05-26 07:55:32 +00:00
Zoltan Varga 7890c4d61c 2009-05-26 Zoltan Varga <[email protected]>
* CMakeLists.txt: implement arm fpu detection, add vfp detection as
	well.

svn path=/trunk/mono/; revision=134737
2009-05-26 00:46:19 +00:00
Carlos Alberto Cortez 1410581e22 * ColorDialog.cs: Actually add the help button to the form, so it can
be visible.
	Fixes #478555.

2009-05-25  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=134736
2009-05-26 00:39:19 +00:00
Zoltan Varga b73f54ca71 2009-05-26 Zoltan Varga <[email protected]>
* CMakeLists.txt: Add arm support.

svn path=/trunk/mono/; revision=134731
2009-05-25 22:51:36 +00:00
Zoltan Varga ca00e5922c 2009-05-26 Zoltan Varga <[email protected]>
* CMakeLists.txt: New file.

svn path=/trunk/mono/; revision=134730
2009-05-25 22:47:44 +00:00
Rodrigo Kumpera cc1aa1dacc 2009-05-25 Rodrigo Kumpera <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Fix the precision of
	long_conv_to_r_un to 64 bits.

	* cpu-x86.md: Increase the instruction size due to the changes.

	* iltests.il.in: Add regression test.

	Fixes #467201.

svn path=/trunk/mono/; revision=134729
2009-05-25 22:44:07 +00:00
Rodrigo Kumpera 51547c2092 2009-05-25 Rodrigo Kumpera <[email protected]>
* objects.cs: Move the previous test from basic.cs to here.

svn path=/trunk/mono/; revision=134728
2009-05-25 22:43:54 +00:00
Rodrigo Kumpera 9c288a5714 This my comment leftovers day
svn path=/trunk/mono/; revision=134726
2009-05-25 21:06:29 +00:00
Rodrigo Kumpera 7487412cf2 2009-05-25 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_fields): Don't mark simd types as having
	16 bytes alignment as the whole runtime doesn't support.

svn path=/trunk/mono/; revision=134723
2009-05-25 20:57:28 +00:00
Carlos Alberto Cortez 41d17371c4 2009-05-25 Carlos Alberto Cortez <[email protected]>
* PrintPreviewDialog.cs: Don't use Dock.Fill for the
	PrintPreviewControl, since it will be hidden in the top by our
	toolbar. Use manual location and anchoring instead.
	Fixes #474889.


svn path=/trunk/mcs/; revision=134720
2009-05-25 19:18:53 +00:00
Rodrigo Kumpera 5136bd47ed 2009-05-25 Rodrigo Kumpera <[email protected]>
* basic.cs: Add regression test for #506915.

svn path=/trunk/mono/; revision=134715
2009-05-25 18:55:07 +00:00
Rodrigo Kumpera b372a26e2d 2009-05-25 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): When doing the ldobj+stobj
	optimization we must check the bb of the first byte of stobj as
	it's the only one set in cil_offset_to_bb.

	Fixes #506915.

svn path=/trunk/mono/; revision=134713
2009-05-25 18:40:23 +00:00
Rodrigo Kumpera 90ba3f5046 Forgot to report sturious printf
svn path=/trunk/mono/; revision=134712
2009-05-25 18:40:04 +00:00
Rodrigo Kumpera 2ca6ddb886 2009-05-25 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (safe_read): Use endian safe read macros.

svn path=/trunk/mono/; revision=134711
2009-05-25 18:39:36 +00:00
Michael Barker 0420f9d39b 2009-05-25 Michael Barker <[email protected]>
* Removed amqp spec files and modified generated code to fix 
licensing 
    issues.

svn path=/trunk/mcs/; revision=134710
2009-05-25 18:37:34 +00:00
Carlos Alberto Cortez ae76ce263b 2009-05-25 Carlos Alberto Cortez <[email protected]>
* FileDialog.cs: When saving the size of the dialog, use the
	ClientSize instead of Size, so we have always the same size for the
	form. Patch by Alex Shulgin.
	Fixes #503064.


svn path=/trunk/mcs/; revision=134697
2009-05-25 16:15:17 +00:00
Zoltan Varga 34e8d2753e 2009-05-25 Zoltan Varga <[email protected]>
* image-writer.c: Fix pointer directive on ppc64.

svn path=/trunk/mono/; revision=134692
2009-05-25 14:44:05 +00:00
Zoltan Varga 17dc0868e9 2009-05-25 Zoltan Varga <[email protected]>
* object.c (mono_create_ftnptr): Don't allocate from the code mempool since
	it is read-only when using full aot.

svn path=/trunk/mono/; revision=134689
2009-05-25 14:08:04 +00:00
Carlos Alberto Cortez 67e5b19697 2009-05-25 Carlos Alberto Cortez <[email protected]>
* MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
	show a beep, similar to what .net does. 
	Fixes #473725.


svn path=/trunk/mcs/; revision=134688
2009-05-25 13:58:30 +00:00
Atsushi Eno 912e42fd14 2009-05-25 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : reader does not always return full
	  buffer (depending on the stream).


svn path=/trunk/mcs/; revision=134687
2009-05-25 13:14:30 +00:00
Atsushi Eno bd372ca720 2009-05-25 Atsushi Enomoto <[email protected]>
* PeerNode.cs : if Resolve() returns no address, create a new peer
	  address here, and shut it down when it is closed.

	* PeerDuplexChannel.cs, PeerOutputChannel.cs : use new PeerNode.ctor.


svn path=/trunk/mcs/; revision=134686
2009-05-25 13:12:02 +00:00
Atsushi Eno 53ca32f688 2009-05-25 Atsushi Enomoto <[email protected]>
* PeerCustomResolverBindingElement.cs : (Resolve) returned addresses
	  could be null.


svn path=/trunk/mcs/; revision=134685
2009-05-25 13:01:17 +00:00
Marek Habersack e0f0a9dd5c 2009-05-25 Marek Habersack <[email protected]>
* UrlPattern.cs: removed - replaced by PatternParser below.

	* RouteValueDictionaryExtensions.cs: added - some shortcuts for
	using RouteValueDictionary in PatternParser

	* Route.cs: use the new PatternParser.
	Factored out ProcessConstraint into ProcessConstraintInternal so
	that the latter can be used by the PatternParser class.
	Added parameter checks in ProcessConstraint.

	* PatternTokenType.cs: added

	* PatternToken.cs: added a helper class for the pattern parser.

	* PatternParser.cs: added. New implementation of url
	parser/matcher/generator which fixes all URL isues known so
	far. Fixes bug #504378

2009-05-25  Marek Habersack  <[email protected]>

	* System.Web.Routing_test.dll.sources: added
	System.Web.Routing/AssertExtensions.cs

	* System.Web.Routing.dll.sources: added
	System.Web.Routing/PatternParser.cs
	System.Web.Routing/PatternToken.cs
	System.Web.Routing/PatternTokenType.cs
	System.Web.Routing/RouteValueDictionaryExtensions.cs

	removed
	System.Web.Routing/UrlPattern.cs

2009-05-25  Marek Habersack  <[email protected]>

	* RouteTest.cs: added several tests for GetVirtualPath,
	GetRouteData, ProcessConstraint and refactored some tests.

	* RouteCollectionTest.cs: added several tests for GetVirtualPath

	* AssertExtensions.cs: added some methods to make code testing for
	exception throws look nicer.

svn path=/trunk/mcs/; revision=134682
2009-05-25 12:38:37 +00:00
Atsushi Eno d1f95e4190 2009-05-25 Atsushi Enomoto <[email protected]>
* PeerResolverSerializationTest.cs : new test for general
	  serialization tests.

	* System.ServiceModel.dll_test.sources:
	  added PeerResolverSerializationTest.cs.


svn path=/trunk/mcs/; revision=134672
2009-05-25 08:17:11 +00:00
Atsushi Eno 9df6e71659 2009-05-25 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, XmlFormatterSerializer.cs :
	  collection types should not output xsi:type e.g. IList<T> should
	  not exposed xsi:type as xsi:type=List`1.


svn path=/trunk/mcs/; revision=134670
2009-05-25 08:14:58 +00:00
Atsushi Eno 148d3ddbf3 2009-05-23 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : fix regression on stream consumption
	  excess.


svn path=/trunk/mcs/; revision=134669
2009-05-25 07:44:29 +00:00
Miguel de Icaza 42c4bad64b Forgot this
svn path=/trunk/mono/; revision=134653
2009-05-24 16:59:34 +00:00
Miguel de Icaza 62a3941c8f 2009-05-24 Miguel de Icaza <[email protected]>
* Disable mono/docs build if we disabled the mcs build.

svn path=/trunk/mono/; revision=134651
2009-05-24 16:27:19 +00:00
Miguel de Icaza 0d1fb73402 Report glib in use as well
svn path=/trunk/mono/; revision=134650
2009-05-24 16:08:46 +00:00
Robert Jordan 8e4d16bf5f 2009-05-24 Robert Jordan <[email protected]>
* GenericTest.cs: differentiate between "Test(int)" and
	"Test<int>(int)" to prove that the correct method is invoked.

svn path=/trunk/mcs/; revision=134649
2009-05-24 14:06:26 +00:00
Robert Jordan b6df9d8ee1 2009-05-24 Robert Jordan <[email protected]>
* GenericTest.cs (TestCrossAppDomainChannel): disable on MS.NET as
	some generic calls do not seem to be supported anymore. It looks
	like a bug, though, since the same tests are passing when performed
	over the TCP channel.

svn path=/trunk/mcs/; revision=134648
2009-05-24 13:47:34 +00:00
Zoltan Varga 7d1b861368 2009-05-24 Zoltan Varga <[email protected]>
* image-writer.c (asm_writer_emit_section_change): Avoid using
	.bss subsections on ppc too.

svn path=/trunk/mono/; revision=134647
2009-05-24 13:37:47 +00:00
Robert Jordan 86da8ea29d 2009-05-24 Robert Jordan <[email protected]>
* GenericTest.cs (TestTcpChannel): create a unique channel and
	unregister it upon termination. Fixes issues that were uncovered
	by the NUnit upgrade (see Atsushi's changelogs below).


svn path=/trunk/mcs/; revision=134646
2009-05-24 12:46:29 +00:00
Zoltan Varga 96d362f56a 2009-05-24 Zoltan Varga <[email protected]>
* */CMakeLists.txt: Add beginnings of a cmake based build system.

svn path=/trunk/mono/; revision=134645
2009-05-24 01:25:53 +00:00
Michael Barker 3cc1728cbd 2009-05-23 Michael Barker <[email protected]>
* QueueReferenceTest.cs: Incorrect namespace for test

svn path=/trunk/mcs/; revision=134640
2009-05-23 17:30:32 +00:00
Jb Evain 9c2de73ad5 fix name
svn path=/trunk/mcs/; revision=134639
2009-05-23 16:27:17 +00:00
Carlos Alberto Cortez 040a03e17d 2009-05-23 Carlos Alberto Cortez <[email protected]>
* ContainerControl.cs:
	* MenuStrip.cs
	* ToolStrip.cs: Implicit mnemonic processing should happen for every
	ToolStrip child, not only for MenuStrip, so we are going to do that in
	ToolStrip.ProcessMnemonic, where we already had that exactly
	functionality, but we are only just checking that either this instance
	is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
	remove the extra code, since we are not going to use it now.
	Fixes the remaining bits of #503663.


svn path=/trunk/mcs/; revision=134638
2009-05-23 15:51:44 +00:00
Zoltan Varga 19d257db67 Fix emit_pointer_unaligned ().
svn path=/trunk/mono/; revision=134637
2009-05-23 14:33:51 +00:00
Geoff Norton f7729d982f fix the build
svn path=/trunk/mono/; revision=134636
2009-05-23 14:32:59 +00:00
Zoltan Varga fd78f12cd2 Fix the last change for real.
svn path=/trunk/mono/; revision=134635
2009-05-23 14:21:08 +00:00
Zoltan Varga 6b374fd7c4 2009-05-23 Zoltan Varga <[email protected]>
* image-writer.c: Fix the definition of TARGET_ASM_....

svn path=/trunk/mono/; revision=134634
2009-05-23 14:13:46 +00:00
Zoltan Varga 9b441dd579 2009-05-23 Zoltan Varga <[email protected]>
* image-writer.c: Fix the emission of assembler directives in the last
	change.

svn path=/trunk/mono/; revision=134633
2009-05-23 14:00:37 +00:00
Zoltan Varga b06c192ecf 2009-05-23 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_emit_exceptions): Increase the size of the
	exception throwing code to accomodate ppc64.

	* tramp-ppc.c (mono_arch_get_nullified_class_init_trampoline): Increase the
	size to work on ppc64 too.

	* mini-ppc.h (MonoCompileArch): Enable static rgctx trampolines on ppc64
	too.

svn path=/trunk/mono/; revision=134632
2009-05-23 13:16:21 +00:00
Zoltan Varga 8b5d52cc26 2009-05-23 Zoltan Varga <[email protected]>
* image-writer.c: Clean up the #ifdef hell a bit by adding defines for
	the assembler dialect instead of using platform specific defines.

svn path=/trunk/mono/; revision=134631
2009-05-23 10:26:31 +00:00
Rodrigo Kumpera 80262058cc 2009-05-22 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: More tests for method def signatures.

svn path=/trunk/mono/; revision=134628
2009-05-23 00:45:00 +00:00
Rodrigo Kumpera 7e7c374cd9 2009-05-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_method_signature): Verify parts
	of the return type. Provide an error message in case of failure.

svn path=/trunk/mono/; revision=134627
2009-05-23 00:44:51 +00:00
Rodrigo Kumpera b3ea62b413 2009-05-22 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: New file for blob signature tests.

	* Makefile: Update for new test source.

svn path=/trunk/mono/; revision=134626
2009-05-23 00:44:37 +00:00
Rodrigo Kumpera 8493dcfdfb 2009-05-22 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Added blob.i to make it easier to locate signatures to
	mess around.

svn path=/trunk/mono/; revision=134625
2009-05-23 00:44:26 +00:00
Rodrigo Kumpera 3b5bb19029 2009-05-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_method_signature): Verify the call conv.

svn path=/trunk/mono/; revision=134624
2009-05-23 00:44:16 +00:00
Rodrigo Kumpera ec4bcaea4b 2009-05-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Include the size prefix in the bounds check.

svn path=/trunk/mono/; revision=134623
2009-05-23 00:44:03 +00:00
Zoltan Varga d88f73f1f8 2009-05-22 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add new net 4.0 files.

svn path=/trunk/mcs/; revision=134622
2009-05-22 21:29:38 +00:00
Zoltan Varga 3b35373c29 2009-05-22 Zoltan Varga <[email protected]>
* Tuple.cs Tuples.cs: New files.

svn path=/trunk/mcs/; revision=134621
2009-05-22 21:29:18 +00:00
Zoltan Varga 0c8d915cd1 2009-05-22 Zoltan Varga <[email protected]>
* IStructuralComparable.cs IStructuralEquatable.cs: New files.

svn path=/trunk/mcs/; revision=134620
2009-05-22 21:28:58 +00:00
Miguel de Icaza 25b9291fdf forgot this one
svn path=/trunk/mono/; revision=134619
2009-05-22 21:12:34 +00:00
Miguel de Icaza 66c772d6ea Update parameters for PS3
svn path=/trunk/mono/; revision=134618
2009-05-22 21:06:06 +00:00
Michael Barker c9adcf7768 2009-05-22 Michael Barker <[email protected]>
* man.1: Added documentation for MONO_MESSAGING_PROVIDER environment
	variable.


svn path=/trunk/mono/; revision=134617
2009-05-22 20:58:37 +00:00
Miguel de Icaza 4f166b7c76 2009-05-22 Miguel de Icaza <[email protected]>
* wapi_glob.c: Do not need sys/param.h anymore, we now use the
	POSIX PATH_MAX instead of BSD's MAXPATHLEN

	* handles.c: Do not pull a reference to sockets if they are
	disabled.

	* sockets.c: Allow for ports to define their own ioctlsocket. 

	* wthreads.c: Remove obsolete code that I recently introudced (the
	hook for mono_register_thread_attr.

svn path=/trunk/mono/; revision=134616
2009-05-22 20:48:43 +00:00
Miguel de Icaza 59f73c75d2 2009-05-22 Miguel de Icaza <[email protected]>
* icall.c: Remove warnings.

	* mono-config.c: Allow for CONFIG_CPU to be set in config.h and
	prevent auto-detection based on GCC defines.

	Add PS3

	* metadata-verify.c: Do not include signal.h

	* generic-sharing.c, marshal.c: Add returns to avoid some warning
	messages.  Not sure why the g_assert_not_reached is not enough to
	quiet the compiler.
	

	* appdomain.c: Remove code that is not used when
	DISABLE_SHADOW_COPY is set.

	* image.c: use g_getenv


svn path=/trunk/mono/; revision=134615
2009-05-22 20:44:26 +00:00
Zoltan Varga 2098db8a4c 2009-05-22 Zoltan Varga <[email protected]>
* corlib_test.dll.sources: Add System/LazyTest.cs.

svn path=/trunk/mcs/; revision=134607
2009-05-22 17:39:39 +00:00
Zoltan Varga 3c38ef1e9f 2009-05-22 Zoltan Varga <[email protected]>
* LazyTest.cs: New file.

svn path=/trunk/mcs/; revision=134606
2009-05-22 17:39:32 +00:00
Zoltan Varga 7e602593d7 2009-05-22 Zoltan Varga <[email protected]>
* Lazy.cs LazyExecutionMode.cs Funcs.cs: New files.

svn path=/trunk/mcs/; revision=134605
2009-05-22 17:39:24 +00:00
Zoltan Varga 051d789f33 2009-05-22 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add System/{Lazy,LazyExecutionMode,Funcs}.cs for
	NET 4.0.

svn path=/trunk/mcs/; revision=134604
2009-05-22 17:39:17 +00:00
Zoltan Varga 32ae6cc661 2009-05-22 Zoltan Varga <[email protected]>
* AssemblyBuilder.cs (.ctor): Error out if the not yet supported
	RunAndCollect flag was given.

	* AssemblyBuilderAccess.cs: Add RunAndCollect flag for net 4.0.

svn path=/trunk/mcs/; revision=134601
2009-05-22 15:48:22 +00:00
Miguel de Icaza 772f3a95ae 2009-05-22 Miguel de Icaza <[email protected]>
* versioninfo.c: One missing signature, fixed.

svn path=/trunk/mono/; revision=134597
2009-05-22 14:06:54 +00:00
Sebastien Pouliot 81c2b840f7 2009-05-22 Sebastien Pouliot <[email protected]>
* Socket_2_1.cs: Do not throw a SecurityException if the security
	policy check fails in NET_2_1 but set the SocketError to AccessDenied
	ensure the EndPoint has a valid policy before connecting.
	* SocketAsyncEventArgs.cs: Don't recurse endlessly in SendCallback
	and ReceiveCallback if the socket is not connected. Check for
	AccessDenied in ConnectCallback (needed for the security policy
	check in NET_2_1).


svn path=/trunk/mcs/; revision=134596
2009-05-22 13:58:03 +00:00
Sebastien Pouliot d70fb792c2 2009-05-22 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: Add an internal OpenPolicyReadAsync. Check 
	result in ProcessResponse and throw if not Ok (200).
	* WebRequest_2_1.cs: Add an internal overload to BeginGetResponse
	from where we can handle downloading the policy.


svn path=/trunk/mcs/; revision=134595
2009-05-22 12:45:24 +00:00
Gert Driesen 30241e72d5 * XmlResolverTest.cs: Fix ResolveUri test on Windows when current
directory is not on C drive.

svn path=/trunk/mcs/; revision=134593
2009-05-22 11:06:32 +00:00
Gert Driesen 0e09bcbf3c * XmlSchemaTests.cs: added tests for bug #502115.
* extension-attr-redefine-*.xsd: new test files.

svn path=/trunk/mcs/; revision=134592
2009-05-22 11:02:36 +00:00
Atsushi Eno 6489cc1e3b 2009-05-22 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : ReadContentString() returned
	  doubled string result.


svn path=/trunk/mcs/; revision=134591
2009-05-22 10:16:39 +00:00
Atsushi Eno ae046d1957 2009-05-22 Atsushi Enomoto <[email protected]>
* ChannelManagerBase.cs : there was annoying non-2.1 stuff.


svn path=/trunk/mcs/; revision=134590
2009-05-22 09:36:29 +00:00
Atsushi Eno e801d197f2 2009-05-22 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpChannelFactory.cs : get reader quotas.


svn path=/trunk/mcs/; revision=134589
2009-05-22 05:21:33 +00:00
Atsushi Eno f68640b9a3 2009-05-22 Atsushi Enomoto <[email protected]>
* ChannelManagerBase.cs : fix wrong session channel detection.


svn path=/trunk/mcs/; revision=134588
2009-05-22 05:19:10 +00:00
Geoff Norton 7a51ade390 2009-05-22 Geoff Norton <[email protected]>
* mini-arm.c (get_call_info): If a structure is split between the stack
        and argument registers, we should not advance the stack pointer by the entire
        native size, but just by the amount that spilled.

svn path=/trunk/mono/; revision=134587
2009-05-22 04:11:47 +00:00
Atsushi Eno 7017be6aa3 2009-05-22 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoderFactory.cs, BinaryMessageEncoder.cs
	  This encoder factory implements CreateSessionEncoder() and binary
	  encoder does support session transmit, in different media type.
	* ChannelManagerBase.cs : added utility method to create appropriate
	  encoder.
	* HttpChannelFactory.cs, HttpChannelListener.cs,
	  MsmqChannelFactory.cs, MsmqChannelListener.cs,
	  PeerChannelFactory.cs, PeerChannelListener.cs,
	  TcpChannelFactory.cs, TcpChannelListener.cs : use above.

	* MessageEncoderTest.cs : test CreateSessionEncoder().


svn path=/trunk/mcs/; revision=134584
2009-05-22 02:27:04 +00:00
Atsushi Eno 86e413610e 2009-05-22 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : add ReplyTo header.


svn path=/trunk/mcs/; revision=134583
2009-05-22 02:22:56 +00:00
Atsushi Eno 354c136586 2009-05-22 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, ServiceRuntimeChannel.cs :
	  IDuplexSession was not supported.


svn path=/trunk/mcs/; revision=134582
2009-05-22 02:20:27 +00:00
Miguel de Icaza 6dd905acc3 2009-05-21 Miguel de Icaza <[email protected]>
* reflection.c: Remove code that it not used with
	DISABLE_REFLECTION_EMIT is defined.

svn path=/trunk/mono/; revision=134581
2009-05-22 02:16:19 +00:00
Zoltan Varga 555133acfa 2009-05-22 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Enable dolt on sparc linux.

svn path=/trunk/mono/; revision=134578
2009-05-22 01:02:37 +00:00
Zoltan Varga afb9a18370 2009-05-22 Zoltan Varga <[email protected]>
* mini-arm.c (get_call_info): Handle structures with alignment requirements
	correctly.

svn path=/trunk/mono/; revision=134577
2009-05-22 00:59:49 +00:00
Zoltan Varga 4d601e82c1 2009-05-21 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Share more runtime
	invoke wrappers.

svn path=/trunk/mono/; revision=134556
2009-05-21 19:19:26 +00:00
Zoltan Varga 186725620a 2009-05-21 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_extra_methods): Encode direct runtime invoke
	wrappers normally.

svn path=/trunk/mono/; revision=134555
2009-05-21 19:17:18 +00:00
Zoltan Varga 764183eecb 2009-05-21 Zoltan Varga <[email protected]>
* aot-compiler.c (add_extra_method): Fix up the collection of extra
	methods so wrapper don't get added twice.
	(add_generic_instances): Don't add methods of arrays.

	* generics.cs: Mark one test as !FULLAOT.

svn path=/trunk/mono/; revision=134554
2009-05-21 19:17:11 +00:00
Rodrigo Kumpera 0ddc6f4274 2009-05-21 Rodrigo Kumpera <[email protected]>
* mini-x86.c (emit_move_return_value): Remove unused vars.

svn path=/trunk/mono/; revision=134537
2009-05-21 14:53:44 +00:00
Rodrigo Kumpera be05a10530 2009-05-21 Rodrigo Kumpera <[email protected]>
* mini-x86.c (mono_arch_emit_call): The decompose code now supports
	decomposing 8 bytes structs into a LCALL.

	* mini-x86.c (emit_move_return_value): We no longer push the vtype
	pointer for where to store the returned regs.

	* decompose.c (mono_decompose_vtype_opts): Fix the comment to properly
	state the concern.

	Fixes #471747, #471751 and #4734530 (in fact, it's a bunch of dups).

svn path=/trunk/mono/; revision=134536
2009-05-21 14:46:40 +00:00
Jb Evain 1f586e53ee 2009-05-21 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionReader.cs: add support for type forwarders.


svn path=/trunk/mcs/; revision=134535
2009-05-21 13:55:40 +00:00
Atsushi Eno bd4ddeac5b 2009-05-21 Atsushi Enomoto <[email protected]>
* DuplexSessionBase.cs : new file, for session implementation.
	* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
	  DuplexSessionChannelBase.cs : changed sync/async implementation
	  pattern. Now async methods call sync methods using delegates.


svn path=/trunk/mcs/; revision=134529
2009-05-21 12:04:59 +00:00
Marek Safar b87de8b6f1 New test.
svn path=/trunk/mcs/; revision=134527
2009-05-21 11:59:56 +00:00
Marek Safar f18795cd19 2009-05-21 Marek Safar <[email protected]>
* class.cs: Don't report wrong warnings for event fields.


svn path=/trunk/mcs/; revision=134526
2009-05-21 11:57:28 +00:00
Marek Safar 4141d9da85 New test.
svn path=/trunk/mcs/; revision=134525
2009-05-21 10:15:29 +00:00
Marek Safar 4ce482ad20 2009-05-21 Marek Safar <[email protected]>
A fix for bug #504667
	* class.cs: Check for static class using parent container instead of
	parent type.


svn path=/trunk/mcs/; revision=134523
2009-05-21 10:14:13 +00:00
Atsushi Eno a43bf9fe27 2009-05-21 Atsushi Enomoto <[email protected]>
* InputChannelBase.cs, TransportBindingElement.cs, RequestContext.cs:
	  a few minor API fixes.


svn path=/trunk/mcs/; revision=134511
2009-05-21 07:57:13 +00:00
Atsushi Eno bbde1c9701 2009-05-21 Atsushi Enomoto <[email protected]>
* MessageEncoderFactory.cs : implement CreateSessionEncoder().


svn path=/trunk/mcs/; revision=134510
2009-05-21 07:29:46 +00:00
Michael Barker dc15eec37f 2009-05-21 Michael Barker <[email protected]>
Updated to version 1.5.3 of the RabbitMQ libraries.

2009-05-20  Michael Barker  <[email protected]>

        * RabbitMQMessageEnumerator.cs:  Removed references to realms & tickets.
        * RabbitMQMessageQueue.cs:  Removed references to realms & tickets.

svn path=/trunk/mcs/; revision=134509
2009-05-21 06:40:41 +00:00
Neville Gao 75560da881 Cleaned up UIA properties.
svn path=/trunk/mcs/; revision=134508
2009-05-21 06:39:35 +00:00
Miguel de Icaza ba9266b02b Remove more eye sores
svn path=/trunk/mono/; revision=134506
2009-05-21 04:45:19 +00:00
Miguel de Icaza a35ac93006 Fix for BSD
svn path=/trunk/mono/; revision=134505
2009-05-21 04:40:45 +00:00
Miguel de Icaza b76e2fc273 2009-05-21 Miguel de Icaza <[email protected]>
* daemon.c: Remove more DEBUG ifdef mess.

svn path=/trunk/mono/; revision=134504
2009-05-21 04:35:27 +00:00
Miguel de Icaza 97c7774712 2009-05-21 Miguel de Icaza <[email protected]>
* shared.c (_wapi_shm_attach): Implemention for DISABLE_SHARED_HANDLES 

svn path=/trunk/mono/; revision=134503
2009-05-21 04:28:20 +00:00
Miguel de Icaza 42ca499c70 Fix setups where DISABLE_SHARED_HANDLES is set
svn path=/trunk/mono/; revision=134502
2009-05-21 04:14:55 +00:00
Geoff Norton 41e765e749 Fix it for real
svn path=/trunk/mono/; revision=134501
2009-05-21 03:56:31 +00:00
Miguel de Icaza 42ebae0ad2 Fix the Mac
svn path=/trunk/mono/; revision=134500
2009-05-21 02:36:05 +00:00
Atsushi Eno f37f07036a 2009-05-21 Atsushi Enomoto <[email protected]>
* CultureInfo.cs : it seems that zh-Hant and zh-Hans are introduced
	  as almost alias  of zh-CHS/zh-CHT in vista and some new windows.
	  Add hacky support for them.

	* CultureInfoTest.cs : test zh-Hant.


svn path=/trunk/mcs/; revision=134499
2009-05-21 02:20:16 +00:00
Miguel de Icaza b3591c2a62 Move platform specific code to io-layer
2009-05-20  Miguel de Icaza  <[email protected]>

	* socket-io.c
	(ves_icall_System_Net_Sockets_Socket_Available_internal): Remove
	the ifdef here and instead put that on io-layer


svn path=/trunk/mono/; revision=134498
2009-05-21 02:19:01 +00:00
Miguel de Icaza aaee9490fe 2009-05-20 Miguel de Icaza <[email protected]>
* wapi_glob.c (_wapi_glob): Use PATH_MAX from limits.h instead of
	the BSD name from sys/param.h (MAXPATHLEN)

	Do not include pwd.h as it is not used.

svn path=/trunk/mono/; revision=134494
2009-05-21 00:48:14 +00:00
Miguel de Icaza 37eca67dde 2009-05-20 Miguel de Icaza <[email protected]>
* aot-runtime.c (mono_aot_init): Use g_getenv to work on systems
	without getenv.

svn path=/trunk/mono/; revision=134493
2009-05-21 00:42:00 +00:00
Miguel de Icaza 007e7aefed Make this build
svn path=/trunk/mono/; revision=134491
2009-05-21 00:13:46 +00:00
Miguel de Icaza 39f4727482 Add another header to check
svn path=/trunk/mono/; revision=134490
2009-05-21 00:04:25 +00:00
Zoltan Varga 3990a08d64 2009-05-21 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Add StructureToPtr/PtrToStructure wrappers.

	* basic.cs: Move the test_2_cprop_bug () test to generics.cs as it involves
	generics.

svn path=/trunk/mono/; revision=134489
2009-05-20 23:50:25 +00:00
Miguel de Icaza b279fd07f9 2009-05-20 Miguel de Icaza <[email protected]>
* thread-private.h: Use indent ifdef style for clarity

	* sockets-wrappers.h: sys/socket.h conditional

	* daemon-messages.h: sys/uio.h conditional.

	* sockets.c: sys/ioctl.h conditional

	* wthreads.c: work around for platforms with no thread fetching
	information. 



svn path=/trunk/mono/; revision=134488
2009-05-20 23:48:36 +00:00
Miguel de Icaza 1bcffb546f Forgot ChangeLog
svn path=/trunk/mono/; revision=134487
2009-05-20 23:46:56 +00:00
Miguel de Icaza b3ab9ba097 2009-05-20 Miguel de Icaza <[email protected]>
* locking.c: Split locking code into a separate file.

svn path=/trunk/mono/; revision=134486
2009-05-20 23:40:54 +00:00
Miguel de Icaza 2890cffee5 2009-05-20 Miguel de Icaza <[email protected]>
* locking.c: Split locking code into a separate file.

svn path=/trunk/mono/; revision=134485
2009-05-20 23:22:35 +00:00
Miguel de Icaza b18279918a 2009-05-20 Miguel de Icaza <[email protected]>
* locking.c: Split locking code into a separate file.


svn path=/trunk/mono/; revision=134484
2009-05-20 23:10:31 +00:00
Miguel de Icaza 2c5af271ff Copy
svn path=/trunk/mono/; revision=134483
2009-05-20 23:09:51 +00:00
Miguel de Icaza 87d195d8e1 Fix typo
svn path=/trunk/mono/; revision=134478
2009-05-20 22:09:31 +00:00
Miguel de Icaza 5b34274374 2009-05-20 Miguel de Icaza <[email protected]>
* shared.c: Split the code to make DISABLE_SHARED remove all the
	code that does not use the shared handles.   Before it merely
	removed some of it, with this we avoid hacks on platforms that can
	not implement it.

	Split the code to reduce the amount of ifdefs.

	Remove #ifdef DEBUG from the source and use a macro instead.


svn path=/trunk/mono/; revision=134477
2009-05-20 22:03:44 +00:00
Miguel de Icaza 85451df395 Indent preprocessor directives to make it easier to follow
svn path=/trunk/mono/; revision=134475
2009-05-20 21:07:09 +00:00
Rodrigo Kumpera bdbfa49101 2009-05-20 Rodrigo Kumpera <[email protected]>
* local-propagation.c (mono_local_cprop): Avoid local propagation
	across paired add/sub if the first instruction dest reg is it's
	source reg. For example:

	int_add_imm R12 <- R12 [1] clobbers: 1
	int_sub_imm R42 <- R12 [1] clobbers: 1

	The cprop pass would wrongly const prop + 1 to int_sub_imm which doesn't
	maintain the math identify.

	Fixes #505375.

svn path=/trunk/mono/; revision=134470
2009-05-20 19:27:13 +00:00
Jonathan Chambers b79c873cb7 2009-05-20 Jonathan Chambers <[email protected]>
* SolutionParser.cs (ParseSolution): Ignore vcproj projects in solutions
        and issue warning.


svn path=/trunk/mcs/; revision=134468
2009-05-20 17:05:59 +00:00
Dick Porter 9c212647dc 2009-05-20 Dick Porter <[email protected]>
* XplatUICarbon.cs: Add more locking around MessageQueue
	manipulations.


svn path=/trunk/mcs/; revision=134465
2009-05-20 16:11:17 +00:00
Michael Barker 2abcb07b81 2009-05-19 Michael Barker <[email protected]>
* RabbitMQMessagingProviderTest.cs: Added test for dynamic create of 
	MessagingProvider

2009-05-19  Michael Barker  <[email protected]>

	* RabbitMQMessageQueue.cs: Added comments.

2009-05-19  Michael Barker  <[email protected]>

	* Makefile:  Added environment variable for the RabbitMQMessagingProvider

2009-05-19  Michael Barker  <[email protected]>

	* MessageBaseTest.cs: Used reflection to create Message Object

2009-05-19  Michael Barker  <[email protected]>

	* IMessage.cs: Added additional comments.
	* IMessagingProvider.cs: Added additional comments.
	* MessagingProviderLocator.cs: Added support for specifing messaging
	implementation using an environment variable.


svn path=/trunk/mcs/; revision=134437
2009-05-20 07:40:57 +00:00
Atsushi Eno 1c1d101fed 2009-05-20 Atsushi Enomoto <[email protected]>
* README: added (I needed it!)


svn path=/trunk/mono/; revision=134436
2009-05-20 06:55:48 +00:00
Andreia Gaita 3dae6e8d14 * Makefile.am: avoid going on the network just to get the revision,
use git log instead

svn path=/trunk/mono/; revision=134435
2009-05-20 04:03:41 +00:00
Rodrigo Kumpera 02d9433df7 2009-05-19 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the generic param constraint table.

	* assembly-with-generics.cs: Add stuff for new tests.

svn path=/trunk/mono/; revision=134431
2009-05-19 22:16:08 +00:00
Rodrigo Kumpera a99917328b 2009-05-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the generic param constraint table.

svn path=/trunk/mono/; revision=134430
2009-05-19 22:15:58 +00:00
Rodrigo Kumpera 00e15ecef1 2009-05-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_generic_param_table): Fix
	thinko on the valid flags bits for generic params.

svn path=/trunk/mono/; revision=134429
2009-05-19 22:15:42 +00:00
Rodrigo Kumpera 8016740d68 2009-05-19 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the methodspec table.

	* assembly-with-generics.cs: Add stuff for new tests.

svn path=/trunk/mono/; revision=134428
2009-05-19 22:15:28 +00:00
Rodrigo Kumpera a392dfb567 2009-05-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the methodspec table.

svn path=/trunk/mono/; revision=134427
2009-05-19 22:15:17 +00:00
Rodrigo Kumpera 4cabb3b244 2009-05-19 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the generic param table.

	* assembly-with-generics.cs: New file for generic tests.

	* Makefile: Adjust the build to the new file.

svn path=/trunk/mono/; revision=134426
2009-05-19 22:15:02 +00:00
Rodrigo Kumpera 4e84b54f12 2009-05-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the generic param table.

svn path=/trunk/mono/; revision=134425
2009-05-19 22:14:52 +00:00
Jb Evain 663091e2ce 2009-05-19 Jb Evain <[email protected]>
* Mono.Cecil/TargetRuntime.cs
	* Mono.Cecil/StructureReader.cs
	* Mono.Cecil.Metadata/MetadataWriter.cs:
		add support for .net 4.0 detection.


svn path=/trunk/mcs/; revision=134402
2009-05-19 17:39:27 +00:00
Mark Probst d49e681def SGen: Store and use the count with REMSET_VTYPE.
2009-05-19  Mark Probst  <[email protected]>

        * sgen-gc.c: Store and use the count with REMSET_VTYPE.

svn path=/trunk/mono/; revision=134401
2009-05-19 17:35:51 +00:00
Mark Probst e13024ab43 Small SGen fix.
2009-05-19  Mark Probst  <[email protected]>

        * sgen-gc.c: Use generation enum more consistently and use the
        correct generation in mono_gc_register_for_finalization().

svn path=/trunk/mono/; revision=134400
2009-05-19 17:33:21 +00:00
Atsushi Eno b330fc8e07 2009-05-19 Jonas Larsson <[email protected]>
* XmlSchemaUtil.cs, BuiltInDatatype.cs, XmlSchemaComplexType.cs:
	  Introduced new MS compatibility option by environment variable,
	  for bug #502115.


svn path=/trunk/mcs/; revision=134397
2009-05-19 14:43:55 +00:00
Atsushi Eno 2e31d6db16 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlSchemaGroupRef.cs : when getting optimized particle, reset was
	  incomplete. Patch by Jonas Larsson. Fixed bug #502168.

2009-05-07  Jonas Larsson <[email protected]> 

	* XmlSchemaValidatorTests.cs : added test for bug #501666.


svn path=/trunk/mcs/; revision=134396
2009-05-19 14:30:11 +00:00
Atsushi Eno a4c362bc65 2009-05-19 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : add To header.


svn path=/trunk/mcs/; revision=134394
2009-05-19 12:53:09 +00:00
Atsushi Eno 31009113d4 2009-05-19 Atsushi Enomoto <[email protected]>
* MessageFault.cs : fix several SOAP12 fault deserialization in xml
	  parsing.

	* MessageFaultTest.cs : added more SOAP 12 fault parser tests.
	* soap-fault.xml, soap-fault-incomplete4.xml : new test files.


svn path=/trunk/mcs/; revision=134389
2009-05-19 12:01:20 +00:00
Atsushi Eno 65586c8d12 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : fix utf16 array on getting its
	  length. Report correct length (since BinaryReader is directly used
	  it makes no sense to incompletely keep track of position in Source).

	* XmlBinaryDictionaryReaderTest.cs : added test for utf16 chars.


svn path=/trunk/mcs/; revision=134388
2009-05-19 11:37:30 +00:00
Atsushi Eno b6bad18813 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : support reader quotas.


svn path=/trunk/mcs/; revision=134371
2009-05-19 08:20:48 +00:00
Massimiliano Mantione edf1ef6cde Fixed estimate for short branches on amd64.
svn path=/trunk/mono/; revision=134370
2009-05-19 08:04:13 +00:00
Atsushi Eno 1716177eb5 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : no reason not to report invalid input string for
	  ToGuid().


svn path=/trunk/mcs/; revision=134369
2009-05-19 06:25:43 +00:00
Gonzalo Paniagua Javier 7c75a2608c revert. more things broken than fixed
svn path=/trunk/mcs/; revision=134365
2009-05-19 03:03:06 +00:00
Rodrigo Kumpera 865ab45e1e 2009-05-18 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the nested class table.

	* assembly-with-complex-type.cs: Add a nested class.

svn path=/trunk/mono/; revision=134363
2009-05-19 01:49:57 +00:00
Rodrigo Kumpera e2f8cc86bc 2009-05-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the nested class table.

svn path=/trunk/mono/; revision=134362
2009-05-19 01:49:36 +00:00
Rodrigo Kumpera 314a767704 2009-05-18 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the manifest resource table.

	* Makefile: Update to the new dependency.

	* assembly-with-resource.cs: Add an exported type to be used
	by the new tests.

svn path=/trunk/mono/; revision=134361
2009-05-19 01:49:11 +00:00
Rodrigo Kumpera fbb0da4db4 2009-05-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the manifest resource table.

svn path=/trunk/mono/; revision=134360
2009-05-19 01:48:51 +00:00
Miguel de Icaza f70325d17a 2009-05-18 Miguel de Icaza <[email protected]>
* daemon.c: Move the compile check of MONO_SIZEOF_SUNPATH to the
	file that uses it.

svn path=/trunk/mono/; revision=134359
2009-05-19 01:42:03 +00:00
Miguel de Icaza e50f0c5bc5 More header checks
svn path=/trunk/mono/; revision=134358
2009-05-19 01:36:14 +00:00
Miguel de Icaza 89941394d4 Do not include prototypes if sys/select.h is not available
svn path=/trunk/mono/; revision=134357
2009-05-19 01:32:53 +00:00
Miguel de Icaza ed08130188 2009-05-18 Miguel de Icaza <[email protected]>
* Rename `threads.c' to `wthreads.c' as broken build systems are
	not able to cope with two files with the same name across multiple

svn path=/trunk/mono/; revision=134356
2009-05-19 01:08:51 +00:00
Miguel de Icaza 1636d834a4 2009-05-18 Miguel de Icaza <[email protected]>
* include/private/gcconfig.h: Add support for Linux on the PS3


svn path=/trunk/mono/; revision=134354
2009-05-19 00:09:19 +00:00
Marek Habersack 74712b87c1 2009-05-18 Marek Habersack <[email protected]>
* BuildManager.cs: GetPrecompiledApplicationType () uses
	VirtualPathUtility.Combine to build global.asax virtual
	path. Patch from Robert Jordan <[email protected]>, thanks! Fixes
	bug #504615

svn path=/trunk/mcs/; revision=134342
2009-05-18 19:03:22 +00:00
Jb Evain 10c17dbb64 add tests
svn path=/trunk/mcs/; revision=134335
2009-05-18 17:09:29 +00:00
Jb Evain 5877fe65ac 2009-05-18 Jb Evain <[email protected]>
* Enumerable.cs (Max, Min): fix generic versions.


svn path=/trunk/mcs/; revision=134333
2009-05-18 17:08:43 +00:00
Carlos Alberto Cortez 530391a954 2009-05-18 Carlos Alberto Cortez <[email protected]>
* DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
	duplication of code, as well as actually getting the focus back in
	*any* scenario where the drop down is closed.


svn path=/trunk/mcs/; revision=134332
2009-05-18 17:01:58 +00:00
Jonathan Pobst 3dca53b50f 2009-05-18 Tom Hindle <[email protected]>
* ScrollableControl.cs: Ignore setting properties HScroll and 
	VScroll when AutoScroll is true.
	[Fixes bug #500213]

svn path=/trunk/mcs/; revision=134331
2009-05-18 16:53:39 +00:00
Jonathan Pobst deaf99aa2c 2009-05-18 Jonathan Pobst <[email protected]>
* ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
	disabled graphics look closer to the ones that .Net produces.
	[Fixes bug #473660]

svn path=/trunk/mcs/; revision=134324
2009-05-18 15:26:01 +00:00
Atsushi Eno af538f251c 2009-05-18 Atsushi Enomoto <[email protected]>
* ErrorProcessingHandler.cs, InputOrReplyRequestProcessor.cs :
	  they also premise request-reply channel and broke duplex channels.


svn path=/trunk/mcs/; revision=134319
2009-05-18 13:29:28 +00:00
Carlos Alberto Cortez 5d36614029 2009-05-18 Carlos Alberto Cortez <[email protected]>
* DateTimePicker.cs: When calculating the max width for the year part,
	use the current value, since *all* the possible values are exactly a 4
	digits number. This way we avoid a ArgumentOutOfRangeException trying
	to check against different values.
	Fixes #500917.


svn path=/trunk/mcs/; revision=134317
2009-05-18 12:59:54 +00:00
Atsushi Eno f481ba25de 2009-05-18 Atsushi Enomoto <[email protected]>
* FaultConverter.cs : avoid NRE for null IncomingMessageHeaders.


svn path=/trunk/mcs/; revision=134315
2009-05-18 11:48:20 +00:00
Veerapuram Varadhan 57901675e8 fix for #417398
svn path=/trunk/mcs/; revision=134313
2009-05-18 11:32:51 +00:00
Atsushi Eno 018b413577 2009-05-18 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, XmlFormatterDeserializer.cs,
	  KnownTypeCollection.cs : Support for array of some primitive types
	  in the deserializer was missing, which resulted in peer resolver
	  RegisterInfo deserialization failure.


svn path=/trunk/mcs/; revision=134312
2009-05-18 10:05:16 +00:00
Atsushi Eno 2c958ca2d5 2009-05-18 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs : remove type lookup optimization
	  (since .NET 3.5 introduced system types with DC) and fix
	  serialization of system types (ISerializable types were not
	  resolved in previous code).


svn path=/trunk/mcs/; revision=134310
2009-05-18 09:14:51 +00:00
Atsushi Eno c334c47baa 2009-05-18 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : it was only about 2.1. Fix build.


svn path=/trunk/mcs/; revision=134309
2009-05-18 09:03:15 +00:00
Atsushi Eno 30894427e8 2009-05-18 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : It is not possible to get schema without
	  IXmlSerializable instance.


svn path=/trunk/mcs/; revision=134308
2009-05-18 08:34:08 +00:00
Zoltan Varga 6b23cd77af 2009-05-17 Zoltan Varga <[email protected]>
* debug-helpers.c (dis_one): Add little-endian support for ldstr.

svn path=/trunk/mono/; revision=134303
2009-05-17 18:53:04 +00:00
Zoltan Varga f79f49d490 2009-05-17 Zoltan Varga <[email protected]>
* exceptions-ppc.c: Remove the caching from the trampoline creation
	functions, it is already done in the caller.

svn path=/trunk/mono/; revision=134302
2009-05-17 18:39:19 +00:00
Gert Driesen ae22b8dbe3 * CookieContainer.cs: Provide meaningful information in exception
messages, and improve compatibility with MS. Modified set_Capacity to
no longer change MaxCookieSize when new value is less than
MaxCookieSize.
* CookieTest.cs: Added test for Path.
* CookieContainerTest.cs: Added and improved .ctor tests.
Improved tests for Capacity and MaxCookieSize. Added tests for
PerDomainCapacity. Added tests for Add overloads, GetCookieHeader,
GetCookies and SetCookies. Added test for bug #421827.

svn path=/trunk/mcs/; revision=134295
2009-05-17 15:06:17 +00:00
Zoltan Varga c4800360b6 2009-05-17 Zoltan Varga <[email protected]>
* Makefile.am (test_messages): Fix the dependencies of this test.

svn path=/trunk/mono/; revision=134294
2009-05-17 12:09:02 +00:00
Zoltan Varga 0eda299d0f 2009-05-17 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_llvm_vcall_trampoline): Fix the llvm build.

svn path=/trunk/mono/; revision=134291
2009-05-17 01:14:45 +00:00
Zoltan Varga f17ac5ec1b 2009-05-17 Zoltan Varga <[email protected]>
* mini-ppc.h mini-arm.h mini-x86.h mini-amd64.h: Add
	MONO_ARCH_GSHARED_SUPPORTED define.

	* mini.c (mini_init): Use the MONO_ARCH_GSHARED_SUPPORTED define.

svn path=/trunk/mono/; revision=134290
2009-05-17 00:59:17 +00:00
Zoltan Varga 58e94d5892 2009-05-17 Zoltan Varga <[email protected]>
* configure.in: Add TARGET_POWERPC/POWERPC64 defines.

svn path=/trunk/mono/; revision=134289
2009-05-17 00:59:10 +00:00
Zoltan Varga 60a5072393 2009-05-17 Zoltan Varga <[email protected]>
* mini-arm.c mini.c: Get rid of the unused mono_arch_fixup_jinfo ()
	function.

svn path=/trunk/mono/; revision=134288
2009-05-17 00:59:03 +00:00
Zoltan Varga 3eec2f72a9 2009-05-16 Zoltan Varga <[email protected]>
* class.c (mono_class_get_vtable_entry): Avoid adding static-rgctx
	wrappers, this is now done in the JIT.

svn path=/trunk/mono/; revision=134287
2009-05-16 20:43:26 +00:00
Zoltan Varga 5593905be5 2009-05-16 Zoltan Varga <[email protected]>
* jit-icalls.c (mono_helper_compile_generic_method): Get rid of the
	call to mono_marshal_get_rgctx_invoke ().

svn path=/trunk/mono/; revision=134286
2009-05-16 20:28:24 +00:00
Zoltan Varga b616393946 2009-05-16 Zoltan Varga <[email protected]>
* mini.c method-to-ir.c mini-trampolines.c: Get rid of the usage of
	mono_marshal_get_static_rgctx_invoke (), all platforms which support
	gshared use the static rgctx trampolines now.

svn path=/trunk/mono/; revision=134285
2009-05-16 20:28:16 +00:00
Zoltan Varga 1d7a21846a In metadata/
2009-05-16  Zoltan Varga  <[email protected]>

	* class.c (mono_set_generic_sharing_supported): New internal function.
	(mono_class_generic_sharing_enabled): Move the #ifdef stuff to the JIT.

In mini/
2009-05-16  Zoltan Varga  <[email protected]>

	* mini.c (mini_init): Call mono_set_generic_sharing_supported () if the
	platform supports it.

svn path=/trunk/mono/; revision=134284
2009-05-16 20:16:49 +00:00
Miguel de Icaza 8c27e9fd64 Add
svn path=/trunk/mcs/; revision=134283
2009-05-16 20:16:43 +00:00
Miguel de Icaza 9f53a9fd85 2009-05-16 Miguel de Icaza <[email protected]>
* Apply patch from Alex Shulgin
	<[email protected]> to support OSX in
	NetworkInformation classes.

svn path=/trunk/mcs/; revision=134277
2009-05-16 18:03:09 +00:00
Sebastien Pouliot 259584ee45 2009-05-16 Sebastien Pouliot <[email protected]>
* Uri.cs (NET_2_1): Remove some extra code for NET_2_1


svn path=/trunk/mcs/; revision=134274
2009-05-16 15:40:37 +00:00
Gonzalo Paniagua Javier ede354f48e 2009-05-16 Gonzalo Paniagua Javier <[email protected]>
* RouteCollection.cs: when there is no named route, try the current
	route before going through the list. The known values (default or
	not) for the current route are merged with the values provided when
	attempting to match.
	Example:
		Html.RouteLink ("Text", new { page = 5 });
	
	when the current path is /some/path-here and the route is:

		routes.MapRoute("RouteName", "some/{one}-{two}/{page}",
		new { controller = "Some", action = "Index", page = 1});


svn path=/trunk/mcs/; revision=134272
2009-05-16 09:41:01 +00:00
Gonzalo Paniagua Javier d3637642f7 2009-05-16 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs:
	* HttpWebRequest.cs: support automatic decompression of the response.
	Fixes bug #504391.



svn path=/trunk/mcs/; revision=134269
2009-05-16 05:47:01 +00:00
Veerapuram Varadhan dcc6edfe8b 2009-05-16 Veerapuram Varadhan <[email protected]>
** Fixes #325464 - ToolItems.xsd
	* CustomDataClassGenerator.cs (CreateDataSetTableMembers): Prefix a "_" to
	member names when it is same as that of the dataset.  Fixes the CS0542 error
	during compilation of the generated source.

svn path=/trunk/mcs/; revision=134263
2009-05-16 02:37:37 +00:00
Veerapuram Varadhan 4dcf2b98a9 Nunit 2.4 changes and other sqlserver config fixes
svn path=/trunk/mcs/; revision=134258
2009-05-16 01:16:20 +00:00
Veerapuram Varadhan 29eccae63a Fix for bug #382589 and corresponding tests
svn path=/trunk/mcs/; revision=134257
2009-05-16 01:16:05 +00:00
Veerapuram Varadhan 375f804c04 2009-05-16 Veerapuram Varadhan <[email protected]>
** Fixes #382589
	* Tds.cs (ServerTdsVersion): New property to access ServerVersion.

	* Tds70.cs (WriteParameterInfo): Treat Decimal types as Numeric
	types from SQL Server 2000.

	* TdsVersion.cs: Add SQL Server 2008 version.

svn path=/trunk/mcs/; revision=134256
2009-05-16 01:15:31 +00:00
Rodrigo Kumpera c6586b2f70 2009-05-15 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the exported type table.

	* assembly-with-module.il: Old file not longer needed.

	* assembly-with-module.cs: File use to generate
	tests for the exported table.

	* module.il: Same. This file is written in MSIL because
	gmcs/SRE can't handle the AssemblyAttributesGoHere hack.

	* Makefile: Adjust the build to the new files.

svn path=/trunk/mono/; revision=134253
2009-05-15 21:35:12 +00:00
Rodrigo Kumpera 04d9352039 2009-05-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the exported type table.

svn path=/trunk/mono/; revision=134252
2009-05-15 21:34:55 +00:00
Rodrigo Kumpera 8642e2b0c4 2009-05-15 Rodrigo Kumpera <[email protected]>
* pedump.c (main): Fake an assembly for netmodules to make the verifier happy.

svn path=/trunk/mono/; revision=134251
2009-05-15 21:30:11 +00:00
Rodrigo Kumpera d65b7ed011 2009-05-15 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the file table.

svn path=/trunk/mono/; revision=134250
2009-05-15 21:29:18 +00:00
Rodrigo Kumpera 54f0bf9478 2009-05-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the file table.

svn path=/trunk/mono/; revision=134249
2009-05-15 21:28:56 +00:00
Rodrigo Kumpera 18f5923739 2009-05-15 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Fix one test for the assembly
	table.

	* cli-tables-tests.md: Add tests for assemblyref.

svn path=/trunk/mono/; revision=134247
2009-05-15 21:27:27 +00:00
Rodrigo Kumpera a1a8ead1de 2009-05-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_assembly_table): Fix an error message.

	* metadata-verify.c: Verify the assemblyref table.

svn path=/trunk/mono/; revision=134246
2009-05-15 21:27:03 +00:00
Rodrigo Kumpera 5005c62a76 2009-05-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_assembly_table): Fix the valid
	bits mask for flags.

svn path=/trunk/mono/; revision=134245
2009-05-15 21:26:02 +00:00
Carlos Alberto Cortez 665e5c6cf4 2009-05-15 Carlos Alberto Cortez <[email protected]>
* MessageBox.cs: When handling ProcessDialogChar, check that
	CancelButton is not null before trying to use it, to avoid a null ref
	exception. We don't need to do that on the ok/yes buttons, since they
	always exist.
	Fixes #503935.


svn path=/trunk/mcs/; revision=134226
2009-05-15 18:28:32 +00:00
Zoltan Varga 251f6199b9 2009-05-15 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_allocate_vars): Correctly save R5 when using AOT.

svn path=/trunk/mono/; revision=134225
2009-05-15 18:28:07 +00:00
Zoltan Varga bd4f00b2c4 2009-05-15 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Avoid duplicate labels for methods.

svn path=/trunk/mono/; revision=134218
2009-05-15 17:02:04 +00:00
Zoltan Varga ec820beb73 2009-05-15 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_emit_exceptions): Nullify the processed patches.

	* tramp-ppc.c (mono_arch_nullify_class_init_trampoline): Implement this
	for ppc.

svn path=/trunk/mono/; revision=134217
2009-05-15 16:43:34 +00:00
Zoltan Varga 70c9ec4dd6 2009-05-15 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Skip a few more characters in the debug
	label names.

svn path=/trunk/mono/; revision=134215
2009-05-15 16:23:30 +00:00
Zoltan Varga 91d588e423 2009-05-15 Zoltan Varga <[email protected]>
* debug-helpers.c (mono_method_full_name): Print generic parameters of
	generic methods as well.

svn path=/trunk/mono/; revision=134214
2009-05-15 16:23:23 +00:00
Carlos Alberto Cortez ead154b00f 2009-05-15 Carlos Alberto Cortez <[email protected]>
* RTF.cs: If the rtf specified a code page outside the valid values,
	fallback to the default one.
	Fixes #503174.


svn path=/trunk/mcs/; revision=134212
2009-05-15 15:59:16 +00:00
Jb Evain 0d47d8081c 2009-05-15 Jb Evain <[email protected]>
* Mono.Tuner/InjectSecurityAttributes.cs: fix retrieval
	of generic methods.


svn path=/trunk/mcs/; revision=134208
2009-05-15 14:33:21 +00:00
Massimiliano Mantione af1e5f95cc Made it possible for mono_arch_instrument_epilog to preserve argument registers.
svn path=/trunk/mono/; revision=134207
2009-05-15 14:16:37 +00:00
Massimiliano Mantione 81d9b184eb Removed MONO_INST_BRLABEL instruction flag.
svn path=/trunk/mono/; revision=134206
2009-05-15 14:16:11 +00:00
Jb Evain 8a380e8b12 2009-05-15 Jb Evain <[email protected]>
* Mono.Tuner/InjectSecurityAttributes.cs: fix issues
	with non unique MethodReference.ToString for generic method defs.


svn path=/trunk/mcs/; revision=134200
2009-05-15 13:32:27 +00:00
Carlos Alberto Cortez c6a19d36f0 2009-05-15 Carlos Alberto Cortez <[email protected]>
* ListBox.cs: Handle the key down event in WndProc instead of doing it
	in an event handler, as we need to avoid any operation in case
	the user has handled it in its own OnKeyDown handler, and this can't
	be achieved since our handler would be the first one always.
	* FontDialog.cs: Update the calls since our method handling key down
	has been renamed.
	Fixes #503469.


svn path=/trunk/mcs/; revision=134198
2009-05-15 12:57:46 +00:00
Atsushi Eno a22727c329 2009-05-15 Atsushi Enomoto <[email protected]>
* MessageFault.cs : Reason is mandatory. raise XmlException, and
	  CommunicationException in each CreateFault().

	* soap-fault-incomplete.xml : new test file.
	* MessageFaultTest.cs : new test.

	* System.ServiceModel.dll_test.sources: added MessageFaultTest.cs.


svn path=/trunk/mcs/; revision=134197
2009-05-15 11:27:39 +00:00
Atsushi Eno eaf8f77e85 2009-05-15 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : LookupNamespace() in XmlReader from
	  ReadSubtree() should work correctly on text nodes.

	* XPathNavigatorCommonTests.cs : test that LookupNamespace() in
	  XmlReader from ReadSubtree() works correctly on text nodes.


svn path=/trunk/mcs/; revision=134196
2009-05-15 11:14:59 +00:00
Veerapuram Varadhan cdae12f3ef 2009-09-15 Veerapuram Varadhan <[email protected]>
* OracleParameter.cs: Consider DBNull.Value as null and
	update size and sizeSet accordingly.

svn path=/trunk/mcs/; revision=134192
2009-05-15 10:48:55 +00:00
Veerapuram Varadhan 4ee5391d7c 2009-05-15 Veerapuram Varadhan <[email protected]>
** Fixes #424908
	* OracleParameter.cs:  Make sure size and sizeSet are properly
	updated whenever value changes.

svn path=/trunk/mcs/; revision=134191
2009-05-15 10:47:55 +00:00
Atsushi Eno 6525dc5da6 2009-05-15 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : on listener side, get TcpClient at
	  Open(). Some (but not all yet) continuous communication works now.
	  Use ProtocolException. Remove dummy binary session string.


svn path=/trunk/mcs/; revision=134185
2009-05-15 04:54:43 +00:00
Atsushi Eno 3a7ba8e605 2009-05-13 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : open channel before using it.


svn path=/trunk/mcs/; revision=134184
2009-05-15 04:44:01 +00:00
Carlos Alberto Cortez 30033994a2 2009-05-15 Carlos Alberto Cortez <[email protected]>
* Application.cs: We should dismiss the active ToolStrip when we
	receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
	keyboard short cut can be properly processed by another menu item.
	Fixes part of #503663.


svn path=/trunk/mcs/; revision=134183
2009-05-15 04:18:21 +00:00
Atsushi Eno 683f1431b2 2009-05-15 Atsushi Enomoto <[email protected]>
* DataContractSerializer.cs : write dictionary string directly for
	  root name/ns (root only, so far).


svn path=/trunk/mcs/; revision=134182
2009-05-15 04:15:32 +00:00
Geoff Norton 4ecd813043 2009-05-15 Geoff Norton <[email protected]>
* mini-darwin.c: This works on arm now.

svn path=/trunk/mono/; revision=134181
2009-05-15 02:29:13 +00:00
Geoff Norton 70d9cb7067 2009-05-15 Geoff Norton <[email protected]>
* gc.c: MachO/Darwin supports and uses semaphores fine for this
        use-case and is significantly more performant than the wapi layer.

svn path=/trunk/mono/; revision=134180
2009-05-15 02:24:32 +00:00
Geoff Norton 2008c70fa2 2009-05-15 Geoff Norton <[email protected]>
* handles.c: Don't start the collection thread if we've disabled
        shared handles.

svn path=/trunk/mono/; revision=134179
2009-05-15 02:24:27 +00:00
Marek Habersack f3160d4154 2009-05-15 Marek Habersack <[email protected]>
* HtmlForm.cs: if application isn't running on /, make sure we
	generate the correct relative path for the action form attribute.

svn path=/trunk/mcs/; revision=134176
2009-05-15 01:21:14 +00:00
Jonathan Pryor e6b5bca321 * ListChangedEventArgsTest.cs: Fix .NET 1.1 compile error.
svn path=/trunk/mcs/; revision=134175
2009-05-15 01:18:56 +00:00
Geoff Norton 0f1a80a02e 2009-05-14 Geoff Norton <[email protected]>
* jit.h, driver.c: Allow full-aot to be decided programatically by the
        embedding api.

svn path=/trunk/mono/; revision=134174
2009-05-15 01:07:01 +00:00
Zoltan Varga 3c4c33390e 2009-05-15 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_magic_trampoline): Handle static rgctx invoke
	wrappers during full aot mode correctly.

	* aot-runtime.c (mono_aot_get_unbox_trampoline): Handle shared generic
	methods correctly.

svn path=/trunk/mono/; revision=134173
2009-05-15 01:01:58 +00:00
Sebastien Pouliot 16d3fe2785 2009-05-14 Sebastien Pouliot <[email protected]>
* Socket_2_1.cs: Add ConnectAsync support for NET_2_1 which will
	ensure the EndPoint has a valid policy before connecting.
	* SocketAsyncEventArgs.cs: Add support for IList<ArraySegment<byte>>
	when sending. Add ConnectSocket for NET_2_1


svn path=/trunk/mcs/; revision=134171
2009-05-15 00:31:55 +00:00
Zoltan Varga 0939307e39 2009-05-15 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_aot_method_hash): Use our internal version of
	mono_metadata_type_hash ().

svn path=/trunk/mono/; revision=134170
2009-05-15 00:15:36 +00:00
Jonathan Pryor c5011b3e9c * Makefile: Distribute Test/test-config-file-net-2.0.
svn path=/trunk/mcs/; revision=134169
2009-05-14 23:33:37 +00:00
Marek Sieradzki 73e2d7c450 2009-05-15 Marek Sieradzki <[email protected]>
* BuildItemTest.cs:
        * BuildPropertyGroupTest.cs:
        * BuildPropertyGroupCollectionTest.cs:
        * BuildPropertyTest.cs:
        * BuildItemGroupTest.cs:
        * EngineTest.cs:
        * InternalLoggerExceptionTest.cs:
        * ProjectTest.cs: Don't compare exception messages.


svn path=/trunk/mcs/; revision=134168
2009-05-14 23:17:40 +00:00
Marek Sieradzki 5efec32266 2009-05-15 Marek Sieradzki <[email protected]>
* Items.cs
        * Conditions.cs: Don't check exception messages.


svn path=/trunk/mcs/; revision=134167
2009-05-14 23:14:57 +00:00
Zoltan Varga 59a85c26e9 2009-05-14 Zoltan Varga <[email protected]>
* image-writer.c (asm_writer_emit_local_symbol): Make this a nop on
	osx.

svn path=/trunk/mono/; revision=134166
2009-05-14 21:59:17 +00:00
Ankit Jain 05b7f99710 Fix tests on monobuild
* Makefile (EXTRA_DISTFILES): Add Test/resources/Sample.vb

svn path=/trunk/mcs/; revision=134153
2009-05-14 18:12:18 +00:00
Ankit Jain f5d2048d70 * ProjectTest.cs (TestAssignment1):
* UsingTaskTest.cs (TestTaskName):
(TestAssemblyNameOrAssemblyFile1):
(TestAssemblyNameOrAssemblyFile2): Don't compare exception messages.

svn path=/trunk/mcs/; revision=134151
2009-05-14 18:07:02 +00:00
Ankit Jain 8f0ddff7be * Project.cs (.ctor): Init timeOfLastDirty.
svn path=/trunk/mcs/; revision=134150
2009-05-14 18:05:47 +00:00
Miguel de Icaza d77da8aa8f Add more diagnostics
svn path=/trunk/mono/; revision=134144
2009-05-14 16:50:42 +00:00
Jonathan Pryor b55df3bcb0 * src/DbLinq/Data/Linq/Sugar/Implementation/QueryCache.cs: Temporarily
disable QueryCache.GetFromSelectCache(), as the cache keeps breaking
	  for currently undiagnosed reasons.  With this disabled, NerdDinner
	  seems to work properly.

svn path=/trunk/mcs/; revision=134143
2009-05-14 16:36:54 +00:00
Zoltan Varga 90d0f74522 2009-05-14 Zoltan Varga <[email protected]>
* mini-mips.c mini-mips.h exceptions-mips.c: Transition the mips backend
	to use mono_arch_throw_corlib_exception.

svn path=/trunk/mono/; revision=134141
2009-05-14 15:28:19 +00:00
Sebastien Pouliot 4db8fce1e4 2009-05-14 Sebastien Pouliot <[email protected]>
* DnsEndPoint_2_1.cs: Add method to return an IPEndPoint from a
	DnsEndPoint that match the requested AddressFamily


svn path=/trunk/mcs/; revision=134140
2009-05-14 15:22:59 +00:00
Jonathan Pryor 74bba50348 * Makefile: Add 'update-dblinq' target, which copies files from my
dblinq checkout into src.
	* System.Data.Linq.dll.sources, System.Data.Linq_test.dll.sources: Add
	  additional files.
	* src/**/*: Flush; syncs to DbLinq r1073, greatly improves object
	  tracking support, more tests....

svn path=/trunk/mcs/; revision=134139
2009-05-14 15:09:36 +00:00
Jonathan Pryor 2d87668646 * System_test.dll.sources: Add ListChangedEventArgsTest.cs.
* System.ComponentModel/ListChangedEventArgs.cs: Fix .NET compatibility
	  problems (discovered from trying to run the System.Data.Linq 
	  unit tests).
	* Test/System.ComponentModel/ListChangedEventArgsTest.cs: Added; tests
	  for ListChangedEventArgs.

svn path=/trunk/mcs/; revision=134138
2009-05-14 15:08:47 +00:00
Zoltan Varga 0ec3b9f1d4 2009-05-14 Zoltan Varga <[email protected]>
* mini-ppc.c mini-ppc.h exceptions-ppc.c: Use
	mono_arch_throw_corlib_exception for throwing corlib exceptions.

svn path=/trunk/mono/; revision=134137
2009-05-14 15:07:34 +00:00
Zoltan Varga 64f1864928 2009-05-09 Zoltan Varga <[email protected]>
* tramp-ppc.c (mono_arch_get_static_rgctx_trampoline): Implement this for
	PPC.

	* mini-ppc.h: Enable static rgctx trampolines for ppc.

svn path=/trunk/mono/; revision=134136
2009-05-14 15:07:25 +00:00
Zoltan Varga 81fb6cbb76 2009-05-14 Zoltan Varga <[email protected]>
* Makefile.am (test-coreclr-security): Use the net_2_1_raw profile since
	the net_2_1 profile is no longer generated.

svn path=/trunk/mono/; revision=134129
2009-05-14 12:59:08 +00:00
Atsushi Eno ff6c7fa8e9 2009-05-14 Atsushi Enomoto <[email protected]>
* XmlBinaryWriterSession.cs : added test to verify that session is
	  actually used in binary dictionary writer.


svn path=/trunk/mcs/; revision=134126
2009-05-14 12:36:45 +00:00
Zoltan Varga 0d09d91f89 2009-05-14 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_patch): Allocate the data for R4/R8 from the
	domain mempool.

	* mini.c (mono_patch_info_dup_mp): Copy the table of switch targets too.

svn path=/trunk/mono/; revision=134120
2009-05-14 11:01:08 +00:00
Atsushi Eno aba63b35bb 2009-05-14 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Moved
	  sending/receiving SizedMessageRecord parts to manager class.
	  Handle writer session, though it is likely broken at dictionary
	  writer part (no string is written so far).
	* BinaryMessageEncoder.cs : add writer session and rename reader
	  session.


svn path=/trunk/mcs/; revision=134117
2009-05-14 10:46:38 +00:00
Gonzalo Paniagua Javier 67213dd648 2009-05-14 Gonzalo Paniagua Javier <[email protected]>
* TypeTest.cs: test for bug #503728


svn path=/trunk/mcs/; revision=134114
2009-05-14 10:24:08 +00:00
Gonzalo Paniagua Javier 6ef4c55de3 2009-05-14 Gonzalo Paniagua Javier <[email protected]>
* Type.cs: (GetInterfaceMap) 'this' can't be an interface itself.
	Fixed bug #503728.


svn path=/trunk/mcs/; revision=134112
2009-05-14 10:18:03 +00:00
Atsushi Eno b479bfcbb6 2009-05-14 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Via uri
	  is mandatory in initiator preamble packet. Handle Fault reply in
	  initiator preamble.


svn path=/trunk/mcs/; revision=134111
2009-05-14 09:38:45 +00:00
Atsushi Eno 432c16b14f 2009-05-14 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : ongoing refactoring to collect [MC-NMF]
	  based communication under TcpBinaryFrameManager class.


svn path=/trunk/mcs/; revision=134107
2009-05-14 08:52:14 +00:00
Atsushi Eno d691a2d3df 2009-05-14 Atsushi Enomoto <[email protected]>
* SerializationMap.cs: interface collection failed to serialize as
	  it was calling inappropriate GetInterfaceMap().

	* XmlObjectSerializerTest.cs : added serialization test for
	  interface collection.


svn path=/trunk/mcs/; revision=134100
2009-05-14 04:28:25 +00:00
Jonathan Pryor 8c22b25395 * Makefile: $(test_lib).config needs to be profile-specific.
* Test/test-config-file: Revert the prior change, as this breaks 1.0
	  profile testing.
	* Test/test-config-file-net-2.0: Added; config file to use when testing
	  under the .NET 2.0+ profile, for #502944.

svn path=/trunk/mcs/; revision=134099
2009-05-14 03:06:32 +00:00
Marek Habersack 03a497665b 2009-05-14 Marek Habersack <[email protected]>
* HandlerFactoryConfiguration.cs: if we're matching a default
	handler, disallow caching.

2009-05-14  Marek Habersack  <[email protected]>

	* HttpHandlersSection.cs: if we're matching a default handler,
	disallow caching.

2009-05-14  Marek Habersack  <[email protected]>

	* HttpApplication.cs: LocateHandler won't cache if a default
	handler was returned.

svn path=/trunk/mcs/; revision=134097
2009-05-14 01:18:12 +00:00
Rodrigo Kumpera b959d64425 2009-05-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the assembly table.

svn path=/trunk/mono/; revision=134095
2009-05-13 23:43:43 +00:00
Rodrigo Kumpera c2543d8597 2009-05-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the assembly table.

svn path=/trunk/mono/; revision=134094
2009-05-13 23:42:49 +00:00
Rodrigo Kumpera 68b48fb41b 2009-05-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Fix rows limit check.

svn path=/trunk/mono/; revision=134093
2009-05-13 23:40:20 +00:00
Rodrigo Kumpera 60babc7d3e 2009-05-13 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for fieldrva.

svn path=/trunk/mono/; revision=134092
2009-05-13 23:37:19 +00:00
Rodrigo Kumpera bdb96c8ef0 2009-05-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the fieldrva table.

svn path=/trunk/mono/; revision=134091
2009-05-13 23:37:03 +00:00
Zoltan Varga e64b2edf4b 2009-05-14 Zoltan Varga <[email protected]>
* aot-compiler.c: Emit a local symbol prefixed with the assembly name
	for the got to make debugging easier and to avoid confusing it with the
	system got.

svn path=/trunk/mono/; revision=134089
2009-05-13 23:05:11 +00:00
Zoltan Varga fd41b46ebe 2009-05-14 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Emit a C style symbol for each
	method so a breakpoint can be set when using gdb.

svn path=/trunk/mono/; revision=134086
2009-05-13 22:52:21 +00:00
Andreia Gaita 34bdc81406 2009-05-13 Andreia Gaita <[email protected]>
* HtmlDocument.cs: If the objects are strings, wrap them in ""

svn path=/trunk/mcs/; revision=134084
2009-05-13 21:43:32 +00:00
Andreia Gaita 5f64f78a81 2009-05-13 Andreia Gaita <[email protected]>
* HtmlDocument.cs: Fix InvokeScript call (duh).

svn path=/trunk/mcs/; revision=134083
2009-05-13 21:43:17 +00:00
Veerapuram Varadhan 6db4d26f34 2009-05-12 Veerapuram Varadhan <[email protected]>
** Fixes rest of #497715 - Patch by Jonas Larsson <[email protected]>
	* TdsMetaParameter.cs: Add support for XML type.  For now, handle
	XML type as just NVarchar.

svn path=/trunk/mcs/; revision=134079
2009-05-13 20:47:15 +00:00
Jb Evain 045b9fd735 2009-05-13 Jb Evain <[email protected]>
* MessageHeader.cs: use a SL friendly way of creating an XmlReader
	from a StringReader.


svn path=/trunk/mcs/; revision=134064
2009-05-13 15:43:31 +00:00
Atsushi Eno efe4fe84e0 moving missing WCF assembly (mono-only one).
svn path=/trunk/mcs/; revision=134063
2009-05-13 15:23:03 +00:00
Jb Evain 15a72b59fc delete for good
svn path=/trunk/mcs/; revision=134062
2009-05-13 15:13:28 +00:00
Jonathan Chambers 6821167f59 Add initial solution generation support. This generates a solution with all mcs assemblies. It does not handle dependencies yet. Also, it brings Visual Studio to a standstill, so it's not really usable for editing.
svn path=/trunk/mono/; revision=134055
2009-05-13 14:09:35 +00:00
Mark Probst 40af486ec8 Speed up weak refs.
2009-05-13  Mark Probst  <[email protected]>

	* sgen.c: Speed up weak links and finalizers by grouping them by
	generation.

svn path=/trunk/mono/; revision=134053
2009-05-13 13:08:18 +00:00
Atsushi Eno a18fbb9d9d 2009-05-13 Atsushi Enomoto <[email protected]>
* MessageImpl.cs, MessageHeader.cs : eliminate xlinq in 2.1, and
	  actually eliminate DOM-based implementation too in 2.0.

	* Makefile : remove xlinq dependency.


svn path=/trunk/mcs/; revision=134052
2009-05-13 11:53:36 +00:00
Atsushi Eno 27ffe029c5 2009-05-13 Atsushi Enomoto <[email protected]>
* ServiceCredentials.cs : IServiceBehavior.Validate() should not
	  throw NIE. No check so far.


svn path=/trunk/mcs/; revision=134049
2009-05-13 11:03:04 +00:00
Atsushi Eno ec6df7fbdb 2009-05-13 Atsushi Enomoto <[email protected]>
* ReplyHandler.cs, InputOrReplyRequestProcessor.cs,
	  MessageProcessingContext.cs : reply processing is also needed by
	  non-request channels (i.e. duplex). Current code basis lacked
	  such possibility. Quick fix by adding duplex support in
	  ReplyHandler so far.


svn path=/trunk/mcs/; revision=134046
2009-05-13 10:30:23 +00:00
Atsushi Eno 3f72b59b04 2009-05-13 Atsushi Enomoto <[email protected]>
* OperationContext.cs : missing from the previous commit (remove
	  timeouts).


svn path=/trunk/mcs/; revision=134045
2009-05-13 10:26:40 +00:00
Atsushi Eno 7bcaf9bbbc 2009-05-13 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs, SecurityHandler.cs,
	  InputOrReplyRequestProcessor.cs, MessageProcessingContext.cs :
	  remove default communication timeouts from several types. They
	  bring bogus NRE. Instead, fill timeouts in ChannelDispatcher and
	  use it when required (it was actually *only* request processor).

	* ChannelDispatcherTest.cs : make sure ctor args are nullable.


svn path=/trunk/mcs/; revision=134044
2009-05-13 10:08:46 +00:00
Atsushi Eno 569b4b0f65 2009-05-13 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : wrong channel argument.


svn path=/trunk/mcs/; revision=134042
2009-05-13 09:25:12 +00:00
Mark Probst aba0daaba5 Free previous GCHandle when overwriting an entry in delegate_hash_table.
2009-05-13  Mark Probst  <[email protected]>

	* marshal.c (delegate_hash_table_add): When overwriting an entry,
	free the old GCHandle (only applies to SGen).

svn path=/trunk/mono/; revision=134040
2009-05-13 07:47:42 +00:00
Gonzalo Paniagua Javier 75851e835c 499009 has been fixed. Remove the workaround.
svn path=/trunk/mcs/; revision=134030
2009-05-13 01:13:30 +00:00
Gonzalo Paniagua Javier 3ca2cb0516 fix test
svn path=/trunk/mcs/; revision=134029
2009-05-13 00:43:10 +00:00
Gonzalo Paniagua Javier d073acc2b4 2009-05-12 Gonzalo Paniagua Javier <[email protected]>
* UrlPattern.cs: if the pattern is line {a}/{b} and {b} is substituted
	by an empty string, remove the '/' too.


svn path=/trunk/mcs/; revision=134028
2009-05-13 00:40:51 +00:00
Zoltan Varga 96990d1970 2009-05-13 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_aot_method_hash): Implement this properly based
	on mono_method_get_imt_slot ().

svn path=/trunk/mono/; revision=134026
2009-05-13 00:17:24 +00:00
Zoltan Varga 5e5bf2a987 2009-05-13 Zoltan Varga <[email protected]>
* aot-runtime.c (find_extra_method_in_amodule): Get rid of the
	num_decodes variables.

svn path=/trunk/mono/; revision=134020
2009-05-12 23:50:17 +00:00
Zoltan Varga 7b44cfebfb 2009-05-13 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_aot_method_hash): Revert part of the last
	change as it doesn't seem to work.

svn path=/trunk/mono/; revision=134016
2009-05-12 23:33:59 +00:00
Zoltan Varga 8086447b0f 2009-05-13 Zoltan Varga <[email protected]>
* loader.c (mono_get_method_from_token): Avoid the expensive call to
	mono_metadata_load_generic_params () for non-generic methods.

svn path=/trunk/mono/; revision=134015
2009-05-12 23:20:38 +00:00
Zoltan Varga 61991b6f21 2009-05-13 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_aot_method_hash): Improve the hashing of
	wrappers.

svn path=/trunk/mono/; revision=134014
2009-05-12 23:20:30 +00:00
Gonzalo Paniagua Javier f9394727d6 2009-05-12 Gonzalo Paniagua Javier <[email protected]>
* UrlPattern.cs: non-string default arguments work now.


svn path=/trunk/mcs/; revision=134012
2009-05-12 23:17:03 +00:00
Marek Habersack d219fb0b28 2009-05-12 Marek Habersack <[email protected]>
* UrlPattern.cs: The
	value comparison is done case-insensitively when the dictionary
	values are strings. Fixes bug #502555

svn path=/trunk/mcs/; revision=133997
2009-05-12 21:51:01 +00:00
Zoltan Varga a2cebe9a31 2009-05-12 Zoltan Varga <[email protected]>
* aot-compiler.c mini.c mini-amd64.h mini-arm.h: Kill
	MONO_ARCH_FULL_AOT_IMT_SUPPORTED define, both platforms now support imt.

svn path=/trunk/mono/; revision=133993
2009-05-12 21:31:03 +00:00
Zoltan Varga 5b7f08d53a 2009-05-12 Zoltan Varga <[email protected]>
* mini.c (mini_init): Install mono_aot_get_imt_thunk as the IMT thunk
	builder when using full aot.

	* mini-amd64.c (mono_arch_build_imt_thunk): Don't handle the full-aot case
	here, it is already handled.

	* mini-arm.c (mono_arch_emit_imt_argument): Pass the dynamic imt arg
	correctly for IMT.

	* aot-compiler.c (arch_emit_imt_thunk): Implement this for ARM.

	* mini-arm.h: Enable IMT for full aot.

svn path=/trunk/mono/; revision=133992
2009-05-12 21:26:53 +00:00
Marek Habersack f1f5d2d327 2009-05-12 Marek Habersack <[email protected]>
* UrlPattern.cs: TrySubstitute performs substitution trimming. If
	a segment would be set to a default value and all of its following
	segments as well, it will be omitted from the generated URL.

svn path=/trunk/mcs/; revision=133990
2009-05-12 20:37:34 +00:00
Mark Probst 9083014dc9 Remove an object's monitor's weak link when clearing domains.
2009-05-12  Mark Probst  <[email protected]>

	* monitor.c, monitor.h (mono_monitor_get_object_monitor_weak_link):
	New function for returning a monitor's weak link if it has one.

	* sgen-gc.c: Remove an object's monitor's weak link (if it has
	one) when clearing a domain.  These can still be around because
	the object might not have been collected.

svn path=/trunk/mono/; revision=133989
2009-05-12 20:22:02 +00:00
Jonathan Pryor 3b6088ff92 * System.Diagnostics/DiagnosticsConfigurationHandler.cs: Use the new
TraceSourceInfo(string, SourceLevels, TraceImplSettings) constructor.
	* System.Diagnostics/TraceSourceInfo.cs: Add a new constructor, 
	  TraceSourceInfo(string, SourceLevels, TraceImplSettings), which adds
	  the DefaultTraceListener w/o depending upon (the possibly still
	  initializing) TraceImpl members.  Fixes #502944.
	* Test/test-config-file: Add a /configuration/system.diagnostics/source
	  section to elicit the buggy behavior found in #502944.

svn path=/trunk/mcs/; revision=133981
2009-05-12 18:53:16 +00:00
Zoltan Varga 95f93988d5 2009-05-12 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Don't emit imt thunk if the
	arch doesn't support it.

svn path=/trunk/mono/; revision=133976
2009-05-12 15:51:27 +00:00
Zoltan Varga bdb90eb61e 2009-05-12 Zoltan Varga <[email protected]>
* mini.c (mini_init): Don't disable IMT for full aot if the
	architecture supports it.

	* mini.h (MonoAotTrampoline): New enum containing the different types
	of 'numerous' trampolines.
	(MONO_AOT_FILE_VERSION): Bump this.

	* aot-compiler.c aot-runtime.c: Unify the handling of specific and
	static rgctx trampolines. Add support for full-aot IMT thunks.

	* mini-amd64.h: Enable IMT for full aot.

svn path=/trunk/mono/; revision=133971
2009-05-12 15:02:47 +00:00
Zoltan Varga a66c62209f 2009-05-12 Zoltan Varga <[email protected]>
* gc.c: Fix a warning.

svn path=/trunk/mono/; revision=133970
2009-05-12 14:58:09 +00:00
Carlos Alberto Cortez bd9df371f2 * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
* ComboBox.cs: If auto complete is being used, it is needed to update
	the actual value of the combo box, doing it immediately if the user
	presses Enter, or doing it when our combo box loses focus. Finally,
	when handling Enter and Escape keys for the combobox, don't try to
	hide the listbox if it is not visible in the first place. 
	Fixes part of #489339.

2009-05-11  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=133969
2009-05-12 14:55:04 +00:00
Zoltan Varga f50cce0a65 2009-05-12 Zoltan Varga <[email protected]>
* TestDriver.cs: Add a CategoryAttribute class and an --exclude option
	to exclude tests belonging to a category.

	* generics.cs: Mark some tests with a !FULLAOT category.

	* Makefile.am (fullaotcheck): Run tests with --exclude !FULLAOT. Include
	generics tests.

svn path=/trunk/mono/; revision=133968
2009-05-12 14:49:26 +00:00
Sebastien Pouliot a100d9517e 2009-05-12 Sebastien Pouliot <[email protected]>
* WebHeaderCollection_2_1.cs: Headers are case insensitive but we
	must keep them in their original form since AllKeys property will
	report them that way and user code (like DRT#288) can depends on
	this behavior.


svn path=/trunk/mcs/; revision=133966
2009-05-12 13:34:14 +00:00
Tor Lillqvist fe3c7974db 2009-05-12 Tor Lillqvist <[email protected]>
* template_main.c: Some small improvements on Windows: No need to
	include <shellapi.h>, <windows.h> does it already. Don't use the
	argc value as passed to main(), instead just let
	CommandLineToArgvW() overwrite it. Free the buffer returned by
	CommandLineToArgvW().


svn path=/trunk/mcs/; revision=133962
2009-05-12 10:33:40 +00:00
Kornél Pál 2411d34b28 * TODO: Added notices about linking Mono statically.
svn path=/trunk/mcs/; revision=133960
2009-05-12 09:58:49 +00:00
Kornél Pál fd195610e8 2009-05-12 Kornél Pál <[email protected]>
* gc.c (mono_gc_init): Set gc_thread on creation. This avoids the
	prevous wait that resulted in a deadlock on Windows when initializing
	the runtime form DllMain. Also results in improved startup time.
	(finalizer_thread): Get rid of thread_started_event.
	* threads.c, threads-types.h (mono_thread_create_internal): Return the
	resulting MonoThread.

	Contributed under MIT/X11 license.

Also fixed ChangeLog encoding.

svn path=/trunk/mono/; revision=133959
2009-05-12 09:07:56 +00:00
Gonzalo Paniagua Javier eda5c831df 2009-05-11 Gonzalo Paniagua Javier <[email protected]>
* TcpClient.cs:
	* Socket.cs:
	* UdpClient.cs: use GetHostAddresses() instead of Resolve or
	GetHostEntry.


svn path=/trunk/mcs/; revision=133951
2009-05-12 03:56:03 +00:00
Gonzalo Paniagua Javier d10f265ad0 2009-05-11 Gonzalo Paniagua Javier <[email protected]>
* Dns.cs: made GetHostAddresses and friends internal for 1.x
	* EndpointPermission.cs: use GetHostAddresses.


svn path=/trunk/mcs/; revision=133949
2009-05-12 03:49:14 +00:00
Rodrigo Kumpera 6664eb94c2 2009-05-11 Rodrigo Kumpera <[email protected]>
* assembly-with-methods.cs: Mark the class with the
	P/Invoke as abstract.

	* cli-tables-tests.md: Add tests for implmap.

svn path=/trunk/mono/; revision=133947
2009-05-12 03:31:25 +00:00
Rodrigo Kumpera 1f0174282a 2009-05-11 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the implmap table.
	Don't require that #US and #Strings be present.

svn path=/trunk/mono/; revision=133946
2009-05-12 03:30:29 +00:00
Gonzalo Paniagua Javier acbdd80484 2009-05-11 Gonzalo Paniagua Javier <[email protected]>
* UdpClient.cs: if possible, avoid DNS lookups when the host name is
	an IP address. Related to bug #502866.


svn path=/trunk/mcs/; revision=133944
2009-05-12 03:14:36 +00:00
Carlos Alberto Cortez 3652db357d 2009-05-11 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDownTest.cs: New test to assure the Height atfer
	calculating the layout depends on ToolStripItem.GetPreferredHeight.


svn path=/trunk/mcs/; revision=133943
2009-05-12 02:13:32 +00:00
Carlos Alberto Cortez 5df136a075 2009-05-11 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDownMenu.cs: Use the height returned by
	ToolStripItem.GetPreferredHeight to calculate our own height.


svn path=/trunk/mcs/; revision=133941
2009-05-12 02:11:19 +00:00
Sebastien Pouliot 837f7ed65b 2009-05-11 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Delegate checks are done at creation time,
	not a invocation time. Fix exception for Telerik Silverlight demo


svn path=/trunk/mono/; revision=133938
2009-05-12 01:54:15 +00:00
Zoltan Varga 3847a71032 2009-05-12 Zoltan Varga <[email protected]>
* collection.c (collection_thread): Get rid of all the ifdefs and
	gcc attributes, simply return NULL.

svn path=/trunk/mono/; revision=133934
2009-05-11 22:52:12 +00:00
Tor Lillqvist f448b9757b 2009-05-12 Tor Lillqvist <[email protected]>
* mkbundle.1: Document MONO_BUNDLED_OPTIONS.


svn path=/trunk/mono/; revision=133933
2009-05-11 22:07:31 +00:00
Sebastien Pouliot 6961ce6c4f * WebHeaderCollection_2_1.cs: Headers are removed only in special
cases and never when the "this" property is used. Call ToLower
	in SetHeader too in order to avoid typos.

2009-05-11  Sebastien Pouliot  <[email protected]>


svn path=/trunk/mcs/; revision=133930
2009-05-11 21:34:04 +00:00
Mark Probst 8cfb5e70a7 Reset abort exception/state and current_appcontext early to avoid cross-context problems.
2009-05-11  Mark Probst  <[email protected]>

        * sgen-gc.c (need_remove_object_for_domain): Remove the special
        case for the Thread class.

        * threads.c: Do clean-up of abort exception/state in
        thread_cleanup() instead of Thread.free_internal().  Also clean up
        current_appcontext.  The reason we have to do that is because
        those references might point into another domain and if that
        domain is unloaded before the thread is finalized, they point to
        invalid data.

svn path=/trunk/mono/; revision=133925
2009-05-11 20:28:05 +00:00
Sebastien Pouliot 1f57fbd519 2009-05-11 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Fix Accept and ContentType properties
	to use, with special care, the Headers property
	* WebHeaderCollection_2_1.cs (SetHeader): Add or remove header.


svn path=/trunk/mcs/; revision=133916
2009-05-11 19:22:21 +00:00
Tor Lillqvist 888a527041 2009-05-11 Tor Lillqvist <[email protected]>
* template_main.c: Enable passing options to the bundled Mono
	interpreter through a MONO_BUNDLED_OPTIONS environment
	variable. Requested in bug #495858.

	Enable non-ASCII (arbitraty Unicode in fact) command-line
	parameters to a mkbundled executable on Windows. Use
	GetCommandLineW(), CommandLineToArgvW(), and then
	g_utf16_to_utf8(). From bug #446172.


svn path=/trunk/mcs/; revision=133915
2009-05-11 19:21:00 +00:00
Atsushi Eno 1c400f6aa7 2009-05-11 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs : make complex content type work like .NET
	  does. Patch by Jonas Larsson. Fixed bug #501814.

	* XmlValidatingReaderTests.cs : test for bug #501814 by Jonas
	  Larsson.


svn path=/trunk/mcs/; revision=133908
2009-05-11 17:37:07 +00:00
Atsushi Eno ce01d27dc2 2009-05-11 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs : do not forget to clear attributes
	  before Compile(). Patch by Jonas Larsson. Fixed bug #501763.

	* XsdValidatingReaderTest.cs : test for bug #501763 by Jonas Larsson.


svn path=/trunk/mcs/; revision=133905
2009-05-11 17:12:26 +00:00
Marek Habersack 93e9f216e1 2009-05-11 Marek Habersack <[email protected]>
* UrlPattern.cs: TrySubstitute treats defaults differently
	now. They are not consulted when checking if the passed values
	match the pattern, but only when substituting the values. Fixes
	bug #502555

2009-05-11  Marek Habersack  <[email protected]>

	* RouteCollectionTest.cs: added test for bug #502555

svn path=/trunk/mcs/; revision=133904
2009-05-11 17:12:11 +00:00
Atsushi Eno 8db721b50f 2009-05-07 Jonas Larsson <[email protected]>
* XmlAtomicValue.cs : support more type conversion. fixed bug #501666.

	* XmlSchemaValidatorTests.cs : added test for bug #501666.


svn path=/trunk/mcs/; revision=133903
2009-05-11 16:59:42 +00:00
Zoltan Varga 9d50c27f76 2009-05-11 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_and_reloc_code): Move the implementation of
	MONO_PATCH_INFO_GOT_OFFSET to a separate arch-specific function.
	(emit_plt): Fix a warning.

svn path=/trunk/mono/; revision=133895
2009-05-11 13:49:16 +00:00
Zoltan Varga 876b604a87 2009-05-11 Zoltan Varga <[email protected]>
* shared.c: Applied patch from Koushik K. Dutta ([email protected]).
	Fix the build on android.

svn path=/trunk/mono/; revision=133891
2009-05-11 13:06:19 +00:00
Gonzalo Paniagua Javier d61f08756c fix prev patch
svn path=/trunk/mcs/; revision=133874
2009-05-11 04:13:35 +00:00
Gonzalo Paniagua Javier 0c79c076a8 2009-05-10 Gonzalo Paniagua Javier <[email protected]>
* CookieContainer.cs: matching hosts to domain names like MS does.
	Bug #421827 fixed.


svn path=/trunk/mcs/; revision=133872
2009-05-11 03:55:21 +00:00
Carlos Alberto Cortez 0d5ee12093 2009-05-10 Carlos Alberto Cortez <[email protected]>
* TreeNode.cs: When setting Checked, do a double null check, since the
	current node can still get a null parent handling
	TreeView.OnAfterCheck.
	Fixes #502567.


svn path=/trunk/mcs/; revision=133868
2009-05-11 02:55:26 +00:00
Gonzalo Paniagua Javier 052391245a 2009-05-10 Gonzalo Paniagua Javier <[email protected]>
* CustomizableFileSettingsProvider.cs: make sure 'values' is
	initialized in Reset(). Fixes bug #436592.


svn path=/trunk/mcs/; revision=133866
2009-05-11 02:06:04 +00:00
Carlos Alberto Cortez 8a352fe7f6 2009-05-10 Carlos Alberto Cortez <[email protected]>
* Control.cs: When assigning ContextMenu, do a null check before
	assigning its container field.


svn path=/trunk/mcs/; revision=133865
2009-05-11 01:54:14 +00:00
Andrés G. Aragoneses 1d1691647f 2009-05-10 Andy Hume <[email protected]>
* LinkedList.cs: Add null check. Fixes #481621.


svn path=/trunk/mcs/; revision=133864
2009-05-10 21:26:08 +00:00
Zoltan Varga feab3003f9 Fix the build.
svn path=/trunk/mono/; revision=133863
2009-05-10 20:50:20 +00:00
Marek Habersack 44bca195b9 2009-05-10 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/ExpressionInListControl.aspx

2009-05-10  Marek Habersack  <[email protected]>

	* AspGenerator.cs: keep processing the tag if it is not a server
	one and contains expressions and no code render blocks.

2009-05-10  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added a test for expressions in
	list control items.

svn path=/trunk/mcs/; revision=133861
2009-05-10 20:29:01 +00:00
Andrés G. Aragoneses 0176339162 reverted merge problem in last commit
svn path=/trunk/mcs/; revision=133860
2009-05-10 20:23:28 +00:00
Sebastien Pouliot 3a19ed3b4d re-apply changes since Zoltan had already fixed it
svn path=/trunk/mono/; revision=133859
2009-05-10 20:20:13 +00:00
Andrés G. Aragoneses 84eba90d37 2009-05-10 Andrés G. Aragoneses <[email protected]>
* LinkedListTest.cs: Added NotWorking test for #481621,
	converted from example code by Andy Hume <[email protected]>.


svn path=/trunk/mcs/; revision=133858
2009-05-10 20:18:03 +00:00
Sebastien Pouliot ec3a104f29 revert r133848 which broke monobuild
svn path=/trunk/mono/; revision=133857
2009-05-10 20:15:58 +00:00
Zoltan Varga 8f508b39e8 2009-05-10 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Fix the build by moving is_shared_got_patch
	back into aot-compiler.c to a place where the other functions shared by
	the runtime and aot compiler are.

svn path=/trunk/mono/; revision=133856
2009-05-10 18:36:18 +00:00
Zoltan Varga a398788572 2009-05-10 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Emit the got addr using a separate symbol,
	as done previously, instead of in MonoAotFileInfo, since pointers might have
	alignment requirements.

	* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=133855
2009-05-10 18:30:42 +00:00
Sebastien Pouliot 60c3c895c3 2009-05-10 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Move Headers property logic here (as 
	shown by adding more unit tests)
	* WebClient_2_1.cs: Add comment that Headers are not validated
	there, but later.
	* WebHeaderCollection_2_1.cs: Add a SetHeader method that can 
	work around the normal validations that the "this" property
	needs to do.


svn path=/trunk/mcs/; revision=133852
2009-05-10 18:18:30 +00:00
Marek Habersack e7b286e6b4 Sorry for the noise, but the property is also virtual :)
svn path=/trunk/mcs/; revision=133851
2009-05-10 18:17:33 +00:00
Marek Habersack 7a61811fec The property is protected, not public
svn path=/trunk/mcs/; revision=133850
2009-05-10 18:16:21 +00:00
Marek Habersack b9e3cd32a4 2009-05-10 Marek Habersack <[email protected]>
* DbConnection.cs: implemented the DbProviderFactory property

svn path=/trunk/mcs/; revision=133849
2009-05-10 18:15:05 +00:00
Miguel de Icaza 0fb295155b 2009-05-10 Miguel de Icaza <[email protected]>
* aot-runtime.c (mono_aot_is_shared_got_patch): Move this routine
	that is used at runtime from the aot-compiler.c, this makes it
	work on setups that remove the AOT compiler from the output
	image. 


svn path=/trunk/mono/; revision=133848
2009-05-10 17:39:40 +00:00
Andreas Färber 7df197ffdb Fix build without GC
2009-05-10  Andreas Faerber  <[email protected]>

	* null-gc.c (mono_gc_weak_link_add, mono_gc_clear_domain): Fix
	stub signatures.

	This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=133844
2009-05-10 13:35:21 +00:00
Miguel de Icaza e3f9c73b66 Forgot to make this private
svn path=/trunk/mono/; revision=133842
2009-05-09 22:10:08 +00:00
Miguel de Icaza d00ef19bef 2009-05-09 Miguel de Icaza <[email protected]>
* mono-value-hash.c (mono_value_hash_table_insert_replace):
	Initialize variable, to quiet the compiler. 

	* mono-proclib.c: Eliminate two warnings.

svn path=/trunk/mono/; revision=133841
2009-05-09 22:08:35 +00:00
Miguel de Icaza 1d068db178 2009-05-09 Miguel de Icaza <[email protected]>
* verify.c, metadata-verifier.c: Add support for disabling the
	verifier in some builds.

	[ Sorry, my previous commit accidentally commited some work in
	progress ]

svn path=/trunk/mono/; revision=133840
2009-05-09 22:00:33 +00:00
Miguel de Icaza ae99f9f7aa Fix warning
svn path=/trunk/mono/; revision=133839
2009-05-09 21:54:29 +00:00
Miguel de Icaza 3f2bf51d7d Add support to disable the verifier
svn path=/trunk/mono/; revision=133838
2009-05-09 21:47:59 +00:00
Miguel de Icaza 3f6166a7e2 2009-05-09 Miguel de Icaza <[email protected]>
* configure.in: Instead of reporting the various disabled features
	in a loop, where a keyword might fail, report the actual disabled
	features in the sections that handle them

svn path=/trunk/mono/; revision=133837
2009-05-09 21:47:36 +00:00
Miguel de Icaza dd21bac925 Do not build the dwarfwriter if JIT/AOT are disabled
svn path=/trunk/mono/; revision=133835
2009-05-09 20:18:01 +00:00
Zoltan Varga 7e0bb31abe 2009-05-09 Zoltan Varga <[email protected]>
* mini-<ARCH>.h: Kill the MONO_ARCH_ENABLE_EMIT_STATE_OPT define.

svn path=/trunk/mono/; revision=133834
2009-05-09 19:31:27 +00:00
Zoltan Varga 815346523d 2009-05-09 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_long_opts): Move the ppc/sparc specific
	stuff to mono_arch_decompose_long_opts ().
	(mono_decompose_opcode): Remove some dead code.

svn path=/trunk/mono/; revision=133833
2009-05-09 19:25:55 +00:00
Miguel de Icaza 9aa41aa229 Document
svn path=/trunk/mono/; revision=133832
2009-05-09 19:21:28 +00:00
Miguel de Icaza 3fffe7c9f2 Document and add full_messages
svn path=/trunk/mono/; revision=133831
2009-05-09 19:19:24 +00:00
Miguel de Icaza c40c1561f6 2009-05-09 Miguel de Icaza <[email protected]>
* messages.c: Split the scan into common and uncommon messages to
	allow the messages that are not produced by Mono to be removed on
	embedded scenarios.

svn path=/trunk/mono/; revision=133830
2009-05-09 19:16:47 +00:00
Miguel de Icaza 0021d729ce Add new test
svn path=/trunk/mono/; revision=133829
2009-05-09 19:15:27 +00:00
Miguel de Icaza 5373845b9a 2009-05-09 Miguel de Icaza <[email protected]>
* messages.c (message_string): instead of having a gigantic switch
	table, use a sorted structure in memory and do a binary search on
	it.

	This reduces the runtime size by 49k and the debugging symbols by
	400k.



svn path=/trunk/mono/; revision=133828
2009-05-09 17:37:51 +00:00
Miguel de Icaza d8c09a9902 Add a handful of extra DISABLE options to the list
svn path=/trunk/mono/; revision=133827
2009-05-09 16:52:12 +00:00
Sebastien Pouliot 5ecd4daa3f In Assembly:
2009-05-09  Sebastien Pouliot  <[email protected]>

	* AssemblyInfo.cs: Open up the internals to System.Windows.Browser
	(needed right now), System.Windows and System.Xml (needed for an
	upcoming patch).

In System.Net:
2009-05-09  Sebastien Pouliot  <[email protected]>

	* WebHeaderCollection_2_1.cs: When associated with a WebRequest 
	the header collection items needs to be validated since not all
	headers will be valid. Part of fix for DRT#532


svn path=/trunk/mcs/; revision=133826
2009-05-09 15:46:30 +00:00
Brad Taylor ae993cdac4 2009-05-08 Brad Taylor <[email protected]>
* DateTimePicker.cs: Add a UIA-specific property to ensure that if
	is_checkbox_checked is changed, we won't break.


svn path=/trunk/mcs/; revision=133815
2009-05-08 20:28:25 +00:00
Andrés G. Aragoneses 180ff43914 * ToolStripItem.cs: Prevent NRE when our holder is a
ToolStripDropDownButton and we get Select()ed.      

* ToolStripMenuItemTest.cs: Improve test, and remove the
NotWorking attribute. Also remove the 'var' keywords, doh!


svn path=/trunk/mcs/; revision=133814
2009-05-08 19:53:05 +00:00
Carlos Alberto Cortez abf09ef7eb 2009-05-08 Carlos Alberto Cortez <[email protected]>
* ToolStripControlHost.cs: New tests for DefaultSize and
	OnHostedControlResize members.


svn path=/trunk/mcs/; revision=133812
2009-05-08 19:21:27 +00:00
Carlos Alberto Cortez 57fa35785b 2009-05-08 Carlos Alberto Cortez <[email protected]>
* ToolStripControlHost.cs: DefaultSize must return the current size of
	the Control, not the value returned by GetPreferredSize. Also connect
	a handle to the control Resize event, and use it to fire
	OnHostedControlReize.
	Fixes the remaining bits of #483146.


svn path=/trunk/mcs/; revision=133811
2009-05-08 19:21:14 +00:00
Carlos Alberto Cortez 3d341fd45e 2009-05-08 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDown.cs: When performing the layout, use
	ToolStripItem.GetPreferredSize ().Height instead of
	ToolStripItem.Height, since we are already using it that way in this
	same method.
	Fixes part of ##483146.


svn path=/trunk/mcs/; revision=133810
2009-05-08 19:16:11 +00:00
Zoltan Varga c32ac236b5 2009-05-08 Zoltan Varga <[email protected]>
* class.c (mono_class_setup_fields): Set class->field.first for
	generic instances.

svn path=/trunk/mono/; revision=133806
2009-05-08 17:59:10 +00:00
Brad Taylor abeb59adc8 2009-05-08 Brad Taylor <[email protected]>
* DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
	OnUIASelectionChanged when ShowCheckbox is true and the checkbox
	recieves focus.  Part of fix for #502029.


svn path=/trunk/mcs/; revision=133783
2009-05-08 15:59:11 +00:00
Andrés G. Aragoneses f1fc4ad979 * Test/System.Windows.Forms/ToolStripMenuItemTest.cs: Simplify test.
svn path=/trunk/mcs/; revision=133780
2009-05-08 15:38:43 +00:00
Rodrigo Kumpera 457bfd05d3 2009-05-08 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Fix boostrap of non amd64 builds
	cmethod can be null for quite a some reasons.

svn path=/trunk/mono/; revision=133779
2009-05-08 15:34:52 +00:00
Rodrigo Kumpera 2a8814b9f4 2009-05-08 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Fix non amd64 builds.

svn path=/trunk/mono/; revision=133778
2009-05-08 15:27:09 +00:00
Rodrigo Kumpera d1a1c27265 2009-05-07 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for module table.

	* assembly-with-complex-type.cs: Added more stuff;

svn path=/trunk/mono/; revision=133777
2009-05-08 15:26:43 +00:00
Rodrigo Kumpera 4fce184f1b 2009-05-07 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the typespec table.

svn path=/trunk/mono/; revision=133776
2009-05-08 15:26:26 +00:00
Rodrigo Kumpera a2ed762344 2009-05-07 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for module table.

	* assembly-with-module.il: New file.

	* Makefile: Add new dependencies.

svn path=/trunk/mono/; revision=133775
2009-05-08 15:25:57 +00:00
Rodrigo Kumpera f00dd511f8 2009-05-07 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the module table.

svn path=/trunk/mono/; revision=133774
2009-05-08 15:25:40 +00:00
Andrés G. Aragoneses 9ca1d98738 * Test/System.Windows.Forms/ToolStripMenuItemTest.cs: Add yet
another non-passing test (wors in MS.NET).

svn path=/trunk/mcs/; revision=133772
2009-05-08 15:13:54 +00:00
Veerapuram Varadhan 42e15fecc5 Update: included patch contributor's info
svn path=/trunk/mcs/; revision=133770
2009-05-08 14:10:33 +00:00
Veerapuram Varadhan 781cb47467 2009-05-08 Veerapuram Varadhan <[email protected]>
** Fixes #497715
	* SqlDataReader.cs: (GetSqlXml): Handle Xml types for TDS 8/8.1
	clients as well.
	* SqlParameter.cs: Map XML type properly.

svn path=/trunk/mcs/; revision=133769
2009-05-08 14:10:18 +00:00
Marek Safar 6f1e7fccda New test.
svn path=/trunk/mcs/; revision=133768
2009-05-08 13:52:17 +00:00
Marek Safar be9e7c21c8 2009-05-08 Marek Safar <[email protected]>
A fix for bug #496922
	* expression: Always use temporary variable when using object
	initializer.


svn path=/trunk/mcs/; revision=133767
2009-05-08 13:49:17 +00:00
Zoltan Varga 17c30abf11 2009-05-08 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_emit_call_args): Add a 'tail' flag argument.
	(mono_method_to_ir): Use MONO_ARCH_USE_OP_TAIL_CALL macro to determine
	whenever to make tail calls using OP_TAIL_CALL. Enable support for tail
	calls returning structures by addr on amd64.

	* mini-amd64.h (MONO_ARCH_USE_OP_TAIL_CALL): New arch-specific macro.

	* iltests.il.in: Restructure the tail call tests a bit.

svn path=/trunk/mono/; revision=133766
2009-05-08 13:35:14 +00:00
Zoltan Varga 958603a0c2 2009-05-08 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Add powerpc64.

svn path=/trunk/mono/; revision=133752
2009-05-07 23:54:48 +00:00
Zoltan Varga 00b14ac1a9 2009-05-08 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_got_access): Fix the aot-not-supported build.

svn path=/trunk/mono/; revision=133751
2009-05-07 23:54:41 +00:00
Gonzalo Paniagua Javier 2eecef5263 2009-05-07 Gonzalo Paniagua Javier <[email protected]>
* MimeTypes.cs: add silverlight related types.


svn path=/trunk/mcs/; revision=133749
2009-05-07 21:41:52 +00:00
Rodrigo Kumpera eea229ca46 2009-05-07 Rodrigo Kumpera <[email protected]>
* runtime/Makefile.am (mcs-compileall): Pass --security=validil
	to the runtime so the assemblies are not required to be verifiable.

svn path=/trunk/mono/; revision=133737
2009-05-07 19:03:57 +00:00
Gonzalo Paniagua Javier f79232a89c 2009-05-07 Gonzalo Paniagua Javier <[email protected]>
* Connection.cs: if the socket is already disconnected, Shutdown will
	fail with a SocketException... Also, catch *all* the possible
	exceptions since the socket.Close method could also throw
	ObjectDisposedException.
	Fixes bug #449092.


svn path=/trunk/mcs/; revision=133734
2009-05-07 18:13:57 +00:00
Zoltan Varga 3dd42288f8 2009-05-07 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Add remoting-invoke-with-check wrappers
	for virtual methods too.

svn path=/trunk/mono/; revision=133728
2009-05-07 16:52:05 +00:00
Jeffrey Stedfast 6bb1704a2d 2009-04-22 Jeffrey Stedfast <[email protected]>
* src/gtimer-win32.c (g_timer_elapsed): Avoid re-querying freq by
	just saving it in a static variable. Also modified microseconds
	calculation to avoid overflow.


svn path=/trunk/mono/; revision=133725
2009-05-07 15:41:08 +00:00
Jb Evain bc1d2d5356 2009-05-07 Jb Evain <[email protected]>
* System.Xml.Linq/XElement.cs: do a bit of refactoring to avoid
	multiple ifdefs.


svn path=/trunk/mcs/; revision=133717
2009-05-07 12:16:29 +00:00
Sebastien Pouliot 1c619e1f47 2009-05-07 Sebastien Pouliot <[email protected]>
* UniqueId.cs: Fix attributes for v3.5 (and later 2.0 SP) and remove
	them (in particular [SecurityTreatAsSafe]) from the NET_2_1 build.


svn path=/trunk/mcs/; revision=133716
2009-05-07 12:09:00 +00:00
Sebastien Pouliot 9cf46160f5 2009-05-07 Sebastien Pouliot <[email protected]>
* XElement.cs: Use XmlReaderSettings.DtdProcessing property instead
	of ProhibitDtd for NET_2_1 code.


svn path=/trunk/mcs/; revision=133715
2009-05-07 12:04:21 +00:00
Jb Evain 5d0adb948f 2009-05-07 Jb Evain <[email protected]>
* XElementTest.cs: add test for bug #501589.


svn path=/trunk/mcs/; revision=133711
2009-05-07 07:25:25 +00:00
Jb Evain 641175b2b1 2009-05-07 Jb Evain <[email protected]>
* XElement.cs (Load (XmlReader,LoadOptions)): prevent a NRE if
	the provided XmlReader doesn't have existing settings.
	Fixes #501589.

svn path=/trunk/mcs/; revision=133710
2009-05-07 07:24:59 +00:00
Miguel de Icaza 0f4e81e0fd Contribution from Pia Eriksson <[email protected]> that fixes
the CopyTo method in various generic containers.

Also fixes #497720


svn path=/trunk/mcs/; revision=133700
2009-05-07 00:42:16 +00:00
Rodrigo Kumpera ded8c61350 2009-05-06 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for methodimpl table.

	* assembly-with-complex-type.cs: Added more stuff.

svn path=/trunk/mono/; revision=133699
2009-05-06 23:34:38 +00:00
Rodrigo Kumpera 2eebe8d572 2009-05-06 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the methodimpl table.

svn path=/trunk/mono/; revision=133698
2009-05-06 23:34:25 +00:00
Rodrigo Kumpera 6a21eb738c 2009-05-06 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for property table.

	* assembly-with-property.cs: Added more stuff

svn path=/trunk/mono/; revision=133697
2009-05-06 23:33:58 +00:00
Rodrigo Kumpera fb0b78146d 2009-05-06 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the property table.

svn path=/trunk/mono/; revision=133696
2009-05-06 23:33:38 +00:00
Rodrigo Kumpera 4fdf69680c 2009-05-06 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c (next_token): Stop taking chars
	for a token when encountering the first delimiter char.

	This makes the parser less brain-dead when encountering
	sequences like "foo()".

svn path=/trunk/mono/; revision=133695
2009-05-06 23:33:13 +00:00
Andrés G. Aragoneses 9844838a63 2009-05-06 Andrés G. Aragoneses <[email protected]>
* ToolStripMenuItemTest.cs: add tests for Owner and OwnerItem.


svn path=/trunk/mcs/; revision=133681
2009-05-06 19:59:08 +00:00
Andrés G. Aragoneses 9a21efc140 2009-05-06 Andrés G. Aragoneses <[email protected]>
* ToolStripMenuItemTest.cs: more accurate test, and fix build 
        (namespace clash).


svn path=/trunk/mcs/; revision=133679
2009-05-06 19:00:16 +00:00
Raja R Harinath 4952caf2b3 Break some circular dependencies between mono, mcs and moon
* Makefile.am (compiler-tests): Rewrite to re-build the moon
assemblies after mcs/ is built.
* runtime/Makefile.am (build_profiles) [INSTALL_2_1]: Build only
the net_2_1_raw profile.
(test_profiles): New.  Mention net_2_1 profile.
(moon-do-build): New.

svn path=/trunk/mono/; revision=133678
2009-05-06 18:49:05 +00:00
Raja R Harinath ff6b61194b * method-to-ir.c (mono_method_to_ir): Revert change of 2009-05-02.
Reverting because regression unfixed for 4 days:
Compilation of System.Net.NetworkInformation.Win32IPGlobalProperties/Win32_MIB_TCP6ROW:get_LocalEndPoint () failed with exception '(null)':
Compilation of System.Net.NetworkInformation.Win32IPGlobalProperties/Win32_MIB_TCP6ROW:get_RemoteEndPoint () failed with exception '(null)':
Compilation of System.Net.NetworkInformation.Win32IPGlobalProperties/Win32_MIB_UDP6ROW:get_LocalEndPoint () failed with exception '(null)':
../mcs/class/lib/net_2_0/System.dll verification failed

svn path=/trunk/mono/; revision=133677
2009-05-06 18:48:44 +00:00
Andrés G. Aragoneses 4ddf9506c9 2009-05-06 Andrés G. Aragoneses <[email protected]>
* ToolStripMenuItemTest.cs: Add a test for GetCurrentParent
	(passes on MS.NET). Related to a11y bugs #485524 and #479397.


svn path=/trunk/mcs/; revision=133676
2009-05-06 18:36:12 +00:00
Mike Gorse 0339c5e73a * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
Add PerformClick and PerformDoubleClick to PopupButton.
Fixes #499851.

svn path=/trunk/mcs/; revision=133665
2009-05-06 15:15:49 +00:00
Zoltan Varga 9b13e2aa68 2009-05-06 Zoltan Varga <[email protected]>
* debug-mini.c (mono_debugger_method_has_breakpoint): Allow breakpoints
	in dynamic methods.

svn path=/trunk/mono/; revision=133664
2009-05-06 15:09:28 +00:00
Zoltan Varga f1b1c15d4c 2009-05-06 Zoltan Varga <[email protected]>
* debug-helpers.c (mono_method_desc_match): Add support for generic
	glob patterns.

svn path=/trunk/mono/; revision=133663
2009-05-06 15:09:19 +00:00
Zoltan Varga 6c29976d88 2009-05-06 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_class_dwarf_info): Add support for generic
	instances.

svn path=/trunk/mono/; revision=133662
2009-05-06 15:09:11 +00:00
Raja R Harinath 5201a990a2 * FileInfoTest.cs: Wrap Replace() tests in #if NET_2_0.
svn path=/trunk/mcs/; revision=133655
2009-05-06 13:35:46 +00:00
Zoltan Varga 2a4336bfd3 2009-05-06 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Use our own hash function instead of
	g_str_hash () which can change.

svn path=/trunk/mono/; revision=133652
2009-05-06 13:31:30 +00:00
Zoltan Varga 3c508b5c74 2009-05-06 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Use our own hash function instead of
	g_str_hash () which can change.

svn path=/trunk/mono/; revision=133651
2009-05-06 13:31:21 +00:00
Zoltan Varga f2ae59bfe8 2009-05-06 Zoltan Varga <[email protected]>
* driver.c (mini_regression): Disable optimizations not supported by
	the cpu. Fixes #500019.

svn path=/trunk/mono/; revision=133646
2009-05-06 10:44:38 +00:00
Zoltan Varga e285e6ae2d 2009-05-06 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_unwind_info): Fix the --enable-minimal=aot
	build.

svn path=/trunk/mono/; revision=133645
2009-05-06 10:44:29 +00:00
Rodrigo Kumpera b6098ae403 2009-05-05 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for propertymap table.

	* assembly-with-cas.cs: New test file for producing tests
	for property tables.

	* Makefile: Add new dependencies.

svn path=/trunk/mono/; revision=133627
2009-05-06 00:19:21 +00:00
Rodrigo Kumpera 1291bf48ee 2009-05-05 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the propertymap table.

svn path=/trunk/mono/; revision=133626
2009-05-06 00:19:08 +00:00
Rodrigo Kumpera 28490d44bb 2009-05-05 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for event table.

svn path=/trunk/mono/; revision=133625
2009-05-06 00:18:41 +00:00
Rodrigo Kumpera 63bcfd6b1b 2009-05-04 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the event table.

	* metadata-verify.c (search_sorted_table): Fix offset
	calculation.

svn path=/trunk/mono/; revision=133624
2009-05-06 00:18:24 +00:00
Lluis Sanchez ef2a78050a 2009-05-06 Lluis Sanchez Gual <[email protected]>
* Lease.cs: Don't use ArrayList.Remove() to remove sponsors because
	it will end calling Equals, which may crash if the sponsor is not
	available anymore. Just compare references.


svn path=/trunk/mcs/; revision=133621
2009-05-05 23:20:33 +00:00
Lluis Sanchez a5b3f56d50 2009-05-06 Lluis Sanchez Gual <[email protected]>
* RealProxy.cs: If async dispatch crashes, don't propagate the
	exception. The exception will be raised when calling EndInvoke.


svn path=/trunk/mcs/; revision=133620
2009-05-05 23:20:13 +00:00
Miguel de Icaza 6e23827f34 Add this too
svn path=/trunk/mcs/; revision=133619
2009-05-05 22:59:33 +00:00
Miguel de Icaza 6a3ddad347 2009-05-05 Miguel de Icaza <[email protected]>
* Contribution from David Uvalle <[email protected]> that
	implements FileInfo.Replace.

svn path=/trunk/mcs/; revision=133617
2009-05-05 22:58:16 +00:00
Zoltan Varga 7c51c3020c 2009-05-06 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Update the OP_TLS_GET implementation
	to the latest LLVM code.

svn path=/trunk/mono/; revision=133616
2009-05-05 22:36:00 +00:00
Geoff Norton 748b642a2c 2009-05-05 Geoff Norton <[email protected]>
* tests-config: This file is generated by configure.

svn path=/trunk/mono/; revision=133613
2009-05-05 21:27:58 +00:00
Marek Habersack b3a66935ff 2009-05-05 Marek Habersack <[email protected]>
* TemplateParser.cs: PageParserFilterType uses
	HttpApplication.LoadType so that it is able to load the filter
	from App_Code or with not fully qualified type names.

svn path=/trunk/mcs/; revision=133606
2009-05-05 20:47:02 +00:00
Zoltan Varga 769439aad3 2009-05-05 Zoltan Varga <[email protected]>
* genmdesc.pl (load_opcodes): Fix this after the TARGET_... changes.

svn path=/trunk/mono/; revision=133601
2009-05-05 19:28:49 +00:00
Miguel de Icaza 507e4c5ddf 2009-05-05 Miguel de Icaza <[email protected]>
* Contribution from Martin Brenn to fix #498154.

svn path=/trunk/mcs/; revision=133598
2009-05-05 18:29:47 +00:00
Miguel de Icaza 7cb1858630 Do not build docs if cross compiling or the mcs build is disabled
svn path=/trunk/mono/; revision=133592
2009-05-05 17:41:56 +00:00
Miguel de Icaza 7873db07b4 Fix this too
svn path=/trunk/mono/; revision=133590
2009-05-05 17:22:53 +00:00
Miguel de Icaza 99d4ccc8c7 Fix the pkg.m4 nonsense in eglib as well
svn path=/trunk/mono/; revision=133584
2009-05-05 15:13:57 +00:00
Miguel de Icaza 65f9d0b536 2009-05-05 Miguel de Icaza <[email protected]>
* configure.in: Reduce configure-time dependencies by using
	pkg-config the way it was originally intended to be used, and not
	with the incredibly lame and painful inducing pkg.m4 file. 

	I am on a quest to remove this gratuitous dep on pkg.m4 that is
	making people's lives miserable around the globe, just because
	someone can not be bothered to learn the shell if construct.

svn path=/trunk/mono/; revision=133582
2009-05-05 15:08:59 +00:00
Marek Habersack c9c7252804 2009-05-05 Marek Habersack <[email protected]>
* UrlPattern.cs: Match adds defaults values should some keys be
	missing from the url. Fixes bug #500739

	* Route.cs: a small GetRouteData loop optimization

2009-05-05  Marek Habersack  <[email protected]>

	* RouteTest.cs: added test for bug #500739

svn path=/trunk/mcs/; revision=133577
2009-05-05 13:17:30 +00:00
Marek Habersack 2094329d9a 2009-05-05 Marek Habersack <[email protected]>
* Methods.cs: if SoapRpcMethodAttribute doesn't specify the action
	or the action name is an empty string, generate the Action in
	SoapMethodStubInfo constructor. Fixes bug #459790

svn path=/trunk/mcs/; revision=133574
2009-05-05 12:30:25 +00:00
Marek Habersack 98a0866bd5 2009-05-05 Marek Habersack <[email protected]>
* BuildManager.cs: RemoveFailedAssemblies wraps the compilation
	exception to be rethrown in a HttpException instance.

	* AspGenerator.cs: create a Location and pass it to the parser
	before calling AddDirective from GetInheritedType, so that we get
	meaningful exception messages with source, line information etc.

svn path=/trunk/mcs/; revision=133568
2009-05-05 09:03:30 +00:00
Zoltan Varga 6c157d10d9 2009-05-04 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Implement TLS support on
	x86/amd64.

svn path=/trunk/mono/; revision=133534
2009-05-04 21:34:54 +00:00
Bill Holmes d38f487159 2009-05-04 Bill Holmes <[email protected]>
* eglib.vcproj, genmdesc.vcproj, libgc.vcproj, libmono.vcproj,
	  mono.vcproj,monoposixhelper.vcproj :  Adding TARGET_X86 and
	  TARGET_AMD64 preprocessor definitions to the Win32 and x64 targets.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=133532
2009-05-04 21:03:01 +00:00
Jonathan Pryor 6e21b01bc5 * TranslationResources.resx (ErrOperationAborted): Send viewers of
this message to the Wiki for possible reasons they may get an
	  exception (and how to fix it).

svn path=/trunk/mcs/; revision=133515
2009-05-04 17:43:31 +00:00
Miguel de Icaza 3c28dc1536 Forgot to commit
svn path=/trunk/mcs/; revision=133511
2009-05-04 16:13:29 +00:00
Andrés G. Aragoneses 5be248c40a * TabControl.cs: call Focus() to emit GotFocus event at the
proper time when SelectionIndex changes. Fixes #499887.
 
* TabControlTest.cs: More accurate test for bug#499887 showing
the SelectedIndex at the moment of the event (passes on Vista).

svn path=/trunk/mcs/; revision=133510
2009-05-04 16:04:57 +00:00
Marek Habersack 8aa3c10397 2009-05-04 Marek Habersack <[email protected]>
* ThemeDirectoryBuildProvider.cs: use new AspGenerator constructor
	which takes AspComponentFoundery as its
	parameter. AspGenerator.RootBuilder isn't initialized until after
	the parser is initialized.

	* TemplateControlCompiler.cs: make sure to call
	ProcessGeneratedCode on each instance of ControlBuilder after it's
	fully generated. Fixes bug #500075

	* TemplateBuildProvider.cs: moved the directive regex to
	AspGenerator

	* BaseCompiler.cs: added two internal properties, BaseType and
	DerivedType, which are used in calls to
	ControlBuilder.ProcessGeneratedCode. Fixes bug #500075

	* AspGenerator.cs: implemented a work around for our parser
	limitation which is unable to extract the page/control's base type
	before parsing the actual file contents. This is necessary to
	support ASP.NET MVC's "generic" Inherits attribute. The reason we
	need to find out what the base type is before parsing the file is
	that we need to look at the type's custom attributes to see if a
	root control builder type is specified (which is what ASP.NET MVC
	does) and, if yes, use it instead of the default type. Fixes bug
	#500075

2009-05-04  Marek Habersack  <[email protected]>

	* TemplateParser.cs: take RootBuilder from the associated
	generator.
	Allow the main page directive to be added twice if the parser
	needs it. Used by AspGenerator when extracting the inherited type
	name before actual parsing. Fixes bug #500075

	* FileLevelControlBuilderAttribute.cs,
	FileLevelPageControlBuilder.cs, FileLevelUserControlBuilder.cs:
	implemented

	* ControlBuilder.cs: added a new internal property,
	DataBindingMethod.
	Implemented ProcessGeneratedCode.

svn path=/trunk/mcs/; revision=133500
2009-05-04 13:29:32 +00:00
Zoltan Varga a5d6ab3bf5 2009-05-04 Zoltan Varga <[email protected]>
* aot-compiler.c (encode_patch_list): Simplify this considerably as we are
	no longer saving offsets, so just save the patch types along with the other
	info.
	* aot-runtime.c (load_patch_info): Update after the changes to
	encode_patch_list ().
	(decode_got_entry): Removed, merged into load_patch_info ().
	(is_shared_got_patch): Removed, call the same function from
	aot-compiler.c.

	* mini.h: Bump aot file format version.

svn path=/trunk/mono/; revision=133469
2009-05-04 06:26:44 +00:00
Zoltan Varga 1c0e69a8a1 2009-05-04 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Resurrect static linking support. Kill the
	half-finished no-dlsym code.

svn path=/trunk/mono/; revision=133467
2009-05-04 05:56:28 +00:00
Zoltan Varga 8c052d41c9 2009-05-04 Zoltan Varga <[email protected]>
* aot-runtime.c (load_method): Kill the old and bit-rotten use_loaded_code
	option.

svn path=/trunk/mono/; revision=133464
2009-05-04 05:07:31 +00:00
Zoltan Varga 66d373f27c 2009-05-04 Zoltan Varga <[email protected]>
* mini-<ARCH>.h mini-trampolines.c aot-runtime.c: Kill the
	MONO_ARCH_HAVE_CREATE_TRAMPOLINE_FROM_TOKEN define.

svn path=/trunk/mono/; revision=133463
2009-05-04 05:04:04 +00:00
Gonzalo Paniagua Javier 0ff61c4ace 2009-05-03 Gonzalo Paniagua Javier <[email protected]>
* TermInfoDriver.cs: replace Peek with DataAvailable.


svn path=/trunk/mcs/; revision=133461
2009-05-04 03:40:01 +00:00
Gonzalo Paniagua Javier 12f4ef3894 2009-05-03 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: we just need the address(es), not a host entry. This avoids
	querying the DNS server(s) when the target is an IP address.


svn path=/trunk/mcs/; revision=133459
2009-05-04 03:14:29 +00:00
Carlos Alberto Cortez 5f7c613c84 2009-05-03 Carlos Alberto Cortez <[email protected]>
* MonthCalendar.cs: In SetBoundsCore always do the bounds check to
	have valid values, even if BoundSpecified is not including
	Size/Height/Width - this is useful when we are in a control using Dock
	or Anchor.
	Fixes part of #483146.


svn path=/trunk/mcs/; revision=133441
2009-05-03 18:16:53 +00:00
Miguel de Icaza 2602bea504 Fix compiler build, make sure generated solutions include the actual HintPath so VS does not turn lib/basic/System.dll into GAC system.dll, so pass the entire relative path
svn path=/trunk/mono/; revision=133438
2009-05-03 18:03:02 +00:00
Miguel de Icaza 0dbf0040d6 Update to support the compiler buidl
svn path=/trunk/mono/; revision=133436
2009-05-03 17:52:22 +00:00
Miguel de Icaza 7ed2e32690 Update
svn path=/trunk/mono/; revision=133435
2009-05-03 17:18:09 +00:00
Sebastien Pouliot 82df4bb3d3 2009-05-03 Sebastien Pouliot <[email protected]>
* MethodInfoTest.cs: Add test cases from Joachim Ante for bug
	#500385.


svn path=/trunk/mcs/; revision=133428
2009-05-03 13:41:29 +00:00
Martin Baulig ccea1abae9 2009-05-03 Martin Baulig <[email protected]>
* debug-debugger.c (debugger_insert_source_breakpoint): Don't call
	mono_debugger_insert_method_breakpoint() since the class init
	handler we're inserting at the top of the method already gives us
	a notification.

svn path=/trunk/mono/; revision=133425
2009-05-03 12:46:27 +00:00
Atsushi Eno 812c8fcf61 2009-05-02 Atsushi Enomoto <[email protected]>
* CredentialCache.cs : implement all not-implemented methods.
	  Patch by Mineda Nozomi. Close bug #499556.

	* CredentialCacheTest.cs : new tests for get/add/remove.
	  Patch by Mineda Nozomi.


svn path=/trunk/mcs/; revision=133400
2009-05-02 19:55:48 +00:00
Miguel de Icaza 4b77d38b24 The support
svn path=/trunk/mcs/; revision=133397
2009-05-02 17:40:29 +00:00
Miguel de Icaza 065a808d99 Support the compiler
svn path=/trunk/mono/; revision=133396
2009-05-02 17:39:36 +00:00
Miguel de Icaza 6d7201caa3 For MCS, override csproj-local to report the right compiler
svn path=/trunk/mcs/; revision=133395
2009-05-02 17:26:59 +00:00
Miguel de Icaza b204672ea0 Forgot to commit this
svn path=/trunk/mono/; revision=133391
2009-05-02 16:05:58 +00:00
Miguel de Icaza 7aedd3b0cf This now builds System.Xml-basic
svn path=/trunk/mono/; revision=133390
2009-05-02 15:30:28 +00:00
Zoltan Varga 69fa7e57bb 2009-05-02 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_get_static_rgctx_trampoline): Increase the
	buffer length to work with AOT code.

svn path=/trunk/mono/; revision=133387
2009-05-02 14:55:29 +00:00
Sebastien Pouliot 348617482b In System.Security:
2009-05-02  Sebastien Pouliot  <[email protected]>

	* CodeAccessPermission.cs (ThrowSecurityException): Don't include
	CAS-specific information when throwing a SecurityException in
	NET_2_1

In System:
2009-05-02  Sebastien Pouliot  <[email protected]>

	* Console.cs: Remove Windows-specific p/invokes and SSC code
	from the NET_2_1 build.

In System.Security.Cryptography.X509Certificates:
2009-05-02  Sebastien Pouliot  <[email protected]>

	* X509Certificate.cs: Remove code to initialize from an handle
	in NET_2_1 since this is only possible from Windows and would be
	SC anyway.

In System.Reflection:
2009-05-02  Sebastien Pouliot  <[email protected]>

	* Assembly.cs: Exclude CAS-specific code for NET_2_1


svn path=/trunk/mcs/; revision=133384
2009-05-02 14:22:17 +00:00
Zoltan Varga aef787c83a 2009-05-02 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Handle loading errors in the
	ldfld/stfld opcodes.

svn path=/trunk/mono/; revision=133382
2009-05-02 13:59:16 +00:00
Miguel de Icaza ae9fe7714a Try this
svn path=/trunk/mono/; revision=133378
2009-05-02 06:36:24 +00:00
Miguel de Icaza eed9f68b78 Buidl jay as well
svn path=/trunk/mono/; revision=133377
2009-05-02 06:30:13 +00:00
Miguel de Icaza 60a92d8a8b Further tuneups
svn path=/trunk/mono/; revision=133376
2009-05-02 06:21:46 +00:00
Miguel de Icaza 951ce0078c Update
svn path=/trunk/mono/; revision=133375
2009-05-02 06:10:44 +00:00
Miguel de Icaza 81497c4738 fix
svn path=/trunk/mono/; revision=133374
2009-05-02 06:08:19 +00:00
Miguel de Icaza 48c9b30498 More generated files
svn path=/trunk/mono/; revision=133373
2009-05-02 06:05:19 +00:00
Miguel de Icaza 87790c766f Use new define: TARGET_X86 on VS as well
svn path=/trunk/mono/; revision=133372
2009-05-02 05:56:10 +00:00
Miguel de Icaza 487d950c90 Better debug
svn path=/trunk/mono/; revision=133371
2009-05-02 05:53:35 +00:00
Miguel de Icaza 42d6af035c Update
svn path=/trunk/mono/; revision=133370
2009-05-02 05:53:05 +00:00
Miguel de Icaza 3bff76f0df Move dead code
svn path=/trunk/mcs/; revision=133369
2009-05-02 05:30:59 +00:00
Veerapuram Varadhan 944bbef6a5 ChangeLog conflict changes
svn path=/trunk/mcs/; revision=133368
2009-05-02 05:25:09 +00:00
Veerapuram Varadhan 9751933242 2009-04-19 Veerapuram Varadhan <[email protected]>
* Tds.cs (InitExec): Move initialization of state variables here.  Useful
	in case of asynchronous queries.

svn path=/trunk/mcs/; revision=133367
2009-05-02 05:24:42 +00:00
Veerapuram Varadhan c72ca4ac21 2009-04-16 Veerapuram Varadhan <[email protected]>
* Tds.cs (ExecuteQuery): Reset all the variables related to LoadData when
	performing queries with SequentialAccess set to true.  Fixes incorrect
	handling of data retrieval when consecutive queries are run with
	SequentialAccess set to true.

svn path=/trunk/mcs/; revision=133366
2009-05-02 05:24:19 +00:00
Veerapuram Varadhan 0f8ab848a6 2009-04-14 Veerapuram Varadhan <[email protected]>
* Tds.cs (ExecuteQuery): Reset SequentialAccess read state variables
	in order to avoid blocking forever when two consecutive queries are
	executed with SequetialAccess set to true.

svn path=/trunk/mcs/; revision=133365
2009-05-02 05:23:52 +00:00
Miguel de Icaza 314ce8627c Add prebuild commands
svn path=/trunk/mono/; revision=133364
2009-05-02 05:04:38 +00:00
Miguel de Icaza 67e68c8c46 First two assemblies, will probably autogenerate this later
svn path=/trunk/mono/; revision=133347
2009-05-02 00:43:09 +00:00
Miguel de Icaza c3769a3b6b update
svn path=/trunk/mono/; revision=133346
2009-05-02 00:42:51 +00:00
Miguel de Icaza 49ce5e24f0 Fix some paths
svn path=/trunk/mono/; revision=133345
2009-05-02 00:42:15 +00:00
Miguel de Icaza ce0a5be4b3 Up
svn path=/trunk/mono/; revision=133342
2009-05-01 23:10:05 +00:00
Miguel de Icaza e934fc150e Upgrade to 2008
svn path=/trunk/mono/; revision=133341
2009-05-01 23:04:11 +00:00
Miguel de Icaza 77b76f6ea0 Copy
svn path=/trunk/mono/; revision=133340
2009-05-01 22:58:15 +00:00
Miguel de Icaza 16d0700cd3 Copy
svn path=/trunk/mono/; revision=133339
2009-05-01 22:58:14 +00:00
Miguel de Icaza d897e4d9f3 Copy
svn path=/trunk/mono/; revision=133338
2009-05-01 22:58:14 +00:00
Miguel de Icaza 937c2649d1 Copy
svn path=/trunk/mono/; revision=133337
2009-05-01 22:58:13 +00:00
Miguel de Icaza c45aa73e6e Copy
svn path=/trunk/mono/; revision=133336
2009-05-01 22:58:12 +00:00
Miguel de Icaza 81d51f6128 Copy
svn path=/trunk/mono/; revision=133335
2009-05-01 22:58:11 +00:00
Miguel de Icaza 3b9995130a Copy
svn path=/trunk/mono/; revision=133334
2009-05-01 22:58:11 +00:00
Miguel de Icaza de7d7320da Copy
svn path=/trunk/mono/; revision=133333
2009-05-01 22:58:10 +00:00
Miguel de Icaza bf68bcf075 Copy
svn path=/trunk/mono/; revision=133332
2009-05-01 22:58:09 +00:00
Miguel de Icaza 08e86bba5a Copy
svn path=/trunk/mono/; revision=133331
2009-05-01 22:58:08 +00:00
Miguel de Icaza c2efbee4f0 Copy
svn path=/trunk/mono/; revision=133330
2009-05-01 22:58:07 +00:00
Miguel de Icaza 543520dd65 Copy
svn path=/trunk/mono/; revision=133329
2009-05-01 22:58:07 +00:00
Miguel de Icaza 7f5d939201 Copy
svn path=/trunk/mono/; revision=133328
2009-05-01 22:58:06 +00:00
Miguel de Icaza 48bf1f9a27 Copy
svn path=/trunk/mono/; revision=133327
2009-05-01 22:58:05 +00:00
Miguel de Icaza c87a6b7dee Copy
svn path=/trunk/mono/; revision=133326
2009-05-01 22:58:04 +00:00
Miguel de Icaza 43b1f651b9 Copy
svn path=/trunk/mono/; revision=133325
2009-05-01 22:58:04 +00:00
Miguel de Icaza 354896ea7a Copy
svn path=/trunk/mono/; revision=133324
2009-05-01 22:58:03 +00:00
Miguel de Icaza d4d0997bb7 Copy
svn path=/trunk/mono/; revision=133323
2009-05-01 22:58:02 +00:00
Miguel de Icaza 9ab38c6192 Copy
svn path=/trunk/mono/; revision=133322
2009-05-01 22:58:01 +00:00
Miguel de Icaza ebc015c5a5 Copy
svn path=/trunk/mono/; revision=133321
2009-05-01 22:58:01 +00:00
Miguel de Icaza c199075875 Copy
svn path=/trunk/mono/; revision=133320
2009-05-01 22:57:59 +00:00
Miguel de Icaza 4ef62a4425 Copy
svn path=/trunk/mono/; revision=133319
2009-05-01 22:57:59 +00:00
Miguel de Icaza 8902a4ed0d Copy
svn path=/trunk/mono/; revision=133318
2009-05-01 22:57:58 +00:00
Miguel de Icaza 0abfb6350f Copy
svn path=/trunk/mono/; revision=133317
2009-05-01 22:57:57 +00:00
Miguel de Icaza 82ade42171 Copy
svn path=/trunk/mono/; revision=133316
2009-05-01 22:57:56 +00:00
Miguel de Icaza f660bc90d9 Copy
svn path=/trunk/mono/; revision=133315
2009-05-01 22:57:56 +00:00
Miguel de Icaza cb3ec7f4a9 Copy
svn path=/trunk/mono/; revision=133314
2009-05-01 22:57:55 +00:00
Miguel de Icaza 7b67e7aa5c Copy
svn path=/trunk/mono/; revision=133313
2009-05-01 22:57:54 +00:00
Miguel de Icaza f6edfe5125 Copy
svn path=/trunk/mono/; revision=133312
2009-05-01 22:57:53 +00:00
Miguel de Icaza a1bc526b87 Copy
svn path=/trunk/mono/; revision=133311
2009-05-01 22:57:52 +00:00
Miguel de Icaza c980a7fe0c Copy
svn path=/trunk/mono/; revision=133310
2009-05-01 22:57:52 +00:00
Miguel de Icaza b50613b6c7 Remove *.input files, put everything in a single XML file
svn path=/trunk/mono/; revision=133305
2009-05-01 22:53:43 +00:00
Miguel de Icaza 3ecf612b8d Remove .input files
svn path=/trunk/mono/; revision=133304
2009-05-01 22:49:34 +00:00
Zoltan Varga ee0315162c 2009-05-01 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Use mono_pagesize () instead of the
	PAGESIZE constant.

svn path=/trunk/mono/; revision=133302
2009-05-01 22:41:07 +00:00
Zoltan Varga 522c5027d9 2009-05-02 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_get_throw_exception_by_name): Simplify this
	as it is not used.

svn path=/trunk/mono/; revision=133299
2009-05-01 22:36:24 +00:00
Sebastien Pouliot 53d4863cd5 2009-05-01 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Don't include extra stuff into Moonlight (NET_2_1)


svn path=/trunk/mcs/; revision=133298
2009-05-01 22:24:03 +00:00
Zoltan Varga 7bd0a7c7f8 2009-05-02 Zoltan Varga <[email protected]>
* mini-llvm.c mini-x86.c: Implement 32 bit and x86 support.

	* ssa.c (mono_ssa_compute): Don't skip I8 values when using LLVM.

	* mini-llvm-cpp.cpp (mono_llvm_create_ee): Update to the latest
	LLVM API.

	* mini.c (mini_method_compile): Set the from_llvm flag in MonoJitInfo
	if needed. Don't decompose long operations when using llvm.

svn path=/trunk/mono/; revision=133297
2009-05-01 22:18:49 +00:00
Zoltan Varga 72543b3ade 2009-05-02 Zoltan Varga <[email protected]>
* domain-internals.h (struct _MonoJitInfo): Add a 'from_llvm' flag.

svn path=/trunk/mono/; revision=133296
2009-05-01 22:18:32 +00:00
Jonathan Pryor f80c179df7 * DiagnosticsConfigurationHandler.cs: Don't refer to TraceImpl member
while reading the .config file, instead cache the values and refer
	  to the cached values during initialization.  This prevents recursive
	  initialization calls (Trace.OnInit() ... Trace.Listeners.Add() ...
	  Trace.OnInit() ...), and associated duplicate parsing of .config file
	  sections.  Fixes bnc#499442.
	* TraceImpl.cs: Cope with DiagnosticsConfigurationHandler changes.
	* TraceListenerCollection.cs: Add internal 
	  Add(TraceListener,TraceImplSettings) method for adding
	  TraceListeners during DiagnosticsConfigurationHandler initialization
	  (which can't access TraceImpl, as we may still be reading the
	  .config file to determine the TraceImpl values).

svn path=/trunk/mcs/; revision=133291
2009-05-01 20:21:50 +00:00
Sebastien Pouliot d9819b6dcb 2009-05-01 Sebastien Pouliot <[email protected]>
* SecurityCriticalAttribute.cs: Add simpler version NET_2_1
	* SecuritySafeCriticalAttribute.cs: Remove MonoTODO for NET_2_1
	* SecurityTransparentAttribute.cs: Remove MonoTODO for NET_2_1


svn path=/trunk/mcs/; revision=133286
2009-05-01 19:43:33 +00:00
Sebastien Pouliot 354894ef6f 2009-05-01 Sebastien Pouliot <[email protected]>
* CodeAccessSecurityAttribute.cs, SecurityAction.cs, 
	SecurityAttribute.cs, SecurityPermissionAttribute.cs: Add [Obsolete]
	on NET_2_1 since CAS stuff is not available in Moonlight. Note that
	the types needs to be present because compiler insert them inside
	assemblies.


svn path=/trunk/mcs/; revision=133279
2009-05-01 18:21:16 +00:00
Sebastien Pouliot 8eb2d10f60 corlib_test.dll.sources: Add unit tests for AppDomainManager and SecurityState
svn path=/trunk/mcs/; revision=133276
2009-05-01 17:56:17 +00:00
Sebastien Pouliot f6d0f0003f 2009-05-01 Sebastien Pouliot <[email protected]>
* SecurityStateTest.cs: New. Unit tests for IsStateAvailable


svn path=/trunk/mcs/; revision=133275
2009-05-01 17:54:52 +00:00
Sebastien Pouliot e11bef3ff9 2009-05-01 Sebastien Pouliot <[email protected]>
* AppDomainManagerTest.cs: New. Unit test for CheckSecuritySettings


svn path=/trunk/mcs/; revision=133274
2009-05-01 17:53:16 +00:00
Sebastien Pouliot 11cffff961 SecurityState.cs: Implement IsStateAvailable (added in 2.0SP and part of SL API)
svn path=/trunk/mcs/; revision=133273
2009-05-01 17:51:43 +00:00
Sebastien Pouliot a2ca3fbb72 AppDomainManager.cs: Fix base class for NET_2_1 and implement CheckSecuritySettings (added in 2.0SP and part of SL API)
svn path=/trunk/mcs/; revision=133272
2009-05-01 17:49:30 +00:00
Zoltan Varga e9bfaf8827 2009-05-01 Zoltan Varga <[email protected]>
* aot-runtime.c (load_aot_module): Get rid of another mprotect call.

svn path=/trunk/mono/; revision=133262
2009-05-01 14:29:57 +00:00
Mark Probst 2920b86801 Don't set the domain in mono_gc_run_finalize() too late.
2009-05-01  Mark Probst  <[email protected]>

        * gc.c (mono_gc_run_finalize): Don't set the domain too late,
        because mono_delegate_free_ftnptr() needs it.

svn path=/trunk/mono/; revision=133261
2009-05-01 14:01:55 +00:00
Gonzalo Paniagua Javier 3d9877d93c 2009-05-01 Gonzalo Paniagua Javier <[email protected]>
* SqliteConnection.cs: implement Dispose for 2.0. It was leaking an fd
	in using().
	Bug #499864 fixed.


svn path=/trunk/mcs/; revision=133254
2009-05-01 04:28:28 +00:00
Gonzalo Paniagua Javier d4bd43145b 2009-04-30 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: return the last error if a connect to multiple addresses
	fails.


svn path=/trunk/mcs/; revision=133252
2009-05-01 03:28:42 +00:00
Jonathan Chambers 2de89fc2ef Fix typo.
svn path=/trunk/mono/; revision=133251
2009-05-01 01:31:30 +00:00
Miguel de Icaza ed4a6922c5 Try this
svn path=/trunk/mono/; revision=133250
2009-05-01 01:08:52 +00:00
Miguel de Icaza 51cd5bbc0b Add support for reference aliases
svn path=/trunk/mono/; revision=133247
2009-05-01 00:04:26 +00:00
Jonathan Chambers 390db18c70 Fix redirection of output.
svn path=/trunk/mono/; revision=133246
2009-04-30 23:46:54 +00:00
Miguel de Icaza bc5a063d9d More progress
svn path=/trunk/mono/; revision=133244
2009-04-30 23:24:41 +00:00
Rodrigo Kumpera 353e4600b1 2009-04-30 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for event map table.

	* assembly-with-events.cs: New test file for producing tests
	for cattr table.

	* Makefile: Add new dependency.

svn path=/trunk/mono/; revision=133243
2009-04-30 23:03:26 +00:00
Rodrigo Kumpera 224dde31ba 2009-04-30 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the eventmap table.

svn path=/trunk/mono/; revision=133242
2009-04-30 23:03:12 +00:00
Rodrigo Kumpera 85e6cd2c1e 2009-04-30 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for standalonesig table.

	* assembly-with-complex-type.cs: Added more stuff for
	field layout tests.

svn path=/trunk/mono/; revision=133241
2009-04-30 23:02:46 +00:00
Rodrigo Kumpera 1fb133472c 2009-04-30 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the standalonesig table.

svn path=/trunk/mono/; revision=133240
2009-04-30 23:02:27 +00:00
Rodrigo Kumpera eee8dd7914 2009-04-30 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for field layout table.

	* assembly-with-complex-type.cs: Added more stuff for
	field layout tests.

svn path=/trunk/mono/; revision=133239
2009-04-30 23:01:58 +00:00
Rodrigo Kumpera df3177738d 2009-04-30 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the field layout table.

svn path=/trunk/mono/; revision=133238
2009-04-30 23:01:40 +00:00
Rodrigo Kumpera 877a501ccc 2009-04-30 Rodrigo Kumpera <[email protected]>
* class.c (mono_type_get_name_recurse): Don't crash
	for ownerless generic params.

	* debug-helpers.c (mono_type_get_desc): Correct the format
	for ownerless generic params.

svn path=/trunk/mono/; revision=133237
2009-04-30 23:01:09 +00:00
Rodrigo Kumpera f5ffea4196 2009-04-30 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for class layout table.

	* assembly-with-complex-type.cs: Added more stuff for
	class layout tests.

svn path=/trunk/mono/; revision=133236
2009-04-30 23:00:40 +00:00
Rodrigo Kumpera b9b6e3b890 2009-04-30 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the class layout table.

svn path=/trunk/mono/; revision=133235
2009-04-30 23:00:23 +00:00
Rodrigo Kumpera 44d46f8d3f 2009-04-30 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for decl security table.

	* assembly-with-cas.cs: New test file for producing tests
	for cattr table.

	* Makefile: Add new dependencies and do some cleanup.

svn path=/trunk/mono/; revision=133234
2009-04-30 22:59:53 +00:00
Rodrigo Kumpera ab5b9254b7 2009-04-30 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the decl security table.

svn path=/trunk/mono/; revision=133233
2009-04-30 22:59:36 +00:00
Miguel de Icaza d3b503d6fe Move the scripts to a new location
svn path=/trunk/mono/; revision=133229
2009-04-30 22:05:30 +00:00
Miguel de Icaza 40f1241212 Move the scripts to a new location
svn path=/trunk/mcs/; revision=133229
2009-04-30 22:05:30 +00:00
Andrés G. Aragoneses fb30857ceb Use a better name for the test..
svn path=/trunk/mcs/; revision=133228
2009-04-30 21:56:51 +00:00
Andrés G. Aragoneses 6cbfb6084e changelog..
svn path=/trunk/mcs/; revision=133227
2009-04-30 21:53:04 +00:00
Miguel de Icaza fa5ac00a43 Add input files
svn path=/trunk/mono/; revision=133226
2009-04-30 21:50:07 +00:00
Andrés G. Aragoneses 6518491dae * Test/System.Windows.Forms/TabControlTest.cs: Add test for
bug#499887.

svn path=/trunk/mcs/; revision=133225
2009-04-30 21:49:03 +00:00
Miguel de Icaza 41d95d1d79 Change the model used
svn path=/trunk/mcs/; revision=133224
2009-04-30 21:38:34 +00:00
Miguel de Icaza 29bc8e19a8 Update csproj tool
svn path=/trunk/mcs/; revision=133223
2009-04-30 21:38:19 +00:00
Mark Probst 6eece07d2b Don't set domain if it's the same as the old one.
2009-04-30  Mark Probst  <[email protected]>

        * domain.c (mono_domain_set_internal_with_options): Don't do
        anything if the old domain is the same as the old one.  Fixes
        #499326.

svn path=/trunk/mono/; revision=133222
2009-04-30 21:31:51 +00:00
Miguel de Icaza 9c0eee76b3 Mistake, /debug:full is the same as /debug
svn path=/trunk/mcs/; revision=133217
2009-04-30 20:42:04 +00:00
Jonathan Pobst 4e5cbb8a55 Clean up MonoTodo messages.
svn path=/trunk/mcs/; revision=133215
2009-04-30 20:24:03 +00:00
Miguel de Icaza fb3f86db17 Actually, /debug:XX is handled in /debug:, ignore the configuration here
svn path=/trunk/mcs/; revision=133214
2009-04-30 20:17:57 +00:00
Miguel de Icaza 24fc1ca45e More flags for compatibility
svn path=/trunk/mcs/; revision=133213
2009-04-30 20:10:36 +00:00
Mark Probst f752613d0d Appdomain unloading for SGen.
2009-04-30  Mark Probst  <[email protected]>

        * appdomain.c: Deregister the reflection_info roots when unloading
        a domain.

        * sgen-gc.c, domain.c, gc-internal.h: mono_gc_clear_domain() nulls
        memory allocated by a domain and frees its disappearing links.

        * boehm-gc.c, null-gc.c: Empty implementation of
        mono_gc_clear_domain().

svn path=/trunk/mono/; revision=133212
2009-04-30 19:58:04 +00:00
Jonathan Pryor d1b77d0c67 * sqlmetal.exe.config: The MySQL provider should use ByteFX.Data's
MySQL connection types, as those are actually included with Mono
	  (unlike MySql.Data, which isn't included with Mono).

svn path=/trunk/mcs/; revision=133210
2009-04-30 19:28:00 +00:00
Mark Probst 305aa34f5e Free the static fields memory block.
2009-04-30  Mark Probst  <[email protected]>

        * appdomain.c (clear_cached_vtable): Free the static fields memory
        block.

svn path=/trunk/mono/; revision=133207
2009-04-30 19:11:13 +00:00
Mark Probst 35f93f16a3 Set the correct domain when invoking finalizers and creating threads.
2009-04-30  Mark Probst  <[email protected]>

        * gc.c: Set the correct domain when invoking finalizers.

        * appdomain.c: Set the correct domain when creating threads.

svn path=/trunk/mono/; revision=133202
2009-04-30 18:01:01 +00:00
Mark Probst c0d60124da Fix skip size for vectors in SGen.
2009-04-30  Mark Probst  <[email protected]>

        * sgen-gc.c: Fix skip size for vectors.

svn path=/trunk/mono/; revision=133186
2009-04-30 14:36:11 +00:00
Sebastien Pouliot 708e9ef50c minor NET_2_1 tweaks to remove 12 unneeded [SecuritySafeCritical] inside Moonlight 2
svn path=/trunk/mcs/; revision=133184
2009-04-30 14:03:27 +00:00
Sebastien Pouliot cbc63c7479 fix typo, thanks to Gert for quickly noticing
svn path=/trunk/mcs/; revision=133176
2009-04-30 12:56:15 +00:00
Jb Evain 8c580360bd 2009-04-30 Jb Evain <[email protected]>
* Mono.Cecil.Signatures/SignatureReader.cs: fix reading out extra mods.


svn path=/trunk/mcs/; revision=133174
2009-04-30 12:23:48 +00:00
Sebastien Pouliot 6c9ff1c39f 2009-04-30 Sebastien Pouliot <[email protected]>
* MarshalTest.cs: Fix building unit tests for NET_1_1


svn path=/trunk/mcs/; revision=133171
2009-04-30 12:11:06 +00:00
Marek Habersack dfdb975263 2009-04-30 Marek Habersack <[email protected]>
* BuildManager.cs: when BuildInner catches a compilation
	exception, wrap it in HttpException before re-throwing.

2009-04-30  Marek Habersack  <[email protected]>

	* TemplateParser.cs: removed the PageParserFilterTypeName
	property, the filter type name is looked up on demand now.

	* ApplicationFileParser.cs, MasterPageParser.cs,
	UserControlParser.cs: load config defaults explicitly after
	initializing the instance.

svn path=/trunk/mcs/; revision=133169
2009-04-30 10:53:41 +00:00
Zoltan Varga 90ae4088f3 2009-04-30 Zoltan Varga <[email protected]>
* AppDomainTest.cs: Add a test for #499013.

svn path=/trunk/mcs/; revision=133164
2009-04-30 07:36:45 +00:00
Zoltan Varga db77630d65 2009-04-30 Zoltan Varga <[email protected]>
* appdomain.c (ves_icall_System_AppDomain_GetAssemblies): Avoid
	returning refonly assemblies if refonly is FALSE. Fixes #499013.

svn path=/trunk/mono/; revision=133163
2009-04-30 07:35:50 +00:00
Miguel de Icaza 6939546d90 Doc update
svn path=/trunk/mono/; revision=133153
2009-04-30 03:18:20 +00:00
Jonathan Chambers 11e576a69f Apply patch from Tom Hindle for bug 496138 plus test case.
2009-04-29 Tom Hindle <[email protected]>

	* Marshal.cs: Improved GetExceptionForHR to return real 
	C# exceptions in certain cases instead of always COMException.


svn path=/trunk/mcs/; revision=133150
2009-04-30 01:40:52 +00:00
Marek Habersack ae9ca89d49 _really_ fix the build
svn path=/trunk/mcs/; revision=133149
2009-04-30 01:28:03 +00:00
Marek Habersack 1934076617 Fix the build
svn path=/trunk/mcs/; revision=133148
2009-04-30 01:17:44 +00:00
Miguel de Icaza 748e61f688 Hook to allow the caller to requested a call to csproj-local
svn path=/trunk/mcs/; revision=133098
2009-04-30 00:11:21 +00:00
Miguel de Icaza ad85a34432 Add helper
svn path=/trunk/mono/; revision=133097
2009-04-30 00:08:17 +00:00
Miguel de Icaza 708c5869ae Update
svn path=/trunk/mono/; revision=133096
2009-04-30 00:00:27 +00:00
Rodrigo Kumpera 8af42f9138 2009-04-29 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for field marshal table.

svn path=/trunk/mono/; revision=133094
2009-04-29 23:28:36 +00:00
Rodrigo Kumpera 2d0f559d4a 2009-04-29 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the custom field marshal table.

svn path=/trunk/mono/; revision=133093
2009-04-29 23:28:21 +00:00
Rodrigo Kumpera 2dbd3dfacb 2009-04-29 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for cattr table.

	* assembly-with-cattr.cs: New test file for producing tests
	for cattr table.

	* Makefile: Add new dependencies and do some cleanup.

svn path=/trunk/mono/; revision=133092
2009-04-29 23:28:02 +00:00
Rodrigo Kumpera 863ac6e12d 2009-04-29 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the custom attribute table.

svn path=/trunk/mono/; revision=133091
2009-04-29 23:27:51 +00:00
Rodrigo Kumpera a8c944d3bd 2009-04-29 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Close the image after using it.
	Force the runtime to initialize with 2.0.

svn path=/trunk/mono/; revision=133090
2009-04-29 23:27:30 +00:00
Zoltan Varga c73647b34d 2009-04-30 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_long_opts): Move the implementation of LNEG
	to mono_arch_decompose_long_opts () for x86 and arm.

svn path=/trunk/mono/; revision=133088
2009-04-29 23:25:44 +00:00
Chris Toshok 3688e9ff65 2009-04-29 Chris Toshok <[email protected]>
* AssemblyInfo.cs: in the 2.1 case we're InternalsVisibleTo
	System.Windows.Browser


svn path=/trunk/mcs/; revision=133087
2009-04-29 23:08:53 +00:00
Gonzalo Paniagua Javier 912cb17fab 2009-04-29 Gonzalo Paniagua Javier <[email protected]>
* sockets.c: don't display a warning when connect() fails because the
	socket was closed in another thread.


svn path=/trunk/mono/; revision=133031
2009-04-29 16:01:00 +00:00
Sebastien Pouliot a55f339a8f In Mono.Security.Cryptography:
2009-04-29  Sebastien Pouliot  <[email protected]>

	* PKCS1.cs: Make this work under NET_2_1 where SHA384 and SHA512
	are not available in the BCL.

In System.Security.Cryptography:
2009-04-29  Sebastien Pouliot  <[email protected]> 

	* DES.cs, DESCryptoServiceProvider.cs: Do not include in NET_2_1
	* HMACMD5.cs, HMACRIPEMD160.cs, HMACSHA384.cs, HMACSHA512.cs: Do 
	not include in NET_2_1
	* MACTripleDES.cs: Do not include in NET_2_1
	* RC2.cs, RC2CryptoServiceProvider.cs: Do not include in NET_2_1
	* Rijndael.cs, RijndaelManaged.cs, RijndaelManagedTransform.cs:
	Do not include in NET_2_1 (AES is available in System.Core.dll)
	* RIPEMD160.cs, RIPEMD160Managed.cs: Do not include in NET_2_1
	* SHA1CryptoServiceProvider.cs: Do not include in NET_2_1, however
	SHA1Managed is available.
	* SHA384.cs, SHA384Managed.cs: Do not include in NET_2_1
	* SHA512.cs, SHA512Managed.cs: Do not include in NET_2_1
	* TripleDES.cs, TripleDESCryptoServiceProvider.cs: Do not include
	in NET_2_1


svn path=/trunk/mcs/; revision=133013
2009-04-29 14:23:19 +00:00
Sebastien Pouliot e4dd723dbf 2009-04-29 Sebastien Pouliot <[email protected]>
* MD5Cng.cs, SHA1Cng.cs, SHA256Cng.cs, SHA256CryptoServiceProvider.cs,
	SHA384Cng.cs, SHA384CryptoServiceProvider.cs, SHA512Cng.cs,
	SHA512CryptoServiceProvider.cs: Regenerated to be excluded from
	NET_2_1


svn path=/trunk/mcs/; revision=133012
2009-04-29 14:07:09 +00:00
Sebastien Pouliot 0ba784e7fa 2009-04-29 Sebastien Pouliot <[email protected]>
* hashwrap.cs: Add "#if !NET_2_1 ... #endif" on wrappers so they
	don't get compiled for 2.1 (since mscorlib 2.1 lacks some 
	required types and the generated code is not part of SL2).


svn path=/trunk/mcs/; revision=133011
2009-04-29 14:05:33 +00:00
Marek Habersack 30140fbbfd 2009-04-29 Marek Habersack <[email protected]>
* MetaTable.cs: implemented the DataContextType,
    	DataContextPropertyName properties and the ToString method.

    	* MetaColumn.cs: implemented the Scaffold, DisplayName,
    	SortExpression, UIHint properties and the ToString method.

    	* DynamicField.cs: implemented

    	* DynamicDataManager.cs: partially implemented RegisterControl.
    	Added internal AutoFieldGenerator class, used by RegisterControl
    	when dealing with GridView.
    	Implemented some properties.

    	* DynamicDataExtensions.cs: implemented GetTable and FindMetaTable

    	* DynamicControl.cs: implemented parts of the class.

    2009-04-29  Marek Habersack  <[email protected]>

    	* DataBoundControl.cs: added InternalGetDataSource method, used by
    	DynamicData

    2009-04-29  Marek Habersack  <[email protected]>

    	* AssemblyInfo.cs: added InternalsVisibleTo for
    	System.Web.DynamicData

    2009-04-29  Marek Habersack  <[email protected]>

    	* Test/System.Web.DynamicData.ModelProviders/TableProviderTest.cs:
    	added

    	* System.Web.DynamicData_test.dll.sources: added
    	System.Web.DynamicData/DynamicDataManagerTest.cs,
    	System.Web.DynamicData/DynamicDataExtensionsTest.cs,
    	System.Web.DynamicData.ModelProviders/TableProviderTest.cs

    	* System.Web.DynamicData.dll.sources: added
    	System.Web.DynamicData.ModelProviders/DLinqAssociationProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqColumnProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqDataModelProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqTableProvider.cs and
    	removed
    	System.Web.DynamicData.ModelProviders/DLinqDataModelProviders.cs

    2009-04-29  Marek Habersack  <[email protected]>

    	* TableProvider.cs: implemented

    	* DLinqDataModelProvider.cs: renamed from
    	DLinqDataModelProviders.cs and moved some classes to separate
    	files.

    	* DLinqTableProvider.cs: moved to here from
    	DLinqDataModelProvider.cs

    	* DLinqColumnProvider.cs: moved to here from
    	DLinqDataModelProvider.cs

    	* DLinqAssociationProvider.cs: added

    2009-04-29  Marek Habersack  <[email protected]>

    	* DataBinder.cs: GetPropertyValue must throw also if propName is
    	empty.

    2009-04-23  Marek Habersack  <[email protected]>

    	* ContextConfiguration.cs: implemented all the methods and added a
    	parameterless constructor.

    2009-04-23  Marek Habersack  <[email protected]>

    	* System.Web.DynamicData_test.dll.sources: added
    	System.Web.DynamicData/ContextConfigurationTest.cs

    	* Makefile: tests need to be linked with
    	System.ComponentModel.DataAnnotations.dll

    2009-04-23  Marek Habersack  <[email protected]>

    	* AssociatedMetadataTypeTypeDescriptor.cs: added - doesn't add any
    	real functionality yet.

    	* AssociatedMetadataTypeTypeDescriptionProvider.cs: implemented
    	all the methods.

    2009-04-23  Marek Habersack  <[email protected]>

    	* System.ComponentModel.DataAnnotations_test.dll.sources: added

    	* System.ComponentModel.DataAnnotations.dll.sources: added
    	System.ComponentModel.DataAnnotations/AssociatedMetadataTypeTypeDescriptor.cs

    	* Makefile: enabled tests

    2009-04-23  Marek Habersack  <[email protected]>

    	* ContextConfigurationTest.cs: added

svn path=/trunk/mcs/; revision=133003
2009-04-29 13:17:39 +00:00
Sebastien Pouliot 3c4a82b399 In .:
2009-04-29  Sebastien Pouliot  <[email protected]>

	* corlib.dll.sources: Add CryptoConfig_2_1.cs (partial class) to
	the build

In System.Security.Cryptography:
2009-04-29  Sebastien Pouliot  <[email protected]>

	* CryptoConfig.cs: Change to partial class and don't include this
	part (#ifdef out) in the NET_2_1 build.
	* CryptoConfig_2_1.cs: Partial class that contains only what's 
	needed for Moonlight (NET_2_1). This disallow dynamically replacing
	cryptographic algorithms using machine.config


svn path=/trunk/mcs/; revision=132992
2009-04-29 12:12:36 +00:00
Zoltan Varga 8c829cb529 2009-04-29 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_regstate_alloc_int): Use __x86_64__ instead of
	TARGET_AMD64 here.

svn path=/trunk/mono/; revision=132977
2009-04-29 09:37:49 +00:00
Zoltan Varga fd30c83068 2009-04-28 Zoltan Varga <[email protected]>
* configure.in: Add an option to disable the solaris tar check.

svn path=/trunk/mono/; revision=132976
2009-04-29 09:37:42 +00:00
Marek Habersack c2e4fcd703 Unbreak TdsComm by removing a stray line
svn path=/trunk/mcs/; revision=132962
2009-04-29 07:41:32 +00:00
Gonzalo Paniagua Javier 22c4252482 fix test
svn path=/trunk/mcs/; revision=132956
2009-04-29 05:41:25 +00:00
Gonzalo Paniagua Javier b7212e074d 2009-04-29 Gonzalo Paniagua Javier <[email protected]>
* Enum.cs: return the value as an enum of the right type.


svn path=/trunk/mcs/; revision=132953
2009-04-29 05:27:36 +00:00
Gonzalo Paniagua Javier 2df642af6b 2009-04-28 Gonzalo Paniagua Javier <[email protected]>
* HttpContext.cs:
	* HttpWorkerRequest.cs:
	* HttpRuntime.cs: if other parts of the system are using the
	threadpool and we queue requests, once the threadpool is free we
	might still not get back to use it to the maximum extent possible.
	Adding a few more calls to QueuePendingRequest ensures that does not
	happen.


svn path=/trunk/mcs/; revision=132946
2009-04-29 03:18:16 +00:00
Gonzalo Paniagua Javier 0f28b744fd 2009-04-28 Gonzalo Paniagua Javier <[email protected]>
* Enum.cs: avoid exceptions from ToObject and use Try* instead.


svn path=/trunk/mcs/; revision=132944
2009-04-29 02:59:24 +00:00
Gonzalo Paniagua Javier 181d483558 2009-04-28 Gonzalo Paniagua Javier <[email protected]>
* SqlConnection.cs: if the error causes a disconnection from the
	server, close the data stream.


svn path=/trunk/mcs/; revision=132942
2009-04-29 02:54:36 +00:00
Gonzalo Paniagua Javier 451e9a4e75 2009-04-28 Gonzalo Paniagua Javier <[email protected]>
* TdsConnectionPool.cs: if GetConnection() fails to create a
	connection, try again several times and then throw. Improved
	ResetConnectionPool() so that it does not immediately close
	connections in use. Don't re-add connections that have been closed.

	* Tds.cs: Connected tests the socket connection too. Made Disconnect()
	not throw.

	* TdsComm.cs: set more socket options (timeout and NoDelay) and have a
	single entry point for reading from the stream.


svn path=/trunk/mcs/; revision=132939
2009-04-29 02:51:56 +00:00
Rodrigo Kumpera 4477845df9 2009-04-28 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Fix stream header calculation.

	* cli-tables-tests.md: Tests for constant.

	* assembly-with-constants.cs: New test file for producing tests
	for constant table.

	* Makefile: Add new dependencies and do some cleanup.

svn path=/trunk/mono/; revision=132937
2009-04-29 02:02:56 +00:00
Rodrigo Kumpera a24eb959f6 2009-04-28 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the constant table.

svn path=/trunk/mono/; revision=132936
2009-04-29 02:02:45 +00:00
Rodrigo Kumpera ae19855f14 2009-04-28 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for memberref.

svn path=/trunk/mono/; revision=132935
2009-04-29 02:02:15 +00:00
Rodrigo Kumpera 3a4ed3015b 2009-04-28 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the memberef table.

svn path=/trunk/mono/; revision=132934
2009-04-29 02:02:05 +00:00
Rodrigo Kumpera 810a81f413 2009-04-28 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (get_coded_index_token): Remove
	dead argument.

svn path=/trunk/mono/; revision=132933
2009-04-29 02:01:41 +00:00
Rodrigo Kumpera 69c4e4d234 2009-04-28 Rodrigo Kumpera <[email protected]>
* assembly-with-complex-type.cs: Add more types and methods to be used generating tests.

	* cli-tables-tests.md: Tests for interfaceimpl.

svn path=/trunk/mono/; revision=132932
2009-04-29 02:01:18 +00:00
Rodrigo Kumpera 645400953d 2009-04-28 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the interfaceimpl table.

svn path=/trunk/mono/; revision=132931
2009-04-29 02:01:03 +00:00
Rodrigo Kumpera 89c7a56b76 2009-04-28 Rodrigo Kumpera <[email protected]>
* valid_ldflda_owned_field_on_cctor.il: Fix visibility of .ctor.

svn path=/trunk/mono/; revision=132930
2009-04-29 02:00:40 +00:00
Rodrigo Kumpera 7f8a68150c 2009-04-28 Rodrigo Kumpera <[email protected]>
* verify.c: Improve error message.

	* debug-helpers.c (mono_type_get_desc): Harden the code that
	deals with VAR and MVAR.

svn path=/trunk/mono/; revision=132929
2009-04-29 02:00:25 +00:00
Miguel de Icaza b5ca4d7295 prop
svn path=/trunk/mcs/; revision=132902
2009-04-28 22:36:21 +00:00
Miguel de Icaza 7c146d57b7 Fox
svn path=/trunk/mcs/; revision=132901
2009-04-28 22:35:59 +00:00
Miguel de Icaza c850a978a8 Add targets
svn path=/trunk/mcs/; revision=132899
2009-04-28 22:00:44 +00:00
Miguel de Icaza 45d5b39703 Add proxy scripts
svn path=/trunk/mono/; revision=132898
2009-04-28 22:00:11 +00:00
Miguel de Icaza ab4caa1fbb csproj generator
svn path=/trunk/mcs/; revision=132897
2009-04-28 21:52:06 +00:00
Gonzalo Paniagua Javier f21ba58f85 2009-04-28 Gonzalo Paniagua Javier <[email protected]>
* DefaultModelBinder.cs: workaround for bug #499009.


svn path=/trunk/mcs/; revision=132896
2009-04-28 21:47:22 +00:00
Zoltan Varga 3556acd0a8 2009-04-28 Zoltan Varga <[email protected]>
* *.h *.c: Use TARGET_<ARCH> defines instead of __<arch>__ defines in the
	JIT code.

svn path=/trunk/mono/; revision=132895
2009-04-28 21:22:13 +00:00
Zoltan Varga bc65a470d5 2009-04-28 Zoltan Varga <[email protected]>
* configure.in: Define a TARGET_<ARCH> preprocessor symbol for some
	architectures.

svn path=/trunk/mono/; revision=132894
2009-04-28 21:22:05 +00:00
Martin Baulig 3a81f6741d Fix the ChangeLog to reflect what's actually in SVN.
svn path=/trunk/mono/; revision=132890
2009-04-28 21:05:24 +00:00
Atsushi Eno 9260e9a39f 2009-04-28 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : implement in-band dictionary support
	  in [MC-NMF] and [MC-NBFSE], used in duplex channels. Added some
	  comments for magic numbers based on [MC-NMF].

	* BinaryMessageEncodingBindingElementTest.cs, binary-message.raw:
	  new test files.

	* System.ServiceModel.dll_test.sources: added
	  BinaryMessageEncodingBindingElementTest.cs.


svn path=/trunk/mcs/; revision=132882
2009-04-28 18:55:59 +00:00
Atsushi Eno 044108b4ae 2009-04-28 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : implement part of in-band dictionary
	  support for [MC-NBFSE] record in [MC-NMF], in this class.


svn path=/trunk/mcs/; revision=132881
2009-04-28 18:50:16 +00:00
Atsushi Eno f453fbd9ea 2009-04-28 Atsushi Enomoto <[email protected]>
* BinaryMessageEncodingBindingElement.cs : clear extra public members.


svn path=/trunk/mcs/; revision=132880
2009-04-28 18:46:45 +00:00
Atsushi Eno ee3747a1cf 2009-04-27 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : several fixes;
	  - Name property was always empty.
	  - Value property was always empty for attributes.
	  - TextIndex node type was not supported.
	  - node reset at Read() was incomplete.
	  - attribute Prefix for single character had wrong value.
	  - namespace nodes did not appear as attribute nodes.
	  - attribute value node must be always single. Another text node
	    means a text child of the element, not the following attr value.
	  tests will go in sys.servicemodel.


svn path=/trunk/mcs/; revision=132879
2009-04-28 18:44:40 +00:00
Zoltan Varga 2c158ba586 2009-04-28 Zoltan Varga <[email protected]>
* image.c (mono_image_fixup_vtable): Avoid casting an lvalue. Fixes
	part of #498692.

svn path=/trunk/mono/; revision=132875
2009-04-28 18:11:45 +00:00
Zoltan Varga 0b0fe2059c 2009-04-28 Zoltan Varga <[email protected]>
* misc.c (GC_init): Avoid casting an lvalue. Fixes part of #498692.

svn path=/trunk/mono/; revision=132874
2009-04-28 18:11:37 +00:00
Zoltan Varga 49e2e5e089 2009-04-23 Tom Hindle <[email protected]>
* cominterop.c (ves_icall_System_Runtime_InteropServices_Marshal_ReleaseComObjectInternal):
	changed to match .Net behaviour of not aborting on additional calls to ReleaseComObject.

svn path=/trunk/mono/; revision=132872
2009-04-28 17:58:08 +00:00
Gonzalo Paniagua Javier e4d01de353 2009-04-28 Gonzalo Paniagua Javier <[email protected]>
* ConsoleTraceListener.cs: add an internal constructor that takes a
	string argument. Used when 'initializeData' is set.
	* DiagnosticsConfigurationHandler.cs: try internal constructors when
	the assembly is System.
	Fixes bug #498853.


svn path=/trunk/mcs/; revision=132868
2009-04-28 17:47:15 +00:00
Miguel de Icaza eb471c3252 Update
svn path=/trunk/mcs/; revision=132867
2009-04-28 17:46:09 +00:00
Miguel de Icaza f3182bb79c Update
svn path=/trunk/mono/; revision=132866
2009-04-28 17:28:42 +00:00
Miguel de Icaza e75f954969 Add more compat flags
svn path=/trunk/mcs/; revision=132864
2009-04-28 17:14:03 +00:00
Marek Safar df837ac87c New test.
svn path=/trunk/mcs/; revision=132862
2009-04-28 17:04:57 +00:00
Marek Safar 0d7ae3a7c9 2009-04-28 Marek Safar <[email protected]>
A fix for bug #495112
	* class.cs (IsUnmanagedType): Handle recursive unmanaged types using
	local cache.


svn path=/trunk/mcs/; revision=132861
2009-04-28 17:02:37 +00:00
Sebastien Pouliot cc6d045346 In Test/System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]> 

	* XmlReaderCommonTests.cs: Add test case for an empty string url

In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>  

	* XmlTextReader.cs (InitializeContext): Under NET_2_1 do not give
	a second change	using Path.GetFullPath. (GetStreamFromUrl) Add
	extra validations that would be missed in NET_2_1


svn path=/trunk/mcs/; revision=132856
2009-04-28 15:55:19 +00:00
Sebastien Pouliot 42f2df1f80 2009-04-28 Sebastien Pouliot <[email protected]>
* XmlReaderSettings.cs: Add MaxCharactersInDocument property for 
	NET_2_1 profile
	* XmlUrlResolver.cs: Cleanup #ifdef NET_2_1 inside this file 
	since this is not used anymore in Moonlight


svn path=/trunk/mcs/; revision=132855
2009-04-28 15:49:07 +00:00
Sebastien Pouliot 8d388ec068 In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]> 

	* XmlXapResolver.cs: Remove dependency on XmlUrlResolver. Small 
	fixes wrt new unit tests (inside moon-unit).

In .:
2009-04-28  Sebastien Pouliot  <[email protected]> 

	* net_2_1_raw_System.Xml.dll.sources: Remove XmlUrlResolver.cs 
	and the associated [SecuritySafeCritical] that it required


svn path=/trunk/mcs/; revision=132852
2009-04-28 15:36:50 +00:00
Sebastien Pouliot 31751dd12a In Test/System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* XmlResolverTest.cs: New. Unit tests for base features.

In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* XmlResolver.cs: Small fixes wrt new unit tests. Add SupportsType
	method for NET_2_1 profile.

In .:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* System.Xml_test.dll.sources: Add System.Xml/XmlResolverTest.cs to
	the unit tests


svn path=/trunk/mcs/; revision=132851
2009-04-28 15:23:37 +00:00
Miguel de Icaza 2f22695121 Update: +EXPR was never supported, just EXPR
svn path=/trunk/mono/; revision=132848
2009-04-28 14:53:29 +00:00
Sebastien Pouliot a338533425 2009-04-28 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Avoid redundant checks for platform code, 
	e.g. check for method and for class (very common) and check
	for class and outer class (less common)...


svn path=/trunk/mono/; revision=132844
2009-04-28 14:08:15 +00:00
Sebastien Pouliot d50faa0031 2009-04-28 Sebastien Pouliot <[email protected]>
* SocketException_2_1.cs: Remove extra ctor and property unused in 2.1


svn path=/trunk/mcs/; revision=132837
2009-04-28 12:35:47 +00:00
Marek Habersack db1c3a970d 2009-04-28 Marek Habersack <[email protected]>
* GridView.cs: implemented ColumnsGenerator and enabled its use in
	CreateColumns.

	* DetailsView.cs: implemented the RowsGenerator property and
	enabled its use in CreateFieldSet.

svn path=/trunk/mcs/; revision=132833
2009-04-28 12:14:16 +00:00
Marek Habersack 506b43f893 2009-04-28 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/LinkInHeadWithEmbeddedExpression.aspx

2009-04-28  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #498637

2009-04-28  Marek Habersack  <[email protected]>

	* AspGenerator.cs: ProcessTag doesn't process a tag which is not
	server-side and which has declarative expressions embedded. Fixes
	bug #498637

2009-04-28  Marek Habersack  <[email protected]>

	* NunitWebResources/LinkInHeadWithEmbeddedExpression.aspx: added

svn path=/trunk/mcs/; revision=132812
2009-04-28 08:39:43 +00:00
Raja R Harinath 4982670984 Handle 3.5 profile better. Fix the build too
* Makefile (NAME_SUFFIX): New.
(LIBRARY_NAME): Use it.
(TEST_MCS_FLAGS): Don't mention name of library.  Use NAME_SUFFIX
as appropriate when referring to other msbuild dlls.

svn path=/trunk/mcs/; revision=132811
2009-04-28 07:28:38 +00:00
Carlos Alberto Cortez f8539c2598 2009-04-27 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: When losing the focus, if our textbox is not null,
	close its auto complete list, if any.
	Fixes part of #489339.


svn path=/trunk/mcs/; revision=132804
2009-04-28 01:42:29 +00:00
Miguel de Icaza 7c343980b9 svn path=/trunk/mcs/; revision=132797 2009-04-27 23:33:46 +00:00
Miguel de Icaza ccf50c87c5 Only include the headers if available
svn path=/trunk/mono/; revision=132795
2009-04-27 23:07:17 +00:00
Sebastien Pouliot ed14746bea Makefile: Add missing Test/XmlFiles/496192.x* files to dist
svn path=/trunk/mcs/; revision=132788
2009-04-27 21:17:06 +00:00
Sebastien Pouliot 00a9a5e7ca 2009-04-27 Sebastien Pouliot <[email protected]>
* StreamReaderTest.cs: Fix build for NET_1_1


svn path=/trunk/mcs/; revision=132787
2009-04-27 21:12:30 +00:00
Andrés G. Aragoneses 5500e1e10f 2009-04-27 Andrés G. Aragoneses <[email protected]>
* ListView.cs: Make OnColumnClick +internal to be used by a11y.  


svn path=/trunk/mcs/; revision=132782
2009-04-27 20:32:41 +00:00
Brad Taylor 2ad6a0046f 2009-04-27 Brad Taylor <[email protected]>
* ToolStripButton.cs: Emit an internal event when CheckOnClick is
	changed.


svn path=/trunk/mcs/; revision=132781
2009-04-27 20:20:33 +00:00
Zoltan Varga c7c0d2bfc7 2009-04-27 Zoltan Varga <[email protected]>
* custom-attr.cs: Add a test for #498545.

svn path=/trunk/mono/; revision=132779
2009-04-27 20:06:04 +00:00
Zoltan Varga 3474aef344 2009-04-27 Zoltan Varga <[email protected]>
* reflection.c: Avoid returning random cattrs for synthetic methods.
	Fixes #498545.

svn path=/trunk/mono/; revision=132778
2009-04-27 20:05:55 +00:00
Zoltan Varga d8d55e7fee 2009-04-26 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_create_specific_trampoline): Add a stat for the
	number of trampolines used in full-aot mode.

	* aot-compiler.c: Add an ntrampolines option to set the number of
	trampolines emitted in full-aot mode.

svn path=/trunk/mono/; revision=132777
2009-04-27 20:05:43 +00:00
Sebastien Pouliot 1957b68645 In System.Security:
2009-04-27  Sebastien Pouliot  <[email protected]>

	* SecurityException.cs: Remove CAS-specific stuff from ToString
	* SecurityManager.cs: Do not include for NET_2_1 build
	* SecurityManager_2_1.cs: Alternate implementation for NET_2_1

In .:
2009-04-27  Sebastien Pouliot  <[email protected]>

	* corlib.dll.sources: Add new specific to 2.1 version of some 
	classes.

In System.Security.Policy:
2009-04-27  Sebastien Pouliot  <[email protected]>

	* Evidence.cs: Custom GetDefaultHostEvidence for NET_2_1
	* Hash.cs: Do not include for NET_2_1 build
	* HashMembershipCondition.cs: Do not include for NET_2_1 build
	* PolicyLevel.cs: Do not include for NET_2_1 build
	* PolicyLevel_2_1.cs: Alternate implementation for NET_2_1
	* Zone.cs: Do not include for NET_2_1 build
	* ZoneMembershipCondition.cs: Do not include for NET_2_1 build


svn path=/trunk/mcs/; revision=132774
2009-04-27 19:07:56 +00:00
Gonzalo Paniagua Javier 779b508819 2009-04-27 Gonzalo Paniagua Javier <[email protected]>
* assembly.c: assemblies in the GAC should never be shadow-copied.


svn path=/trunk/mono/; revision=132764
2009-04-27 16:33:52 +00:00
Ankit Jain 03341a095e * Engine.cs (BuildProjectFile): Set project's GlobalProperties to the
one passed as argument.

svn path=/trunk/mcs/; revision=132763
2009-04-27 16:20:09 +00:00
Atsushi Eno 856235b1c4 2009-04-27 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : implemented some channel methods.


svn path=/trunk/mcs/; revision=132757
2009-04-27 15:56:10 +00:00
Atsushi Eno 2694026ab9 2009-04-27 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : use XmlDictionary specified as [MC-NBFS].


svn path=/trunk/mcs/; revision=132756
2009-04-27 15:54:40 +00:00
Atsushi Eno 4a23fddcb7 2009-04-27 Atsushi Enomoto <[email protected]>
* DispatchRuntime.cs : some comment.
	* ChannelDispatcher.cs : ongoing changes to handle listeners and
	  accepted channels at more precise state. Listeners are opened,
	  without accepting channels. Some setup code is done at OnOpen(),
	  while some are done at OnOpened().

	* ServiceHost.cs : split dispatcher open from dispatcher loop start.
	  Use DispatchRuntime.Type to specify service type.

	* ChannelDispatcherTest.cs : added a couple of EndpointDispatcher
	  state tests.


svn path=/trunk/mcs/; revision=132739
2009-04-27 14:40:43 +00:00
Jb Evain f25edf9d62 2009-04-27 Jb Evain <[email protected]>
* sync with CodePlex r10923.

svn path=/trunk/mcs/; revision=132736
2009-04-27 14:33:12 +00:00
Ankit Jain c3cfbe5d6f Improve support for compiling vb.net projects.
In class/Microsoft.Build.Tasks:

	* Microsoft.Build.Tasks_test.dll.sources: Added
	CreateVisualBasicManifestResourceNameTest.cs .

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* CreateCSharpManifestResourceName.cs (GetResourceIdFromFileName): Move
	to ..
	* CreateManifestResourceName.cs: .. here.
	* CreateVisualBasicManifestResourceName.cs: Implement.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* CreateVisualBasicManifestResourceNameTest.cs: New.

In class/Microsoft.Build.Tasks/Test/resources:

	* Sample.vb: New.

In tools/xbuild:

	* xbuild/Microsoft.VisualBasic.targets: Update to use
	CreateVisualBasicManifestResourceName task, and fix compiler params.

svn path=/trunk/mcs/; revision=132723
2009-04-27 11:42:12 +00:00
Ankit Jain 594b3b50a6 * Vbc.cs (AddResponseFileCommands): Escape DefineConstants as it can
contain double quotes itself. Fix /doc switch.
(EscapeDoubleQuotes): New.

svn path=/trunk/mcs/; revision=132722
2009-04-27 11:41:53 +00:00
Ankit Jain c435e556d8 * TaskEngine.cs (Prepare): Emit a useful error message property value
can't be converted to required type.

svn path=/trunk/mcs/; revision=132721
2009-04-27 11:41:38 +00:00
Ankit Jain 9d370c21e6 * ExpressionCollection.cs (ConvertToObject): Allow true/on/yes
as valid true values for bool, and corresponding for false.

svn path=/trunk/mcs/; revision=132720
2009-04-27 11:41:06 +00:00
Atsushi Eno 5cfb26f7d2 2009-04-27 Atsushi Enomoto <[email protected]>
* ChannelManagerBase.cs : implement Open/CloseTimeout correctly.


svn path=/trunk/mcs/; revision=132711
2009-04-27 08:28:29 +00:00
Carlos Alberto Cortez 14bbca71f7 2009-04-26 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: Properly support UTF8 when handling the
	SelectionRequest event - this is helpful supporting some window
	managers, such KDE, that explictly request the text in utf8, as
	opposed to gnome, that supports ascii.
	Fixes #489393.


svn path=/trunk/mcs/; revision=132698
2009-04-27 06:09:22 +00:00
Carlos Alberto Cortez 9948c3b1de 2009-04-26 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDownItem.cs: When assigning a new
	ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
	Capture duties performed by Application/ToolStripManager are handled
	nicely and we don't end up in an inconsisten stat.
	Fixes #492815.


svn path=/trunk/mcs/; revision=132696
2009-04-27 02:05:40 +00:00
Zoltan Varga fa856a85b5 2009-04-27 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Implement OP_CHECK_THIS using
	a volatile load. Get rid of get_tempname (), llvm assigns names
	automatically.

	* mini-llvm-cpp.cpp (mono_llvm_build_volatile_load): New instruction
	builder function.

svn path=/trunk/mono/; revision=132691
2009-04-26 22:39:33 +00:00
Zoltan Varga 882733a116 2009-04-27 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Don't call LLVMGetParam on
	a value.

	* abcremoval.c (REPORT_ABC_REMOVAL): Don't output messages at verbose
	level 1.

svn path=/trunk/mono/; revision=132690
2009-04-26 22:27:03 +00:00
Zoltan Varga 5b5fbbd70e 2009-04-27 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Prevent sreg1/dreg to be allocated
	to the same register as a fixed sreg2. Fixes #497271.

	* iltests.il.in: Add a new test.

svn path=/trunk/mono/; revision=132689
2009-04-26 22:13:51 +00:00
Zoltan Varga 32926168e8 2009-04-26 Zoltan Varga <[email protected]>
* mini-amd64.c: Use moves instead of pushes for passing arguments on the
	stack, since pushes complicate exception handling.

	* exceptions-amd64.c (mono_arch_find_jit_info): Don't pop the arguments of
	the stack if they are passed using moves.

svn path=/trunk/mono/; revision=132687
2009-04-26 18:34:15 +00:00
Zoltan Varga 17c70ed712 2009-04-26 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_llvm_vcall_trampoline): Add an assert.

	* method-to-ir.c (mono_method_to_ir): Disable fast virtual generic methods
	when using llvm.

	* mini-llvm.c (mono_llvm_emit_method): Call jit icall wrappers, not the
	icalls themselves. Convert arguments of FCOMPARE. Convert the destination
	of FMOVE if it is an R4.

svn path=/trunk/mono/; revision=132686
2009-04-26 18:31:57 +00:00
Mark Probst f352fe488f Disable track resurrection hashes if using SGen.
2009-04-26  Mark Probst  <[email protected]>

        * domain.c, domain-internals.h: Disable
        track_resurrection_{objects,handles}_hash in MonoDomain if using
        SGen.

svn path=/trunk/mono/; revision=132681
2009-04-26 10:04:27 +00:00
Miguel de Icaza c811d8c9d8 Add comment after much debate
svn path=/trunk/mcs/; revision=132672
2009-04-25 19:34:34 +00:00
Miguel de Icaza 1b774ddf6d 2009-04-25 Miguel de Icaza <[email protected]>
* TermInfoDriver.cs: Use the new StreamReader.DataAvailable to
	load all the data that was added into the `stdin' stream when we
	did the `Read'.

2009-04-25  Miguel de Icaza  <[email protected]>

	* StreamReader.cs (DataAvailable): New internal function to work
	around the fact that StreamReaders are now blocking on Peek(), and
	that our own Console.TermInfoDriver used Peek() as a way of
	probing if there was data on a stream before to avoid blocking. o


svn path=/trunk/mcs/; revision=132670
2009-04-25 19:32:34 +00:00
Miguel de Icaza 3dc05ad99e Apply Gonzalo's patch to fix TermInfoDriver after his StreamReader changes
svn path=/trunk/mcs/; revision=132667
2009-04-25 19:00:32 +00:00
Miguel de Icaza 8b1742d19b Reapply
svn path=/trunk/mcs/; revision=132666
2009-04-25 18:59:23 +00:00
Zoltan Varga 248d20fecc 2009-04-25 Zoltan Varga <[email protected]>
* mini-ops.h: Add OP_LLVM_OUTARG_VT opcode.

	* mini.h (LLVMCallInfo): New structure to store calling convention
	information for the LLVM back end similar to the CallInfo structures in
	the back-ends.

	* mini-amd64.c (mono_arch_get_llvm_call_info): New arch function to return
	call information in a format usable by LLVM.
	(mono_arch_emit_call): Move the LLVM handling code to mono_llvm_emit_call ().

	* method-to-ir.c (mono_emit_call_args): Emit calls using
	mono_llvm_emit_call () when compiling using LLVM.

	* mini-llvm.c: Implement support for passing/receiving valuetypes. Add
	comments to all functions. Fix memory leaks. Add a public init/cleanup
	function.

	* mini.c: Call the llvm init/cleanup functions in mini_init()/cleanup().

	* method-to-ir.c (handle_array_new): Disable llvm when calling the vararg
	mono_array_new_va () jit icall.

svn path=/trunk/mono/; revision=132665
2009-04-25 18:47:02 +00:00
Carlos Alberto Cortez 9e659e849e 2009-04-25 Carlos Alberto Cortez <[email protected]>
* ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
	any ToolStripDropDownItem when receiving a mouse down event in an
	empty area.


svn path=/trunk/mcs/; revision=132664
2009-04-25 16:50:06 +00:00
Sebastien Pouliot eb9be6e575 2009-04-25 Sebastien Pouliot <[email protected]>
* *.cs: Exclude the files for the NET_2_1 profile, since they are
	unneeded and adds a bunch (23) [SecuritySafeCritical] to audit for
	Moonlight


svn path=/trunk/mcs/; revision=132663
2009-04-25 15:57:46 +00:00
Sebastien Pouliot e2f2dba515 2009-04-24 Sebastien Pouliot <[email protected]>
* Environment.cs: #ifdef out code that use the registry for the 
	NET_2_1 profile and some other properties (2) that added
	[SecuritySafeCritical] methods to audit inside Moonlight.


svn path=/trunk/mcs/; revision=132662
2009-04-25 15:20:12 +00:00
Daniel Nauck 0ace9efc2a 2009-04-25 Daniel Nauck <[email protected]>
Fix bug #484649:
        * LoggerInfo.cs: fixed the parsing of the /logger: argument as described in
        http://msdn.microsoft.com/en-us/library/ms164311.aspx
        Added logger class detection if it's not explicit specified in the argument.


svn path=/trunk/mcs/; revision=132660
2009-04-25 14:43:42 +00:00
Jonathan Chambers 2006ec2530 2009-04-25 Jonathan Chambers <[email protected]>
* Makefile: Add Microsoft.Build.* to 3.5 profile.



svn path=/trunk/mcs/; revision=132649
2009-04-25 11:48:33 +00:00
Zoltan Varga 1c998683f8 2009-04-24 Kostyantyn Gushtin, Yevgen Kiruha, Serhiy Naumenko, Serhiy Stetskovych and Ian Dichkovsky <[email protected]>
* include/private/gcconfig.h: Changes to support 64-bit ABI on MIPS.
	Add an additional condition for a proper defining of  ALIGNMENT
	and CPP_WORDSZ.

svn path=/trunk/mono/; revision=132645
2009-04-25 03:39:40 +00:00
Jonathan Pryor e43cb181c3 * src/**/*: Add missing files (doh!). Fixes the build.
svn path=/trunk/mcs/; revision=132643
2009-04-25 00:52:17 +00:00
Miguel de Icaza 2291d2b9e4 2009-04-24 Miguel de Icaza <[email protected]>
* complete.cs: No idea how gonzalo got a null in the list, but
	avoid crashing.

svn path=/trunk/mcs/; revision=132641
2009-04-25 00:21:08 +00:00
Jonathan Pryor f77b5feb60 * src/**/*: Flush; syncs to DbLinq r1053. Adds
DataContext(string,MappingSource) support, the beginnings of object
	  tracking, more tests...

svn path=/trunk/mcs/; revision=132640
2009-04-24 23:47:48 +00:00
Miguel de Icaza c2545dcc09 Revert 132601, 132602 as it made the csharp console stop working
svn path=/trunk/mcs/; revision=132638
2009-04-24 23:43:12 +00:00
Miguel de Icaza 80f717c4ca Without this I am unable to install
svn path=/trunk/mono/; revision=132637
2009-04-24 22:38:55 +00:00
Rodrigo Kumpera db81167546 2009-04-24 Rodrigo Kumpera <[email protected]>
* get.c (dis_stringify_method_signature_full): Don't assert
	if no marshal info is found.

svn path=/trunk/mono/; revision=132636
2009-04-24 22:32:18 +00:00
Rodrigo Kumpera 1381550143 2009-04-24 Rodrigo Kumpera <[email protected]>
* assembly-with-params.cs: New test file with all sort of param kinds.

	* assembly-with-methods.cs: Added more stuff to test paramlist.

	* Makefile: Add new dependencies.

	* cli-tables-tests.md: Tests for methoddef's paramlist.
	Tests for the param table.

svn path=/trunk/mono/; revision=132635
2009-04-24 22:31:54 +00:00
Rodrigo Kumpera 2cb5d4a67b 2009-04-24 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the param table.

svn path=/trunk/mono/; revision=132634
2009-04-24 22:31:39 +00:00
Rodrigo Kumpera 9b22759895 2009-04-24 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Range check FieldList and
	MethodList.

	* metadata-verify.c (verify_method_table): Proper check the ParamList
	field.

svn path=/trunk/mono/; revision=132633
2009-04-24 22:31:09 +00:00
Rodrigo Kumpera 9dddcf6184 2009-04-24 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_method_table): Check for runtime
	implemented functions such as delegate .ctors. Remove spurious
	printf.

svn path=/trunk/mono/; revision=132632
2009-04-24 22:30:34 +00:00
Rodrigo Kumpera ae5736573f 2009-04-24 Rodrigo Kumpera <[email protected]>
* pedump.c: Proper initialize the runtime forcing the 2.0 profile.

svn path=/trunk/mono/; revision=132631
2009-04-24 22:29:52 +00:00
Miguel de Icaza 92603a2683 Update this
svn path=/trunk/mcs/; revision=132627
2009-04-24 21:41:32 +00:00
Miguel de Icaza a4a893ec00 Reapply this patch, but keep in mind, it does introduce
a new shift/reduce conflict which is bothering me:

625: shift/reduce conflict (shift 452, reduce 890) on COMPLETE_COMPLETION
state 625
	member_initializer : non_assignment_expression . opt_COMPLETE_COMPLETION  (452)
	opt_COMPLETE_COMPLETION : .  (890)

	COMPLETE_COMPLETION  shift 452
	CLOSE_BRACE  reduce 890
	COMMA  reduce 890

	opt_COMPLETE_COMPLETION  goto 807

2009-04-24  Miguel de Icaza  <[email protected]>

	* complete.cs (CompletionElementInitializer): New completion class
	to support completing inside a C# 3 element initializer, so this
	allows completion for Silverlight situations where it is very
	common to do:

	new TextBlock () { Fo<TAB>

	(CompletionSimpleName): Expose the prefix that was
	passed to the simple name.

	* cs-parser.jay (object_or_collection_initializer): Add support
	for element_initializers.

	* expression.cs (CollectionOrObjectInitializers.DoResolve):
	special case completion expressions as this method aggressively
	collects data before it operates, and errors were being thrown
	earlier than we were able to complete.



svn path=/trunk/mcs/; revision=132626
2009-04-24 21:30:34 +00:00
Andrés G. Aragoneses 3bcab9370c 2009-04-24 Andrés G. Aragoneses <[email protected]>
* ToolBarButton.cs: add UIA events for style and dropdownmenu changes.


svn path=/trunk/mcs/; revision=132625
2009-04-24 21:27:27 +00:00
Andrés G. Aragoneses f104e747c6 2009-04-24 Andrés G. Aragoneses <[email protected]>
* ToolBarButton.cs: rename a method to include UIA prefix.    


svn path=/trunk/mcs/; revision=132624
2009-04-24 21:23:28 +00:00
Andrés G. Aragoneses 52470b0bc9 doh, fix build
svn path=/trunk/mcs/; revision=132623
2009-04-24 21:21:31 +00:00
Bill Holmes 69fc48204d 2009-04-24 Bill Holmes <[email protected]>
Fixing the glib targets for Winx64.

	* libmono.vcproj, mono.vcproj: Correcting the ProgramDatabaseFile
	  value for the Winx64 glib build.

	* mono.sln: Enabling the glib targets for Winx64.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=132622
2009-04-24 21:20:07 +00:00
Andrés G. Aragoneses dab4ccd0fb 2009-04-24 Andrés G. Aragoneses <[email protected]>
* ToolBarButton.cs: change visibility of some UIA methods to private.


svn path=/trunk/mcs/; revision=132621
2009-04-24 21:19:25 +00:00
Marek Habersack 1368d48fa1 2009-04-24 Marek Habersack <[email protected]>
* TemplateParser.cs:
	AddImport ignores null/empty namespaces. Fixes bug #498118

svn path=/trunk/mcs/; revision=132619
2009-04-24 20:55:22 +00:00
Marek Habersack ebe41a28dd 2009-04-24 Marek Habersack <[email protected]>
* HtmlizedException.cs: make HtmlException derive from
	HttpException. System.Web.Mvc relies upon compile and parse
	exception being descendants of HttpException or otherwise it will
	catch and ignore compilation/parsing errors.

svn path=/trunk/mcs/; revision=132617
2009-04-24 20:44:18 +00:00
Marek Safar d38a025374 Reverted r132592
svn path=/trunk/mcs/; revision=132616
2009-04-24 20:05:01 +00:00
Carlos Alberto Cortez 2428f25869 2009-04-24 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
	fire OnDropDownOpened/OnDropDownClosed depending on the new
	visibility. This also ensures that any direct access to this instance
	will fire the mentioned events for the OwnerItem.
	* ToolStripDropDownItem.cs: Remove the invocations to
	OnDropDownOpened/OnDropDownClosed, since they are handled in
	ToolStripDropDown, as well as updating the
	OnDropDownHide/OnDropDownShow calls to be in the right order.
	Fixes #496193.


svn path=/trunk/mcs/; revision=132611
2009-04-24 19:20:09 +00:00
Bill Holmes e08c5c6745 2009-04-24 Bill Holmes <[email protected]>
* libmono.vcproj: Adding metadata/metadata-verify.c to the project.

	* runmdesc.bat: Fixing the argument order to genmdesc.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=132610
2009-04-24 19:10:39 +00:00
Marek Habersack a6ed4173aa 2009-04-24 Marek Habersack <[email protected]>
* System.Web_test.dll.sources: added
	System.Web.UI/PageParserFilterTest.cs

2009-04-24  Marek Habersack  <[email protected]>

	* TemplateParser.cs: PageParserFilter.Initialize now takes just
	one parameter.

	* PageParserFilter.cs: a few alignments for .NET compatibility in
	the default behavior.

2009-04-24  Marek Habersack  <[email protected]>

	* AspGenerator.cs: ProcessCode should _not_ stop processing the
	passed code string if the filter's ProcessCodeConstruct returns
	false. Fixes bug #497775

2009-04-24  Marek Habersack  <[email protected]>

	* PageParserFilterTest.cs: added

svn path=/trunk/mcs/; revision=132607
2009-04-24 18:54:29 +00:00
Gonzalo Paniagua Javier 4cc36d1481 2009-04-24 Gonzalo Paniagua Javier <[email protected]>
* StreamReaderTest.cs: new test. Using Peek() when we did a short read
	should block if needed.


svn path=/trunk/mcs/; revision=132602
2009-04-24 16:46:27 +00:00
Gonzalo Paniagua Javier ff67b08189 2009-04-24 Gonzalo Paniagua Javier <[email protected]>
* StreamReader.cs: if Peek() needs to block, do it.
	Fixes bug #496905.


svn path=/trunk/mcs/; revision=132601
2009-04-24 16:46:19 +00:00
Miguel de Icaza 053c2ce662 Remove debugging ToString, it did not compile with mcs anyways
svn path=/trunk/mcs/; revision=132598
2009-04-24 15:32:41 +00:00
Miguel de Icaza bbcf0ee13c Add tutorial for adding more completion types and added new completion
types:

2009-04-24  Miguel de Icaza  <[email protected]>

	* complete.cs (CompletionElementInitializer): New completion class
	to support completing inside a C# 3 element initializer, so this
	allows completion for Silverlight situations where it is very
	common to do:

	new TextBlock () { Fo<TAB>

	(CompletionSimpleName): Expose the prefix that was
	passed to the simple name.

	* cs-parser.jay (object_or_collection_initializer): Add support
	for element_initializers.

	* expression.cs (CollectionOrObjectInitializers.DoResolve):
	special case completion expressions as this method aggressively
	collects data before it operates, and errors were being thrown
	earlier than we were able to complete.


svn path=/trunk/mcs/; revision=132592
2009-04-24 15:04:11 +00:00
Paolo Molaro 5b5af18778 Fri Apr 24 16:44:08 CEST 2009 Paolo Molaro <[email protected]>
* Makefile.am, genmdesc.c, genmdesc.pl: tiny refactor to allow
	multiple machine description files to be specified.
	* mini-ops.h: fixes for cross-compilation.


svn path=/trunk/mono/; revision=132588
2009-04-24 14:46:07 +00:00
Raja R Harinath 2de0591229 Don't allocate MonoGenericInfo for ownerless generic params.
* class-internals.h (MonoGenericParam::info): Move field to ...
(MonoGenericParamFull): ... this.  New struct.
(MonoGenericContainer::type_params): Change type to
MonoGenericParamFull.
(MonoGenericParam, MonoGenericContainer): Update accessors.
* metadata.c (mono_metadata_parse_generic_param): Don't initialize
'info' field for ownerless generic param.
(mono_metadata_load_generic_params): Update to changes.
* reflection.c (mono_reflection_create_generic_class): Likewise.
(reflection_methodbuilder_to_mono_method): Likewise.
(mono_reflection_initialize_generic_parameter): Likewise.

svn path=/trunk/mono/; revision=132583
2009-04-24 13:38:59 +00:00
Jb Evain 8f672a486f 2009-04-24 Jb Evain <[email protected]>
* Mono.Tuner.dll.sources: adjusted
	* Mono.Tuner/FilterAttributes.cs: new step to remove some known
	undesirable custom attributes.


svn path=/trunk/mcs/; revision=132582
2009-04-24 13:18:23 +00:00
Ankit Jain 5245cb34bc * ToolTask.cs (RealExecute): Handle TypeLoadExceptions, compiler
crashes and report them. Borrow some tricks from md.
(LogEventsFromTextOutput): Ignore known non-error messages. Don't
log unknown lines, crashes get handled elsewhere.

svn path=/trunk/mcs/; revision=132569
2009-04-24 11:21:00 +00:00
Raja R Harinath ca596d070f Don't use MonoGenericParamInfo for ownerless generic params.
* class.c (get_anon_gparam_class, set_anon_gparam_class): New.  Don't
use ParamInfo class at all.
(mono_class_from_generic_parameter): Use them.
(make_generic_param_class): Fix a couple of instances where 'pinfo
== NULL' wasn't handle.

svn path=/trunk/mono/; revision=132549
2009-04-24 05:52:34 +00:00
Raja R Harinath 1481f2064e Refactor 'mono_class_from_generic_parameter'
* class.c (make_generic_param_class): Carve out of ...
(mono_class_from_generic_parameter): ... here.

svn path=/trunk/mono/; revision=132548
2009-04-24 05:52:11 +00:00
Raja R Harinath 96c6def8fd Simplify mono_class_from_generic_parameter
* class-internals.h (MonoGenericParamInfo::token): New field.
* metadata.c (mono_metadata_load_generic_params): Initialize it
from metadata.
* class.c (mono_class_from_generic_parameter): Use it instead of
searching through metadata.

svn path=/trunk/mono/; revision=132547
2009-04-24 05:51:47 +00:00
Sebastien Pouliot 54a2ea1120 add a few files back for S.R.S.dll - don't trust changes without a full, long and boring 'make clean'.
svn path=/trunk/mcs/; revision=132537
2009-04-24 00:55:48 +00:00
Rodrigo Kumpera 2c08253395 2009-04-23 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add verification of the method table.

svn path=/trunk/mono/; revision=132536
2009-04-24 00:36:44 +00:00
Rodrigo Kumpera 64737cef43 2009-04-23 Rodrigo Kumpera <[email protected]>
* assembly-with-methods.cs:
	* assembly-with-global-method.il: New test files with a global method.

	* assembly-with-complex-type.cs: Add more types and methods to be used generating tests.

	* cli-tables-tests.md: Tests for the methoddef table.

	* Makefile: Add new dependencies.

svn path=/trunk/mono/; revision=132535
2009-04-24 00:36:19 +00:00
Rodrigo Kumpera cad028b7f8 2009-04-23 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add read.ushort.

svn path=/trunk/mono/; revision=132534
2009-04-24 00:36:06 +00:00
Rodrigo Kumpera d86cc03273 2009-04-23 Rodrigo Kumpera <[email protected]>
* shared.c: Fix a bunch of memleaks.

svn path=/trunk/mono/; revision=132533
2009-04-24 00:35:51 +00:00
Rodrigo Kumpera 6ec5fba179 2009-04-23 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Fix memleak for the
	Delegate::Invoke optimization.

svn path=/trunk/mono/; revision=132532
2009-04-24 00:35:28 +00:00
Rodrigo Kumpera e5382e953b 2009-04-23 Rodrigo Kumpera <[email protected]>
* appdomain.c (mono_domain_create_appdomain_internal): Free the
	string returned by get_shadow_assembly_location_base.

	* appdomain.c (get_shadow_assembly_location_base): Add a comment
	about caller's ownership.

svn path=/trunk/mono/; revision=132531
2009-04-24 00:34:59 +00:00
Rodrigo Kumpera 041223a29f 2009-04-23 Rodrigo Kumpera <[email protected]>
* reflection.c: Add mono_reflection_cleanup_domain to cleanup
	reflection memory on domain unload.

	* domain.c (mono_domain_free): Don't free refobject_hash, let the
	reflection cleanup code do it.

	* domain-internals.h: Add mono_reflection_cleanup_domain.

	This fixes a memory leak for managed mirrors of reflection objects
	on domain unload.

svn path=/trunk/mono/; revision=132530
2009-04-24 00:34:35 +00:00
Rodrigo Kumpera 90fcc3ec3a 2009-04-22 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: More tests for the field table.

svn path=/trunk/mono/; revision=132529
2009-04-24 00:34:11 +00:00
Rodrigo Kumpera 303770f63d 2009-04-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement more verification of the field table.

svn path=/trunk/mono/; revision=132528
2009-04-24 00:33:59 +00:00
Rodrigo Kumpera ba126e3b86 2009-04-22 Rodrigo Kumpera <[email protected]>
* pedump.c (main): Init mono with mscorlib so it defaults to 2.0 and
	doesn't try to parse the input assembly, which can be broken.

svn path=/trunk/mono/; revision=132527
2009-04-24 00:33:30 +00:00
Rodrigo Kumpera 6ba99c28f3 2009-04-21 Rodrigo Kumpera <[email protected]>
* pedump.c: Fix a warning.

svn path=/trunk/mono/; revision=132526
2009-04-24 00:32:59 +00:00
Sebastien Pouliot 9226ab53e7 add back duplicated files since the circular, bootstrap, build needs them somehow
svn path=/trunk/mcs/; revision=132525
2009-04-23 23:31:39 +00:00
Miguel de Icaza a9a82471de Add man page
svn path=/trunk/mono/; revision=132512
2009-04-23 20:15:47 +00:00
Sebastien Pouliot 99b7295699 2009-04-23 Sebastien Pouliot <[email protected]>
* TimezoneInfo.cs: TimeZoneDirectory property should not be public


svn path=/trunk/mcs/; revision=132509
2009-04-23 19:41:14 +00:00
Andrés G. Aragoneses 328485e936 * linker/Mono.Linker/Driver.cs: Report error and exit if it cannot
resolve some type (useful to avoid an ugly TypeLoadException when
specifying an erroneus custom step).

svn path=/trunk/mcs/; revision=132508
2009-04-23 19:30:58 +00:00
Atsushi Eno a7be9938a5 2009-04-23 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : use quotas in binding element.
	  Implement WriteMessage().


svn path=/trunk/mcs/; revision=132501
2009-04-23 18:23:09 +00:00
Sebastien Pouliot 6118cb1165 2009-04-23 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.dll.sources: Remove some unneeded files.


svn path=/trunk/mcs/; revision=132492
2009-04-23 17:34:48 +00:00
Sebastien Pouliot 4f838e0e43 2009-04-23 Sebastien Pouliot <[email protected]>
* Regex.cs: Remove Compiler-related support for NET_2_1
	* RegexOptions.cs: Remove Compile from values available on NET_2_1


svn path=/trunk/mcs/; revision=132491
2009-04-23 17:34:25 +00:00
Sebastien Pouliot 0f4f4557f6 2009-04-23 Sebastien Pouliot <[email protected]>
* UriParser.cs: Don't use compiled regex on NET_2_1 (feature is
	not available)


svn path=/trunk/mcs/; revision=132490
2009-04-23 17:33:38 +00:00
Sebastien Pouliot 7daa73de8f 2009-04-23 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Remove InternalsVisibleTo on Mono.Moonlight 
	since it does not exists anymore


svn path=/trunk/mcs/; revision=132489
2009-04-23 17:23:35 +00:00
Mark Probst ecc4317f0d Track resurrection GCHandles in SGen.
2009-04-23  Mark Probst  <[email protected]>

        * boehm-gc.c, gc-internal.h, gc.c, monitor.c, null-gc.c,
        sgen-gc.c: Implement track resurrection in weak GC handles in SGen
        by using the lowest bit in the link to store whether the link is
        tracked.  Move the track_resurrection hashes into boehm-gc.c.

svn path=/trunk/mono/; revision=132485
2009-04-23 16:55:42 +00:00
Marek Habersack 0d6fd8d740 2009-04-23 Marek Habersack <[email protected]>
* AsyncPostBackTrigger.cs: HasTriggered () must look up the
	UniqueID of the control specified in the ControlID property or
	otherwise it may miss certain triggers.

svn path=/trunk/mcs/; revision=132482
2009-04-23 16:47:52 +00:00
Jb Evain fa3de9066b delete unused file
svn path=/trunk/mcs/; revision=132468
2009-04-23 13:59:38 +00:00
Jb Evain 493d3e3c53 2009-04-23 Jb Evain <[email protected]>
* scripts/Makefile.am: add a pdb2mdb script.


svn path=/trunk/mono/; revision=132466
2009-04-23 13:56:00 +00:00
Jb Evain 479563b1a4 2009-04-23 Jb Evain <[email protected]>
* Makefile: add pdb2mdb to the build.


svn path=/trunk/mcs/; revision=132464
2009-04-23 13:48:27 +00:00
Jb Evain c9d73bc09c 2009-04-23 Jb Evain <[email protected]>
* Makefile: disable moon. Tuning is done by moonlight, which
	will populate back the mcs tree with tuned assemblies for tests.


svn path=/trunk/mcs/; revision=132462
2009-04-23 13:47:06 +00:00
Jb Evain 5471a1cb5a add license file
svn path=/trunk/mcs/; revision=132461
2009-04-23 13:43:04 +00:00
Jb Evain 2ed5f86e49 2009-04-23 Jb Evain <[email protected]>
* pdb2mdb.exe.sources: added.
	* Makefile: update to the mcs build system.


svn path=/trunk/mcs/; revision=132460
2009-04-23 13:41:49 +00:00
Jb Evain 8d0348b70c Move managed version of pdb2mdb in mcs.
svn path=/trunk/mcs/; revision=132458
2009-04-23 13:30:25 +00:00
Raja R Harinath a69c682a0f fix typo
svn path=/trunk/mcs/; revision=132456
2009-04-23 12:57:07 +00:00
Jb Evain 212a395eac 2009-04-23 Jb Evain <[email protected]>
* Mono.Tuner/CheckVisibility.cs: check deep nested types.


svn path=/trunk/mcs/; revision=132449
2009-04-23 11:11:57 +00:00
Atsushi Eno 60d84817eb 2009-04-23 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs : reordered preferrence of created channel types,
	  and fixed to allow duplex channels without CallbackContractType
	  (which does not always exist for duplex channels).


svn path=/trunk/mcs/; revision=132448
2009-04-23 11:09:11 +00:00
Atsushi Eno 8ac98fb28a 2009-04-23 Atsushi Enomoto <[email protected]>
* DispatchOperation.cs : implement GetFormatter() at service side too.


svn path=/trunk/mcs/; revision=132447
2009-04-23 11:06:40 +00:00
Atsushi Eno bb0db7ef9b 2009-04-22 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : now Request() supports duplex ones too.


svn path=/trunk/mcs/; revision=132446
2009-04-23 11:05:23 +00:00
Atsushi Eno b7800c641d 2009-04-22 Atsushi Enomoto <[email protected]>
* DuplexChannelFactory.cs : remove todos. Implement CreateChannel().


svn path=/trunk/mcs/; revision=132445
2009-04-23 11:02:02 +00:00
Atsushi Eno cfb63579dc 2009-04-22 Atsushi Enomoto <[email protected]>
* PeerCustomResolverBindingElement.cs : do initialize field.


svn path=/trunk/mcs/; revision=132443
2009-04-23 10:48:51 +00:00
Miguel de Icaza 7e14548d77 2009-04-23 Miguel de Icaza <[email protected]>
* eval.cs: Make getcompletions silent and enable debugging output
	if the -v option is passed.

svn path=/trunk/mcs/; revision=132431
2009-04-23 05:48:19 +00:00
Miguel de Icaza 898900f5a0 2009-04-23 Miguel de Icaza <[email protected]>
* namespace.cs (NamespaceEntry.CompletionGetTypesStartingWith):
	Consider looking up the namespace that matches the prefix being
	used. 

	This is part of the support for allowing completions like:
	`System.Co<TAB>' to complete to System.Console.

	* complete.cs (CompletionSimpleName.AppendResults): Make this
	routine reusable.



svn path=/trunk/mcs/; revision=132430
2009-04-23 05:42:38 +00:00
Sebastien Pouliot 3af17243f6 2009-04-22 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Open up the internals to System.ServiceModel.Web, 
	e.g. calls to IDataContractSurrogate, JsonReader ...


svn path=/trunk/mcs/; revision=132429
2009-04-23 01:46:07 +00:00
Miguel de Icaza 51fe80bcf3 Add missing headers
svn path=/trunk/mono/; revision=132428
2009-04-22 23:59:25 +00:00
Miguel de Icaza b9e66f22b7 merge
svn path=/trunk/mono/; revision=132427
2009-04-22 23:59:10 +00:00
Sebastien Pouliot 8333dc1439 2009-04-22 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Open internals to System.ServiceModel.Web


svn path=/trunk/mcs/; revision=132426
2009-04-22 23:49:18 +00:00
Miguel de Icaza 016c4d07cf 2009-04-22 Miguel de Icaza <[email protected]>
* aot-runtime.c (make_writable): Use mono_mprotect to simplify
	some porting work.

svn path=/trunk/mono/; revision=132425
2009-04-22 23:33:57 +00:00
Miguel de Icaza 4348ddbcfb Portificate to the SLN setup
svn path=/trunk/mono/; revision=132424
2009-04-22 23:16:34 +00:00
Miguel de Icaza d69eacde0a 2009-04-22 Miguel de Icaza <[email protected]>
* Makefile.am: Split the console support in platform specific
        code and put together a framework for making this easy in the future so
        that we can start splitting code instead of having a mess of PLATFORM_WIN32


svn path=/trunk/mono/; revision=132422
2009-04-22 23:07:49 +00:00
Miguel de Icaza e2be6b2ab1 Add
svn path=/trunk/mono/; revision=132420
2009-04-22 22:56:30 +00:00
Miguel de Icaza 2d70e69f96 Add
svn path=/trunk/mono/; revision=132419
2009-04-22 22:56:23 +00:00
Miguel de Icaza e3890c3db5 Sort the files
svn path=/trunk/mono/; revision=132418
2009-04-22 22:51:56 +00:00
Miguel de Icaza 050353d660 Do not need signal.h here
svn path=/trunk/mono/; revision=132416
2009-04-22 22:34:52 +00:00
Miguel de Icaza 8a54df6ad0 Do not need signal.h here
svn path=/trunk/mono/; revision=132415
2009-04-22 22:34:31 +00:00
Miguel de Icaza 3a9fa26e06 Do not need signal.h here
svn path=/trunk/mono/; revision=132414
2009-04-22 22:33:53 +00:00
Miguel de Icaza 2645a134ad Update
svn path=/trunk/mono/; revision=132413
2009-04-22 22:32:07 +00:00
Sebastien Pouliot 5082fdbff3 2009-04-22 Sebastien Pouliot <[email protected]>
* System.Net.dll.sources: Remove the common Const, Locale and 
	MonoTODOAttribute since we can now get them from mscorlib.dll.
	Remove all System/System.Net.NetworkInformation/* types since
	Socket does not depend on them anymore.
	* DummySystemNet.cs: Add a dummy System.Net.NetworkInformation
	namespace to please compilers.


svn path=/trunk/mcs/; revision=132409
2009-04-22 21:53:22 +00:00
Sebastien Pouliot eeb4f00cae 2009-04-22 Sebastien Pouliot <[email protected]>
* Socket_2_1.cs: Use old-n-simple CheckProtocolSupport to implement
	OSSupportsIP[v4|v6] for Moonlight (NET_2_1 only) so we can avoid 
	including a bunch of types (22) from System.Net.NetworkInformation 
	and drop the number of [SecuritySafeCritical] methods to audit (the 
	same 22) and [SecurityCritical] (8) beside getting a smaller 
	System.Net.dll assembly :)


svn path=/trunk/mcs/; revision=132408
2009-04-22 21:50:40 +00:00
Sebastien Pouliot 1afdb9c729 2009-04-22 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.ServiceModel.Web.dll.sources: Remove the common
	Const, Locale and MonoTODO since we can now get them from mscorlib.dll


svn path=/trunk/mcs/; revision=132407
2009-04-22 21:32:30 +00:00
Sebastien Pouliot fb5333b0b0 2009-04-22 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: allow System.ServiceModel.Web access to mscorlib
	internals (e.g. non-generic System.Collections.*)


svn path=/trunk/mcs/; revision=132406
2009-04-22 21:32:17 +00:00
Miguel de Icaza 8501c39432 Up
svn path=/trunk/mono/; revision=132404
2009-04-22 21:24:26 +00:00
Gonzalo Paniagua Javier 7a01b00781 2009-04-22 Gonzalo Paniagua Javier <[email protected]>
* Win32Exception.cs: made W32ErrorMessage internal.


svn path=/trunk/mcs/; revision=132394
2009-04-22 19:01:09 +00:00
Gonzalo Paniagua Javier c8928818b7 2009-04-22 Gonzalo Paniagua Javier <[email protected]>
* Microsoft.CSharp/CSharpCodeCompiler.cs:
	* Microsoft.VisualBasic/VBCodeCompiler.cs: better error when there's a
	problem running the specified exec.


svn path=/trunk/mcs/; revision=132387
2009-04-22 18:35:40 +00:00
Miguel de Icaza 1f781d02dc Move two other documents to the Wiki
svn path=/trunk/mono/; revision=132386
2009-04-22 18:22:37 +00:00
Jeffrey Stedfast 87f46ffb33 2009-04-22 Jeffrey Stedfast <[email protected]>
* configure.in: Check for a stable version of glib-2.0 as opposed
	to an unstable development version (we don't want people
	unfamiliar with glib versioning to install an unstable development
	version of glib).


svn path=/trunk/mono/; revision=132384
2009-04-22 18:09:44 +00:00
Jb Evain 19ae150552 refactor
svn path=/trunk/mcs/; revision=132378
2009-04-22 16:55:54 +00:00
Jb Evain 6684c55390 that reads better
svn path=/trunk/mcs/; revision=132377
2009-04-22 16:48:01 +00:00
Jb Evain 96e26f0692 2009-04-22 Jb Evain <[email protected]>
* Mono.Tuner/CheckVisibility.cs: take InternalsVisibleTo into account.


svn path=/trunk/mcs/; revision=132376
2009-04-22 16:45:12 +00:00
Jb Evain 458fcba073 2009-04-22 Jb Evain <[email protected]>
* Mono.Tuner/CheckVisibility.cs: take FamAndAssem into account.


svn path=/trunk/mcs/; revision=132371
2009-04-22 15:51:27 +00:00
Jb Evain 6972ece2d8 2009-04-22 Jb Evain <[email protected]>
* AdjustVisibility.cs: we're now turning non exposed fields and
	methods (API wise) that are `protected` into `protected and internal`.

svn path=/trunk/mcs/; revision=132370
2009-04-22 15:41:53 +00:00
Marek Habersack 8b9834bc9c 2009-04-22 Marek Habersack <[email protected]>
* TemplateParser.cs: create the imports ArrayList before
	attempting to use it. Fixes bug #497174

svn path=/trunk/mcs/; revision=132366
2009-04-22 14:27:34 +00:00
Zoltan Varga da6a440479 2009-04-22 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Force init_locals to be TRUE
	to prevent asserts in various passes. Fixes #497220.

svn path=/trunk/mono/; revision=132364
2009-04-22 13:04:52 +00:00
Marek Safar c5d9185103 Updated
svn path=/trunk/mcs/; revision=132355
2009-04-22 09:38:36 +00:00
Atsushi Eno fb729447e3 2009-04-22 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : quick fix for bug #496205. Reset xsi:type
	  and endelement.

	* XmlSchemaValidatorTests.cs : added test for bug #496192 and #496205.

	* 496192.xml, 496192.xsd : new test files.


svn path=/trunk/mcs/; revision=132351
2009-04-22 08:08:52 +00:00
Atsushi Eno 8a93fd5b62 bug # correction.
svn path=/trunk/mcs/; revision=132348
2009-04-22 05:44:56 +00:00
Atsushi Eno 0e439d038d 2009-04-22 Atsushi Enomoto <[email protected]>
* XmlQualifiedName.cs : added Parse() overload that is used for
	  xsd validation.

	* XmlSchemaValidator.cs, BuiltInDatatype.cs, XmlAtomicValue.cs:
	  use xsd-supported version of XmlQualifiedName.Parse().
	  Fixed bug #496205.


svn path=/trunk/mcs/; revision=132347
2009-04-22 05:43:28 +00:00
Atsushi Eno 6ffb2498cf 2009-04-22 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : when the node to be inserted has owner
	  element _but_ is identical to that of this collection, do not
	  reject it to raise an error. Fixed bug #496022.

	* XmlAttributeCollectionTests.cs : added test for bug #496022.


svn path=/trunk/mcs/; revision=132344
2009-04-22 04:46:09 +00:00
Gonzalo Paniagua Javier b2c1e349f2 2009-04-21 Gonzalo Paniagua Javier <[email protected]>
* HttpSoapWebServiceHandler.cs: provide the full stack trace instead
	of just the Message to aid in debugging web service problems.
	Bug #496758 fixed.


svn path=/trunk/mcs/; revision=132335
2009-04-21 22:41:32 +00:00
Andrés G. Aragoneses a6b6e50203 MD misplaced the changelog entry..
svn path=/trunk/mcs/; revision=132326
2009-04-21 21:33:10 +00:00
Andrés G. Aragoneses 1383d66d0d * linker/Mono.Linker/Driver.cs: Postprocess custom steps in order to
make them able to find steps determined by the resolve step. Fixes
  #493702.

svn path=/trunk/mcs/; revision=132325
2009-04-21 21:30:32 +00:00
Marek Habersack 5a6359d9f0 2009-04-21 Marek Habersack <[email protected]>
* Makefile: fixed resource ID generation.

svn path=/trunk/mcs/; revision=132323
2009-04-21 21:16:24 +00:00
Rodrigo Kumpera 00e11d494c 2009-04-21 Rodrigo Kumpera <[email protected]>
* verify.c (mono_delegate_type_equal): Compare valuetypes using
	mono_class_from_mono_type to avoid bad interactions with the dual representation
	of the generic type definition.

svn path=/trunk/mono/; revision=132318
2009-04-21 20:36:23 +00:00
Rodrigo Kumpera 9d38ffdec9 2009-04-21 Rodrigo Kumpera <[email protected]>
* verify.c (do_invoke_method): Use mono_class_from_mono_type to
	get the MonoClass for the call context type as it might be a generic
	instance.

	Fixes #491483.

svn path=/trunk/mono/; revision=132317
2009-04-21 20:35:55 +00:00
Rodrigo Kumpera e6d98ba261 2009-04-20 Rodrigo Kumpera <[email protected]>
* verify.c (do_newobj): Improve error message.

svn path=/trunk/mono/; revision=132316
2009-04-21 20:35:27 +00:00
Marek Habersack a277d5477f 2009-04-21 Marek Habersack <[email protected]>
* PageCompiler.cs: implemented new way of setting output cache
	parameters in the 2.0 profile. The generated code is now the same
	as on .NET and uses the OutputCacheParameters class to pass
	settings to InitOutputCache.

2009-04-21  Marek Habersack  <[email protected]>

	* Page.cs: added support for OutputCacheParameters.NoStore to
	InitOutputCache.

	* TemplateParser.cs:
	Added support for the SqlDependency, NoStore and CacheProfile
	attributes of the OutputCache directive. Fixes bug #496951

svn path=/trunk/mcs/; revision=132312
2009-04-21 19:56:57 +00:00
Mark Probst d011576caf The execution context is now ThreadStatic in the Thread class.
2009-04-21  Mark Probst  <[email protected]>

        * object-internals.h: The Thread object has no execution_context
        member anymore.

        * threads.c, threadpool.c, threads-types.h: Accessor functions for
        the execution context.

        * appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=132309
2009-04-21 18:41:19 +00:00
Mark Probst 322f82badc 2009-04-21 Mark Probst <[email protected]>
* Thread.cs: Make the execution context field thread-static to
        avoid it being shared between app domains.

2009-04-21  Mark Probst  <[email protected]>

        * Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=132308
2009-04-21 18:39:48 +00:00
Carlos Alberto Cortez bacaea635e 2009-04-21 Carlos Alberto Cortez <[email protected]>
* Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
	shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
	event is the same as the owner of the menu item. Also set properly 
	SourceControl for ContextMenuStrip, as well as add an internal field to 
	contain the control that owns the ContextMenuStrip (we need to know this 
	even before the public property is assigned).
	Fixes bits of #393775.


svn path=/trunk/mcs/; revision=132303
2009-04-21 18:05:45 +00:00
Marek Habersack 1c50013daa 2009-04-21 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: retrieve CompilationSection from the
	appropriate web.config file.

	* BaseParser.cs: moved the internal property VirtualPath from
	TemplateParser to here and added an internal method
	GetConfigSection to retrieve sections from the correct web.config
	file on 2.0 applications. Fixes bug #494245

	* PageParser.cs: use the new GetConfigSection method to retrieve
	ClientTargetSection.

	* TemplateParser.cs: moved the VirtualPath property to
	BaseParser.
	PagesConfig now uses the new GetConfigSection method. Fixes bug
	#494245

svn path=/trunk/mcs/; revision=132300
2009-04-21 17:54:02 +00:00
Zoltan Varga d5fe5d6be6 2009-04-21 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_generic_class_init_trampoline): Remove
	a racy assert.

svn path=/trunk/mono/; revision=132299
2009-04-21 17:51:43 +00:00
Gonzalo Paniagua Javier 35c3b48ade 2009-04-21 Gonzalo Paniagua Javier <[email protected]>
* DnsTest.cs: new IP for go-mono and fix AsyncResolve test.


svn path=/trunk/mcs/; revision=132294
2009-04-21 17:01:42 +00:00
Sebastien Pouliot fff39c9fea remove more code duplication for 2.1 and fix the build
svn path=/trunk/mcs/; revision=132291
2009-04-21 16:44:06 +00:00
Sebastien Pouliot 122099a611 remove more code duplication for 2.1 and fix the build
svn path=/trunk/mcs/; revision=132290
2009-04-21 16:43:28 +00:00
Sebastien Pouliot a9d09a6678 In System.Xml.Schema:
In .:
2009-04-21  Sebastien Pouliot  <[email protected]> 

	* System.Xml.Schema/*: Remove (not needed for 2.1 anymore)
	* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove 
	more code duplication for 2.1 and fix the build


svn path=/trunk/mcs/; revision=132289
2009-04-21 16:43:26 +00:00
Sebastien Pouliot d37ae0362a 2009-04-21 Sebastien Pouliot <[email protected]>
* XmlSchema_2_1.cs: Add internal fields needed by S.R.S.dll


svn path=/trunk/mcs/; revision=132287
2009-04-21 16:39:44 +00:00
Sebastien Pouliot 25bee8c85b net_2_1_raw_System.ServiceModel.dll.sources: Remove MonoTODOAttribute since we can get it from mscorlib.dll
svn path=/trunk/mcs/; revision=132284
2009-04-21 16:20:57 +00:00
Sebastien Pouliot 27aa9ff79a 2009-04-21 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove
	MonoTODOAttribute since we get it from mscorlib (fix build too).
	Remove System.Xml.Schema/XmlSchema.cs from build since we can
	get the fields directly from System.Xml.dll


svn path=/trunk/mcs/; revision=132283
2009-04-21 16:19:26 +00:00
Sebastien Pouliot 66ee57808b net_2_1_raw_System.Xml.dll.sources: Remove MonoTODOAttribute.cs since we can get it from mscorlib.dll
svn path=/trunk/mcs/; revision=132282
2009-04-21 16:18:23 +00:00
Sebastien Pouliot 9067c22b8a 2009-04-21 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Open internals to System.Runtime.Serialization
	since it needs some stuff from XmlSchema


svn path=/trunk/mcs/; revision=132281
2009-04-21 16:16:38 +00:00
Sebastien Pouliot 76efdedf4a 2009-04-21 Sebastien Pouliot <[email protected]>
* ClientBase.cs (NET_2_1): Change cctor not to require being 
	[SecuritySafeCritical] and drop IDisposable.


svn path=/trunk/mcs/; revision=132269
2009-04-21 15:30:16 +00:00
Raja R Harinath 5eea1c9dcc * cs-parser.jay (GetTokenName): Mark GENERATE_COMPLETION and COMPLETE_COMPLETION as internal.
svn path=/trunk/mcs/; revision=132268
2009-04-21 15:15:23 +00:00
Zoltan Varga 8db495518c 2009-04-21 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Emit the unwind info into a separate
	table to avoid duplicates.

	* mini.h (MONO_AOT_FILE_VERSION): Bump this.

svn path=/trunk/mono/; revision=132267
2009-04-21 15:04:44 +00:00
Zoltan Varga c72b0c25a3 2009-04-21 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Avoid writing symbols if the nodebug
	option is used.

svn path=/trunk/mono/; revision=132266
2009-04-21 15:04:35 +00:00
Sebastien Pouliot dad9d54180 2009-04-21 Sebastien Pouliot <[email protected]>
* UriParserTest.cs: Ensure "tcp" is not a registred scheme
	* UriTest2.cs: Make sure GetComponents and IsBaseOf do not throw
	NRE is no UriParser was registred for the URI scheme


svn path=/trunk/mcs/; revision=132265
2009-04-21 14:50:46 +00:00
Sebastien Pouliot 5b01ed5820 2009-04-21 Sebastien Pouliot <[email protected]>
* DefaultUriParser.cs: Add special case for schema
	* Uri.cs: Make sure we can use a default parser if none was
	registred for the URI schema.
	* UriParser.cs: Handle "*" as a special schema for "anything"
	[Fix bug #496783]


svn path=/trunk/mcs/; revision=132264
2009-04-21 14:48:53 +00:00
Sebastien Pouliot b44905b775 2009-04-21 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: allow System.ServiceModel access to mscorlib
	internals (e.g. non-generic System.Collections.*)


svn path=/trunk/mcs/; revision=132263
2009-04-21 14:42:11 +00:00
Sebastien Pouliot 6d40ddb441 2009-04-21 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Remove extra attributes for 2.1. Open up the 
	internals to System.ServiceModel, e.g. to call the ctor of
	System.Xml.XmlDictionaryReaderQuotas


svn path=/trunk/mcs/; revision=132261
2009-04-21 14:09:37 +00:00
Jb Evain f86e281358 2009-04-21 Jb Evain <[email protected]>
* Mono.Cecil.Cil/SymbolStoreHelper.cs: look for the assembly in the GAC
	as well if it's not local.


svn path=/trunk/mcs/; revision=132257
2009-04-21 13:47:10 +00:00
Atsushi Eno 3d1ecb35bf 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerNode.cs : remove extra field.

	* PeerCustomResolverSettings.cs : added Clone().

	* PeerCustomResolverBindingElement.cs :
	  implement full custom resolver.


svn path=/trunk/mcs/; revision=132255
2009-04-21 12:59:56 +00:00
Atsushi Eno 1218218614 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs, PeerChannelListener.cs,
	  PeerOutputChannel.cs, PeerCustomResolverBindingElement.cs,
	  PeerChannelFactory.cs : ongoing p2p channel implementation.


svn path=/trunk/mcs/; revision=132250
2009-04-21 12:05:07 +00:00
Atsushi Eno 3e5afeb94d 2009-04-21 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : setup IChannel instance at construction
	  time, so that it can GetProperty<T>() immediately after
	  ChannelFactory.CreateChannel().
	  Implement some properties.


svn path=/trunk/mcs/; revision=132249
2009-04-21 12:03:36 +00:00
Atsushi Eno 48a7c35e96 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerNode.cs : update API to the latest .NET amd implement some.


svn path=/trunk/mcs/; revision=132248
2009-04-21 12:01:26 +00:00
Sebastien Pouliot e3dfffb6ce 2009-04-21 Sebastien Pouliot <[email protected]>
* System_test.dll.sources: Add EndPointTest.cs


svn path=/trunk/mcs/; revision=132247
2009-04-21 12:00:01 +00:00
Sebastien Pouliot 3aef2f5503 2009-04-21 Sebastien Pouliot <[email protected]>
* EndPointTest.cs: New


svn path=/trunk/mcs/; revision=132246
2009-04-21 11:59:15 +00:00
Atsushi Eno fc63af5a71 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerTransportBindingElementTest.cs : test PeerNode property too.


svn path=/trunk/mcs/; revision=132245
2009-04-21 11:59:06 +00:00
Sebastien Pouliot 5b3ae86a8f 2009-04-21 Sebastien Pouliot <[email protected]>
* EndPoint.cs: Throw NotImplementedException instead of 
	NotSupportedException
	* IPEndPoint.cs: Fix some validations.


svn path=/trunk/mcs/; revision=132244
2009-04-21 11:58:26 +00:00
Atsushi Eno 68dcbd34df 2009-04-21 Atsushi Enomoto <[email protected]>
* NetPeerTcpBindingTest.cs : fix build.


svn path=/trunk/mcs/; revision=132243
2009-04-21 11:58:12 +00:00
Sebastien Pouliot fdd8e601dc 2009-04-21 Sebastien Pouliot <[email protected]>
* UriTest2.cs: More constructor test cases


svn path=/trunk/mcs/; revision=132242
2009-04-21 11:56:09 +00:00
Sebastien Pouliot 50b3e831bd 2009-04-21 Sebastien Pouliot <[email protected]>
* Uri.cs: Fix some issues found with Moonlight (see new unit
	tests)


svn path=/trunk/mcs/; revision=132239
2009-04-21 11:54:56 +00:00
Atsushi Eno d0031fea42 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerResolver.cs, PeerResolverImpl.cs :
	  update API to the latest .NET.

	* PnrpPeerResolverBindingElement.cs : sync with PeerResolver changes.


svn path=/trunk/mcs/; revision=132237
2009-04-21 11:37:19 +00:00
Atsushi Eno 9191ff0633 2009-04-21 Atsushi Enomoto <[email protected]>
* BinaryMessageEncodingBindingElement.cs, ChannelBase.cs,
	  ChannelFactoryBase.cs, WindowsStreamSecurityBindingElement.cs :
	  implement GetProperty<T>(). Return documented objects or null.


svn path=/trunk/mcs/; revision=132235
2009-04-21 11:29:22 +00:00
Miguel de Icaza bd46200522 2009-04-16 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Add System.IO.IsolatedStorage/
	MoonIsolatedStorage.cs to the build

2009-02-07  Zoltan Varga  <[email protected]>

	* Makefile: Add Test/resources/Fergie.GED to EXTRA_DIST.

2009-01-30  Atsushi Enomoto  <[email protected]>

svn path=/trunk/mcs/; revision=132223
2009-04-21 05:03:04 +00:00
Gonzalo Paniagua Javier b252d1787c 2009-04-21 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: End* methods can only be called once per IAsyncResult.
	Bug #466031 fixed.


svn path=/trunk/mcs/; revision=132221
2009-04-21 04:48:42 +00:00
Gonzalo Paniagua Javier 9cef28ffa2 2009-04-21 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs:
	* HttpWebRequest.cs: provide more information on why the connection
	could not be established.


svn path=/trunk/mcs/; revision=132220
2009-04-21 04:24:42 +00:00
Zoltan Varga d05914a121 2009-04-20 Zoltan Varga <[email protected]>
* virtual-sync.cs: Remove this, there is already a test for this in
	synchronized.cs.

svn path=/trunk/mono/; revision=132213
2009-04-20 22:40:11 +00:00
Rodrigo Kumpera 5687928761 2009-04-20 Rodrigo Kumpera <[email protected]>
* mini.c (mini_method_verify): Fail fulltrust code if the exception
	is for method or field access.

svn path=/trunk/mono/; revision=132212
2009-04-20 22:24:44 +00:00
Rodrigo Kumpera 5f5ed99240 2009-04-20 Rodrigo Kumpera <[email protected]>
* valid_nested_eh_in_try_of_try_filter_block.il:  Regression
	test for #495656.

svn path=/trunk/mono/; revision=132208
2009-04-20 20:25:55 +00:00
Rodrigo Kumpera 5963be6a96 2009-04-20 Rodrigo Kumpera <[email protected]>
* verify.c (verify_clause_relationship): Only mask as an error if the exception clause
	is nested in the filter block.

	* verify.c (verify_clause_relationship): The disjoint check must verify if the exception
	block is not fully nested.

	Fixes #495656.

svn path=/trunk/mono/; revision=132207
2009-04-20 20:25:39 +00:00
Miguel de Icaza 4f3c6d1162 Fix man page
svn path=/trunk/mono/; revision=132205
2009-04-20 19:35:58 +00:00
Carlos Alberto Cortez 1b3759cdc8 2009-04-20 Carlos Alberto Cortez <[email protected]>
* StatusStrip.cs: Use the same icon as .net when the mouse is over the
	size grip.
	Fixes #492828.


svn path=/trunk/mcs/; revision=132195
2009-04-20 18:20:47 +00:00
Carlos Alberto Cortez 726f56a423 2009-04-20 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: When calculating the height of the ComboListBox,
	specially for the 2.0 profile, use MaxDropDownItems if the
	DropDownHeight property hasn't been set, and use the later if it has
	been set. This way we support both properties.
	Fixes #493308.


svn path=/trunk/mcs/; revision=132188
2009-04-20 16:24:32 +00:00
Rodrigo Kumpera 9433af5ee3 2009-04-20 Rodrigo Kumpera <[email protected]>
* valid_initobj_this.cs: Regression test for #496175.

svn path=/trunk/mono/; revision=132187
2009-04-20 16:04:59 +00:00
Rodrigo Kumpera f335429f0d 2009-04-20 Rodrigo Kumpera <[email protected]>
* verify.c (verify_type_compatibility_full): Compare MonoClass and
	not MonoType to check for equality of valuetypes as the generic type
	definition allows for two different encodings: the generic type definition
	class or a generic instance over the GTD arguments.

	Fixes #496175.

svn path=/trunk/mono/; revision=132185
2009-04-20 16:02:38 +00:00
Rodrigo Kumpera 6db1369ced 2009-04-20 Rodrigo Kumpera <[email protected]>
* verify.c (dump_stack_value): Fix compilation with extra debug turned on.

	* verify.c (do_initobj): Improve error message.

svn path=/trunk/mono/; revision=132184
2009-04-20 16:01:56 +00:00
Zoltan Varga fc22ebaa26 2009-04-20 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (mono_llvm_dump_value): New helper function to print
	a Value to stdout.

	* mini-llvm.c (mono_llvm_emit_method): Use it.

svn path=/trunk/mono/; revision=132183
2009-04-20 15:51:09 +00:00
Rodrigo Kumpera e505d3e6d6 2009-04-20 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Enable pe verification as the issue with #496453
	is that the authenticode data directory have a different unspecified
	format. Ignore it for now.

	* pedump.c: Run the metadata verifier together with the IL verifier.

	Fixes ##496453.

svn path=/trunk/mono/; revision=132170
2009-04-20 14:33:59 +00:00
Zoltan Varga 1f557ffadf 2009-04-20 Zoltan Varga <[email protected]>
* mini-llvm.c (type_to_llvm_type): Fix the mapping of enums.
	(mono_llvm_emit_method): Add support for CAS. Fix handling of CSET opcodes
	on volatile values.

	* mini-trampolines.c (mono_llvm_vcall_trampoline): Add support for
	synchronized methods.

	* mini.c (mini_method_compile): Disable LLVM for dynamic methods.

svn path=/trunk/mono/; revision=132169
2009-04-20 13:59:16 +00:00
Rolf Bjarne Kvinge 42a3e10016 2009-04-20 Rolf Bjarne Kvinge <[email protected]>
* Thread.cs: For 2.1 ensure exceptions in threads are handled using the
	UnhandledException event mechanism in System.Windows.Application instead
	of crashing the application.


svn path=/trunk/mcs/; revision=132166
2009-04-20 12:57:02 +00:00
Rolf Bjarne Kvinge 70017fa7c1 2009-04-20 Rolf Bjarne Kvinge <[email protected]>
* metadata-verify.c: Temporarily disable pe verification due to #496453.


svn path=/trunk/mono/; revision=132159
2009-04-20 12:48:24 +00:00
Atsushi Eno 1f9a2160f1 ongoing PeerTransportBindingElement implementation.
svn path=/trunk/mcs/; revision=132146
2009-04-20 12:16:39 +00:00
Atsushi Eno cebf19a73a 2009-04-20 Atsushi Enomoto <[email protected]>
* ScriptCompilerInfo.cs, MSXslScriptManager.cs :
	  Cache compiled msxsl:script.
	  Close bug #495918. Patch by Tor Lillqvist.


svn path=/trunk/mcs/; revision=132118
2009-04-20 08:37:45 +00:00
Miguel de Icaza 11fbf68130 2009-04-20 Miguel de Icaza <[email protected]>
* Enum.cs (MonoEnumInfo): Compare bytes, shorts, ints and longs as
	unsigned values as specified and to fix 371559, from the bug:

		So the actual difference is that MSFT's Enum.GetValues
		orders the members as unsigned even when the underlying
		type is int.  See the following.  Perhaps that's what's
		being implied by "binary values" in that Enum.GetValues
		MSDN quote above.


svn path=/trunk/mcs/; revision=132113
2009-04-20 06:19:04 +00:00
Ankit Jain 9575d2ff2a In ilasm/codegen:
Fix bug #494221
	* MethodDef.cs (BeginLocalsScope): New.
	(EndLocalsScope): New.
	(AddLocals):
	(GetNamedLocal): Support scoping for .locals

In ilasm/parser:
	Fix bug #494221.
	* ILParser.jay (scope_block_begin): Mark begin .locals scope.
	(scope_block): Mark end .locals scope.

svn path=/trunk/mcs/; revision=132111
2009-04-20 04:07:22 +00:00
Miguel de Icaza 401337e297 2009-04-19 Miguel de Icaza <[email protected]>
* Process.cs: Do not crash if GetProcesses_internal returns null
	This happens on operating systems where we have not implemented

svn path=/trunk/mcs/; revision=132110
2009-04-20 03:57:44 +00:00
Zoltan Varga f549ba4f01 2009-04-20 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Enable ABCREM when running with LLVM.

	* mini-llvm.c (mono_llvm_emit_method): Add support for OP_LOADI4_MEM/
	OP_LOADI8_MEM.

svn path=/trunk/mono/; revision=132106
2009-04-20 02:05:16 +00:00
Zoltan Varga f8c4a9e973 2009-04-20 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add a MONO_LLVM env variable
	allowing some options to be set dynamically.

svn path=/trunk/mono/; revision=132105
2009-04-20 01:35:50 +00:00
Zoltan Varga dd91f74f60 2009-04-19 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Handle compares followed by an
	unconditional branch.

	* mini.h (MonoTrampolineType): Add new trampoline type
	'MONO_TRAMPOLINE_LLVM_VCALL' which handles virtual calls made from LLVM
	compiled code.

	* mini-trampolines.c (mono_llvm_vcall_trampoline): New C trampoline
	function.

	* mini-trampolines.c (mono_create_llvm_vcall_trampoline): New trampoline
	creation function.

	* mini.c (mini_init): Avoid using the common vtable trampoline when LLVM
	is enabled. Instead, use the llvm vcall trampoline.

svn path=/trunk/mono/; revision=132104
2009-04-19 21:36:17 +00:00
Jonathan Pryor ee29be6a86 * Mono.Documentation/webdoc.cs: Change -o semantics to be a directory
prefix, e.g. `mdoc export-html-webdoc -o cache.new foo.tree` will
	  output files into `cache.new/foo` instead of directly into
	  `cache.new`.  This makes it easier to specify more than one
	  .tree/.zip file on the command line.

svn path=/trunk/mcs/; revision=132103
2009-04-19 19:00:10 +00:00
Jonathan Pryor 1dc7fdc1ba * Mono.Options/Options.cs: GetLineEnd() shouldn't skip the start
character, as it may contain '\n' (thus preventing the following text 
	  from being properly indented).
	* Test/Mono.Options/OptionSetTest.cs: Add test to check \n\n 
	  Option.Description handling.

svn path=/trunk/mcs/; revision=132102
2009-04-19 18:35:56 +00:00
Rodrigo Kumpera a942caf979 2009-04-17 Rodrigo Kumpera <[email protected]>
* class.c (can_access_type): Check visibility against
	the element type for pointers and arrays.

	Fixes #496150.

svn path=/trunk/mono/; revision=132101
2009-04-19 18:27:50 +00:00
Rodrigo Kumpera e1cf18869f 2009-04-17 Rodrigo Kumpera <[email protected]>
* class.c (can_access_type): Check visibility against
	the element type for pointers and arrays.

	Fixes #496150.

svn path=/trunk/mono/; revision=132100
2009-04-19 18:27:37 +00:00
Rodrigo Kumpera 09e65367d6 2009-04-17 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Fix cli and table verification to use information
	from the MonoImage. A lot of duplicated code got killed.

svn path=/trunk/mono/; revision=132099
2009-04-19 18:26:16 +00:00
Rodrigo Kumpera f656f0594c 2009-04-17 Rodrigo Kumpera <[email protected]>
This patch starts to integrate the metadata verifier with the runtime code.

	This patch causes major regression in functionality for the metadata verifier
	as cli and table verification are disabled since they require to be ported to
	use MonoImage information.

	* image.c (do_mono_image_load): Split the code in this function
	into mono_image_load_pe_data and mono_image_load_cli_data.
	Add	care_about_pecoff parameter to not load pecoff data.
	Call into the metadata verifier for pecoff and cli verification.

	* image.c (mono_image_open_raw): New function that doesn't perform
	any parsing of the image contents.

	The reason for the 3 new functions is to give pedump better control
	into the interaction with the verifier.

	* metadata-internals.h: Add new functions from image.c as part of the
	internal mono API.

	* metadata-verify.c: Split mono_image_verify into mono_verifier_verify_pe_data,
	mono_verifier_verify_cli_data and mono_verifier_verify_table_data. Prepare
	to make those functions work together with the runtime.

	* verify.c: Add mono_verifier_is_enabled_for_image function that returns
	true if the image needs to be verified.

	* verify-internals.h: Export new functions from metadata-verify.c and verify.c.

	* pedump.c: Use new metadata verifier API.

svn path=/trunk/mono/; revision=132098
2009-04-19 18:25:23 +00:00
Zoltan Varga 617abf83c9 2009-04-19 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_get_vcall_slot_addr): New helper function.

	* mini-trampolines.c tramp-amd64.c tramp-x86.c: Use it.

	* mini-<ARCH>.c: Get rid of the identical mono_arch_get_vcall_slot_addr ()
	functions.

svn path=/trunk/mono/; revision=132097
2009-04-19 18:21:34 +00:00
Zoltan Varga 8db5351b4f 2009-04-19 Zoltan Varga <[email protected]>
* mini-<ARCH>.h mini-trampolines.c mini.c: Get rid of
	MONO_ARCH_COMMON_VTABLE_TRAMPOLINE, it is supported by all archs.

svn path=/trunk/mono/; revision=132096
2009-04-19 18:21:25 +00:00
Zoltan Varga e0ab07d55d Revert "In metadata/"
This reverts commit e2a22d86069b7fa0e63c426303e2822ea201714c.

svn path=/trunk/mono/; revision=132095
2009-04-19 17:48:23 +00:00
Zoltan Varga 087cb54b86 2009-04-19 Zoltan Varga <[email protected]>
* mini-ia64.c (mono_arch_lowering_pass): Null out the sregs of the
	OP_IA64_CSET opcode.

svn path=/trunk/mono/; revision=132093
2009-04-19 12:05:28 +00:00
Zoltan Varga ebcc023ea7 2009-04-19 Zoltan Varga <[email protected]>
* mini.c: Fix a warning.

svn path=/trunk/mono/; revision=132092
2009-04-19 10:55:41 +00:00
Zoltan Varga 2ac7e7c2c6 Add more debug code to help diagnose a buildbot failure.
svn path=/trunk/mono/; revision=132091
2009-04-19 10:40:40 +00:00
Zoltan Varga f63bcce82f Add more debug code to diagnose the buildbot failure.
svn path=/trunk/mono/; revision=132082
2009-04-18 23:35:42 +00:00
Zoltan Varga 3acc0d0035 In metadata/
2009-04-19  Zoltan Varga  <[email protected]>

	* object.c (mono_install_vtable_trampoline): Make this receive a
	trampoline creation function instead of trampoline, allowing the JIT
	to use a different trampoline for each vtable.

In mini/

2009-04-19  Zoltan Varga  <[email protected]>

	* mini.c (mini_create_vtable_trampoline): Make this receive a
	vtable argument, not yet used.

svn path=/trunk/mono/; revision=132081
2009-04-18 22:21:55 +00:00
Zoltan Varga d7aac9eaa4 Add some more debug code.
svn path=/trunk/mono/; revision=132080
2009-04-18 22:17:12 +00:00
Zoltan Varga 2236fb13f0 2009-04-19 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Convert arguments of SWITCH and
	THROW to the appropriate llvm type.

svn path=/trunk/mono/; revision=132079
2009-04-18 22:13:07 +00:00
Zoltan Varga 290ea77a90 Add some debug code to help diagnose a buildbot failure.
svn path=/trunk/mono/; revision=132078
2009-04-18 20:59:35 +00:00
Mark Probst 1781fabf10 Don't reset thread abort exception state when raising an exception.
2009-04-18  Mark Probst  <[email protected]>

	* object.c (mono_raise_exception): Don't reset the thread abort
	exception state here.

svn path=/trunk/mono/; revision=132076
2009-04-18 14:25:21 +00:00
Jonathan Pryor ee4bf1106b * Mono.Options/Options.cs: Viktor Lundgren reported that
Option.Description text of `"aaa." . "a" x 64` (that is, "aaa." 
	  followed by 64 "a"s) would cause GetLines() to go into an infinite 
	  loop and (eventually) die from an OutOfMemoryException.  Oops.  
	  Fix this, simplify the logic, and turn GetLines() into an 
	  IEnumerable<string>.
	* Test/Mono.Options/OptionSetTest.cs: Add additional line breaking 
	  tests.  Remove [Category("NotWorking")], as they work for me.

svn path=/trunk/mcs/; revision=132074
2009-04-18 03:31:21 +00:00
Zoltan Varga f24bae90e4 Add some debug code to help diagnose a buildbot failure.
svn path=/trunk/mono/; revision=132073
2009-04-18 02:10:34 +00:00
Zoltan Varga e7f8eba6ac 2009-04-18 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Add statistics for methods JITted
	with/without LLVM.

svn path=/trunk/mono/; revision=132072
2009-04-18 01:22:41 +00:00
Mark Probst 7466b0e42e 2009-04-18 Mark Probst <[email protected]>
* NumberFormatter.cs: Keep the current thread's number formatter
        as a ThreadStatic member.

2009-04-18  Mark Probst  <[email protected]>

        * Thread.cs: Don't keep the current number formatter here
        because it's shared between app domains.

svn path=/trunk/mcs/; revision=132067
2009-04-17 23:32:33 +00:00
Mark Probst 0316477932 2009-04-18 Mark Probst <[email protected]>
* RemotingServices.cs (GetDomainProxy): Make a copy of the array
        created in the other app domain so as not to pollute our own.

svn path=/trunk/mcs/; revision=132066
2009-04-17 23:30:57 +00:00
Miguel de Icaza 01e9954098 2009-04-17 Miguel de Icaza <[email protected]>
* complete.cs: Include namespace resolution in simple names as
	well as global types and types in the using scope in the
	resolution. 

	* namespace.cs: Supporting infrastrcture to provide completions
	based on the current using scope. 



svn path=/trunk/mcs/; revision=132065
2009-04-17 23:20:07 +00:00
Mark Probst cb84eabfc8 Proper app domain separation regarding thread abort exception state.
2009-04-18  Mark Probst  <[email protected]>

        * icall-def.h: New icall for getting the thread abort exception
        state for a thread.

        * object.c, thread.c, object-internals.h: A thread's abort
        exception state is now a GC handle.  To get the object it stands
        for, we must move it into the current app domain, if it's
        different than the one where it originated from.

        * appdomain.c: Bump corlib version.

        * domain.c, domain-internals.h: New function for setting the
        domain and migrate the thread abort exception or not.

2009-04-18  Mark Probst  <[email protected]>

        * appdomain-thread-abort.cs: New tests for thread aborts across
        app domains.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=132064
2009-04-17 23:01:23 +00:00
Mark Probst 88270f8ee7 Proper app domain separation regarding thread abort exception state.
2009-04-18  Mark Probst  <[email protected]>

        * Thread.cs: Make the abort exception state a GC handle, to
        properly separate AppDomains.  Add internal method for getting the
        state object.

        * ThreadAbortException.cs: Get the abort exception state via the
        method in Thread.

2009-04-18  Mark Probst  <[email protected]>

        * Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=132063
2009-04-17 23:01:02 +00:00
Zoltan Varga c8a69dab9a 2009-04-17 Zoltan Varga <[email protected]>
* method-to-ir.c: Fix the computation of ins_sreg_counts for ia64
	OP_IA64_CMP_<cond>_IMM opcodes.

svn path=/trunk/mono/; revision=132058
2009-04-17 21:55:23 +00:00
Zoltan Varga f2495a8ab7 2009-04-17 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_get_static_rgctx_trampoline): Fix AOT
	support.

svn path=/trunk/mono/; revision=132057
2009-04-17 21:55:10 +00:00
Miguel de Icaza 632de6a042 Initial support to provide code completion facilities to consumers
of the evaluator API.
	
	* cs-tokenizer.cs (CompleteOnEOF): this new property is used to
	support the completion engine.   When we reach the end of the
	input stream instead of returning EOF, when this flag is true the
	tokenizer instead produces:

		One GENERATE_COMPLETION token: this token then must be
		handled in the grammar at every point where the user
		would likely request a completion.

		As many COMPLETE_COMPLETION tokens as necessary.   These
		tokens are generated to assist the parser in unwinding and
		producing a valid parse tree.    

	The parser rules do not have to be perfect, the parser needs to be
	augmented with judicious use of GENERATE_COMPLETION tokens to
	improve the areas where we can provide completion and the parser
	needs to add support for COMPLETE_COMPLETION tokens in productions
	to make them work.

	It is common to not have enough support for COMPLETE_COMPLETION
	under certain rules and that even if we generated the
	GENERATE_COMPLETION token that the resulting tree will be invalid
	due to the missing rules that support COMPLETE_COMPLETION.

	The final EOF token is produced by having the parser notify the
	tokenizer when it reaches the root production that the next token
	should be EOF.

	* support.cs (CompletionResult): New Exception.   This exception
	is thrown to return the completion results when one of the special
	completion expressions is reached.

	This exception is thrown by the completing ExpressionStatements
	classes that live in complete.cs

	* complete.cs (CompletingExpression): a new base class for
	completing expressions.   This derives from the
	ExpressionStatement class and not from Expression as it allows
	completion to happen not only where expressions are expected in
	the grammar, but also where statements are expected.

	(CompletionSimpleName): A new class used to provide completions
	for SimpleNames.     This currently only resolves to local
	variables from the evaluator context (GetVars call).

	(CompletionMemberAccess): Implements support for completing member
	access patterns. 

	* cs-parser.jay: Add support for completion in a few places. 

	* eval.cs (GetCompletions): New public API for the evaluator that
	returns a list of possible completions given the input.   The
	return value is an array of completions 

	* anonymous.cs (Compatible): If the exception thrown from the
	resolved expression is a CompletionResult exception let that one
	through instead of printing a diagnostic error in the try/catch. 

svn path=/trunk/mcs/; revision=132052
2009-04-17 21:11:57 +00:00
Miguel de Icaza 75459d5b4d 2009-04-17 Miguel de Icaza <[email protected]>
* Makefile: Make this build using csharplib instead of referencing
	the gmcs.exe that was just built.


svn path=/trunk/mcs/; revision=132051
2009-04-17 21:11:12 +00:00
Zoltan Varga 806432053a 2009-04-17 Zoltan Varga <[email protected]>
* mini-llvm.c (emit_cond_system_exception): Implement throwing of
	corlib exceptions.

svn path=/trunk/mono/; revision=132050
2009-04-17 21:08:56 +00:00
Zoltan Varga b038583ce6 2009-04-17 Zoltan Varga <[email protected]>
* dwarfwriter.c (mono_dwarf_writer_emit_method): Handle --regression
	correctly.

	* mini-llvm.c (type_to_llvm_type): Avoid accessing t->data.klass for
	GENERICINST.

svn path=/trunk/mono/; revision=132045
2009-04-17 20:38:13 +00:00
Atsushi Eno 021f8cf328 2009-04-17 Atsushi Enomoto <[email protected]>
* mini-exceptions.c : add thread id to EXCEPTION trace message.


svn path=/trunk/mono/; revision=132034
2009-04-17 19:10:09 +00:00
Miguel de Icaza f574568932 2009-03-22 Miguel de Icaza <[email protected]>
Initial support to provide code completion facilities to consumers
	of the evaluator API.
	
	* cs-tokenizer.cs (CompleteOnEOF): this new property is used to
	support the completion engine.   When we reach the end of the
	input stream instead of returning EOF, when this flag is true the
	tokenizer instead produces:

		One GENERATE_COMPLETION token: this token then must be
		handled in the grammar at every point where the user
		would likely request a completion.

		As many COMPLETE_COMPLETION tokens as necessary.   These
		tokens are generated to assist the parser in unwinding and
		producing a valid parse tree.    

	The parser rules do not have to be perfect, the parser needs to be
	augmented with judicious use of GENERATE_COMPLETION tokens to
	improve the areas where we can provide completion and the parser
	needs to add support for COMPLETE_COMPLETION tokens in productions
	to make them work.

	It is common to not have enough support for COMPLETE_COMPLETION
	under certain rules and that even if we generated the
	GENERATE_COMPLETION token that the resulting tree will be invalid
	due to the missing rules that support COMPLETE_COMPLETION.

	The final EOF token is produced by having the parser notify the
	tokenizer when it reaches the root production that the next token
	should be EOF.

	* support.cs (CompletionResult): New Exception.   This exception
	is thrown to return the completion results when one of the special
	completion expressions is reached.

	This exception is thrown by the completing ExpressionStatements
	classes that live in complete.cs

	* complete.cs (CompletingExpression): a new base class for
	completing expressions.   This derives from the
	ExpressionStatement class and not from Expression as it allows
	completion to happen not only where expressions are expected in
	the grammar, but also where statements are expected.

	(CompletionSimpleName): A new class used to provide completions
	for SimpleNames.     This currently only resolves to local
	variables from the evaluator context (GetVars call).

	(CompletionMemberAccess): Implements support for completing member
	access patterns. 

	* cs-parser.jay: Add support for completion in a few places. 

	* eval.cs (GetCompletions): New public API for the evaluator that
	returns a list of possible completions given the input.   The
	return value is an array of completions 

	* anonymous.cs (Compatible): If the exception thrown from the
	resolved expression is a CompletionResult exception let that one
	through instead of printing a diagnostic error in the try/catch. 
	


svn path=/trunk/mcs/; revision=132033
2009-04-17 18:35:35 +00:00
Miguel de Icaza bcd1c1e644 Improve documentation
svn path=/trunk/mcs/; revision=132032
2009-04-17 18:24:49 +00:00
Geoff Norton 5d08d5f73f 2009-04-17 Geoff Norton <[email protected]>
* ChannelFactory.cs: Ensure we create and open a factory here,
        avoids a NRE regression in
        System.ServiceModel.ClientRuntimeChannel.SetupRequestChannel ()

svn path=/trunk/mcs/; revision=132023
2009-04-17 17:04:46 +00:00
Miguel de Icaza 1df9c1b824 Update man pages
svn path=/trunk/mono/; revision=132018
2009-04-17 15:50:36 +00:00
Miguel de Icaza c9ba025db8 2009-04-17 Miguel de Icaza <[email protected]>
* repl.cs: Support executing files that were specified in the
	command line. 

2009-04-17  Miguel de Icaza  <[email protected]>

	* eval.cs: Introduce an entry point that allows for initialization
	to return a list of the files passed on the command line.



svn path=/trunk/mcs/; revision=132017
2009-04-17 15:48:51 +00:00
Atsushi Eno bc42f808f3 2009-04-17 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs, ClientRuntimeChannel.cs : implemented
	  CreateFactory() and moved corresponding code from latter to
	  former. Made implementation closer to .NET behavior.


svn path=/trunk/mcs/; revision=132016
2009-04-17 15:08:58 +00:00
Sebastien Pouliot c7952a2e15 2009-04-17 Sebastien Pouliot <[email protected]>
* coreclr-security.cs: Add test case for the "special" case about
	a default ctor being SSC on a transparent type (e.g. WebClient)


svn path=/trunk/mono/; revision=132010
2009-04-17 13:57:54 +00:00
Zoltan Varga a8e21b6664 2009-04-17 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_get_unbox_trampoline): Implement static
	rgctx invoke trampolines for x86.

svn path=/trunk/mono/; revision=131989
2009-04-17 10:17:51 +00:00
Zoltan Varga af5b0d1281 2009-04-17 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_get_unbox_trampoline): Implement static
	rgctx invoke trampolines for x86.

svn path=/trunk/mono/; revision=131988
2009-04-17 10:17:36 +00:00
Zoltan Varga 8ccf0f424f 2009-04-17 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Add a few nops before
	indirect calls to simplify get_vcall_slot_addr (). Fixes #494567.
	(mono_arch_get_vcall_slot): Simplify this.

svn path=/trunk/mono/; revision=131987
2009-04-17 10:11:18 +00:00
Marek Habersack f84da3a92c 2009-04-17 Marek Habersack <[email protected]>
* CSharpCodeCompiler.cs: pass current application's domain
	PrivateBinPath to gmcs using its /lib parameter and put the same
	value in the MONO_PATH environment variable. Fixes bug #493874

svn path=/trunk/mcs/; revision=131983
2009-04-17 09:39:00 +00:00
Marek Habersack 3a9971ab23 2009-04-17 Marek Habersack <[email protected]>
* AspGenerator.cs: if thead/tbody are parsed as children of a
	server-side table control, ignore them. Fixes bug #481622

svn path=/trunk/mcs/; revision=131977
2009-04-17 07:41:09 +00:00
Rodrigo Kumpera 610b32b9b4 2009-04-16 Rodrigo Kumpera <[email protected]>
* assembly-with-complex-type.cs: Add stuff to
	fill constant, field rva and field marshal tables.

	* cli-tables-tests.md: Initial tests for the field table.

	* gen-md-tests.c: Add or-byte and or-ushort effects. Fix
	documentation.

svn path=/trunk/mono/; revision=131963
2009-04-17 02:23:13 +00:00
Rodrigo Kumpera fd8610df44 2009-04-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add initial verification of the
	field table.

svn path=/trunk/mono/; revision=131962
2009-04-17 02:23:00 +00:00
Rodrigo Kumpera 3ba80fbe4f 2009-04-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add a macro to conditionally enable
	dumping of verification information. Add  make_coded_token
	and search_sorted_table to enable search sorted tables
	by a given coded token.

svn path=/trunk/mono/; revision=131961
2009-04-17 02:22:39 +00:00
Rodrigo Kumpera 9909d386a3 2009-04-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add array mapping from table index
	to description offset. Add get_col_offset and get_col_size
	functions.

svn path=/trunk/mono/; revision=131960
2009-04-17 02:22:21 +00:00
Rodrigo Kumpera 741f0d0770 2009-04-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add remaining table descriptions offsets.
	Add remaining coded index descriptions.

svn path=/trunk/mono/; revision=131959
2009-04-17 02:21:56 +00:00
Rodrigo Kumpera 986ac66ef3 2009-04-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Fixed constant table description.
	Fixed calculation of HasCustomAttribute coded index size.
	Fixed calculation of size for many table indexes.

svn path=/trunk/mono/; revision=131958
2009-04-17 02:21:31 +00:00
Rodrigo Kumpera 11904001bd 2009-04-16 Rodrigo Kumpera <[email protected]>
* dump.c: Add dump_table_fieldrva.

	* dump.h: Same.

	* main.c: Add the option to dump the field rva table.

svn path=/trunk/mono/; revision=131957
2009-04-17 02:21:06 +00:00
Rodrigo Kumpera 3b07789940 2009-04-16 Rodrigo Kumpera <[email protected]>
* pedump.c (dump_metadata): Dump table offset instead
	of useless pointer in memory.

svn path=/trunk/mono/; revision=131956
2009-04-17 02:20:54 +00:00
Rodrigo Kumpera 5dee141268 2009-04-16 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for the method list of the typedef table.

svn path=/trunk/mono/; revision=131955
2009-04-17 02:20:31 +00:00
Rodrigo Kumpera fdea08fec7 2009-04-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Add tests for MethodList.

svn path=/trunk/mono/; revision=131954
2009-04-17 02:20:20 +00:00
Jonathan Pryor fd8dba7d2f * Monodoc/man-provider.cs: NEVER return a non-null string from
HelpSource.GetText() unless *useful* content is being returned, as
	  when non-null is returned RootTree.RenderUrl() assumes that the url
	  was handled and won't try any other HelpSources.  In this case, we
	  can (and do) have multiple ManHelpSources present, but since
	  ManHelpSource.GetText() was returning "<html>url was null</html>",
	  RootTree thought it was handled...when it wasn't.  Fix.

svn path=/trunk/mcs/; revision=131934
2009-04-16 20:09:40 +00:00
Jonathan Pryor c8c7416a5c * Mono.Documentation/monodocs2slashdoc.cs: Code refactor; use
EcmaDoc.GetCref() to generate //member/@name values.
	* Mono.Documentation/dump.cs: Add -f=FORMAT support, so that we can
	  load an appropriate HelpSource (if supplied) so that an appropriate
	  Node.PublicUrl can be displayed in the output.

svn path=/trunk/mcs/; revision=131927
2009-04-16 18:59:05 +00:00
Sebastien Pouliot f34ba6ef30 2009-04-16 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Xml.dll.sources: Remove corlib's files since 
	System.Xml can now access, for 2.1 (moonlight) corlib's internals.


svn path=/trunk/mcs/; revision=131926
2009-04-16 18:51:35 +00:00
Sebastien Pouliot b7a50fd104 2009-04-16 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.dll.sources: Remove corlib's files since System
	can now access, for 2.1 (moonlight) corlib's internals.


svn path=/trunk/mcs/; revision=131925
2009-04-16 18:50:47 +00:00
Sebastien Pouliot 19adbea4af 2009-04-16 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: allow System, System.Xml and Mono.
	CompilerServices.SymbolWriter access to mscorlib internals
	for 2.1 (Moonlight) so they can access internalized types
	like non-generic System.Collections


svn path=/trunk/mcs/; revision=131924
2009-04-16 18:48:43 +00:00
Jonathan Pryor fc372b9e8d * Monodoc/provider.cs: Overview: MonoDevelop loads monodoc.dll into
it's own process, and spawns monodoc GUI into a separate process,
	  then sends Node.URL values (obtained from the MonoDevelop process)
	  to load the documentation into the monodoc GUI.  Problem:
	  occasionally the requested documentation isn't loaded, but instead
	  some completely unrelated documentation is shown instead.  This is
	  because the Node.URL value contains HelpSource-dependent data, e.g.
	  a Node.URL value of "ecma:0#Foo/" will specify the 1st file
	  within...whatever HelpSource is first consulted by monodoc (which
	  can vary between monodoc runs, the phase of the moon, etc.).
	  Solution: Add a Node.PublicUrl property which returns _stable_ URLs
	  which aren't specific to a given HelpSource.
	  - Add Node.PublicUrl property, which delegates to
	    Provider.GetPublicUrl(string), so that a Provider can generate a
	    Provider-independent URL (if possible).
	  - Print PublicUrl from Node.PrintTree().
	  - Add RootTree.GetSupportedFormats(), RootTree.GetProvider()
	    methods.
	  - Make RootTree.GetHelpSource() public.
	* Monodoc/ecma-provider.cs: Add EcmaDoc.GetCref() method (generates an
	  XML documentation //see/@cref value), override
	  Provider.GetPublicUrl() (which will return cref's if possible).

svn path=/trunk/mcs/; revision=131923
2009-04-16 18:42:32 +00:00
Geoff Norton 571d214c11 2009-04-16 Geoff Norton <[email protected]>
* ResourceWriter.cs: The magic internal type here is required to match
        Microsofts for SL2 resource deserialization.

svn path=/trunk/mcs/; revision=131919
2009-04-16 17:50:38 +00:00
Zoltan Varga e61848bca9 2009-04-16 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Move the calls to
	mono_debug_add_delegate_trampoline () to get_delegate_invoke_impl ().

svn path=/trunk/mono/; revision=131908
2009-04-16 15:44:11 +00:00
Sebastien Pouliot 52531b6daa In .:
2009-04-16  Sebastien Pouliot  <[email protected]>

	* corlib.dll.sources: Add System.IO.IsolatedStorage/
	MoonIsolatedStorage.cs to the build

In System.IO.IsolatedStorage:
2009-04-16  Sebastien Pouliot  <[email protected]> 

	* MoonIsolatedStorage.cs: New. Manage the shared (location, quota)
	information about Moonlight isolated storage.
	* MoonIsolatedStorageFile.cs: Adjust with new MoonIsolatedStorage.
	Implement IncreaseQuotaTo UI.
	* MoonIsolatedStorageFileStream.cs: Adjust with MoonIsolatedStorage.


svn path=/trunk/mcs/; revision=131903
2009-04-16 15:25:45 +00:00
Atsushi Eno bc211b721b 2009-04-16 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs, ClientBase.cs,
	  ChannelFactory_1.cs :
	  Sort of reverted internal client channel type changes from
	  February, but to work fine in SL2 too. Now ChannelFactory<T>
	  can handle combined interface of IClientChannel and the contract.


svn path=/trunk/mcs/; revision=131899
2009-04-16 14:33:40 +00:00
Sebastien Pouliot 74a8225158 2009-04-16 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Rework the throwing of NIE so gui-compare
	does not report them (since they are the "right" behavior)
	* WebClient_2_1.cs: Fix BaseAddress property to return the URI to 
	the XAP file. Implement protected GetWebRequest which will make an
	absolute URI from a relative one (using BaseAddress). That remove
	the need of the previous hack.
	* WebRequest_2_1.cs: Remove previous hack


svn path=/trunk/mcs/; revision=131897
2009-04-16 14:29:45 +00:00
Sebastien Pouliot b8a69ca467 2009-04-16 Sebastien Pouliot <[email protected]>
* certmgr.cs: Don't throw if we're missing an argument. Fix by
	Romain Tartiere (bug #464765). Updated help to specify that 
	"option type" is mandatory in some cases.


svn path=/trunk/mcs/; revision=131892
2009-04-16 13:01:04 +00:00
Marek Habersack d7fb90cfca 2009-04-16 Marek Habersack <[email protected]>
* HttpContext.cs: local resources code now uses the custom
	resource provider factory, just like the global resources
	code. Fixes bug #493263

2009-04-16  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs:
	AssignPropertyFromResources now checks whether the field/property
	passed to it is decorated with the Localizable custom attribute
	and whether the resource provider contains an entry for that
	property.

svn path=/trunk/mcs/; revision=131888
2009-04-16 12:26:14 +00:00
Sebastien Pouliot 50fb5fadf9 2009-04-16 Sebastien Pouliot <[email protected]>
* IsolatedStorageFile.cs: Fix thread-safety issue at creation time.
	[Fix bug #431039]
	* IsolatedStorageFileStream.cs: Fix missing path check in Verify.
	[Fix bug #487659]


svn path=/trunk/mcs/; revision=131886
2009-04-16 12:03:19 +00:00
Marek Habersack c503734d12 2009-04-16 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: using a regexp to check whether an
	expression is a Bind one. Fixes bug #493639

2009-04-16  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/NoBindForMethodsWithBindInName.aspx

2009-04-16  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #493639

svn path=/trunk/mcs/; revision=131874
2009-04-16 09:51:12 +00:00
Atsushi Eno 80a6bd4091 2009-04-16 Atsushi Enomoto <[email protected]>
* DuplexChannelFactory.cs : a bit of constructor implementation.


svn path=/trunk/mcs/; revision=131872
2009-04-16 09:42:47 +00:00
Stephane Delcroix 913d528025 minor issues in documentation
svn path=/trunk/mcs/; revision=131870
2009-04-16 09:18:28 +00:00
Jonathan Pryor 3ac2bcedbf * Mono.Documentation/webdoc.cs: Remove console debug spew. If you run
with `mdoc -v`, each URL will be printed as it's processed.

svn path=/trunk/mcs/; revision=131858
2009-04-16 03:08:40 +00:00
Rodrigo Kumpera 2dbb10f71a 2009-04-15 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for the field list of the typedef table.

	* assembly-with-complex-type.cs: New assembly source.

	* Makefile: Compile the new assembly source.

svn path=/trunk/mono/; revision=131856
2009-04-16 01:40:02 +00:00
Rodrigo Kumpera b38ed1e991 2009-04-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Add tests for FieldList and
	a missing of for interface types.

svn path=/trunk/mono/; revision=131855
2009-04-16 01:39:52 +00:00
Rodrigo Kumpera 4de386edf6 2009-04-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_pe_optional_header): Add comment of why
	the code is commented.

	* metadata-verify.c (verify_resources_table): Remove spurious printf
	and don't fail if there are unmanaged resources. Gmcs generates a useless
	one	for all assemblies - I bet it's some MS compatibility junk.

svn path=/trunk/mono/; revision=131854
2009-04-16 01:39:36 +00:00
Rodrigo Kumpera 55ad3e4ab9 2009-04-15 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for the extends field of the typedef table.

svn path=/trunk/mono/; revision=131853
2009-04-16 01:39:21 +00:00
Rodrigo Kumpera ef84931a53 2009-04-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Verify the extends field.

	* metadata-verify.c (mono_image_verify): Add a is_corlib.

	* verify-internals.h: Same.

	* pedump.c: Fix for mono_image_verify new signature.

svn path=/trunk/mono/; revision=131852
2009-04-16 01:39:12 +00:00
Rodrigo Kumpera 3656dcab98 2009-04-15 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: More tests for the typedef table.

svn path=/trunk/mono/; revision=131850
2009-04-16 01:38:53 +00:00
Rodrigo Kumpera 46b77f141c 2009-04-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Verify for some invalid
	flags combinations.

svn path=/trunk/mono/; revision=131849
2009-04-16 01:38:43 +00:00
Rodrigo Kumpera c15d2e1f9a 2009-04-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_module_table): Ignore the generation field.

svn path=/trunk/mono/; revision=131848
2009-04-16 01:38:29 +00:00
Rodrigo Kumpera 74f3e47950 2009-04-15 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add the or-uint effect.

svn path=/trunk/mono/; revision=131847
2009-04-16 01:38:14 +00:00
Rodrigo Kumpera 61ee4824ae 2009-04-15 Rodrigo Kumpera <[email protected]>
* data-directory-tests.md:
	* header-tests.md:
	* resources-tests.md: Add comments related to faulty verification
	semantics on MS.

svn path=/trunk/mono/; revision=131846
2009-04-16 01:38:05 +00:00
Jonathan Pryor 960e988920 * Mono.Documentation/webdoc.cs: When extracting files from the .zip
file, ensure that the output file is closed.  Properly pre-render
	  ecma namespace documentation.

svn path=/trunk/mcs/; revision=131845
2009-04-16 00:45:43 +00:00
Jonathan Pryor 3f134c1d5f * Monodoc/ecma-provider.cs: EcmaHelpSource.GetText() doesn't need to
call GetCachedText() twice.

svn path=/trunk/mcs/; revision=131844
2009-04-16 00:41:28 +00:00
Jonathan Pryor 25b54475df * Monodoc/provider.cs: Correct UseWebdocCache logic.
* Monodoc/xhtml-provider.cs: Use GetCachedText().

svn path=/trunk/mcs/; revision=131843
2009-04-16 00:21:29 +00:00
Jonathan Pryor 6b2b2a1f2c * Makefile: Add reference to ICSharpCode.SharpZipLib.dll.
* mdoc.exe.sources: Add Mono.Rocks/ObjectRocks.cs,
	  Mono.Rocks/StreamRocks.cs.
	* Mono.Documentation/webdoc.cs: Refactor into smaller methods.  Extract 
	  ZIP file contents in addition to generating HTML output.  Use
	  monodoc helper methods to determine cache directory.
	* Mono.Documentation/ObjectRocks.cs: Rename to
	  Mono.Rocks/ObjectRocks.cs.
	* Mono.Rocks/ObjectRocks.cs: Add Check.Destination().
	* Mono.Rocks/StreamRocks.cs: Added; extension methods for Streams.

svn path=/trunk/mcs/; revision=131831
2009-04-15 21:12:18 +00:00
Jonathan Pryor 2144484451 * Monodoc/provider.cs: UseWebdocCache is a better name that
IgnoreCache (considering that cache is disabled by default).

svn path=/trunk/mcs/; revision=131829
2009-04-15 21:01:23 +00:00
Jonathan Pryor ae147c161c * Monodoc/provider.cs:
- Add HelpSource.IgnoreCache field, so that if the cache is present 
	    it will be ignored.  (Required by 'mdoc export-html-webdoc' so it 
	    gets "fresh" content to generate the cache, and by monodoc GUI as 
	    it can't use the cache'd HTML; cache'd HTML is for ASP.NET 
	    webdoc only.)
	  - Alter the cache directory from e.g. sources/netdocs to 
	    sources/cache/netdocs (as defined by 
	    XmlDocUtils.GetCacheDirectory()).
	  - Add HelpSource.GetCachedText() method which will return the 
	    contents of the cache for an id.
	* Monodoc/addins-provider.cs, Monodoc/ecma-provider.cs, 
	  Monodoc/error-provider.cs, Monodoc/man-provider.cs, 
	  Monodoc/simple-provider.cs: Use GetCachedText().
	* Mono.Documentation/XmlDocUtils.cs: Add GetCacheDirectory(),
	  GetCacheFileName() methods.

svn path=/trunk/mcs/; revision=131828
2009-04-15 20:59:04 +00:00
Martin Baulig 3bb7dd821d Move 'ISourceFile', 'ICompileUnit' and 'IMethodDef' from MonoSymbolWriter.cs into MonoSymbolFile.cs.
svn path=/trunk/mcs/; revision=131819
2009-04-15 19:34:34 +00:00
Atsushi Eno 08a74ed398 2009-04-15 Atsushi Enomoto <[email protected]>
* XmlMtomDictionaryReader.cs : new.
	* XmlDictionaryReader.cs : implemented CreateMtomReader().

	* System.Runtime.Serialization.dll.sources : added mtom reader.


svn path=/trunk/mcs/; revision=131809
2009-04-15 18:30:49 +00:00
Martin Baulig eb9fc25970 Ignore unknown extended opcodes in the line number table if they're between 0x40 and 0x7f.
2009-04-15  Martin Baulig  <[email protected]>

	* MonoSymbolTable.cs
	(LineNumberTable.DW_LNE_MONO__extensions_start): New const.
	(LineNumberTable.DW_LNE_MONO__extensions_end): New const.
	(LineNumberTable.DoRead): Ignore unknown extended opcodes if
	they're within the Mono extension range.

svn path=/trunk/mcs/; revision=131801
2009-04-15 17:50:49 +00:00
Martin Baulig 91b62657da Don't print a warning for unknown extended opcodes in the line number table if they're between 0x40 and 0x7f.
2009-04-15  Martin Baulig  <[email protected]>

	* debug-mono-symfile.c
	(mono_debug_symfile_lookup_location): Don't print a warning for
	unknown extended opcodes if they're within 0x40 and 0x7f.

svn path=/trunk/mono/; revision=131800
2009-04-15 17:48:06 +00:00
Jonathan Pryor 6b6ce82ef7 * Mono.Documentation/webdoc.cs: The timestamp logic was wrong it the
output directory didn't exist.  Fix.

svn path=/trunk/mcs/; revision=131773
2009-04-15 14:30:49 +00:00
Jonathan Pryor 354af09726 * Mono.Documentation/webdoc.cs: Do as make(1) does: if the
target directory already exists and is newer than the source files, 
	  don't regenerate output.  (Greatly speeds things up if nothing has
	  changed.)  Add a --force-update option to disable this behavior.

svn path=/trunk/mcs/; revision=131770
2009-04-15 13:41:13 +00:00
Marek Habersack c2a841d9f8 2009-04-15 Marek Habersack <[email protected]>
* TemplateParser.cs: use generic lists for import, namespace and
	interface caches. If a namespace is added (e.g. by parsing the
	Import directive), find the assembly in which namespace is
	defined.

2009-04-15  Marek Habersack  <[email protected]>

	* BuildManager.cs: do not add all assemblies in bin/ when serving
	a precompiled site. Fixes bug #493873
	When serving a precompiled site, check if the bin/ directory
	contains certain well-known assemblies and load them if present.

svn path=/trunk/mcs/; revision=131768
2009-04-15 13:32:47 +00:00
Jonathan Pryor fc41476110 * Mono.Documentation/webdoc.cs: Change the default -o value to
include a "cache" intermediate directory.  This makes it easier to
	  kill the entire cache at once.

svn path=/trunk/mcs/; revision=131765
2009-04-15 13:09:33 +00:00
Atsushi Eno a7fcf5ac3c 2009-04-15 Atsushi Enomoto <[email protected]>
* jis.table : regenerated. Fixed bug #491799.

        * I18N.CJK.Test.cs : added test for bug #491799.


svn path=/trunk/mcs/; revision=131758
2009-04-15 11:26:42 +00:00
Atsushi Eno e1a763898c 2009-04-15 Atsushi Enomoto <[email protected]>
* uni2tab.c : don't use obsoleted shiftjis.txt.


svn path=/trunk/mcs/; revision=131755
2009-04-15 11:19:20 +00:00
Atsushi Eno cc94f89953 2009-04-15 Atsushi Enomoto <[email protected]>
* table_from.cs, table_to.cs : fix misuse of indexers (invalid
          code).


svn path=/trunk/mcs/; revision=131754
2009-04-15 11:18:18 +00:00
Marek Habersack 6ccfcecc4d 2009-04-15 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: if a notification is received from a
	FileSystemWatcher which was configured to watch for
	subdirectories, uses a filter (currently we have just one such
	watcher - waiting for changes to '?eb.?onfig') and the event
	doesn't match the filter, ignore the event. Fixes bug #495011

svn path=/trunk/mcs/; revision=131752
2009-04-15 11:11:13 +00:00
Atsushi Eno b93975eaba oops, I happened to commit every pending ones and missed ChangeLog here :(
svn path=/trunk/mcs/; revision=131739
2009-04-15 08:56:38 +00:00
Atsushi Eno d54e48a2c1 2009-04-15 Atsushi Enomoto <[email protected]>
* Expression.cs : extensions could return null and it should be
	  regarded as empty node-set, not an error.


svn path=/trunk/mcs/; revision=131738
2009-04-15 08:54:10 +00:00
Atsushi Eno a7cbc14542 2009-04-15 Atsushi Enomoto <[email protected]>
* ServiceDocument.cs : remove Utility class. It is not precise
	  implementation to write extensions.
	* ServiceDocumentFormatter.cs : virtual extension writer methods
	  should call possibly overriden Write[Element/Attribute]Extensions()
	  in possibly derived document item classes.
	  Implemented LoadElementExtensions().
	* AtomPub10CategoriesDocumentFormatter.cs,
	  AtomPub10ServiceDocumentFormatter.cs : Implemented GetSchema().

	* AtomPub10CategoriesDocumentFormatterTest.cs,
	  AtomPub10ServiceDocumentFormatterTest.cs : aded GetSchema() and
	  WriteElementExtensions() tests.


svn path=/trunk/mcs/; revision=131737
2009-04-15 08:18:12 +00:00
Ankit Jain b5d5cc57c8 Fix bug #494219.
In ilasm/codegen:

	* MethodDef.cs (GetNamedLocalSlot): Return -1 if local var not found.

In ilasm/parser:

	* ILParser.jay (instr): Handle unidentified local var id.

In ilasm/scanner:

	* StringHelper.cs (startIdChars): New. Set of chars that can start an
	identifier.
	(Start): Use startIdChars instead of idchars.

svn path=/trunk/mcs/; revision=131736
2009-04-15 07:56:30 +00:00
Marek Habersack 988d663bae Micro optimization - don't call Page twice
svn path=/trunk/mcs/; revision=131734
2009-04-15 07:19:42 +00:00
Gonzalo Paniagua Javier eec30e3beb 2009-04-15 Gonzalo Paniagua Javier <[email protected]>
* HtmlInputText.cs: make sure we're inside a Page before dereferencing
	it.


svn path=/trunk/mcs/; revision=131730
2009-04-15 05:41:41 +00:00
Jonathan Pryor 2c1b1cc05b * Mono.Documentation/webdoc.cs: Provide nice default -o value.
svn path=/trunk/mcs/; revision=131729
2009-04-15 04:58:07 +00:00
Jonathan Pryor da56b5b701 * Mono.Documentation/webdoc.cs: Load documentation through a
HelpSource, not through the RootTree, as URLs of the form
	  "ecma:0#AvoidExtensionMethodOnSystemObjectRule/" use the number (0
	  in this case) as a HelpSource-relative identifier.  Result: you get
	  the wrong documentation if you go through RootTree.

svn path=/trunk/mcs/; revision=131728
2009-04-15 04:43:40 +00:00
Jonathan Pryor 4e400cb0b2 * Makefile: Add reference to System.Web.dll, for HttpUtility.
* mdoc.exe.sources: Add ObjectRocks.cs, webdoc.cs to the build.
	* Mono.Documentation/mdoc.cs: Add export-html-webdoc command, which
	  "pre-renders" HTML for use by the webdoc ASP.NET renderer.
	* Mono.Documentation/webdoc.cs: Added; MDocExportWebdocHtml
	  implementation; attempts to pre-render HTML based on .tree/.zip
	  file contents.
	* Mono.Documentation/ObjectRocks.cs: Added; extension methods for tree
	  traversal (from Mono.Rocks).  For use in webdoc.cs.

svn path=/trunk/mcs/; revision=131727
2009-04-15 04:19:02 +00:00
Rodrigo Kumpera 4fde95afc8 2009-04-14 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Initial tests for the typedef table.

svn path=/trunk/mono/; revision=131726
2009-04-15 00:40:53 +00:00
Rodrigo Kumpera eec214cfae 2009-04-14 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Initial code to verify the typedef table.

svn path=/trunk/mono/; revision=131725
2009-04-15 00:40:43 +00:00
Zoltan Varga 99e89562a0 2009-04-15 Zoltan Varga <[email protected]>
* runtime-invoke.cs: Add a test for #494847.

svn path=/trunk/mono/; revision=131720
2009-04-14 23:40:33 +00:00
Zoltan Varga df5ff666da 2009-04-15 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke_sig): Don't share runtime
	invoke signatures returning an enum. Fixes #494847.

svn path=/trunk/mono/; revision=131719
2009-04-14 23:40:24 +00:00
Rodrigo Kumpera c33abd0990 2009-04-14 Rodrigo Kumpera <[email protected]>
* valid_br_before_try_block.il: Regression test for #494812.

svn path=/trunk/mono/; revision=131705
2009-04-14 20:16:21 +00:00
Rodrigo Kumpera 3bac8e8e63 2009-04-14 Rodrigo Kumpera <[email protected]>
* verify.c (mono_method_verify): Don't fail if an unconditional branch
	with non empty stack happens before the beginning of a try block.

	Fixes #494812.

svn path=/trunk/mono/; revision=131704
2009-04-14 20:15:59 +00:00
Rodrigo Kumpera 4b18ea3c24 2009-04-14 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: More tests for the typeref table.

svn path=/trunk/mono/; revision=131703
2009-04-14 20:15:38 +00:00
Rodrigo Kumpera 063dee9520 2009-04-14 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify typename and typenamespace fields of
	the typeref table.

svn path=/trunk/mono/; revision=131701
2009-04-14 20:15:18 +00:00
Rodrigo Kumpera 89694115ad 2009-04-13 Rodrigo Kumpera <[email protected]>
* invalid_backward_branch.il: Fix typo.

svn path=/trunk/mono/; revision=131700
2009-04-14 20:14:51 +00:00
Rodrigo Kumpera 2d59a830f1 2009-04-13 Rodrigo Kumpera <[email protected]>
* Makefile: Fix build of gen-md-tests.

	* cli-tables-tests.md: Tests for the typeref table.

svn path=/trunk/mono/; revision=131699
2009-04-14 20:14:28 +00:00
Rodrigo Kumpera d2b12be3c7 2009-04-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Initial code to verify the typeref table.

svn path=/trunk/mono/; revision=131698
2009-04-14 20:14:05 +00:00
Rodrigo Kumpera d51397ff50 2009-04-13 Rodrigo Kumpera <[email protected]>
* verify.c (verify_delegate_compatibility): Fix error message.

svn path=/trunk/mono/; revision=131697
2009-04-14 20:13:33 +00:00
Zoltan Varga dcd5d970fa 2009-04-14 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoClassPrinter.to_string): Add a MonoClass* pretty
	printer.

svn path=/trunk/mono/; revision=131695
2009-04-14 20:07:00 +00:00
Zoltan Varga 8f31ab70c4 2009-04-14 Zoltan Varga <[email protected]>
* aot-compiler.c tramp-arm.c mini-arm.c: Implement static rgctx
	trampolines for ARM. Add full-aot support for delegate invokes for ARM.

svn path=/trunk/mono/; revision=131688
2009-04-14 19:10:14 +00:00
Sebastien Pouliot 49ac5b8642 2009-04-14 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Fix typo


svn path=/trunk/mono/; revision=131683
2009-04-14 17:41:35 +00:00
Sebastien Pouliot a66b7527e9 2009-04-14 Sebastien Pouliot <[email protected]>
* UriTest2.cs: More test cases for the handling of %2f and %5c


svn path=/trunk/mcs/; revision=131682
2009-04-14 17:35:01 +00:00
Sebastien Pouliot 07b5e47468 2009-04-14 Sebastien Pouliot <[email protected]>
* Uri.cs: Fix processing of %2f and %5c in paths. Avoid a few
	computation where the result is not used (overwritten)


svn path=/trunk/mcs/; revision=131681
2009-04-14 17:33:03 +00:00
Jonathan Pryor f134cbcfe4 * Monodoc/provider.cs: Fix NullReferenceException in 'mdoc dump-tree'.
svn path=/trunk/mcs/; revision=131678
2009-04-14 16:03:20 +00:00
Zoltan Varga 1f8ad5a430 2009-04-14 Zoltan Varga <[email protected]>
* marshal.c (delegate_hash_table_add): Make delegate_target_locations
	a MonoGHashTable to keep its values alive.
	(emit_marshal_boolean): Fix a warning.

svn path=/trunk/mono/; revision=131667
2009-04-14 14:24:12 +00:00
Carlos Alberto Cortez 38b5978951 2009-04-14 Carlos Alberto Cortez <[email protected]>
* ThreadExceptionDialog.cs: Draw the error icon, previously missing.
	Fixes #474253.


svn path=/trunk/mcs/; revision=131658
2009-04-14 12:03:28 +00:00
Carlos Alberto Cortez 86cdd137f9 2009-04-14 Carlos Alberto Cortez <[email protected]>
* ContainerControl.cs: Implement support for Control.CausesValidation,
	by adding a pending list of controls to be validated in the top
	container control, and postpone validation as needed. 
	Also remove any control in the validation chain in case it gets removed 
	from its owner before the pending validation actually happens.
	Fixes #457170.


svn path=/trunk/mcs/; revision=131656
2009-04-14 11:15:03 +00:00
Zoltan Varga 711fda3989 2009-04-14 Zoltan Varga <[email protected]>
* marshal.c (mono_delegate_to_ftnptr): Use mono_gc_alloc_fixed () for
	allocating the location holding the this argument to prevent
	'too many root sets' errors.

svn path=/trunk/mono/; revision=131655
2009-04-14 11:06:35 +00:00
Zoltan Varga 03f960ca71 2009-04-14 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_magic_trampoline): Fix the build.

svn path=/trunk/mono/; revision=131654
2009-04-14 11:04:11 +00:00
Marek Safar e0a612c6bc New test.
svn path=/trunk/mcs/; revision=131652
2009-04-14 09:01:16 +00:00
Marek Safar 53edf44fe2 2009-04-14 Marek Safar <[email protected]>
A fix for bug #494243
	* report.cs (SymbolRelatedToPreviousError): Fixed NRE.


svn path=/trunk/mcs/; revision=131651
2009-04-14 09:00:56 +00:00
Gonzalo Paniagua Javier 391d58c925 2009-04-13 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: don't return IPv4/IPv6 addresses if the machine does
	not have any interface configured for IPv4/IPv6.


svn path=/trunk/mono/; revision=131639
2009-04-14 03:36:16 +00:00
Gonzalo Paniagua Javier c70cd495d6 2009-04-13 Gonzalo Paniagua Javier <[email protected]>
* assembly.c: fix typo in error message.


svn path=/trunk/mono/; revision=131638
2009-04-14 03:34:32 +00:00
Zoltan Varga 28f9b0404b .gitignore.
svn path=/trunk/mono/; revision=131626
2009-04-13 22:14:40 +00:00
Zoltan Varga eafe6dc7aa 2009-04-14 Zoltan Varga <[email protected]>
* thread-static.cs: Add a test for accesses through reflection.

svn path=/trunk/mono/; revision=131625
2009-04-13 22:12:28 +00:00
Zoltan Varga 411e40ce85 2009-04-14 Zoltan Varga <[email protected]>
* liveness.c (visit_bb): Remove a needless assert.

svn path=/trunk/mono/; revision=131624
2009-04-13 22:12:21 +00:00
Zoltan Varga 2d9af8e900 2009-04-14 Zoltan Varga <[email protected]>
* object.c (mono_class_create_runtime_vtable): Set field->offset to -1
	to mark fields as special static.
	(mono_field_static_get_value): Handle special static fields.
	(mono_field_static_set_value): Ditto.

	* class-internals.h (struct _MonoClassField): Document this.

svn path=/trunk/mono/; revision=131623
2009-04-13 22:12:14 +00:00
Bill Holmes 977d03c4ce 2009-04-13 Bill Holmes <[email protected]>
* cominterop.c (mono_cominterop_emit_marshal_com_interface): Assigning
	  the argument a value of null for the MARSHAL_ACTION_MANAGED_CONV_OUT
	  case.  This will handle when managed code returns null to native code.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=131622
2009-04-13 21:16:55 +00:00
Bill Holmes 29ec96285f 2009-04-13 Bill Holmes <[email protected]>
* object.c (build_imt_slots): Changing a free to a g_free to match
	  the g_malloc0 in add_imt_builder_entry that allocated this memory.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=131621
2009-04-13 21:07:26 +00:00
Bill Holmes 99fb69be80 2009-04-13 Bill Holmes <[email protected]>
* Makefile.am: Adding marshalbool.cs.

	* libtest.c: Adding native code for marshalbool.cs tests.

	* marshalbool.cs: Adding tests for emit_marshal_boolean.

	Contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=131619
2009-04-13 20:41:07 +00:00
Bill Holmes 8d21b8228e 2009-04-13 Bill Holmes <[email protected]>
* marshal.c (emit_marshal_boolean): Adding code to ensure that
	  the correct TRUE value is passed through the marshaling layer.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=131618
2009-04-13 20:38:45 +00:00
Zoltan Varga a6d3fe6359 2009-04-13 Zoltan Varga <[email protected]>
* pinvoke2.cs: Add a test for #492330.

svn path=/trunk/mono/; revision=131617
2009-04-13 20:08:15 +00:00
Zoltan Varga eebf732e45 2009-04-13 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_emit_managed_wrapper): Handle closed delegates
	correctly. Fixes #492330.

svn path=/trunk/mono/; revision=131616
2009-04-13 20:08:08 +00:00
Zoltan Varga fe4200ee34 2009-04-13 Zoltan Varga <[email protected]>
* marshal.c: Fix the embedding of object pointers into JITted code in
	the native-to-managed wrappers by allocating some GC tracked memory, and
	embedding the address of that.

svn path=/trunk/mono/; revision=131614
2009-04-13 19:51:41 +00:00
Zoltan Varga b9c4ed2c2e 2009-04-13 Zoltan Varga <[email protected]>
* marshal.c: Fix the embedding of object pointers into JITted code in
	the native-to-managed wrappers by allocating some GC tracked memory, and
	embedding the address of that.

svn path=/trunk/mono/; revision=131613
2009-04-13 19:51:32 +00:00
Zoltan Varga 5813deb90e 2009-04-13 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_create_delegate_trampoline): Delegate the
	full aot support to the arch specific code.

	* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Add full-aot support.

	* aot-compiler.c (emit_trampolines): Emit delegate invoke impl trampolines.

	* aot-compiler.c (emit_named_code): Rename this to 'emit_trampoline'.

	* mini-amd64.c (mono_arch_get_delegate_invoke_impls): New function to
	collect information about the delegate invoke impl trampolines.

	* mini.h (MonoAotTrampInfo): New structure collecting the information needed
	to save trampolines during full-aot mode.

svn path=/trunk/mono/; revision=131612
2009-04-13 19:51:19 +00:00
Jonathan Pryor 5ebb3b6c77 * sys-time.c: Properly set the modification time, instead of using the
access time as the modification time.  Fixes #494253.

svn path=/trunk/mono/; revision=131601
2009-04-13 16:44:08 +00:00
Gonzalo Paniagua Javier 78e3cbb1a5 2009-04-13 Gonzalo Paniagua Javier <[email protected]>
* HttpUtility.cs: the collection returned from ParseQueryString knows
	how to convert the key/value pairs to a string.


svn path=/trunk/mcs/; revision=131599
2009-04-13 16:28:20 +00:00
Marek Safar 4783823c8a Better test.
svn path=/trunk/mcs/; revision=131589
2009-04-13 13:19:38 +00:00
Marek Safar 0e23ea4a04 2009-04-13 Marek Safar <[email protected]>
A fix for bug #493887
	* statement.cs: Don't skip string multi-section with default or
	null label when populating string hashtable.


svn path=/trunk/mcs/; revision=131588
2009-04-13 13:19:10 +00:00
Zoltan Varga 2cb5f80d60 2009-04-13 Zoltan Varga <[email protected]>
* configure.in: Quiet 'copying selected object files' messages from
	newer libtool versions as well.

svn path=/trunk/mono/; revision=131570
2009-04-13 11:16:02 +00:00
Zoltan Varga f2e4b1404e 2009-04-13 Zoltan Varga <[email protected]>
* configure.in: Disable AC_PROG_CXX for now to fix the windows build.

	In mono/mini:

	* Makefile.am: Comment out the cpp files as f@#%$ automake complains even
	if they are inside a conditional.

svn path=/trunk/mono/; revision=131565
2009-04-13 09:59:02 +00:00
Zoltan Varga 032d17e6e3 Fix the build.
svn path=/trunk/mono/; revision=131563
2009-04-13 09:43:40 +00:00
Zoltan Varga cb7d2f5212 2009-04-13 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_create_static_rgctx_trampoline): New trampoline
	creation function which returns a trampoline which sets the rgctx
	argument.
	(mono_magic_trampoline): Use the rgctx trampoline instead of an rgctx
	wrapper if possible.
	(mono_delegate_trampoline): Ditto.

	* mini.c (mono_jit_runtime_invoke): Ditto.

	* tramp-amd64.c: Add an implemention of static rgctx trampolines for AMD64.

	* aot-compiler.c aot-runtime.c: Add support for static rgctx trampolines.

	* mini.h (MONO_AOT_FILE_VERSION): Bump this.

svn path=/trunk/mono/; revision=131555
2009-04-12 22:11:36 +00:00
Zoltan Varga e6528844af 2009-04-12 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoMethodPrinter.to_string): Add a MonoMethod* pretty
	printer.

svn path=/trunk/mono/; revision=131553
2009-04-12 21:01:49 +00:00
Gonzalo Paniagua Javier 6ea7633b75 2009-04-12 Gonzalo Paniagua Javier <[email protected]>
* System.Threading/WaitHandle.cs: implemented 2 missing WaitAny overloads.
	* corlib.dll.sources: add GCNotificationStatus.
	* System/GCNotificationStatus.cs: new enum.


svn path=/trunk/mcs/; revision=131542
2009-04-12 14:11:18 +00:00
Zoltan Varga 29dd1b0cf7 2009-04-12 Zoltan Varga <[email protected]>
* mini-ia64.c (mono_arch_lowering_pass): Use NULLIFY_INS instead of
	just setting the opcode to OP_NOP.

svn path=/trunk/mono/; revision=131541
2009-04-12 14:01:42 +00:00
Gonzalo Paniagua Javier 9149539dde update MonoTODO
svn path=/trunk/mcs/; revision=131540
2009-04-12 13:53:48 +00:00
Zoltan Varga 77d7c11eee 2009-04-11 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Put the last change inside an
	#ifdef MONO_ARCH_HAVE_LIVERANGE_OPS.

svn path=/trunk/mono/; revision=131529
2009-04-11 20:39:40 +00:00
Zoltan Varga 12c3006e7f 2009-04-11 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Disable sharing of stack slots/registers
	and extend live ranges to cover the whole method when using xdb.

svn path=/trunk/mono/; revision=131528
2009-04-11 20:37:16 +00:00
Zoltan Varga 4b476e8c24 2009-04-11 Zoltan Varga <[email protected]>
* jit-icalls.c (ldvirtfn_internal): Avoid creating rgctx wrappers here,
	do it in the trampolines.

	* mini-trampolines.c (mono_magic_trampoline): Add an rgctx wrapper if
	needed.

	* mini-trampolines.c (mono_delegate_trampoline): Ditto.

svn path=/trunk/mono/; revision=131527
2009-04-11 19:59:53 +00:00
Sebastien Pouliot 73bdc9ae32 2009-04-11 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: WebClient allows relative URI...
	* WebRequest_2_1.cs: ...while WebRequest does not by default. 
	Also uncomment a few checks for new test cases


svn path=/trunk/mcs/; revision=131518
2009-04-11 16:12:48 +00:00
Zoltan Varga a56ec16cc5 2009-04-11 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Avoid using the fast virtual method
	call code in full-aot mode since IMT is disabled there.
	(mono_method_to_ir): Inline ldfld wrappers which return structures too, the
	new JIT no longer has that restriction.

svn path=/trunk/mono/; revision=131517
2009-04-11 14:34:09 +00:00
Zoltan Varga ba8c51c704 2009-04-11 Zoltan Varga <[email protected]>
* object.c (mono_class_create_runtime_vtable): Avoid putting MonoMethod
	pointers into the vtable.

svn path=/trunk/mono/; revision=131516
2009-04-11 14:34:01 +00:00
Marek Habersack b0ef88b86f 2009-04-11 Marek Habersack <[email protected]>
* UpdatePanel.cs: implemented SingleChildControlCollection to be
	used in CreateControlCollection ().
	RequiresUpdate not only checks the update mode and explicit update
	requests, but also looks if any triggers fired.
	Initialize () initializes triggers only if partial rendering is
	supported by the ScriptManager.
	IsInPartialRendering property no longer returns the value of
	ScriptManager.IsInPartialRendering. Instead, it relies on the
	value of instance field which can be set using new internal
	SetInPartialRendering () method (called from
	ScriptManager.RenderPageCallback ())
	Simplified the logic in RenderChildren ().

	* ScriptManager.cs: no need to register panels for refresh in
	OnPreRenderComplete, this is now done in RenderPageCallback.
	Modified HasBeenRendered () so that it doesn't query whether the
	panel has been explicitly updated by the user, but checks whether
	panel is in the list of panels to refresh.
	RaisePostDataChangedEvent () doesn't update the panel whose id is
	named in the POST request for refresh. This is handled in
	RenderPageCallback.
	Reverted the changes to WriteCallbackPanel and RenderFormCallback
	committed in r129774.
	RenderPageCallback now correctly detects panels to be refreshed
	(and thus included in the async response).

	* AsyncPostBackTrigger.cs, PostBackTrigger.cs: implemented
	HasTriggered ().

svn path=/trunk/mcs/; revision=131511
2009-04-11 13:36:46 +00:00
Sebastien Pouliot c6cc517200 2009-04-11 Sebastien Pouliot <[email protected]>
* DnsEndPoint_2_1.cs: Adjust exceptions wrt unit tests
	* HttpWebRequest_2_1.cs: Fix Headers property wrt unit tests: 
	* WebClient_2_1.cs: Fix some properties
	* WebHeaderCollection_2_1.cs: Adjust exceptions wrt unit tests
	* WebRequest_2_1.cs: Add RegisterPrefix functionality and add
	missing checks (fix unit tests)


svn path=/trunk/mcs/; revision=131507
2009-04-11 13:16:44 +00:00
Zoltan Varga 5cacc5ee48 2009-04-11 Zoltan Varga <[email protected]>
* mini.h (MONO_AOT_FILE_VERSION): Bump this.

	* aot-compiler.c (emit_extra_methods): Emit the wrapper method names in
	a more compact format.
	(mono_aot_wrapper_name): New function to return a unique name for a
	wrapper method, also used by the AOT runtime.

	* aot-runtime.c (find_extra_method_in_amodule): Update after the changes to
	aot-compiler.c.

svn path=/trunk/mono/; revision=131502
2009-04-11 04:48:44 +00:00
Zoltan Varga 409cc50c9c 2009-04-11 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_class): Add the helper methods from T[]
	when a ICollection<T> etc is encountered.
	(add_generic_instances): Process method arguments/locals too.
	(emit_trampolines): Emit unbox trampolines for extra methods too. Shorten
	trampoline names.

	* aot-runtime.c (mono_aot_get_unbox_trampoline): Handle extra methods too.

svn path=/trunk/mono/; revision=131501
2009-04-11 04:47:22 +00:00
Zoltan Varga 04b076d061 2009-04-10 Zoltan Varga <[email protected]>
* aot-compiler.c: Disable the AOT compiler if the JIT is disabled.

svn path=/trunk/mono/; revision=131480
2009-04-10 17:44:25 +00:00
Zoltan Varga 2e7aadd063 2009-04-10 Zoltan Varga <[email protected]>
* mono-gdb.py: Update to the latest archer api.

svn path=/trunk/mono/; revision=131479
2009-04-10 17:44:14 +00:00
Mark Probst 067cc45a87 Test case for invoking a proxy whose server's domain was unloaded.
2009-04-10  Mark Probst  <[email protected]>

        * appdomain-unload.cs: Test for invoking on a proxy whose server
        domain was unloaded.

svn path=/trunk/mono/; revision=131473
2009-04-10 15:00:10 +00:00
Zoltan Varga b5a53bc535 2009-04-10 Zoltan Varga <[email protected]>
* include/private/gc_locks.h (GC_test_and_set): Merge a change from libgc
	7.1's libatomic-ops to fix the ppc build with gcc 4.4.

svn path=/trunk/mono/; revision=131471
2009-04-10 14:32:31 +00:00
Zoltan Varga dbbe281755 2009-04-10 Zoltan Varga <[email protected]>
* ArrayTest.cs: Add a test for ICollection:IsReadOnly on generic arrays.

svn path=/trunk/mcs/; revision=131470
2009-04-10 14:29:01 +00:00
Zoltan Varga 35672d61e1 2009-04-10 Zoltan Varga <[email protected]>
* Array.cs: Make some of the InternalArray methods non-generic to cut down
	on the number of instantiations. Add implementation for
	ICollection:IsReadOnly.

svn path=/trunk/mcs/; revision=131469
2009-04-10 14:28:50 +00:00
Zoltan Varga 0f1c4d4962 2009-04-10 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_type): Emit byref to reference types as 'int' for now.

svn path=/trunk/mono/; revision=131468
2009-04-10 13:18:04 +00:00
Gonzalo Paniagua Javier b06eb40dd7 2009-04-10 Gonzalo Paniagua Javier <[email protected]>
* HttpResponseStream.cs: use the unsafe version when copying buffers.


svn path=/trunk/mcs/; revision=131451
2009-04-10 04:47:18 +00:00
Jonathan Pryor 6166db125b * mdoc-update.1: Document -L, -r options.
svn path=/trunk/mono/; revision=131449
2009-04-10 02:06:01 +00:00
Jonathan Pryor e6e5024d26 * Mono.Documentation/monodocer.cs: Using a single IAssemblyResolver is
an improvement, but doesn't fix all problems.  In particular, some
	  assemblies will depend upon other assemblies to load (e.g. 3rd party
	  assemblies) but these dependent assemblies shouldn't be documented.
	  Add support for -r:ASSEMBLY and -L:DIRECTORY arguments to allow the
	  user to manually add to the assembly search path so that assemblies
	  can be found.  Assemblies added via -r will NOT be documented.

svn path=/trunk/mcs/; revision=131447
2009-04-10 01:49:42 +00:00
Zoltan Varga 25101d5aef 2009-04-10 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_opcode): Make this return a MonoInst*
	representing the result of the decomposition. Nullify instructions
	instead of setting them to OP_NOP since nops can't have registers
	set.

svn path=/trunk/mono/; revision=131445
2009-04-10 00:29:55 +00:00
Rodrigo Kumpera e758fc4a00 2009-04-09 Rodrigo Kumpera <[email protected]>
* valid_delegate_signature_with_generics.cs: Test for the compatibility
	of delegate arguments when a function has a non generic type argument
	and the delegate has a generic one.

svn path=/trunk/mono/; revision=131437
2009-04-09 22:33:02 +00:00
Rodrigo Kumpera be16286219 2009-04-09 Rodrigo Kumpera <[email protected]>
* verify.c (mono_delegate_type_equal): Proper check MONO_TYPE_CLASS.

	* verify.c (verify_ldftn_delegate): Improve error message.

svn path=/trunk/mono/; revision=131436
2009-04-09 22:32:52 +00:00
Zoltan Varga b912364ced 2009-04-09 Zoltan Varga <[email protected]>
* thread6.cs: Fix race added by the last change.

svn path=/trunk/mono/; revision=131424
2009-04-09 20:42:28 +00:00
Bill Holmes 19ebb84311 2009-04-09 Bill Holmes <[email protected]>
* finalizer-abort.cs, finalizer-exception.cs, finalizer-exit.cs :
	  Adding a sleep to the waiting thread to give Mono on Windows an
	  opportunity to interrupt the thread via QueueUserAPC.

	Contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=131423
2009-04-09 20:36:38 +00:00
Zoltan Varga 862fb7023e 2009-04-09 Zoltan Varga <[email protected]>
* Makefile.am: Disable the finalizer tests which only work under sgen.

svn path=/trunk/mono/; revision=131422
2009-04-09 20:16:57 +00:00
Zoltan Varga 8640005975 2009-04-09 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Split this huge function into
	smaller parts. Add 'nodebug' option to prevent generation of DWARF debug
	info. Strip 'mapping symbols' on ARM.

	* iltests.il.in (test_0_fconv_to_i): Disable this on ARM too.

svn path=/trunk/mono/; revision=131421
2009-04-09 19:43:53 +00:00
Carlos Alberto Cortez 55c2581716 2009-04-09 Carlos Alberto Cortez <[email protected]>
* ListBox.cs: The default instance StringFormat field used to draw our
	items should use the StringFormatFlags.NoWrap value, so it doesn't try
	to put in a different line the text that doesn't fit our bounds, but
	show it partially.
	Fixes #475581.


svn path=/trunk/mcs/; revision=131415
2009-04-09 18:33:37 +00:00
Raja R Harinath d8bd02b6dc * reflection.c (my_mono_class_from_mono_type): Remove.
svn path=/trunk/mono/; revision=131414
2009-04-09 18:26:11 +00:00
Raja R Harinath fb00e30e42 Prepare to reduce memory usage of owner-less generic parameters (1/n)
* metadata/class-internals.h (MonoGenericParam): Carve out pklass, name, flags
and constraints fields into ...
(MonoGenericParamInfo): ... this.
(mono_generic_param_info, mono_generic_container_get_param_info): New accessors.
* metadata/{class.c, debug-helpers.c, icall.c}: Update to changes.
* metadata/{metadata.c, reflection.c, verify.c}: Likewise.
* dis/get.c: Use new MonoGenericParamInfo accessors.

svn path=/trunk/mono/; revision=131413
2009-04-09 18:25:49 +00:00
Zoltan Varga 186d828a1c 2009-04-09 Zoltan Varga <[email protected]>
* genmdesc.pl: Applied patch by Martin Fuzzey ([email protected]). Sync
	this with the native genmdesc.

svn path=/trunk/mono/; revision=131412
2009-04-09 18:05:32 +00:00
Jonathan Pryor 68272e87a2 * executable.make, library.make: Move the include for tests.make so
that DISTFILES can be properly set (and thus properly distribute the
	  *_test.dll.sources file).  This allows unit tests to actually build
	  and run when building from the tarball.

svn path=/trunk/mcs/; revision=131409
2009-04-09 17:52:52 +00:00
Rusty Howell 5b83837bcd * Update --help output. Now shows default values
svn path=/trunk/mono/; revision=131406
2009-04-09 16:49:59 +00:00
Carlos Alberto Cortez 06a2bf67e1 2009-04-09 Carlos Alberto Cortez <[email protected]>
* CheckedListbox.cs: When executing OnItemClick check that the index
	is different to -1 before trying to retrieve an item using that value.
	Fixes a ArgumentOutOfRangeException thrown when the horizontal
	scrollbar was visible but not needed, and then a clicked was received
	on its area.


svn path=/trunk/mcs/; revision=131404
2009-04-09 16:40:26 +00:00
Sebastien Pouliot 85fbebbc99 In .:
2009-04-09  Sebastien Pouliot  <[email protected]> 

	* System.Net.dll.sources: Remove some unneeded files for the
	build. Add the SL2 specific enums, instead of using the existing
	ones from System.dll. Include Socket_2_1.cs (from System) and use
	the AssemblyInfo.cs for this assembly

In System.Net:
2009-04-09  Sebastien Pouliot  <[email protected]>

	* DnsEndPoint_2_1.cs: Fix header.
	* HttpStatusCode_2_1.cs: New. SL2 (short) version of the enum
	* HttpWebRequest_2_1.cs: Add missing members
	* WebExceptionStatus_2_1.cs: New. SL2 (short) version of the enum
	* WebHeaderCollection_2_1.cs: Implement S.C.IEnumerable


svn path=/trunk/mcs/; revision=131400
2009-04-09 15:52:58 +00:00
Zoltan Varga 9f02df64ad 2009-04-09 Zoltan Varga <[email protected]>
* debug-helpers.c (dis_one): Fix decoding of strings in dynamic images.

svn path=/trunk/mono/; revision=131399
2009-04-09 15:42:20 +00:00
Sebastien Pouliot c3ff040f82 2009-04-09 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Adjust attributes for 2.1


svn path=/trunk/mcs/; revision=131398
2009-04-09 15:35:21 +00:00
Zoltan Varga c47090b0dc 2009-04-09 Zoltan Varga <[email protected]>
* marshal.c (get_runtime_invoke_type): Share enums with their base types.

svn path=/trunk/mono/; revision=131397
2009-04-09 15:31:54 +00:00
Sebastien Pouliot 0d0f61ab9f Remove classes that are not in the final SL2 release. Add some SL2 short-versions of FX enums.
svn path=/trunk/mcs/; revision=131394
2009-04-09 15:22:34 +00:00
Sebastien Pouliot 68dd206d83 In System.Net.Sockets:
2009-04-09  Sebastien Pouliot  <[email protected]>

	* Socket.cs: Split socket class into two files (this one and the
	new Socket_2_1.cs). This let us remove (some) existing #if in the
	sources and avoid (a lot) of new ones for Moonlight.
	* Socket_2_1.cs: Just enough of socket for NET_2_1. This helps
	the tuner not to bring a lot of extra stuff (some visible)
	into Moonlight.
	* SocketAsyncEventArgs.cs: Ifdef out some cases for NET_2_1 so 
	Moonlight can use it's own (smaller) SocketAsyncOperation enum

In .:
2009-04-09  Sebastien Pouliot  <[email protected]>

	* System.dll.sources: Add System.Net.Sockets/Socket_2_1.cs


svn path=/trunk/mcs/; revision=131392
2009-04-09 15:06:42 +00:00
Zoltan Varga 1751e422ff 2009-04-09 Zoltan Varga <[email protected]>
* marshal.c (get_runtime_invoke_type): Share pointers with ints and
	booleans with sbytes.

svn path=/trunk/mono/; revision=131386
2009-04-09 13:45:43 +00:00
Gonzalo Paniagua Javier 085aeed9f4 2009-04-09 Gonzalo Paniagua Javier <[email protected]>
* ecma-provider.cs: remove 'using'.
	* provider.cs: if there's a directory with the base name, read the
	files from there instead of from the .zip file.


svn path=/trunk/mcs/; revision=131376
2009-04-09 05:22:27 +00:00
Rodrigo Kumpera a6d233451f 2009-04-08 Rodrigo Kumpera <[email protected]>
* valid_nested_access_with_multi_array_instance.cs:
	* valid_nested_access_with_array_instance.cs: Regression tests for
	#493068.

svn path=/trunk/mono/; revision=131373
2009-04-09 00:45:20 +00:00
Rodrigo Kumpera 54216914c3 2009-04-08 Rodrigo Kumpera <[email protected]>
* class.c (can_access_instantiation): Verify accesibility of element types
	for arrays and pointers.

	* class.c (can_access_type): Return true if the target class is VAR or MVAR.

	* class.c (mono_method_can_access_method_full): Fix typos in the documentation.

	Fixes #493068.

svn path=/trunk/mono/; revision=131372
2009-04-09 00:45:04 +00:00
Rodrigo Kumpera 28a0aea3c6 2009-04-08 Rodrigo Kumpera <[email protected]>
* verify.c (do_invoke_method): Improve error messages.

svn path=/trunk/mono/; revision=131371
2009-04-09 00:44:49 +00:00
Jonathan Pryor fdc4781276 * Mono.Documentation/monodocer.cs: Use a single IAssemblyResolver
shared amongst all AssemblyDefinitions to resolve assembly/type
	  references with Cecil.  Otherwise, if we have deeply nested
	  directories with cross-directory assembly dependencies, then Cecil
	  won't find the necessary assemblies (e.g. b/bin/Debug/b.dll has a
	  type which inherits from a/bin/Debug/a.dll -- here, we'll have two
	  separate AssemblyDefinitions, and when b.dll's AssemblyDefinition
	  tries to resolve types from a.dll, it fails).
	  See: http://lists.ximian.com/pipermail/mono-devel-list/2009-April/031646.html

svn path=/trunk/mcs/; revision=131370
2009-04-09 00:03:36 +00:00
Jonathan Pryor 43b20cee91 * AssemblyInfo.cs: Building against the local AssemblyInfo.cs broke
sqlmetal, as it couldn't find an IProcessor implementation (as the
	  local AssemblyInfo.cs was missing a [assembly: DbLinq] attribute).
	  Fix so that sqlmetal works again.
	* Makefile: Actually enable NUnit tests.

svn path=/trunk/mcs/; revision=131358
2009-04-08 20:31:14 +00:00
Bill Holmes b6db47a8a9 2009-04-08 Bill Holmes <[email protected]>
* verify.c:  Fixing the MSVC build.

	* aot-runtime.c:  Fixing the MSVC build.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=131356
2009-04-08 20:12:23 +00:00
Bill Holmes 598d0ee0a0 2009-04-08 Bill Holmes <[email protected]>
* libmono.vcproj : Adding mini/mini-gc to the project.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=131355
2009-04-08 20:08:40 +00:00
Jonathan Pryor a5974c2487 * **/* (svn:ignore): Ignore generated files and directories.
* src/**/*: Flush; syncs to DbLinq r1043.

svn path=/trunk/mcs/; revision=131354
2009-04-08 20:07:26 +00:00
Andrés G. Aragoneses fc07b8672b * tuner/Mono.Tuner.csproj:
* linker/Mono.Linker.csproj: Update.

svn path=/trunk/mcs/; revision=131352
2009-04-08 19:42:32 +00:00
Andrés G. Aragoneses e47ecf91aa * tuner/Mono.Tuner.csproj:
* linker/Mono.Linker.csproj: Update.

svn path=/trunk/mcs/; revision=131346
2009-04-08 19:36:25 +00:00
Carlos Alberto Cortez 8092c47ece 2009-04-08 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: If Insert is pressed, change the internal
	overwrite mode for our default value.
	Fixes some bits of #477395.


svn path=/trunk/mcs/; revision=131344
2009-04-08 18:35:01 +00:00
Sebastien Pouliot 8dc7495bbd 2009-04-08 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Simplify get_reflection_caller not to call
	mono_method_get_last_managed (another stack walk) and adjust the
	callers to handle a (should not happen) NULL return value.


svn path=/trunk/mono/; revision=131339
2009-04-08 17:42:08 +00:00
Zoltan Varga 29e8ded9b3 2009-04-08 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Pass i1/i2 arguments as i4 since
	JITted code depends on it.

svn path=/trunk/mono/; revision=131328
2009-04-08 14:53:08 +00:00
Raja R Harinath b196696d61 Add accessors to some MonoGenericParam fields
* dis/get.c: Use new MonoGenericParam accessors.
* metadata/class-internals.h (mono_generic_param_owner): New accessor.
(mono_generic_param_num): Likewise.
(mono_type_get_generic_param_owner): New helper.
(mono_type_get_generic_param_num): New helper.
* metadata/{class.c, icall.c, metadata.c, reflection.c, verify.c}: Use them.
* mini/aot-compiler.c: Use new MonoGenericParam accessors.

svn path=/trunk/mono/; revision=131315
2009-04-08 11:32:16 +00:00
Marek Habersack 251c073ea0 2009-04-08 Marek Habersack <[email protected]>
* ScriptComponentDescriptor.cs: properties/events/references must
	be serialized in alphabetical order. This matches what .NET
	does. Some 3rd party controls depend upon this fact.

svn path=/trunk/mcs/; revision=131314
2009-04-08 11:32:08 +00:00
Raja R Harinath 4c130e355a Reduce memory usage and improve correctness wrt MonoGenericParam
* aot-runtime.c (decode_klass_ref): Simplify generic parameter
handing.  Avoid allocating MonoGenericParams, but use the ones in
the container itself.

svn path=/trunk/mono/; revision=131295
2009-04-08 05:33:06 +00:00
Raja R Harinath 66e02a383a Add a wrapper for MonoGenericContainer.type_params field
* dis/get.c: Use MonoGenericContainer accessor to get the contained
MonoGenericParam.
* metadata/class-internals.h (mono_generic_container_get_param): New wrapper.
* metadata/{class.c, icall.c, metadata.c, verify.c}: Use it.

svn path=/trunk/mono/; revision=131294
2009-04-08 05:32:45 +00:00
Atsushi Eno 96bc4d9560 2009-04-08 Atsushi Enomoto <[email protected]>
* CodeWriter.cs : move into namespace.


svn path=/trunk/mcs/; revision=131285
2009-04-08 04:13:56 +00:00
Atsushi Eno 193b2ab636 2009-04-08 Atsushi Enomoto <[email protected]>
* IdentityElement.cs, NetPeerTcpBindingElement.cs: implemented
	  OnApplyConfiguration().


svn path=/trunk/mcs/; revision=131282
2009-04-08 03:45:57 +00:00
Atsushi Eno 95ba1a6bdb 2009-04-08 Atsushi Enomoto <[email protected]>
* NetTcpBindingTest.cs : fix wrong value expectation.


svn path=/trunk/mcs/; revision=131281
2009-04-08 03:45:22 +00:00
Atsushi Eno 2653dfd944 2009-04-08 Atsushi Enomoto <[email protected]>
* NetPeerTcpBinding.cs : ListenIPAddress is IPAddress here too.


svn path=/trunk/mcs/; revision=131280
2009-04-08 03:44:14 +00:00
Atsushi Eno 05467881a1 2009-04-08 Atsushi Enomoto <[email protected]>
* PeerTransportBindingElement.cs : ListenIPAddress is IPAddress.


svn path=/trunk/mcs/; revision=131279
2009-04-08 03:43:02 +00:00
Atsushi Eno 05189ec264 2009-04-08 Atsushi Enomoto <[email protected]>
* PeerTransportSecuritySettings.cs : new.
	* PeerSecuritySettings.cs : Transport was missing.

	* System.ServiceModel.dll.sources:
	  added PeerTransportSecuritySettings.cs.
	* Makefile: use -r:System.Core in non-2.1 build too.


svn path=/trunk/mcs/; revision=131278
2009-04-08 03:40:15 +00:00
Raja R Harinath 7af86c61db Revert r131263 which caused regressions
svn path=/trunk/mono/; revision=131276
2009-04-08 03:03:17 +00:00
Raja R Harinath 919c57d8b7 Fix gtest-252.cs
* verify.c (mono_type_is_valid_type_in_context): Rewrite to use
the standard case/loop.  In particular, don't complain about
references to generic type definitions.

svn path=/trunk/mono/; revision=131270
2009-04-08 01:50:09 +00:00
Raja R Harinath 21b1508485 update known issues
svn path=/trunk/mcs/; revision=131268
2009-04-08 00:24:14 +00:00
Miguel de Icaza dad6a4160c 2009-04-07 Miguel de Icaza <[email protected]>
* tasklets.c: Return exceptions in the out argument.

svn path=/trunk/mono/; revision=131267
2009-04-07 23:54:59 +00:00
Miguel de Icaza 9171a3ab9c 2009-04-07 Miguel de Icaza <[email protected]>
* Mono.Tasklets/Mono.Tasklets/Continuation.cs: Implement
	IDisposable.

svn path=/trunk/mcs/; revision=131266
2009-04-07 23:43:19 +00:00
Zoltan Varga a50a4f95c0 2009-04-08 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Fix alignment in the LOCALLOC_IMM
	opcode. Use pointer types in more places instead of casting them to
	integers.

	* mini-llvm-cpp.cpp (mono_llvm_create_ee): Create a pass manager to run
	optimizations.
	(mono_llvm_optimize_method): New helper function to optimize a method.

	* method-to-ir.c (mono_emit_widen_call_res): Extract the call result
	widening code so it could be called from more places.
	(mono_method_to_ir): Call mono_emit_widne_call_res () in several more
	code paths in the call opcodes.

svn path=/trunk/mono/; revision=131265
2009-04-07 22:52:38 +00:00
Rodrigo Kumpera def054f2f1 2009-04-07 Rodrigo Kumpera <[email protected]>
* loader.c (method_from_memberref): If ít's a memberref to a typespec inflate
	the signature and search the inflated type.

	We can't blindly search the generic type definition or expect that the signature
	will be inflated as both options can happen. The only solution is to search the
	inflated type against the inflated signature.

	Fixes #492778.

svn path=/trunk/mono/; revision=131263
2009-04-07 22:30:00 +00:00
Miguel de Icaza 0b6b21ada6 Add to the build
svn path=/trunk/mcs/; revision=131262
2009-04-07 22:13:52 +00:00
Zoltan Varga 9bb9f96f12 2009-04-07 Zoltan Varga <[email protected]>
* debug-helpers.c (dis_one): Decode string arguments.

svn path=/trunk/mono/; revision=131261
2009-04-07 21:49:54 +00:00
Zoltan Varga c55806f052 2009-04-07 Zoltan Varga <[email protected]>
* mono-gdb.py (ObjectPrinter.__init__): Update to latest archer api.

svn path=/trunk/mono/; revision=131255
2009-04-07 20:00:13 +00:00
Ankit Jain fd1dd883c0 Fix bug #491828.
* ToolTask.cs (LogEventsFromTextOutput): Log even in case of
unrecognized errors.

svn path=/trunk/mcs/; revision=131250
2009-04-07 19:04:23 +00:00
Ankit Jain 3d1aae67eb Fix bug #487155.
* StringHelper.cs: Handle octal values in strings.
Patch from  Stephen Gennard ([email protected])

svn path=/trunk/mcs/; revision=131249
2009-04-07 18:34:18 +00:00
Paolo Molaro 0cf0bbc5e0 Mon Apr 6 14:19:54 CEST 2009 Paolo Molaro <[email protected]>
* exceptions-amd64.c, mini-amd64.h: amd64 support code for continuations.


svn path=/trunk/mono/; revision=131239
2009-04-07 15:59:02 +00:00
Rodrigo Kumpera c8c14f8fa6 2009-04-07 Rodrigo Kumpera <[email protected]>
* pedump.c (dump_verify_info): Dump type name correctly.

svn path=/trunk/mono/; revision=131235
2009-04-07 15:00:14 +00:00
Rodrigo Kumpera 3591295aef 2009-04-07 Rodrigo Kumpera <[email protected]>
* valid_eh_block_with_no_instructions_after.il: Regression test
	for #492494.

svn path=/trunk/mono/; revision=131234
2009-04-07 14:35:47 +00:00
Rodrigo Kumpera 6173c243c4 2009-04-07 Rodrigo Kumpera <[email protected]>
* verify.c (mono_method_verify): Don't init code slots for exception boundaries if they
	are larger than code size.

	This can happen in valid code if the try/catch block is not followed by any instruction
	and do a backward branch on the leave instruction.

	Fixes #492494.

svn path=/trunk/mono/; revision=131233
2009-04-07 14:35:36 +00:00
Marek Habersack a8532b94ed 2009-04-07 Marek Habersack <[email protected]>
* ScriptComponentDescriptor.cs: new values replace old in
	AddEntry.

svn path=/trunk/mcs/; revision=131225
2009-04-07 13:05:43 +00:00
Atsushi Eno e596ffbe11 2009-04-07 Atsushi Enomoto <[email protected]>
* TcpTransportBindingElement.cs : check build-ability before
	  actually building channels.
	* ConnectionOrientedTransportBindingElement.cs : fixed build-ability
	  conditions according to MSDN.

	* TcpTransportBindingElementTest.cs : more can-build tests.

	* NetTcpBindingTest.cs : new test.

	* System.ServiceModel_test.dll.sources: added NetTcpBindingTest.cs.


svn path=/trunk/mcs/; revision=131222
2009-04-07 12:11:53 +00:00
Atsushi Eno b08e4e6b06 2009-04-07 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : add duplex channels as channel candidates.


svn path=/trunk/mcs/; revision=131221
2009-04-07 12:07:05 +00:00
Atsushi Eno 6503ca01ab added IOnlineStatus.
svn path=/trunk/mcs/; revision=131220
2009-04-07 12:05:46 +00:00
Atsushi Eno ca354a4d73 2009-04-07 Atsushi Enomoto <[email protected]>
* IPeerResolverContract.cs: fix SessionMode value.

	(bah, bad manner; no ChangeLog previously.)

	* CustomPeerResolverServiceTest.cs : added contract check.


svn path=/trunk/mcs/; revision=131219
2009-04-07 12:02:21 +00:00
Raja R Harinath dbf39ce7fb disable nunit tests till they compile
svn path=/trunk/mcs/; revision=131217
2009-04-07 11:10:14 +00:00
Raja R Harinath 1d50386bfb Ensure Test/ exists in dist tarballs and checkouts
svn path=/trunk/mcs/; revision=131216
2009-04-07 11:06:59 +00:00
Marek Habersack 5a503b40b1 2009-04-07 Marek Habersack <[email protected]>
* Control.cs: ApplyTheme - make sure Page is not null before using
	it. Fixes bug #492666

svn path=/trunk/mcs/; revision=131214
2009-04-07 10:56:27 +00:00
Marek Habersack 53b225fc4b 2009-04-07 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: GenerateExpressionFromString doesn't
	assume that the passed member is a property anymore. Fixes bug
	#492252

svn path=/trunk/mcs/; revision=131210
2009-04-07 10:44:56 +00:00
Atsushi Eno b4731ac3cc 2009-04-07 Atsushi Enomoto <[email protected]>
* XmlDictionaryReaderQuotasElement.cs, NetTcpBindingElement.cs:
	  implement OnApplyConfiguration().


svn path=/trunk/mcs/; revision=131202
2009-04-07 08:57:40 +00:00
Marek Habersack 8791646ca9 Code formatting
svn path=/trunk/mcs/; revision=131201
2009-04-07 08:44:21 +00:00
Marek Habersack a8ecbec688 2009-04-07 Marek Habersack <[email protected]>
* TreeView.js: removed nodeText parameter from the JS calls.

	* TreeView.cs: encode | characters into U+007C, so that
	RaiseCallbackEvent doesn't get confused.
	Removed nodeText parameter from the JS calls.

svn path=/trunk/mcs/; revision=131196
2009-04-07 07:05:06 +00:00
Gonzalo Paniagua Javier 6b9583ba66 2009-04-07 Gonzalo Paniagua Javier <[email protected]>
* ClientProxyHandler.cs: set cacheability to public.


svn path=/trunk/mcs/; revision=131195
2009-04-07 06:56:55 +00:00
Gonzalo Paniagua Javier 1b8ce0ac74 remove CWL
svn path=/trunk/mcs/; revision=131187
2009-04-07 03:38:57 +00:00
Gonzalo Paniagua Javier de03d6a600 2009-04-06 Gonzalo Paniagua Javier <[email protected]>
* TreeNode.cs: reset the path data for all child nodes too.
	* TreeView.cs: HtmlAttribute encode the node text. When rebuilding the
	node tree, set the correct index for the nodes so that the Path is
	correct.


svn path=/trunk/mcs/; revision=131186
2009-04-07 03:38:00 +00:00
Jonathan Pryor 5b34835c42 * . (svn:ignore): Ignore generated files.
* AssemblyInfo.cs: Added; Assembly-level attributes for sqlmetal.exe.
	* Makefile: Correct the "namespace" of the embedded resource files;
	  build NUnit tests for sqlmetal.exe.
	* sqlmetal.exe.sources: Build against the local AssemblyInfo.cs, not
	  DbMetal's AssemblyInfo.cs file.
	* sqlmetal_test.dll.sources: Added; source files for the NUnit test.
	* Test/AssemblyInfo.cs: Added; Assembly-level attributes for the NUnit
	  test assembly.

svn path=/trunk/mcs/; revision=131184
2009-04-07 01:23:14 +00:00
Gonzalo Paniagua Javier 5159f09ae4 2009-04-06 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: send REST after PASV to avoid some servers
	forgetting aboout it.
	Bug #491590 fixed.


svn path=/trunk/mcs/; revision=131180
2009-04-07 00:05:35 +00:00
Rodrigo Kumpera cbb555bb88 2009-04-06 Rodrigo Kumpera <[email protected]>
* unverifiable_throw_with_unboxed_generic_argument.il: Regression test
	for #487738.

svn path=/trunk/mono/; revision=131175
2009-04-06 22:54:50 +00:00
Rodrigo Kumpera 1db0ab83ff 2009-04-06 Rodrigo Kumpera <[email protected]>
* verify.c (do_throw): Don't allow an unboxed generic param ar argument.

	Fixes #487738.

svn path=/trunk/mono/; revision=131174
2009-04-06 22:54:34 +00:00
Gonzalo Paniagua Javier 56ee8f4fb5 Contribute
svn path=/trunk/mcs/; revision=131166
2009-04-06 21:41:57 +00:00
Carlos Alberto Cortez 5bb916f237 2009-04-06 Carlos Alberto Cortez <[email protected]>
* ListView.cs: In EnsureVisible avoid any direct access to items if we
	are using virtual mode - otherwise use the bounds stored in a specific
	item in a given index. This is specially important when using groups
	or when items are re-arranged, since the position in the items
	collection can be different than that one being displayed.
	Fixes the rest of ##491978.


svn path=/trunk/mcs/; revision=131163
2009-04-06 21:08:30 +00:00
Sebastien Pouliot 5974be4cc0 2009-04-06 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Remove AllowPartiallyTrustedCallers from NET_2_1
	build (not in SL2) and open our internals to System.Xml.Serialization
	(only in NET_2_1) since MS SL2 SDK requires it.	Test case @
	http://demos.devexpress.com/AgDataGridDemos/


svn path=/trunk/mcs/; revision=131162
2009-04-06 20:53:24 +00:00
Zoltan Varga 9fff2d12d7 2009-04-06 Zoltan Varga <[email protected]>
* test-xdb.py: New file, tester script for xdb.

svn path=/trunk/mono/; revision=131161
2009-04-06 20:52:45 +00:00
Zoltan Varga d526d18756 2009-04-06 Zoltan Varga <[email protected]>
* mono-gdb.py (stringify_class_name): Handle classes without a namespace
	correctly.

svn path=/trunk/mono/; revision=131160
2009-04-06 20:52:39 +00:00
Zoltan Varga f457b9ab02 Add .so files generated by AOT.
svn path=/trunk/mono/; revision=131159
2009-04-06 20:44:24 +00:00
Zoltan Varga ffd56e6434 2009-04-06 Zoltan Varga <[email protected]>
* mono-gdb.py: Update after the changes to dwarfwriter.c.

svn path=/trunk/mono/; revision=131158
2009-04-06 20:42:42 +00:00
Zoltan Varga 89c0ea6ce4 2009-04-06 Zoltan Varga <[email protected]>
* dwarfwriter.c: Use _ to separate class name
	components as gdb can't handle '.'. Represent reference variables
	as 'class <NAME>&'.

svn path=/trunk/mono/; revision=131157
2009-04-06 20:42:33 +00:00
Jonathan Pryor bbed2cf5d2 * mdoc.5: Document //code/@src attribute.
svn path=/trunk/mono/; revision=131156
2009-04-06 20:36:21 +00:00
Sebastien Pouliot e16cb8005d 2009-04-06 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Fix typo while comparing second method names
	in can_avoid_corlib_reflection_delegate_optimization


svn path=/trunk/mono/; revision=131152
2009-04-06 19:53:11 +00:00
Rodrigo Kumpera 9d79b22498 2009-04-06 Rodrigo Kumpera <[email protected]>
* metadata.c (do_mono_metadata_parse_type): Fail if we are decoding
	a MVAR using a class context.

	Fixes #490335.

svn path=/trunk/mono/; revision=131149
2009-04-06 19:43:07 +00:00
Carlos Alberto Cortez 68cb16acfc 2009-04-06 Carlos Alberto Cortez <[email protected]>
* ThemeWin32Classic.cs: Include the previous check for ListView in a
	2.0 define as needed.


svn path=/trunk/mcs/; revision=131148
2009-04-06 19:42:07 +00:00
Carlos Alberto Cortez af2522db47 2009-04-06 Carlos Alberto Cortez <[email protected]>
* ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
	Fixes part of #491978.


svn path=/trunk/mcs/; revision=131145
2009-04-06 18:48:59 +00:00
Carlos Alberto Cortez 348074abaf 2009-04-06 Carlos Alberto Cortez <[email protected]>
* ToolTip.cs: New fields to store the title/icon information.
	* ThemeWin32Classic.cs: Implement support for tooltip's title and
	icon.
	Fixes #491978.


svn path=/trunk/mcs/; revision=131143
2009-04-06 18:26:24 +00:00
Marek Habersack b31a989a87 2009-04-06 Marek Habersack <[email protected]>
* BuildManager.cs: make sure that precompiled is not null before
	using it in GetPrecompiledType.

svn path=/trunk/mcs/; revision=131138
2009-04-06 18:03:04 +00:00
Marek Habersack 6026f7a60a 2009-04-06 Marek Habersack <[email protected]>
* HttpRuntime.cs: added a new internal static property
	IsDebuggingEnabled

	* HttpContext.cs: IsDebuggingEnabled now calls
	HttpRuntime.IsDebuggingEnabled

2009-04-06  Marek Habersack  <[email protected]>

	* Page.cs: ProcessRaiseCallbackEvent and ProcessGetCallbackResult
	now return full exception trace if one is caught and we're running
	in debugging mode.

2009-04-06  Marek Habersack  <[email protected]>

	* TreeView.js: TreeView_ToggleExpand now takes more parameters - a
	full definition of treeview's node contents.
	Added new function, TreeView_PopulateNode, which partially takes
	over role of the PopulateNode function generated in
	TreeView.OnPreRender (see below). Fixes bug #492307

	* TreeView.cs: RaiseCallbackEvent needs to recreate the event
	target's parental tree all the way from the root to the node and
	populate only the leaf (requested) node. This avoids calling the
	TreeNodePopulate handler more times than needed. Fixes bug #492307
	OnPreRender: moved the script code to constants and the script
	body is now generated using StringBuilder instead of a series of
	String.Format calls.
	GetClientExpandEvent: adjusted code for new TreeView JavaScript
	API.

svn path=/trunk/mcs/; revision=131137
2009-04-06 18:02:20 +00:00
Atsushi Eno 7dd3ce9331 2009-04-06 Atsushi Enomoto <[email protected]>
* ServiceDocumentFormatter.cs
	  Workspace.cs
	  Atom10FeedFormatter.cs
	  AtomPub10ServiceDocumentFormatter.cs
	  ResourceCollectionInfo.cs
	  CategoriesDocument.cs
	  ServiceDocument.cs : implemented most of reader parts.

	* AtomPub10ServiceDocumentFormatterTest.cs : add ReadFrom() test.


svn path=/trunk/mcs/; revision=131133
2009-04-06 16:43:50 +00:00
Zoltan Varga 847648a2ce 2009-04-06 Zoltan Varga <[email protected]>
* object.c (mono_class_compute_gc_descriptor): Make this non-static.

	* domain-internals.h (struct _MonoJitInfo): Add a 'gc_info' field.

	* gc-internal.h (MonoGCCallbacks): New stucture containing the callback
	functions supplied by the JIT for the SGEN GC.

	* sgen-gc.c: Call the callbacks supplied by the JIT to do stack marking.

svn path=/trunk/mono/; revision=131132
2009-04-06 15:28:03 +00:00
Zoltan Varga 02547ee785 2009-04-06 Zoltan Varga <[email protected]>
* mini.h (MonoCompile): Add locals_min_stack_offset/locals_max_stack_offset.

	* mini-amd64.c (mono_arch_allocate_vars): Save min/max stack offset.
	
	* mini-gc.c: New file, contains the SGEN GC related parts of the JIT.

	* gc-test.cs: New file with GC stack marking tests.

svn path=/trunk/mono/; revision=131131
2009-04-06 15:24:48 +00:00
Zoltan Varga 9808b5eefc 2009-04-06 Zoltan Varga <[email protected]>
* mini.h (MonoCompile): Add locals_min_stack_offset/locals_max_stack_offset.

	* mini-amd64.c (mono_arch_allocate_vars): Save min/max stack offset.
	
	* mini-gc.c: New file, contains the SGEN GC related parts of the JIT.

	* gc-test.cs: New file with GC stack marking tests.

svn path=/trunk/mono/; revision=131130
2009-04-06 15:24:35 +00:00
Zoltan Varga 9897125f96 2009-04-06 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_output_basic_block): Fix int->float conversion of
	negative numbers for vfp.

	* basic-float.cs: Add a test.

svn path=/trunk/mono/; revision=131127
2009-04-06 15:14:46 +00:00
Zoltan Varga 05dc29d30a 2009-04-06 Zoltan Varga <[email protected]>
* arm/arm-vfp-codegen.h: Add ARM_FSITOS/ARM_FSITOD.

svn path=/trunk/mono/; revision=131125
2009-04-06 15:09:57 +00:00
Massimiliano Mantione ac8634ec12 Added monitor contention profiling.
svn path=/trunk/mono/; revision=131123
2009-04-06 13:37:32 +00:00
Massimiliano Mantione c7300cb77c Added calls to profile monitor contentions.
svn path=/trunk/mono/; revision=131122
2009-04-06 13:37:26 +00:00
Massimiliano Mantione 9bb7237fe7 Added support for profiling monitor contentions.
svn path=/trunk/mono/; revision=131121
2009-04-06 13:37:14 +00:00
Paolo Molaro 123970fb9f Mon Apr 6 14:37:32 CEST 2009 Paolo Molaro <[email protected]>
* Makefile, Mono.Tasklets: managed part of continuation support.


svn path=/trunk/mcs/; revision=131112
2009-04-06 12:38:44 +00:00
Atsushi Eno b3852bc8a5 2009-04-06 Atsushi Enomoto <[email protected]>
* Workspace.cs, ResourceCollectionInfo.cs,
	  CategoriesDocument.cs, ServiceDocument.cs : use common internal
	  SyndicationExtension class for extensions.


svn path=/trunk/mcs/; revision=131111
2009-04-06 12:37:50 +00:00
Paolo Molaro 5fd393035d Mon Apr 6 14:12:10 CEST 2009 Paolo Molaro <[email protected]>
* exceptions-x86.c, mini-x86.h: x86 support code for continuations.


svn path=/trunk/mono/; revision=131110
2009-04-06 12:13:24 +00:00
Paolo Molaro 0be4b9d8f7 Mon Apr 6 14:09:53 CEST 2009 Paolo Molaro <[email protected]>
* tasklets.h, tasklets.c, mini.h, mini.c, Makefile.am: arch-indep
	part of tasklet/continuation support.


svn path=/trunk/mono/; revision=131109
2009-04-06 12:12:28 +00:00
Atsushi Eno 3d7552a35f 2009-04-06 Atsushi Enomoto <[email protected]>
* AtomPub10CategoriesDocumentFormatter.cs, Atom10FeedFormatter.cs,
	  CategoriesDocument.cs : ongoing implementation (handle categories).

	* AtomPub10CategoriesDocumentFormatterTest.cs : new test.
	* AtomPub10ServiceDocumentFormatterTest.cs : add reader tests.

	* System.ServiceModel.Web_test.dll.sources : added
	  AtomPub10CategoriesDocumentFormatterTest.


svn path=/trunk/mcs/; revision=131105
2009-04-06 10:37:45 +00:00
Marek Safar d51d6de1a7 New tests.
svn path=/trunk/mcs/; revision=131104
2009-04-06 10:36:12 +00:00
Marek Safar bdd0072aee 2009-04-06 Marek Safar <[email protected]>
A fix for bug #492329
	* expression.cs (New): Load variable when assigning type parameter
	to ref variable.


svn path=/trunk/mcs/; revision=131102
2009-04-06 10:35:45 +00:00
Marek Safar 112be08211 2009-04-06 Marek Safar <[email protected]>
A fix for bug #488960
	* decl.cs: Compare MVAR types using non-null values.


svn path=/trunk/mcs/; revision=131098
2009-04-06 09:04:19 +00:00
Miguel de Icaza 78d06c6587 2009-04-05 Miguel de Icaza <[email protected]>
* src/gpath.c: Avoid situations where we add the separator if one
	of the elements is the separator.

svn path=/trunk/mono/; revision=131083
2009-04-06 00:11:54 +00:00
Jonathan Pryor fe78acafcb * executable.make: Support HAS_NUNIT_TEST variable; if set, will build
an NUnit test assembly during 'make test' and will run the tests
	  within the NUnit test assembly during 'make run-test'.
	* library.make: Split out NUnit test rules/logic into tests.make.
	* Makefile: Distribute tests.make.
	* README.makefiles: Document HAS_NUNIT_TEST for executable.make,
	  documenting how to have NUnit tests for executables.
	* tests.make: Added; NUnit test logic rules.

svn path=/trunk/mcs/; revision=131072
2009-04-05 13:33:36 +00:00
Zoltan Varga a01bd7e478 2009-04-05 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Move the handling of
	amd64 opcodes inside an ifdef.

svn path=/trunk/mono/; revision=131068
2009-04-05 11:44:02 +00:00
Zoltan Varga 5a29ed094d 2009-04-04 Zoltan Varga <[email protected]>
* mini-llvm-cpp.h: New header file for mini-llvm-cpp.cpp.

svn path=/trunk/mono/; revision=131067
2009-04-05 11:39:19 +00:00
Zoltan Varga c185e1b4ef 2009-04-05 Zoltan Varga <[email protected]>
* mono-gdb.py: Handle superclasses in the pretty printer.

svn path=/trunk/mono/; revision=131063
2009-04-05 00:28:01 +00:00
Zoltan Varga a9fdac157f 2009-04-05 Zoltan Varga <[email protected]>
* dwarfwriter.c: Emit inheritance information for classes, emit fields
	of complex types.

svn path=/trunk/mono/; revision=131061
2009-04-05 00:27:55 +00:00
Zoltan Varga 2a707a2b94 2009-04-05 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_type): Emit the class info for classes.

svn path=/trunk/mono/; revision=131060
2009-04-04 23:57:27 +00:00
Gonzalo Paniagua Javier 69a764bab3 fix the 1.1 build
svn path=/trunk/mcs/; revision=131056
2009-04-04 20:30:28 +00:00
Gonzalo Paniagua Javier 6ab8340897 2009-04-04 Gonzalo Paniagua Javier <[email protected]>
* AssemblyResourceLoader.cs: MS sets cacheability to public. Add
	Last-Modified header and return 304 if validating max-age=0 or
	If-Modified-Since succeeds.


svn path=/trunk/mcs/; revision=131053
2009-04-04 19:53:26 +00:00
Miguel de Icaza 2462ce6dd4 2009-04-03 Miguel de Icaza <[email protected]>
* mono-filemap.c: Move mono_file_unmap for the not-mmap case to
	the mono-filemap.c file so it can be plugged in platform-specific
	code as well. 

svn path=/trunk/mono/; revision=131031
2009-04-03 23:26:35 +00:00
Rodrigo Kumpera 7695f4e618 2009-04-03 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Fix table offset calculation.

	* cli-tables-tests.md: Add more tests for the module table.

svn path=/trunk/mono/; revision=131027
2009-04-03 22:27:03 +00:00
Rodrigo Kumpera 1487d371b3 2009-04-03 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the modules table.

svn path=/trunk/mono/; revision=131026
2009-04-03 22:26:50 +00:00
Rodrigo Kumpera c98cbbadf5 2009-04-03 Rodrigo Kumpera <[email protected]>
* strenc.h:
	* strenc.c: Add mono_utf8_validate_and_len_with_bounds.

svn path=/trunk/mono/; revision=131025
2009-04-03 22:26:38 +00:00
Zoltan Varga cc66aca9e7 2009-04-04 Zoltan Varga <[email protected]>
* Makefile.am (AM_CXXFLAGS): Add GLIB_CFLAGS to this.

	* mini-llvm-cpp.h: New header file for mini-llvm-cpp.cpp.

	* mini-llvm.c: Remove unused fields from EmitContext, fix memory leaks.

svn path=/trunk/mono/; revision=131024
2009-04-03 22:24:29 +00:00
Zoltan Varga b74cae6b7d 2009-04-04 Zoltan Varga <[email protected]>
* ssa.c (mono_ssa_compute): Fix some memory leaks.

svn path=/trunk/mono/; revision=131023
2009-04-03 22:24:16 +00:00
Andrés G. Aragoneses a783dc62d6 oops
svn path=/trunk/mono/; revision=131020
2009-04-03 21:55:50 +00:00
Andrés G. Aragoneses 9e9f4d421c 2009-04-03 Andrés G. Aragoneses <[email protected]>
* monolinker.1: Document -m modifier.


svn path=/trunk/mono/; revision=131017
2009-04-03 21:42:37 +00:00
Andrés G. Aragoneses 966c5ee902 2009-04-03 Andrés G. Aragoneses <[email protected]>
* Mono.Tuner/InjectSecurityAttributes.cs: Show a warning
	when the secattr file is not found.


svn path=/trunk/mcs/; revision=131014
2009-04-03 21:15:08 +00:00
Gert Driesen cdf08abc9d * HttpRuntime.cs: Avoid ANE on Windows when HttpRuntime is used
outside of ASP.NET. Fixed compiler warning by setting
assemblyMappingEnabled.

svn path=/trunk/mcs/; revision=131007
2009-04-03 19:37:23 +00:00
Atsushi Eno 44bbb1719b 2009-04-03 Atsushi Enomoto <[email protected]>
* ServiceDocumentFormatter.cs
	  Workspace.cs
	  AtomPub10ServiceDocumentFormatter.cs
	  ResourceCollectionInfo.cs
	  CategoriesDocument.cs
	  ServiceDocument.cs : ongoing implementation.

	* System.ServiceModel.Web_test.dll.sources : added
	  ServiceDocumentTest and AtomPub10ServiceDocumentFormatterTest.


svn path=/trunk/mcs/; revision=130991
2009-04-03 17:35:11 +00:00
Marek Habersack 36b91af2a3 2009-04-03 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: don't throw NREX when the passed type
	doesn't have a parameterless constructor in
	ShouldGenerateScript. Fixes bug #485435

svn path=/trunk/mcs/; revision=130982
2009-04-03 16:38:25 +00:00
Marek Habersack 6621e0b2f2 2009-04-03 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: CustomValidatorEvaluateIsValid calls the
	client-side evaluation function even if ControlToValidate is not
	set. Fixes bug #485458

svn path=/trunk/mcs/; revision=130979
2009-04-03 16:02:03 +00:00
Marek Habersack ca5554b9ec 2009-04-03 Marek Habersack <[email protected]>
* SessionSQLServerHandler.cs: recreate connection after database
	became unavailable but the session handler is still alive. Fixes
	bug #491508. Patch from Hubert Fongarnand
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=130972
2009-04-03 14:49:12 +00:00
Marek Habersack 505ca45601 2009-04-03 Marek Habersack <[email protected]>
* AspParser.cs: local copy of checksum generated by the tokenizer
	is made right after parsing is done.

	* AspGenerator.cs: set tparser.MD5Checksum in Parse instead of in
	InitParser. Avoids empty checksums in #pragma checksum.

svn path=/trunk/mcs/; revision=130971
2009-04-03 14:34:36 +00:00
Zoltan Varga 853c9573cd 2009-04-03 Zoltan Varga <[email protected]>
* mini.c mini-amd64.c method-to-ir.c: Use COMPILE_LLVM in a few more places.

	* mini-llvm.c: Update comments.

svn path=/trunk/mono/; revision=130969
2009-04-03 14:16:58 +00:00
Zoltan Varga 3052156660 2009-04-03 Zoltan Varga <[email protected]>
* mini.h (COMPILE_LLVM): New macro.

	* decompose.c (mono_decompose_opcode): Use the COMPILE_LLVM macro.

	* ssa.c (mono_ssa_compute): Ditto.

	* unwind.c (mono_unwind_get_ops_from_fde): New helper function to extract
	the unwind ops from a DWARF FDE.

	* mini-llvm.c: Implement generation of unwind info for LLVM compiled
	methods by extracting the dwarf unwind ops from the unwind info generated
	by LLVM.

svn path=/trunk/mono/; revision=130967
2009-04-03 14:06:27 +00:00
Jb Evain 757dbaa5f4 2009-04-03 Jb Evain <[email protected]>
* EnumerableTest.cs: test for bug 491841.


svn path=/trunk/mcs/; revision=130963
2009-04-03 10:58:05 +00:00
Jb Evain db2a0eb2fb 2009-04-03 Jb Evain <[email protected]>
* Enumerable.cs (Cast): fix for when casted enumerator is already
	of the appropriate type.


svn path=/trunk/mcs/; revision=130961
2009-04-03 10:48:28 +00:00
Zoltan Varga 556928a589 2009-04-03 Zoltan Varga <[email protected]>
* scripts/patch-quiet.sh: Process LTCXXCOMPILE too.

svn path=/trunk/mono/; revision=130958
2009-04-03 09:59:44 +00:00
Atsushi Eno dedaea465d add MIT lines.
svn path=/trunk/mcs/; revision=130955
2009-04-03 09:23:11 +00:00
Atsushi Eno 65d54b9889 2009-04-03 Atsushi Enomoto <[email protected]>
* ServiceDocumentFormatter.cs
	  InlineCategoriesDocument.cs
	  AtomPub10ServiceDocumentFormatter_1.cs
	  Workspace.cs
	  AtomPub10CategoriesDocumentFormatter.cs
	  ReferencedCategoriesDocument.cs
	  CategoriesDocumentFormatter.cs
	  AtomPub10ServiceDocumentFormatter.cs
	  ResourceCollectionInfo.cs
	  CategoriesDocument.cs
	  ServiceDocument.cs : stubs (new in 3.5 SP1).

	* System.ServiceModel.Web.dll.sources : added 3.5 SP1 atompp stuff.


svn path=/trunk/mcs/; revision=130946
2009-04-03 08:20:01 +00:00
Federico Di Gregorio 97ce63b31e XDocumentType SYSTEMID fix
svn path=/trunk/mcs/; revision=130943
2009-04-03 07:37:19 +00:00
Jb Evain 6529ceed53 oos, forgot a part of the patch
svn path=/trunk/mcs/; revision=130942
2009-04-03 07:21:25 +00:00
Carlos Alberto Cortez ed038c79d7 2009-04-03 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: When removing a tab that was previously selected, set
	internally the value of selected_index to -1, to avoid trying to
	access the previous one when trying to set the new one (and was
	already removed from the collection). This is what .net seems to do
	too.
	Fixes #490937.


svn path=/trunk/mcs/; revision=130931
2009-04-03 04:15:18 +00:00
Zoltan Varga b7b2bf505c 2009-04-03 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Enable support for non-IMT virtual
	calls.

	* mini-amd64.c (mono_arch_get_vcall_slot): Handle more kinds of the SIB
	addressing modes.

svn path=/trunk/mono/; revision=130911
2009-04-02 22:37:48 +00:00
Zoltan Varga 47068c212a 2009-04-03 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h: Add macros for decoding the SIB byte.

svn path=/trunk/mono/; revision=130910
2009-04-02 22:37:35 +00:00
Marek Habersack 7766743366 2009-04-03 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: added code in the static constructor
	to enable retrieving application settings via
	ApplicationSettingsBase from within asp.net applications. Fixes
	bug #491531

	* ApplicationSettingsConfigurationFileMap.cs: added.

2009-04-03  Marek Habersack  <[email protected]>

	* CustomizableFileSettingsProvider.cs: added a way for System.Web
	to specify path to the current Web.config. Fixes bug #491531

svn path=/trunk/mcs/; revision=130909
2009-04-02 22:35:28 +00:00
Jb Evain 676ee8cc81 2009-04-03 Jb Evain <[email protected]>
* Mono.Cecil.Metadata/BlobHeap.cs
	* Mono.Cecil.Metadata/MetadataWriter.cs:
		do a better job at emitting a blob heap.


svn path=/trunk/mcs/; revision=130908
2009-04-02 22:30:20 +00:00
Carlos Alberto Cortez d4a62261a2 2009-04-02 Carlos Alberto Cortez <[email protected]>
* ClipboardTest.cs: New rrich text format test, and also re-name the 
	previous test to be a little more informative. Also clear the data 
	we have put in the clipboard before returning.


svn path=/trunk/mcs/; revision=130903
2009-04-02 20:44:03 +00:00
Carlos Alberto Cortez a4f6c0d819 2009-04-02 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
	separated, and we cannot fallback on Text if Rtf is requested but not
	present.
	* Clipboard.cs: Actually use the format specified by our user when
	putting data.


svn path=/trunk/mcs/; revision=130902
2009-04-02 20:40:48 +00:00
Zoltan Varga 02804ba969 2009-04-02 Zoltan Varga <[email protected]>
* Makefile.am (llvm_sources): Enable this.

svn path=/trunk/mono/; revision=130899
2009-04-02 19:56:47 +00:00
Zoltan Varga 9b4d0b4678 2009-04-02 Zoltan Varga <[email protected]>
* configure.in: Move the call to AC_PROG_CXX earlier and enable it again.

svn path=/trunk/mono/; revision=130898
2009-04-02 19:56:40 +00:00
Zoltan Varga 7a36b81b54 2009-04-02 Zoltan Varga <[email protected]>
* configure.in: Disable the call to AC_PROG_CXX for now.

svn path=/trunk/mono/; revision=130896
2009-04-02 19:15:30 +00:00
Zoltan Varga 1638bd8828 2009-04-02 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Add support for compiling with LLVM,
	failing back to the JIT if something cannot be handled.

	* mini-amd64.c (mono_arch_emit_call): Emit the arguments more simple when
	compiling with LLVM.

	* decompose.c (mono_decompose_opcode): Avoid decomposing some opcodes when
	compiling with LLVM.

	* method-to-ir.c (mono_method_to_ir): Avoid decomposing SWITCH when
	compiling with LLVM.

	* mini-ops.h: Add a few opcodes needed by LLVM.

	* dwarfwriter.c (mono_dwarf_writer_emit_method): Avoid crashes if the method
	has no unwind info.

	* mini-llvm.c mini-llvm-cpp.cpp: New files containing the experimental llvm
	backend.

svn path=/trunk/mono/; revision=130895
2009-04-02 19:06:12 +00:00
Zoltan Varga ef718e56f1 2009-04-02 Zoltan Varga <[email protected]>
* configure.in: Add an ENABLE_LLVM autoconf define.

svn path=/trunk/mono/; revision=130894
2009-04-02 19:06:05 +00:00
Zoltan Varga ff5c070a32 2009-04-02 Zoltan Varga <[email protected]>
* configure.in: Add --enable-llvm argument to enable the experimental
	LLVM back end.

svn path=/trunk/mono/; revision=130893
2009-04-02 19:05:58 +00:00
Marek Habersack 43d71e76c6 2009-04-02 Marek Habersack <[email protected]>
* data/Makefile.am: added system.web.mvc.pc{.in}

	* configure.in: added data/system.web.mvc.pc to AC_OUTPUT

	* data/system.web.mvc.pc.in: added

svn path=/trunk/mono/; revision=130891
2009-04-02 18:59:04 +00:00
Jb Evain e8d5dfcfd1 optimize a bit the fix to avoid double checking
svn path=/trunk/mcs/; revision=130886
2009-04-02 17:39:17 +00:00
Jb Evain 65f396a229 2009-04-02 Jb Evain <[email protected]>
* DictionaryTest.cs: add test for bug #328036.


svn path=/trunk/mcs/; revision=130885
2009-04-02 17:33:53 +00:00
Jb Evain c0deaf8193 2009-04-02 Jb Evain <[email protected]>
* Dictionary.cs (ValueCollection.CopyTo): fix for copying to
	an object array. Based on a patch by Tobias Grimm <[email protected]>.
	Fixes bug #328036.


svn path=/trunk/mcs/; revision=130884
2009-04-02 17:33:12 +00:00
Sebastien Pouliot e4683bfeab 2009-04-02 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: allow System.Runtime.Serialization to see 
	mscorlib's internals. Fix Encoding.get_CodeBase (and likely
	others too)


svn path=/trunk/mcs/; revision=130879
2009-04-02 15:47:39 +00:00
Marek Habersack 1dca373f1f 2009-04-02 Marek Habersack <[email protected]>
* CompilationException.cs: skip warnings in ErrorMessage and
	ErrorLines

	* BuildManager.cs: when an error occurs while compiling the
	requested virtual path, throw the exception, do not attempt to
	build again.

	* TemplateControlCompiler.cs: implemented missing converter for
	the ExpandDepth property. Fixes bug #490860

2009-04-02  Marek Habersack  <[email protected]>

	* HttpException.cs: if there are more lines with errors, display
	them all.

svn path=/trunk/mcs/; revision=130876
2009-04-02 15:25:03 +00:00
Rodrigo Kumpera 1bba21255d 2009-04-02 Rodrigo Kumpera <[email protected]>
* valid_candidate_contraint_is_inflated_using_global_context.cs:
        New test for cases where the candidate constraint type refers to the
        global generic context.

        We have to use it because it might be the case the the global context
        has more arguments than the local one.

svn path=/trunk/mono/; revision=130873
2009-04-02 14:53:40 +00:00
Rodrigo Kumpera c6ecf039d2 2009-04-02 Rodrigo Kumpera <[email protected]>
* verify.c (mono_generic_param_is_constraint_compatible): Inflate the candidate
	using the context of the method been verifier and not of the method been called.

	* verify.c: Add verifier_inflate_type and mono_type_is_valid_type_in_context to
	safely inflate generic types.

svn path=/trunk/mono/; revision=130872
2009-04-02 14:53:28 +00:00
Marek Habersack 2e6df1aabe Unbreak the build
svn path=/trunk/mcs/; revision=130871
2009-04-02 14:17:17 +00:00
Marek Habersack 9e44bd06ee 2009-04-02 Marek Habersack <[email protected]>
* Initial import of ASP.NET MVC 1.0

2009-04-02  Marek Habersack  <[email protected]>

	* AssemblyInfo.cs: added Mono specific attributes to delay-sign
	the assembly with the winfx.pub key.

svn path=/trunk/mcs/; revision=130868
2009-04-02 13:53:49 +00:00
Marek Habersack 9ab17f93d4 Import of the original ASP.NET MVC sources v1.0
svn path=/trunk/mcs/; revision=130867
2009-04-02 13:52:18 +00:00
Sebastien Pouliot f4768988b8 2009-04-02 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Change the strategy for checking the 
	"reflection using delegates optimization" to avoid unneeded 
	attributes in multiple class libraries.


svn path=/trunk/mono/; revision=130865
2009-04-02 13:03:51 +00:00
Mark Probst c9257a3149 2009-04-02 Mark Probst <[email protected]>
* sgen-gc.c: Remove object element in the disappearing link
        struct by storing the object pointer in the link.

svn path=/trunk/mono/; revision=130863
2009-04-02 12:05:54 +00:00
Atsushi Eno 02a3560fa3 2009-04-02 Atsushi Enomoto <[email protected]>
* XmlMtomDictionaryWriter.cs : new.
	* XmlDictionaryWriter.cs : implement CreateMtomWriter().

	* XmlMtomDictionaryWriterTest.cs : new.

	* System.Runtime.Serialization.dll.sources : added mtom writer.
	* System.Runtime.Serialization_test.dll.sources : added mtom writer test.


svn path=/trunk/mcs/; revision=130849
2009-04-02 09:58:04 +00:00
Atsushi Eno 59c4c3dbd2 2009-04-02 Atsushi Enomoto <[email protected]>
* ContentType.cs : when there are especials, quote parameter values.

	* ContentTypeTest.cs : add quotation test for especials.


svn path=/trunk/mcs/; revision=130842
2009-04-02 08:22:05 +00:00
Zoltan Varga d81136724b 2009-04-02 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_output_basic_block): Fix the ARM_FPU_NONE build.

svn path=/trunk/mono/; revision=130819
2009-04-02 01:52:50 +00:00
Zoltan Varga 8a5f9cf551 2009-04-02 Zoltan Varga <[email protected]>
* mini-arm.h mini-arm.c cpu-arm.md: Finish VFP support.

svn path=/trunk/mono/; revision=130818
2009-04-02 00:51:43 +00:00
Zoltan Varga 40666f42d6 2009-04-02 Zoltan Varga <[email protected]>
* arm/arm-vfp-codegen.h: Add missing VFP codegen macros.

svn path=/trunk/mono/; revision=130817
2009-04-02 00:50:47 +00:00
Miguel de Icaza 4b3ce3d739 Add guards
svn path=/trunk/mcs/; revision=130816
2009-04-02 00:01:08 +00:00
Marek Habersack 58caa86044 2009-04-02 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: implemented missing converter for
	the ExpandDepth property. Fixes bug #490860

svn path=/trunk/mcs/; revision=130813
2009-04-01 22:31:58 +00:00
Mark Probst efaf33e423 Make vassign members gint32 to fix ridiculously large methods.
2009-04-01  Mark Probst  <[email protected]>

	* regalloc.h, mini-codegen.c: Make vassign members gint32 to fix
	ridiculously large methods.

svn path=/trunk/mono/; revision=130798
2009-04-01 20:50:30 +00:00
Atsushi Eno 09df6338c2 2009-04-01 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs : more hack to handle empty
          element nicely.


svn path=/trunk/mcs/; revision=130779
2009-04-01 18:22:52 +00:00
Marek Habersack a136d79b68 2009-04-01 Marek Habersack <[email protected]>
* AssemblyBuilder.cs: CSharpCodePragmaGenerator.ReserveSpace:
	added the 2 extra chars to pragmaChecksumStaticCount constant (the
	ones added by Gonzalo below) and removed one NewLine to account
	for Martin's change below.
	VBCodePragmaGenerator.ReserveSpace - one newline follows
	#ExternalSource.
	VBCodePragmaGenerator.DecorateFile - one newline follows
	#ExternalSource.

svn path=/trunk/mcs/; revision=130763
2009-04-01 16:07:02 +00:00
Martin Baulig b902657bcf Don't emit a blank line after '#line' as this would cause all line numbers to be off by 1.
svn path=/trunk/mcs/; revision=130755
2009-04-01 14:39:05 +00:00
Jb Evain 297a55cea1 2009-04-01 Jb Evain <[email protected]>
* Mono.Cecil/ModuleDefinition.cs (Import): add overloads
	taking a MethodDefinition as a generic context.


svn path=/trunk/mcs/; revision=130748
2009-04-01 12:32:08 +00:00
Jb Evain c3173c8939 2009-04-01 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionHelper.cs: throw proper exception
	when importing in an invalid context.


svn path=/trunk/mcs/; revision=130747
2009-04-01 12:30:19 +00:00
Jb Evain b2845025d9 whitespace
svn path=/trunk/mcs/; revision=130746
2009-04-01 12:28:18 +00:00
Jb Evain 1cf70c7fb5 oops
svn path=/trunk/mcs/; revision=130744
2009-04-01 12:07:38 +00:00
Atsushi Eno 6f7bce2a5e 2009-04-01 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : add ReadStartElement() overload.


svn path=/trunk/mcs/; revision=130733
2009-04-01 08:28:07 +00:00
Atsushi Eno a7ab985979 2009-04-01 Atsushi Enomoto <[email protected]>
* UniqueId.cs : add missing security attributes.
        * XmlDictionaryReader.cs : cleanup extra TODOs.
        * XmlBinaryDictionaryReader.cs : iplement IsArray.


svn path=/trunk/mcs/; revision=130732
2009-04-01 08:11:07 +00:00
Atsushi Eno 75075e36f8 2009-04-01 Atsushi Enomoto <[email protected]>
* OperationInvokeHandler.cs : replace MS copycat exception
          message.


svn path=/trunk/mcs/; revision=130721
2009-04-01 05:03:44 +00:00
Gonzalo Paniagua Javier fec458c0ba 2009-03-31 Gonzalo Paniagua Javier <[email protected]>
* AssemblyBuilder.cs: the guid has to be quoted.


svn path=/trunk/mcs/; revision=130720
2009-04-01 03:50:10 +00:00
Veerapuram Varadhan 7ed3e19925 2009-03-31 Veerapuram Varadhan <[email protected]>
* Fixes rest of #480377
	* DataContainer.cs (GetContainerData, GetExplicitValue): Added to handle cases
	where passed type overloads an explicit operator for conversion of values.

svn path=/trunk/mcs/; revision=130709
2009-03-31 21:59:48 +00:00
Veerapuram Varadhan 02f82de85b 2009-03-31 Veerapuram Varadhan <[email protected]>
* Fixes rest of #480377
	* DataContainer.cs (GetContainerData, GetExplicitValue): Added to handle cases
	where passed type overloads an explicit operator for conversion of values.

svn path=/trunk/mcs/; revision=130708
2009-03-31 21:58:38 +00:00
Jonathan Pryor 4789af4bc6 * Makefile: Remove make warning about overriding dist-local.
svn path=/trunk/mcs/; revision=130704
2009-03-31 20:05:31 +00:00
Atsushi Eno a4291bc5a8 2009-03-13 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : do not bork at some unimplemented
          bits.


svn path=/trunk/mcs/; revision=130701
2009-03-31 19:11:46 +00:00
Rodrigo Kumpera 01d9f874df 2009-03-31 Rodrigo Kumpera <[email protected]>
* pedump.c (dump_verify_info): Don't crash if signature decoding fails.

svn path=/trunk/mono/; revision=130700
2009-03-31 19:03:40 +00:00
Rodrigo Kumpera 656030fe76 2009-03-31 Rodrigo Kumpera <[email protected]>
* verify.c (verifier_load_field): Fail if the field parent could not be loaded.

	* verify.c (mono_method_verify): Do proper bounds checking of exception
	clause ranges.

svn path=/trunk/mono/; revision=130699
2009-03-31 19:03:21 +00:00
Rodrigo Kumpera fc24c9fef9 2009-03-31 Rodrigo Kumpera <[email protected]>
* loader.c (mono_field_from_token): Don't crash if the field parent could
	not be decoded.

svn path=/trunk/mono/; revision=130698
2009-03-31 19:03:01 +00:00
Rodrigo Kumpera d4ae49237f 2009-03-31 Rodrigo Kumpera <[email protected]>
* invalid_catch_block_out_of_bounds.il
	* invalid_try_block_out_of_bounds.il: Tests for proper bounds
	check of exception clauses.

svn path=/trunk/mono/; revision=130697
2009-03-31 19:02:42 +00:00
Marek Habersack 91053b46db 2009-03-31 Marek Habersack <[email protected]>
* Page.cs: SavePageViewState saves the list of controls which
	require post back regardless of whether view state is disabled or
	not. Fixes bug #490753

svn path=/trunk/mcs/; revision=130694
2009-03-31 18:47:53 +00:00
Rodrigo Kumpera 2c9c2deebc 2009-03-31 Rodrigo Kumpera <[email protected]>
* MethodDef.cs (WriteCode): Emit labels which use offsets as absolute PEAPI
	CilLabels.

svn path=/trunk/mcs/; revision=130692
2009-03-31 18:32:36 +00:00
Rodrigo Kumpera 36cbd6f5f2 2009-03-31 Rodrigo Kumpera <[email protected]>
* Code.cs (CILLabel): Add new constructor to signal that
	a label is an absolute il offset. This is required by exception
	handling declarations that use offsets and not labels.

svn path=/trunk/mcs/; revision=130691
2009-03-31 18:31:56 +00:00
Rodrigo Kumpera 9e52218c78 2009-03-31 Rodrigo Kumpera <[email protected]>
* ILParser.jay: Fix integer labels in handler blocks.

svn path=/trunk/mcs/; revision=130690
2009-03-31 18:31:05 +00:00
Marek Habersack fdd27dcf55 ChangeLog update
svn path=/trunk/mcs/; revision=130683
2009-03-31 17:27:49 +00:00
Marek Habersack f84af0fae9 2009-03-31 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: use glob patterns to watch for
	changes to global.asax and web.config files.
	Set up recursive watch on web.config in a separate thread, to
	minimize application startup delay. Fixes bug #490497

svn path=/trunk/mcs/; revision=130682
2009-03-31 17:27:31 +00:00
Carlos Alberto Cortez 216bbfa7e5 2009-03-31 Carlos Alberto Cortez <[email protected]>
* X11Clipboard.cs: Actually look for the RtfText format when calling
	GetRftText in our clipboard formats list, instead of using the
	generical Text format.


svn path=/trunk/mcs/; revision=130681
2009-03-31 17:08:56 +00:00
Jonathan Pryor 5dce320e24 * mdoc-update.1: Fix --out=DIRECTORY formatting. (It was causing the
remaining text to be bolded within monodoc).

svn path=/trunk/mono/; revision=130679
2009-03-31 16:39:07 +00:00
Mark Probst 6ba976282c Execute critical finalizers after regular finalizers.
2009-03-31  Mark Probst  <[email protected]>

        * sgen-gc.c: Execute critical finalizers after ordinary
        finalizers.

        * class-internals.h, domain.c: Add CriticalFinalizerObject to
        mono_defaults.

2009-03-31  Mark Probst  <[email protected]>

        * critical-finalizers.cs: Test case for critical finalizers.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=130677
2009-03-31 15:55:53 +00:00
Jb Evain 6ca28ea47e 2009-03-31 Jb Evain <[email protected]>
* verify.c (do_ldstr): don't check if a string is in the user strings
	heap if the current image is dynamic.

svn path=/trunk/mono/; revision=130676
2009-03-31 15:42:07 +00:00
Mark Probst d989585f33 Wait for the last finalizer to finish executing for WaitForPendingFinalizers.
2009-03-31  Mark Probst  <[email protected]>

        * sgen-gc.c: Wait until the last finalizer has executed when
        returning from WaitForPendingFinalizers.

2009-03-31  Mark Probst  <[email protected]>

        * finalizer-wait.cs: Test case for WaitForPendingFinalizers.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=130670
2009-03-31 15:20:05 +00:00
Marek Habersack 9fd3570401 2009-03-31 Marek Habersack <[email protected]>
* DefaultWsdlHelpGenerator.aspx: the link element in <head> must
	be created using Response.Write, as the code expression in the
	href attribute is otherwise treated verbatim. This is the same as
	with .NET. Fixes bug #490497

svn path=/trunk/mono/; revision=130667
2009-03-31 15:01:57 +00:00
Marek Habersack 433193ce48 Typo fix
svn path=/trunk/mcs/; revision=130666
2009-03-31 15:01:34 +00:00
Marek Habersack e9a0173141 2009-03-31 Marek Habersack <[email protected]>
* All of the below are part of the fix for bug #489687

	* ThemeDirectoryCompiler.cs: pass VirtualPath instances to parser
	constructors.

	* BuildProvider.cs: associated virtual path is stored internally
	as an instance of VirtualPath, accessible via new
	VirtualPathInternal property.

	* BuildManagerDirectoryBuilder.cs: VirtualPath.IsFake is used to
	detect fake virtual paths.
	GetBuildProvider now takes a VirtualPath instead of string for the
	virtualPath parameter. The passed VirtualPath instance is passed
	unchanged to BuildProvider.

	* BuildManager.cs: AssertVirtualPathExists now uses
	VirtualPath.IsFake to check for fake virtual paths.

	* ApplicationFileBuildProvider.cs, GenericBuildProvider.cs,
	MasterPageBuildProvider.cs, PageBuildProvider.cs,
	ThemeBuildProvider.cs, UserControlBuildProvider.cs,
	WebHandlerBuildProvider.cs, WebServiceBuildProvider.cs:
	CreateParser overloads now take a VirtualPath instead of a string
	for the virtualPath parameter.

	* ThemeBuildProvider.cs: use new parser constructors which take
	VirtualPath instances instead of strings.

2009-03-31  Marek Habersack  <[email protected]>

	* VirtualPath.cs: added code to detect whether the VirtualPath
	instance represents a fake virtual path (IsFake property).
	Added new property DirectoryNoNormalize which returns
	non-normalized directory for the VirtualPath instance.
	Made ToString () a bit more friendly and well-behaved.

2009-03-31  Marek Habersack  <[email protected]>

	* ApplicationFileParser.cs, MasterPageParser.cs, PageParser.cs,
	PageThemeFileParser.cs, PageThemeParser.cs, UserControlParser.cs,
	WebHandlerParser.cs, WebServiceParser.cs: 2.0 constructors take a
	VirtualPath instance for the virtualPath parameter, instead of a
	string.

svn path=/trunk/mcs/; revision=130665
2009-03-31 15:01:21 +00:00
Marek Habersack 20242bfa98 2009-03-30 Marek Habersack <[email protected]>
* AspTokenizer.cs: UpdateChecksum - fixed off-by-one bug when
	processing the checksum buffer.

svn path=/trunk/mcs/; revision=130664
2009-03-31 15:01:08 +00:00
Martin Baulig 6fc5710a25 Bump debugger version to 81.2.
2009-03-31  Martin Baulig  <[email protected]>

	* mono-debug.h (MONO_DEBUGGER_MINOR_VERSION): Bump to 2.

svn path=/trunk/mono/; revision=130660
2009-03-31 14:25:46 +00:00
Martin Baulig 182c30d157 Notify the debugger about newly created appdomains and their shadow copy path.
2009-03-31  Martin Baulig  <[email protected]>

	* mono-debug-debugger.h (MonoDebuggerEvent): Add
	`MONO_DEBUGGER_EVENT_CREATE_APPDOMAIN' and
	`MONO_DEBUGGER_EVENT_UNLOAD_APPDOMAIN'.
	(mono_debugger_event_create_appdomain): New function.
	(mono_debugger_event_unload_appdomain): New function.

	* appdomain.c (mono_domain_create_appdomain_internal): Call
	mono_debugger_event_create_appdomain().

svn path=/trunk/mono/; revision=130659
2009-03-31 14:25:30 +00:00
Martin Baulig e431478764 Also register the class init callback if the class is already initialized to make things work with shadow copied assemblies.
2009-03-31  Martin Baulig  <[email protected]>

	* debug-debugger.c (debugger_remove_breakpoint): Call
	mono_debugger_remove_class_init_callback ().

2009-03-31  Martin Baulig  <[email protected]>

	* mono-debug-debugger.c
	(mono_debugger_register_class_init_callback): Also register the
	class init callback if the class is already initialized to make
	things work with shadow copied assemblies.

svn path=/trunk/mono/; revision=130658
2009-03-31 14:25:16 +00:00
Atsushi Eno b739f433af 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlDictionaryWriter.cs :
	  a couple of fixes to reflect correct values for node properties
	  on each read step.

	* XmlBinaryDictionaryReaderTest.cs: make tests more doubtful on
	  state.


svn path=/trunk/mcs/; revision=130655
2009-03-31 14:17:05 +00:00
Sebastien Pouliot a1916333ca 2009-03-31 Sebastien Pouliot <[email protected]>
* security-core-clr.c
	(mono_security_core_clr_ensure_reflection_access_field): Let 
	critical code access the field (just like we do for methods). Use
	check_field_access helper.
	(mono_security_core_clr_ensure_reflection_access_method): Use 
	check_field_access helper.


svn path=/trunk/mono/; revision=130652
2009-03-31 13:50:51 +00:00
Gonzalo Paniagua Javier c2f73df9b2 fix build
svn path=/trunk/mono/; revision=130651
2009-03-31 13:35:42 +00:00
Mark Probst 1c240c885e Remove data from FinalizeEntry.
2009-03-31  Mark Probst  <[email protected]>

        * sgen-gc.c: Remove data (callback) element from FinalizeEntry
        * and
        call the run-finalize function directly.

        * gc.c, gc-internal.h: Make run_finalize() non-static.

svn path=/trunk/mono/; revision=130650
2009-03-31 13:09:37 +00:00
Mark Probst 9debd698e6 Use a separate struct for disappearing links.
2009-03-31  Mark Probst  <[email protected]>

        * sgen-gc.c: Use a separate struct for disappearing links.

svn path=/trunk/mono/; revision=130649
2009-03-31 13:08:48 +00:00
Atsushi Eno 412021f75a 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs :
	  support array operation (0x03) on reader too.

	* XmlBinaryDictionaryReaderTest.cs: test array reader.


svn path=/trunk/mcs/; revision=130644
2009-03-31 11:33:34 +00:00
Atsushi Eno 525fe83335 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : removed lots of unused part.


svn path=/trunk/mcs/; revision=130635
2009-03-31 10:34:42 +00:00
Atsushi Eno dfa167b164 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriterAutoGen.cs : generated code.
	* XmlBinaryFormat.cs, XmlBinaryDictionaryWriter.cs :
	  support array operation (0x03) and a bunch of WriteArray() methods.

	* XmlBinaryDictionaryWriterTest.cs : added test for array operation.

	* binary-writer-method-gen.cs : another easy code writer for binary
	  xml writer methods.
	* System.Runtime.Serialization.dll.sources : added autogenerated code.


svn path=/trunk/mcs/; revision=130630
2009-03-31 09:21:37 +00:00
Jb Evain dad585fb8d 2009-03-31 Jb Evain <[email protected]>
* data: Remove smcs, which is handled by moon now.

svn path=/trunk/mono/; revision=130622
2009-03-31 07:42:26 +00:00
Jb Evain 95b6b4ae31 2009-03-31 Jb Evain <[email protected]>
* scripts: Remove smcs, which is handled by moon now.

svn path=/trunk/mono/; revision=130621
2009-03-31 07:39:50 +00:00
Atsushi Eno 6110c12288 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryDictionaryWriter.cs
	  XmlBinaryFormat.cs : implemented element with short prefix.

	* XmlBinaryDictionaryReaderTest.cs,
	  XmlBinaryDictionaryWriterTest.cs : added test for element with
	  short prefix.


svn path=/trunk/mcs/; revision=130617
2009-03-31 07:24:52 +00:00
Gonzalo Paniagua Javier 186c49e3ae 2009-03-31 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: don't fail if the SocketOptionsFlag has Partial or
	* MaxIOVectorLength enabled, just ignore them.
	Fixes bug #349688.


svn path=/trunk/mono/; revision=130613
2009-03-31 06:24:49 +00:00
Jonathan Pryor cccd6f36bb * mdoc-update.1: Add new --exceptions=added functionality.
svn path=/trunk/mono/; revision=130604
2009-03-31 03:24:49 +00:00
Zoltan Varga fe618626ca 2009-03-31 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Call img_writer_emit_start ()
	right before emitting code, not at the start.

	* mini.c (mono_postprocess_patches): Extract this into a separate function
	from mono_codegen ().

	* ssa.c (mono_ssa_compute): Set ins->klass for every PHI node, handle
	byref types correctly.

svn path=/trunk/mono/; revision=130585
2009-03-30 22:31:16 +00:00
Rodrigo Kumpera 7e0b296b5d 2009-03-30 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Parse the source assembly using the runtime
	metadata routines.

	* gen-md-tests.c: Add table-row function.

	* Makefile: like gen-md-tests with the runtime.

	* cli-tables-tests.md: Add initial tests for the module table.

svn path=/trunk/mono/; revision=130581
2009-03-30 21:44:31 +00:00
Rodrigo Kumpera 20df680d2e 2009-03-30 Rodrigo Kumpera <[email protected]>
assembly-with-resource.cs: Add missing file.

svn path=/trunk/mono/; revision=130580
2009-03-30 21:44:08 +00:00
Rodrigo Kumpera 0dbebe6e63 2009-03-30 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Fix eglib build.

svn path=/trunk/mono/; revision=130579
2009-03-30 21:37:22 +00:00
Carlos Alberto Cortez d4635d2074 2009-03-30 Carlos Alberto Cortez <[email protected]>
* TextBox.cs: Process auto completion properly when we are using the
	internal source provided by ComboBox, and also remove some repeated
	checks.
	Fixes #489339.


svn path=/trunk/mcs/; revision=130573
2009-03-30 20:35:56 +00:00
Ivan Zlatev 69fb3ed861 2009-03-30 Tom Hindle <[email protected]>
* DataGridView added Support for Invisible Columns to
	AutoFillColumnsInternal method.

svn path=/trunk/mcs/; revision=130572
2009-03-30 20:23:45 +00:00
Marek Habersack 65f9434933 2009-03-30 Marek Habersack <[email protected]>
* AssemblyBuilder.cs: introduced a kludge to add #pragma checksum
	and #pragma lines (or its vb equivalent - #ExternalSource) to
	code-behind files named in the CodeFile/Src directives while
	copying them to the dynamic directory for compilation. The kludge
	works by recognizing the .cs and .vb extensions and wrapping the
	file contents in the appropriate directives. This is done in this
	way because the other possible way, using the
	CodeSnippetCompileUnit, requires the entire file to be read in
	memory and then passed to CodeDOM. We fall back to this way when
	the file being copied is neither C# or VB.

svn path=/trunk/mcs/; revision=130566
2009-03-30 18:24:34 +00:00
Jonathan Pryor ff693e990f * System.Data.Linq.dll.sources: Remove
src/DbLinq/Factory/Implementation/AbstractObjectFactory.cs, add 
	  src/DbLinq/Data/Linq/SqlClient/Sql2008Provider.cs.
	* src/**/*: Flush; syncs to DbLinq r1038, fixes
	  System.Data.Linq.SqlClient.Sql200?Provider cor-compare differences,
	  unit test execution order dependency issues, namespace names within
	  tests, etc.

svn path=/trunk/mcs/; revision=130561
2009-03-30 17:09:45 +00:00
Zoltan Varga 28fd8ba48b 2009-03-30 Zoltan Varga <[email protected]>
* dwarfwriter.c (mono_dwarf_writer_emit_method): Fix a crash introduced
	by the last change.

svn path=/trunk/mono/; revision=130556
2009-03-30 15:31:27 +00:00
Jonathan Pryor 13260246d5 * Mono.Documentation/exceptions.cs: Add
ExceptionLocations.AddedMember, used for --exceptions=added support.
	* Mono.Documentation/monodocer.cs: Add --exceptions=added, which will 
	  only add <exception/> elements for newly added elements.  This is
	  useful for updating documentation for established projects which
	  already have <exception/> corrections (e.g. *removal* of
	  <exception/> elements because the exceptions weren't actually
	  possible), so only new members should have <exception/> created.

svn path=/trunk/mcs/; revision=130551
2009-03-30 13:11:55 +00:00
Marek Safar 2e32e70305 Use TypeManager wrapper
svn path=/trunk/mcs/; revision=130545
2009-03-30 10:30:12 +00:00
Zoltan Varga 16df740a9d 2009-03-30 Zoltan Varga <[email protected]>
* threads-types.h: Fix the win32 build.

svn path=/trunk/mono/; revision=130541
2009-03-30 09:37:30 +00:00
Carlos Alberto Cortez 03bf1cb244 2009-03-30 Carlos Alberto Cortez <[email protected]>
* System.Windows.Forms.dll.sources: Add X11Clipboard.cs to the build.


svn path=/trunk/mcs/; revision=130538
2009-03-30 07:40:53 +00:00
Carlos Alberto Cortez 475a5dc66e * X11Structs:
* X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
	its own file, since it is adding some functionality and thus is not a
	simple struct as before.
	* XplatUIX11.cs: Add support to store different formats that could
	have been specified by the user when puting data in the Clipboard -
	this is important when more than one format is supported (such plain
	text and rtf text). Update in the needed places, as well as simplify
	the code.
	Fixes #489625.

2009-03-30  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=130537
2009-03-30 07:40:48 +00:00
Carlos Alberto Cortez bb93111ec9 2009-03-30 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: When handling the SelectionRequest event, use
	SelectionRequestEvent instead of SelectionEvent, so we get the right
	data for the app asking for clipboard data. Set the member of
	SelectioneEvent.property to indicate the place where we are storing
	the information as well - this is specially important for gnome/kde
	apps using the TARGETS atom to ask for the supported permission before
	actually asking for a specific format.
	Fixes #489393.


svn path=/trunk/mcs/; revision=130531
2009-03-30 04:58:02 +00:00
Zoltan Varga 36e8e4a3a4 2009-03-29 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Emit a few nops before
	indirect calls, this avoids problems where get_vcall_slot () would get
	confused by the native code for the instruction preceeding the call.
	(mono_arch_get_vcall_slot): Simplify this.
	(mono_arch_emit_imt_argument): Remove this, it is no longer needed.

svn path=/trunk/mono/; revision=130505
2009-03-29 16:47:09 +00:00
Zoltan Varga e3ff010fe3 2009-03-29 Zoltan Varga <[email protected]>
* mini-ops.h: Fix the definitions of the OP_IA64 opcodes, since the local
	register allocator now seems to depend on them instead of the data in
	cpu-<ARCH>.md.

svn path=/trunk/mono/; revision=130491
2009-03-29 05:36:01 +00:00
Veerapuram Varadhan 90a2705cf5 2009-03-29 Veerapuram Varadhan <[email protected]>
* Fixes #480377
		* OciCalls.cs:
		* OciDataType.cs:
		* OciDefineHandle.cs:
		* OciHandle.cs:
		* OciIntervalDescriptor.cs:
		* OciParameterDescriptor.cs: Implement INTERVAL_YEAR_TO_MONTH and
		INTERVAL_DAY_TO_SECOND OCI types.

svn path=/trunk/mcs/; revision=130490
2009-03-29 03:48:36 +00:00
Veerapuram Varadhan 0cff3be341 New: IntervalDescriptor implementation file
Implements OCI calls that are required for basic OciInterval types handling

svn path=/trunk/mcs/; revision=130489
2009-03-29 03:48:15 +00:00
Veerapuram Varadhan d5d4cf26ee INTERVAL_DAY_TO_SECOND and INTERVAL_YEAR_TO_MONTH implementations
svn path=/trunk/mcs/; revision=130488
2009-03-29 03:47:56 +00:00
Veerapuram Varadhan 256eaefdb3 OciInterval implementation
svn path=/trunk/mcs/; revision=130487
2009-03-29 03:47:35 +00:00
Zoltan Varga 78b79b878e 2009-03-29 Zoltan Varga <[email protected]>
* remoting4.cs: Fix the last change.

svn path=/trunk/mono/; revision=130486
2009-03-29 02:44:36 +00:00
Zoltan Varga 2813a09b59 2009-03-29 Zoltan Varga <[email protected]>
* CodeGenerator.cs: Add synchronization as SRE is not thread safe.

svn path=/trunk/mcs/; revision=130484
2009-03-29 02:29:29 +00:00
Zoltan Varga 4b0675c572 2009-03-29 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Throw the correct type of exception if
	mono_method_get_header () fails because of a loading error.

svn path=/trunk/mono/; revision=130483
2009-03-29 01:34:36 +00:00
Jb Evain a2cf970c02 fixed
svn path=/trunk/mcs/; revision=130479
2009-03-28 21:57:41 +00:00
Jb Evain cc2c56a916 2009-03-28 Jb Evain <[email protected]>
* Enumerable.cs: fix Intersect.


svn path=/trunk/mcs/; revision=130478
2009-03-28 21:55:24 +00:00
Jb Evain 31192936a0 2009-03-28 Jb Evain <[email protected]>
* EnumerableTest.cs: add test for bug #490016.


svn path=/trunk/mcs/; revision=130477
2009-03-28 21:48:57 +00:00
Zoltan Varga c142e39cae In mini/
* mini.c (mini_method_compile): Clear the loader error if the method
	header cannot be decoded.

In tests/

	* load-exceptions.cs: Add a test for missing locals.

svn path=/trunk/mono/; revision=130476
2009-03-28 19:55:47 +00:00
Zoltan Varga a4c7031732 In mini/
* mini-trampolines.c (mono_magic_trampoline): Handle generic virtual
	interface methods on proxies correctly.

In tests/

2009-03-28  Zoltan Varga  <[email protected]>

	* remoting4.cs: Add a test for generic virtual interface methods on proxies.

svn path=/trunk/mono/; revision=130474
2009-03-28 19:02:04 +00:00
Sebastien Pouliot 205287dd4d 2009-03-28 Sebastien Pouliot <[email protected]>
* coreclr-security.cs: Add more override test cases.


svn path=/trunk/mono/; revision=130465
2009-03-28 14:14:59 +00:00
Sebastien Pouliot fd48a5de6b 2009-03-28 Sebastien Pouliot <[email protected]>
* class.c: move coreclr inheritance/override checks to 
	security-core.clr.c
	* security-core.clr.c|h: add code from class.c with additional
	documentation. Fix override check when the method is not critical.


svn path=/trunk/mono/; revision=130464
2009-03-28 14:14:47 +00:00
Zoltan Varga f43f7d0ca5 2009-03-28 Zoltan Varga <[email protected]>
* dwarfwriter.c (mono_dwarf_writer_emit_method): Fix handling of the
	this argument for vtype methods. Add precise liveness info for arguments.

svn path=/trunk/mono/; revision=130460
2009-03-28 08:16:56 +00:00
Zoltan Varga 70c2c70f27 2009-03-28 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_print_ins_index): Print the vreg of the
	LIVERANGE_START/END opcodes.

	* method-to-ir.c (mono_spill_global_vars): Fix liverange calculation
	for arguments and values in registers.

svn path=/trunk/mono/; revision=130459
2009-03-28 08:16:49 +00:00
Zoltan Varga 7294f8a646 2009-03-28 Zoltan Varga <[email protected]>
* debug-helpers.c (mono_method_desc_match): Make '*' match anything.
	(match_class): Ditto.

svn path=/trunk/mono/; revision=130458
2009-03-28 05:01:51 +00:00
Ivan Zlatev 22e99e7a46 2009-03-28 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: We don't support drawing all types of cell borders,
	so fallback and at least draw something instead of nothing.

svn path=/trunk/mcs/; revision=130449
2009-03-28 00:15:38 +00:00
Ivan Zlatev 31a9c0f14d 2009-03-27 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: If the column header isn't visible allow resizing
	using the cell column border. Also be sure to reset the cursor properly.
	[Fixes bug #489929]

svn path=/trunk/mcs/; revision=130446
2009-03-27 23:32:30 +00:00
Jonathan Chambers e610ce8f68 2009-03-27 Jonathan Chambers <[email protected]>
* BuildWhen.cs: Add basic implementation.
        * BuildChoose.cs: Add basic implementation.
        * BuildItem.cs (AddEvaluatedItem): Add BuiltItem to
        EvaluatedItemsIgnoringCondition.
        * GroupingCollection.cs: Add evaluation of BuildChoose items.


svn path=/trunk/mcs/; revision=130445
2009-03-27 23:19:43 +00:00
Rodrigo Kumpera 38e06db204 2009-03-27 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for total table sizes.

svn path=/trunk/mono/; revision=130444
2009-03-27 22:50:21 +00:00
Rodrigo Kumpera d87ef65a34 2009-03-27 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Rename bounds_check_offset to bounds_check_datadir.

	* metadata-verify.c: Implement table layout row size calculation. Verify
	the total size of the tables.

svn path=/trunk/mono/; revision=130443
2009-03-27 22:50:20 +00:00
Rodrigo Kumpera 5efed1da27 2009-03-27 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for heap sizes and minumum #~ size
	to decode row counts.

svn path=/trunk/mono/; revision=130442
2009-03-27 22:48:13 +00:00
Rodrigo Kumpera 934a2a3c68 2009-03-27 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify heap sizes and size to decode row counts.

svn path=/trunk/mono/; revision=130441
2009-03-27 22:48:12 +00:00
Gonzalo Paniagua Javier c09ac13431 2009-03-27 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c:
	* console-io.[ch]: added new mono_console_init() to make sure that
	file descriptors 0, 1 and 2 are opened.
	Bug #489019 fixed.


svn path=/trunk/mono/; revision=130424
2009-03-27 20:04:49 +00:00
Jonathan Pryor 0017f47bc6 * src/DbLinq.sln,
src/DbLinq.SqlServer/Test/DbLinq.SqlServer_test_ndb.csproj: Flush;
	  syncs to DbLinq r1029.
	* src/DbLinq.suo: Delete.
	* src (svn:ignore): Ignore DbLinq.suo.
	* src/DbLinq/Test/NullProvider.cs: Default initialize the
	  ConnectionString to "" so that the MsSqlDataContextTest tests pass.
	* System.Data.Linq_test.dll.sources: Add 
	  src/DbLinq.SqlServer/Test/MsSqlDataContextTest.cs.

svn path=/trunk/mcs/; revision=130422
2009-03-27 19:30:04 +00:00
Atsushi Eno 1362b62020 2009-03-27 Atsushi Enomoto <[email protected]>
* XmlBinaryFormat.cs, XmlBinaryDictionaryWriter.cs :
	  resolved all namespace and QName issues.

	* XmlBinaryDictionaryWriterTest.cs : enabled QName test parts.


svn path=/trunk/mcs/; revision=130419
2009-03-27 18:41:25 +00:00
Marek Safar cd5d5a8abe 2009-03-27 Marek Safar <[email protected]>
* typemanager.cs, expression.cs: Removed unused nullable checks.


svn path=/trunk/mcs/; revision=130410
2009-03-27 17:13:46 +00:00
Marek Safar b1d9489d43 New tests.
svn path=/trunk/mcs/; revision=130405
2009-03-27 16:22:29 +00:00
Marek Safar c4274ee9e8 2009-03-27 Marek Safar <[email protected]>
* *.cs: Removed some gmcs conditionals.


svn path=/trunk/mcs/; revision=130404
2009-03-27 16:21:36 +00:00
Gonzalo Paniagua Javier 3b549a3056 2009-03-27 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: disable the test form
	when only Soap is supported.
	Bug #342073 fixed.


svn path=/trunk/mono/; revision=130400
2009-03-27 15:51:43 +00:00
Zoltan Varga ab0fea6926 2009-03-27 Zoltan Varga <[email protected]>
* mono-gdb.py (StringPrinter.to_string): Fix support for non-ascii characters.

svn path=/trunk/mono/; revision=130399
2009-03-27 15:39:55 +00:00
Atsushi Eno d16e9ef34b 2009-03-27 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : further namespace refactory.
	  namespaces are managed by its own (to work fine for both string
	  and dictionary string).


svn path=/trunk/mcs/; revision=130396
2009-03-27 14:44:32 +00:00
Zoltan Varga a3af68f0ef 2009-03-27 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Disable tail calls for calls which
	return a valuetype. Fixes #487518.

	* iltests.il: Add a test.

svn path=/trunk/mono/; revision=130390
2009-03-27 14:07:28 +00:00
Sebastien Pouliot 5545f01f97 2009-03-27 Sebastien Pouliot <[email protected]>
* appdomain.h: Export a new callback type and a new function to
	set this callback. This allow a mono host to provide it's own
	definition for "platform code".
	* metadata-internals.h: Add a core_clr_platform_code flag on 
	_MonoImage to (cache and) know if it is representing platform 
	code.
	* image.c (do_mono_image_open): Set core_clr_platform_code flag 
	on platform code images.
	* security-core-clr.c|h	
	(mono_security_set_core_clr_platform_callback): Allow the host
	to provide it's own platform check definition.
	(mono_security_core_clr_determine_platform_image): Detect if an 
	image is platform code (using the specified callback).
	(mono_security_core_clr_is_platform_image): Return cached value 
	for platform code.


svn path=/trunk/mono/; revision=130389
2009-03-27 14:00:09 +00:00
Zoltan Varga 407d6d81e8 2009-03-27 Zoltan Varga <[email protected]>
* DelegateTest.cs: Mark a test as working.

svn path=/trunk/mcs/; revision=130386
2009-03-27 13:37:39 +00:00
Zoltan Varga 5b9e83c623 In io-layer/
2009-03-27  Zoltan Varga  <[email protected]>

	* threads.h: Add a comment to CreateThread.

In metadata/

2009-03-27  Zoltan Varga  <[email protected]>

	* threads.c (mono_create_thread): New helper function to wrap CreateThread
	which has different parameter types for the 'tid' argument in windows and
	the io-layer.

	* appdomain.c attach.c threads.c: Use the new helper.

In mini/

2009-03-27  Zoltan Varga  <[email protected]>

	* aot-compiler.c: Use mono_thread_create () to create helper threads.

svn path=/trunk/mono/; revision=130385
2009-03-27 13:35:45 +00:00
Zoltan Varga 6e654c8f5c 2009-03-27 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_delegate_trampoline): Handle static delegates
	closed over a null reference correctly.

svn path=/trunk/mono/; revision=130384
2009-03-27 13:35:25 +00:00
Atsushi Eno d6b718ad37 2009-03-27 Atsushi Enomoto <[email protected]>
* XmlBinaryFormat.cs, XmlBinaryDictionaryReader.cs,
	  XmlBinaryDictionaryWriter.cs : improved shorthanded prefix
	  support. Not only autocreated prefixes but also explicitly-
	  specified 'a' .. 'z' prefixes are mapped as shorthand.
	  Some significant (and ongoing) namespace support changes.

	* XmlBinaryDictionaryWriterTest.cs: added test for shorthand
	  prefixed attributes.


svn path=/trunk/mcs/; revision=130381
2009-03-27 13:20:47 +00:00
Raja R Harinath 51b061301f * Makefile (net_2_0_dirs): Build System.Runtime.Serialization
before System.Data.Linq.

svn path=/trunk/mcs/; revision=130375
2009-03-27 11:40:23 +00:00
Rodrigo Kumpera 2b4556a637 2009-03-26 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add tables-header and set-bit helpers.

	* cli-tables-tests.md: New tests for the cli tables.

	* Makefile: Add new tests.

svn path=/trunk/mono/; revision=130349
2009-03-26 23:46:51 +00:00
Rodrigo Kumpera a2461c033d 2009-03-26 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify valid table bits.

svn path=/trunk/mono/; revision=130348
2009-03-26 23:46:48 +00:00
Rodrigo Kumpera da69907d30 2009-03-26 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_metadata_header): Store size in the size field.

	* metadata-verify.c: Add initial table schema verification.

svn path=/trunk/mono/; revision=130347
2009-03-26 23:46:27 +00:00
Jonathan Pryor 103cbe03fd * src/DbLinq/Data/Linq/Table.cs: Add an explicit
IEnumerable<TEntity>.GetEnumerator() implementation to Table<TEntity>.
	  This is done for cor-compare compatibility with .NET.

svn path=/trunk/mcs/; revision=130333
2009-03-26 20:04:06 +00:00
Carlos Alberto Cortez 5c7308bc4d 2009-03-26 Carlos Alberto Cortez <[email protected]>
* ToolStripTest.cs:
	* ToolStripItemTest.cs: Update our Dispose tests.


svn path=/trunk/mcs/; revision=130332
2009-03-26 19:59:32 +00:00
Carlos Alberto Cortez 1fe09c4433 2009-03-26 Carlos Alberto Cortez <[email protected]>
* ToolStrip.cs: When disposing, iterate over the items in reverse
	order, since disposing the items modifies the collection.
	* ToolStripItem.cs: Remove from the owner when disposing.
	Fixes #485769.


svn path=/trunk/mcs/; revision=130331
2009-03-26 19:57:27 +00:00
Ivan Zlatev 8b99afe5f4 2009-03-26 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No
	longer throws a NotImplementedException.
	  Based on a patch by Tom Hindle <[email protected]>
	[Fixes bug #488319]

svn path=/trunk/mcs/; revision=130327
2009-03-26 19:07:42 +00:00
Jb Evain 67740ff767 complete test
svn path=/trunk/mcs/; revision=130325
2009-03-26 18:54:25 +00:00
Jb Evain c8b937ba5e 2009-03-26 Jb Evain <[email protected]>
* Delegate.cs (CreateDelegate): Support for delegates
	on static methods closed on a null target.


svn path=/trunk/mcs/; revision=130324
2009-03-26 18:46:56 +00:00
Ivan Zlatev 33fa30c827 2009-03-26 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Implement IsCurrentRowDirty. No longer throws
	NotImplementedException.

svn path=/trunk/mcs/; revision=130320
2009-03-26 18:18:42 +00:00
Ivan Zlatev a38493f6d9 2009-03-26 Ivan N. Zlatev <[email protected]>
* DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs:
	Fix SortMode clash handling.
	[Fixes bug #488263]

svn path=/trunk/mcs/; revision=130319
2009-03-26 18:13:14 +00:00
Ivan Zlatev 8825de9365 2009-03-26 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Do not show the vertical scrollbar if there is only
	one row or less. For the sake of MSNET compatibility.
	[Fixes bug #487988]

svn path=/trunk/mcs/; revision=130318
2009-03-26 17:35:49 +00:00
Jonathan Pryor 1f0a2d7e78 * Test/: Added (though empty), to allow building unit tests located in
src/*/Test/**.
	* System.Data.Linq_test.dll.sources: Added; database-less unit tests.

svn path=/trunk/mcs/; revision=130317
2009-03-26 17:26:16 +00:00
Marek Safar 131d04f1ef 2009-03-26 Marek Safar <[email protected]>
* generic.cs, support.cs: Moved generics stuff out of support.cs


svn path=/trunk/mcs/; revision=130316
2009-03-26 17:20:40 +00:00
Jonathan Pryor f2a3e4abcb * src/DbLinq/System.Data.Linq/Binary.cs: Update to pass the unit tests.
* Makefile: Build against System.Runtime.Serialization.dll so that
	  Binary can use the [DataContract] attribute.

svn path=/trunk/mcs/; revision=130306
2009-03-26 16:01:10 +00:00
Jonathan Chambers 4d00ac70fd 2009-03-26 Jonathan Chambers <[email protected]>
* TaskDatabase.cs (RegisterTask): Search for class by name
        if task was not found using GetType (which uses namespace).



svn path=/trunk/mcs/; revision=130305
2009-03-26 15:47:25 +00:00
Jonathan Pryor 455e8d330a * **/*: Flush. (Updates to sync with DbLinq r1026, correcting tests
so that they build under Mono for testing System.Data.Linq.dll.)

svn path=/trunk/mcs/; revision=130303
2009-03-26 15:39:53 +00:00
Jonathan Pryor 21b3da52b4 * **/*: Flush. (Updates to sync with DbLinq r1020, adding additional
tests generated from gui-compare differences.)

svn path=/trunk/mcs/; revision=130301
2009-03-26 15:09:07 +00:00
Zoltan Varga 542acfa591 In class/corlib/System.Reflection/
2009-03-26  Zoltan Varga  <[email protected]>

	* ParameterInfoTest.cs: Add a test for #488383.

In class/corlib/System/

2009-03-26  Zoltan Varga  <[email protected]>

	* Environment.cs: Bump corlib version.

In class/corlib/Test/System.Reflection/

2009-03-26  Zoltan Varga  <[email protected]>

	* ParameterInfoTest.cs: Add a test for #488383.

svn path=/trunk/mcs/; revision=130298
2009-03-26 14:32:42 +00:00
Zoltan Varga 0e066dcb2f 2009-03-26 Zoltan Varga <[email protected]>
* icall.c (ves_icall_get_parameter_info): Add a 'member' argument, used to
	obtain the refclass argument needed by mono_param_get_objects (). Fixes
	#488383.

	* reflection.c (mono_param_get_objects_internal): Add a 'refclass' argument.

	* appdomain.c (MONO_CORLIB_VERSION): Bump this.

svn path=/trunk/mono/; revision=130297
2009-03-26 14:29:46 +00:00
Zoltan Varga eaacec9711 2009-03-26 Zoltan Varga <[email protected]>
* icall.c (ves_icall_get_parameter_info): Add a 'member' argument, used to
	obtain the refclass argument needed by mono_param_get_objects (). Fixes
	#488383.

	* reflection.c (mono_param_get_objects_internal): Add a 'refclass' argument.

	* appdomain.c (MONO_CORLIB_VERSION): Bump this.

svn path=/trunk/mono/; revision=130296
2009-03-26 14:29:38 +00:00
Sebastien Pouliot b0970951c2 oops, fix wrong copy-pasted doc
svn path=/trunk/mono/; revision=130295
2009-03-26 14:27:48 +00:00
Marek Habersack d41859f73d 2009-03-26 Marek Habersack <[email protected]>
* HttpWorkerRequest.cs: use a generic dictionary to keep header
	names in 2.0+.
	GetKnown{Request,Response}HeaderIndex doesn't use the switch
	anymore.

	* HttpResponse.cs: WriteHeaders now checks whether a header to be
	sent is a known one or not and uses the appropriate method to send
	that header. Partial fix for bug #488702

svn path=/trunk/mcs/; revision=130292
2009-03-26 14:13:53 +00:00
Sebastien Pouliot 445567c31c 2009-03-26 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Add/update documentation


svn path=/trunk/mono/; revision=130291
2009-03-26 14:03:31 +00:00
Atsushi Eno febbd23e28 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryFormat.cs, XmlBinaryDictionaryWriter.cs :
	  added some incomplete code for QName support.

	* XmlBinaryDictionaryWriterTest.cs: added QName test part, but
	  disable since it does not work yet.


svn path=/trunk/mcs/; revision=130290
2009-03-26 13:37:43 +00:00
Zoltan Varga 367bba6f7a 2009-03-26 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_handle_global_vregs): Fix support for ternary ops.

svn path=/trunk/mono/; revision=130289
2009-03-26 13:36:44 +00:00
Sebastien Pouliot 030a5e084f 2009-03-26 Sebastien Pouliot <[email protected]>
* X509ChainPolicyTest.cs: Add a small sleep between the Reset and
	the second VerificationTime check since it would be possible, on
	fast hardware, to get the same value (and assert).


svn path=/trunk/mcs/; revision=130282
2009-03-26 11:37:05 +00:00
Atsushi Eno a730c50bc0 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs :
	  handle utf16 typed nodes. (not sure if it is used in writer.)


svn path=/trunk/mcs/; revision=130281
2009-03-26 11:35:32 +00:00
Atsushi Eno d64014a0bd 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : oops, fix build.


svn path=/trunk/mcs/; revision=130280
2009-03-26 11:32:30 +00:00
Atsushi Eno b41232c057 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs, XmlBinaryDictionaryReader.cs,
	  XmlBinaryFormat.cs, : reverted Uuid change (UniqueId is different).
	  Updated TODO status. Removed extra BinaryReader type.


svn path=/trunk/mcs/; revision=130279
2009-03-26 10:55:51 +00:00
Atsushi Eno f9c37f5f72 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryDictionaryWriter.cs,
	  XmlBinaryFormat.cs : fixed couple of issues regarding text and
	  base64 fixed-length buffers (their sizes are not variant).
	  Some ongoing changes on reading dummy-prefixed attributes.


svn path=/trunk/mcs/; revision=130278
2009-03-26 10:30:43 +00:00
Geoff Norton a6e5f0c04e fix the 1.1 build
svn path=/trunk/mcs/; revision=130269
2009-03-26 03:10:02 +00:00
Geoff Norton a2c3e1f406 2009-03-25 Geoff Norton <[email protected]>
* XmlTextReader.cs: Create the uri as relativeorabsolute.

svn path=/trunk/mcs/; revision=130268
2009-03-26 02:54:01 +00:00
Ivan Zlatev 0d17f7f220 2009-03-26 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: When the current cell is moved out of the editing row
	be sure to reset it back to a place holder row.

svn path=/trunk/mcs/; revision=130267
2009-03-26 01:43:07 +00:00
Zoltan Varga ce78379151 2009-03-26 Zoltan Varga <[email protected]>
* pinvoke2.cs: Add a test for #488670.

svn path=/trunk/mono/; revision=130257
2009-03-25 23:45:55 +00:00
Zoltan Varga 032ebf9e28 2009-03-26 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_object): Generate code to throw an exception
	instead of throwing it. Fixes #488670.

svn path=/trunk/mono/; revision=130256
2009-03-25 23:45:47 +00:00
Mark Probst 60a6620327 Fix register allocation bug for ternary ops.
2009-03-25  Mark Probst  <[email protected]>

        * mini-codegen.c (mono_local_regalloc): Don't let sregs get
        allocated to the same registers as fixed sregs.

2009-03-25  Mark Probst  <[email protected]>

        * interlocked-4.2.cs: New CompareExchange test (triggered
        * register
        allocation bug on x86 and amd64).

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=130247
2009-03-25 22:41:17 +00:00
Jb Evain 5c5b5fe42c 2009-03-25 Jb Evain <[email protected]>
* DelegateTest.cs: add new CreateDelegate test.


svn path=/trunk/mcs/; revision=130246
2009-03-25 21:33:18 +00:00
Marek Habersack 8b21628c27 2009-03-25 Marek Habersack <[email protected]>
* AspTokenizer.cs: MD5 checksum calculation happens here. It's
	done incrementally as characters are read.

	* AspParser.cs: the MD5 checksum is no longer computed here. Moved
	to AspTokenizer.
	After parsing, both the tokenizer and the string reader are
	disposed of.

svn path=/trunk/mcs/; revision=130245
2009-03-25 21:20:50 +00:00
Marek Habersack f56fae0f58 2009-03-25 Marek Habersack <[email protected]>
* AssemblyBuilder.cs: renamed CopyFile to CopyFileWithChecksum, in
	prepration for future inclusion of checksum and line pragmas in
	the file being copied.
	Files are copied chunk by chunk, not by reading the entire
	contents.

svn path=/trunk/mcs/; revision=130244
2009-03-25 21:20:39 +00:00
Atsushi Eno c20202ef7c 2009-03-25 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs,
	  XmlBinaryDictionaryWriter.cs : couple of enhancements to support
	  missing types, Dictionary string lookups and indexing fixes.
	  Also reflect some correction by [MC-NBFX] (MS OSPed document).
	* XmlBinaryReaderSession.cs : implemented.

	* XmlBinaryDictionaryReaderTest.cs : enable reader-session dependent
	  tests.
	* XmlBinaryDictionaryReaderTest.cs : enable dummy-prefixed attributes
	  tests.


svn path=/trunk/mcs/; revision=130231
2009-03-25 18:48:24 +00:00
Gert Driesen 978309f0b2 * HttpResponseTest.cs: Added tests for bug #485557 and #488702.
Return meaningful value for GetUriPath () in FakeHttpWorkerRequest2
to allow tests to pass on MS.

svn path=/trunk/mcs/; revision=130215
2009-03-25 14:03:36 +00:00
Sebastien Pouliot 01d423c9a1 2009-03-25 Sebastien Pouliot <[email protected]>
* appdomain.c: Bump MONO_CORLIB_VERSION to 73
	* icall.c (ves_icall_System_Delegate_CreateDelegate_internal): Add
	an extra 'throwOnBindFailure' parameter to the icall. Remove FIXME
	and add a call to mono_security_core_clr_ensure_delegate_creation
	to do the extra checks required by CoreCLR.
	* security-core-clr.c|h: Add function to check delegate creation,
	both in the binding and accessibility, under CoreCLR.


svn path=/trunk/mono/; revision=130214
2009-03-25 13:51:05 +00:00
Sebastien Pouliot 9c55fa1106 2009-03-25 Sebastien Pouliot <[email protected]>
* Delegate.cs: Add new parameter to CreateDelegate_internal (icall)
	* Environment.cs: Bump mono_corlib_version to 73


svn path=/trunk/mcs/; revision=130213
2009-03-25 13:51:01 +00:00
Sebastien Pouliot 95446aaeca 2009-03-25 Sebastien Pouliot <[email protected]>
* reflection.c (mono_reflection_create_dynamic_method): when 
	coreclr is enabled make sure that every resolved object are
	checked (e.g. field and method access).
	* security-core-clr.c|h: Add function to check objects resolved
	when a dynamic method is created.


svn path=/trunk/mono/; revision=130206
2009-03-25 12:44:58 +00:00
Raja R Harinath df3d505c6e update known issues
svn path=/trunk/mcs/; revision=130190
2009-03-25 05:21:30 +00:00
Gonzalo Paniagua Javier 1f0cd4174b 2009-03-25 Gonzalo Paniagua Javier <[email protected]>
* HttpResponse.cs: ClearHeaders() also resets cacheability.
	Bug #485557 fixed.


svn path=/trunk/mcs/; revision=130188
2009-03-25 05:18:32 +00:00
Ivan Zlatev ac0846fe54 2009-03-25 Ivan N. Zlatev <[email protected]>
* DataView.cs: Fire ListChanged when the RowFilter changes.
	[Fixes bug #479405]

svn path=/trunk/mcs/; revision=130179
2009-03-25 03:37:52 +00:00
Jb Evain 0c6dbc4174 2009-03-25 Jb Evain <[email protected]>
* DelegateTest.cs: add CreateDelegate tests for valuetype -> object
	conversion for arguments and return types.


svn path=/trunk/mcs/; revision=130176
2009-03-24 23:37:53 +00:00
Jb Evain 36a8c6aa35 2009-03-25 Jb Evain <[email protected]>
* Delegate.cs (CreateDelegate): fix checks to deal with
	valuetypes -> obj conversions for arguments, and avoid
	issues with such unallowed conversion for return types.


svn path=/trunk/mcs/; revision=130175
2009-03-24 23:37:13 +00:00
Rodrigo Kumpera 663468fd81 2009-03-24 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add stream-header and cli-metadata
	helpers.

	* cli-metadata-tests.md: New tests for the cli metadata header
	and streams.

	* Makefile: Add new tests.

svn path=/trunk/mono/; revision=130173
2009-03-24 22:58:15 +00:00
Rodrigo Kumpera 47f3dc7753 2009-03-24 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Cache directory rva translations.

	* metadata-verify.c: Add cli-header and streams verification.

svn path=/trunk/mono/; revision=130172
2009-03-24 22:58:13 +00:00
Rodrigo Kumpera cc023d623b 2009-03-24 Rodrigo Kumpera <[email protected]>
* image.c (load_metadata_ptrs): We decode MonoImage::md_version_minor at
	the wrong offset (8 instead of 6).

svn path=/trunk/mono/; revision=130171
2009-03-24 22:57:51 +00:00
Mark Probst 68074a6313 Forgot to add tests/interlocked-3.cs.
svn path=/trunk/mono/; revision=130167
2009-03-24 22:42:39 +00:00
Gonzalo Paniagua Javier abfa80f6bd 2009-03-24 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: we were sending CWD instead of PWD.
	Bug #486703 fixed.


svn path=/trunk/mcs/; revision=130157
2009-03-24 21:07:44 +00:00
Gonzalo Paniagua Javier db1184228b 2009-03-24 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: MacOS has different arguments for ping.
	Bug #486904 fixed.


svn path=/trunk/mcs/; revision=130154
2009-03-24 21:00:01 +00:00
Mark Probst d4e5947ea8 ATOMIC_CAS with 3 sregs.
2009-03-24  Mark Probst  <[email protected]>

        * mini-ops.h: New ternary ATOMIC_CAS ops replace the old
        ATOMIC_CAS_IMM ops.

        * method-to-ir.c: Handle more cases for
        Interlocked.CompareExchange.

        * cpu-x86.md, mini-x86.c, mini-x86.h, cpu-amd64.md,
        * mini-amd64.c,
        mini-amd64.h, cpu-ppc.md, cpu-ppc64.md, mini-ppc.c, mini-ppc.h:
        ATOMIC_CAS implementations for x86, AMD64, PPC and PPC64.

2009-03-24  Mark Probst  <[email protected]>

        * interlocked-3.cs: New CompareExchange test.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=130153
2009-03-24 20:33:21 +00:00
Marek Safar bc3762a407 2009-03-24 Marek Safar <[email protected]>
* ecore.cs, expression.cs: Use queried type for MethodGroupExpr
	DeclaringType.


svn path=/trunk/mcs/; revision=130138
2009-03-24 16:11:04 +00:00
Zoltan Varga ea17d8f05b 2009-03-24 Zoltan Varga <[email protected]>
* thread6.cs: Add back a sleep to avoid a race.

svn path=/trunk/mono/; revision=130126
2009-03-24 14:16:23 +00:00
Marek Habersack fe15b22c9e Revert r130049
svn path=/trunk/mcs/; revision=130110
2009-03-24 08:48:23 +00:00
Marek Habersack 55996fb2be Revert "Forgotten ChangeLog entry"
svn path=/trunk/mcs/; revision=130109
2009-03-24 08:48:06 +00:00
Atsushi Eno 35ebdc3bc4 2009-03-24 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, XmlFormatterDeserializer.cs:
          empty collection deserialization resulted in extra
          consumption of the next xml node.


svn path=/trunk/mcs/; revision=130108
2009-03-24 07:50:24 +00:00
Zoltan Varga 03f8d1a689 2009-03-23 Zoltan Varga <[email protected]>
* Makefile.am (libmonoutils_la_SOURCES): Fix make dist.

svn path=/trunk/mono/; revision=130095
2009-03-23 22:01:14 +00:00
Zoltan Varga bc1fec26b1 2009-03-23 Zoltan Varga <[email protected]>
* PageCompiler.cs: Fix the build.

svn path=/trunk/mcs/; revision=130093
2009-03-23 21:58:58 +00:00
Marek Habersack 73f04c137f 2009-03-23 Marek Habersack <[email protected]>
* TemplateBuildProvider.cs: add values of the CodeFile and Src
	page/master/control directives to the list of file dependencies.
	Extract language also for master/page, not only for controls.

	* PageCompiler.cs: CreateConstructors now triggers master page
	build, if the current page is using one. Fixes bug #487857

svn path=/trunk/mcs/; revision=130082
2009-03-23 19:58:36 +00:00
Veerapuram Varadhan f71d07b3df Properly handle TDS 8 BigInt type
Proper handling of TDS 8 BigInt type

svn path=/trunk/mcs/; revision=130081
2009-03-23 19:33:59 +00:00
Gonzalo Paniagua Javier c91a6cee78 Patch from Matthew Metnestsky
svn path=/trunk/mcs/; revision=130076
2009-03-23 17:36:28 +00:00
Marek Safar 4853808430 New test.
svn path=/trunk/mcs/; revision=130075
2009-03-23 16:16:57 +00:00
Marek Safar 7e75d50b88 2009-03-23 Marek Safar <[email protected]>
* attribute.cs: Consider all members for error reporting when
	checking named arguments.


svn path=/trunk/mcs/; revision=130074
2009-03-23 16:16:45 +00:00
Marek Safar 46ef347166 Removed obsolete test
svn path=/trunk/mcs/; revision=130066
2009-03-23 15:29:56 +00:00
Marek Safar fdc0c0a750 New test.
svn path=/trunk/mcs/; revision=130061
2009-03-23 15:05:00 +00:00
Marek Safar 3595e78016 2009-03-23 Marek Safar <[email protected]>
A fix for bug #487625
	* namespace.cs: Use a warning for all predefined type conflicts.


svn path=/trunk/mcs/; revision=130060
2009-03-23 15:04:42 +00:00
Zoltan Varga c1279acebe In metadata/
2009-03-23  Zoltan Varga  <[email protected]>

	* marshal.c (mono_delegate_to_ftnptr): For delegates wrapping pinvoke
	methods, return the native function address itself. Fixes
	#487758.

In tests/

2009-03-23  Zoltan Varga  <[email protected]>

	* pinvoke-2.2.cs libtest.c: Add a test for #487758.

svn path=/trunk/mono/; revision=130057
2009-03-23 14:39:12 +00:00
Jonathan Pryor 94d1b3712c * UnixDriveInfo.cs: UnixDriveInfo.AvailableFreeSpace needs to return
stat.f_bavail * stat.f_frsize, NOT f_bavail*f_bsize, as on some
	  platforms (Solaris) bsize is the preferred block I/O size, while
	  f_frsize is the *actual* filesystem block size.  Thus, to get proper
	  disk under Solaris, we need to s/f_bsize/f_frsize/g.

svn path=/trunk/mcs/; revision=130055
2009-03-23 14:34:17 +00:00
Zoltan Varga a7c54390c3 2009-03-23 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_method_ref): Fix a warning.

	* unwind.c (mono_unwind_frame): Ditto.

svn path=/trunk/mono/; revision=130054
2009-03-23 14:16:26 +00:00
Marek Habersack 807830905f Forgotten ChangeLog entry
svn path=/trunk/mcs/; revision=130050
2009-03-23 12:57:17 +00:00
Marek Habersack 82bbdb387b 2009-03-23 Marek Habersack <[email protected]>
* ConsoleTest.cs: added a bunch of tests for the standard input,
	output and error stream properties.

2009-03-23  Marek Habersack  <[email protected]>

	* FileStreamTest.cs: added a bunch of tests for SafeFileHandle
	constructors

2009-03-23  Marek Habersack  <[email protected]>

	* Console.cs: OpenStandard{Input,Output,Error} no longer use
	FileStream on 2.0+. The reason is that SafeFileHandle used in the
	stream doesn't allow handles with values <= 0, and on Unix stdin
	is 0 which would break the Console class. Instead of FileStream,
	introduced a simple internal specialized stream which is used in
	this scenario.

2009-03-23  Marek Habersack  <[email protected]>

	* FileStream.cs: implemented full support for SafeFileHandle in
	2.0. The obsolete constructors taking an IntPtr now wrap it in a
	SafeFileHandle.

2009-03-23  Marek Habersack  <[email protected]>

	* SafeHandle.cs: added an internal property, OwnsHandle, used by
	FileStream.

svn path=/trunk/mcs/; revision=130049
2009-03-23 12:57:04 +00:00
Marek Safar 50d3a6417b 2009-03-23 Marek Safar <[email protected]>
A fix for bug #485706
	* statement.cs: Explicitly type catch type argument to pass verifier
	check.


svn path=/trunk/mcs/; revision=130048
2009-03-23 12:43:54 +00:00
Marek Safar 6f2b5cd69f New test.
svn path=/trunk/mcs/; revision=130047
2009-03-23 12:42:57 +00:00
Zoltan Varga 9a7ea4a60a 2009-03-23 Zoltan Varga <[email protected]>
* StringTest.cs (LastIndexOfStringComparison): Add a test for #486234.

svn path=/trunk/mcs/; revision=130038
2009-03-23 11:20:30 +00:00
Zoltan Varga 40ac954554 2009-03-23 Zoltan Varga <[email protected]>
* String.cs (LastIndexOf): Handle empty strings correctly. Fixes #486234.

svn path=/trunk/mcs/; revision=130037
2009-03-23 11:20:08 +00:00
Massimiliano Mantione e9fca61eae Updated the profiler documentation.
svn path=/trunk/mono/; revision=130030
2009-03-23 09:46:24 +00:00
Massimiliano Mantione 9f1f22809a mono-profiler-logging.c: Removed useless "gc-signal" option (the newer "heap=<SIGNAL>" format of the "heap" option does the same thing).
svn path=/trunk/mono/; revision=130029
2009-03-23 09:46:21 +00:00
Gonzalo Paniagua Javier f0fc8c02dc 2009-03-23 Gonzalo Paniagua Javier <[email protected]>
* console-io.c: some of the values for control characters might not be
	present.


svn path=/trunk/mono/; revision=130024
2009-03-23 04:39:10 +00:00
Zoltan Varga 811ef67163 2009-03-22 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_unbox_trampoline): Fix the binary writer support.
	(mono_compile_assembly): Enable the binary writer for full-aot as well.

	* image-writer.c (do_reloc): Add support for the JUMP24 relocation,
	fix the handling of large values in the ALU_PC_G0_NC relocation.

svn path=/trunk/mono/; revision=130003
2009-03-22 18:34:24 +00:00
Marek Habersack 12b3308fec 2009-03-22 Marek Habersack <[email protected]>
* FileStream.cs: implemented the SafeFileHandle property.

svn path=/trunk/mcs/; revision=130002
2009-03-22 18:27:08 +00:00
Miguel de Icaza c32d295832 2009-03-22 Miguel de Icaza <[email protected]>
* driver.cs (Main): Use Environment.Exit to quit quickly and
	prevent the compiler from doing the usual wait for helper thread
	to terminate.  

	This is to prevent a slowdown that was reported by Gonzalo on
	ASP.NET 

svn path=/trunk/mcs/; revision=129990
2009-03-22 17:24:44 +00:00
Zoltan Varga 55a5425a4f 2009-03-22 Zoltan Varga <[email protected]>
* local-propagation.c method-to-ir.c local-propagation.c: Fix warnings.

svn path=/trunk/mono/; revision=129989
2009-03-22 17:10:06 +00:00
Zoltan Varga 29bbcbf27f 2009-03-22 Zoltan Varga <[email protected]>
* gc_wrapper.h: Disable thread local allocation for ARM too because of
	incomplete support in libgc.

svn path=/trunk/mono/; revision=129988
2009-03-22 16:06:05 +00:00
Mark Probst aec27b213a Spilling for ternary ops.
2009-03-22  Mark Probst  <[email protected]>

        * method-to-ir.c (mono_spill_global_vars): Support for ternary
        ops.

svn path=/trunk/mono/; revision=129987
2009-03-22 15:56:03 +00:00
Mark Probst c76f08810f Small ternary ops fixes.
2009-03-22  Mark Probst  <[email protected]>

        * method-to-ir.c: MINI_OP3 needs a comma.

        * method-to-ir.c, mini.h, mini.c: Remove
        mono_init_op_sreg_counts ().

svn path=/trunk/mono/; revision=129986
2009-03-22 15:54:56 +00:00
Zoltan Varga 40cc71d8e0 2009-03-22 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_output_basic_block): Fix aot support in
	OP_JMP.

svn path=/trunk/mono/; revision=129985
2009-03-22 15:12:03 +00:00
Jonathan Pryor 30cd77c3a7 * Mono.Documentation/monodocs2html.cs: Perform the timestamp check for
the top-level and namespace-level index files.

svn path=/trunk/mcs/; revision=129970
2009-03-22 03:48:16 +00:00
Zoltan Varga de3611277e 2009-03-22 Zoltan Varga <[email protected]>
* mini-ops.h: Fix arguments of the MEMINDEX opcodes.

svn path=/trunk/mono/; revision=129969
2009-03-22 03:16:23 +00:00
Zoltan Varga 80d9f909ec 2009-03-22 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_build_imt_thunk): Disable the !fail_tramp
	assertion.

	* mini-ops.h: Fix arguments of the MEMINDEX opcodes.

svn path=/trunk/mono/; revision=129968
2009-03-22 03:02:29 +00:00
Zoltan Varga d855998471 2009-03-22 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_build_imt_thunk): Simplify the fail handling
	code somewhat.

svn path=/trunk/mono/; revision=129967
2009-03-22 02:32:24 +00:00
Daniel Nauck 808765cc61 2009-03-22 Daniel Nauck <[email protected]>
* GenerateResource.cs: Set BasePath property of
                ResXResourceReader class.
                See: http://lists.ximian.com/pipermail/mono-devel-list/2009-March/031459.html


svn path=/trunk/mcs/; revision=129966
2009-03-21 23:27:45 +00:00
Sebastien Pouliot de24b807f5 2009-03-21 Sebastien Pouliot <[email protected]>
* exception.c|h: Add helpers to create [Field|Method]AccessException
	* icall.c: Add required coreclr check calls for field reflection.
	Move the existing (method) check logic into security-core-clr.c
	* security-core-clr.c: Add functions to check if the access of a
	field or method is allowed when reflecting under coreclr. This is
	mostly done using a stack walk to find the "real" caller: i.e. the
	code that is calling the reflection


svn path=/trunk/mono/; revision=129959
2009-03-21 14:41:46 +00:00
Mark Probst 0e93962a24 Ternary IR ops in mini.
2009-03-21  Mark Probst  <[email protected]>

        * cfold.c, cprop.c, decompose.c, genmdesc.c, helpers.c, ir-emit.h,
        liveness.c, local-propagation.c, method-to-ir.c, mini-codegen.c,
        mini.c, mini.h, simd-intrinsics.c, ssa.c: Support for ternary IR
        operations.

svn path=/trunk/mono/; revision=129944
2009-03-21 08:04:35 +00:00
Jonathan Pryor 11600ea1c2 * Mono.Documentation/monodocer.cs: Be nice to make,
mdoc-export-html, and other apps that use file timetamps: if the 
	  file contents haven't changed after the update, don't replace the
	  "original" file.  This preserves file timestamps, thus allowing
	  other apps to behave nicely (e.g. mdoc-export-html won't update all
	  documentation after running mdoc-update, as the files won't change
	  unless something has *actually* changed).

svn path=/trunk/mcs/; revision=129940
2009-03-21 04:04:11 +00:00
Jonathan Pryor 83657c1193 * mdoc-export-html.1: Document --force-update parameter.
svn path=/trunk/mono/; revision=129937
2009-03-21 02:54:43 +00:00
Jonathan Pryor d1e415e292 * Mono.Documentation/monodocs2html.cs: Do as make(1) does: if the
target file already exists and is newer than the source file, don't
	  regenerate it.  (Greatly speeds things up if only a few .xml files
	  changed.)  Add a --force-update option to disable this behavior.

svn path=/trunk/mcs/; revision=129936
2009-03-21 02:49:24 +00:00
Marek Habersack e47e456963 2009-03-21 Marek Habersack <[email protected]>
* HttpSessionState.cs: implemented the CookieMode property.

svn path=/trunk/mcs/; revision=129934
2009-03-21 02:12:29 +00:00
Marek Habersack 505af21987 2009-03-21 Marek Habersack <[email protected]>
* HttpResponse.cs: added two missing 3.0+ properties -
	SubStatusCode and TrySkipIisCustomErrors.

svn path=/trunk/mcs/; revision=129933
2009-03-21 02:06:03 +00:00
Marek Habersack 1de077ed1a Fix the build
svn path=/trunk/mono/; revision=129930
2009-03-20 22:52:33 +00:00
Zoltan Varga 65e199715c 2009-03-20 Zoltan Varga <[email protected]>
* mono/os: Remove this now empty directory.
	
	* mono/Makefile.am (SUBDIRS): Remove 'os'.

svn path=/trunk/mono/; revision=129929
2009-03-20 21:38:56 +00:00
Zoltan Varga 0957f1ab66 2009-03-20 Zoltan Varga <[email protected]>
* os/gc-internal.h: Move this to 'utils'.


svn path=/trunk/mono/; revision=129928
2009-03-20 21:37:08 +00:00
Zoltan Varga 2b6498793d 2009-03-20 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_find_block_region): Handle try clauses nested
	inside finally clauses correctly. Fixes #485721.

	* mini.c (mono_find_spvar_for_region): This needs to handle try regions
	after the change above.

	* exceptions.cs: Add a test.

svn path=/trunk/mono/; revision=129927
2009-03-20 21:31:14 +00:00
Zoltan Varga d5b0cad8e9 2009-03-20 Zoltan Varga <[email protected]>
* mono-gdb.py: Update for the latest python API on the archer branch.

svn path=/trunk/mono/; revision=129926
2009-03-20 21:04:50 +00:00
Zoltan Varga c552fc684b 2009-03-20 Zoltan Varga <[email protected]>
* thread6.cs: Use a monitor to avoid sleeping which doesn't work on slow
	machines.

svn path=/trunk/mono/; revision=129925
2009-03-20 21:04:00 +00:00
Jonathan Pryor 8165d2eaf5 * x-struct-str.c: It's possible for struct members to be NULL, so make
sure we don't pass NULL to strlen(3).

svn path=/trunk/mono/; revision=129882
2009-03-20 16:32:43 +00:00
Sebastien Pouliot f65c498eff 2009-03-20 Sebastien Pouliot <[email protected]>
* class.c: Simplification to coreclr checks for overrides that
	makes it easier to set breakpoints.


svn path=/trunk/mono/; revision=129880
2009-03-20 16:24:39 +00:00
Zoltan Varga 6708c4454e 2009-03-20 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_find_block_region): Handle try clauses nested
	inside finally clauses correctly. Fixes #485721.

	* mini.c (mono_find_spvar_for_region): This needs to handle try regions
	after the change above.

	* exceptions.cs: Add a test.

svn path=/trunk/mono/; revision=129877
2009-03-20 15:53:35 +00:00
Sebastien Pouliot 6f2cceca57 2009-03-20 Sebastien Pouliot <[email protected]>
* EventInfo.cs, MonoProperty.cs: Ensure the delegate optimization 
	works correctly, i.e. throw the right exception, with Moonlight.


svn path=/trunk/mcs/; revision=129872
2009-03-20 14:02:16 +00:00
Sebastien Pouliot 46bf0c89fe 2009-03-20 Sebastien Pouliot <[email protected]>
* DynamicMethod.cs (Invoke): Wrap a MethodAccessException inside a
	TargetInvocationException (required for Moonlight 2).


svn path=/trunk/mcs/; revision=129871
2009-03-20 13:48:57 +00:00
Sebastien Pouliot 767890620a 2009-03-20 Sebastien Pouliot <[email protected]>
* security-core-clr.c|h: (mono_security_core_clr_class_level, 
	mono_security_core_clr_method_level): Avoid potential 
	MonoCustomAttrInfo allocation for transparent assemblies (e.g. 
	user/application code) and make it easier to set breakpoints


svn path=/trunk/mono/; revision=129866
2009-03-20 13:10:43 +00:00
Daniel Morgan a5de0a51df 2009-03-20 Daniel Morgan <[email protected]>
* OracleCommand.cs: fix suggested by Thracx <[email protected]>
	where the parameter was always item zero for an out parameter.

svn path=/trunk/mcs/; revision=129864
2009-03-20 11:11:57 +00:00
Rodrigo Kumpera c3fd9db3d5 2009-03-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Reject cli header tables that mono don't handle.

svn path=/trunk/mono/; revision=129835
2009-03-19 22:32:11 +00:00
Rodrigo Kumpera 61a1071083 2009-03-19 Rodrigo Kumpera <[email protected]>
* cli-header-tests.md: More tests for the cli header.

svn path=/trunk/mono/; revision=129834
2009-03-19 22:32:03 +00:00
Rodrigo Kumpera e75f2aa853 2009-03-19 Rodrigo Kumpera <[email protected]>
* pedump.c: Fix CLI header dumping.

svn path=/trunk/mono/; revision=129833
2009-03-19 22:32:01 +00:00
Rodrigo Kumpera 5bcd8059fe 2009-03-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: More CLI header verification.

svn path=/trunk/mono/; revision=129832
2009-03-19 22:31:53 +00:00
Rodrigo Kumpera 7993c2e3d5 2009-03-19 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add cli-header variable to make tests
	more readable.

svn path=/trunk/mono/; revision=129831
2009-03-19 22:31:46 +00:00
Zoltan Varga aad1c133fa 2009-03-19 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_ops_encode): Increase the size of the encode buffer.

	* mini-amd64.c (mono_arch_emit_epilog): Remove the encoding of stack size
	into cfg->used_int_regs, it is not needed with the dwarf unwinder.
	(mono_arch_compute_omit_fp): Remove the emit_epilog () workaround.

svn path=/trunk/mono/; revision=129826
2009-03-19 21:18:52 +00:00
Zoltan Varga 816b76c13e 2009-03-19 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_compute_omit_fp): Add another check to avoid hitting
	the stack_alloc_size < (1 << 16) assertion in emit_prolog ().

svn path=/trunk/mono/; revision=129824
2009-03-19 21:08:18 +00:00
Jonathan Pryor fd45105d28 * src/DbLinq/Data/Linq/Database/Implementation/TransactionalCommand.cs,
src/DbLinq.Firebird/FirebirdDataContext.cs,
	  src/DbLinq.Ingres/IngresDataContext.cs,
	  src/DbLinq.MySql/MysqlDataContext.cs,
	  src/DbLinq.Oracle/OracleDataContext.cs,
	  src/DbLinq.PostgreSql/PgsqlDataContext.cs,
	  src/DbLinq.Sqlite/Schema/DataCommand.cs,
	  src/DbLinq.Sqlite/SqliteDataContext.cs,
	  src/DbLinq.SqlServer/SqlServerDataContext.cs,
	  src/DbLinq/Util/ReflectionUtility.cs: Make types internal so that
	  they aren't exported from System.Data.Linq.dll.

svn path=/trunk/mcs/; revision=129823
2009-03-19 21:00:27 +00:00
Ivan Zlatev ff4843aeab 2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: If IsHandleCreated and the very first row is added
	to the grid in a non-databound scenario - select the first cell.2009-03-19  Ivan N. Zlatev  <[email protected]>
	* DataGridViewTest.cs: Add tests to verify that the current cell changes
	if IsHandleCreated and the first row is added in a non-databound scenario.
	[Fixes bug #486881]

svn path=/trunk/mcs/; revision=129815
2009-03-19 18:59:57 +00:00
Marek Safar 65ba363481 2009-03-19 Marek Safar <[email protected]>
* ecore.cs: Load build-in types directly instead of accessing
	an internal field.


svn path=/trunk/mcs/; revision=129812
2009-03-19 18:44:28 +00:00
Sebastien Pouliot 971236a989 2009-03-19 Sebastien Pouliot <[email protected]>
* method-to-ir.c: Allow CoreCLR to throw FieldAccessException. 
	Simplify logic for ensure_method_is_allowed_to_call_method. 
	Handle wrappers on callers.


svn path=/trunk/mono/; revision=129810
2009-03-19 18:38:42 +00:00
Ivan Zlatev b7a4136f89 2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
	DataGridView. They do not belong to a DataGridView.
	* DataGridViewTest.cs, DataGridViewColumnTest.cs: Add tests for
	Row/CellTemplates being always null.
	[Fixes bug #486645]

svn path=/trunk/mcs/; revision=129806
2009-03-19 18:10:03 +00:00
Ivan Zlatev 55953cbcb5 2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs:
	Set indices and associate with DataGridView only after the item is
	add to the internal list.
	[Fixes part of bug #486645]

svn path=/trunk/mcs/; revision=129805
2009-03-19 18:09:59 +00:00
Ivan Zlatev 52a121eb03 2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount.
	FullRowTemplate already contains all the cells.
	[Fixes part of bug #486645]

svn path=/trunk/mcs/; revision=129804
2009-03-19 18:09:54 +00:00
Ivan Zlatev 27894abb99 2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal
	to perform Pre and Post removal actions to allow the current cell to be
	moved and all events fired properly before the column is removed.

svn path=/trunk/mcs/; revision=129803
2009-03-19 18:09:38 +00:00
Zoltan Varga 2c669dd396 2009-03-19 Zoltan Varga <[email protected]>
* Makefile.am (fullaotcheck): Don't run the generics tests, some of
	them don't run yet.

svn path=/trunk/mono/; revision=129802
2009-03-19 17:58:09 +00:00
Zoltan Varga 5b81c7b8d2 2009-03-19 Zoltan Varga <[email protected]>
* basic-simd.cs: Fix the names of some test methods.

svn path=/trunk/mono/; revision=129801
2009-03-19 17:57:04 +00:00
Zoltan Varga 84f8db78ea 2009-03-19 Zoltan Varga <[email protected]>
* locales.c (get_current_locale_name): Use g_malloc instead of malloc.

svn path=/trunk/mono/; revision=129798
2009-03-19 17:42:53 +00:00
Marek Habersack bf6f68cf2d 2009-03-19 Marek Habersack <[email protected]>
* ScriptManager.cs: WriteCallbackPanel is called from
	UpdatePanel.RenderChildren and should not output anything for
	panels registered as the ones to refresh. If such a panel calls
	this method, its output is stored in a dictionary to be used later
	in RenderFormCallback.
	RenderFormCallback first renders all the form controls. In that
	process UpdatePanel instances, if any, may call
	WriteCallbackPanel. After that, if there are panels registered for
	refresh, another loop over the list is made this time checking
	whether any panels left their output in WriteCallbackPanel. If a
	panel hasn't done it it is rendered. And last, another check is
	done to see if the loop described above caused any panels to leave
	output in WriteCallbackPanel. If yes, the output is written to the
	text writer.

svn path=/trunk/mcs/; revision=129774
2009-03-19 13:44:14 +00:00
Sebastien Pouliot bdf2e3d53c 2009-03-19 Sebastien Pouliot <[email protected]>
* SecurityManager.cs: Remove VerificationException (not used from
	the runtime anymore) and add FieldAccessException (which is now, 
	or soon will be, required/used by the runtime).


svn path=/trunk/mcs/; revision=129771
2009-03-19 12:05:13 +00:00
Atsushi Eno d0a12f275e 2009-03-19 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs, XmlFormatterDeserializer.cs :
          to infer type from xml qname, consider DataContractAttribute
          names.


svn path=/trunk/mcs/; revision=129764
2009-03-19 08:12:07 +00:00
Ankit Jain b9c43ff152 Fix bugs #323833 and #484384.
* AssemblyResolver.cs (GatherGacAssemblies): Handle duplicate entries.
These seem to be old copies of the assemblies with old keys. Pick
the one with the latest timestamp.

svn path=/trunk/mcs/; revision=129760
2009-03-19 01:09:56 +00:00
Ankit Jain e4baa57b8e Fix bug #484773.
* Main.cs (Execute): Check whether the project file exists or not.
* Parameters.cs (ParseArguments): Handle absolute paths too.

svn path=/trunk/mcs/; revision=129759
2009-03-19 00:58:12 +00:00
Ivan Zlatev 64324bccab 2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and
	Post removal action to allow the current cell to be moved and all events fired
	properly before the row is removed.

svn path=/trunk/mcs/; revision=129757
2009-03-19 00:26:30 +00:00
Ivan Zlatev cc3a0049dc 2009-03-18 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
	[Fixes bug #486640]

svn path=/trunk/mcs/; revision=129747
2009-03-18 23:19:50 +00:00
Rodrigo Kumpera 94071d0c67 2009-03-18 Rodrigo Kumpera <[email protected]>
* cli-header-tests.md: New file with cli header tests.

	* Makefile: Add new tests.

svn path=/trunk/mono/; revision=129743
2009-03-18 22:33:28 +00:00
Rodrigo Kumpera 80dd1b75b1 2009-03-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Initial verification of the CLI header.

svn path=/trunk/mono/; revision=129742
2009-03-18 22:33:26 +00:00
Rodrigo Kumpera a7d8eba483 2009-03-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_resources_table): Fix verification of zero
	sized resource section and id entries count.

svn path=/trunk/mono/; revision=129741
2009-03-18 22:33:19 +00:00
Geoff Norton ab07b0dc5c 2009-03-18 Geoff Norton <[email protected]>
* mini.c: Only chain sigfpe if it wasn't generated in mangaed code.

svn path=/trunk/mono/; revision=129736
2009-03-18 19:29:33 +00:00
Marek Safar 9926422d2c Update.
svn path=/trunk/mcs/; revision=129721
2009-03-18 17:38:06 +00:00
Marek Safar acfe0fd967 2009-03-18 Marek Safar <[email protected]>
* ecore.cs: Always use unbox.any when available.


svn path=/trunk/mcs/; revision=129719
2009-03-18 17:36:46 +00:00
Marek Safar 7f33c2d6ec New tests.
svn path=/trunk/mcs/; revision=129715
2009-03-18 17:17:58 +00:00
Marek Safar 290a9b551f 2009-03-18 Marek Safar <[email protected]>
* class.cs: Always set TypeAttributes.BeforeFieldInit conditionally.


svn path=/trunk/mcs/; revision=129714
2009-03-18 17:17:43 +00:00
Jonathan Pobst ee954954e2 2009-03-18 Jonathan Pobst <[email protected]>
* XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
	placement of popup windows on OSX.

svn path=/trunk/mcs/; revision=129699
2009-03-18 14:46:47 +00:00
Zoltan Varga 00b8b75249 2009-03-18 Zoltan Varga <[email protected]>
* TypeTest.cs: Add more tests for user types.

svn path=/trunk/mcs/; revision=129693
2009-03-18 14:15:57 +00:00
Zoltan Varga 49175a55fe 2009-03-18 Zoltan Varga <[email protected]>
* TypeBuilder.cs (GetGenericTypeDefinition): Call the icall instead of
	the base method which now throws an exception.

svn path=/trunk/mcs/; revision=129692
2009-03-18 14:15:30 +00:00
Zoltan Varga c9dc5502c1 2009-03-18 Zoltan Varga <[email protected]>
* Type.cs (GetGenericTypeDefinition): Make this throw an exception to be
	consistent with MS.NET. Move the real implementation to MonoType.

svn path=/trunk/mcs/; revision=129691
2009-03-18 14:14:44 +00:00
Zoltan Varga d06e4de838 2009-03-18 Zoltan Varga <[email protected]>
* icall.c: Handle user types in many Type icalls. Fixes #486303.

svn path=/trunk/mono/; revision=129689
2009-03-18 14:08:04 +00:00
Zoltan Varga 16a7a24122 2009-03-18 Zoltan Varga <[email protected]>
* dwarfwriter.c (token_handler): Fix a crash caused by the last change.

svn path=/trunk/mono/; revision=129688
2009-03-18 13:24:02 +00:00
Marek Safar 590aaf0276 2009-03-18 Marek Safar <[email protected]>
* Decimal.cs: Initialize all fields.


svn path=/trunk/mcs/; revision=129686
2009-03-18 12:42:54 +00:00
Marek Habersack 99b5e370f6 2009-03-18 Marek Habersack <[email protected]>
* Control.cs: AppRelativeResourceDirectory no longer returns a
	hard-coded "~/" when template control's virtual path cannot be
	determined. It returns application relative version of
	TemplateSourceDirectory instead.

svn path=/trunk/mcs/; revision=129676
2009-03-18 08:08:19 +00:00
Atsushi Eno 52197296f0 2009-03-18 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : more not-understandable bits.


svn path=/trunk/mcs/; revision=129675
2009-03-18 07:19:33 +00:00
Atsushi Eno 0ad299bd14 2009-03-18 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : implemented ReadFullStartElement (full??).


svn path=/trunk/mcs/; revision=129674
2009-03-18 07:04:30 +00:00
Atsushi Eno 273288d6d0 2009-03-18 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : implemented missing && understandable
	  members.


svn path=/trunk/mcs/; revision=129673
2009-03-18 06:51:59 +00:00
Atsushi Eno 87dcaba14c 2009-03-18 Atsushi Enomoto <[email protected]>
* XmlReader.cs : handle DateTimeOffset in typed reader methods.


svn path=/trunk/mcs/; revision=129672
2009-03-18 06:36:24 +00:00
Neville Gao 729e866f15 Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
[Fixes bug #482690]. Committed for Matt Guo.

svn path=/trunk/mcs/; revision=129669
2009-03-18 02:53:24 +00:00
Ivan Zlatev 8929f67f06 2009-03-18 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Implement the CellMouseDoubleClick event.
	[Fixes bug #486262]

svn path=/trunk/mcs/; revision=129661
2009-03-18 01:37:02 +00:00
Ivan Zlatev 082eac3859 2009-03-18 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix scrolling to take into account that the
	scrollbars are actually inside the client area of the datagridview.

svn path=/trunk/mcs/; revision=129657
2009-03-18 01:03:25 +00:00
Ivan Zlatev 93ef282358 2009-03-18 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Implement mouse wheel scrolling.
	[Fixes bug #486159]

svn path=/trunk/mcs/; revision=129656
2009-03-18 01:03:20 +00:00
Ivan Zlatev 9db7d14fdb 2009-03-17 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: When DataSource changes the rebinding should happen
	not if IsHandleCreated but if BindingContext != null.
	* DataGridViewTest.cs: Add tests for the relevance of IsHandleCreated and
	the BindingContext for the databound state of the DataGridView.
	[Fixes bug #486013]

svn path=/trunk/mcs/; revision=129651
2009-03-17 23:54:18 +00:00
Ivan Zlatev 468e45887c 2009-03-17 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Browsable(false) properties should be skipped when
	autogenerating the columns.
	* DataGridViewTest.cs: Add a test for Browsable(false) columns.
	[Fixes bug #486021]

svn path=/trunk/mcs/; revision=129637
2009-03-17 22:33:08 +00:00
Jb Evain 53910cb127 2009-03-17 Jb Evain <[email protected]>
* driver.c: remove now uneeded call to mono_gc_base_init before
	mono_profiler_load.


svn path=/trunk/mono/; revision=129635
2009-03-17 22:18:07 +00:00
Jb Evain 591a8a6afa 2009-03-17 Jb Evain <[email protected]>
* profiler.c: call mono_gc_base_init from mono_profiler_load.


svn path=/trunk/mono/; revision=129634
2009-03-17 22:16:48 +00:00
Jb Evain 8e320e7547 2009-03-17 Jb Evain <[email protected]>
* dwarfwriter.c (token_handler): handle more cases.


svn path=/trunk/mono/; revision=129633
2009-03-17 22:15:09 +00:00
Zoltan Varga ac07d9f2f5 2009-03-17 Zoltan Varga <[email protected]>
* sgen-gc.c (mono_gc_make_descr_for_object): Fix 64 bit support.
	(mono_gc_make_descr_for_array): Ditto.

svn path=/trunk/mono/; revision=129628
2009-03-17 21:08:17 +00:00
Marek Habersack 5a63ec5da9 2009-03-17 Marek Habersack <[email protected]>
* Unit.cs: introduced a field to tell the difference between empty
	(as in Unit.Empty) and 0px units.

2009-03-17  Marek Habersack  <[email protected]>

	* UnitTest.cs: added a test for equality with Unit.Empty

svn path=/trunk/mcs/; revision=129620
2009-03-17 19:01:30 +00:00
Marek Safar 9d23552efb 2009-03-17 Marek Safar <[email protected]>
* generic.cs: Removed obsolete version of type inference.

svn path=/trunk/mcs/; revision=129605
2009-03-17 16:43:24 +00:00
Sebastien Pouliot 463f42eeed 2009-03-17 Sebastien Pouliot <[email protected]>
* verify.c (mono_verifier_is_class_full_trust): Add support for
	CoreCLR security mode where trusted assemblies are defined as
	"platform code".


svn path=/trunk/mono/; revision=129588
2009-03-17 14:39:37 +00:00
Sebastien Pouliot cc9174c060 2009-03-17 Sebastien Pouliot <[email protected]>
* method-to-ir.c: Remove more dead code (that was required only
	because of method_is_safe). Fix compiler warnings.


svn path=/trunk/mono/; revision=129585
2009-03-17 14:00:56 +00:00
Sebastien Pouliot 7eab314716 2009-03-17 Sebastien Pouliot <[email protected]>
* method-to-ir.c: Remove unneeded/useless method_is_safe
	http://lists.ximian.com/archives/public/mono-devel-list/2009-March/031404.html


svn path=/trunk/mono/; revision=129583
2009-03-17 13:36:00 +00:00
Marek Habersack 9ccd39fb07 2009-03-17 Marek Habersack <[email protected]>
* JavaScriptSerializer.cs: if conversion of IDictionary or
	IDictionary <K,V> to an object is requested, make sure that a
	concrete type is used (in both cases Dictionary <string, object>).
	Make sure that if the target type is an IDictionary<K,V> that the
	key is either an object or a string.

2009-03-17  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: added tests for conversion to
	IDictionary and IDictionary <K,V> types.

svn path=/trunk/mcs/; revision=129580
2009-03-17 13:21:57 +00:00
Atsushi Eno efb1509fd7 2009-03-17 Atsushi Enomoto <[email protected]>
* Expression.cs : gave up another optimization for bug #443090.

	* SelectNodesTests.cs : added 2nd test for bug #443490.


svn path=/trunk/mcs/; revision=129574
2009-03-17 11:29:32 +00:00
Atsushi Eno 40a7f089a1 2009-03-17 Atsushi Enomoto <[email protected]>
* XPathExpression.cs : eliminate use of ExpressionCache and lose
	  significant performance in some use for the sake of multithreaded
	  use. Fixed bug #477049.


svn path=/trunk/mcs/; revision=129545
2009-03-17 08:54:09 +00:00
Atsushi Eno 65f82e7013 2009-03-17 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : some weird TextWriter has null Encoding.
	  Fixed bug #372525.


svn path=/trunk/mcs/; revision=129534
2009-03-17 07:56:21 +00:00
Atsushi Eno 19813940cf 2009-03-17 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : check identity constraints on default or
	  fixed attributes too.


svn path=/trunk/mcs/; revision=129532
2009-03-17 07:34:10 +00:00
Carlos Alberto Cortez 0bf6e9d56b 2009-03-16 Carlos Alberto Cortez <[email protected]>
* DomainUpDown.cs: When ReadOnly is true, all the text entered by the
	user should use a different handling, trying to use every pressed char
	as a unique and only one prefix to compare against the items. Also,
	refactor some input check code to avoid duplication.
	Fixes #458607.


svn path=/trunk/mcs/; revision=129531
2009-03-17 03:59:34 +00:00
Rodrigo Kumpera cc243d905c 2009-03-16 Rodrigo Kumpera <[email protected]>
* resources-tests.md: New file with pecoff tests.

	* Makefile: Add new tests.

	* header-tests.md: Update some tests.

svn path=/trunk/mono/; revision=129519
2009-03-17 01:48:29 +00:00
Rodrigo Kumpera 4515268d26 2009-03-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add minimal PECOFF resource verification.

svn path=/trunk/mono/; revision=129518
2009-03-17 01:48:28 +00:00
Rodrigo Kumpera db063855cc 2009-03-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Be less restrictive with some coff fields.

svn path=/trunk/mono/; revision=129517
2009-03-17 01:48:20 +00:00
Rodrigo Kumpera cd20ae8474 2009-03-16 Rodrigo Kumpera <[email protected]>
* verify.c (init_stack_with_value_at_exception_boundary): Init generic
	params as boxed values on stack. Fixes #485706.

svn path=/trunk/mono/; revision=129516
2009-03-17 01:48:09 +00:00
Rodrigo Kumpera 493eb2caae 2009-03-16 Rodrigo Kumpera <[email protected]>
* invalid_generic_generic_object_is_boxed.il: Regression test
	for #485706.

svn path=/trunk/mono/; revision=129515
2009-03-17 01:48:00 +00:00
Rodrigo Kumpera 98510299ea 2009-03-16 Rodrigo Kumpera <[email protected]>
* mini.c (mini_method_compile): Print the method been compiled with
	verbose level 1 instead of 3 as this helps a lot debugging JIT crashes
	for people not familiar with the runtime.

svn path=/trunk/mono/; revision=129514
2009-03-17 01:47:58 +00:00
Zoltan Varga 242332de32 2009-03-17 Zoltan Varga <[email protected]>
* mini-exceptions.c (get_generic_info_from_stack_frame): Avoid returning
	a managed object which is later put into a GList. Return its class instead.

	* mini.c (mono_allocate_stack_slots_full): Avoid sharing ref and non-ref
	stack slots when using sgen.

svn path=/trunk/mono/; revision=129509
2009-03-16 23:19:32 +00:00
Ivan Zlatev 1ebefddf73 2009-03-16 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: In OwningColumng Handle invalid column index
	silently.
	[Fixes bug #485278]

svn path=/trunk/mcs/; revision=129506
2009-03-16 22:30:56 +00:00
Ivan Zlatev 12c457070d 2009-03-16 Ivan N. Zlatev <[email protected]>
* DataGridViewBand.cs: Update our State whenever a property changes.
	* DataGridView.cs: Don't be so generous in reseting Displayed, because
	it will spawn lots and lots of unneeded State changed events.
	[Fixes bug #484989]

svn path=/trunk/mcs/; revision=129501
2009-03-16 21:47:55 +00:00
Ivan Zlatev f2d9513668 2009-03-16 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs:
	Add support for invisible rows and columns.
	[Fixes bug #484951]

svn path=/trunk/mcs/; revision=129496
2009-03-16 20:46:13 +00:00
Ivan Zlatev aa798acb87 2009-03-16 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: Escape literal { in ToString.
	* DataGridViewTextBoxCell.cs: Fix ToString.
	[Fixes bug #484923]

svn path=/trunk/mcs/; revision=129494
2009-03-16 19:16:17 +00:00
Marek Habersack 549f07d36b 2009-03-16 Marek Habersack <[email protected]>
* AspGenerator.cs:
	TagParsed now better handles <script> tags. For both server and
	client tags ProcessScript is called and the input text, in case of
	client tags, is read verbatim to be processed when ProcessScript
	is called to close the tag. At this point the verbatim text is
	checked whether it contains server-side tags and/or expressions.

svn path=/trunk/mcs/; revision=129491
2009-03-16 18:54:17 +00:00
Raja R Harinath f7f734bc1d Reduce dependence of UriParser on Uri
* UriParser.cs (GetComponents): Don't refer to fields of Uri to
extract components.  Use a pair of regexes instead on
Uri.OriginalString.
* Uri.cs (OriginalString): Make available as an internal property
in the NET_1_1 profile.

svn path=/trunk/mcs/; revision=129488
2009-03-16 18:41:24 +00:00
Marek Safar 9eec5fe8d4 2009-03-16 Marek Safar <[email protected]>
* typemanager.cs, decl.cs, roottypes.cs, anonymous.cs, nullable.cs,
	expression.cs, rootcontext.cs, namespace.cs, ecore.cs, class.cs,
	delegate.cs, flowanalysis.cs, cs-parser.jay, driver.cs,
	attribute.cs, codegen.cs: Changed RootTypes to be ModuleContainer.


svn path=/trunk/mcs/; revision=129485
2009-03-16 18:20:22 +00:00
Atsushi Eno af866ca922 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlParserContext.cs : .NET has weird nametable initialization.
	  Fixed bug #484519.

	* XmlParserContextTests.cs : added test for bug #484519.


svn path=/trunk/mcs/; revision=129483
2009-03-16 18:04:51 +00:00
Atsushi Eno c45153282b 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlReader.cs : (ReadToFollowing) check LocalName, not Name.
	  Fixed bug #478506.


svn path=/trunk/mcs/; revision=129474
2009-03-16 17:27:32 +00:00
Carlos Alberto Cortez ef0bbe89d1 2009-03-16 Carlos Alberto Cortez <[email protected]>
* MenuAPI.cs: When navigating items using the keyboard properly handle
	the case when no item is selected - this way we should try to select
	the first or the last item depending on the direction, but no the
	second or third one, etc.


svn path=/trunk/mcs/; revision=129472
2009-03-16 17:22:26 +00:00
Gonzalo Paniagua Javier 4b40d68f1b windows stub fix
svn path=/trunk/mono/; revision=129466
2009-03-16 16:16:03 +00:00
Atsushi Eno fea31fd77d 2009-03-16 Atsushi Enomoto <[email protected]>
* DTDRreader.cs : read up all DTD stream so that we don't have to
	  see bugs like #469317 many times.


svn path=/trunk/mcs/; revision=129465
2009-03-16 16:14:31 +00:00
Atsushi Eno 45e218154c 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : check identities for untyped attributes.
	  Attribute keyfield test must adjust depth, or it never matches.
	  Missing braces for IgnoreIdentity test.


svn path=/trunk/mcs/; revision=129464
2009-03-16 16:13:56 +00:00
Zoltan Varga 2151df9f44 2009-03-15 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

	* Makefile.am (test_platform): Enable testbundle for ppc.

svn path=/trunk/mono/; revision=129461
2009-03-16 15:40:30 +00:00
Zoltan Varga 53a3992e41 2009-03-15 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

	* mkbundle.cs (WriteSymbol): Use .p2align 5 instead of .align 32
	to get consistent results on all platforms.

svn path=/trunk/mcs/; revision=129460
2009-03-16 15:38:32 +00:00
Zoltan Varga ba910168a5 2009-03-16 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): Really fix the eglib build.

svn path=/trunk/mono/; revision=129457
2009-03-16 15:30:16 +00:00
Gonzalo Paniagua Javier 40570d9c6d fix
svn path=/trunk/mcs/; revision=129452
2009-03-16 15:02:29 +00:00
Gonzalo Paniagua Javier 5e386d804e 2009-03-16 Gonzalo Paniagua Javier <[email protected]>
* console-io.c: the termios values may vary in different flavors of unix.


svn path=/trunk/mono/; revision=129451
2009-03-16 15:02:14 +00:00
Marek Habersack 5d92b0cb21 2009-03-16 Marek Habersack <[email protected]>
* AspGenerator.cs: when parsing nested tags (includes tags inside
	client-side javascript script blocks) pass the closing tag up to
	the containing parser.
	Instead of parsing the whole plain text contents, plus the two
	constructs we're interested in from it using regexs. This is
	necessary as we might be passed JavaScript code and without
	understanding its syntax we'll confuse the '<' character for the
	start of a tag.

svn path=/trunk/mcs/; revision=129449
2009-03-16 14:54:44 +00:00
Gonzalo Paniagua Javier 292db8ebdd wrong bug
svn path=/trunk/mcs/; revision=129447
2009-03-16 14:24:48 +00:00
Gonzalo Paniagua Javier a79db82930 update corlib version
svn path=/trunk/mono/; revision=129446
2009-03-16 14:24:17 +00:00
Gonzalo Paniagua Javier 19447c259b 2009-03-16 Gonzalo Paniagua Javier <[email protected]>
* console-io.[ch]: return the entire set of control characters when
	initializing the terminal.


svn path=/trunk/mono/; revision=129445
2009-03-16 14:23:35 +00:00
Gonzalo Paniagua Javier 37420fee4f 2009-03-16 Gonzalo Paniagua Javier <[email protected]>
* ConsoleDriver.cs:
	* TermInfoDriver.cs: handle Ctrl-D (or similar) in ReadLine.
	Fixes bug #483268.

	* ControlCharacters.cs: index to the control characters list.
	* Environment.cs: bumped corlib version.


svn path=/trunk/mcs/; revision=129444
2009-03-16 14:23:33 +00:00
Atsushi Eno aff31f7ba1 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlSchemaUtil.cs, XmlSchemaValidator.cs : predefined non-primitive
	  xml schema types now validate fixed values as expected.


svn path=/trunk/mcs/; revision=129443
2009-03-16 14:13:28 +00:00
Atsushi Eno 0da8b35274 switch mono-xmltool here too.
svn path=/trunk/mcs/; revision=129442
2009-03-16 13:08:27 +00:00
Atsushi Eno 71b85d0b6f 2009-03-16 Atsushi Enomoto <[email protected]>
* BuiltInDatatype.cs, XmlSchemaDatatype.cs : some equality comparison
	  failed because it anyType is not used as singleton.


svn path=/trunk/mcs/; revision=129440
2009-03-16 12:47:49 +00:00
Atsushi Eno e611c439c1 2009-03-16 Atsushi Enomoto <[email protected]>
* scripts/Makefile.am : mono-xmltool uses 2.0.

svn path=/trunk/mono/; revision=129436
2009-03-16 12:15:05 +00:00
Gonzalo Paniagua Javier f26078f156 Found this lingering in my ChangeLog
svn path=/trunk/mono/; revision=129434
2009-03-16 12:12:30 +00:00
Atsushi Eno 0a10c61c49 2009-03-16 Atsushi Enomoto <[email protected]>
* xmltool.cs: added --validate-xsd2 option to validate with xsd
	  but with new validator in 2.0.


svn path=/trunk/mcs/; revision=129427
2009-03-16 11:49:22 +00:00
Massimiliano Mantione 4f6608613d When checking if an elf file is valid, avoid mapping it in memory.
svn path=/trunk/mono/; revision=129416
2009-03-16 10:43:46 +00:00
Paolo Molaro 301307fd95 Mon Mar 16 11:11:26 CET 2009 Paolo Molaro <[email protected]>
* mono-perfcounters.c: added support for in-process custom
	performance counters.


svn path=/trunk/mono/; revision=129415
2009-03-16 10:13:38 +00:00
Marek Habersack 309c9647cd 2009-03-16 Marek Habersack <[email protected]>
* AspGenerator.cs: when parsing nested tags (includes tags inside
	client-side javascript script blocks) pass the closing tag up to
	the containing parser.

svn path=/trunk/mcs/; revision=129412
2009-03-16 09:54:48 +00:00
Atsushi Eno 68389cd912 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlReaderBinarySupport.cs : ReadContentsAsBase64() could skip
	  EndElement at the next XmlReader.Read(). Fixed bug #480066.

	* XmlReaderCommonTests.cs : added test for bug #480066.


svn path=/trunk/mcs/; revision=129404
2009-03-16 07:37:44 +00:00
Atsushi Eno c7a471732a 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : only bogus v1 XmlTextWriter ignores null
	  namespace for conflict check. Fixed bug #479725.

	* XmlWriterTests.cs : only bogus XmlTextWriter ignores null namespace
	  for namespae conflict check.


svn path=/trunk/mcs/; revision=129398
2009-03-16 06:48:19 +00:00
Carlos Alberto Cortez 5029abc940 2209-03-15 Carlos Alberto Cortez <[email protected]>
* Form.cs: When calling ProcessCmdKey, just after checking for any
	MainMenu, check if there's an active ContextMenu that is *not* owned
	by the form - this is needed when a non-focusable control owns a
	ContextMenu but its ProcessCmdKey method can't be called since it
	can't receive any input.
	Fixes #477655.


svn path=/trunk/mcs/; revision=129395
2009-03-16 03:13:05 +00:00
Gert Driesen d401e17752 * app-net_1.1.config: Added ClientVersion to Engine section. Added
SQL Server 2000 config.
* app-net_2.0.config: Spaces to tabs.

svn path=/trunk/mcs/; revision=129380
2009-03-15 13:32:32 +00:00
Veerapuram Varadhan e7bd61cb60 Fix for 463011
In Tds70:Reset, call base.Rest() to update the database being used

svn path=/trunk/mcs/; revision=129377
2009-03-15 10:43:39 +00:00
Veerapuram Varadhan 65b1eb239b Support for Partlentype type-info in TDS 7
Partlentype is a TDS 9 feature and a < TDS 9 client requires a special handling for such cases.

svn path=/trunk/mcs/; revision=129376
2009-03-15 10:43:00 +00:00
Veerapuram Varadhan 124c0ce55f Avoid creation of temporary byte arrays
Directly manipulate lsb/msb of short/int/long instead of using BitConverter.GetBytes() and swapping the resultant byte array using Swap() to reduce array allocations which, improves overall performance of Mono's TDS implementation.

svn path=/trunk/mcs/; revision=129375
2009-03-15 10:42:16 +00:00
Gert Driesen 2c09f50906 * ConvertTest.cs: Avoid false positive in ChangeType test.
svn path=/trunk/mcs/; revision=129374
2009-03-15 09:48:26 +00:00
Miguel de Icaza e514e8522d 2009-03-14 Miguel de Icaza <[email protected]>
* Convert.cs (ToType): Control whether this internal function will
	call an IConvertible.ToType method or not.  

	Classes and structs implementing IConvertible in mscorlib (the
	only callers that can access Convert.ToType) must pass false to
	avoid a infinite recursion problem and callers from the public
	Convert API must call it with true.

	This fixes the regression reported in #485377 that was introduced
	by the fix for #481687.

	* Int16.cs, UInt64.cs, Double.cs, Enum.cs, SByte.cs, UInt16.cs,
	Byte.cs, Decimal.cs, Int32.cs, String.cs, Int64.cs, Char.cs,
	Boolean.cs, Single.cs, UInt32.cs: Update the call sites.



svn path=/trunk/mcs/; revision=129367
2009-03-14 18:56:43 +00:00
Zoltan Varga 26d510deeb 2009-03-14 Zoltan Varga <[email protected]>
* local-propagation.c (reg_is_softreg_no_fpstack): Use >= instead of
	> so it works on the first vreg as well.

svn path=/trunk/mono/; revision=129353
2009-03-14 02:19:07 +00:00
Rodrigo Kumpera abe0e9ba96 small todo item
svn path=/trunk/mono/; revision=129352
2009-03-14 02:16:14 +00:00
Rodrigo Kumpera e831c9f2b0 2009-03-13 Rodrigo Kumpera <[email protected]>
* data-directory-tests.md: New tests for IAT directory entry.

2009-03-13 Rodrigo Kumpera  <[email protected]>

	* metadata-verify.c: Small cleanup and add comment for IAT directory entry.

svn path=/trunk/mono/; revision=129351
2009-03-14 02:16:12 +00:00
Rodrigo Kumpera da30bfbde7 2009-03-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the data pointed by the import table.

2009-03-13 Rodrigo Kumpera  <[email protected]>

	* data-directory-tests.md: New tests for import table name, ilt and iat.

svn path=/trunk/mono/; revision=129350
2009-03-14 02:16:04 +00:00
Rodrigo Kumpera 0bd6847494 2009-03-13 Rodrigo Kumpera <[email protected]>
* data-directory-tests.md: New tests for import table.

	* gen-md-tests.c: Added translate.rva and translate.rva.ind functions.

2009-03-13 Rodrigo Kumpera  <[email protected]>

	* metadata-verify.c (load_data_directories): Store data
	directory contents.

	* metadata-verify.c: Verify the import table.

svn path=/trunk/mono/; revision=129349
2009-03-14 02:15:57 +00:00
Miguel de Icaza b3785f96ea Try to improve the logging profiler documentation
svn path=/trunk/mono/; revision=129337
2009-03-13 21:20:40 +00:00
Zoltan Varga fffed19111 Fix the build.
svn path=/trunk/mono/; revision=129332
2009-03-13 20:40:35 +00:00
Miguel de Icaza 6b4dfed918 Add Copyright notices
svn path=/trunk/mono/; revision=129316
2009-03-13 18:42:25 +00:00
Mark Probst ccc2270475 Test for CoreCLR security wrapper bug.
2009-03-13  Mark Probst  <[email protected]>

	* coreclr-security.exe: Added a test for calling via a
	MANAGED_TO_MANAGED wrapper.

svn path=/trunk/mono/; revision=129300
2009-03-13 16:39:39 +00:00
Atsushi Eno db25126624 2009-03-13 Atsushi Enomoto <[email protected]>
* CrossDomainAccessManager.cs: temporarily disable
          access checker to just warn invalid access for now.


svn path=/trunk/mcs/; revision=129293
2009-03-13 15:41:10 +00:00
Atsushi Eno aef46c7bed 2009-03-13 Atsushi Enomoto <[email protected]>
* XmlRootAttribute.cs : it is also expected to have
          internal property for SL2.



svn path=/trunk/mcs/; revision=129290
2009-03-13 15:22:10 +00:00
Zoltan Varga 4bcd5b5495 2009-03-13 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): Disable an assert which seems to
	trigger randomly.

	* aot-compiler.c: Get rid of xdebug_lock (), use the loader lock instead.
	
	* dwarfwriter.c (emit_line_number_info): Fix eglib build as eglib doesn't
	implement GArray.

svn path=/trunk/mono/; revision=129278
2009-03-13 13:16:38 +00:00
Ankit Jain 568b0bb8cf * Main.cs (Execute): Build the project/sln with current directory set to
the project file's dir.
* SolutionParser.cs (ParseSolution): Project paths are relative to
solution directory.

svn path=/trunk/mcs/; revision=129251
2009-03-13 09:32:37 +00:00
Zoltan Varga 32a75cabc3 2009-03-13 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): Fix eglib build as eglib doesn't
	implement GArray.

svn path=/trunk/mono/; revision=129249
2009-03-13 08:01:50 +00:00
Atsushi Eno ed25b28b95 2009-03-13 Atsushi Enomoto <[email protected]>
* XmlArrayItemAttribute.cs, XmlElementAttribute.cs,
	  XmlAnyElementAttribute.cs : added more 2.1 obstacles.


svn path=/trunk/mcs/; revision=129247
2009-03-13 07:28:04 +00:00
Atsushi Eno 00eeda36b0 2009-03-13 Atsushi Enomoto <[email protected]>
* XmlChoiceIdentifierAttribute.cs : added internal MemberInfo
	  property for SL2.


svn path=/trunk/mcs/; revision=129245
2009-03-13 07:16:28 +00:00
Atsushi Eno 8c18de8f16 2009-03-13 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : added ToUri() (extraneous in 2.0; used only from
	  2.1 S.X.Serialization.dll in MS SDK).


svn path=/trunk/mcs/; revision=129244
2009-03-13 07:05:06 +00:00
Atsushi Eno 019345956c 2009-03-13 Atsushi Enomoto <[email protected]>
* SerializationSource.cs, KeyHelper.cs : split out KeyHelper from
	  SerializationSource as the class is going to be used in 2.1 too.
	* XmlRootAttribute.cs : use KeyHelper above to add internal Key
	  property that is used in SL2 System.Xml.Serialization.dll.

	* System.Xml.dll.sources, net_2_1_raw_System.Xml.dll.sources :
	  added KeyHelper.cs.


svn path=/trunk/mcs/; revision=129243
2009-03-13 06:59:28 +00:00
Neville Gao 834e153517 Add UIA Framework property UIAVisible.
svn path=/trunk/mcs/; revision=129241
2009-03-13 04:04:07 +00:00
Andreia Gaita ae2770b9c3 2009-03-13 Andreia Gaita <[email protected]>
* JsonReader.cs: fix depth calculation
	* JsonReaderTest.cs: test for skip and depth (if depth fails, skip is affected)

svn path=/trunk/mcs/; revision=129240
2009-03-13 03:09:30 +00:00
Geoff Norton a1f68e10a2 whoops
svn path=/trunk/mcs/; revision=129238
2009-03-13 01:09:50 +00:00
Jonathan Pryor 29272a265d * Makefile: Also distribute .txt files.
svn path=/trunk/mcs/; revision=129236
2009-03-13 00:56:01 +00:00
Marek Habersack c2fd4b2317 2009-03-13 Marek Habersack <[email protected]>
* Control.cs: clear the controls cache on control removal. This
	ensures that a subsequent FindControl call won't return the
	removed control.

svn path=/trunk/mcs/; revision=129234
2009-03-13 00:48:58 +00:00
Geoff Norton e26db4576d 2009-03-12 Geoff Norton <[email protected]>
* TypeMap.cs: Avoid checking the getter/setter information until after
        checking if we have the required attribute decorated.

svn path=/trunk/mcs/; revision=129232
2009-03-13 00:09:51 +00:00
Andreia Gaita 4302acae88 2009-03-12 Andreia Gaita <[email protected]>
* JsonReaderWriterFactory.cs: try to auto-detect encoding for streams
	without BOM

svn path=/trunk/mcs/; revision=129226
2009-03-12 23:40:03 +00:00
Rodrigo Kumpera c48dd452e7 2009-03-12 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify data directories.

2009-03-12 Rodrigo Kumpera  <[email protected]>

        * gen-md-tests.c (parse_test_entry): Fix multi effect rules.

        * Makefile: Add rules for data-directory-tests.md.

        * data-directory-tests.md: New tests for data directories.

svn path=/trunk/mono/; revision=129220
2009-03-12 23:12:29 +00:00
Rodrigo Kumpera 17fd8cd9d7 2009-03-12 Rodrigo Kumpera <[email protected]>
* section-table-tests.md: Test for flags.

2009-03-12 Rodrigo Kumpera  <[email protected]>

	* metadata-verify.c: Check section header flags.

svn path=/trunk/mono/; revision=129219
2009-03-12 23:12:21 +00:00
Jonathan Pryor 77c5e7353a * src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.cs:
There is no System.Vendor namespace, so don't generate one.

svn path=/trunk/mcs/; revision=129218
2009-03-12 23:07:44 +00:00
Jonathan Pryor 8f4bbb2ad0 * Makefile: Add a dist-local target and distribute all DbLinq sources.
We can't just rely on the normal System.Data.Linq.dll.sources
	  handling because ../../tools/sqlmetal also uses these sources.

svn path=/trunk/mcs/; revision=129217
2009-03-12 22:59:34 +00:00
Gonzalo Paniagua Javier 6519628287 2009-03-12 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: if the assembly name is a shadow-copied file, return
	TRUE from mono_is_shadow_copy_enabled but don't actually do anything
	in mono_make_shadow_copy.
	* icall.c: if the assembly name is a shadow-copied file, replace it
	with the original assembly path.

	Bug #484244 fixed. NUnit tests for corlib can be run without
	--noshadow now.


svn path=/trunk/mono/; revision=129210
2009-03-12 22:36:16 +00:00
Zoltan Varga dae3e57aeb 2009-03-12 Zoltan Varga <[email protected]>
* sgen-gc.c (add_to_global_remset): Fix the handling of root global remset
	entries when the table is reallocated.

svn path=/trunk/mono/; revision=129204
2009-03-12 21:06:20 +00:00
Zoltan Varga 186ca2bc95 2009-03-12 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): Optimize the computation of the
	native->IL offset mapping.

svn path=/trunk/mono/; revision=129200
2009-03-12 20:37:38 +00:00
Marek Habersack 29116a074f 2009-03-12 Marek Habersack <[email protected]>
* EditCommandColumnTest.cs: ignore two tests, most likely broken.

svn path=/trunk/mcs/; revision=129198
2009-03-12 20:23:23 +00:00
Jonathan Pryor c1fdbfc6ea * scripts/Makefile.am: Add sqlmetal.
svn path=/trunk/mono/; revision=129196
2009-03-12 20:16:11 +00:00
Jb Evain 67320f10a5 2009-03-12 Jb Evain <[email protected]>
* cilstrip.cs: unwrap TargetInvocationException.


svn path=/trunk/mcs/; revision=129193
2009-03-12 20:05:47 +00:00
Jb Evain 5fb61f686b 2009-03-12 Jb Evain <[email protected]>
* Mono.Cecil/AssemblyStripper.cs (PatchHeap): don't crash
	if the assembly doesn't contain a specific metadata heap.


svn path=/trunk/mcs/; revision=129191
2009-03-12 19:58:16 +00:00
Jonathan Pryor 0dff9169b3 * Makefile: Add sqlmetal to the build.
* sqlmetal/ChangeLog, sqlmetal/Makefile, sqlmetal/sqlmetal.exe.config, 
	  sqlmetal/sqlmetal.exe.sources: Added; builds `sqlmetal.exe', which is 
	  the Mono version of DbLinq's DbMetal.exe program (which in turn is 
	  modeled on .NET's SQLMETAL tool), "tuned" to depend only on Mono's 
	  System.Data.Linq.

svn path=/trunk/mcs/; revision=129189
2009-03-12 19:48:29 +00:00
Jonathan Pryor b5f3e00eed * src/DbLinq/System.Data.Linq/Assembly/AssemblyInfo.cs: Allow
sqlmetal.exe to access the System.Data.Linq.dll internals, as
	  sqlmetal.exe is DbMetal.exe, and needs access to (normally public)
	  DbLinq.dll types.

svn path=/trunk/mcs/; revision=129187
2009-03-12 19:43:32 +00:00
Jonathan Pryor 76dcaa699e * System.Data.Linq.dll.sources: Sort filenames (to more easily see
which DbLinq files are being excluded from the build), and add
	  additional files to the build, specifically the *SchemaLoader and
	  *DataContext types.
	* src/**: Flush to DbLinq r1013 (which allows the *SchemaLoader and
	  *DataContext types to build under MONO_STRICT).

svn path=/trunk/mcs/; revision=129185
2009-03-12 19:37:33 +00:00
Jonathan Pryor ce2c2fc5a8 Flush (should have been doing this before...).
svn path=/trunk/mcs/; revision=129183
2009-03-12 19:35:24 +00:00
Dean Brettle c179d76e68 2009-03-12 Dean Brettle <[email protected]>
* nBrowser/Build.cs: made Browser() method thread-safe and moved the
	actual tree creation to a private InitializeTree() method for clarity.


svn path=/trunk/mcs/; revision=129176
2009-03-12 18:36:25 +00:00
Carlos Alberto Cortez 329e4d0d14 2009-03-12 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
	WM_HELP message for the associated window, don't call
	NativeWindow.WndProc *at all*, since this could send a WM_*
	key-related to Control.WndProc. Also, return the keypress message, in
	case it needs to be preprocessed for any menu.
	Fixes #478476.


svn path=/trunk/mcs/; revision=129170
2009-03-12 18:14:03 +00:00
Zoltan Varga 9d8de658a5 2009-03-12 Zoltan Varga <[email protected]>
* icall.c: Allocate the memory used by the mono_ptr_array macros using
	mono_gc_alloc_fixed () since it contains GC refs.

svn path=/trunk/mono/; revision=129166
2009-03-12 17:55:03 +00:00
Atsushi Eno a925966529 2009-03-12 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : make generic type parsing sloppy.
          because we don't know some cryptic hash algorithm:
          http://jeffbarnes.net/portal/blogs/jeff_barnes/archive/2007/05/10/wcf-serialization-and-generics.aspx


svn path=/trunk/mcs/; revision=129155
2009-03-12 16:25:48 +00:00
Jb Evain 37bdbf1395 2009-03-12 Jb Evain <[email protected]>
* get.c (get_token): add support for METHOD_SPEC tokens.


svn path=/trunk/mono/; revision=129147
2009-03-12 14:34:10 +00:00
Marek Habersack 39c6840184 2009-03-12 Marek Habersack <[email protected]>
* BuildManager.cs, BuildManagerDirectoryBuilder.cs,
	BuildProvider.cs, TemplateBuildProvider.cs: dependencies are
	returned as an IDictionary <string, bool>. Dependencies must be
	compared case-insensitively.

svn path=/trunk/mcs/; revision=129142
2009-03-12 14:27:12 +00:00
Marek Habersack 709407a75f 2009-03-12 Marek Habersack <[email protected]>
* TemplateBuildProvider.cs: ExtractReferenceDependencies must also
	extract the value of the Page attribute.

svn path=/trunk/mcs/; revision=129141
2009-03-12 14:27:01 +00:00
Atsushi Eno 444737022e 2009-03-12 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs :
	  support CollectionDataContract-based dictionary too.

	* XmlObjectSerializerTest.cs : added test for dictionary with
	  CollectionDataContractAttribute.


svn path=/trunk/mcs/; revision=129128
2009-03-12 09:29:40 +00:00
Atsushi Eno 2fc4ce96e5 2009-03-12 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs :
	  added support for dictionary serialization (not for
	  CollectionDataContract-attributed dictionary yet).

	* XmlObjectSerializerTest.cs : added tests for IDictionary
	  serialization (both generic and non-generic).


svn path=/trunk/mcs/; revision=129125
2009-03-12 08:37:33 +00:00
Atsushi Eno d9e90b8d10 2009-03-12 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : cosmetic !NET_2_1 fix (no effect).
	* KnownTypeCollection.cs : use ICollection<> and IList instead of
	  IEnumerable. This causes confusion for dictionary.


svn path=/trunk/mcs/; revision=129124
2009-03-12 04:31:01 +00:00
Jonathan Pryor 6aef4589ff Remove generated directories.
svn path=/trunk/mcs/; revision=129117
2009-03-12 00:49:24 +00:00
Jonathan Pryor 1bf78074ea Add the DbMetal and VisualMetal sources from DbLinq, so that we can add a
`sqlmetal' tool which uses the DbMetal sources.

svn path=/trunk/mcs/; revision=129116
2009-03-12 00:46:32 +00:00
Gonzalo Paniagua Javier 0fff03b008 2009-03-11 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: don't send events when a directory is created
	unless it matches the pattern.  Fixes bug #484082.


svn path=/trunk/mcs/; revision=129112
2009-03-12 00:20:55 +00:00
Jonathan Pryor 31f53b4843 Flush. (Updates to sync with DbLinq r1009, fixes IVendor lookup within
System.Data.Linq.dll, add unit tests -- which aren't hooked up to Mono's build
system -- various bug fixes, etc.)

svn path=/trunk/mcs/; revision=129090
2009-03-11 20:06:10 +00:00
Marek Safar d1ec514016 New test.
svn path=/trunk/mcs/; revision=129086
2009-03-11 19:00:40 +00:00
Marek Safar e8ac873bbe 2009-03-11 Marek Safar <[email protected]>
A fix for bug #482996
	* anonymous.cs: Make sure we are not infering return type when
	checking type compatibility.


svn path=/trunk/mcs/; revision=129085
2009-03-11 18:55:51 +00:00
Zoltan Varga dfb2da7976 2009-03-11 Zoltan Varga <[email protected]>
* SortedListTest.cs: Add tests for #483985.

svn path=/trunk/mcs/; revision=129078
2009-03-11 16:51:19 +00:00
Rolf Bjarne Kvinge bbe5d30c03 2009-03-11 Rolf Bjarne Kvinge <[email protected]>
* WebClient_2_1.cs: OnOpenReadCompleted and OnDownloadStringCompleted:
	make sure we don't pass any exceptions back to native code.


svn path=/trunk/mcs/; revision=129077
2009-03-11 16:49:50 +00:00
Zoltan Varga bacf99dcd2 2009-03-11 Zoltan Varga <[email protected]>
* SortedList.cs: Add version checking to the Key/Value enumerators +
	implement support for Reset (). Fixes #483985.

svn path=/trunk/mcs/; revision=129076
2009-03-11 16:49:43 +00:00
Zoltan Varga 2ac318ebfe 2009-03-11 Zoltan Varga <[email protected]>
* BinderTests.cs: Add a test for #484294.

svn path=/trunk/mcs/; revision=129070
2009-03-11 15:14:36 +00:00
Zoltan Varga f92f37b5ba 2009-03-11 Zoltan Varga <[email protected]>
* Binder.cs: Allow conversions from T to T?. Fixes #484294.

svn path=/trunk/mcs/; revision=129069
2009-03-11 15:10:29 +00:00
Atsushi Eno f936428455 2009-03-11 Atsushi Enomoto <[email protected]>
* XmlFormatterSerializer.cs, XmlObjectSerializer.cs,
	  XmlFormatterDeserializer.cs, KnownTypeCollection.cs :
	  add more xsi:type to cover collection items.

	* XmlObjectSerializerTest.cs : test for generic IList of
	  DictionaryEntry. (no Hashtable serialization yet.)


svn path=/trunk/mcs/; revision=129068
2009-03-11 15:03:02 +00:00
Marek Safar 1f5e677800 This should not go in.
svn path=/trunk/mcs/; revision=129065
2009-03-11 14:28:58 +00:00
Zoltan Varga 309720b294 2009-03-11 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Fix % 1. Fixes #484323.

	* basic.cs: Add a test.

svn path=/trunk/mono/; revision=129063
2009-03-11 14:27:10 +00:00
Marek Safar e8b2549228 2009-03-11 Marek Safar <[email protected]>
* typemanager.cs, generic.cs, parameter.cs, decl.cs, const.cs,
	rootcontext.cs, namespace.cs, class.cs, delegate.cs, driver.cs,
	generic-mcs.cs, attribute.cs, codegen.cs: Maintain predefined
	attributes in their own structure. Needed when accessing their
	properties before they are resolved.


svn path=/trunk/mcs/; revision=129061
2009-03-11 14:18:02 +00:00
Mark Probst 9f363d6e61 Make sure x86 ATOMIC_CAS doesn't overwrite its own operands.
2009-03-11  Mark Probst  <[email protected]>

	* mini-x86.c (mono_arch_output_basic_block): Use different
	registers in case the ones we want to overwrite are used by the
	other operand.  Fixes regression in #480807.

svn path=/trunk/mono/; revision=129058
2009-03-11 14:15:49 +00:00
Atsushi Eno 9259c423b0 2009-03-11 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : fix generic argument names in xml.
	  They should use xmlized names instead of raw type name.
	* XmlFormatterDeserializer.cs : remove extra Console.WriteLine.

	* XmlObjectSerializerTest.cs : test for generic IList of KeyValuePair
	  (it is still different from full IDictionary support...!).


svn path=/trunk/mcs/; revision=129055
2009-03-11 11:52:34 +00:00
Atsushi Eno 4c9b51db6d 2009-03-11 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : eliminate whitespace misuses.


svn path=/trunk/mcs/; revision=129053
2009-03-11 09:37:01 +00:00
Atsushi Eno db1aa31255 2009-03-11 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : actually it could just be
          ICollection<T>.


svn path=/trunk/mcs/; revision=129051
2009-03-11 09:06:06 +00:00
Atsushi Eno 4906f1a6b3 2009-03-11 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : implemented generic IList
          deserialization.


        * XmlObjectSerializerTest.cs : test for generic IList
          serialization.

        * Makefile: added -r:System.Core.



svn path=/trunk/mcs/; revision=129045
2009-03-11 06:26:09 +00:00
Jackson Harper 9818184c46 * Uri.cs: 2.1 Uris do get a UriTypeConverter.
svn path=/trunk/mcs/; revision=129023
2009-03-10 21:39:10 +00:00
Zoltan Varga 256ce3146e 2009-03-10 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Make the output less verbose.

svn path=/trunk/mono/; revision=129022
2009-03-10 21:38:35 +00:00
Zoltan Varga 68f5bf552b 2009-03-10 Zoltan Varga <[email protected]>
* TypeBuilderTest.cs: Add a test for #483852.

svn path=/trunk/mcs/; revision=129011
2009-03-10 19:51:16 +00:00
Zoltan Varga 023a1a8181 2009-03-10 Zoltan Varga <[email protected]>
* reflection.c (ensure_complete_type): New helper function to call
	type resolve handlers for unfinished dynamic types.
	(resolve_object): Call it for MonoClassFields. Fixes #483852.

svn path=/trunk/mono/; revision=129009
2009-03-10 19:45:41 +00:00
Atsushi Eno 92713f5d7c 2009-03-10 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : fix for generic serialization.

	* XmlObjectSerializerTest.cs : test for generic type serialization.


svn path=/trunk/mcs/; revision=129001
2009-03-10 18:21:07 +00:00
Miguel de Icaza cef6453d5b Clarify
svn path=/trunk/mono/; revision=128995
2009-03-10 17:20:50 +00:00
Zoltan Varga ab92e1dda4 2009-03-10 Zoltan Varga <[email protected]>
* README: Remove the comment about --with-moonlight being pre-alpha.

svn path=/trunk/mono/; revision=128990
2009-03-10 16:47:37 +00:00
Marek Habersack 3aa7a57e81 2009-03-10 Marek Habersack <[email protected]>
* UrlAuthorizationModule.cs: OnAuthorizeRequest must use the
	configuration from <location> elements in the config. Fixes bug
	#467221

svn path=/trunk/mcs/; revision=128972
2009-03-10 14:21:42 +00:00
Marek Habersack 9f34a3140d Cosmetics
svn path=/trunk/mcs/; revision=128971
2009-03-10 14:21:26 +00:00
Jb Evain e276786c9e 2009-03-10 Jb Evain <[email protected]>
* Mono.Tuner/MoonlightAssemblyStep.cs: don't remove
	the LoadReferencesStep for specific Moonlight tuning.


svn path=/trunk/mcs/; revision=128966
2009-03-10 12:31:57 +00:00
Atsushi Eno c59c5611fa 2009-03-10 Atsushi Enomoto <[email protected]>
* scripts/Makefile.am : added svcutil.


svn path=/trunk/mono/; revision=128954
2009-03-10 08:26:50 +00:00
Atsushi Eno 34386abbd0 2009-03-10 Atsushi Enomoto <[email protected]>
* Makefile: add svcutil to the build.


svn path=/trunk/mcs/; revision=128952
2009-03-10 08:24:57 +00:00
Zoltan Varga 944140d872 2009-03-10 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): The line number info for
	IL code was off by one. Fix that.

svn path=/trunk/mono/; revision=128931
2009-03-10 01:19:20 +00:00
Zoltan Varga 2a834f900b 2009-03-10 Zoltan Varga <[email protected]>
* mini-s390x.c: Fix support for vtypes whose addresses are passed on the
	stack.

svn path=/trunk/mono/; revision=128924
2009-03-10 00:19:58 +00:00
Mark Probst bb0a92c4b3 Fix LOADI4_MEMINDEX on PPC64.
2009-03-09  Mark Probst  <[email protected]>

        Contributed under the terms of the MIT/X11 license by Steven
        Munroe <[email protected]>.

        * mini-ppc.c: Correct handling of OP_LOADI4_MEMINDEX for ppc64.
        Fixes #483462.

svn path=/trunk/mono/; revision=128904
2009-03-09 20:00:18 +00:00
Martin Baulig 186d30c030 Author: Martin Baulig <[email protected]>
Date:   Thu Mar 5 17:47:30 2009 +0100

    Add CompileUnitEntry.IncludeFiles.

    2009-03-05  Martin Baulig  <[email protected]>

    	* MonoSymbolTable.cs
    	(CompileUnitEntry.IncludeFiles): New public property.
    	(CompileUnitEntry.ReadData): Also read include files.

svn path=/trunk/mcs/; revision=128890
2009-03-09 15:11:17 +00:00
Marek Safar 104b5ae607 2009-03-09 Marek Safar <[email protected]>
* cs-tokenizer.cs: Optimized GetKeyword using an array instead of
	hashtable (~10x faster).
	
	* driver.cs: Removed wrong Reset.


svn path=/trunk/mcs/; revision=128884
2009-03-09 14:29:42 +00:00
Martin Baulig 5482c75a0a Add .gitignore's.
svn path=/trunk/mcs/; revision=128880
2009-03-09 14:14:56 +00:00
Zoltan Varga 0da31f7713 2009-03-09 Zoltan Varga <[email protected]>
* custom-attr.cs: Add a test for #483247.

svn path=/trunk/mono/; revision=128865
2009-03-09 10:38:11 +00:00
Zoltan Varga 76b6f7043c 2009-03-09 Zoltan Varga <[email protected]>
* reflection.c (mono_custom_attrs_has_attr): Handle interfaces. Fixes
	#483247.

svn path=/trunk/mono/; revision=128864
2009-03-09 10:37:22 +00:00
Zoltan Varga 6920a0e8e4 2009-03-08 Zoltan Varga <[email protected]>
* dwarfwriter.c (token_handler): Decode method references in non-wrappers
	as well.

svn path=/trunk/mono/; revision=128856
2009-03-08 21:42:41 +00:00
Marek Safar eca88b66e8 New tests.
svn path=/trunk/mcs/; revision=128855
2009-03-08 19:16:20 +00:00
Rodrigo Kumpera 3c1339e749 2009-03-04 Rodrigo Kumpera <[email protected]>
* appdomain.c (get_shadow_assembly_location): Fix memleak.

svn path=/trunk/mono/; revision=128853
2009-03-08 19:15:41 +00:00
Marek Safar 7eb12f3aea 2009-03-08 Marek Safar <[email protected]>
* class.cs: Use correct common base type for unmanaged delayed
	check.

	* rootcontext.cs: Wrap unhandled exception.


svn path=/trunk/mcs/; revision=128852
2009-03-08 19:15:25 +00:00
Zoltan Varga ceed087438 2009-03-08 Zoltan Varga <[email protected]>
* gchandles.cs: New test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=128850
2009-03-08 18:33:24 +00:00
Zoltan Varga 02a6e0c29d 2009-03-08 Zoltan Varga <[email protected]>
* domain-internals.h (struct _MonoDomain): Add new hash tables mapping
	between GCHandles of type WeakTrackResurrection and the objects they
	point to.

	* gc.c: Partly implement the sematics of GCHandles of type 
	WeakTrackResurrection: these handles should only be cleared after the
	finalizer of the object they are pointing to has ran.

svn path=/trunk/mono/; revision=128849
2009-03-08 18:18:45 +00:00
Ivan Zlatev ee7aace234 2009-03-08 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: When removing the first displayed row and moving
	the current cell up one we must invalidate the first displayed row
	index before calculating the row heights, etc.
	* DataGridViewTest.cs: Add tests for CurrentCell.
	[Fixes bug #483202]

svn path=/trunk/mcs/; revision=128845
2009-03-08 12:48:22 +00:00
Ivan Zlatev ebaea56f6d 2009-03-08 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix three column bugs:
	   - Rows should be cleared (but not removed) if columns become 0.
	   - The current cell should get moved
	   - ColumnCount increase was adding too many columns.
	* DataGridViewTest.cs: Add tests for ColumnCount.

svn path=/trunk/mcs/; revision=128844
2009-03-08 12:48:05 +00:00
Ivan Zlatev 505ef1145a 2009-03-07 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix RowCount decrease which wasn't working well
	in both scenarions - with and without editing row.
	* DataGridViewTest.cs: Add more tests for the RowCount property.

svn path=/trunk/mcs/; revision=128833
2009-03-07 13:59:55 +00:00
Raja R Harinath 286afd095b Make SeekableStreamReader self-tuning and arbitrarily seekable
* support.cs (SeekableStreamReader.ResetStream): New.  Allocates the buffer.
(SeekableStreamReader.Position.set): Use it.  Simplify logic
which, as a side-effect, makes it arbitrarily-seekable.  Tune the
buffer size when the stream needs to be re-read from the beginning.

svn path=/trunk/mcs/; revision=128831
2009-03-07 11:05:59 +00:00
Gert Driesen 8e8bf56a3f * Convert.cs: Do not throw InvalidCastException if IConvertible.ToType
returns null.
* ConvertTest.cs: Merged and improved test for bug #481687.
* ConvertTest2.cs: Merged into ConvertTest.cs.

svn path=/trunk/mcs/; revision=128830
2009-03-07 09:10:04 +00:00
Marek Safar a3c6490548 Add missing const.
svn path=/trunk/mcs/; revision=128829
2009-03-07 08:29:56 +00:00
Mark Probst a13b12d848 Partially revert r126631 because it's no longer needed.
2009-03-06  Mark Probst  <[email protected]>

	* icall.c: Partially revert r126631 because using the jump
	trampolines for generic shared methods makes it superfluous.

svn path=/trunk/mono/; revision=128828
2009-03-07 06:38:49 +00:00
Gonzalo Paniagua Javier bf33585141 2009-03-06 Gonzalo Paniagua Javier <[email protected]>
* ResourceSet.cs: for custom resource sets without a reader, pretende
	that's we've already read the stream.


svn path=/trunk/mcs/; revision=128814
2009-03-07 00:06:04 +00:00
Andrés G. Aragoneses c47a1e40f0 2009-03-06 Andrés G. Aragoneses <[email protected]>
* Convert.cs: Correct typo in exception message.


svn path=/trunk/mcs/; revision=128812
2009-03-06 23:34:37 +00:00
Miguel de Icaza f7b7dfb893 2009-02-24 Sebastien Pouliot <[email protected]>
* SafeHandle.cs: Add default ctor in 2.1 profile (needed to compile

svn path=/trunk/mcs/; revision=128810
2009-03-06 23:32:09 +00:00
Miguel de Icaza a455aae0ef 2009-03-06 Miguel de Icaza <[email protected]>
* Convert.cs: Apply patch from Tom Hindle that uses
	IConvertible.ToType if there are no other possible conversions
	defined. 

	Fixes: #481687

svn path=/trunk/mcs/; revision=128807
2009-03-06 23:22:57 +00:00
Ivan Zlatev 1176505c1e 2009-03-06 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Be compatible with MS in that the scroll to
	selection has a synchronous effect. The trick here is that in
	order to avoid unnecessary calculations each time a row/column
	is added/removed we recalculate the whole grid size just before
	just before the scroll to selection.
	[Fixes bug #482478]

svn path=/trunk/mcs/; revision=128806
2009-03-06 23:13:37 +00:00
Miguel de Icaza e1217c7696 Update docs
svn path=/trunk/mcs/; revision=128805
2009-03-06 23:08:49 +00:00
Marek Habersack 1dfc535d36 2009-03-06 Marek Habersack <[email protected]>
* JsonDeserializer.cs: unquoted key values must ignore leading
	and trailing whitespace

2009-03-06  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: added a test for unquoted tests
	surrounded with spaces.

svn path=/trunk/mcs/; revision=128801
2009-03-06 22:16:37 +00:00
Marek Habersack 2635b11be8 2009-03-06 Marek Habersack <[email protected]>
* XPathBinder.cs: use the pased namespace manager

svn path=/trunk/mcs/; revision=128799
2009-03-06 21:29:46 +00:00
Jb Evain 02f98668f6 remove dead files
svn path=/trunk/mcs/; revision=128798
2009-03-06 21:04:34 +00:00
Marek Habersack bf41db70d0 2009-03-06 Marek Habersack <[email protected]>
* ControlBuilder.cs: BindingContainerType - if control type of the
	containing builder is null, return typeof (Control)

svn path=/trunk/mcs/; revision=128796
2009-03-06 20:54:40 +00:00
Rodrigo Kumpera 9dfd018a50 2009-03-06 Rodrigo Kumpera <[email protected]>
* MonoType.cs (MonoTypeInfo): Add default_ctor field.

	* MonoType.cs: Add GetDefaultConstructor that caches using
	type_info.default_ctor.

	* MonoType.cs (FullName): Protects against type_info been replaced
	under the hood.

	* Activator.cs (CreateInstance): If the type is a MonoType resolve the
	default constructor using the new method from MonoType.

	Improves Activator::CreateInstance performance by at least 30%, reduces object churn
	and domain lock contention.

svn path=/trunk/mcs/; revision=128795
2009-03-06 20:42:41 +00:00
Marek Habersack eb697118c9 2009-03-06 Marek Habersack <[email protected]>
* WebControl.cs: if savedState is not an instance of Pair in
	LoadViewState, do not attempt to load from it.

svn path=/trunk/mcs/; revision=128793
2009-03-06 20:04:54 +00:00
Carlos Alberto Cortez 8ac1a60450 2009-03-06 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: LoadFile(string path) should pass by default
	RichTextBoxStreamType.RichText, without caring about the detection or
	extension of the file.


svn path=/trunk/mcs/; revision=128791
2009-03-06 17:00:08 +00:00
Carlos Alberto Cortez ffcb2c2896 2009-03-06 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When calling LoadFile, remove the extra EOL
	introduced by StreamReader, since it will convert the EOF to an EOL.
	Fixes #479646.


svn path=/trunk/mcs/; revision=128788
2009-03-06 16:26:55 +00:00
Jonathan Pobst 490f1e08be 2009-03-06 Jonathan Pobst <[email protected]>
* ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
	preferred size twice.

svn path=/trunk/mcs/; revision=128786
2009-03-06 15:57:53 +00:00
Zoltan Varga fa4e6773cb 2009-03-06 Zoltan Varga <[email protected]>
* arm/tramp.c: Include a change from the debian patches. Avoid #include-ing
	a file in the middle of a function.

svn path=/trunk/mono/; revision=128782
2009-03-06 15:55:12 +00:00
Jonathan Pobst 203c394283 2009-03-06 Jonathan Pobst <[email protected]>
* ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
	string if we aren't on a ToolStripDropDownMenu.

svn path=/trunk/mcs/; revision=128780
2009-03-06 15:46:39 +00:00
Zoltan Varga 25bb091e91 2009-03-06 Zoltan Varga <[email protected]>
* load-exceptions.cs load-missing.il: Add a test for #482638.

svn path=/trunk/mono/; revision=128779
2009-03-06 15:24:42 +00:00
Zoltan Varga 5c338a2cd4 2009-03-06 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Check for type load exceptions in
	the delegate ctor handling code. Fixes #482638.

svn path=/trunk/mono/; revision=128778
2009-03-06 15:22:16 +00:00
Jonathan Pobst 1e4e08a315 2009-03-06 Jonathan Pobst <[email protected]>
* ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
	code from Item to Button.  Patch from Alex Shulgin.

svn path=/trunk/mcs/; revision=128777
2009-03-06 15:12:04 +00:00
Ankit Jain 2be5adb1ae Fix bug #481336.
* SolutionParser.cs (AddWarningForMissingProjectConfiguration): New.
(AddProjectTargets): Emit warning for missing project configurations.

svn path=/trunk/mcs/; revision=128773
2009-03-06 14:24:00 +00:00
Marek Safar 0e5afb4846 New test.
svn path=/trunk/mcs/; revision=128772
2009-03-06 14:02:19 +00:00
Atsushi Eno 1c8f254702 2009-03-06 Atsushi Enomoto <[email protected]>
* MessageBodyDescription.cs, MessagePartDescription.cs,
	  OperationDescription.cs, MessageDescriptionCollection.cs:
	  clean up extra todos.


svn path=/trunk/mcs/; revision=128754
2009-03-06 04:34:31 +00:00
Zoltan Varga 4fb361f863 2009-03-06 Zoltan Varga <[email protected]>
* method-to-ir.c (mini_emit_memset): Fix the handling of size '3'. Fixes
	#481458.

	* iltests.il.in: Add a test.

svn path=/trunk/mono/; revision=128749
2009-03-06 02:35:58 +00:00
Zoltan Varga 1d7a6f8857 2009-03-06 Zoltan Varga <[email protected]>
* mini-darwin.c (mono_chain_signal): Remove this, it is already in
	mini-posix.c.

svn path=/trunk/mono/; revision=128747
2009-03-06 01:39:24 +00:00
Zoltan Varga 5739eeb285 2009-03-06 Zoltan Varga <[email protected]>
* mono-hash.c: Use precise GC allocation for the Boehm GC as well.

svn path=/trunk/mono/; revision=128745
2009-03-05 23:38:21 +00:00
Zoltan Varga 3587b4f583 2009-03-06 Zoltan Varga <[email protected]>
* threads.c (handle_store): Create the 'threads' hash table with the proper
	MONO_HASH_VALUE_GC type.

svn path=/trunk/mono/; revision=128744
2009-03-05 23:18:14 +00:00
Zoltan Varga 98a5c5b5e2 2009-03-05 Zoltan Varga <[email protected]>
* domain-internals.h (struct _MonoDomain): Move 'typeof_void' before
	FIRST_GC_TRACKED.

	* domain.c (mono_domain_create): Register the fields between FIRST_GC_TRACKED
	and LAST_GC_TRACKED as a GC root.

svn path=/trunk/mono/; revision=128734
2009-03-05 22:18:44 +00:00
Zoltan Varga e49619d4b8 2009-03-05 Zoltan Varga <[email protected]>
* gc-internal.h: Fix the comment of mono_gc_alloc_fixed.

	* object.c (mono_class_create_runtime_vtable): Create a GC descriptor for
	the static data even if it consists of 1 reference.

	* boehm-gc.c (mono_gc_alloc_fixed): Allocate using GC_MALLOC_EXPLICITLY_TYPED
	if there is a GC descriptor.

svn path=/trunk/mono/; revision=128731
2009-03-05 22:04:09 +00:00
Jb Evain 81abd9f00e adjust name
svn path=/trunk/mcs/; revision=128730
2009-03-05 22:02:27 +00:00
Mark Probst d26dae0803 ChangeLog fix.
svn path=/trunk/mono/; revision=128729
2009-03-05 21:44:30 +00:00
Zoltan Varga bf0fb046ae 2009-03-05 Zoltan Varga <[email protected]>
* reflection.c (ALLOC_REFENTRY): Allocate ReflectedEntry-es using malloc
	instead of through the GC since they contain no object references.

svn path=/trunk/mono/; revision=128727
2009-03-05 21:27:42 +00:00
Mark Probst 8909dff35e 2009-03-05 Mark Probst <[email protected]>
* mini-trampolines.c (mono_create_jump_trampoline): If the method
	is shared generic code, return the trampoline, even if the method
	has already been compiled.  Fixes #479753.

	* mini.c, mini.h: New function
	mono_jit_find_compiled_method_with_jit_info() which is the same as
	mono_jit_find_compiled_method() but also returns the jit info.

2009-03-05  Mark Probst  <[email protected]>

	* generic-sharing.c (instantiate_other_info): Always return a jump
	trampoline for method code.

2009-03-05  Mark Probst  <[email protected]>

	* bug-479763.2.cs: New test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=128723
2009-03-05 20:55:15 +00:00
Jb Evain 41f4dc49e1 we pass those
svn path=/trunk/mcs/; revision=128722
2009-03-05 20:48:55 +00:00
Jb Evain 1f1ad84e50 in System.Runtime.CompilerServices:
2009-03-05  Jb Evain  <[email protected]>

	* ExecutionScope.cs: add support for hoisted locals.

in System.Linq.Expressions:
2009-03-05  Jb Evain  <[email protected]>

	* EmitContext.cs
	* ParameterExpression.cs:
		add support for hoisted locals.

svn path=/trunk/mcs/; revision=128721
2009-03-05 20:48:13 +00:00
Mark Probst 31ce743aa3 2009-03-05 Mark Probst <[email protected]>
* method-to-ir.c (mono_method_to_ir): Only force the vtable var
	for methods which actually have one.  For all other methods, make
	sure the this argument var is live the whole method.

	* mini.c (mini_method_compile): Every shared method has a
	this/vtable/mrgctx info.  Fixes #480807.

svn path=/trunk/mono/; revision=128720
2009-03-05 20:16:59 +00:00
Atsushi Eno cfd90af68a 2009-03-05 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : fill service known types.

	* ServiceKnownTypeAttribute.cs : correct implementation to populate
	  specified types.


svn path=/trunk/mcs/; revision=128719
2009-03-05 19:10:55 +00:00
Atsushi Eno 5e2b872ee5 2009-03-05 Atsushi Enomoto <[email protected]>
* MessageHeaderException.cs : added missing members.


svn path=/trunk/mcs/; revision=128717
2009-03-05 18:46:40 +00:00
Marek Habersack 95c21ebb35 2009-03-05 Marek Habersack <[email protected]>
* culture-info-tables.h: generated to include the en-tt culture.

2009-03-05  Marek Habersack  <[email protected]>

	* locales/en_TT.xml: added here since openi18n.org times out and
	also I can't update icu_locales.tar.gz. File based on en_ZA.xml
	from that tarball, with appropriate modifications.

	* Makefile.am (supp_data_files): added supp/en_TT.xml

svn path=/trunk/mono/; revision=128714
2009-03-05 18:05:11 +00:00
Bill Holmes c29c33897d 2009-03-05 Bill Holmes <[email protected]>
* mono.def : Removing missing methods to remove link errors for
	  MSVC build.  

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=128713
2009-03-05 17:56:08 +00:00
Marek Habersack b3b0c18aa6 test
svn path=/trunk/mcs/; revision=128705
2009-03-05 16:13:56 +00:00
Jb Evain 300695707b new tests
svn path=/trunk/mcs/; revision=128696
2009-03-05 15:58:29 +00:00
Jonathan Pobst d268d4b3f7 2009-03-05 Jonathan Pobst <[email protected]>
* ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
	* ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
	not a ToolStripDropDown.
	* ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.

svn path=/trunk/mcs/; revision=128694
2009-03-05 15:34:40 +00:00
Mark Probst 25c3a2f193 2009-03-05 Mark Probst <[email protected]>
* mini-ppc.c (mono_arch_build_imt_thunk): Add support for mixed
	generic/imt thunks where some entries branch through the vtable,
	while other entries branch directly.

svn path=/trunk/mono/; revision=128690
2009-03-05 14:06:59 +00:00
Marek Safar 50c9d4d4dc Less static is good for my health.
svn path=/trunk/mcs/; revision=128684
2009-03-05 13:37:23 +00:00
Zoltan Varga b7188daad8 2009-03-05 Zoltan Varga <[email protected]>
* mini-darwin.c (mono_chain_signal): Define this to fix the build.

	* mini-windows.c: Ditto.

svn path=/trunk/mono/; revision=128683
2009-03-05 13:22:48 +00:00
Jb Evain cc3f024d88 new test
svn path=/trunk/mcs/; revision=128682
2009-03-05 12:23:33 +00:00
Rolf Bjarne Kvinge 07afb3c06e 2009-03-05 Rolf Bjarne Kvinge <[email protected]>
* WaitHandle.cs: Added missing WaitOne overload.


svn path=/trunk/mcs/; revision=128681
2009-03-05 11:54:52 +00:00
Marek Safar dc2c4fc6fc 2009-03-05 Marek Safar <[email protected]>
A fix for bug #480100
	* parameter.cs: A parameter is not hoisted when used directly as ET.


svn path=/trunk/mcs/; revision=128679
2009-03-05 11:40:08 +00:00
Atsushi Eno dedaecf9c5 2009-03-05 Atsushi Enomoto <[email protected]>
* MessageHeader.cs, MessageHeaders.cs, MessageImpl.cs :
          handle headers in SL2. Slightly changed 3.0 code too.

        * Makefile : added /r:System.Xml.Linq in 2.1 too.


svn path=/trunk/mcs/; revision=128670
2009-03-05 09:33:52 +00:00
Rodrigo Kumpera bd66ac538c 2009-03-04 Rodrigo Kumpera <[email protected]>
* domain-internals.h (MonoDomain): Add two fields to cache invoke wrappers to
	capture the thread context.

	* object.c (mono_async_result_new): Cache the invoke wrappers to
	ExecutionContext::Capture.

svn path=/trunk/mono/; revision=128664
2009-03-05 02:45:14 +00:00
Rodrigo Kumpera 10b23d6c56 2009-03-04 Rodrigo Kumpera <[email protected]>
* marshal.h: Add a prototype for what mono_compile_method returns
	for invoke wrappers.

	* gc.c: Use the new prototype declaration.

svn path=/trunk/mono/; revision=128663
2009-03-05 02:45:05 +00:00
Geoff Norton b335349c8c whoops
svn path=/trunk/mono/; revision=128662
2009-03-05 02:07:48 +00:00
Geoff Norton 471fbc6415 2009-03-04 Geoff Norton <[email protected]>
* boehm-gc.c: Add some MONO_LOG tracing for the GC
        * gc-internal.h:
        * mono-gc.h: Expose mono_gc_invoke_finalizers in the embedding api.

svn path=/trunk/mono/; revision=128661
2009-03-05 02:07:43 +00:00
Ivan Zlatev 1fd3b131cc 2009-03-04 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix RowCount/ColumnCount decreasing.
	* DataGridViewTest.cs: Add tests for RowCount/ColumnCount decreasing.

	  Based on a patch by Tom Hindle <[email protected]>
	  [Fixes bug #482133]

svn path=/trunk/mcs/; revision=128645
2009-03-04 23:47:15 +00:00
Zoltan Varga 4017519a8f 2009-03-05 Zoltan Varga <[email protected]>
* mini.c (mono_jit_runtime_invoke): Speed up the invoking of parameterless
	ctors.

svn path=/trunk/mono/; revision=128638
2009-03-04 23:15:48 +00:00
Ivan Zlatev 155a71bcb9 2009-03-04 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewElement.cs:
	   - Always calls OnDataGridViewChanged() if the new DGV is
	   not the same/null as the current one.
	   - Do not throw NREs when setting TopLeftHeaderCell to null
	   - Unset the DGV for TopLeftHeaderCell when replacing it
	* DataGridViewCellTest.cs: Add tests for OnDataGridViewChanged behavior.
	  Based on a patch by Tom Hindle <[email protected]>
	  [Fixes bug #481681]

svn path=/trunk/mcs/; revision=128628
2009-03-04 22:31:19 +00:00
Marek Habersack 903e4ae007 typo fix
svn path=/trunk/mcs/; revision=128610
2009-03-04 20:02:09 +00:00
Miguel de Icaza e60cdf235d Allow doc tool to process this
svn path=/trunk/mono/; revision=128607
2009-03-04 19:22:20 +00:00
Marek Safar 84a3c4032c New tests.
svn path=/trunk/mcs/; revision=128606
2009-03-04 19:19:37 +00:00
Marek Habersack a81eabde99 2009-03-04 Marek Habersack <[email protected]>
* HttpRuntime.cs: do not clean the dynamic base directory in
	DoUnload, it can cause race conditions.

svn path=/trunk/mcs/; revision=128602
2009-03-04 19:03:18 +00:00
Marek Safar f481b632a2 2009-03-04 Marek Safar <[email protected]>
* statement.cs: Fixed an issue when using variable is of interface
	type.


svn path=/trunk/mcs/; revision=128600
2009-03-04 18:53:23 +00:00
Atsushi Eno d1dd0205d5 2009-03-04 Atsushi Enomoto <[email protected]>
* CrossDomainPolicy.cs : added validation method. Not sure if it is
	  complete.
	* CrossDomainAccessManager.cs : validate against crossdomain.xml too.


svn path=/trunk/mcs/; revision=128593
2009-03-04 18:47:53 +00:00
Atsushi Eno dfd1716b11 2009-03-04 Atsushi Enomoto <[email protected]>
* CrossDomainAccessManager.cs : replace reflection-based
	  Uri retrieval with actually working one.

	* HttpRequestChannel.cs : use cross domain access manager.


svn path=/trunk/mcs/; revision=128581
2009-03-04 18:09:16 +00:00
Atsushi Eno b91e42e4f9 2009-03-04 Atsushi Enomoto <[email protected]>
* CrossDomainAccessManager.cs : 2.1 WebRequest misses some
 	  members used here.

	* Makefile : add /r:System.Core in 2.1 build.


svn path=/trunk/mcs/; revision=128579
2009-03-04 17:22:41 +00:00
Jonathan Pobst d04ef6e296 2009-03-04 Jonathan Pobst <[email protected]>
* ToolStripDropDown.cs: When dismissing control due to ESC, don't
	hit a NRE if we are a ContextMenuStrip and do not have a parent.
	[Fixes bug #478616]

svn path=/trunk/mcs/; revision=128573
2009-03-04 16:59:45 +00:00
Jb Evain 8d485754fb 2009-03-04 Jb Evain <[email protected]>
* Mono.Cecil/StructureWriter.cs: properly set the metadata tokens
	of newly emitted modules and assemblies. Fix #480729.


svn path=/trunk/mcs/; revision=128572
2009-03-04 16:53:57 +00:00
Rolf Bjarne Kvinge 458083a928 In .:
2009-03-04  Rolf Bjarne Kvinge  <[email protected]>

	* System.Net.dll.sources: Added WriteStreamClosedEventArgs_2_1.cs
	  and WriteStreamClosedEventHandler_2_1.cs

In System.Net:
2009-03-04  Rolf Bjarne Kvinge  <[email protected]>

	* WebClient_2_1.cs: Stub out missing methods.
	* WriteStreamClosedEventArgs_2_1.cs: 
	* WriteStreamClosedEventHandler_2_1.cs: Added.


svn path=/trunk/mcs/; revision=128571
2009-03-04 16:49:21 +00:00
Atsushi Eno 1642ff0d80 2009-03-04 Astushi Enomoto <[email protected]>
* net_2_1_raw_System.ServiceModel.dll.sources :
	  added cross domain checker sources.

	* CrossDomainAccessManager.cs, ClientAccessPolicy.cs,
	  CrossDomainPolicy.cs : new. support cross domain access check.


svn path=/trunk/mcs/; revision=128570
2009-03-04 16:47:34 +00:00
Zoltan Varga cb3c09048b 2009-03-04 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): Add some debug code to help track
	down an assert.

svn path=/trunk/mono/; revision=128568
2009-03-04 16:33:59 +00:00
Martin Baulig 20c0e71706 Clean up the debugger's exception API and add some documentation.
2009-03-04  Martin Baulig  <[email protected]>

	* debug-mini.c: Clean up the exception API and add documentation.
	(mono_debugger_handle_exception): New public method; this is
	called when throwing an exception or encountering an unhandled one.
	(mono_debugger_call_exception_handler): Formerly known as
	mono_debugger_handle_exception(); this is used to tell the
	debugger that we're about to invoke an exception handler.

svn path=/trunk/mono/; revision=128556
2009-03-04 15:40:48 +00:00
Mark Probst 10dd41427e 2009-03-04 Mark Probst <[email protected]>
* Makefile.am: Second part of the erroneous change reverted.  I
	suck.

svn path=/trunk/mono/; revision=128554
2009-03-04 15:23:53 +00:00
Mark Probst a1eceff44a 2009-03-04 Mark Probst <[email protected]>
* Makefile.am: Erroneous change reverted.

svn path=/trunk/mono/; revision=128553
2009-03-04 15:21:05 +00:00
Mark Probst 05e40a6dd7 2009-03-04 Mark Probst <[email protected]>
* method-to-ir.c: Don't inline methods that use JMP.  Fixes
	#481403.

2009-03-04  Mark Probst  <[email protected]>

	* bug-481403.il: New test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=128552
2009-03-04 15:13:32 +00:00
Mark Probst 11361185a2 2009-03-04 Mark Probst <[email protected]>
* exceptions-x86.c: Include debug-mini.h - fixes build.

svn path=/trunk/mono/; revision=128549
2009-03-04 15:05:34 +00:00
Martin Baulig 79fe383003 Improved the debugger's exception handling code.
2009-03-04  Martin Baulig  <[email protected]>

	* debug-mini.c (mono_debugger_runtime_invoke): Moved here from
	../metadata/mono-debug-debugger.c; save and reset exception state.

2009-03-02  Martin Baulig  <[email protected]>

	* debug-mini.c: Moved the debugger exception handling here from
	../metadata/mono-debug-debugger.c.

	* debug-mini.h
	(MonoDebuggerExceptionAction): New exception typedef.

	* debug-mini.c
	(MonoDebuggerThreadInfo): Added `MonoObject *last_exception'.

	* exceptions-amd64.c
	(mono_amd64_throw_exception): Use the new debugger exception
	handling code.

	* mini-exceptions.c
	(mono_handle_exception_internal): Don't call
	mono_debugger_unhandled_exception() here.

2009-03-04  Martin Baulig  <[email protected]>

	* mono-debug.h
	(mono_debugger_runtime_invoke): Removed.

	* mono-debug-debugger.c
	(mono_runtime_invoke): Moved into ../mini/debug-mini.c.

2009-03-02  Martin Baulig  <[email protected]>

	* mono-debug.h
	(mono_debugger_unhandled_exception): Removed.
	(mono_debugger_handle_exception): Removed.
	(mono_debugger_throw_exception): Removed.

	* mono-debug.c
	(mono_debug_debugger_version): Bump to 5.

	* mono-debug-debugger.c: Moved the exception handling code to
	../mini/debug-mini.c

svn path=/trunk/mono/; revision=128544
2009-03-04 14:16:55 +00:00
Gonzalo Paniagua Javier 3a3cce358a 2009-03-03 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: don't allocate the IPv6 array for IPv4 addresses.


svn path=/trunk/mcs/; revision=128515
2009-03-04 03:15:52 +00:00
Zoltan Varga 34df9a2168 2009-03-04 Zoltan Varga <[email protected]>
* RxInterpreter.cs (ResetGroups): Avoid allocating larger than needed
	arrays.

svn path=/trunk/mcs/; revision=128509
2009-03-04 00:49:06 +00:00
Gonzalo Paniagua Javier 407a62a4cc unused var
svn path=/trunk/mcs/; revision=128508
2009-03-03 23:54:30 +00:00
Zoltan Varga 6341b0c39a Revert a change commited by mistake.
svn path=/trunk/mono/; revision=128497
2009-03-03 23:23:23 +00:00
Marek Habersack 12d560e4e0 2009-03-03 Marek Habersack <[email protected]>
* CachedRawResponse.cs: headers are stored in NameValueCollection
	now.

2009-03-03  Marek Habersack  <[email protected]>

	* HttpResponse.cs: fully implemented the Headers property.
	It is also used in the 1.1 profile, but is internal.

	* HttpCookie.cs: GetCookieHeader renamed to GetCookieHeaderValue -
	now returns a string with the header value.

	* HttpCacheVaryByParams.cs: GetResponseHeader renamed to
	GetResponseHeaderValue - now returns a string with the header
	value.

	* HttpCachePolicy.cs: SetHeaders now takes a NameValueCollection
	instead of an ArrayList

svn path=/trunk/mcs/; revision=128494
2009-03-03 22:55:44 +00:00
Marek Habersack 0bc065aa3e 2009-03-03 Marek Habersack <[email protected]>
* HttpRequest.cs: avoid calculating the same value twice in
	MakeInputStream

svn path=/trunk/mcs/; revision=128493
2009-03-03 22:54:17 +00:00
Zoltan Varga 276b78748a 2009-03-03 Zoltan Varga <[email protected]>
* domain-internals.h (struct _MonoDomain): Add a separate lock for the
	finalize_objects_hash.

	* gc.c: Use the separate lock to access the finalize_objects_hash field.

svn path=/trunk/mono/; revision=128490
2009-03-03 22:18:15 +00:00
Zoltan Varga 31ea4f19c4 In metadata/
2009-03-03  Zoltan Varga  <[email protected]>

	* domain-internals.h (struct _MonoDomain): Add finalize_runtime_invoke
	field.

	* metadata-internals.h (struct _MonoImage): Add runtime_invoke_vcall_cache
	cache.

	* image.c (mono_image_close): Free it.
	
	* marshal.c (mono_marshal_get_runtime_invoke): Add a 'virtual' argument
	allowing a creation of a wrapper which invokes its method using a CALLVIRT
	on the this argument.

	* gc.c (run_finalize): Optimize the calling of the finalizers.

In mini/

2009-03-03  Zoltan Varga  <[email protected]>

	* mini.c aot-compiler.c: Update after the changes to 
	mono_marshal_get_runtime_invoke ().


svn path=/trunk/mono/; revision=128489
2009-03-03 22:07:31 +00:00
Rodrigo Kumpera d8f9612533 2009-03-03 Rodrigo Kumpera <[email protected]>
* Control.cs (FillControlCache): Remove useless control
	parameter. It's always the same of 'this'.

svn path=/trunk/mcs/; revision=128488
2009-03-03 21:50:44 +00:00
Rodrigo Kumpera 75123d34b9 2009-03-03 Rodrigo Kumpera <[email protected]>
* DataBoundLiteralControl.cs: Don't init static literals
	as they are lazily created.

svn path=/trunk/mcs/; revision=128485
2009-03-03 20:42:21 +00:00
Rodrigo Kumpera 6c09fbdf51 2009-03-03 Rodrigo Kumpera <[email protected]>
* Guid.cs (BaseToString): Reduce allocations.

svn path=/trunk/mcs/; revision=128477
2009-03-03 19:39:48 +00:00
Martin Baulig 86ff08cde9 Bump MONO_DEBUGGER_MAJOR_VERSION to 81 because of the `MonoGenericInst' changes.
svn path=/trunk/mono/; revision=128461
2009-03-03 18:41:34 +00:00
Rodrigo Kumpera 8c98541c0e 2009-03-03 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_MonoType_GetGenericArguments): Use
	mono_array_class_get_cached to reduce locking contention. Extract
	a domain var.

	* icall.c (ves_icall_Type_GetFields_internal): Avoid allocating
	intermediary managed arrays. Use caching version of mono_array_new
	to allocate the result array.

	* icall.c (ves_icall_Type_GetEvents_internal): Same.

	* icall.c (ves_icall_Type_GetNestedTypes): Same.

	* locales.c (create_names_array_idx):  Use mono_array_new_cached
	to reduce locking contention.

svn path=/trunk/mono/; revision=128455
2009-03-03 17:14:21 +00:00
Marek Safar a479cb5ca0 Updated.
svn path=/trunk/mono/; revision=128451
2009-03-03 15:45:38 +00:00
Marek Safar da90bb11ec New test.
svn path=/trunk/mcs/; revision=128450
2009-03-03 15:45:13 +00:00
Marek Safar cccf6d7749 New test.
svn path=/trunk/mcs/; revision=128449
2009-03-03 15:45:01 +00:00
Marek Safar 0c94cf907b 2009-03-03 Marek Safar <[email protected]>
A fix for bug #480319
	* report.cs, driver.cs: Support -warnaserror-:<warning list> option.


svn path=/trunk/mcs/; revision=128448
2009-03-03 15:43:54 +00:00
Marek Safar 45e9b03fc4 New test.
svn path=/trunk/mcs/; revision=128442
2009-03-03 13:55:29 +00:00
Marek Safar 561415f5b0 2009-03-03 Marek Safar <[email protected]>
A fix for bug #480867
	* typemanager.cs, expression.cs, ecore.cs: Changed method group
	expression to have no valid type.


svn path=/trunk/mcs/; revision=128441
2009-03-03 13:55:14 +00:00
Marek Safar 1c3dd589e5 New test.
svn path=/trunk/mcs/; revision=128435
2009-03-03 12:58:19 +00:00
Marek Safar dad1a5b337 2009-03-03 Marek Safar <[email protected]>
A fix for bug #481258
	* class.cs: Set extension method flag in partial container.


svn path=/trunk/mcs/; revision=128433
2009-03-03 12:57:55 +00:00
Marek Safar 1c65d7739f New tests.
svn path=/trunk/mcs/; revision=128427
2009-03-03 12:16:11 +00:00
Marek Safar 8b20a0b200 2009-03-03 Marek Safar <[email protected]>
* statement.cs, typemanager.cs: Use expression for StringEmitter.
	
	* attribute.cs: Add sanity check.


svn path=/trunk/mcs/; revision=128426
2009-03-03 12:15:54 +00:00
Marek Habersack 3c865b398f 2009-03-03 Marek Habersack <[email protected]>
* ListView.cs: SetPageProperties invoked the
	PagePropertiesChanging event with the startRowIndex and
	maximumRows parameters reversed. Fixes bugs #481250 and #481252

svn path=/trunk/mcs/; revision=128408
2009-03-03 01:28:50 +00:00
Marek Habersack ed9ff6a1db 2009-03-03 Marek Habersack <[email protected]>
* DataPagerField.cs: GetQueryModeStartRowIndex must return 'true'
	if in query mode. Fixes bug #481248

svn path=/trunk/mcs/; revision=128407
2009-03-03 01:28:31 +00:00
Chris Toshok 53fd125cbe In System.Runtime.Serialization/System.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs: 2.1
	has HasValue.

In System.XML/System.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs,
	EntityResolvingXmlReader.cs: 2.1 has HasValue.


In System.XML/Mono.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* SubtreeXmlReader.cs, XmlFilterReader.cs: 2.1 has HasValue.

In System.Xml.Linq/System.Xml.Linq:
2009-03-02  Chris Toshok  <[email protected]>

	* XNodeReader.cs: 2.1 has HasValue.

In System.ServiceModel.Web/System.Runtime.Serialization.Json:
2009-03-02  Chris Toshok  <[email protected]>

	* JsonReader.cs: 2.1 has HasValue.


svn path=/trunk/mcs/; revision=128406
2009-03-03 00:44:33 +00:00
Zoltan Varga ad5cfa2fec 2009-03-03 Zoltan Varga <[email protected]>
* object.c (mono_method_add_generic_virtual_invocation): Put back the
	thunk builder code for the non-interface case.

svn path=/trunk/mono/; revision=128404
2009-03-03 00:23:07 +00:00
Zoltan Varga aefd991135 2009-03-03 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): 
	Virtual generic methods might not have method->slot set, work around
	that.

	* generics.cs: Add a test.

svn path=/trunk/mono/; revision=128401
2009-03-02 23:57:09 +00:00
Everaldo Canuto f1f2c8e08f 2009-03-02 Everaldo Canuto <[email protected]>
* HttpResponse.cs: Headers property implementation.
	

svn path=/trunk/mcs/; revision=128397
2009-03-02 23:30:43 +00:00
Ankit Jain 2f41a9c813 In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* Csc.cs (AddResponseFileCommands): Split DefineConstants on ';'.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* CscTest.cs (DefineConstants): Add some extra semi-colons,
	that should get removed on output.
	(DefineConstants2): New. Test effectively empty define constants.

svn path=/trunk/mcs/; revision=128396
2009-03-02 23:20:18 +00:00
Geoff Norton 496192596f 2009-03-02 Geoff Norton <[email protected]>
* mini.c:
        * driver.c: Allow signal chaining of SIGFPE as well.

svn path=/trunk/mono/; revision=128388
2009-03-02 22:26:21 +00:00
Jb Evain 9d90e808ed preserve internal methods of EventInfo
svn path=/trunk/mcs/; revision=128387
2009-03-02 22:23:24 +00:00
Rodrigo Kumpera c347298eae 2009-03-02 Rodrigo Kumpera <[email protected]>
* appdomain.c (MONO_CORLIB_VERSION): Bump corlib version.

	* object-internals.h (MonoReflectionEvent): Add cached_add_event.

svn path=/trunk/mono/; revision=128384
2009-03-02 21:47:56 +00:00
Rodrigo Kumpera 2ad3203a3d 2008-03-02 Rodrigo Kumpera <[email protected]>
* EventInfo.cs: Apply similar trick to the one in MonoProperty to speed up
	AddEventHandler.

2009-03-02  Rodrigo Kumpera  <[email protected]>

	* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=128383
2009-03-02 21:47:45 +00:00
Rodrigo Kumpera 87cd861056 2009-03-02 Rodrigo Kumpera <[email protected]>
* object-internals.h: Rename _MonoReflectionEvent to
	MonoReflectionMonoEvent so it reflects the right managed type.
	Add a MonoReflectionEvent that correctly represents System.EventInfo.

	* icall.c:
	* reflection.c: Adjust code to use the new MonoReflectionMonoEvent
	type.

svn path=/trunk/mono/; revision=128382
2009-03-02 21:47:39 +00:00
Zoltan Varga a3c86be330 2009-03-02 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_generic_virtual_remoting_trampoline): Update
	this since it now receives the method not its generic context in the
	IMT reg.

svn path=/trunk/mono/; revision=128381
2009-03-02 21:39:49 +00:00
Rodrigo Kumpera d894e45bec 2009-03-02 Rodrigo Kumpera <[email protected]>
* Enum.cs (IsDefined): If the enum underlying type is int32, use
	the generic version, which doesn't box every element of the array.

svn path=/trunk/mcs/; revision=128367
2009-03-02 18:20:18 +00:00
Zoltan Varga eeb54ee416 2009-03-02 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_build_imt_thunk): Add support for mixed
	generic/imt thunks where some entries branch through the vtable, while
	other entries branch directly.

	* mini-x86.c (mono_arch_build_imt_thunk): Ditto.

	* method-to-ir.c (mono_method_to_ir): Enable fast virtual generic call 
	support for interface methods as well.

	* mini-trampolines.c: Add support for virtual generic methods in interfaces
	using the normal IMT thunks.

	generics.cs: Add new tests.

svn path=/trunk/mono/; revision=128360
2009-03-02 16:12:06 +00:00
Zoltan Varga f0ac9a1880 2009-03-02 Zoltan Varga <[email protected]>
* object.c (get_generic_virtual_entries): New helper function to collect
	the virtual generic method instances which need to be added to an IMT
	thunk.
	(mono_method_add_generic_virtual_invocation): Add a 'vtable' argument.
	Instead of creating a new IMT thunk, reset the vtable slot to the
	trampoline, the thunk will be created the next time the trampoline is called.
	(build_imt_slots): Add support for virtual generic methods in interfaces by
	adding to the IMT thunk all the methods registered using 
	mono_method_add_generic_virtual_invocation ().

	* object-internals.h (_MonoImtBuilderEntry): Add a 'has_target_code' field.
	(struct _MonoIMTCheckItem): Ditto.

svn path=/trunk/mono/; revision=128359
2009-03-02 16:08:28 +00:00
Rodrigo Kumpera 3e3eca918b 2009-03-02 Rodrigo Kumpera <[email protected]>
* Enum.cs (GetName): If the enum underlying type is int32, use
	the generic version, which doesn't box every element of the array.

svn path=/trunk/mcs/; revision=128356
2009-03-02 15:39:27 +00:00
Rodrigo Kumpera f0b5231c6c 2009-03-02 Rodrigo Kumpera <[email protected]>
* Enum.cs (MonoEnumInfo::GetInfo): Share the boxed form of the
	MonoEnumInfo between both caches.

svn path=/trunk/mcs/; revision=128355
2009-03-02 15:39:24 +00:00
Zoltan Varga 8da1adb232 2009-03-02 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Pass the method instead of
	the generic inst to the generic imt thunks. This fixes AOT support, 
	improves consistency with the normal IMT thunks, and makes it easier to
	add support for interface generic virtual methods later.

	* mini-trampolines.c (mono_magic_trampoline): Ditto.	

svn path=/trunk/mono/; revision=128353
2009-03-02 14:40:41 +00:00
Zoltan Varga 008101c105 2009-03-02 Zoltan Varga <[email protected]>
* object.c (mono_method_add_generic_virtual_invocation): Take a
	MonoMethod argument instead of a MonoGenericInst. Fix the construction of
	the IMT thunk to include all items.

svn path=/trunk/mono/; revision=128351
2009-03-02 14:37:53 +00:00
Zoltan Varga 86e81d06b1 2009-03-02 Zoltan Varga <[email protected]>
* object.c (mono_class_create_runtime_vtable): Add a missing
	mono_loader_unlock ().

svn path=/trunk/mono/; revision=128350
2009-03-02 14:18:34 +00:00
Rodrigo Kumpera de0367fae9 2009-03-02 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Avoid allocating
	intermediary managed arrays. Use caching version of mono_array_new
	to allocate the result array.

svn path=/trunk/mono/; revision=128348
2009-03-02 13:24:08 +00:00
Jonathan Pryor 33f149233f * Monodoc/ecma-provider.cs: Viewing type members (plural, e.g. the
Fields sub-node) would result in a stack overflow within
	  Resources/mdoc-html-utils.xsl:GetInheritedMembers(), because the
	  document() XSLT function was being used to obtain the base type's
	  documentation.  It stack overflowed because the XmlUrlResolver was
	  being used, which when given e.g. file:///DocAttribute.xml, would
	  return file:///DocAttribute.xml (which makes sense), but it was
	  non-terminating.  (I find this troubling as it should have been
	  trying to resolve e.g. System.Attribute, not DocAttribute; it must
	  be some XmlTransform-fu that was substituting documents.)
	  The fix is for EcmaUncompiledHelpSource to provide an alternate
	  document XmlResolver, one which always returns null from
	  XmlResolver.ResolveUri(), thus preventing endless recursion.

svn path=/trunk/mcs/; revision=128318
2009-03-01 23:10:04 +00:00
Jb Evain 2c3af2f5ee revert
svn path=/trunk/mcs/; revision=128311
2009-03-01 19:29:28 +00:00
Jb Evain 5f937cc06b 2009-03-01 Jb Evain <[email protected]>
* Makefile: tune for internal use, but don't install.
	Temporary situation, this will require more discussion
	with spouliot.


svn path=/trunk/mcs/; revision=128310
2009-03-01 19:29:01 +00:00
Jb Evain e5193fef81 2009-03-01 Jb Evain <[email protected]>
* Mono.Tuner.dll.sources
	* Mono.Tuner/MoonlightAssemblyStep.cs: add new step specific
	to moonlight to instrument Moonlight assemblies one by one.


svn path=/trunk/mcs/; revision=128309
2009-03-01 19:26:28 +00:00
Carlos Alberto Cortez c353a63c55 2009-03-01 Carlos Alberto Cortez <[email protected]>
* ListView.cs: When removing items from a ListViewItemCollection
	contained in ListView (not in ListViewGroup), before actually removing
	the items remove them also from their -if any- associated groups. If
	the item is present in ListViewGroup.Items but not in ListView.Items,
	then don't remove it - this is *exactly* what .net seems to do.
	Fixes the remaining bits of #478689.


svn path=/trunk/mcs/; revision=128308
2009-03-01 19:20:22 +00:00
Jonathan Pryor dd0a0c1baa * Mono.Documentation/XmlDocUtils.cs: It's possible for the `loader'
delegate to return `null' if no further base types are found, so
	  stop processing if we find a null base type.
	* Monodoc/provider.cs: 
	  - Make GetHelpStream() virtual so that EcmaUncompiledHelpSource can
	    override it, as the default zip-based behavior is inappropriate.
	  - Make GetHelpXmlWithChanges() virtual so that
	    EcmaUncompiledHelpSource can override it, as the default zip-based
	    behavior is inappropriate.
	  - When initializing UncompiledHelpSources, set the
	    HelpSource.RootTree property (avoids an NRE from
	    EcmaHelpSource.GetTextFromUrl() when it reads RootTree.HelpSources).
	* Monodoc/ecma-provider.cs: 
	  - Within the XmlDocUtils.AddExtensionMethods() call, don't always 
	    prefix the type with "T:", as sometimes the type will already start 
	    with "T:", which is the case with EcmaUncompiledHelpSource ids.  
	  - Add EcmaUncompiledHelpSource.GetHelpStream() and
	    EcmaUncompiledHelpSource.GetHelpXmlWithChanges(), which Do The
	    Right Thing for the file-based backend.

svn path=/trunk/mcs/; revision=128306
2009-03-01 18:43:53 +00:00
Jonathan Pryor bbee9f0970 * Monodoc/ecma-provider.cs: For some reason,
EcmaHelpSource.GetNamespaceDocument() wasn't being used anymore,
	  which is what EcmaUncompiledHelpSource overrides to permit loading
	  of local files.  Result: an exception when trying to view namespaces
	  of local (non-assembled) directories.  Oops.  "Fixes" 443508.

svn path=/trunk/mcs/; revision=128305
2009-03-01 18:18:51 +00:00
Rodrigo Kumpera 1cfee61958 2009-03-01 Rodrigo Kumpera <[email protected]>
* reflection.c: Use cached version of mono_array_new alongside
	the mono_reflection_get_custom_attrs_by_type call path.

svn path=/trunk/mono/; revision=128304
2009-03-01 17:54:06 +00:00
Rodrigo Kumpera 07d1ee6cf7 2009-03-01 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetInterfaces): Avoid allocating
	intermediary managed arrays. Use caching version of mono_array_new
	to allocate the result array.

	* icall.c (ves_icall_Type_GetConstructors_internal): Same.

svn path=/trunk/mono/; revision=128303
2009-03-01 17:53:57 +00:00
Rodrigo Kumpera 1c4c2b4b78 2009-03-01 Rodrigo Kumpera <[email protected]>
* icall.c: Add small implementation of a growable stack bound array.

	* icall.c (ves_icall_System_Enum_get_hashcode): Fix warning.

	* icall.c (ves_icall_Type_GetPropertiesByName): Avoid allocating
	intermediary managed arrays. Use caching version of mono_array_new
	to allocate the result array.

svn path=/trunk/mono/; revision=128302
2009-03-01 17:13:00 +00:00
Zoltan Varga 752d9d2b37 2009-03-01 Zoltan Varga <[email protected]>
* NameValueCollection.cs (AsSingleString): Avoid the allocation of
	a stringbuilder for collections with only one element.

svn path=/trunk/mcs/; revision=128295
2009-03-01 08:57:13 +00:00
Gonzalo Paniagua Javier e0c90228e4 2009-03-01 Gonzalo Paniagua Javier <[email protected]>
* WebEncoding.cs: another GetWebApplication here.


svn path=/trunk/mcs/; revision=128293
2009-03-01 07:40:39 +00:00
Zoltan Varga fcda685198 2009-02-28 Zoltan Varga <[email protected]>
* driver.c (mono_set_signal_chaining): New public API function to enable
	signal chaining on POSIX platforms.

	* mini-posix.c mini.c: Applied a variant of a patch by Simon Rowland 
	([email protected]) to implement signal chaining. The original patch was
	contributed under the MIT X/11 license:
	https://bugzilla.novell.com/show_bug.cgi?id=318894

svn path=/trunk/mono/; revision=128282
2009-03-01 00:12:13 +00:00
Marek Habersack da7b280757 2009-03-01 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: optimized GetWebApplicationSection a
	bit

svn path=/trunk/mcs/; revision=128278
2009-02-28 23:17:42 +00:00
Gonzalo Paniagua Javier d7f1dbcff0 missed these two
svn path=/trunk/mcs/; revision=128276
2009-02-28 20:37:37 +00:00
Gonzalo Paniagua Javier e63f092be1 2009-02-28 Gonzalo Paniagua Javier <[email protected]>
* AppResourcesAssemblyBuilder.cs:
	* BuildManagerDirectoryBuilder.cs:
	* AspComponentFoundry.cs:
	* AssemblyBuilder.cs:
	* CachingCompiler.cs:
	* AspGenerator.cs:
	* WsdlBuildProvider.cs:
	* BaseCompiler.cs:
	* BuildProvider.cs:
	* AppWebReferencesCompiler.cs:
	* TemplateControlCompiler.cs:
	* BuildManager.cs:
	* AppCodeCompiler.cs: settings that have to be in
	machine.config or the root level web.config now call
	GetWebApplicationSection.


svn path=/trunk/mcs/; revision=128275
2009-02-28 20:30:31 +00:00
Gonzalo Paniagua Javier 871da8a251 2009-02-28 Gonzalo Paniagua Javier <[email protected]>
* BaseParser.cs:
	* PageParser.cs:
	* ControlBuilder.cs:
	* TemplateParser.cs:
	* Page.cs:
	* SimpleWebHandlerParser.cs: settings that have to be in
	machine.config or the root level web.config now call
	GetWebApplicationSection.



svn path=/trunk/mcs/; revision=128273
2009-02-28 20:04:36 +00:00
Zoltan Varga 9818419d09 2009-02-28 Zoltan Varga <[email protected]>
* EventHandlerList.cs: Change this to use a linked list as stated by the
	MSDN docs.

svn path=/trunk/mcs/; revision=128272
2009-02-28 19:54:14 +00:00
Gonzalo Paniagua Javier a547c94668 2009-02-28 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpResponseHeader.cs:
	* System.Web/HttpResponse.cs:
	* System.Web/QueueManager.cs:
	* System.Web/HttpRequest.cs:
	* System.Web/TraceManager.cs:
	* System.Web/HttpServerUtility.cs:
	* System.Web/HttpApplication.cs:
	* System.Web.UI/ObjectStateFormatter.cs:
	* System.Web.Security/FormsAuthentication.cs: use GetWebApplication
	instead of GetSection for application level configuration.


svn path=/trunk/mcs/; revision=128270
2009-02-28 18:56:20 +00:00
Zoltan Varga d43afcd6d5 2009-02-28 Zoltan Varga <[email protected]>
* Enum.cs (FindName): Use a hash table for looking up names instead of
	a linear search for enums with a lot of values.

svn path=/trunk/mcs/; revision=128267
2009-02-28 16:21:38 +00:00
Martin Baulig a3ed5ef01f Add .gitignore.
svn path=/trunk/mono/; revision=128266
2009-02-28 14:37:10 +00:00
Martin Baulig 1cbad8abc3 Create .gitignore's.
svn path=/trunk/mono/; revision=128265
2009-02-28 14:36:50 +00:00
Carlos Alberto Cortez d5d3f65317 2009-02-28 Carlos Alberto Cortez <[email protected]>
* ListView.cs: In our MouseDown handler in ItemControl use the item in
	the very specific *real* position where the mouse was pressed, using
	GetItemAtDisplayIndex for that purpose, instead of directly accessing
	Items - this is specially useful when groups with Details view is
	used. This is what we do in other places when using groups.
	Fixes part of #478689.


svn path=/trunk/mcs/; revision=128264
2009-02-28 12:39:44 +00:00
Rodrigo Kumpera 0ab891a1fb 2008-02-28 Rodrigo Kumpera <[email protected]>
* MonoProperty.cs (GetValue): Don't use the delegate optimization for valuetypes.

svn path=/trunk/mcs/; revision=128262
2009-02-28 06:21:53 +00:00
Marek Habersack cab3168b4d 2009-02-28 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: make sure no nrex happens in
	GetSectionCacheKey ()

svn path=/trunk/mcs/; revision=128251
2009-02-28 02:15:28 +00:00
Marek Habersack 98803dbdf1 2009-02-28 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: Avoid double OnInit in scenarios with two master
	pages.

svn path=/trunk/mcs/; revision=128249
2009-02-28 01:37:27 +00:00
Rodrigo Kumpera 7758eae8ca 2009-02-27 Rodrigo Kumpera <[email protected]>
* UInt16.cs (CompareTo/short): Make it return the
	same values as the /object version.

	* Enum.cs (CompareTo): Use new compare_value_to icall to do the comparison.
	This avoids two allocations and reduce the number of trips to unmanaged land
	by one.

	The performance improvement is up to 3.5x with the bonus of reducing the generated
	garbage.

2009-02-27  Rodrigo Kumpera  <[email protected]>

	EnumTest.cs: Tests for CompareTo.

svn path=/trunk/mcs/; revision=128247
2009-02-27 23:20:03 +00:00
Rodrigo Kumpera 33555ddf1b 2009-02-27 Rodrigo Kumpera <[email protected]>
* icall.c: New icall ves_icall_System_Enum_compare_value_to that
	helps Enum::CompareTo to be implemented without reboxing all enums
	to their underlying type.

svn path=/trunk/mono/; revision=128246
2009-02-27 23:19:58 +00:00
Jonathan Pryor 247cfd34f0 * System.Text.RegularExpressions/Regex.cs (Replace): Check that input &
evaluator are not null, as documented in MSDN (and the variance found 
	  while testing DbLinq).
	* Test/System.Text.RegularExpressions/RegexReplace.cs: Add null 
	  argument checks for Regex.Replace().

svn path=/trunk/mcs/; revision=128241
2009-02-27 21:40:17 +00:00
Zoltan Varga 282132ce15 2009-02-27 Zoltan Varga <[email protected]>
* domain.c (SET_APPDOMAIN): Avoid calling TlsSetValue () on some platforms,
	since it acquires a global lock leading to scalability problems.

svn path=/trunk/mono/; revision=128236
2009-02-27 18:35:39 +00:00
Rodrigo Kumpera c4a81454fa 2009-02-27 Rodrigo Kumpera <[email protected]>
* ReflectionPropertyDescriptor.cs: Don't cache getter and
	setter properties. Cache instead the PropertyInfo objects
	that defined them.

	PropertyInfo::Get/SetValue is faster than calling the method
	throught reflection.

svn path=/trunk/mcs/; revision=128235
2009-02-27 18:07:36 +00:00
Zoltan Varga 4d6220fe6c 2009-02-27 Zoltan Varga <[email protected]>
* iltests.il.in (test_0_implicit_float_to_double_conversion): Disable this
	too until it can be made to run on amd64.

svn path=/trunk/mono/; revision=128234
2009-02-27 18:04:08 +00:00
Atsushi Eno d0c02bc418 2009-02-27 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : look for unordered members first, in
          different iteration. Got SL OpenStreetMap working.


svn path=/trunk/mcs/; revision=128231
2009-02-27 16:13:11 +00:00
Atsushi Eno b7c8529416 2009-02-27 Atsushi Enomoto <[email protected]>
* ClientBase.cs : give successful WCF call completion info.


svn path=/trunk/mcs/; revision=128230
2009-02-27 16:10:20 +00:00
Carlos Alberto Cortez c1de482ac4 2009-02-27 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: Properly replace selection when a new valid key
	is pressed - even when IsOverwriteMode is false. This is what .net
	does.


svn path=/trunk/mcs/; revision=128224
2009-02-27 15:41:14 +00:00
Jb Evain 989fb6a289 oops
svn path=/trunk/mcs/; revision=128222
2009-02-27 15:02:56 +00:00
Jb Evain 58b02b21ac 2009-02-27 Jb Evain <[email protected]>
* Makefile: don't tune net_2_1 assemblies here.
	moon takes care of that now.


svn path=/trunk/mcs/; revision=128221
2009-02-27 15:01:17 +00:00
Gonzalo Paniagua Javier d98635e2ce 2009-02-27 Gonzalo Paniagua Javier <[email protected]>
* ResourceSet.cs: populating the resource should be locked because the
	resourceset could be shared.


svn path=/trunk/mcs/; revision=128215
2009-02-27 17:32:18 +00:00
Jb Evain 62f22f6d09 property MonoProperty completely
svn path=/trunk/mcs/; revision=128210
2009-02-27 12:46:07 +00:00
Marek Safar 8c5e2089a1 New test.
svn path=/trunk/mcs/; revision=128209
2009-02-27 12:29:22 +00:00
Marek Safar 1ef0102954 2009-02-27 Marek Safar <[email protected]>
* class.cs: Add external constructor error.


svn path=/trunk/mcs/; revision=128208
2009-02-27 12:29:07 +00:00
Atsushi Eno 86d031f8a5 2009-02-27 Atsushi Enomoto <[email protected]>
* Message.cs : (in CreateBufferedCopy) do not pass the entire
          message as BodyWriter.
          (in GetReaderAtBodyContents) just write body contents.
        * MessageImpl.cs : do not try to read body at ctor (fixed tons
          of test failures).
          Add some state check in GetReaderAtBodyContents().
        * XmlReaderBodyWriter.cs : avoid possible extra xmldecl onto output.


svn path=/trunk/mcs/; revision=128186
2009-02-27 09:05:12 +00:00
Atsushi Eno 2bf962aa2a 2009-02-27 Atsushi Enomoto <[email protected]>
* XmlReader.cs : do not try to read at non-readable state in
          MoveToContent().


svn path=/trunk/mcs/; revision=128185
2009-02-27 09:04:00 +00:00
Zoltan Varga c05620f465 2009-02-27 Zoltan Varga <[email protected]>
* arm/{arm_fpamacros.h, arm_vfpmacros.h}: Remove these files, they are
	autogenerated.

svn path=/trunk/mono/; revision=128179
2009-02-27 06:21:52 +00:00
Atsushi Eno bfab1d0b09 2009-02-27 Atsushi Enomoto <[email protected]>
* ClientBase.cs : diagnose more precisely.


svn path=/trunk/mcs/; revision=128178
2009-02-27 05:08:10 +00:00
Zoltan Varga eca6fdb769 2009-02-27 Zoltan Varga <[email protected]>
* profiler.c: Make the stat profiler work with multiple appdomains, this
	currently only works when no appdomains are unloaded.

svn path=/trunk/mono/; revision=128176
2009-02-27 02:42:42 +00:00
Rodrigo Kumpera 2295554090 2008-02-26 Rodrigo Kumpera <[email protected]>
* MonoProperty.cs (GetValue): Optimize getters for properties without arguments.

svn path=/trunk/mcs/; revision=128173
2009-02-27 01:50:58 +00:00
Rodrigo Kumpera 64824031a2 2008-02-26 Rodrigo Kumpera <[email protected]>
* MonoProperty.cs (GetValue): Optimize getters for properties without arguments.
	The optimization is to create a pair of chained delegates that duplicate the workings
	on MethodBase::Invoke without all the aditional overhead and without doing two
	managed/native transitions.

	Simple Getter performance is up to 17x faster.

	This patch reduces contention on domain and domain jit code hash locks, which
	can be very hot on asp.net applications.

svn path=/trunk/mcs/; revision=128172
2009-02-27 01:46:32 +00:00
Carlos Alberto Cortez 421e92fb51 2009-02-26 Carlos Alberto Cortez <[email protected]>
* MaskedTextBoxTest.cs: Yet a new Text test case.


svn path=/trunk/mcs/; revision=128166
2009-02-27 01:29:20 +00:00
Carlos Alberto Cortez 91e12d2a53 2009-02-26 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: When setting Text use the very precise algorithm
	that .net uses: iterate over every char of the new value, trying to
	use every char, and use a normal call to MaskedTextProvider.Replace
	call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
	in case of error in both cases, as well.
	Fixes #477408.


svn path=/trunk/mcs/; revision=128165
2009-02-27 01:26:49 +00:00
Zoltan Varga 09047c897a 2009-02-27 Zoltan Varga <[email protected]>
* BaseMachine.cs (LTRReplace): Initialize the StringBuilder with an
	appropriate initial length.

svn path=/trunk/mcs/; revision=128158
2009-02-26 23:24:42 +00:00
Jonathan Pryor e0df4ec966 * Monodoc/provider.cs: Revert; Don't check for Tree.Nodes == null, as it
happens in numerous places.  Instead, take a page out of the "I
	  never should have invented `null'" book, and ensure that Tree.Nodes
	  can never be null.  This fixes the "HelpSource has 0 items" issue
	  and several other related ones.

svn path=/trunk/mcs/; revision=128134
2009-02-26 18:24:25 +00:00
Jonathan Pryor ab0bbb10a0 * Mono.Documentation/assembler.cs: When processing an empty directory,
it's possible for HelpSource.Tree to be null; avoid an NRE.

svn path=/trunk/mcs/; revision=128132
2009-02-26 18:03:52 +00:00
Jonathan Pryor 2be8257cb1 * Monodoc/provider.cs: It's possible for a HelpSource to have 0
elements (which can be done by e.g. running `mdoc assemble' on an 
	  empty directory), in which case HelpSource.Tree.Nodes will be null.
	  Make sure that we don't get a NullReferenceException.
	  Patch thanks to Theerud Lawtrakul.  Fixes #443699.

svn path=/trunk/mcs/; revision=128131
2009-02-26 18:01:56 +00:00
Marek Safar 5bf6ebdfbe 2009-02-26 Marek Safar <[email protected]>
* Nullable.cs: Inline GetValueOrDefault.


svn path=/trunk/mcs/; revision=128129
2009-02-26 17:56:57 +00:00
Gonzalo Paniagua Javier 89d246e068 typo
svn path=/trunk/mono/; revision=128127
2009-02-26 17:44:46 +00:00
Gonzalo Paniagua Javier 8be913bd09 2009-02-26 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: make the check to avoid copying when the assembly is
	already shadow copied actually work.


svn path=/trunk/mono/; revision=128125
2009-02-26 17:41:29 +00:00
Miguel de Icaza f95ffd949d Update docs as usual
svn path=/trunk/mono/; revision=128124
2009-02-26 17:30:53 +00:00
Gonzalo Paniagua Javier db46edacce 2009-02-26 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationManager.cs: generate a hash from the string hsah
	codes instead of concatenating them.


svn path=/trunk/mcs/; revision=128121
2009-02-26 17:24:22 +00:00
Marek Safar b0afbbb709 New test.
svn path=/trunk/mcs/; revision=128119
2009-02-26 17:05:03 +00:00
Marek Safar e7ead66345 2009-02-26 Marek Safar <[email protected]>
A fix for bug #475354
	* convert.cs, nullable.cs, expression.cs, statement.cs: Emit
	correctly user defined nullable equality operators.


svn path=/trunk/mcs/; revision=128118
2009-02-26 17:03:47 +00:00
Zoltan Varga 34c48054c2 2009-02-26 Zoltan Varga <[email protected]>
* String.cs (FormatHelper): If all the arguments are strings, compute an
	initial length for the stringbuilder to avoid reallocations.

svn path=/trunk/mcs/; revision=128114
2009-02-26 16:32:52 +00:00
Atsushi Eno 975351e769 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientProxyGenerator.cs : fix wrong argument index.


svn path=/trunk/mcs/; revision=128105
2009-02-26 15:45:58 +00:00
Atsushi Eno 2302b97b38 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientBase.cs : use overridable CreateChannel().


svn path=/trunk/mcs/; revision=128104
2009-02-26 15:45:27 +00:00
Marek Habersack 2aaf750270 2009-02-26 Marek Habersack <[email protected]>
* TagAttributes.cs: modified ToString to return string formatted
	in a more helpful way.

	* AspParser.cs: added ToString, helpful when debugging.

	* AspGenerator.cs: properly print leading and trailing plain text
	when looking for embedded tags in ProcessTagsInAttributes.

svn path=/trunk/mcs/; revision=128091
2009-02-26 14:16:20 +00:00
Sebastien Pouliot ba38f3736b 2008-02-26 Sebastien Pouliot <[email protected]>
* merge.cs: Smarter merge to avoid duplicate (or unneeded) attributes
	on methods when a type is decorated with SC or SSC.


svn path=/trunk/mcs/; revision=128089
2009-02-26 13:37:32 +00:00
Zoltan Varga 53117ce147 2009-02-26 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_get_this_arg_from_call): Avoid expensive calls
	to  get_generic_context_from_code () + get_call_info () if possible.

svn path=/trunk/mono/; revision=128088
2009-02-26 13:23:25 +00:00
Ankit Jain 11db3d2767 * xbuild/Microsoft.CSharp.targets (Csc): Fix "Resources" argument to use
ManifestNonResxWithCultureOnDisk instead of ManifestResourceWithNoCultureOnDisk.

svn path=/trunk/mcs/; revision=128081
2009-02-26 11:52:46 +00:00
Gonzalo Paniagua Javier e87cc9e44d fix the build
svn path=/trunk/mono/; revision=128062
2009-02-26 07:29:03 +00:00
Atsushi Eno 5c9c248b76 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientBase.cs : make it work with SL2 UI threading model.


svn path=/trunk/mcs/; revision=128058
2009-02-26 05:26:53 +00:00
Atsushi Eno 01d6ebe113 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientProxyGenerator.cs : simply use CodeMethod.GetArg().


svn path=/trunk/mcs/; revision=128057
2009-02-26 05:26:20 +00:00
Atsushi Eno cc898786e4 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs,
	  ClientBase.cs, ChannelFactory_1.cs, DuplexClientBase.cs:
	  now ClientBase<TChannel>.InnerChannel became ChannelBase<T> as
	  SL2 does. This change required several internal changes in
	  proxy code generation. Also, now TChannel must be class.


svn path=/trunk/mcs/; revision=128056
2009-02-26 05:14:17 +00:00
Atsushi Eno 707e1e5a84 2009-02-26 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : ClientBase<> argument type must be
	  class (the class itself is to be fixed soon as well).


svn path=/trunk/mcs/; revision=128055
2009-02-26 05:06:53 +00:00
Atsushi Eno 9096916965 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientRuntime.cs : fill contractType in .ctor().


svn path=/trunk/mcs/; revision=128054
2009-02-26 05:04:48 +00:00
Veerapuram Varadhan dba89de6c2 * Tds.cs (ProcessLoginAck): Set TdsVersion to the version
supported by the server.
        (GetColumnValue): lcid and sortId are available only from Tds 8.

        * Tds80.cs (ProcessColumnInfo, ProcessOutputParam): Call base
        methods if the server version is less than Tds 8.


svn path=/trunk/mcs/; revision=128053
2009-02-26 04:18:02 +00:00
Miguel de Icaza 456f323eb9 Add support for platforms without rewinddir
svn path=/trunk/mono/; revision=128052
2009-02-26 04:00:13 +00:00
Jonathan Pryor a71b039661 * Makefile:
- s/TEST_FILES/MAN_TEST_FILES/g: $(TEST_FILES) is used by the normal
	    build process, so the local definition is lost (and thus ignored).
	    Result: Test/* isn't actually copied.  Oops.  Changing to
	    MAN_TEST_FILES allows things to be copied.
	  - Fix the filenames within $(MAN_TEST_FILES) so `make dist-local'
	    works without error.
	  - Fixes #479753.

svn path=/trunk/mcs/; revision=128051
2009-02-26 03:20:13 +00:00
Marek Habersack e177724b7c 2009-02-26 Marek Habersack <[email protected]>
* HttpResponse.cs: added DisableKernelCache and TransmitFile
	methods.

svn path=/trunk/mcs/; revision=128048
2009-02-26 02:33:14 +00:00
Marek Habersack 2bdb89e14a 2009-02-26 Marek Habersack <[email protected]>
* FileLevelControlBuilderAttribute.cs,
	DataSourceCacheDurationConverter: hush the gmcs warnings

svn path=/trunk/mcs/; revision=128047
2009-02-26 02:33:04 +00:00
Marek Habersack 3dfbadffd6 2009-02-26 Marek Habersack <[email protected]>
* System.Web.dll.sources: added System.Web/IisTraceListener.cs

2009-02-26  Marek Habersack  <[email protected]>

	* IisTraceListener.cs: added + implemented

svn path=/trunk/mcs/; revision=128046
2009-02-26 02:32:53 +00:00
Marek Habersack 050d494dc8 2009-02-25 Marek Habersack <[email protected]>
* HttpApplication.cs: let the current context known that
	MapRequestHandler is done.

	* HttpContext.cs: implemented RemapHandler

svn path=/trunk/mcs/; revision=128045
2009-02-26 02:32:28 +00:00
Neville Gao 1ce090146a Added UIA Framwork Property: UIASelectedSmallColorControl.
svn path=/trunk/mcs/; revision=128044
2009-02-26 02:26:51 +00:00
Zoltan Varga 06dcb14d18 2009-02-26 Zoltan Varga <[email protected]>
* appdomain.c (MONO_CORLIB_VERSION): Bump corlib version.

	* object-internals.h (struct _MonoReflectionGenericClass): Sync with
	changes to the managed side.

svn path=/trunk/mono/; revision=128043
2009-02-26 02:08:32 +00:00
Zoltan Varga 24d7574814 2009-02-26 Zoltan Varga <[email protected]>
* MonoType.cs (FullName): Cache the result of this in a field, as
	computing it is expensive.

	* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=128042
2009-02-26 02:07:46 +00:00
Marek Habersack a4e019893e 2009-02-26 Marek Habersack <[email protected]>
* data/mono.web.pc.in: added. Fixes bug #479760

	* data/Makefile.am:  added mono.pc{.in} wherever necessary

svn path=/trunk/mono/; revision=128040
2009-02-26 02:02:29 +00:00
Ankit Jain cc86c83cdf * xbuild/Microsoft.Common.targets: Make targets extensible. Add
before/after hooks.

svn path=/trunk/mcs/; revision=128034
2009-02-25 21:20:19 +00:00
Ankit Jain 0f559fe76b * MakeDir.cs (Execute): Don't create+log if dir already exists.
svn path=/trunk/mcs/; revision=128033
2009-02-25 21:20:15 +00:00
Ankit Jain 7ad89b017f * Target.cs: Handle target with no tasks. Log errors.
svn path=/trunk/mcs/; revision=128032
2009-02-25 21:20:06 +00:00
Ankit Jain 59e9ba0acb * xbuild/Microsoft.Common.targets: Use obj/$(Config) as the default intermediate
output path, instead of just obj/

svn path=/trunk/mcs/; revision=128031
2009-02-25 21:19:46 +00:00
Carlos Alberto Cortez 152afa8c69 * MaskedTextBox.cs: Forgot to update the call of the new method
introduces in the previous patch.

2009-02-25  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=128022
2009-02-25 17:38:16 +00:00
Marek Safar 06177779f6 New test.
svn path=/trunk/mcs/; revision=128017
2009-02-25 16:46:43 +00:00
Marek Safar 5d4df1afc1 2009-02-25 Marek Safar <[email protected]>
A fix for bug #479532
	* expression.cs: Implement NewInitialize::AddressOf.


svn path=/trunk/mcs/; revision=128015
2009-02-25 16:36:34 +00:00
Zoltan Varga 7b7cce98f9 2009-02-25 Zoltan Varga <[email protected]>
* metadata-internals.h (struct _MonoImage): Add a new cache for szarray
	classes + a separate lock for it, as it is used frequently at runtime, not
	just during metadata loading/JIT compilation.

	* class.c (mono_bounded_array_class_get): Use the separate cache + lock
	for szarrays.

svn path=/trunk/mono/; revision=128012
2009-02-25 15:27:32 +00:00
Zoltan Varga 2da32076d2 2009-02-25 Zoltan Varga <[email protected]>
* object-internals.h (mono_class_from_name_cached): New macro to cache
	the results of the lookup locally without having to declare a static
	variable to hold it.
	(mono_class_get_field_from_name_cached): Ditto.
	(mono_array_class_get_cached): Ditto.

	* threadpool.c threads.c locales.c icall.c reflection.c socket-io.c: Use
	the new macros.

svn path=/trunk/mono/; revision=128011
2009-02-25 15:25:28 +00:00
Zoltan Varga ec6c5f7157 2009-02-25 Zoltan Varga <[email protected]>
* object.c (mono_get_delegate_invoke): Call setup_methods () to avoid the
	slower search in metadata.

svn path=/trunk/mono/; revision=128010
2009-02-25 15:22:11 +00:00
Sebastien Pouliot 8712464cd2 2008-02-25 Sebastien Pouliot <[email protected]>
* merge.cs: Avoid duplicates in the merged files (e.g. an SC from
	both compatibility and automatic).


svn path=/trunk/mcs/; revision=128009
2009-02-25 15:19:31 +00:00
Carlos Alberto Cortez fb5db9a425 2009-02-25 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
	key. Also create a new method to avoid code duplication between
	OnKeyDown and OnKeyPress.
	Fixes #477388.


svn path=/trunk/mcs/; revision=128006
2009-02-25 14:42:20 +00:00
Ankit Jain dd98e11f2d * AL.cs (Execute): Use ToolTask.Execute instead of doing our own.
svn path=/trunk/mcs/; revision=128004
2009-02-25 14:07:59 +00:00
Marek Safar ef4823e2cc New test.
svn path=/trunk/mcs/; revision=127991
2009-02-25 11:40:21 +00:00
Marek Safar 79b101151a 2009-02-25 Marek Safar <[email protected]>
A fix for bug #413633
	* expression.cs: Iterate all base class-constraint types.


svn path=/trunk/mcs/; revision=127989
2009-02-25 11:39:03 +00:00
Zoltan Varga cd4e922f4e 2009-02-25 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_handle_native_sigsegv): Implement the
	suspend-on-sigsegv functionality.

	* mini.c (mini_parse_debug_options): Add a new 'suspend-on-sigsegv' option
	to suspend when a native SIGSEGV is received. This is useful for debugging
	crashes which don't happen under gdb, since a live process contains more
	information than a core file.

	* mini-exceptions.c (mono_print_thread_dump): Use 
	MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX instead of platform defines.

	* mini-x86.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): New define.

	* mini-amd64.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): Ditto.

svn path=/trunk/mono/; revision=127943
2009-02-25 04:43:30 +00:00
Zoltan Varga 0e724f88e4 2009-02-25 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_handle_native_sigsegv): Implement the
	suspend-on-sigsegv functionality.

	* mini.c (mini_parse_debug_options): Add a new 'suspend-on-sigsegv' option
	to suspend when a native SIGSEGV is received. This is useful for debugging
	crashes which don't happen under gdb, since a live process contains more
	information than a core file.

	* mini-exceptions.c (mono_print_thread_dump): Use 
	MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX instead of platform defines.

	* mini-x86.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): New define.

	* mini-amd64.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): Ditto.

svn path=/trunk/mono/; revision=127942
2009-02-25 04:43:09 +00:00
Zoltan Varga 10fa340068 2009-02-25 Zoltan Varga <[email protected]>
* basic-float.cs: Disable the tests which currently fail on amd64.

svn path=/trunk/mono/; revision=127941
2009-02-25 04:34:37 +00:00
Zoltan Varga 7938e71cb7 2009-02-25 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass a non-null 
	value to mono_arch_patch_callsite () to fix crashes.

svn path=/trunk/mono/; revision=127940
2009-02-25 04:33:10 +00:00
Ankit Jain 34192e533f * AssemblyResolver.cs:
* ResolveAssemblyReference.cs: Honor SpecificVersion. Emit detailed error
messages incase assembly resolution fails. Make specific version
strict.

svn path=/trunk/mcs/; revision=127939
2009-02-25 04:03:55 +00:00
Ankit Jain c90ba409c8 In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* ManagedCompiler.cs (AddResponseFileCommands): Use LogicalName for
	embedded resources, wherever available.
	* CreateCSharpManifestResourceName.cs (GetResourceIdFromFileName): Use
	Path.Combine instead of hardcoding "\".

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* CreateCSharpManifestResourceNameTest.cs (CheckResourceNames):
	Refactor a bit to improve error reporting.
	Update to use Path.Combine instead of hardcoding "\".

In tools/xbuild:
	* xbuild/Microsoft.Common.targets (CopyNonResxEmbeddedResources): New.
	(GenerateSatelliteAssemblies): Update to use the new ManifestNonResxWithCultureOnDisk
	instead of NonResxWithCulture.
	* xbuild/Microsoft.CSharp.targets (Csc): Fix "Resources" argument to use
	the new on disk file names instead of original filenames.

svn path=/trunk/mcs/; revision=127938
2009-02-25 03:14:13 +00:00
Marek Habersack 39ea4c8b32 2009-02-25 Marek Habersack <[email protected]>
* AspTokenizer.cs: put_back now uses a stack and allows more than
	one invocation when called inside a tag.

	* AspGenerator.cs: when a nested parser is used, pay attention to
	server tags found inside client tags and add them to the control
	tree.

svn path=/trunk/mcs/; revision=127935
2009-02-25 02:49:25 +00:00
Marek Habersack 5d6c42706d 2009-02-24 Marek Habersack <[email protected]>
* TempFileStream.cs: the class is internal

	* VirtualPathUtility.cs: ToAbsolute (string, string, bool) is
	internal

svn path=/trunk/mcs/; revision=127934
2009-02-25 02:48:53 +00:00
Andrés G. Aragoneses eeb713067a changelog..
svn path=/trunk/mcs/; revision=127933
2009-02-25 02:33:30 +00:00
Andrés G. Aragoneses 5bb70a1030 * Test/System.Diagnostics/ProcessTest.cs: New tests for bug 477943.
* System.Diagnostics/Process.cs: Throw IOEs instead of normal
exceptions. Fixes bug 477943.

svn path=/trunk/mcs/; revision=127932
2009-02-25 02:28:14 +00:00
Zoltan Varga 560bc6d36d 2009-02-25 Zoltan Varga <[email protected]>
* Enum.cs (GetInfo): Add a global cache in addition to the thread-local
	caches to accomodate short living threads like threadpool threads.

svn path=/trunk/mcs/; revision=127929
2009-02-25 01:56:48 +00:00
Zoltan Varga 46a4b73e67 2009-02-25 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix a warning.

svn path=/trunk/mono/; revision=127926
2009-02-25 00:57:17 +00:00
Zoltan Varga b03a6726cd 2009-02-25 Zoltan Varga <[email protected]>
* pedump.c: Fix a warning.

svn path=/trunk/mono/; revision=127922
2009-02-25 00:35:07 +00:00
Gonzalo Paniagua Javier 2b6f0ebd4a 2009-02-24 Gonzalo Paniagua Javier <[email protected]>
* StringReaderTest.cs: new test for ReadLine.


svn path=/trunk/mcs/; revision=127915
2009-02-24 23:49:51 +00:00
Gonzalo Paniagua Javier f2a2398195 2009-02-24 Gonzalo Paniagua Javier <[email protected]>
* StringReader.cs: LF followed by CR is 2 lines.


svn path=/trunk/mcs/; revision=127914
2009-02-24 23:48:36 +00:00
Jonathan Pryor 48e3fc379c * docs/Makefile: Remove and don't install nunit-docs.source. As
Atsushi Enomoto said on 2008-11-26, Mono's NUnit is for internal use
	  only, and installing nunit-docs.source causes an warning message
	  during monodoc startup.
	* docs/nunit-docs.source: Remove.

svn path=/trunk/mcs/; revision=127907
2009-02-24 22:01:18 +00:00
Marek Safar 33bb9c5223 New test.
svn path=/trunk/mcs/; revision=127899
2009-02-24 20:37:52 +00:00
Zoltan Varga dabd23ce6e 2009-02-24 Zoltan Varga <[email protected]>
* CILCompiler.cs: Partially inline calls to Char.ToLower () to speed
	up ignorecase matching.

svn path=/trunk/mcs/; revision=127898
2009-02-24 20:34:33 +00:00
Marek Safar eaa019702e 2009-02-24 Marek Safar <[email protected]>
A fix for bug #479209
	* literal.cs: Mutate null underlying type.


svn path=/trunk/mcs/; revision=127897
2009-02-24 20:23:34 +00:00
Ivan Zlatev cd52322d96 2009-02-24 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: Invalidate the datagrid when the cell is selected
	or deselected.
	[Fixes bug #479124]

svn path=/trunk/mcs/; revision=127890
2009-02-24 19:56:46 +00:00
Ankit Jain 21d69ad7a8 * xbuild/Microsoft.Common.targets (GetTargetPath): Add a path separator.
svn path=/trunk/mcs/; revision=127889
2009-02-24 19:55:12 +00:00
Ankit Jain 06937a74e5 * MSBuild.cs (Execute): Reset current directory back after every
project's execution.

svn path=/trunk/mcs/; revision=127888
2009-02-24 19:52:21 +00:00
Ankit Jain 9339d57f1d * SolutionParser.cs (ParseSolution): Report warning instead of error
for unknown global sections.

svn path=/trunk/mcs/; revision=127887
2009-02-24 19:48:11 +00:00
Ankit Jain 6a0836cf66 In class/Microsoft.Build.Utilities:
* Microsoft.Build.Utilities.dll.sources: Add ProcessService.cs,
	ProcessWrapper.cs, IAsyncOperation.cs and IProcessAsyncOperation.cs

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:

	* ProcessService.cs, IAsyncOperation.cs, IProcessAsyncOperation.cs,
	ProcessWrapper.cs: Brought in from monodevelop.
	* ToolTask.cs: Use the new ProcessService to execute the tool. Honor
	SkipTaskExecution (). Use response files, but log the contents of the
	response file instead of "@foo.rsp". Support environmentOverrides.
	(LogEventsFromTextOutput): Add null check.
	* Exec.cs (GetWorkingDirectory): Use the workingDirectory property.

svn path=/trunk/mcs/; revision=127886
2009-02-24 19:41:52 +00:00
Alan McGovern 48280f71e3 2009-02-24 Alan McGovern <[email protected]>
* System.Net/WebClient_2_1.cs: If we're getting text, ensure we
        strip out the byte order mark if it exists.


svn path=/trunk/mcs/; revision=127880
2009-02-24 18:20:22 +00:00
Marek Habersack 75a2356018 2009-02-24 Marek Habersack <[email protected]>
* BuildManager.cs: Path.Combine must not be passed null first
	parameter.

svn path=/trunk/mcs/; revision=127878
2009-02-24 18:12:35 +00:00
Marek Habersack 9d591942b7 2009-02-24 Marek Habersack <[email protected]>
* HttpException.cs: made the HttpException (int httpCode, string
	message, Exception innerException, string resourceName) internal.

svn path=/trunk/mcs/; revision=127877
2009-02-24 18:10:38 +00:00
Marek Habersack 79c365f192 2009-02-24 Marek Habersack <[email protected]>
* ResXFileRef.cs: the class must be internal when compiled as part
	of System.Web

svn path=/trunk/mcs/; revision=127875
2009-02-24 17:54:52 +00:00
Jb Evain be10bc84b0 we're passing the enum comparison tests
svn path=/trunk/mcs/; revision=127873
2009-02-24 17:13:09 +00:00
Jb Evain 6d8ee2b854 2009-02-24 Jb Evain <[email protected]>
* Expression.cs (BinaryCoreCheck): fix comparison of enums


svn path=/trunk/mcs/; revision=127871
2009-02-24 17:09:23 +00:00
Jb Evain 4e42fe9f25 new enums tests
svn path=/trunk/mcs/; revision=127869
2009-02-24 17:01:11 +00:00
Marek Safar 40e7740221 New test.
svn path=/trunk/mcs/; revision=127868
2009-02-24 16:58:37 +00:00
Marek Safar f2832f7cba 2009-02-24 Marek Safar <[email protected]>
A fix for bug #476295
	* convert.cs: Avoid wrapping implicitly convertible reference type.


svn path=/trunk/mcs/; revision=127867
2009-02-24 16:57:53 +00:00
Sebastien Pouliot 13e2f8da3f 2009-02-24 Sebastien Pouliot <[email protected]>
* SafeHandle.cs: Add default ctor in 2.1 profile (needed to compile
	new unit tests in moonlight).


svn path=/trunk/mcs/; revision=127861
2009-02-24 13:19:52 +00:00
Veerapuram Varadhan c59f2dd2ba * *Fixes #377146 - in a better way
* XmlDataReader.cs (ReadElementElement): For reference types
          that implements IXmlSerializable, call the corresponding ReadXml.
        * DataSet.cs (WriteColumnAsElement): For reference types that
          implements IXmlSerializable, call the corresponding WriteXml.

svn path=/trunk/mcs/; revision=127849
2009-02-24 09:27:32 +00:00
Atsushi Eno a93062e7b6 Ignore all failing-under-dotnet tests.
svn path=/trunk/mcs/; revision=127845
2009-02-24 07:33:41 +00:00
Veerapuram Varadhan 725f21290b * OracleException: 2.0 changes - patch submitted by
Jay Wren <[email protected]>


svn path=/trunk/mcs/; revision=127839
2009-02-24 05:18:07 +00:00
Veerapuram Varadhan 2b1c534a40 * Fixes #476523
* DbType.cs: Add DateTime2 and DateTimeOffset - 3.5 additions
        Patch by Jay Wren <[email protected]>


svn path=/trunk/mcs/; revision=127836
2009-02-24 04:58:27 +00:00
Ankit Jain bd33dcb033 Lazily load UsingTask tasks.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

	Lazily load UsingTask tasks.
	* UsingTask.cs (Evaluate): Register 'this' with task database,
	but don't load it yet. Register only if condition evaluates to true.
	Move the load logic to ..
	(Load): .. here. Register with the specified task database.
	* TaskDatabase.cs (RegisterUsingTask): Store the UsingTask instance
	in a table keyed by task name, but don't load it yet.
	(GetTypeFromClassName): Try to load UsingTask if task is not already
	loaded. Move loading logic to ..
	(GetTypeFromClassNameInternal): .. here.
	(CopyTasks): Copy the usingTasks table also.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* UsingTaskTest.cs (TestLazyLoad{1,2,3}): New.
	(TestAssemblyNameOrAssemblyFileConditionFalse): New.
	(TestDuplicate1): New.
	* TargetTest (CheckLoggedMessageHead): Moved to TestMessageLogger,
	use that.

In class/Microsoft.Build.Engine/Test/resources:

	* TestTasks.cs (Another.SameTask): New.
	(Other.SameTask): New.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* TestMessageLogger.cs (CheckLoggedMessageHead): Move here from
	* TaskBatchingTest.cs: .. here. Track api change.

svn path=/trunk/mcs/; revision=127830
2009-02-24 00:12:25 +00:00
Marek Safar 9c04d84ab9 2009-02-23 Marek Safar <[email protected]>
* iterators.cs: Create global MemberName correctly.


svn path=/trunk/mcs/; revision=127822
2009-02-23 22:56:04 +00:00
Marek Safar d93ce80221 2009-02-23 Marek Safar <[email protected]>
* Enumerable.cs (IterateNullable): Compare unwrapped values.


svn path=/trunk/mcs/; revision=127820
2009-02-23 22:34:17 +00:00
Carlos Alberto Cortez d7e9cfe1b8 2009-02-23 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
	actually inversed, so put it the right way. Also, don't automatically
	look for the next editable item after adding a new one, but way for
	the next insertion (this is what .net does) - this is not needed when
	MaskedTextProvider.InsertAt is called however, since it already looks for the
	next editable position.
	Fixes the remaining bits of #477383.


svn path=/trunk/mcs/; revision=127819
2009-02-23 22:29:50 +00:00
Zoltan Varga 9d5b786e3c 2009-02-23 Zoltan Varga <[email protected]>
* os_dep.c (GC_init_linux_data_start): Avoid the call to GC_find_limit ()
	if GC_no_dls is TRUE, as it is not needed and it complicates debugging since
	it causes a SIGSEGV.

svn path=/trunk/mono/; revision=127807
2009-02-23 21:26:49 +00:00
Zoltan Varga 3980eb0b28 2009-02-23 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Replace the
	nop code by patching the call address to point to the nullified class init
	trampoline, as the former does not seem to be safe on SMP machines.

svn path=/trunk/mono/; revision=127806
2009-02-23 21:19:23 +00:00
Carlos Alberto Cortez ff0cff6d39 2009-02-23 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: In OnKeyPress handle backspace by calling
	MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
	property after the text was modified, adjust the testPosition value
	depending on what method was called.
	Fixes part of #477383.


svn path=/trunk/mcs/; revision=127798
2009-02-23 20:19:01 +00:00
Jb Evain d45c953776 2009-02-23 Jb Evain <[email protected]>
* XAttributeTest.cs: add test for XAttribute holding DateTimes.


svn path=/trunk/mcs/; revision=127785
2009-02-23 19:18:29 +00:00
Jb Evain 442edd369f 2009-02-23 Jb Evain <[email protected]>
* XUtil.cs (ToString): properly stringify datetimes.


svn path=/trunk/mcs/; revision=127784
2009-02-23 19:17:31 +00:00
Mark Probst 6dab63a346 2009-02-23 Mark Probst <[email protected]>
* mini-ops.h: Fix the argument types for a few x86 opcodes where
	they were wrong.

svn path=/trunk/mono/; revision=127781
2009-02-23 18:51:11 +00:00
Jb Evain 4bbb23f446 we pass those
svn path=/trunk/mcs/; revision=127773
2009-02-23 18:13:22 +00:00
Jb Evain 5333294da5 2009-02-23 Jb Evain <[email protected]>
* Enumerable.cs (IterateNullable): fix initial value
	for nullables.


svn path=/trunk/mcs/; revision=127772
2009-02-23 18:12:55 +00:00
Marek Safar aa5fd91f64 2009-02-23 Marek Safar <[email protected]>
* iterators.cs: Create MemberName correctly.


svn path=/trunk/mcs/; revision=127771
2009-02-23 17:51:58 +00:00
Jb Evain 5c1e8b92e8 more tests
svn path=/trunk/mcs/; revision=127758
2009-02-23 17:20:53 +00:00
Jb Evain 958164e595 new tests
svn path=/trunk/mcs/; revision=127757
2009-02-23 17:16:54 +00:00
Jb Evain efa6f2cba0 we pass those
svn path=/trunk/mcs/; revision=127755
2009-02-23 17:03:44 +00:00
Jb Evain 2313558b90 2009-02-23 Jb Evain <[email protected]>
* Expression.cs (IsNumber): actually decimal is rather a special
	case, and not a primitive number.


svn path=/trunk/mcs/; revision=127754
2009-02-23 17:03:21 +00:00
Jb Evain 5f9f097f58 tests for unary operations on decimal
svn path=/trunk/mcs/; revision=127752
2009-02-23 16:54:10 +00:00
Jb Evain dcbf5dbbd0 passing those
svn path=/trunk/mcs/; revision=127751
2009-02-23 16:45:35 +00:00
Marek Safar bf3459f4e2 New test.
svn path=/trunk/mcs/; revision=127750
2009-02-23 16:45:12 +00:00
Marek Safar 1c83f07deb New test.
svn path=/trunk/mcs/; revision=127749
2009-02-23 16:44:53 +00:00
Marek Safar 4e64b2fc24 2009-02-23 Marek Safar <[email protected]>
A fix for bug #478655
	* literal.cs: Check also underlying null type conversion.


svn path=/trunk/mcs/; revision=127747
2009-02-23 16:44:10 +00:00
Jb Evain 59e1ea03d7 2009-02-23 Jb Evain <[email protected]>
* Expression.cs (BinaryCoreCheck): add decimal operations
	are provided by custom operators.


svn path=/trunk/mcs/; revision=127746
2009-02-23 16:41:59 +00:00
Jb Evain 15f6cdc6cc add new tests for decimal add
svn path=/trunk/mcs/; revision=127745
2009-02-23 16:39:18 +00:00
Jonathan Pryor 2641c29114 Oops; mention correct bugzilla numbers.
svn path=/trunk/mcs/; revision=127741
2009-02-23 14:44:43 +00:00
Alan McGovern 10831124e7 2009-02-23 Alan McGovern <[email protected]>
* XmlTextReader.cs: Under the SL2 profile, the default resolver
        is a XmlXapResolver.


svn path=/trunk/mcs/; revision=127740
2009-02-23 14:33:20 +00:00
Zoltan Varga 49b0d8cc25 2009-02-23 Zoltan Varga <[email protected]>
* basic-float.cs basic-calls.cs: Fix warnings.

svn path=/trunk/mono/; revision=127736
2009-02-23 13:48:09 +00:00
Ankit Jain b69aa6001a In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* BuildItem.cs (AddMetadata): Allow overwriting older values.

In class/Microsoft.Build.Engine/Test/various:

	* Items.cs (TestItemsInTarget8): New.
	(TestItemsInTarget9): New.

svn path=/trunk/mcs/; revision=127727
2009-02-23 11:06:52 +00:00
Atsushi Eno 822b2e868a 2009-02-23 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadContentAsXxx() should not advance XmlReader
          when it is on attribute *value* text.


svn path=/trunk/mcs/; revision=127725
2009-02-23 10:56:37 +00:00
Carlos Alberto Cortez 161d8d9750 2009-02-23 Carlos Alberto Cortez <[email protected]>
* ListView.cs: For EnsureVisible, adjust the view port bounds based on
	the existence of the column headers, as well as using this information
	to adjust the vscrollbar value, so items never get hidden by the
	column headers.
	Fixes #478498.


svn path=/trunk/mcs/; revision=127720
2009-02-23 10:03:42 +00:00
Ivan Zlatev 622d6cc55d 2009-02-23 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Make the ScrollBars property work properly.

svn path=/trunk/mcs/; revision=127716
2009-02-23 09:34:51 +00:00
Atsushi Eno cacbce3947 2009-02-23 Atsushi Enomoto <[email protected]>
* xmltool.cs : Enabled new error recovery feature in RELAX NG
	  validation. It should continue error reporting until the end of
	  the document.


svn path=/trunk/mcs/; revision=127704
2009-02-23 07:02:52 +00:00
Atsushi Eno 044a553c75 2009-02-23 Atsushi Enomoto <[email protected]>
* RelaxngValidatingReader.cs : implemented error recovery feature.
	  Use InvalidNodeFound event (of type RelaxngValidationEventHandler)
	  to handle validation error like ValidationEventHandler in
	  System.Xml.XmlSchema.

	* RdpPattern.cs : added "Anything" which is used in error recovery
	  support.

	* relaxngtest.cs : added --skip-error option to test error recovery.


svn path=/trunk/mcs/; revision=127703
2009-02-23 07:01:05 +00:00
Gonzalo Paniagua Javier 7aeb0747ee 2009-02-23 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: append the QueryString in DownloadData.
	Fixes bug #323788.


svn path=/trunk/mcs/; revision=127699
2009-02-23 05:10:10 +00:00
Zoltan Varga 49a23c5e0d 2009-02-23 Zoltan Varga <[email protected]>
* reflection.c (encode_locals): Add checks for user types.
	(method_encode_clauses): Ditto.
	(method_encode_code): Ditto.
	(mono_image_create_token): Ditto.

	* object-internals.h: Change the type of more fields from MonoReflectionType*
	to MonoObject*.

svn path=/trunk/mono/; revision=127683
2009-02-23 00:40:51 +00:00
Zoltan Varga b708b3a728 2009-02-23 Zoltan Varga <[email protected]>
* TypeBuilderTest.cs: Add more tests for user types.

svn path=/trunk/mcs/; revision=127682
2009-02-23 00:38:55 +00:00
Zoltan Varga e281a9eece 2009-02-23 Zoltan Varga <[email protected]>
* ILGenerator.cs SignatureHelper.cs: Add checks for user types.

svn path=/trunk/mcs/; revision=127681
2009-02-23 00:37:34 +00:00
Zoltan Varga 95733da79a 2009-02-23 Zoltan Varga <[email protected]>
* Type.cs: Add IsUserType internal property.

svn path=/trunk/mcs/; revision=127680
2009-02-23 00:36:13 +00:00
Gonzalo Paniagua Javier 2406e58b8f 2009-02-22 Gonzalo Paniagua Javier <[email protected]>
* HttpServerUtility.cs: allow Transfer to static files too.


svn path=/trunk/mcs/; revision=127677
2009-02-23 00:22:31 +00:00
Mark Probst a207bdafb9 2009-02-22 Mark Probst <[email protected]>
* tramp-ppc.c (mono_arch_create_trampoline_code): Store the
	correct frame pointer in the LMF.  Should fix #478394.

svn path=/trunk/mono/; revision=127665
2009-02-22 20:49:26 +00:00
Robert Jordan 7556ed5bd3 2009-02-22 Robert Jordan <[email protected]>
* sockets.c: implement WSASend/WSARecv using sendmsg/recvmsg.
	Fixes #470021.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=127664
2009-02-22 19:35:50 +00:00
Zoltan Varga 85c906daad 2009-02-22 Zoltan Varga <[email protected]>
* threads.c (mono_thread_suspend_all_other_threads): Handle the case when
	the a thread does not suspend within 100ms.

	* monitor.c (mono_monitor_try_enter_internal): Handle SuspendRequested
	in addition to StopRequested as well.

svn path=/trunk/mono/; revision=127661
2009-02-22 17:43:43 +00:00
Zoltan Varga 4b5f78f745 2009-02-22 Zoltan Varga <[email protected]>
* mono-debug.c: Call _mono_debug_get_image () while holding the debug lock.

	* debug-mono-symfile.c (mono_debug_symfile_lookup_method): Actually
	search the method_hash before inserting a new entry, to avoid crashes when
	the same method is inserted multiple times, causing the old 
	MonoDebugMethodInfo structure to be freed by the value dtor function.

svn path=/trunk/mono/; revision=127660
2009-02-22 17:41:58 +00:00
Carlos Alberto Cortez 5118fb4ed2 2009-02-22 Carlos Alberto Cortez <[email protected]>
* TextBox.cs: Some code lifting for AutoComplete's support. First,
	when handling non-navigation keys, save the original Text typed by the
	user, and don't motify it BEFORE. This was a design mistake, since the
	re-assignation happens only when navigating the append/suggest list,
	not while creating the matches. Also, process the Delete key just like 
	the backspace one. Finally, when handling WM_CHAR, ignore both Escape
	and Enter keys.
	Fixes some missing bits of #469967.


svn path=/trunk/mcs/; revision=127657
2009-02-22 13:17:44 +00:00
Gonzalo Paniagua Javier 030f2a6af5 2009-02-22 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: support SO_MAXCONN, SO_USELOOPBACK and
	SO_EXLUSIVEADDRUSE where available.


svn path=/trunk/mono/; revision=127650
2009-02-22 06:42:46 +00:00
Gonzalo Paniagua Javier 411a7bbabf fix
svn path=/trunk/mcs/; revision=127645
2009-02-22 03:07:47 +00:00
Zoltan Varga cb87e8de1f 2009-02-22 Zoltan Varga <[email protected]>
* Makefile.am (fullaotcheck): Copy Mono.Simd.dll as well.

	* image-writer.c: Make the binary writer less verbose.

svn path=/trunk/mono/; revision=127644
2009-02-22 00:55:34 +00:00
Ivan Zlatev be63adb6ca 2009-02-22 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix row removal in the data-bound scenario.

svn path=/trunk/mcs/; revision=127642
2009-02-22 00:51:28 +00:00
Gonzalo Paniagua Javier f65e2cc9cc 2009-02-21 Gonzalo Paniagua Javier <[email protected]>
* FtpWebResponse.cs: return a Null stream when there's no response to
	be read.
	* FtpWebRequest.cs: provide the error returned by the server in the
	exception.
	* WebClient.cs: set the correct method when doing a FTP upload.
	Fixes bug #478451.


svn path=/trunk/mcs/; revision=127640
2009-02-21 23:30:00 +00:00
Zoltan Varga e057403c80 2009-02-21 Zoltan Varga <[email protected]>
* invoke.cs: Add a test.

svn path=/trunk/mono/; revision=127639
2009-02-21 21:31:56 +00:00
Zoltan Varga 92102896ab 2009-02-21 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Fix _another_ bug sharing
	runtime invoke wrappers, this time it is string ctor wrappers, which
	pass a dummy string as 'this' instead of their obj argument. Fixes
	#478473.

svn path=/trunk/mono/; revision=127637
2009-02-21 21:26:13 +00:00
Zoltan Varga b463ee7bb7 2009-02-21 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Don't assert if string ctors
	are called from runtime invoke wrappers.

svn path=/trunk/mono/; revision=127635
2009-02-21 21:22:25 +00:00
Ankit Jain 76c745d493 * BuildItem.cs: Iterate over XmlElements childnodes with XmlNode
instead of XmlElement. Eg. XmlComment

svn path=/trunk/mcs/; revision=127634
2009-02-21 20:59:40 +00:00
Jb Evain 3d25e5f863 2009-02-21 Jb Evain <[email protected]>
* icall.c (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
	only get create_culture once.


svn path=/trunk/mono/; revision=127633
2009-02-21 17:10:44 +00:00
Jb Evain 8a37d27e93 in System.Reflection:
2008-02-21  Jb Evain  <[email protected]>

	* Module.cs: add a new virtual GetModuleVersionId method,
	and make the properties .MvId and ModuleVersionId call it.
	This way, we can override it in ModuleBuilder.
	Part of the fix for #471302.

in System.Reflection.Emit:
2008-02-21  Jb Evain  <[email protected]>

	* ModuleBuilder.cs: override GetModuleVersionId
	so that we can get the module guid from Module.ModuleVersionId.
	Part of the fix for #471302.

svn path=/trunk/mcs/; revision=127631
2009-02-21 16:17:01 +00:00
Jb Evain a6546f45d2 2009-02-21 Jb Evain <[email protected]>
* ModuleBuilderTest.cs: add a test accessing the property
	Module.ModuleVersionId on a dynamic module.
	Test for #471302.


svn path=/trunk/mcs/; revision=127630
2009-02-21 16:16:33 +00:00
Jb Evain a20c6446ac 2009-02-21 Jb Evain <[email protected]>
* MonoType.cs (InvokeMember): don't pass a null args to
	Binder.BindToMethod. Fix for #471275.


svn path=/trunk/mcs/; revision=127628
2009-02-21 15:31:27 +00:00
Jb Evain 178a9e40bf 2009-02-21 Jb Evain <[email protected]>
* BinderTests.cs: add test for bug #471257, where Type.InvokeMember
	calls Binder.BindToMethod will a null args.


svn path=/trunk/mcs/; revision=127627
2009-02-21 15:30:22 +00:00
Ankit Jain 8c8dd7942b Fix bug #458916.
In class/Microsoft.Build.Tasks:

	* Microsoft.Build.Tasks_test.dll.sources: Added CopyTest.cs

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
	Fix bug #458916.
	* Copy.cs: CopiedFiles and DestinationFiles should have target paths
	instead of source. Also, the metadata should get retained from source
	items. Based on a patch by Jeffrey Richardson <[email protected]>
	Refactor a bit to remove code duplication.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* CopyTest.cs: New.

svn path=/trunk/mcs/; revision=127626
2009-02-21 13:07:52 +00:00
Marek Safar 4cd940e8e8 2009-02-21 Marek Safar <[email protected]>
* generic.cs, ecore.cs, class.cs: Removed redundant AsAccessible.


svn path=/trunk/mcs/; revision=127623
2009-02-21 10:19:13 +00:00
Ankit Jain ad948cbc16 * xbuild/xbuild.rsp: Add descriptive comments.
svn path=/trunk/mcs/; revision=127622
2009-02-21 09:41:57 +00:00
Ankit Jain 598009af19 * Parameters.cs (LoadResponseFile): Handle comments.
svn path=/trunk/mcs/; revision=127621
2009-02-21 09:41:39 +00:00
Kornél Pál 2605f4d149 EventHandlerList.cs: Fix profile 1.x build by not using HandlerEntry.
svn path=/trunk/mcs/; revision=127620
2009-02-21 09:02:54 +00:00
Ankit Jain cae15efef0 * MSBuild.cs (SplitPropertiesToDictionary): Split into exactly 2 parts.
svn path=/trunk/mcs/; revision=127619
2009-02-21 08:38:08 +00:00
Gonzalo Paniagua Javier b766293142 oops
svn path=/trunk/mcs/; revision=127617
2009-02-21 07:34:55 +00:00
Gonzalo Paniagua Javier 7ba0269b25 2009-02-21 Gonzalo Paniagua Javier <[email protected]>
* EventHandlerList.cs: there's no need for HandlerEntry here.
	Just store the delegate.


svn path=/trunk/mcs/; revision=127615
2009-02-21 07:32:46 +00:00
Gonzalo Paniagua Javier 74e4056995 2009-02-20 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs: implement the other ReadStringResource method.
	Patch from Kornel Pal.


svn path=/trunk/mcs/; revision=127596
2009-02-20 23:34:12 +00:00
Gonzalo Paniagua Javier f92e528abb fix the 1.x build
svn path=/trunk/mcs/; revision=127588
2009-02-20 22:56:52 +00:00
Rodrigo Kumpera 3fb274ec52 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* cpu-x86.md: Fix the sizes for long_conv_to_r_un and long_conv_to_r_un_2.

	* mini-x86.c (mono_arch_output_basic_block): Use only 64bits of precision for
	OP_LCONV_TO_R_UN.

	Last fix for of #467201.

svn path=/trunk/mono/; revision=127585
2009-02-20 22:50:45 +00:00
Ankit Jain fc2da77314 * Import.cs (GetFullPath): Use Utilities.FromMSBuildPath .
svn path=/trunk/mcs/; revision=127583
2009-02-20 21:40:37 +00:00
Zoltan Varga fece67382a 2009-02-20 Zoltan Varga <[email protected]>
* TypeBuilderTest.cs: Add minimal tests for user types + Ref.Emit.

svn path=/trunk/mcs/; revision=127582
2009-02-20 21:39:28 +00:00
Gonzalo Paniagua Javier 38d6841577 2009-02-20 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpWriter.cs: new Response property and WriteUTF8Ptr
	method.
	* System.Web/HttpResponseStream.cs: added support for writing from an
	IntPtr. copied the memcpy method from String.cs.

	* System.Web.Compilation/BuildManager.cs: updated comment.

	* System.Web.UI/ResourceBasedLiteralControl.cs: new Control. It's just
	like a LiteralControl but will render itself from the bytes pointed to
	by an IntPtr and not create any string from the underlying data unless
	needed.

	* System.Web.UI/TemplateControl.cs: implemented a bunch of methods
	that are used from the precompiled assemblies for a web project. The
	most notable change needed is to be able to read a win32 resource from
	the dll of the control. The resource is a concatenation of literals
	with plain text for the control and a specialized LiteralControl is
	generated from different chunks of the resource.

	* System.Web.UI/HtmlTextWriter.cs: new method that returns the
	HttpWriter in use.

	* System.Web.dll.sources: added new file.

	* System.Web.Util/ICalls.cs: new internal call to get a pointer to the
	win32 resource associated with the control's assembly.


svn path=/trunk/mcs/; revision=127579
2009-02-20 21:30:58 +00:00
Zoltan Varga 1c6b803315 2009-02-20 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_setup_internal_class): Move the user type
	check before the locking.

svn path=/trunk/mono/; revision=127578
2009-02-20 21:22:58 +00:00
Zoltan Varga f32f60d153 2009-02-20 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_setup_internal_class): Check for user types.
	(mono_reflection_create_runtime_class): Ditto.
	(mono_reflection_sighelper_get_signature_local): Ditto.
	(mono_reflection_sighelper_get_signature_field): Ditto.

	* object-internals.h (CHECK_MONOTYPE): New macro to check that a Type object
	is a System.MonoType object or similar.
	(monotype_cast): New helper function to cast a MonoObject to a 
	MonoReflectionType object.

	* object-internals.h: Change MonoReflectionType* members in structures to
	MonoObject* members to force the usage of the monotype_cast () function.

	* reflection.c icall.c: Use monotype_cast () for accessing Type members of
	structures/arrays. This causes us to assert instead of crashing when 
	instances of user defined subclasses of System.Type are encountered.

svn path=/trunk/mono/; revision=127576
2009-02-20 21:12:10 +00:00
Gonzalo Paniagua Javier b6db4349e5 2009-02-20 Gonzalo Paniagua Javier <[email protected]>
* cil-coff.h:
	* icall-def.h:
	* icall.c: add new GetUnmanagedResourcePtr that returns a pointer to a
	win32 resource loaded from a PE file.

	* image.c: fix mono_image_lookup_resource.


svn path=/trunk/mono/; revision=127574
2009-02-20 21:05:43 +00:00
Gonzalo Paniagua Javier 9ae3029aa0 ChangeLog
svn path=/trunk/mcs/; revision=127569
2009-02-20 20:34:51 +00:00
Zoltan Varga 6c89c1a8c3 2009-02-20 Zoltan Varga <[email protected]>
* cpu-ppc.md (store_memindex): Increase the size of this.

svn path=/trunk/mono/; revision=127566
2009-02-20 20:28:26 +00:00
Gonzalo Paniagua Javier 82d585aa40 2009-02-20 Gonzalo Paniagua Javier <[email protected]>
* WaitHandle.cs: implemented SignalAndWait.

svn path=/trunk/mcs/; revision=127565
2009-02-20 20:24:37 +00:00
Gonzalo Paniagua Javier 5a465d9035 ChangeLogs for previos commit.
svn path=/trunk/mono/; revision=127564
2009-02-20 20:21:47 +00:00
Gonzalo Paniagua Javier 0cb61e9935 Implement WaitHandle.SignalAndWait
Fixes bug #461123.

svn path=/trunk/mono/; revision=127563
2009-02-20 20:17:09 +00:00
Rodrigo Kumpera 6a6f8376cd 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* cpu-x86.md: Fix the sizes for fcall(_reg,_membase), long_conv_to_r4_2
	and long_conv_to_r8_2:

	Fixed part of #467201.

svn path=/trunk/mono/; revision=127562
2009-02-20 19:52:51 +00:00
Rodrigo Kumpera c6db475784 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* cpu-x86.md: Fix the sizes for fcall(_reg,_membase), long_conv_to_r4_2
	and long_conv_to_r8_2:

svn path=/trunk/mono/; revision=127561
2009-02-20 19:52:42 +00:00
Rodrigo Kumpera eebf98b143 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* mini-x86.c (mono_arch_output_basic_block): Adjust precision of int to float
	conversion to 32 bits.

	* cpu-x86.md: Increase the size of int_conv_to_r4.

	* basic-float.cs: Add a test for this.

	Fixed part of #467201.

svn path=/trunk/mono/; revision=127560
2009-02-20 19:52:35 +00:00
Rodrigo Kumpera 9d1ab907c2 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* mini-x86.c (emono_arch_output_basic_block): Adjust precision of long to double
	conversion to 64 bits.

	* basic-float.cs: Add a test for this.

	Fixed part of #467201.

svn path=/trunk/mono/; revision=127559
2009-02-20 19:52:28 +00:00
Rodrigo Kumpera 98ad90b411 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* mini-x86.c (emit_move_return_value): Don't reduce precision of functions returning float.
	This behavior is compatible with MS.

	* iltest.il.in: Add a test for this.

	Fixed part of #467201.

svn path=/trunk/mono/; revision=127558
2009-02-20 19:52:18 +00:00
Rodrigo Kumpera 05d73b3e9a 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* mini-x86.c (mono_arch_output_basic_block): Implement OP_FCONV_TO_R4, it must
	change the precision of the value.

	* cpu-x86.md: Define len for float_conv_to_r4.

	* basic-float.cs: Add a test for this.

	Fixed part of #467201.

svn path=/trunk/mono/; revision=127557
2009-02-20 19:52:11 +00:00
Ankit Jain c1c3c8a4b7 * Utilities.cs (FromMSBuildPath): Copy from monodevelop.
* Project.cs (Load): Use FromMSBuildPath on the path.
(InitializeProperties): Set "MSBuildToolsPath" also.

svn path=/trunk/mcs/; revision=127553
2009-02-20 19:36:43 +00:00
Ankit Jain ef5c9e34e3 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* ConditionTokenizer.cs: Handle unquoted item references (with or w/o
	transforms) in conditions.
	* ConditionParser.cs: Parse unquoted item, property references.
	eg. Condition = " @(Foo->'%(Extension)') == '.exe' "
	* Token.cs (Token.ToString): Override.
	(TokenType.Transform): Uncomment.

In class/Microsoft.Build.Engine/Test/various:

	* Conditions.cs (TestCondition11): New. Test unquoted item/property
	references in conditions.

svn path=/trunk/mcs/; revision=127549
2009-02-20 18:46:15 +00:00
Gonzalo Paniagua Javier 03f3b382df remove warning. Either image or mp are not NULL
svn path=/trunk/mono/; revision=127545
2009-02-20 16:48:29 +00:00
Veerapuram Varadhan 5ada033601 Added test for 419224.
svn path=/trunk/mcs/; revision=127544
2009-02-20 15:48:25 +00:00
Marek Safar cab444a341 Fixed broken test.
svn path=/trunk/mcs/; revision=127542
2009-02-20 15:45:20 +00:00
Miguel de Icaza df90b5f6d5 Add debugging back
svn path=/trunk/mcs/; revision=127540
2009-02-20 15:30:15 +00:00
Jonathan Pryor 308ad22ae9 * Mono.Unix/UnixSignal.cs: Add a pipecnt member to
UnixSignal.SignalIinfo.  Patch thanks to [email protected].
	* Test/Mono.Unix/UnixSignalTest.cs: Add tests to check for concurrent
	  UnixSignal.WaitOne() invocations.  Tests thanks to 
	  [email protected].

svn path=/trunk/mcs/; revision=127539
2009-02-20 15:15:43 +00:00
Jonathan Pryor 57b521e048 * map.h: Flush (adds Mono_Unix_UnixSignal_SignalInfo::pipecnt, removes
functions no longer declared within Mono.Posix.dll).
	* signal.c: Allow Mono_Unix_UnixSignal_WaitAny() to be called 
	  concurrently from multiple threads w/o blocking each thread;
	  previously, calls to Mono_Unix_UnixSignal_WaitAny() would block
	  until the previous call completed.  This required restructuring
	  Mono_Unix_UnixSignal_SignalInfo to hold a ref-counted
	  read_fd/write_fd pair (instead of allocating & releasing within
	  _WaitAny()) so that the pipes could be "shared" between threads.
	  Patch thanks to [email protected].

svn path=/trunk/mono/; revision=127538
2009-02-20 15:15:05 +00:00
Atsushi Eno bd43e0658a 2009-02-20 Atsushi Enomoto <[email protected]>
* ChannelFactory_1.cs : it's not going to create ClientRuntime
	  anymore here. Moving to ServiceEndpoint.cs as the first stage.
	* ClientBase.cs : some comment.

	* ServiceEndpoint.cs : moved CreateRuntime() from ChannelFactory<T>.


svn path=/trunk/mcs/; revision=127531
2009-02-20 11:48:21 +00:00
Veerapuram Varadhan c55231b62e * OdbcDataReader.cs (GetValue): Handle null image data. Fixes
##419224. Patch by John Mortlock <[email protected]>.


svn path=/trunk/mcs/; revision=127530
2009-02-20 11:40:42 +00:00
Marek Safar a0bf0df57c New test.
svn path=/trunk/mcs/; revision=127529
2009-02-20 11:16:55 +00:00
Marek Safar 32a26bd42d 2009-02-20 Marek Safar <[email protected]>
A fix for bug #477447
	* statement.cs: Add reference to correct parent storey when this
	is accessible from deep children storey (more than 1 level).


svn path=/trunk/mcs/; revision=127527
2009-02-20 11:16:35 +00:00
Ankit Jain 7b7efdaac7 Fix bug #475438.
* ToolTask.cs (RealExecute): Check whether the target executable exists.
Log any execution errors.

svn path=/trunk/mcs/; revision=127526
2009-02-20 10:55:44 +00:00
Ankit Jain ed323b2cba * SolutionParser.cs (ParseSolution): Ignore solution folders.
svn path=/trunk/mcs/; revision=127524
2009-02-20 10:17:21 +00:00
Ankit Jain 64824d275f * SolutionParser.cs (ParseSolution): Ignore GlobalSection named
'NestedProjects'.

svn path=/trunk/mcs/; revision=127520
2009-02-20 09:44:01 +00:00
Ankit Jain b3a1406b71 * SolutionParser.cs (ParseProjectConfigurationPlatforms): Report missing
project guids as Warnings and not errors. Report every missing guid only
once.

svn path=/trunk/mcs/; revision=127519
2009-02-20 09:43:53 +00:00
Ankit Jain 4a5854b37f * SolutionParser.cs (projectRegex): Use '\s' to match whitespace.
svn path=/trunk/mcs/; revision=127518
2009-02-20 09:43:42 +00:00
Jonathan Chambers f592ac43c2 2009-02-19 Jonathan Chambers <[email protected]>
* Microsoft.Build.Engine.csproj: Add.
        * Microsoft.Build.Engine.Test.csproj: Update.

2009-02-19  Jonathan Chambers  <[email protected]>

        * xbuild.csproj: Add.
        * xbuild.sln: Add.


svn path=/trunk/mcs/; revision=127495
2009-02-20 02:36:28 +00:00
Veerapuram Varadhan cdb6347126 * TdsDataReader.cs: Access TdsDataColumn correctly for NET_2_0.
Fixes #466199. Patch by Tom Hindle <[email protected]>


svn path=/trunk/mcs/; revision=127494
2009-02-20 02:32:16 +00:00
Bill Holmes 12d08989d7 2009-02-19 Bill Holmes <[email protected]>
* cominterop.c : Adding cominterop_type_from_handle and 
	  registering it as an icall.  Replacing all references
	  to type_from_handle.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=127481
2009-02-19 22:48:30 +00:00
Rodrigo Kumpera ee2ef869b2 2009-02-19 Rodrigo Kumpera <[email protected]>
* LockTracerDecoder.cs: Initial version of the lock tracers decoder.

svn path=/trunk/mono/; revision=127477
2009-02-19 22:12:14 +00:00
Rodrigo Kumpera 34feb3493b 2009-02-19 Rodrigo Kumpera <[email protected]>
* Makefile.am: Add lock-tracer.h and lock-trace.c.

	* appdomain.c: Call the tracer init function.

 	* domain-internals.h: Enable the tracer for the domain locks.

	* image.c: Enable the tracer for image locks.

	* loader.c: Enable the trace for the loader lock.

	* lock-tracer.h:
	* lock-tracer.c: Initial implementation of the lock trace utility.
	The tracer requires a compile time define to be enabled and a env var
	to be enabled at runtime.

svn path=/trunk/mono/; revision=127476
2009-02-19 22:12:03 +00:00
Rodrigo Kumpera bd6746f227 2009-02-19 Rodrigo Kumpera <[email protected]>
* domain.c (mono_domain_code_foreach): Improve documentation.

svn path=/trunk/mono/; revision=127475
2009-02-19 22:11:54 +00:00
Marek Habersack bc8c63d95d 2009-02-19 Marek Habersack <[email protected]>
* ApplicationHost.cs: added support for the
	__MONO_DOMAIN_ID_SUFFIX environment variable, used by mod_mono.

svn path=/trunk/mcs/; revision=127465
2009-02-19 21:16:49 +00:00
Gonzalo Paniagua Javier 28de9fdb5c 2009-02-19 Gonzalo Paniagua Javier <[email protected]>
* src/gstr.c: use memset in g_strnfill.


svn path=/trunk/mono/; revision=127457
2009-02-19 20:35:20 +00:00
Jb Evain 37ff2d537c 2009-02-19 Jb Evain <[email protected]>
* Mono.Tuner/InjectSecurityAttributes.cs: also remove existing
	CAS security declarations before injecting CoreCLR security attributes.


svn path=/trunk/mcs/; revision=127453
2009-02-19 20:17:53 +00:00
Ivan Zlatev 350b48be5f 2009-02-19 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: Use strict equality comparison in order to
	prevent superfluous CellValueChanged events.

svn path=/trunk/mcs/; revision=127450
2009-02-19 20:14:15 +00:00
Gonzalo Paniagua Javier c0bc4cf75d 2009-02-19 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: avoid errors when creating a temporary Uri to get
	the local path.
	* WebClient.cs: when setting up the request for downloading, use the
	default method. Fixes bug #477611.


svn path=/trunk/mcs/; revision=127449
2009-02-19 20:13:58 +00:00
Rodrigo Kumpera d9e84fc8f8 2009-02-19 Rodrigo Kumpera <[email protected]>
* SecurityManager.cs: Make core-clr work under non 2.1 profiles.

svn path=/trunk/mcs/; revision=127442
2009-02-19 19:18:56 +00:00
Sebastien Pouliot e6d4c99bd4 2008-02-19 Sebastien Pouliot <[email protected]>
* detect-sc.cs, detect-ssc.cs: Accept multiple input directories
	to find the platform assemblies (and deal with the current /mcs
	and /moon locations).
	* Makefile.am: Detect platform assemblies in {x}/mcs and {x}/moon


svn path=/trunk/mcs/; revision=127439
2009-02-19 18:53:32 +00:00
Sebastien Pouliot 02be919227 2009-02-19 Sebastien Pouliot <[email protected]>
* System.Windows[.Browser].auto.[sc|scc]: New data files
	* mscorlib.auto.ssc, System.Net.auto.ssc: Updated since adding
	the first auto.sc generation cause new auto.ssc to be found.


svn path=/trunk/mcs/; revision=127438
2009-02-19 18:52:46 +00:00
Ivan Zlatev 500d92331b 2009-02-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Do not reset the columns when the data list changes,
	but only the rows. Fixes multiple bugs related to sorting, custom
	column styles being reset and more.

svn path=/trunk/mcs/; revision=127434
2009-02-19 18:23:01 +00:00
Bill Holmes d0490ac145 2009-01-19 Bill Holmes <[email protected]>
* src/gstr.c (g_strnfill):  Fixing a warning for MSVC.

	Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=127431
2009-02-19 18:13:05 +00:00
Rodrigo Kumpera 9044a0c2e4 2009-02-19 Rodrigo Kumpera <[email protected]>
* mini.c: Adjust locking order to the new semantics where the loader lock
	comes first.

2009-02-19 Rodrigo Kumpera  <[email protected]>

	* appdomain.c:
	* generic-sharing.c:
	* object.c:
	* reflection.c:  Adjust locking order to the new semantics where the loader lock
	comes first.

svn path=/trunk/mono/; revision=127430
2009-02-19 18:07:54 +00:00
Rodrigo Kumpera 8bbbe2cc84 2009-02-18 Rodrigo Kumpera <[email protected]>
* aot-runtime.c:
	* mini-amd64.c:
	* mini-arm.c:
	* mini-ia64.c:
	* mini-mips.c:
	* mini-ppc.c:
	* mini-sparc.c:
	* mini-trampolines.c:
	* mini-x86.c:
	* mini.c:
	* tramp-alpha.c:
	* tramp-amd64.c:
	* tramp-arm.c:
	* tramp-hppa.c:
	* tramp-ia64.c:
	* tramp-mips.c:
	* tramp-ppc.c:
	* tramp-s390.c:
	* tramp-s390x.c:
	* tramp-sparc.c:
	* tramp-x86.c: Use mono_domain_code_* functions instead of using MonoDomain::code_mp directly.

svn path=/trunk/mono/; revision=127429
2009-02-19 18:07:39 +00:00
Rodrigo Kumpera 99ca281e7d 2009-02-18 Rodrigo Kumpera <[email protected]>
* domain.c: Add mono_domain_code_* functions that perform locking
	around the domain codeman.

	* domain-internals.h: Export those functions.

	* object.c: Use new functions instead of acquiring the domain lock.

svn path=/trunk/mono/; revision=127428
2009-02-19 18:07:29 +00:00
Jonathan Pobst f54b9cf54d 2009-02-19 Jonathan Pobst <[email protected]>
* ThemeWin32Classic.cs: Respect a PictureBox's Padding when
	drawing the image.

svn path=/trunk/mcs/; revision=127426
2009-02-19 17:13:45 +00:00
Sebastien Pouliot d1e5a195b6 2009-02-19 Sebastien Pouliot <[email protected]>
* *.auto.sc: Data files for [SecurityCritical]
	* *.auto.ssc: Data files for [SecuritySafeCritical]

svn path=/trunk/mcs/; revision=127417
2009-02-19 16:15:44 +00:00
Jonathan Pryor 249fa89097 * Test/Mono.Unix/UnixSignalTest.cs: Disable the tests that use
RealTimeSignum on OS X, as OS X doesn't support real-time signals 
	  (and thus these will always error, often for the "wrong" reason).
	* Test/Mono.Unix.Native/RealTimeSignumTest.cs: Disable the tests on 
	  Mac OS X, as OS X doesn't support real-time signals.

svn path=/trunk/mcs/; revision=127415
2009-02-19 15:49:07 +00:00
Atsushi Eno 7c03c0a1eb 2009-02-19 Atsushi Enomoto <[email protected]>
* CodeTryBlock.cs : new statement support.

        * System.ServiceModel.dll.sources,
          net_2_1_raw_System.ServiceModel.dll.sources :
          added CodeTryBlock.cs.


svn path=/trunk/mcs/; revision=127414
2009-02-19 15:03:40 +00:00
Atsushi Eno ed6222934a 2009-02-19 Atsushi Enomoto <[email protected]>
* CodeCast.cs : fix PrintCode() for no-conversion case.


svn path=/trunk/mcs/; revision=127413
2009-02-19 15:01:00 +00:00
Sebastien Pouliot ac9414d8ca update for build 2.0.40115.0
svn path=/trunk/mcs/; revision=127412
2009-02-19 14:56:48 +00:00
Marek Safar 7e6bd13a17 2009-02-19 Marek Safar <[email protected]>
* compiler-tester.cs: More verbosity needed for runtime crashes.


svn path=/trunk/mcs/; revision=127407
2009-02-19 12:59:41 +00:00
Marek Safar e401b20574 Updated with latest changes
svn path=/trunk/mcs/; revision=127404
2009-02-19 12:25:44 +00:00
Marek Safar 6a1784a252 New tests.
svn path=/trunk/mcs/; revision=127391
2009-02-19 10:42:27 +00:00
Marek Safar bf9d7767c9 2009-02-19 Marek Safar <[email protected]>
A fix for bug #475860 by David Mitchell <[email protected]>
	* class.cs: Define base type members before setting up member cache.


svn path=/trunk/mcs/; revision=127390
2009-02-19 10:41:56 +00:00
Raja R Harinath 7d03a6fe99 update known issues
svn path=/trunk/mcs/; revision=127389
2009-02-19 10:34:45 +00:00
Veerapuram Varadhan 383e3da567 * Tds.cs: Tds 8 collation support
Tds80.cs: - ditto -
          TdsComm.cs: - ditto -
          TdsDataColumn.cs: - ditto -
          TdsCollation.cs: New file. Based on patch from Dmitry S.
Kataev  <[email protected]>


svn path=/trunk/mcs/; revision=127380
2009-02-19 08:10:32 +00:00
Veerapuram Varadhan 8565f9bfe4 * OracleParameter.cs (bind): Consider OciDataType.Float and
* .Integer as OciDataType.Number.  Patch provided by Russell
        <[email protected]>


svn path=/trunk/mcs/; revision=127379
2009-02-19 07:48:41 +00:00
Geoff Norton 2ad30c4516 2009-02-19 Geoff Norton <[email protected]>
* Fix the build, these all need to loose this #if guard.

svn path=/trunk/mcs/; revision=127378
2009-02-19 07:09:22 +00:00
Gonzalo Paniagua Javier 870484665b 2009-02-19 Gonzalo Paniagua Javier <[email protected]>
* OleDbFactory.cs: New file.


svn path=/trunk/mcs/; revision=127374
2009-02-19 06:47:31 +00:00
Geoff Norton 172aac1d0a 2009-02-19 Geoff Norton <[email protected]>
* net_2_1_raw_System.Xml.dll.sources: Add a bunch of missing attributes

svn path=/trunk/mcs/; revision=127369
2009-02-19 05:46:09 +00:00
Geoff Norton 869f7efb5f 2009-02-19 Geoff Norton <[email protected]>
* SerializationSource.cs: KeyHelper is needed by
        the 2.1 profile now.

svn path=/trunk/mcs/; revision=127368
2009-02-19 05:46:05 +00:00
Geoff Norton b1c69b43b5 2009-02-19 Geoff Norton <[email protected]>
* *.cs: The tuner takes care of the visibility of this for us, and it
	is in fact needed. (Readd ReadAttributeValue to 2.1)

svn path=/trunk/mcs/; revision=127366
2009-02-19 05:15:28 +00:00
Atsushi Eno 4a2ab5827d 2009-02-19 Atsushi Enomoto <[email protected]>
* xmltool.cs : call Compile() and detect relax ng grammar error
	  so that it could detect grammar sanity when there is no instance
	  to be validated.


svn path=/trunk/mcs/; revision=127365
2009-02-19 04:37:16 +00:00
Atsushi Eno dc2fdf66fd 2009-02-19 Atsushi Enomoto <[email protected]>
* XsdDatatypeProvider.cs : detect grammar-level error in type usage
	  at compile time.


svn path=/trunk/mcs/; revision=127364
2009-02-19 04:35:23 +00:00
Gonzalo Paniagua Javier 053d02e254 2009-02-18 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs: ReadStringResource returns null now.


svn path=/trunk/mcs/; revision=127358
2009-02-19 02:43:03 +00:00
Gonzalo Paniagua Javier a6b02b8aee svn path=/trunk/mcs/; revision=127355 2009-02-18 23:53:11 +00:00
Gonzalo Paniagua Javier bbfde12266 2009-02-18 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplicationFactory.cs: check of global.asax was precompiled.
	* System.Web.UI/MasterPage.cs: the items in ContentPlaceHolders are lowercase.
	* System.Web.Compilation/TemplateControlCompiler.cs: lowercase place holder names
	* System.Web.Compilation/BuildManager.cs: initial support for
	precompilation. No 'updatable', please.



svn path=/trunk/mcs/; revision=127352
2009-02-18 23:49:33 +00:00
Marek Safar e5fe6c826d New test.
svn path=/trunk/mcs/; revision=127351
2009-02-18 23:41:06 +00:00
Marek Safar a77c9f098b 2009-02-18 Marek Safar <[email protected]>
A fix for bug #477378
	* nullable.cs, expression.cs, statement.cs: More precise null type
	sanity checks.


svn path=/trunk/mcs/; revision=127350
2009-02-18 23:40:22 +00:00
Zoltan Varga c4fc463f68 2009-02-19 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: Add a test for #477396.

svn path=/trunk/mono/; revision=127348
2009-02-18 23:12:41 +00:00
Zoltan Varga 6f8e9ec8b4 2009-02-19 Zoltan Varga <[email protected]>
* marshal.c (mono_ftnptr_to_delegate): Convert a NULL ftnptr to a null
	delegate. Fixes #477396.

svn path=/trunk/mono/; revision=127347
2009-02-18 23:12:09 +00:00
Marek Habersack f876f962ec 2009-02-19 Marek Habersack <[email protected]>
* AttributeCollection.cs: this [Type] shouldn't throw a NREX when
	attrList is null.

	* TypeDescriptor.cs: GetConverter (Type) must throw
	ArgumentNullException if the passed parameter is null.
	FindDefaultConverterType should gracefully cope with type being
	null.

2009-02-19  Marek Habersack  <[email protected]>

	* TypeDescriptorTests.cs: added a test for
	TypeDescriptor.GetConverter (null) case.

svn path=/trunk/mcs/; revision=127343
2009-02-18 23:08:26 +00:00
Marek Safar 47c99b1a7c Fixed bug number
svn path=/trunk/mcs/; revision=127342
2009-02-18 23:08:13 +00:00
Marek Safar 2c0f435fcd Fixes build.
svn path=/trunk/mcs/; revision=127340
2009-02-18 23:01:35 +00:00
Bill Holmes bf6a0f0fff 2009-02-18 Bill Holmes <[email protected]>
* mono.def : Adding mono_jit_set_trace_options

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=127338
2009-02-18 22:59:29 +00:00
Marek Habersack 9755b3bd9a 2009-02-18 Marek Habersack <[email protected]>
* UrlPattern.cs:
	Do not use the tokens array in Match.

svn path=/trunk/mcs/; revision=127334
2009-02-18 22:01:22 +00:00
Marek Habersack ebd1b1f4a0 2009-02-18 Marek Habersack <[email protected]>
* TemplateParser.cs: don't initialize PageParserFilter in
	LoadConfigDefaults, postpone it till the first time the
	PageParserFilter property is accessed.

	* ApplicationFileParser.cs, UserControlParser.cs: make sure
	VirtualPath is set in the constructors.

svn path=/trunk/mcs/; revision=127333
2009-02-18 21:32:17 +00:00
Andrés G. Aragoneses ba0d1645ad * System.Windows.Forms/ToolBarButton.cs: Oops, use the correct event
(fix r127298).

svn path=/trunk/mcs/; revision=127326
2009-02-18 20:54:42 +00:00
Jonathan Pryor b87c7e29df Add a more functional (i.e. fewer-stubs) implementation of System.Data.Linq.
svn path=/trunk/mcs/; revision=127320
2009-02-18 20:17:11 +00:00
Jonathan Pryor 296403c943 Remove System.Data.Linq stubs.
We'll be replacing these with the contents of
source/branches/atsushi-200810/mcs/class/System.Data.Linq.

svn path=/trunk/mcs/; revision=127319
2009-02-18 20:16:02 +00:00
Marek Safar 8bb6433b92 New test.
svn path=/trunk/mcs/; revision=127312
2009-02-18 19:55:59 +00:00
Marek Safar 16d086034c 2009-02-18 Marek Safar <[email protected]>
A fix for bug #472805
	* typemanager.cs, namespace.cs: Import only visible extension method
	types.


svn path=/trunk/mcs/; revision=127310
2009-02-18 19:53:30 +00:00
Jb Evain eafdc66a0a update according to latest changes
svn path=/trunk/mcs/; revision=127307
2009-02-18 18:56:36 +00:00
Jb Evain 17206977e7 2009-02-18 Jb Evain <[email protected]>
* Mono.Linker/XApiService.cs: delete, unused.
	* Mono.Linker/Driver.cs: don't use the uneeded XApiService anymore.

svn path=/trunk/mcs/; revision=127306
2009-02-18 18:53:36 +00:00
Jb Evain 1fb6419535 delete unused file
svn path=/trunk/mcs/; revision=127304
2009-02-18 18:50:39 +00:00
Jb Evain 6a784029da 2009-02-18 Jb Evain <[email protected]>
* Mono.Tuner/InjectSecurityAttributes.cs: new tuner step
	which is able to process the security attribute data files.
	It replaces the previous InjectAttributes step.


svn path=/trunk/mcs/; revision=127303
2009-02-18 18:49:53 +00:00
Marek Safar e073371906 New test.
svn path=/trunk/mcs/; revision=127300
2009-02-18 18:04:40 +00:00
Marek Safar b732cdfb10 2009-02-18 Marek Safar <[email protected]>
A fix for bug #476895
	* attribute.cs: Use correct resolve context for attribute type.


svn path=/trunk/mcs/; revision=127299
2009-02-18 18:04:02 +00:00
Marek Safar 8a93c645dd New tests.
svn path=/trunk/mcs/; revision=127293
2009-02-18 17:04:42 +00:00
Marek Safar 37e77ecdb5 2009-02-18 Marek Safar <[email protected]>
A fix for bug #476266
	* anonymous.cs: Mutate multi-dimensional arrays.


svn path=/trunk/mcs/; revision=127292
2009-02-18 17:04:20 +00:00
Marek Safar ddb4f0f3c9 New tests
svn path=/trunk/mcs/; revision=127288
2009-02-18 16:17:25 +00:00
Marek Safar 55e9f7cf70 2009-02-18 Marek Safar <[email protected]>
A fix for bug #476400
	* statemetn.cs, expression.cs: Removed wrong Dispose optimization.


svn path=/trunk/mcs/; revision=127287
2009-02-18 16:17:00 +00:00
Jb Evain f3e2affb84 2009-02-18 Jb Evain <[email protected]>
* SynchronizationContext.cs: add NET_2_1 SetThreadStaticContext
	method, even if already obsolete.


svn path=/trunk/mcs/; revision=127285
2009-02-18 16:14:26 +00:00
Zoltan Varga 521f140b62 2009-02-18 Zoltan Varga <[email protected]>
* reflection.c (create_custom_attr): Get rid of alloca.

svn path=/trunk/mono/; revision=127283
2009-02-18 15:59:32 +00:00
Bill Holmes 22b49aa271 2009-02-18 Bill Holmes <[email protected]>
* cominterop.c (cominterop_get_managed_wrapper_adjusted) :
	  Adding exception handling for all CCW calls.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=127279
2009-02-18 15:28:34 +00:00
Marek Safar 88d13d02d3 2009-02-18 Marek Safar <[email protected]>
A fix for bug #476811
	* generics.cs: Fixed null-literal check.


svn path=/trunk/mcs/; revision=127265
2009-02-18 11:32:41 +00:00
Zoltan Varga 6ea30d8789 2009-02-18 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Remove a ! from if (!dest_sreg1)
	as it is incorrect.

svn path=/trunk/mono/; revision=127260
2009-02-18 10:27:38 +00:00
Marek Habersack 56dd281254 2009-02-18 Marek Habersack <[email protected]>
* UrlPattern.cs: TrySubstitute now gets the collection of default
	values and uses it to replace url segments instead of failing when
	the passed values collection is missing a segment.

	* RouteCollection.cs: check if name is null or empty, not just
	null in GetVirtualPath

	* Route.cs: url.TrySubstitute should be passed the defaults
	collection when called from GetVirtualPath

svn path=/trunk/mcs/; revision=127259
2009-02-18 10:26:11 +00:00
Zoltan Varga 2d82333004 2009-02-18 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_init): Remove the unused reflection mutex.

svn path=/trunk/mono/; revision=127256
2009-02-18 09:32:23 +00:00
Atsushi Eno 61727cd7c2 2009-02-18 Atsushi Enomoto <[email protected]>
* Message.cs : do not forget to flush.
        * HttpRequestChannel.cs : give more exact error info.


svn path=/trunk/mcs/; revision=127251
2009-02-18 08:12:36 +00:00
Atsushi Eno 19918597cf 2009-02-18 Atsushi Enomoto <[email protected]>
* Message.cs, MessageBufferImpl.cs, XmlReaderBodyWriter.cs :
          make buffered copy in ML2 really buffered.


svn path=/trunk/mcs/; revision=127248
2009-02-18 07:22:44 +00:00
Jonathan Pryor 6a41019fcd * Test/DocTest-v1.cs: Add test for #471379.
* Mono.Documentation/exceptions.cs, Mono.Documentation/monodocer.cs:
	  Use the new Mono.Cecil .Resolve() methods instead of (erroneously)
	  duplicating their functionality with the .GetDefinition() methods.
	  ExceptionLookup.this[IMemberReference] checks for multi-dimensional
	  arrays, as MD arrays are "special" (Cecil can't resolve them, as
	  they're internal to the runtime with no specific associated IL).
	  Fixes #471379.

svn path=/trunk/mcs/; revision=127244
2009-02-18 04:30:54 +00:00
Atsushi Eno b50cb6efb4 2009-02-18 Atsushi Enomoto <[email protected]>
* Uri.cs : file URI for Windows path should also try '\' instead of
	  '/' as a host/path separator.

	* UriTest.cs : added test for windows local path with '\' (used in
	  ooxml relax ng test case).


svn path=/trunk/mcs/; revision=127237
2009-02-18 02:11:27 +00:00
Gonzalo Paniagua Javier 10badb611a 2009-02-17 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: instead of clearing the sockets form the output and then
	adding them back, we just remove the ones that have not been signaled.
	Fixes bug #354090 and bug #476138.


svn path=/trunk/mcs/; revision=127234
2009-02-18 00:35:48 +00:00
Zoltan Varga a754ce273a 2009-02-18 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_boolean): Add null checks to the new 
	native->managed marshalling code. Fixes #476247.

svn path=/trunk/mono/; revision=127232
2009-02-17 23:49:51 +00:00
Atsushi Eno a3f972be9e 2008-12-02 Atsushi Enomoto <[email protected]>
* updated to DbLinq r966.


svn path=/branches/atsushi-200810/mcs/; revision=120451
2008-12-02 02:53:50 +00:00
Atsushi Eno 987bef88b5 2008-11-25 Atsushi Enomoto <[email protected]>
* updated to DbLinq r960.


svn path=/branches/atsushi-200810/mcs/; revision=119939
2008-11-25 10:10:10 +00:00
Atsushi Eno 99e199a497 2008-11-18 Atsushi Enomoto <[email protected]>
* updated to DbLinq r947 (XmlMappingSource).


svn path=/branches/atsushi-200810/mcs/; revision=119139
2008-11-18 10:14:47 +00:00
Atsushi Eno c586247917 2008-11-12 Atsushi Enomoto <[email protected]>
* updated to DbLinq r946 (quick fix for vendor loading).


svn path=/branches/atsushi-200810/mcs/; revision=118675
2008-11-12 23:44:51 +00:00
Atsushi Eno c806452609 2008-11-12 Atsushi Enomoto <[email protected]>
* updated to DbLinq r945.
	  It is not working well wrt connectionString yet.


svn path=/branches/atsushi-200810/mcs/; revision=118662
2008-11-12 22:29:22 +00:00
Atsushi Eno a9984f1056 2008-10-24 Atsushi Enomoto <[email protected]>
* updated to DbLinq r931.


svn path=/branches/atsushi-200810/mcs/; revision=116918
2008-10-24 09:14:13 +00:00
Atsushi Eno 203e1b8ea3 2008-10-10 Atsushi Enomoto <[email protected]>
* src/DbLinq.Firebird, System.Data.Linq.dll.sources :
	  added Firebird support sources (new in DbLinq).


svn path=/branches/atsushi-200810/mcs/; revision=115419
2008-10-10 09:51:21 +00:00
Atsushi Eno cf27c37fb4 2008-10-09 Atsushi Enomoto <[email protected]>
* src/DbLinq.{Oracle|MySql|PostgreSql|Sqlite|Ingres}: new.
	* src/DbLinq : updated to DbLinq r905.
	* System.Data.Linq.dll.sources : added vendor-specific files and
	  new files in r905.


svn path=/branches/atsushi-200810/mcs/; revision=115365
2008-10-09 17:54:31 +00:00
Atsushi Eno 84a4dc433b 2008-10-08 Atsushi Enomoto <[email protected]>
* System.Data.Linq.dll.sources : fix wrong reference to EntitySet.cs.


svn path=/branches/atsushi-200810/mcs/; revision=115206
2008-10-08 13:39:20 +00:00
Atsushi Eno e0a6bf1de3 2008-10-08 Atsushi Enomoto <[email protected]>
* System.Data.Linq.dll.sources :
	  SqlServer vendor sources were missing.


svn path=/branches/atsushi-200810/mcs/; revision=115192
2008-10-08 10:23:45 +00:00
Atsushi Eno b63802b7bf 2008-10-08 Atsushi Enomoto <[email protected]>
* Expression.cs : fix WeakReference usage for such case that it
	  might GC-ed between .IsAlive check and .Target retrieval.


svn path=/branches/atsushi-200810/mcs/; revision=115191
2008-10-08 10:21:56 +00:00
Atsushi Eno ebb8404a2e second step.
svn path=/branches/atsushi-200810/mcs/; revision=115079
2008-10-07 12:03:27 +00:00
Atsushi Eno c122ff47f6 replace it in smooth way.
svn path=/branches/atsushi-200810/mcs/; revision=115078
2008-10-07 12:00:06 +00:00
Atsushi Eno 62252164fd initial import of DBLinq integration.
svn path=/branches/atsushi-200810/mcs/; revision=115077
2008-10-07 11:58:02 +00:00
Atsushi Eno 7e9c6782e0 2008-10-06 Atsushi Enomoto <[email protected]>
* XPathExpression.cs, Expression.cs : Cache compiled xpath
	  expressions so that they don't have to be parsed repeatedly.


svn path=/branches/atsushi-200810/mcs/; revision=114957
2008-10-06 15:20:12 +00:00
Atsushi Eno 29739c02e4 2008-10-06 Atsushi Enomoto <[email protected]>
* Expression.cs : unindend cases that do not match our coding style.


svn path=/branches/atsushi-200810/mcs/; revision=114940
2008-10-06 13:30:39 +00:00
Atsushi Eno 7973eae383 2008-10-06 Atsushi Enomoto <[email protected]>
* Expression.cs : fixed peer & subtree requirement and reduced extra
	  dependency on RequireSorting property.


svn path=/branches/atsushi-200810/mcs/; revision=114937
2008-10-06 13:21:49 +00:00
Atsushi Eno cc7588581a 2008-10-06 Atsushi Enomoto <[email protected]>
* Expression.cs, Iterator.cs : simplify SlashIterator by introducing
	  SortedIterator.


svn path=/branches/atsushi-200810/mcs/; revision=114935
2008-10-06 12:56:27 +00:00
Atsushi Eno 2329c03c64 2008-10-06 Atsushi Enomoto <[email protected]>
* Expression.cs, Iterator.cs : ChildIterator is not a SimpleIterator
	  now. And reduced extra clone when the context node has no child.


svn path=/branches/atsushi-200810/mcs/; revision=114931
2008-10-06 09:43:14 +00:00
Atsushi Eno 319d2e5d5a 2008-10-03 Atsushi Enomoto <[email protected]>
* Iterator.cs : now we do not seem to need clone in
	  SimpleIterator.Current.


svn path=/branches/atsushi-200810/mcs/; revision=114742
2008-10-03 10:51:48 +00:00
Atsushi Eno 8d8d887eb7 ongoing refactoring.
svn path=/branches/atsushi-200810/mcs/; revision=114735
2008-10-03 09:07:11 +00:00
Atsushi Eno 4e6654c795 couple of refactoring to make implementation more consistent.
svn path=/branches/atsushi-200810/mcs/; revision=114694
2008-10-02 18:12:43 +00:00
Atsushi Eno 936be8b98b 2008-10-02 Atsushi Enomoto <[email protected]>
* XPathNavigatorEvaluateTests.cs : corrected couple of misconception
	  in the tests.

	* XslTransformTests.cs : removed extra NotDotNet.


svn path=/branches/atsushi-200810/mcs/; revision=114689
2008-10-02 17:59:28 +00:00
Atsushi Eno 5fea92790a 2008-10-02 Atsushi Enomoto <[email protected]>
* Makefile : fixed couple of obsolete settings.


svn path=/branches/atsushi-200810/mcs/; revision=114688
2008-10-02 17:57:27 +00:00
6826 changed files with 1165326 additions and 333796 deletions

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
/Makefile
/Makefile.in
/_tmpinst
/aclocal.m4
/autom4te.cache
/config.cache
/config.guess
/config.h
/config.h.in
/config.h.in
/config.log
/config.status
/config.sub
/configure
/libtool
/ltconfig
/ltmain.sh
/mono-*.tar.gz
/*.pc
/mono.spec
/semantic.cache
/stamp-h
/stamp-h.in
/stamp-h1
/tmpinst-dir.stamp
/missing
/compile
/depcomp
/install-sh
/doltlibtool
/doltcompile
+3041
View File
File diff suppressed because it is too large. Load diff
+332
View File
@@ -1,3 +1,330 @@
2010-01-22 Zoltan Varga <[email protected]>
* configure.in: Disable the solaris tar check on !solaris platforms.
2009-12-22 Geoff Norton <[email protected]>
* configure.in: Fix invalid escaping. Patch from Spina from
www.slacky.eu.
2009-12-21 Zoltan Varga <[email protected]>
* configure.in: Add an LLVM_CFLAGS automake variable.
2009-12-11 Zoltan Varga <[email protected]>
* configure.in: Applied patch from Matt McClellan ([email protected]). Add a check
for 2 parameter sched_setaffinity in older glibc versions. Fixes
#564000.
2009-11-17 Marek Habersack <[email protected]>
* runtime/Makefile.am (TEST_SUPPORT_FILES): added bin/al2 - needed
for System.Web tests.
2009-11-17 Zoltan Varga <[email protected]>
* configure.in: Add a --enable-minimal=soft-debug option.
2009-11-12 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Handle 'i686-pc-cygwin' too.
2009-11-04 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Applied patch from Kornél Pál
<[email protected]>. Enable dolt on cygwin.
2009-11-03 Zoltan Varga <[email protected]>
* configure.in: Check for netinet/in.h.
2009-11-02 Gonzalo Paniagua Javier <[email protected]>
* configure.in: add a few missing header file checks.
2009-11-01 Zoltan Varga <[email protected]>
* configure.in: Make the LLVM warning a bit more up-to-date.
* configure.in: Pass -mno-cygwin to CXX too on windows. Enable AC_PROG_CXX
since it now works on windows too.
2009-10-12 Zoltan Varga <[email protected]>
* data/Makefile.am (gdb_DATA): Install mono-gdb.py alongside the mono executable.
* data/gdb-pre7.0: New directory, containing the mono support files for
gdb versions before 7.0.
2009-09-29 Ankit Jain <[email protected]>
* mono-core.spec.in: Add Microsoft.WebApplication.targets
2009-08-29 Jonathan Pryor <[email protected]>
* man/mdoc-export-html.1: Document --with-profile, --with-version.
2009-09-08 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Enable this for mips.
2009-08-29 Jonathan Pryor <[email protected]>
* man/mdoc.5: Document the new <format/> element.
2009-08-18 Zoltan Varga <[email protected]>
* scripts/Makefile.am: Applied patch from Hib Eris ([email protected]).
Add $(SCRIPT_SUFFIX) to the name of the 'mod' tool.
2009-08-04 Miguel de Icaza <[email protected]>
* Start the split between PLATFORM_WIN32 and TARGET_WIN32.
PLATFORM_WIN32 should be used to configure the runtime while
building it. TARGET_WIN32 is used for target execution.
This is used by Mono's AOT cross compiler when running on Windows,
but targetting a different operating system. So we have to tell
those two apart.
2009-07-24 Jb Evain <[email protected]>
* scripts/Makefile.am: generate a dmcs script for the 4.0 compiler
when building the net_4_0 profile.
2009-07-24 Jb Evain <[email protected]>
* configure.in
* runtime/Makefile.am
* data/Makefile.am: create a and populate a configuration folder
for the net_4_0 profile.
2009-07-21 Jb Evain <[email protected]>
* configure.in: add a --with-monotouch option.
* runtime/Makefile.am: use it to trigger the mcs monotouch build.
2009-07-14 Zoltan Varga <[email protected]>
* configure.in: Add more libraries needed by the llvm backend.
2009-07-02 Jb Evain <[email protected]>
* scripts/Makefile.am: monolinker is now a 2.0 assembly.
2009-07-02 jonas echterhoff <[email protected]>
* configure.in: Add linker flag on Mac OS X to allow access to other
processes, needed for debugging. Enable debugging on OS X.
2009-06-21 Zoltan Varga <[email protected]>
* configure.in (TARGET_BYTE_ORDER): New define containing the byte order of
the target.
2009-06-18 Marek Habersack <[email protected]>
* data/browscap.ini: applied Mono modifications to the upstream
version. Fixes three tests failing in System.Web. Fixes bug #513965
Added ecmascriptversion, msdomversion and w3cdomversion to the IE
8.0 entry. Fixes bug #513965
2009-06-16 Raja R Harinath <[email protected]>
* configure.in (--with-profile2): Simplify slightly.
(--with-profile4, --with-moonlight): Likewise.
2009-06-15 Miguel de Icaza <[email protected]>
* configure.in: Changed the default to not build the 4.0 profile
unless explicitly enabled.
2009-06-15 Zoltan Varga <[email protected]>
* CMakeLists.txt: Add mips support.
2009-06-14 Zoltan Varga <[email protected]>
* scripts/CMakeLists.txt: New file.
* samples/CMakeLists.txt: New file, currently empty.
2009-06-12 Andreia Gaita <[email protected]>
* data/config.in: add libcups dllmap entry
2009-06-11 Zoltan Varga <[email protected]>
* configure.in: Disable dtrace support if dtrace doesn't support the
-h option.
2009-06-10 Marek Safar <[email protected]>
* runtime/Makefile.am, configure.in: Make net_4_0 profile optional.
2009-06-07 Marek Safar <[email protected]>
* runtime/Makefile.am: Enabled net_4_0 for compilation.
2009-05-27 Zoltan Varga <[email protected]>
* configure.in: Disable USE_MUNMAP on ppc to work around #504411.
2009-05-26 Zoltan Varga <[email protected]>
* CMakeLists.txt: Implement AC_OUTPUT, creation of config.make, etc.
* CMakeLists.txt: implement arm fpu detection, add vfp detection as
well.
* CMakeLists.txt: Add arm support.
2009-05-24 Miguel de Icaza <[email protected]>
* Disable mono/docs build if we disabled the mcs build.
2009-05-24 Zoltan Varga <[email protected]>
* */CMakeLists.txt: Add beginnings of a cmake based build system.
2009-05-22 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Enable dolt on sparc linux.
2009-05-17 Zoltan Varga <[email protected]>
* configure.in: Add TARGET_POWERPC/POWERPC64 defines.
2009-05-09 Miguel de Icaza <[email protected]>
* configure.in: Instead of reporting the various disabled features
in a loop, where a keyword might fail, report the actual disabled
features in the sections that handle them
2009-05-08 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Add powerpc64.
2009-05-07 Rodrigo Kumpera <[email protected]>
* runtime/Makefile.am (mcs-compileall): Pass --security=validil
to the runtime so the assemblies are not required to be verifiable.
2009-05-06 Raja R Harinath <[email protected]>
* Makefile.am (compiler-tests): Rewrite to re-build the moon
assemblies after mcs/ is built.
* runtime/Makefile.am (build_profiles) [INSTALL_2_1]: Build only
the net_2_1_raw profile.
(test_profiles): New. Mention net_2_1 profile.
(moon-do-build): New.
2009-05-05 Miguel de Icaza <[email protected]>
* configure.in: Fix the bug reported on the mailing list by
Koushik K Dutta: do not build docs when --disable-mcs-builds is
passed.
2009-05-05 Miguel de Icaza <[email protected]>
* configure.in: Reduce configure-time dependencies by using
pkg-config the way it was originally intended to be used, and not
with the incredibly lame and painful inducing pkg.m4 file.
I am on a quest to remove this gratuitous dep on pkg.m4 that is
making people's lives miserable around the globe, just because
someone can not be bothered to learn the shell if construct.
2009-04-28 Zoltan Varga <[email protected]>
* configure.in: Add an option to disable the solaris tar check.
* configure.in: Define a TARGET_<ARCH> preprocessor symbol for some
architectures.
2009-04-23 Jb Evain <[email protected]>
* scripts/Makefile.am: add a pdb2mdb script.
2009-04-22 Jeffrey Stedfast <[email protected]>
* configure.in: Check for a stable version of glib-2.0 as opposed
to an unstable development version (we don't want people
unfamiliar with glib versioning to install an unstable development
version of glib).
2009-04-13 Zoltan Varga <[email protected]>
* configure.in: Quiet 'copying selected object files' messages from
newer libtool versions as well.
* configure.in: Disable AC_PROG_CXX for now to fix the windows build.
In mono/mini:
* Makefile.am: Comment out the cpp files as f@#%$ automake complains even
if they are inside a conditional.
2009-04-03 Zoltan Varga <[email protected]>
* scripts/patch-quiet.sh: Process LTCXXCOMPILE too.
2009-04-02 Zoltan Varga <[email protected]>
* configure.in: Move the call to AC_PROG_CXX earlier and enable it again.
* configure.in: Disable the call to AC_PROG_CXX for now.
2009-04-02 Marek Habersack <[email protected]>
* data/Makefile.am: added system.web.mvc.pc{.in}
* configure.in: added data/system.web.mvc.pc to AC_OUTPUT
* data/system.web.mvc.pc.in: added
2009-04-02 Zoltan Varga <[email protected]>
* configure.in: Add an ENABLE_LLVM autoconf define.
* configure.in: Add --enable-llvm argument to enable the experimental
LLVM back end.
2009-03-31 Jb Evain <[email protected]>
* scripts: Remove smcs, which is handled by moon now.
* data: ditto.
2009-03-20 Zoltan Varga <[email protected]>
* mono/os: Remove this now empty directory.
* mono/Makefile.am (SUBDIRS): Remove 'os'.
2009-03-16 Atsushi Enomoto <[email protected]>
* scripts/Makefile.am : mono-xmltool uses 2.0.
2009-03-12 Jonathan Pryor <[email protected]>
* scripts/Makefile.am: Add sqlmetal.
2009-03-10 Zoltan Varga <[email protected]>
* README: Remove the comment about --with-moonlight being pre-alpha.
2009-03-10 Atsushi Enomoto <[email protected]>
* scripts/Makefile.am : added svcutil.
2009-02-26 Marek Habersack <[email protected]>
* data/mono.web.pc.in: added. Fixes bug #479760
* data/Makefile.am: added mono.pc{.in} wherever necessary
2009-02-07 Gonzalo Paniagua Javier <[email protected]>
* configure.in: include stdio so that NULL is defined when checking
@@ -70,6 +397,11 @@
* scripts/Makefile.am: don't generate a script for the now
dead mono-api-diff.
2008-12-05 Jonathan Pryor <[email protected]>
* scripts/mdassembler, scripts/monodocer, scripts/monodocs2html:
Properly quote parameters as they may contain spaces.
2008-12-05 Jonathan Pryor <[email protected]>
* man/mdoc-update.1: Document -fno-assembly-versions.
+38 -5
View File
@@ -1,7 +1,7 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc docs
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
@@ -35,9 +35,7 @@ get-monolite-latest:
cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
cd $(mcslib) && mv -f monolite-* monolite
compiler-tests: mcs-do-clean
$(MAKE) all
$(MAKE) mcs-do-compiler-tests
compiler-tests: build-test-mono-mcs-moon
compiler-tests-net_2_0:
-rm -f $(mcs_topdir)/build/common/Consts.cs.save
@@ -46,7 +44,7 @@ compiler-tests-net_2_0:
cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 clean
-mv -f $(mcs_topdir)/build/common/Consts.cs.save $(mcs_topdir)/build/common/Consts.cs
$(MAKE) all
$(MAKE) build_profiles=net_2_0 mcs-do-compiler-tests
$(MAKE) test_profiles=net_2_0 mcs-do-compiler-tests
bootstrap-world: compiler-tests
$(MAKE) install
@@ -55,6 +53,18 @@ bootstrap-world-net_2_0: compiler-tests-net_2_0
$(MAKE) install
# internal targets
.PHONY: build-test-mono-mcs-moon
build-test-mono-mcs-moon: do-build-moon-maybe
$(MAKE) mcs-do-compiler-tests
.PHONY: do-build-mono-mcs
do-build-mono-mcs: mcs-do-clean
$(MAKE) all
.PHONY: do-build-moon-maybe
do-build-moon-maybe: do-build-mono-mcs
cd runtime && $(MAKE) moon-do-build
mcs-do-clean:
cd runtime && $(MAKE) clean-local
cd mono/tests && $(MAKE) clean
@@ -86,3 +96,26 @@ bootstrap: all
patch-quiet:
find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;
update-csproj:
-rm msvc/scripts/order
-mkdir msvc/scripts/inputs
(cd runtime; make V=1 extra_targets=csproj-local)
package-inputs:
echo '<?xml version="1.0" encoding="utf-8"?>' > msvc/scripts/order.xml
echo '<root>' >> msvc/scripts/order.xml
for i in `cat msvc/scripts/order`; do \
set `echo $$i | sed -e 's/:/ /' -e 's/.input//'`; \
cat msvc/scripts/inputs/$$2.input | \
(echo " <project dir=\"$$1\" library=\"$$2\">"; \
read boot; echo " <boot>$$boot</boot>"; \
read mcs; echo " <mcs>$$mcs</mcs>"; \
read flags; echo " <flags>$$flags</flags>"; \
read output; echo " <output>$$output</output>"; \
read built; echo " <built_sources>$$built</built_sources>"; \
read libou; echo " <library_output>$$libou</library_output>"; \
read resp; echo " <response>$$resp</response>"; \
echo " </project>") >> msvc/scripts/order.xml; \
done
echo "</root>" >> msvc/scripts/order.xml
+28 -6
View File
@@ -267,10 +267,12 @@ This is Mono.
This defaults to `yes'.
--with-preview=yes,no
--with-profile2=yes,no
Whether you want to build libraries that are still not
completed (The 2.0 APIs). It defaults to `yes'.
Whether you want to build the 2.x libraries (support
for Generics and the 2.0/3.5 APIS).
It defaults to `yes'.
--with-moonlight=yes,no
@@ -279,12 +281,10 @@ This is Mono.
(1.1 and 2.0 APIs).
This will produce the `smcs' compiler which will reference
the Silvelright modified assemblies (mscorlib.dll,
the Silverlight modified assemblies (mscorlib.dll,
System.dll, System.Code.dll and System.Xml.Core.dll) and turn
on the LINQ extensions for the compiler.
This option defaults to `no' and it is considered pre-alpha.
--with-libgdiplus=installed,sibling,<path>
This is used to configure where should Mono look for
@@ -324,6 +324,11 @@ This is Mono.
Disables support for the Ahead of Time
compilation.
attach:
Support for the Mono.Management assembly and the
VMAttach API (allowing code to be injected into
a target VM)
com:
Disables COM support.
@@ -333,6 +338,12 @@ This is Mono.
decimal:
Disables support for System.Decimal.
full_messages:
By default Mono comes with a full table
of messages for error codes. This feature
turns off uncommon error messages and reduces
the runtime size.
generics:
Generics support. Disabling this will not
allow Mono to run any 2.0 libraries or
@@ -355,6 +366,11 @@ This is Mono.
disabling this will drop support for any
libraries using DllImport.
portability:
Removes support for MONO_IOMAP, the environment
variables for simplifying porting applications that
are case-insensitive and that mix the Unix and Windows path separators.
profiler:
Disables support for the default profiler.
@@ -366,6 +382,11 @@ This is Mono.
assemblies (AssemblyBuilderAccess.Save) in
System.Reflection.Emit.
shadow_copy:
Disables support for AppDomain's shadow copies
(you can disable this if you do not plan on
using appdomains).
simd:
Disables support for the Mono.SIMD intrinsics
library.
@@ -501,3 +522,4 @@ This is Mono.
independent checkout) from the Mono module, that
directory is automatically configured to share the
same prefix than this module gets.
+5 -2
View File
@@ -22,10 +22,13 @@ if test x$GCC != xyes; then
dolt_supported=no
fi
case $host in
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*)
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*)
pic_options='-fPIC'
;;
?86-pc-cygwin*|i?86-pc-cygwin*)
pic_options='-DDLL_EXPORT'
;;
i?86-apple-darwin*)
pic_options='-fno-common'
;;
-64
View File
@@ -1,64 +0,0 @@
#!/bin/sh
ASPEN_ROOT=/Developer/Platforms/iPhoneOS.platform/Developer
ASPEN_SDK=$ASPEN_ROOT/SDKs/iPhoneOS2.0.sdk/
ORIG_PATH=$PATH
GLIB_FLAGS=`pkg-config --cflags --libs glib-2.0`
if [ -z "$GLIB_FLAGS" ]; then
echo "pkg-config could not locate glib-2.0 needed for the monoburg step"
exit;
fi
setenv () {
export PATH=$ASPEN_ROOT/usr/bin:$PATH
export C_INCLUDE_PATH="$ASPEN_SDK/usr/lib/gcc/arm-apple-darwin9/4.0.1/include:$ASPEN_SDK/usr/include"
export CPLUS_INCLUDE_PATH="$ASPEN_SDK/usr/lib/gcc/arm-apple-darwin9/4.0.1/include:$ASPEN_SDK/usr/include"
export CC=arm-apple-darwin9-gcc-4.0.1
export CXX=arm-apple-darwin9-g++-4.0.1
export CPP="cpp-4.0 -nostdinc -U__powerpc__ -U__i386__ -D__arm__"
export CXXPP="cpp-4.0 -nostdinc -U__powerpc__ -U__i386__ -D__arm__"
export LD=$CC
export LDFLAGS="-liconv -Wl,-syslibroot,$ASPEN_SDK"
}
unsetenv () {
export PATH=$ORIG_PATH
unset C_INCLUDE_PATH
unset CPLUS_INCLUDE_PATH
unset CC
unset CXX
unset CPP
unset CXXPP
unset LD
unset LDFLAGS
}
export mono_cv_uscore=yes
export cv_mono_sizeof_sunpath=104
export ac_cv_func_posix_getpwuid_r=yes
export ac_cv_func_backtrace_symbols=no
setenv
pushd eglib
./autogen.sh --host=arm-apple-darwin9
popd
./autogen.sh --disable-mcs-build --host=arm-apple-darwin9 --disable-shared-handles --with-tls=pthread --with-sigaltstack=no --with-glib=embedded $@
perl -pi -e 's/MONO_SIZEOF_SUNPATH 0/MONO_SIZEOF_SUNPATH 104/' config.h
perl -pi -e 's/#define HAVE_FINITE 1//' config.h
perl -pi -e 's/#define HAVE_MMAP 1//' config.h
make
unsetenv
pushd mono/monoburg
/usr/bin/gcc -o monoburg ./monoburg.c parser.c -I../.. -pthread -lm $GLIB_FLAGS
make
popd
setenv
make
+303 -66
View File
@@ -6,7 +6,7 @@ AC_CANONICAL_SYSTEM
m4_ifdef([_A][M_PROG_TAR],[_A][M_SET_OPTION([tar-ustar])])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono,2.5)
AM_INIT_AUTOMAKE(mono,2.6.3)
AM_MAINTAINER_MODE
API_VER=1.0
@@ -40,6 +40,8 @@ fi
# libgc should inherit the original CFLAGS/CPPFLAGS passed to configure, i.e. -O0
CPPFLAGS_FOR_LIBGC=$CPPFLAGS
CFLAGS_FOR_LIBGC=$CFLAGS
CPPFLAGS_FOR_EGLIB=$CPPFLAGS
CFLAGS_FOR_EGLIB=$CFLAGS
#
# These are the flags that need to be stored in the mono.pc file for
@@ -65,20 +67,32 @@ AC_MSG_CHECKING([host platform characteristics])
libgc_threads=no
has_dtrace=no
parallel_mark=yes
case "$host" in
powerpc*-*-linux*)
# https://bugzilla.novell.com/show_bug.cgi?id=504411
disable_munmap=yes
;;
esac
case "$host" in
*-*-mingw*|*-*-cygwin*)
platform_win32=yes
AC_DEFINE(PLATFORM_WIN32,1,[Platform is Win32])
AC_DEFINE(PLATFORM_WIN32,1,[Host Platform is Win32])
AC_DEFINE(TARGET_WIN32,1,[Target OS is Win32])
AC_DEFINE(DISABLE_PORTABILITY,1,[Disable the io-portability layer])
AC_DEFINE(PLATFORM_NO_SYMLINKS,1,[This platform does not support symlinks])
if test "x$cross_compiling" = "xno"; then
CC="gcc -mno-cygwin -g"
CXX="g++ -mno-cygwin -g"
# So libgc configure gets -mno-cygwin
export CC
export CXX
fi
HOST_CC="gcc"
# Windows 2000 is required that includes Internet Explorer 5.01
CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024"
LDFLAGS="$LDFLAGS -lmswsock"
libmono_cflags="-mno-cygwin -mms-bitfields -mwindows"
libmono_ldflags="-mno-cygwin -mms-bitfields -mwindows"
libdl=
@@ -145,7 +159,10 @@ case "$host" in
;;
*-*-linux*)
platform_win32=no
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP"
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
if test "x$disable_munmap" != "xyes"; then
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
fi
libmono_cflags="-D_REENTRANT"
libmono_ldflags="-lpthread"
libdl="-ldl"
@@ -182,6 +199,7 @@ case "$host" in
with_tls=pthread
has_dtrace=yes
use_sigposix=yes
enable_solaris_tar_check=yes
;;
*-*-darwin*)
parallel_mark="Disabled_Currently_Hangs_On_MacOSX"
@@ -202,6 +220,22 @@ case "$host" in
if test "x$cross_compiling" = "xyes"; then
has_broken_apple_cpp=yes
fi
dnl Snow Leopard is horribly broken -- it reports itself as i386-apple-darwin10.0.0, but
dnl its gcc defaults to 64-bit mode. They have also deprecated the usage of ucontext
dnl we need to set some flags to build our 32-bit binaries on 10.6 properly
case "$host" in
i*86-*-darwin10*)
BROKEN_DARWIN_FLAGS="-arch i386 -D_XOPEN_SOURCE -mmacosx-version-min=10.5"
CPPFLAGS="$CPPFLAGS $BROKEN_DARWIN_FLAGS"
CFLAGS="$CFLAGS $BROKEN_DARWIN_FLAGS"
CXXFLAGS="$CXXFLAGS $BROKEN_DARWIN_FLAGS"
CCASFLAGS="$CCASFLAGS $BROKEN_DARWIN_FLAGS"
CPPFLAGS_FOR_LIBGC="$CPPFLAGS_FOR_LIBGC $BROKEN_DARWIN_FLAGS"
CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC $BROKEN_DARWIN_FLAGS"
CPPFLAGS_FOR_EGLIB="$CPPFLAGS_FOR_EGLIB $BROKEN_DARWIN_FLAGS"
CFLAGS_FOR_EGLIB="$CFLAGS_FOR_EGLIB $BROKEN_DARWIN_FLAGS"
;;
esac
;;
*)
AC_MSG_WARN([*** Please add $host to configure.in checks!])
@@ -222,6 +256,7 @@ AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes)
AC_CHECK_TOOL(CC, gcc, gcc)
AC_PROG_CC
AC_PROG_CXX
AM_PROG_AS
AM_PROG_CC_STDC
AC_PROG_INSTALL
@@ -279,8 +314,9 @@ fi
AM_CONDITIONAL(NO_VERSION_SCRIPT, test x$no_version_script = xyes)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h)
AC_CHECK_HEADERS(sys/user.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h)
AC_CHECK_HEADERS(sys/user.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h sys/select.h netinet/tcp.h netinet/in.h unistd.h sys/types.h)
AC_CHECK_HEADER(zlib.h, [have_zlib=yes], [have_zlib=no])
if test x$have_zlib = xyes; then
@@ -372,13 +408,19 @@ fi
# A sanity check to catch cases where the package was unpacked
# with an ancient tar program (Solaris)
#
AC_MSG_CHECKING(integrity of package)
if test -f $srcdir/$mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
then
AC_MSG_RESULT(ok)
else
errorm="Your mono distribution is incomplete; if unpacking from a tar file, make sure you use GNU tar; see http://www.mono-project.com/IncompletePackage for more details"
AC_MSG_ERROR([$errorm])
AC_ARG_ENABLE(solaris-tar-check,
[ --disable-solaris-tar-check disable solaris tar check],
do_solaris_tar_check=no, do_solaris_tar_check=yes)
if test x"$do_solaris_tar_check" = xyes -a x"$enable_solaris_tar_check" = xyes; then
AC_MSG_CHECKING(integrity of package)
if test -f $srcdir/$mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
then
AC_MSG_RESULT(ok)
else
errorm="Your mono distribution is incomplete; if unpacking from a tar file, make sure you use GNU tar; see http://www.mono-project.com/IncompletePackage for more details"
AC_MSG_ERROR([$errorm])
fi
fi
mcs_topdir='$(top_srcdir)/'$mcsdir
@@ -414,7 +456,7 @@ if test "x$USE_NLS" = "xyes"; then
fi
AC_ARG_WITH([libgdiplus],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to NO)],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to installed)],
[], [with_libgdiplus=installed])
case $with_libgdiplus in
@@ -431,7 +473,7 @@ if test "x$PKG_CONFIG" = "xno"; then
fi
pkg_config_path=
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir],
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Change pkg-config dir to custom dir],
if test x$with_crosspkgdir = "x"; then
if test -s $PKG_CONFIG_PATH; then
pkg_config_path=$PKG_CONFIG_PATH
@@ -444,7 +486,7 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir],
)
AC_ARG_WITH([glib],
[ --with-glib=embedded|system Choose glib API: system or embedded (default to system)],
[ --with-glib=embedded|system Choose glib API: system or embedded (default to system)],
[], [with_glib=system])
eglib_dir=
@@ -458,6 +500,7 @@ embedded)
GMODULE_CFLAGS="$GLIB_CFLAGS"
GMODULE_LIBS="$GLIB_LIBS"
eglib_dir=eglib
ac_configure_args="$ac_configure_args \"CPPFLAGS_FOR_EGLIB=$EGLIB_CPPFLAGS\" \"CFLAGS_FOR_EGLIB=$CFLAGS_FOR_EGLIB\""
AC_CONFIG_SUBDIRS(eglib)
;;
system)
@@ -473,14 +516,19 @@ system)
fi
## Versions of dependencies
GLIB_REQUIRED_VERSION=1.3.11
PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION)
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
GLIB_REQUIRED_VERSION=2.4.0
dnl
dnl No, you will not replace this check with a pkg.m4 check
dnl
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
else
AC_MSG_ERROR([You need at least glib-2.0 $GLIB_REQUIRED_VERSION])
fi
;;
*)
AC_MSG_ERROR([Invalid argument to --with-glib.])
@@ -516,17 +564,17 @@ if test x$cross_compiling$platform_win32 = xnoyes; then
AC_MSG_RESULT(ok)
fi
AC_ARG_WITH(gc, [ --with-gc=boehm,included,none],[gc=$with_gc],[gc=$gc_default])
AC_ARG_WITH(gc, [ --with-gc=boehm,included,none Defaults to included],[gc=$with_gc],[gc=$gc_default])
# Enable support for fast thread-local storage
# Some systems have broken support, so we allow to disable it.
AC_ARG_WITH(tls, [ --with-tls=__thread,pthread select Thread Local Storage implementation],[],[with_tls=__thread])
AC_ARG_WITH(tls, [ --with-tls=__thread,pthread select Thread Local Storage implementation (defaults to __thread)],[],[with_tls=__thread])
# Enable support for using sigaltstack for SIGSEGV and stack overflow handling
# This does not work on some platforms (bug #55253)
AC_ARG_WITH(sigaltstack, [ --with-sigaltstack=yes,no enable/disable support for sigaltstack],[],[with_sigaltstack=yes])
AC_ARG_WITH(sigaltstack, [ --with-sigaltstack=yes,no enable/disable support for sigaltstack (defaults to yes)],[],[with_sigaltstack=yes])
AC_ARG_WITH(static_mono, [ --with-static_mono=yes,no link mono statically to libmono (faster)],[],[with_static_mono=yes])
AC_ARG_WITH(static_mono, [ --with-static_mono=yes,no link mono statically to libmono (faster) (defaults to yes)],[],[with_static_mono=yes])
if test "x$enable_static" = "xno"; then
with_static_mono=no
@@ -540,7 +588,7 @@ fi
AM_CONDITIONAL(STATIC_MONO, test x$with_static_mono != xno)
AC_ARG_ENABLE(mcs-build, [ --disable-mcs-build disable the build of the mcs directory], try_mcs_build=$enableval, enable_mcs_build=yes)
AC_ARG_WITH(xen_opt, [ --with-xen_opt=yes,no Enable Xen-specific behaviour],[],[with_xen_opt=yes])
AC_ARG_WITH(xen_opt, [ --with-xen_opt=yes,no Enable Xen-specific behaviour (defaults to yes)],[],[with_xen_opt=yes])
if test "x$with_xen_opt" = "xyes"; then
AC_DEFINE(MONO_XEN_OPT, 1, [Xen-specific behaviour])
ORIG_CFLAGS=$CFLAGS
@@ -558,17 +606,16 @@ if test "x$with_xen_opt" = "xyes"; then
])
fi
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet runtime build], enable_quiet_build=$enableval, enable_quiet_build=yes)
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet runtime build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
DISABLED_FEATURES=none
AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems.
LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug,
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd.],
LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug,
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd,soft_debug.],
[
for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do
eval "mono_feature_disable_$feature='yes'"
AC_MSG_NOTICE([Disabled support for feature: $feature])
done
DISABLED_FEATURES=$enable_minimal
disabled="Disabled: $enable_minimal"
@@ -577,67 +624,107 @@ AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsy
AC_DEFINE_UNQUOTED(DISABLED_FEATURES, "$DISABLED_FEATURES", [String of disabled features])
if test "x$mono_feature_disable_aot" = "xyes"; then
AC_DEFINE(DISABLE_AOT, 1, [Disable AOT support])
AC_DEFINE(DISABLE_AOT_COMPILER, 1, [Disable AOT Compiler])
AC_MSG_NOTICE([Disabled AOT compiler])
fi
if test "x$mono_feature_disable_profiler" = "xyes"; then
AC_DEFINE(DISABLE_PROFILER, 1, [Disable default profiler support])
AC_MSG_NOTICE([Disabled support for the profiler])
fi
AM_CONDITIONAL(DISABLE_PROFILER, test x$mono_feature_disable_profiler = xyes)
if test "x$mono_feature_disable_decimal" = "xyes"; then
AC_DEFINE(DISABLE_DECIMAL, 1, [Disable System.Decimal support])
AC_MSG_NOTICE([Disabled support for decimal])
fi
if test "x$mono_feature_disable_pinvoke" = "xyes"; then
AC_DEFINE(DISABLE_PINVOKE, 1, [Disable P/Invoke support])
AC_MSG_NOTICE([Disabled support for P/Invoke])
fi
if test "x$mono_feature_disable_debug" = "xyes"; then
AC_DEFINE(DISABLE_DEBUG, 1, [Disable runtime debugging support])
AC_MSG_NOTICE([Disabled support for runtime debugging])
fi
if test "x$mono_feature_disable_reflection_emit" = "xyes"; then
AC_DEFINE(DISABLE_REFLECTION_EMIT, 1, [Disable reflection emit support])
mono_feature_disable_reflection_emit_save=yes
AC_MSG_NOTICE([Disabled support for Reflection.Emit])
fi
if test "x$mono_feature_disable_reflection_emit_save" = "xyes"; then
AC_DEFINE(DISABLE_REFLECTION_EMIT_SAVE, 1, [Disable assembly saving support in reflection emit])
AC_MSG_NOTICE([Disabled support for Reflection.Emit.Save])
fi
if test "x$mono_feature_disable_large_code" = "xyes"; then
AC_DEFINE(DISABLE_LARGE_CODE, 1, [Disable support for huge assemblies])
AC_MSG_NOTICE([Disabled support for large assemblies])
fi
if test "x$mono_feature_disable_logging" = "xyes"; then
AC_DEFINE(DISABLE_LOGGING, 1, [Disable support debug logging])
AC_MSG_NOTICE([Disabled support for logging])
fi
if test "x$mono_feature_disable_com" = "xyes"; then
AC_DEFINE(DISABLE_COM, 1, [Disable COM support])
AC_MSG_NOTICE([Disabled COM support])
fi
if test "x$mono_feature_disable_ssa" = "xyes"; then
AC_DEFINE(DISABLE_SSA, 1, [Disable advanced SSA JIT optimizations])
AC_MSG_NOTICE([Disabled SSA JIT optimizations])
fi
if test "x$mono_feature_disable_generics" = "xyes"; then
AC_DEFINE(DISABLE_GENERICS, 1, [Disable generics support])
AC_MSG_NOTICE([Disabled Generics Support])
fi
if test "x$mono_feature_disable_shadowcopy" = "xyes"; then
AC_DEFINE(DISABLE_SHADOW_COPY, 1, [Disable Shadow Copy for AppDomains])
AC_MSG_NOTICE([Disabled Shadow copy for AppDomains])
fi
if test "x$mono_feature_disable_portability" = "xyes"; then
AC_DEFINE(DISABLE_PORTABILITY, 1, [Disables the IO portability layer])
AC_MSG_NOTICE([Disabled IO Portability layer])
fi
if test "x$mono_feature_disable_attach" = "xyes"; then
AC_DEFINE(DISABLE_ATTACH, 1, [Disable agent attach support])
AC_MSG_NOTICE([Disabled agent attach])
fi
if test "x$mono_feature_disable_full_messages" = "xyes"; then
AC_DEFINE(DISABLE_FULL_MESSAGES, 1, [Disables building in the full table of WAPI messages])
AC_MSG_NOTICE([Disabled full messages for Win32 errors, only core message strings shipped])
fi
if test "x$mono_feature_disable_verifier" = "xyes"; then
AC_DEFINE(DISABLE_VERIFIER, 1, [Disables the verifier])
AC_MSG_NOTICE([Disabled the metadata and IL verifiers])
fi
if test "x$mono_feature_disable_jit" = "xyes"; then
AC_DEFINE(DISABLE_JIT, 1, [Disable the JIT, only full-aot mode will be supported by the runtime.])
AC_MSG_NOTICE([Disabled the JIT engine, only full AOT will be supported])
fi
AM_CONDITIONAL(DISABLE_JIT, test x$mono_feature_disable_jit = xyes)
if test "x$mono_feature_disable_simd" = "xyes"; then
AC_DEFINE(DISABLE_SIMD, 1, [Disable SIMD intrinsics related optimizations.])
AC_MSG_NOTICE([Disabled SIMD support])
fi
if test "x$mono_feature_disable_soft_debug" = "xyes"; then
AC_DEFINE(DISABLE_SOFT_DEBUG, 1, [Disable Soft Debugger Agent.])
AC_MSG_NOTICE([Disabled Soft Debugger.])
fi
AC_MSG_CHECKING(for visibility __attribute__)
@@ -738,7 +825,7 @@ case "x$gc" in
;;
esac
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB], [large_heap=$withval], [large_heap=no])
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB (defaults to no)], [large_heap=$withval], [large_heap=no])
if test "x$large_heap" = "xyes"; then
echo "FOO"
CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG"
@@ -797,7 +884,7 @@ if test x$platform_win32 = xno; then
dnl ******************************************************************
dnl *** Checks for the IKVM JNI interface library ***
dnl ******************************************************************
AC_ARG_WITH(ikvm-native, [ --with-ikvm-native=yes,no build the IKVM JNI interface library],[with_ikvm_native=$withval],[with_ikvm_native=yes])
AC_ARG_WITH(ikvm-native, [ --with-ikvm-native=yes,no build the IKVM JNI interface library (defaults to yes)],[with_ikvm_native=$withval],[with_ikvm_native=yes])
ikvm_native_dir=
if test x$with_ikvm_native = xyes; then
@@ -826,6 +913,31 @@ if test x$platform_win32 = xno; then
AC_CHECK_FUNCS(sched_setaffinity)
dnl ****************************************************************
dnl *** Check for sched_setaffinity from glibc versions before ***
dnl *** 2.3.4. The older versions of the function only take 2 ***
dnl *** parameters, not 3. ***
dnl *** ***
dnl *** Because the interface change was not made in a minor ***
dnl *** version rev, the __GLIBC__ and __GLIBC_MINOR__ macros ***
dnl *** won't always indicate the interface sched_affinity has. ***
dnl ****************************************************************
AC_MSG_CHECKING(for sched_setaffinity from glibc < 2.3.4)
AC_TRY_COMPILE([#include <sched.h>], [
int main() {
int mask = 1;
sched_setaffinity(0, &mask);
}
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(GLIBC_BEFORE_2_3_4_SCHED_SETAFFINITY, 1, [Have GLIBC_BEFORE_2_3_4_SCHED_SETAFFINITY])
], [
# We have the new, three-parameter version
AC_MSG_RESULT(no)
])
dnl ******************************************************************
dnl *** Check for large file support ***
dnl *** (If we were using autoconf 2.50 we'd use AC_SYS_LARGEFILE) ***
@@ -1135,9 +1247,15 @@ if test x$platform_win32 = xno; then
AC_DEFINE(USE_MONO_MUTEX, 1, [Use mono_mutex_t])
])
AC_CHECK_FUNCS(pthread_attr_setstacksize)
AC_CHECK_FUNCS(pthread_attr_getstack)
AC_CHECK_FUNCS(pthread_attr_getstack pthread_attr_getstacksize)
AC_CHECK_FUNCS(pthread_get_stacksize_np pthread_get_stackaddr_np)
dnl ***********************************
dnl *** Checks for signals
dnl ***********************************
AC_CHECK_HEADERS(signal.h)
AC_CHECK_FUNCS(sigaction)
dnl ***********************************
dnl *** Checks for working __thread ***
dnl ***********************************
@@ -1618,8 +1736,9 @@ dnl ****************************
AC_MSG_CHECKING([if usage of random device is requested])
AC_ARG_ENABLE(dev-random,
[ --disable-dev-random disable the use of the random device],
[ --disable-dev-random disable the use of the random device (enabled by default)],
try_dev_random=$enableval, try_dev_random=yes)
AC_MSG_RESULT($try_dev_random)
case "{$target}" in
@@ -1692,11 +1811,11 @@ if test x$gc = xsgen; then
fi
fi
AC_ARG_ENABLE(nunit-tests, [ --enable-nunit-tests Run the nunit tests of the class library on 'make check'])
AC_ARG_ENABLE(nunit-tests, [ --enable-nunit-tests Run the nunit tests of the class library on 'make check'])
AM_CONDITIONAL(ENABLE_NUNIT_TESTS, [test x$enable_nunit_tests = xyes])
AC_MSG_CHECKING([if big-arrays are to be enabled])
AC_ARG_ENABLE(big-arrays, [ --enable-big-arrays Enable the allocation and indexing of arrays greater than Int32.MaxValue], enable_big_arrays=$enableval, enable_big_arrays=no)
AC_ARG_ENABLE(big-arrays, [ --enable-big-arrays Enable the allocation and indexing of arrays greater than Int32.MaxValue], enable_big_arrays=$enableval, enable_big_arrays=no)
if test "x$enable_big_arrays" = "xyes" ; then
if test "x$ac_cv_sizeof_void_p" = "x8"; then
AC_DEFINE(MONO_BIG_ARRAYS,1,[Enable the allocation and indexing of arrays greater than Int32.MaxValue])
@@ -1720,6 +1839,9 @@ if test "x$enable_dtrace" = "xyes"; then
if test "x$DTRACE" = "xno"; then
AC_MSG_RESULT([dtrace utility not found, dtrace support disabled.])
enable_dtrace=no
elif ! $DTRACE -h $srcdir/data/mono.d > /dev/null 2>&1; then
AC_MSG_RESULT([dtrace doesn't support -h option, dtrace support disabled.])
enable_dtrace=no
fi
fi
@@ -1763,6 +1885,46 @@ fi
AM_CONDITIONAL(ENABLE_DTRACE, [test x$enable_dtrace = xyes])
AM_CONDITIONAL(DTRACE_G_REQUIRED, [test x$dtrace_g = xyes])
dnl **************
dnl *** LLVM ***
dnl **************
AC_ARG_ENABLE(llvm,[ --enable-llvm Enable the experimental LLVM back-end], enable_llvm=$enableval, enable_llvm=no)
if test "x$enable_llvm" = "xyes"; then
AC_PATH_PROG(LLVM_CONFIG, llvm-config, no)
if test "x$LLVM_CONFIG" = "xno"; then
AC_MSG_ERROR([llvm-config not found.])
fi
# The output of --cflags seems to include optimizations flags too
LLVM_CFLAGS=`$LLVM_CONFIG --cflags | sed -e 's/-O2//g' | sed -e 's/-O0//g' | sed -e 's/-fomit-frame-pointer//g' | sed -e 's/-fPIC//g'`
LLVM_CXXFLAGS=`$LLVM_CONFIG --cxxflags`
LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`
LLVM_LIBS=`$LLVM_CONFIG --libs core bitwriter jit x86codegen`
LLVM_LIBS="$LLVM_LDFLAGS $LLVM_LIBS -lstdc++"
# Should be something like '2.6' or '2.7svn'
llvm_version=`$LLVM_CONFIG --version`
major_version=`echo $llvm_version | cut -c 1`
minor_version=`echo $llvm_version | cut -c 3`
AC_DEFINE_UNQUOTED(LLVM_MAJOR_VERSION, $major_version, [Major version of LLVM libraries])
AC_DEFINE_UNQUOTED(LLVM_MINOR_VERSION, $minor_version, [Minor version of LLVM libraries])
# Have to pass these on the command line since mini-llvm-cpp.h already includes
# llvm's config.h
LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DLLVM_MAJOR_VERSION=$major_version -DLLVM_MINOR_VERSION=$minor_version"
AC_SUBST(LLVM_CFLAGS)
AC_SUBST(LLVM_CXXFLAGS)
AC_SUBST(LLVM_LIBS)
AC_SUBST(LLVM_LDFLAGS)
AC_DEFINE(ENABLE_LLVM, 1, [Enable the LLVM back end])
fi
AM_CONDITIONAL(ENABLE_LLVM, [test x$enable_llvm = xyes])
TARGET="unknown"
ACCESS_UNALIGNED="yes"
@@ -1958,6 +2120,26 @@ case "$host" in
;;
esac
# FIXME: Define the others as well
case "$TARGET" in
X86)
AC_DEFINE(TARGET_X86, 1, [...])
;;
AMD64)
AC_DEFINE(TARGET_AMD64, 1, [...])
;;
ARM)
AC_DEFINE(TARGET_ARM, 1, [...])
;;
POWERPC)
AC_DEFINE(TARGET_POWERPC, 1, [...])
;;
POWERPC64)
AC_DEFINE(TARGET_POWERPC, 1, [...])
AC_DEFINE(TARGET_POWERPC64, 1, [...])
;;
esac
if test "x$sizeof_register" = "x4"; then
AC_DEFINE(SIZEOF_REGISTER,4,[size of machine integer registers])
elif test "x$sizeof_register" = "x8"; then
@@ -1966,11 +2148,19 @@ else
AC_DEFINE(SIZEOF_REGISTER,SIZEOF_VOID_P,[size of machine integer registers])
fi
if test "x$target_byte_order" = "xG_BIG_ENDIAN"; then
AC_DEFINE(TARGET_BYTE_ORDER,G_BIG_ENDIAN,[byte order of target])
elif test "x$target_byte_order" = "xG_LITTLE_ENDIAN"; then
AC_DEFINE(TARGET_BYTE_ORDER,G_LITTLE_ENDIAN,[byte order of target])
else
AC_DEFINE(TARGET_BYTE_ORDER,G_BYTE_ORDER,[byte order of target])
fi
if test "x$have_visibility_hidden" = "xyes"; then
AC_DEFINE(HAVE_VISIBILITY_HIDDEN, 1, [Support for the visibility ("hidden") attribute])
fi
AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that default to the JIT],[
AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that default to the JIT (defaults to no)],[
if test x$withval = xyes; then
jit_wanted=true
else
@@ -1978,7 +2168,7 @@ AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that de
fi
])
AC_ARG_WITH(interp, [ --with-interp=yes,no If you want to build scripts that default to the interpreter],[
AC_ARG_WITH(interp, [ --with-interp=yes,no If you want to build scripts that default to the interpreter (defaults to no)],[
if test x$withval = xyes; then
interp_wanted=true
else
@@ -2080,6 +2270,9 @@ if test "x$TARGET" = "xAMD64" -o "x$TARGET" = "xX86" -o "x$TARGET" = "xALPHA"; t
*-*-*linux*)
mono_debugger_supported=yes
;;
*86-apple-darwin*)
mono_debugger_supported=yes
;;
esac
fi
fi
@@ -2147,22 +2340,13 @@ case "x$gc" in
;;
esac
PREVIEW=yes
AC_ARG_WITH(preview, [ --with-preview=yes,no If you want to install the 2.0 FX preview],[
if test x$with_preview = xno; then
PREVIEW=no
fi
])
MOONLIGHT=yes
AC_ARG_WITH(moonlight,[ --with-moonlight=yes,no If you want to build the Moonlight 2.1 assemblies],[
if test x$with_moonlight = xno; then
MOONLIGHT=no
fi
])
AC_ARG_WITH(profile2, [ --with-profile2=yes,no If you want to install the 2.0 FX (defaults to yes)], [], [with_profile2=yes])
AC_ARG_WITH(profile4, [ --with-profile4=yes,no If you want to install the 4.0 FX (defaults to no)], [], [with_profile4=no])
AC_ARG_WITH(moonlight, [ --with-moonlight=yes,no If you want to build the Moonlight 2.1 assemblies (defaults to yes)], [], [with_moonlight=yes])
AC_ARG_WITH(monotouch, [ --with-monotouch=yes,no If you want to build the raw MonoTouch 2.1 assemblies (defaults to no)], [], [with_monotouch=no])
OPROFILE=no
AC_ARG_WITH(oprofile,[ --with-oprofile=no,<oprofile install dir> Enable oprofile support (defaults to NO)],[
AC_ARG_WITH(oprofile,[ --with-oprofile=no,<oprofile install dir> Enable oprofile support (defaults to no)],[
if test x$with_oprofile != xno; then
oprofile_include=$with_oprofile/include
if test ! -f $oprofile_include/opagent.h; then
@@ -2176,7 +2360,7 @@ AC_ARG_WITH(oprofile,[ --with-oprofile=no,<oprofile install dir> Enable oprofi
])
MALLOC_MEMPOOLS=no
AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each single mempool allocation (only for runtime debugging, defaults to NO)],[
AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each single mempool allocation (only for runtime debugging, defaults to no)],[
if test x$with_malloc_mempools = xyes; then
MALLOC_MEMPOOLS=yes
AC_DEFINE(USE_MALLOC_FOR_MEMPOOLS,1,[Use malloc for each single mempool allocation])
@@ -2185,20 +2369,33 @@ AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each
DISABLE_MCS_DOCS=no
AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the documentation under mcs (defaults to YES)],[
AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the documentation under mcs (defaults to yes)],[
if test x$with_mcs_docs != xyes; then
DISABLE_MCS_DOCS=yes
fi
])
dnl
dnl Consistency settings
dnl
if test x$cross_compiling = xyes -o x$enable_mcs_build = xno; then
DISABLE_MCS_DOCS=yes
docs_dir=""
else
docs_dir=docs
fi
AC_SUBST(docs_dir)
AM_CONDITIONAL(HAVE_OPROFILE, test x$OPROFILE = xyes)
AC_SUBST(OPROFILE_CFLAGS)
AC_SUBST(OPROFILE_LIBS)
libmono_ldflags="$libmono_ldflags $LIBS"
AM_CONDITIONAL(INSTALL_2_0, test x$PREVIEW = xyes)
AM_CONDITIONAL(INSTALL_2_1, test x$MOONLIGHT = xyes)
AM_CONDITIONAL(INSTALL_2_0, [test "x$with_profile2" = xyes])
AM_CONDITIONAL(INSTALL_2_1, [test "x$with_moonlight" = xyes])
AM_CONDITIONAL(INSTALL_4_0, [test "x$with_profile4" = xyes])
AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" = xyes])
AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
@@ -2247,7 +2444,7 @@ if test x$platform_win32 = xyes; then
if test "x$cross_compiling" = "xno"; then
mono_cfg_dir=`cygpath -w -a $mono_cfg_root`\\etc
else
mono_cfg_dir=`echo $mono_cfg_root | tr '/' '\\\'`\\etc
mono_cfg_dir=`echo $mono_cfg_root | tr '/' '\\'`\\etc
fi
else
mono_cfg_dir=$mono_cfg_root/etc
@@ -2329,13 +2526,42 @@ AC_CONFIG_COMMANDS([runtime/etc/mono/2.0/Browsers/Compat.browser],
cd $depth
],[LN_S='$LN_S'])
AC_CONFIG_COMMANDS([runtime/etc/mono/4.0/machine.config],
[ depth=../../../..
case $srcdir in
[[\\/$]]* | ?:[[\\/]]* ) reldir=$srcdir ;;
.) reldir=$depth ;;
*) reldir=$depth/$srcdir ;;
esac
$ac_aux_dir/install-sh -d runtime/etc/mono/4.0
cd runtime/etc/mono/4.0
rm -f machine.config
$LN_S $reldir/data/net_4_0/machine.config machine.config
cd $depth
],[LN_S='$LN_S'])
AC_CONFIG_COMMANDS([runtime/etc/mono/4.0/web.config],
[ depth=../../../..
case $srcdir in
[[\\/$]]* | ?:[[\\/]]* ) reldir=$srcdir ;;
.) reldir=$depth ;;
*) reldir=$depth/$srcdir ;;
esac
$ac_aux_dir/install-sh -d runtime/etc/mono/4.0
cd runtime/etc/mono/4.0
rm -f web.config
$LN_S $reldir/data/net_4_0/web.config web.config
cd $depth
],[LN_S='$LN_S'])
if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet], [for i in `find mono libgc support -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi
AC_OUTPUT([
Makefile
mono-core.spec
mono-uninstalled.pc
scripts/mono-find-provides
scripts/mono-find-requires
@@ -2345,7 +2571,6 @@ mono/metadata/Makefile
mono/dis/Makefile
mono/cil/Makefile
mono/arch/Makefile
mono/os/Makefile
mono/arch/x86/Makefile
mono/arch/amd64/Makefile
mono/arch/hppa/Makefile
@@ -2380,6 +2605,7 @@ docs/Makefile
data/Makefile
data/net_1_1/Makefile
data/net_2_0/Makefile
data/net_4_0/Makefile
data/net_2_0/Browsers/Makefile
data/mint.pc
data/mono.pc
@@ -2388,13 +2614,14 @@ data/mono-nunit.pc
data/mono-options.pc
data/mono-lineeditor.pc
data/monodoc.pc
data/mono.web.pc
data/dotnet.pc
data/dotnet35.pc
data/wcf.pc
data/cecil.pc
data/smcs.pc
data/system.web.extensions_1.0.pc
data/system.web.extensions.design_1.0.pc
data/system.web.mvc.pc
samples/Makefile
support/Makefile
data/config
@@ -2477,7 +2704,7 @@ fi
echo 'MCS_FLAGS = $(PLATFORM_DEBUG_FLAGS)' >> $srcdir/$olivedir/build/config.make
echo "RUNTIME = $mono_build_root/runtime/mono-wrapper" >> $srcdir/$olivedir/build/config.make
echo "MONO_VERSION = $myver" >> $srcdir/$olivedir/build/config.make
if test x$with_moonlight = xyes; then
if test x$with_moonlight = xyes; then
echo "WITH_MOONLIGHT = yes" >> $srcdir/$olivedir/build/config.make
fi
fi
@@ -2495,11 +2722,14 @@ echo "
olive source: $olive_topdir
GC: $gc
GLIB: $with_glib
TLS: $with_tls
SIGALTSTACK: $with_sigaltstack
Engine: $jit_status
2.0 Beta: $PREVIEW
2.1 Alpha: $MOONLIGHT
2.0 Profile: $with_profile2
Moon Profile: $with_moonlight
4.0 Alpha: $with_profile4
MonoTouch: $with_monotouch
JNI support: $jdk_headers_found
libgdiplus: $libgdiplus_msg
zlib: $zlib_msg
@@ -2507,6 +2737,7 @@ echo "
BigArrays: $enable_big_arrays
DTrace: $enable_dtrace
Parallel Mark: $enable_parallel_mark
LLVM Back End: $enable_llvm
$disabled
"
@@ -2522,3 +2753,9 @@ if test x$gc = xsgen; then
echo IMPORTANT:
echo IMPORTANT: There are known problems with it, use at your own risk.
fi
if test x$enable_llvm = xyes; then
echo IMPORTANT:
echo IMPORTANT: The LLVM Back End is experimental and has known problems.
echo IMPORTANT:
fi
+5
View File
@@ -0,0 +1,5 @@
/Makefile.in
/Makefile
/config
/.cvsignore
/*.pc
+17 -9
View File
@@ -1,32 +1,40 @@
SUBDIRS = net_1_1 net_2_0
if INSTALL_4_0
SUBDIRS += net_4_0
endif
monodir = $(sysconfdir)/mono
EXTRA_DIST = \
config.in \
browscap.ini mono.supp mono.d README \
mono.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in smcs.pc.in \
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in \
mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
dtrace-prelink.sh
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in \
gdb/mono-gdb.py
pkgconfigdir = $(libdir)/pkgconfig
if JIT_SUPPORTED
if INTERP_SUPPORTED
pkgconfig_DATA= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc
pkgconfig_DATA= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc
else
pkgconfig_DATA= mono.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc
pkgconfig_DATA= mono.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc
endif
else
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc mono-lineeditor.pc
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc
endif
DISTCLEANFILES= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc
DISTCLEANFILES= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc
mono_DATA = config \
browscap.ini
gdbdir = $(bindir)
gdb_DATA = gdb/mono-gdb.py
+6020 -7649
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -17,6 +17,7 @@
<dllmap dll="sqlite3" target="@SQLITE3@" os="!windows"/>
<dllmap dll="libX11" target="@X11@" os="!windows" />
<dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
<dllmap dll="libcups" target="libcups.so.2" os="!windows"/>
<dllmap dll="i:kernel32.dll">
<dllentry dll="__Internal" name="CopyMemory" target="mono_win32_compat_CopyMemory"/>
<dllentry dll="__Internal" name="FillMemory" target="mono_win32_compat_FillMemory"/>
+66
View File
@@ -0,0 +1,66 @@
2009-10-09 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoSupport.run_hook): Set MONO_XDEBUG to 'gdb' to activate
the GDB support mode in the runtime.
2009-04-14 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoClassPrinter.to_string): Add a MonoClass* pretty
printer.
2009-04-12 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoMethodPrinter.to_string): Add a MonoMethod* pretty
printer.
2009-04-10 Zoltan Varga <[email protected]>
* mono-gdb.py: Update to the latest archer api.
2009-04-07 Zoltan Varga <[email protected]>
* mono-gdb.py (ObjectPrinter.__init__): Update to latest archer api.
2009-04-06 Zoltan Varga <[email protected]>
* test-xdb.py: New file, tester script for xdb.
* mono-gdb.py (stringify_class_name): Handle classes without a namespace
correctly.
* mono-gdb.py: Update after the changes to dwarfwriter.c.
2009-04-05 Zoltan Varga <[email protected]>
* mono-gdb.py: Handle superclasses in the pretty printer.
2009-03-27 Zoltan Varga <[email protected]>
* mono-gdb.py (StringPrinter.to_string): Fix support for non-ascii characters.
2009-03-20 Zoltan Varga <[email protected]>
* mono-gdb.py: Update for the latest python API on the archer branch.
2009-02-03 Zoltan Varga <[email protected]>
* mono-gdb.py: Remove the --64 argument to as, it is not needed.
* mono-gdb.py (stringify_class_name): Helper function to print base types
using their short name. Also add a prototype implementation of registering
the hooks from python code instead of needing the mono-gdbinit file.
* gdb-python.diff: Changes against the gdb archer branch at
http://sourceware.org/gdb/wiki/PythonGdb to fix some problems/add functionality.
2009-02-03 Geoff Norton <[email protected]>
* mono-gdbinit: Hook into backtrace as hook-stop seems to crash gdb
* mono-gdb.py: Find the gdbinit name from the executable name instead of
hardcoding mono
2009-01-29 Zoltan Varga <[email protected]>
* mono-gdb.py mono-gdbinit: Support files to help debugging mono/mono apps
using a python enabled gdb.
+163
View File
@@ -0,0 +1,163 @@
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 640998b..fb73e9d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-03 Zoltan Varga <[email protected]>
+
+ * cil-script.c python/python-cmd.c: Allow registration of pre/post hooks from
+ python.
+
+ * symfile.c (add_symbol_file_command): Comment out verbose messages.
+
2009-02-03 Thiago Jung Bauermann <[email protected]>
* gdb/c-lang.c (c_get_string): Remove superfluous parenthesis from
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 835d29c..3941aa5 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -299,6 +299,13 @@ execute_user_command (struct cmd_list_element *c, char *args)
static int user_call_depth = 0;
extern int max_user_call_depth;
+ /* Might be a user defined command implemented in Python */
+ if (!c->user_commands && c->func)
+ {
+ (*c->func) (c, args, FALSE);
+ return;
+ }
+
old_chain = setup_user_args (args);
cmdlines = c->user_commands;
diff --git a/gdb/python/python-cmd.c b/gdb/python/python-cmd.c
index 61d5e5d..a3fbc08 100644
--- a/gdb/python/python-cmd.c
+++ b/gdb/python/python-cmd.c
@@ -339,7 +339,8 @@ gdbpy_parse_command_name (char *text, struct cmd_list_element ***base_list,
/* Object initializer; sets up gdb-side structures for command.
- Use: __init__(NAME, CMDCLASS, [COMPLETERCLASS, [PREFIX]]).
+ Use: __init__(NAME, CMDCLASS, [completerclass=COMPLETERCLASS, prefix=PREFIX,
+ pre_hook_of=PREHOOK_OF, post_hook_of=POSTHOOK_OF]).
NAME is the name of the command. It may consist of multiple words,
in which case the final word is the name of the new command, and
@@ -354,6 +355,11 @@ gdbpy_parse_command_name (char *text, struct cmd_list_element ***base_list,
If PREFIX is True, then this command is a prefix command.
+ PREHOOK_OF is the name of a gdb command this command becomes a
+ pre-execution hook of, same as if this command was defined using
+ "define hook-<cmdname>"
+ POSTHOOK_OF is the same for post-execution hooks.
+
The documentation for the command is taken from the doc string for
the python class.
@@ -362,15 +368,18 @@ static int
cmdpy_init (PyObject *self, PyObject *args, PyObject *kwds)
{
cmdpy_object *obj = (cmdpy_object *) self;
- char *name;
+ char *name, *pre_hook_of = NULL, *post_hook_of = NULL;
int cmdtype;
int completetype = -1;
char *docstring = NULL;
volatile struct gdb_exception except;
struct cmd_list_element **cmd_list;
+ struct cmd_list_element *pre_hookc = NULL, *post_hookc = NULL;
char *cmd_name, *pfx_name;
PyObject *is_prefix = NULL;
int cmp;
+ static char *kwlist[] = {"name", "cmdclass", "completerclass", "prefix",
+ "pre_hook_of", "post_hook_of", NULL};
if (obj->command)
{
@@ -381,8 +390,9 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kwds)
return -1;
}
- if (! PyArg_ParseTuple (args, "si|iO", &name, &cmdtype,
- &completetype, &is_prefix))
+ if (! PyArg_ParseTupleAndKeywords (args, kwds, "si|iOss", kwlist, &name, &cmdtype,
+ &completetype, &is_prefix, &pre_hook_of,
+ &post_hook_of))
return -1;
if (cmdtype != no_class && cmdtype != class_run
@@ -402,6 +412,30 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kwds)
return -1;
}
+ if (pre_hook_of)
+ {
+ char *text = pre_hook_of;
+
+ pre_hookc = lookup_cmd_1 (&text, cmdlist, NULL, 1);
+ if (! pre_hookc)
+ {
+ PyErr_Format (PyExc_RuntimeError, _("command name given by pre_hook argument not found"));
+ return -1;
+ }
+ }
+
+ if (post_hook_of)
+ {
+ char *text = post_hook_of;
+
+ post_hookc = lookup_cmd_1 (&text, cmdlist, NULL, 1);
+ if (! post_hookc)
+ {
+ PyErr_Format (PyExc_RuntimeError, _("command name given by post_hook argument not found"));
+ return -1;
+ }
+ }
+
cmd_name = gdbpy_parse_command_name (name, &cmd_list, &cmdlist);
if (! cmd_name)
return -1;
@@ -470,6 +504,18 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kwds)
cmd->func = cmdpy_function;
cmd->destroyer = cmdpy_destroyer;
+ if (pre_hookc)
+ {
+ pre_hookc->hook_pre = cmd;
+ cmd->hookee_pre = pre_hookc;
+ }
+
+ if (post_hookc)
+ {
+ post_hookc->hook_post = cmd;
+ cmd->hookee_post = post_hookc;
+ }
+
obj->command = cmd;
set_cmd_context (cmd, self);
set_cmd_completer (cmd, ((completetype == -1) ? cmdpy_completer
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 14cb7b8..6d0bb40 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2196,7 +2196,7 @@ add_symbol_file_command (char *args, int from_tty)
statements because hex_string returns a local static
string. */
- printf_unfiltered (_("add symbol table from file \"%s\" at\n"), filename);
+ /* printf_unfiltered (_("add symbol table from file \"%s\" at\n"), filename); */
section_addrs = alloc_section_addr_info (section_index);
make_cleanup (xfree, section_addrs);
for (i = 0; i < section_index; i++)
@@ -2211,7 +2211,7 @@ add_symbol_file_command (char *args, int from_tty)
entered on the command line. */
section_addrs->other[sec_num].name = sec;
section_addrs->other[sec_num].addr = addr;
- printf_unfiltered ("\t%s_addr = %s\n", sec, paddress (addr));
+ /* printf_unfiltered ("\t%s_addr = %s\n", sec, paddress (addr)); */
sec_num++;
/* The object's sections are initialized when a
+247
View File
@@ -0,0 +1,247 @@
#
# Author: Zoltan Varga ([email protected])
# License: MIT/X11
#
#
# This is a mono support mode for a python-enabled gdb:
# http://sourceware.org/gdb/wiki/PythonGdb
# Usage:
# - copy/symlink this file, plus mono-gdbinit to the directory where the mono
# executable lives.
# - run mono under gdb, or attach to a mono process using gdb
# - Type 'xdb' in gdb to load/reload the debugging info emitted by the runtime.
# - The debug info is emitted to a file called xdb.s in the current working directory.
# When attaching to a mono process, make sure you are in the same directory.
#
import os
class StringPrinter:
"Print a C# string"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "null"
obj = self.val.cast (gdb.lookup_type ("MonoString").pointer ()).dereference ()
len = obj ['length']
chars = obj ['chars']
i = 0
res = ['"']
while i < len:
val = (chars.cast(gdb.lookup_type ("gint64")) + (i * 2)).cast(gdb.lookup_type ("gunichar2").pointer ()).dereference ()
if val >= 256:
c = "\u%X" % val
else:
c = chr (val)
res.append (c)
i = i + 1
res.append ('"')
return ''.join (res)
def stringify_class_name(ns, name):
if ns == "System":
if name == "Byte":
return "byte"
if name == "String":
return "string"
if ns == "":
return name
else:
return "%s.%s" % (ns, name)
class ArrayPrinter:
"Print a C# array"
def __init__(self, val, class_ns, class_name):
self.val = val
self.class_ns = class_ns
self.class_name = class_name
def to_string(self):
obj = self.val.cast (gdb.lookup_type ("MonoArray").pointer ()).dereference ()
length = obj ['max_length']
return "%s [%d]" % (stringify_class_name (self.class_ns, self.class_name [0:len(self.class_name) - 2]), int(length))
class ObjectPrinter:
"Print a C# object"
def __init__(self, val):
if str(val.type)[-1] == "&":
self.val = val.address.cast (gdb.lookup_type ("MonoObject").pointer ())
else:
self.val = val.cast (gdb.lookup_type ("MonoObject").pointer ())
class _iterator:
def __init__(self,obj):
self.obj = obj
self.iter = self.obj.type.fields ().__iter__ ()
pass
def __iter__(self):
return self
def next(self):
field = self.iter.next ()
try:
if str(self.obj [field.name].type) == "object":
# Avoid recursion
return (field.name, self.obj [field.name].cast (gdb.lookup_type ("void").pointer ()))
else:
return (field.name, self.obj [field.name])
except:
# Superclass
return (field.name, self.obj.cast (gdb.lookup_type ("%s" % (field.name))))
def children(self):
# FIXME: It would be easier if gdb.Value would support iteration itself
# It would also be better if we could return None
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return {}.__iter__ ()
try:
obj = self.val.dereference ()
class_ns = obj ['vtable'].dereference ()['klass'].dereference ()['name_space'].string ()
class_name = obj ['vtable'].dereference ()['klass'].dereference ()['name'].string ()
if class_name [-2:len(class_name)] == "[]":
return {}.__iter__ ()
gdb_type = gdb.lookup_type ("struct %s_%s" % (class_ns.replace (".", "_"), class_name))
return self._iterator(obj.cast (gdb_type))
except:
print sys.exc_info ()[0]
print sys.exc_info ()[1]
return {}.__iter__ ()
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "null"
try:
obj = self.val.dereference ()
class_ns = obj ['vtable'].dereference ()['klass'].dereference ()['name_space'].string ()
class_name = obj ['vtable'].dereference ()['klass'].dereference ()['name'].string ()
if class_ns == "System" and class_name == "String":
return StringPrinter (self.val).to_string ()
if class_name [-2:len(class_name)] == "[]":
return ArrayPrinter (self.val,class_ns,class_name).to_string ()
if class_ns != "":
try:
gdb_type = gdb.lookup_type ("struct %s.%s" % (class_ns, class_name))
except:
# Maybe there is no debug info for that type
return "%s.%s" % (class_ns, class_name)
#return obj.cast (gdb_type)
return "%s.%s" % (class_ns, class_name)
return class_name
except:
print sys.exc_info ()[0]
print sys.exc_info ()[1]
# FIXME: This can happen because we don't have liveness information
return self.val.cast (gdb.lookup_type ("guint64"))
class MonoMethodPrinter:
"Print a MonoMethod structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
val = self.val.dereference ()
klass = val ["klass"].dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"%s:%s ()\"" % (class_name, val ["name"].string ())
# This returns more info but requires calling into the inferior
#return "\"%s\"" % (gdb.parse_and_eval ("mono_method_full_name (%s, 1)" % (str (int (self.val.cast (gdb.lookup_type ("guint64")))))).string ())
class MonoClassPrinter:
"Print a MonoClass structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
klass = self.val.dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"%s\"" % (class_name)
# This returns more info but requires calling into the inferior
#return "\"%s\"" % (gdb.parse_and_eval ("mono_type_full_name (&((MonoClass*)%s)->byval_arg)" % (str (int ((self.val).cast (gdb.lookup_type ("guint64")))))))
def lookup_pretty_printer(val):
t = str (val.type)
if t == "object":
return ObjectPrinter (val)
if t[0:5] == "class" and t[-1] == "&":
return ObjectPrinter (val)
if t == "string":
return StringPrinter (val)
if t == "MonoMethod *":
return MonoMethodPrinter (val)
if t == "MonoClass *":
return MonoClassPrinter (val)
return None
def register_csharp_printers(obj):
"Register C# pretty-printers with objfile Obj."
if obj == None:
obj = gdb
obj.pretty_printers.append (lookup_pretty_printer)
register_csharp_printers (gdb.current_objfile())
class MonoSupport(object):
def __init__(self):
self.s_size = 0
def run_hook(self):
if os.access ("xdb.s", os.F_OK):
os.remove ("xdb.s")
gdb.execute ("set environment MONO_XDEBUG gdb")
def stop_hook(self):
# Called when the program is stopped
# Need to recompile+reload the xdb.s file if needed
# FIXME: Need to detect half-written files created when the child is
# interrupted while executing the xdb.s writing code
# FIXME: Handle appdomain unload
if os.access ("xdb.s", os.F_OK):
new_size = os.stat ("xdb.s").st_size
if new_size > self.s_size:
sofile = "xdb.so"
gdb.execute ("shell as -o xdb.o xdb.s && ld -shared -o %s xdb.o" % sofile)
# FIXME: This prints messages which couldn't be turned off
gdb.execute ("add-symbol-file %s 0" % sofile)
self.s_size = new_size
class RunHook (gdb.Command):
def __init__ (self):
super (RunHook, self).__init__ ("hook-run", gdb.COMMAND_NONE,
gdb.COMPLETE_COMMAND, pre_hook_of="run")
def invoke(self, arg, from_tty):
mono_support.run_hook ()
print "Mono support loaded."
mono_support = MonoSupport ()
# This depends on the changes in gdb-python.diff to work
#RunHook ()
# Register our hooks
# This currently cannot be done from python code
exec_file = gdb.current_objfile ().filename
# FIXME: Is there a way to detect symbolic links ?
if os.stat (exec_file).st_size != os.lstat (exec_file).st_size:
exec_file = os.readlink (exec_file)
exec_dir = os.path.dirname (exec_file)
gdb.execute ("source %s/%s-gdbinit" % (exec_dir, os.path.basename (exec_file)))
File renamed without changes.
+19
View File
@@ -0,0 +1,19 @@
# Tester script for the xdb functionality
# Run using gdb -P test-xdb.py <NORMAL GDB COMMAND LINE>
import sys
gdb.execute ("file %s" % sys.argv [0])
gdb.execute ("r --break *:* %s" % " ".join (sys.argv[1:len(sys.argv)]))
while True:
try:
if gdb.threads () == None:
break
gdb.execute("xdb")
gdb.execute("bt")
gdb.execute("info args")
gdb.execute("info locals")
gdb.execute("c")
except:
gdb.execute ("quit")
+54
View File
@@ -1,3 +1,57 @@
2009-10-13 Zoltan Varga <[email protected]>
* mono-gdb.py: Add an 'xdb' command to flush the debugging info.
2009-10-12 Zoltan Varga <[email protected]>
* mono-gdb.py: Update this to gdb 7.0.
* mono-gdbinit: Removed, no longer needed.
2009-10-09 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoSupport.run_hook): Set MONO_XDEBUG to 'gdb' to activate
the GDB support mode in the runtime.
2009-04-14 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoClassPrinter.to_string): Add a MonoClass* pretty
printer.
2009-04-12 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoMethodPrinter.to_string): Add a MonoMethod* pretty
printer.
2009-04-10 Zoltan Varga <[email protected]>
* mono-gdb.py: Update to the latest archer api.
2009-04-07 Zoltan Varga <[email protected]>
* mono-gdb.py (ObjectPrinter.__init__): Update to latest archer api.
2009-04-06 Zoltan Varga <[email protected]>
* test-xdb.py: New file, tester script for xdb.
* mono-gdb.py (stringify_class_name): Handle classes without a namespace
correctly.
* mono-gdb.py: Update after the changes to dwarfwriter.c.
2009-04-05 Zoltan Varga <[email protected]>
* mono-gdb.py: Handle superclasses in the pretty printer.
2009-03-27 Zoltan Varga <[email protected]>
* mono-gdb.py (StringPrinter.to_string): Fix support for non-ascii characters.
2009-03-20 Zoltan Varga <[email protected]>
* mono-gdb.py: Update for the latest python API on the archer branch.
2009-02-03 Zoltan Varga <[email protected]>
* mono-gdb.py: Remove the --64 argument to as, it is not needed.
+97 -69
View File
@@ -4,15 +4,10 @@
#
#
# This is a mono support mode for a python-enabled gdb:
# http://sourceware.org/gdb/wiki/PythonGdb
# This is a mono support mode for gdb 7.0 and later
# Usage:
# - copy/symlink this file, plus mono-gdbinit to the directory where the mono
# executable lives.
# - run mono under gdb, or attach to a mono process using gdb
# - Type 'xdb' in gdb to load/reload the debugging info emitted by the runtime.
# - The debug info is emitted to a file called xdb.s in the current working directory.
# When attaching to a mono process, make sure you are in the same directory.
# - copy/symlink this file to the directory where the mono executable lives.
# - run mono under gdb, or attach to a mono process started with --debug=gdb using gdb.
#
import os
@@ -24,16 +19,20 @@ class StringPrinter:
self.val = val
def to_string(self):
if int(self.val.cast (gdb.Type ("guint64"))) == 0:
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "null"
obj = self.val.cast (gdb.Type ("MonoString").pointer ()).dereference ()
obj = self.val.cast (gdb.lookup_type ("MonoString").pointer ()).dereference ()
len = obj ['length']
chars = obj ['chars']
i = 0
res = ['"']
while i < len:
c = chr ((chars.cast(gdb.Type ("gint64")) + (i * 2)).cast(gdb.Type ("gunichar2").pointer ()).dereference ())
val = (chars.cast(gdb.lookup_type ("gint64")) + (i * 2)).cast(gdb.lookup_type ("gunichar2").pointer ()).dereference ()
if val >= 256:
c = "\u%X" % val
else:
c = chr (val)
res.append (c)
i = i + 1
res.append ('"')
@@ -45,7 +44,10 @@ def stringify_class_name(ns, name):
return "byte"
if name == "String":
return "string"
return "%s.%s" % (ns, name)
if ns == "":
return name
else:
return "%s.%s" % (ns, name)
class ArrayPrinter:
"Print a C# array"
@@ -56,7 +58,7 @@ class ArrayPrinter:
self.class_name = class_name
def to_string(self):
obj = self.val.cast (gdb.Type ("MonoArray").pointer ()).dereference ()
obj = self.val.cast (gdb.lookup_type ("MonoArray").pointer ()).dereference ()
length = obj ['max_length']
return "%s [%d]" % (stringify_class_name (self.class_ns, self.class_name [0:len(self.class_name) - 2]), int(length))
@@ -64,12 +66,15 @@ class ObjectPrinter:
"Print a C# object"
def __init__(self, val):
self.val = val
if str(val.type)[-1] == "&":
self.val = val.address.cast (gdb.lookup_type ("MonoObject").pointer ())
else:
self.val = val.cast (gdb.lookup_type ("MonoObject").pointer ())
class _iterator:
def __init__(self,obj):
self.obj = obj
self.iter = self.obj.type ().fields ().__iter__ ()
self.iter = self.obj.type.fields ().__iter__ ()
pass
def __iter__(self):
@@ -77,27 +82,39 @@ class ObjectPrinter:
def next(self):
field = self.iter.next ()
return (field.name, self.obj [field.name])
try:
if str(self.obj [field.name].type) == "object":
# Avoid recursion
return (field.name, self.obj [field.name].cast (gdb.lookup_type ("void").pointer ()))
else:
return (field.name, self.obj [field.name])
except:
# Superclass
return (field.name, self.obj.cast (gdb.lookup_type ("%s" % (field.name))))
def children(self):
# FIXME: It would be easier if gdb.Value would support iteration itself
# It would also be better if we could return None
if int(self.val.cast (gdb.Type ("guint64"))) == 0:
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return {}.__iter__ ()
try:
obj = self.val.cast (gdb.Type ("MonoObject").pointer ()).dereference ()
obj = self.val.dereference ()
class_ns = obj ['vtable'].dereference ()['klass'].dereference ()['name_space'].string ()
class_name = obj ['vtable'].dereference ()['klass'].dereference ()['name'].string ()
gdb_type = gdb.Type ("struct %s.%s" % (class_ns, class_name))
if class_name [-2:len(class_name)] == "[]":
return {}.__iter__ ()
gdb_type = gdb.lookup_type ("struct %s_%s" % (class_ns.replace (".", "_"), class_name))
return self._iterator(obj.cast (gdb_type))
except:
print sys.exc_info ()[0]
print sys.exc_info ()[1]
return {}.__iter__ ()
def to_string(self):
if int(self.val.cast (gdb.Type ("guint64"))) == 0:
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "null"
try:
obj = self.val.cast (gdb.Type ("MonoObject").pointer ()).dereference ()
obj = self.val.dereference ()
class_ns = obj ['vtable'].dereference ()['klass'].dereference ()['name_space'].string ()
class_name = obj ['vtable'].dereference ()['klass'].dereference ()['name'].string ()
if class_ns == "System" and class_name == "String":
@@ -106,7 +123,7 @@ class ObjectPrinter:
return ArrayPrinter (self.val,class_ns,class_name).to_string ()
if class_ns != "":
try:
gdb_type = gdb.Type ("struct %s.%s" % (class_ns, class_name))
gdb_type = gdb.lookup_type ("struct %s.%s" % (class_ns, class_name))
except:
# Maybe there is no debug info for that type
return "%s.%s" % (class_ns, class_name)
@@ -117,7 +134,52 @@ class ObjectPrinter:
print sys.exc_info ()[0]
print sys.exc_info ()[1]
# FIXME: This can happen because we don't have liveness information
return self.val.cast (gdb.Type ("guint64"))
return self.val.cast (gdb.lookup_type ("guint64"))
class MonoMethodPrinter:
"Print a MonoMethod structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
val = self.val.dereference ()
klass = val ["klass"].dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"%s:%s ()\"" % (class_name, val ["name"].string ())
# This returns more info but requires calling into the inferior
#return "\"%s\"" % (gdb.parse_and_eval ("mono_method_full_name (%s, 1)" % (str (int (self.val.cast (gdb.lookup_type ("guint64")))))).string ())
class MonoClassPrinter:
"Print a MonoClass structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
klass = self.val.dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"%s\"" % (class_name)
# This returns more info but requires calling into the inferior
#return "\"%s\"" % (gdb.parse_and_eval ("mono_type_full_name (&((MonoClass*)%s)->byval_arg)" % (str (int ((self.val).cast (gdb.lookup_type ("guint64")))))))
def lookup_pretty_printer(val):
t = str (val.type)
if t == "object":
return ObjectPrinter (val)
if t[0:5] == "class" and t[-1] == "&":
return ObjectPrinter (val)
if t == "string":
return StringPrinter (val)
if t == "MonoMethod *":
return MonoMethodPrinter (val)
if t == "MonoClass *":
return MonoClassPrinter (val)
return None
def register_csharp_printers(obj):
"Register C# pretty-printers with objfile Obj."
@@ -125,57 +187,23 @@ def register_csharp_printers(obj):
if obj == None:
obj = gdb
obj.pretty_printers['object'] = ObjectPrinter
obj.pretty_printers['string'] = StringPrinter
obj.pretty_printers.append (lookup_pretty_printer)
# This command will flush the debugging info collected by the runtime
class XdbCommand (gdb.Command):
def __init__ (self):
super (XdbCommand, self).__init__ ("xdb", gdb.COMMAND_NONE,
gdb.COMPLETE_COMMAND)
def invoke(self, arg, from_tty):
gdb.execute ("call mono_xdebug_flush ()")
register_csharp_printers (gdb.current_objfile())
class MonoSupport(object):
XdbCommand ()
def __init__(self):
self.s_size = 0
def run_hook(self):
if os.access ("xdb.s", os.F_OK):
os.remove ("xdb.s")
gdb.execute ("set environment MONO_XDEBUG 1")
def stop_hook(self):
# Called when the program is stopped
# Need to recompile+reload the xdb.s file if needed
# FIXME: Need to detect half-written files created when the child is
# interrupted while executing the xdb.s writing code
# FIXME: Handle appdomain unload
if os.access ("xdb.s", os.F_OK):
new_size = os.stat ("xdb.s").st_size
if new_size > self.s_size:
sofile = "xdb.so"
gdb.execute ("shell as -o xdb.o xdb.s && ld -shared -o %s xdb.o" % sofile)
# FIXME: This prints messages which couldn't be turned off
gdb.execute ("add-symbol-file %s 0" % sofile)
self.s_size = new_size
class RunHook (gdb.Command):
def __init__ (self):
super (RunHook, self).__init__ ("hook-run", gdb.COMMAND_NONE,
gdb.COMPLETE_COMMAND, pre_hook_of="run")
def invoke(self, arg, from_tty):
mono_support.run_hook ()
gdb.execute ("set environment MONO_XDEBUG gdb")
print "Mono support loaded."
mono_support = MonoSupport ()
# This depends on the changes in gdb-python.diff to work
#RunHook ()
# Register our hooks
# This currently cannot be done from python code
exec_file = gdb.current_objfile ().filename
# FIXME: Is there a way to detect symbolic links ?
if os.stat (exec_file).st_size != os.lstat (exec_file).st_size:
exec_file = os.readlink (exec_file)
exec_dir = os.path.dirname (exec_file)
gdb.execute ("source %s/%s-gdbinit" % (exec_dir, os.path.basename (exec_file)))
+19
View File
@@ -0,0 +1,19 @@
# Tester script for the xdb functionality
# Run using gdb -P test-xdb.py <NORMAL GDB COMMAND LINE>
import sys
gdb.execute ("file %s" % sys.argv [0])
gdb.execute ("r --break *:* %s" % " ".join (sys.argv[1:len(sys.argv)]))
while True:
try:
if gdb.threads () == None:
break
gdb.execute("xdb")
gdb.execute("bt")
gdb.execute("info args")
gdb.execute("info locals")
gdb.execute("c")
except:
gdb.execute ("quit")
+6
View File
@@ -0,0 +1,6 @@
2009-02-19 Rodrigo Kumpera <[email protected]>
* LockTracerDecoder.cs: Initial version of the lock tracers decoder.
+519
View File
@@ -0,0 +1,519 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Globalization;
using System.Runtime.InteropServices;
public enum Record {
MustNotHoldAny,
MustNotHoldOne,
MustHoldOne,
LockAcquired,
LockReleased
}
public struct LockRecord {
public SimLock lk;
public string frame;
public LockRecord (SimLock lk, string frame) {
this.lk = lk;
this.frame = frame;
}
}
public class SimThread
{
int thread;
List <LockRecord> locks = new List <LockRecord> ();
public SimThread (int t)
{
this.thread = t;
}
public bool HoldsLock (SimLock lk) {
foreach (var l in locks) {
if (l.lk == lk)
return true;
}
return false;
}
public int HoldCount (SimLock lk) {
int res = 0;
foreach (var l in locks)
if (l.lk == lk)
++res;
return res;
}
public void Lock (SimLock lk, string frame) {
foreach (LockRecord lr in locks) {
if (lk.WarnAbout (this, lr.lk))
Console.WriteLine ("WARNING: tried to acquire lock {0} at {1} while holding {2} at {3}: {4}", lk, frame, lr.lk, lr.frame, lk.GetWarningMessage (this, lr.lk));
else if (!lk.IsValid (this, lr.lk))
Console.WriteLine ("ERROR: tried to acquire lock {0} at {1} while holding {2} at {3}: {4}", lk, frame, lr.lk, lr.frame, lk.GetErrorMessage (this, lr.lk));
}
locks.Add (new LockRecord (lk, frame));
}
public void Release (SimLock lk, string frame) {
if (locks.Count == 0) {
Console.WriteLine ("ERROR: released lock {0} at {1} while holding no locks!", lk, frame);
return;
}
LockRecord top = locks [locks.Count - 1];
if (top.lk != lk && !(lk.IsGlobalLock && HoldCount (lk) > 1)) {
Console.WriteLine ("WARNING: released lock {0} at {1} out of order with {2} at {3}!", lk, frame, top.lk, top.frame);
}
for (int i = locks.Count -1; i >= 0; --i) {
if (locks [i].lk == lk) {
locks.RemoveAt (i);
break;
}
}
}
}
/*
LOCK RULES
Simple locks:
Can be acquired at any point regardless of which locks are taken or not.
No other locks can be acquired or released while holding a simple lock.
Reentrancy is not recomended. (warning)
Simple locks are leaf locks on the lock lattice.
Complex locks:
Must respect locking order, which form a lattice.
IOW, to take a given lock, only it's parents might have been taken.
Reentrancy is ok.
Locks around resources count as separate instances of the hierarchy.
Global locks:
Must respect locking order.
Must be the at the botton of the locking lattice.
Can be taken out-of-order by other locks given that it was previously acquired.
Adding global locks is not to be taken lightly.
The current lock hierarchy:
loader lock
domain lock
domain jit lock
simple locks
Examples:
You can take the loader lock without holding a domain lock.
You cannot take a domain lock if the loader lock is held.
You cannot take a domain lock while holding the lock to another domain.
*/
public enum Lock {
Invalid,
LoaderLock,
ImageDataLock,
DomainLock,
DomainAssembliesLock,
DomainJitCodeHashLock,
}
public class SimLock
{
Lock kind;
int id;
public SimLock (Lock kind, int id) {
this.kind = kind;
this.id = id;
}
static int GetLockOrder (Lock kind) {
switch (kind) {
case Lock.LoaderLock:
return 0;
case Lock.DomainLock:
return 1;
case Lock.DomainJitCodeHashLock:
return 2;
default:
return 3;
}
}
bool IsParent (SimLock other) {
return GetLockOrder (kind) > GetLockOrder (other.kind);
}
public bool IsSimpleLock {
get { return GetLockOrder (kind) == 3; }
}
public bool IsGlobalLock {
get { return kind == Lock.LoaderLock; }
}
/*locked is already owned by the thread, 'this' is the new one*/
bool Compare (SimThread thread, SimLock locked, out bool isWarning, out string msg)
{
isWarning = false;
msg = null;
if (locked != this) {
if (!IsParent (locked)) {
if (IsGlobalLock) { /*acquiring a global lock*/
if (!thread.HoldsLock (this)) { /*does the thread alread hold it?*/
msg = "Acquired a global lock after a regular lock without having it before.";
return false;
}
} else {
msg = "Hierarchy violation.";
return false;
}
}
} else if (IsSimpleLock) {
msg = "Avoid taking simple locks recursively";
isWarning = true;
return false;
}
return true;
}
public bool IsValid (SimThread thread, SimLock locked) {
bool warn;
string msg;
return Compare (thread, locked, out warn, out msg);
}
public bool WarnAbout (SimThread thread, SimLock locked) {
bool warn;
string msg;
Compare (thread, locked, out warn, out msg);
return warn;
}
public string GetWarningMessage (SimThread thread, SimLock locked) {
bool warn;
string msg;
Compare (thread, locked, out warn, out msg);
return warn ? msg : null;
}
public string GetErrorMessage (SimThread thread, SimLock locked) {
bool warn;
string msg;
bool res = Compare (thread, locked, out warn, out msg);
return !res && !warn ? msg : null;
}
public override string ToString () {
return String.Format ("{0}", kind);
}
}
public class LockSimulator
{
static Dictionary <int, SimThread> threads = new Dictionary <int, SimThread> ();
static Dictionary <int, SimLock> locks = new Dictionary <int, SimLock> ();
SymbolTable syms;
public LockSimulator (SymbolTable s) { this.syms = s; }
SimLock GetLock (Trace t) {
if (locks.ContainsKey (t.lockPtr))
return locks [t.lockPtr];
else {
return locks [t.lockPtr] = new SimLock (t.lockKind, t.lockPtr);
}
}
SimThread GetThread (Trace t) {
if (threads.ContainsKey (t.thread))
return threads [t.thread];
else
return threads [t.thread] = new SimThread (t.thread);
}
public void PlayBack (IEnumerable<Trace> traces) {
foreach (var t in traces) {
SimThread thread = GetThread (t);
SimLock lk = GetLock (t);
string frame = t.GetUsefullTopTrace (this.syms);
switch (t.record) {
case Record.MustNotHoldAny:
case Record.MustNotHoldOne:
case Record.MustHoldOne:
throw new Exception ("not supported");
case Record.LockAcquired:
thread.Lock (lk, frame);
break;
case Record.LockReleased:
thread.Release (lk, frame);
break;
default:
throw new Exception ("Invalid trace record: "+t.record);
}
}
}
}
public class Trace {
public int thread;
public Record record;
public Lock lockKind;
public int lockPtr;
int[] frames;
static readonly string[] BAD_FRAME_METHODS = new string[] {
"mono_loader_lock",
"mono_loader_unlock",
"mono_image_lock",
"mono_image_unlock",
};
public Trace (string[] fields) {
thread = fields [0].ParseHex ();
record = (Record)fields [1].ParseDec ();
lockKind = (Lock)fields [2].ParseDec ();
lockPtr = fields [3].ParseHex ();
frames = new int [fields.Length - 4];
for (int i = 0; i < frames.Length; ++i)
frames [i] = fields [i + 4].ParseHex ();
}
public void Dump (SymbolTable table) {
Console.WriteLine ("{0:x} {1} {2} {3:x}", thread, record, lockKind, lockPtr);
for (int i = 0; i < frames.Length; ++i)
Console.WriteLine ("\t{0}", table.Translate (frames [i]));
}
public string GetUsefullTopTrace (SymbolTable syms) {
for (int i = 0; i < frames.Length; ++i) {
string str = syms.Translate (frames [i]);
bool ok = true;
for (int j = 0; j < BAD_FRAME_METHODS.Length; ++j) {
if (str.IndexOf (BAD_FRAME_METHODS [j]) >= 0) {
ok = false;
break;
}
}
if (ok)
return str;
}
return "[unknown]";
}
}
public class Symbol : IComparable<Symbol>
{
public int offset;
public int size;
public string name;
public Symbol (int o, int size, string n) {
this.offset = o;
this.size = size;
this.name = n;
}
public int CompareTo(Symbol other) {
return offset - other.offset;
}
}
public interface SymbolTable {
string Translate (int offset);
}
public class OsxSymbolTable : SymbolTable
{
Symbol[] table;
const int MAX_FUNC_SIZE = 0x20000;
public OsxSymbolTable (string binary) {
Load (binary);
}
void Load (string binary) {
ProcessStartInfo psi = new ProcessStartInfo ("gobjdump", "-t "+binary);
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
var proc = Process.Start (psi);
var list = new List<Symbol> ();
string line;
while ((line = proc.StandardOutput.ReadLine ()) != null) {
string[] fields = line.Split(new char[] {' ', '\t'}, StringSplitOptions.RemoveEmptyEntries);
if (fields.Length < 4)
continue;
if (!(fields [1].Equals ("g") || fields [1].Equals ("d")))
continue;
if (!fields [2].Equals ("*UND*"))
continue;
int offset = fields [0].ParseHex ();
string name = fields [3];
if (offset != 0)
list.Add (new Symbol (offset, 0, name));
}
table = new Symbol [list.Count];
list.CopyTo (table, 0);
Array.Sort (table);
}
public string Translate (int offset) {
Symbol sym = null;
int res = Array.BinarySearch (table, new Symbol (offset, 0, null));
if (res >= 0)
return table [res].name;
res = ~res;
if (res >= table.Length)
sym = table [table.Length - 1];
else if (res != 0)
sym = table [res - 1];
if (sym != null) {
int size = Math.Max (sym.size, 10);
if (offset - sym.offset < size)
return sym.name;
}
return String.Format ("[{0:x}]", offset);
}
}
public class LinuxSymbolTable : SymbolTable
{
Symbol[] table;
const int MAX_FUNC_SIZE = 0x20000;
public LinuxSymbolTable (string binary) {
Load (binary);
}
void Load (string binary) {
ProcessStartInfo psi = new ProcessStartInfo ("objdump", "-t "+binary);
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
var proc = Process.Start (psi);
var list = new List<Symbol> ();
string line;
while ((line = proc.StandardOutput.ReadLine ()) != null) {
string[] fields = line.Split(new char[] {' ', '\t'}, StringSplitOptions.RemoveEmptyEntries);
if (fields.Length < 6)
continue;
if (fields [3] != ".text" || fields [2] != "F")
continue;
int offset = fields [0].ParseHex ();
int size = fields [4].ParseHex ();
string name = fields [fields.Length - 1];
if (offset != 0)
list.Add (new Symbol (offset, size, name));
}
table = new Symbol [list.Count];
list.CopyTo (table, 0);
Array.Sort (table);
}
public string Translate (int offset) {
Symbol sym = null;
int res = Array.BinarySearch (table, new Symbol (offset, 0, null));
if (res >= 0)
return table [res].name;
res = ~res;
if (res >= table.Length)
sym = table [table.Length - 1];
else if (res != 0)
sym = table [res - 1];
if (sym != null && offset - sym.offset < MAX_FUNC_SIZE)
return sym.name;
return String.Format ("[{0:x}]", offset);
}
}
public class TraceDecoder
{
string file;
public TraceDecoder (string file) {
this.file = file;
}
public IEnumerable<Trace> GetTraces () {
using (StreamReader reader = new StreamReader (file)) {
string line;
while ((line = reader.ReadLine ()) != null) {
string[] fields = line.Split(new char[] {','}, StringSplitOptions.RemoveEmptyEntries);
if (fields.Length >= 7) {
yield return new Trace (fields);
}
}
}
}
}
public class Driver
{
[DllImport ("libc")]
static extern int uname (IntPtr buf);
static bool IsOSX ()
{
bool isOsx = false;
IntPtr buf = Marshal.AllocHGlobal (8192);
if (uname (buf) == 0) {
string os = Marshal.PtrToStringAnsi (buf);
isOsx = os == "Darwin";
}
Marshal.FreeHGlobal (buf);
return isOsx;
}
static void Main (string[] args) {
SymbolTable syms;
if (args.Length != 2) {
Console.WriteLine ("usage: LockTracerDecoder.exe /path/to/mono /path/to/locks.pid");
return;
}
if (IsOSX ())
syms = new OsxSymbolTable (args [0]);
else
syms = new LinuxSymbolTable (args [0]);
var decoder = new TraceDecoder (args [1]);
var sim = new LockSimulator (syms);
sim.PlayBack (decoder.GetTraces ());
}
}
public static class Utils
{
public static int ParseHex (this string number) {
while (number.Length > 1 && (number [0] == '0' || number [0] == 'x' || number [0] == 'X'))
number = number.Substring (1);
return int.Parse (number, NumberStyles.HexNumber);
}
public static int ParseDec (this string number) {
while (number.Length > 1 && number [0] == '0')
number = number.Substring (1);
return int.Parse (number);
}
}
+4
View File
@@ -0,0 +1,4 @@
Name: Mono.Web
Description: Mono ASP.NET extension classes
Version: 2.0.0.0
Libs: -r:@prefix@/lib/mono/gac/Mono.Web/2.0.0.0__0738eb9f132ed756/Mono.Web.dll
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
+27
View File
@@ -1,3 +1,30 @@
2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: the 'Message Layout' can now handle
self-referencing types. Fixes bug #529353.
2009-08-05 Atsushi Enomoto <[email protected]>
* web.config: add WCF assemblies as references at compilation.
* machine.config: add some missing WCF sections (new in 3.5).
2009-05-28 Atsushi Enomoto <[email protected]>
* machine.config: fix WCF diagnostics section name.
2009-03-31 Marek Habersack <[email protected]>
* DefaultWsdlHelpGenerator.aspx: the link element in <head> must
be created using Response.Write, as the code expression in the
href attribute is otherwise treated verbatim. This is the same as
with .NET. Fixes bug #490497
2009-03-27 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: disable the test form
when only Soap is supported.
Bug #342073 fixed.
2009-01-23 Atsushi Enomoto <[email protected]>
* web.config : added .svc handler.
+27 -9
View File
@@ -10,6 +10,7 @@
--%>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Xml.Serialization" %>
<%@ Import Namespace="System.Xml" %>
@@ -122,15 +123,20 @@ void BuildOperationInfo ()
// Protocols supported by the operation
CurrentOperationProtocols = "";
WebServiceProtocols testProtocols = 0;
ArrayList prots = FindServiceProtocols (CurrentOperationName);
for (int n=0; n<prots.Count; n++) {
string prot = (string) prots [n];
if (n != 0) CurrentOperationProtocols += ", ";
CurrentOperationProtocols += (string) prots[n];
CurrentOperationProtocols += prot;
if (prot == "HttpGet")
testProtocols |= WebServiceProtocols.HttpGet;
else if (prot == "HttpPost") {
testProtocols |= WebServiceProtocols.HttpPost;
if (Context.Request.IsLocal)
testProtocols |= WebServiceProtocols.HttpPostLocalhost;
}
}
WebServiceProtocols testProtocols = WebServiceProtocols.HttpGet | WebServiceProtocols.HttpPost;
if (Context.Request.IsLocal)
testProtocols |= WebServiceProtocols.HttpPostLocalhost;
CurrentOperationSupportsTest = (WebServicesSection.Current.EnabledProtocols & testProtocols) != 0;
// Operation format
@@ -1030,7 +1036,7 @@ public class HtmlSampleGenerator: SampleGenerator
if (elem == null) throw new InvalidOperationException ("Element not found: " + qname);
WriteElementSample (xtw, qname.Namespace, elem);
}
void WriteElementSample (XmlTextWriter xtw, string ns, XmlSchemaElement elem)
{
bool sharedAnnType = false;
@@ -1124,9 +1130,18 @@ public class HtmlSampleGenerator: SampleGenerator
{
WriteAttributes (xtw, stype.Attributes, stype.AnyAttribute);
}
Dictionary<XmlSchemaComplexType,int> recursed_types = new Dictionary<XmlSchemaComplexType,int> ();
void WriteComplexTypeElements (XmlTextWriter xtw, string ns, XmlSchemaComplexType stype)
{
int prev = 0;
if (recursed_types.ContainsKey (stype))
prev = recursed_types [stype];
if (prev > 1)
return;
recursed_types [stype] = ++prev;
if (stype.Particle != null)
WriteParticleComplexContent (xtw, ns, stype.Particle);
else
@@ -1136,6 +1151,8 @@ public class HtmlSampleGenerator: SampleGenerator
else if (stype.ContentModel is XmlSchemaComplexContent)
WriteComplexContent (xtw, ns, (XmlSchemaComplexContent)stype.ContentModel);
}
prev = recursed_types [stype];
recursed_types [stype] = --prev;
}
void WriteAttributes (XmlTextWriter xtw, XmlSchemaObjectCollection atts, XmlSchemaAnyAttribute anyat)
@@ -1516,8 +1533,9 @@ public class HtmlSampleGenerator: SampleGenerator
</script>
<head runat="server">
<link rel="alternate" type="text/xml" href="<%=Request.FilePath%>?disco"/>
<%
Response.Write ("<link rel=\"alternate\" type=\"text/xml\" href=\"" + Request.FilePath + "?disco\"/>");
%>
<title><%=WebServiceName%> Web Service</title>
<style type="text/css">
BODY { font-family: Arial; margin-left: 20px; margin-top: 20px; font-size: x-small}
+17 -1
View File
@@ -79,12 +79,13 @@
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostic" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<connectionStrings>
@@ -252,6 +253,21 @@
</providers>
</profile>
</system.web>
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="enableWebScript" type="System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttp" type="System.ServiceModel.Configuration.WebHttpElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</behaviorExtensions>
<bindingElementExtensions>
<add name="webMessageEncoding" type="System.ServiceModel.Configuration.WebMessageEncodingElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingElementExtensions>
<bindingExtensions>
<add name="webHttpBinding" type="System.ServiceModel.Configuration.WebHttpBindingCollectionElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingExtensions>
</extensions>
</system.serviceModel>
</configuration>
+4
View File
@@ -95,6 +95,10 @@
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
+9
View File
@@ -0,0 +1,9 @@
2009-08-06 Atsushi Enomoto <[email protected]>
* web.config: add WCF assemblies as references at compilation.
* machine.config: add some missing WCF sections (new in 3.5).
2009-07-24 Jb Evain <[email protected]>
* Initial import of the net_4_0 specific files.
+12
View File
@@ -0,0 +1,12 @@
SUBDIRS =
monodir = $(sysconfdir)/mono/4.0
EXTRA_DIST = machine.config \
web.config \
settings.map
mono_DATA = machine.config \
web.config \
settings.map
+274
View File
@@ -0,0 +1,274 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="configProtectedData" type="System.Configuration.ProtectedConfigurationSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="appSettings" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="connectionStrings" type="System.Configuration.ConnectionStringsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mscorlib" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="runtime" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="assemblyBinding" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="satelliteassemblies" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="startup" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="system.codedom" type="System.CodeDom.Compiler.CodeDomConfigurationHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.data" type="System.Data.Common.DbProviderFactoriesConfigurationHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.diagnostics" type="System.Diagnostics.DiagnosticsConfigurationHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.runtime.remoting" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<section name="system.windows.forms" type="System.Windows.Forms.WindowsFormsSection, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="windows" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="strongNames" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<sectionGroup name="system.web" type="System.Web.Configuration.SystemWebSectionGroup, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="anonymousIdentification" type="System.Web.Configuration.AnonymousIdentificationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authentication" type="System.Web.Configuration.AuthenticationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authorization" type="System.Web.Configuration.AuthorizationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="browserCaps" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="clientTarget" type="System.Web.Configuration.ClientTargetSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="compilation" type="System.Web.Configuration.CompilationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="customErrors" type="System.Web.Configuration.CustomErrorsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="deployment" type="System.Web.Configuration.DeploymentSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" />
<section name="globalization" type="System.Web.Configuration.GlobalizationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="healthMonitoring" type="System.Web.Configuration.HealthMonitoringSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="hostingEnvironment" type="System.Web.Configuration.HostingEnvironmentSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="httpCookies" type="System.Web.Configuration.HttpCookiesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpModules" type="System.Web.Configuration.HttpModulesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpRuntime" type="System.Web.Configuration.HttpRuntimeSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="identity" type="System.Web.Configuration.IdentitySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="machineKey" type="System.Web.Configuration.MachineKeySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="membership" type="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mobileControls" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="deviceFilters" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="pages" type="System.Web.Configuration.PagesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="processModel" type="System.Web.Configuration.ProcessModelSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" allowLocation="false" />
<section name="profile" type="System.Web.Configuration.ProfileSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="roleManager" type="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="securityPolicy" type="System.Web.Configuration.SecurityPolicySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="sessionPageState" type="System.Web.Configuration.SessionPageStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="sessionState" type="System.Web.Configuration.SessionStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="siteMap" type="System.Web.Configuration.SiteMapSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="trace" type="System.Web.Configuration.TraceSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="trust" type="System.Web.Configuration.TrustSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="urlMappings" type="System.Web.Configuration.UrlMappingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="webControls" type="System.Web.Configuration.WebControlsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webParts" type="System.Web.Configuration.WebPartsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webServices" type="System.Web.Services.Configuration.WebServicesSection, System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="xhtmlConformance" type="System.Web.Configuration.XhtmlConformanceSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<sectionGroup name="caching" type="System.Web.Configuration.SystemWebCachingSectionGroup, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="cache" type="System.Web.Configuration.CacheSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="outputCache" type="System.Web.Configuration.OutputCacheSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="outputCacheSettings" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="sqlCacheDependency" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
<section name="monoSettings" type="System.Web.Configuration.MonoSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</sectionGroup>
<sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="authenticationModules" type="System.Net.Configuration.AuthenticationModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="connectionManagement" type="System.Net.Configuration.ConnectionManagementSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="defaultProxy" type="System.Net.Configuration.DefaultProxySection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="mailSettings" type="System.Net.Configuration.MailSettingsSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="smtp" type="System.Net.Configuration.SmtpSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="requestCaching" type="System.Net.Configuration.RequestCachingSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="settings" type="System.Net.Configuration.SettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="webRequestModules" type="System.Net.Configuration.WebRequestModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.drawing" type="System.Configuration.NameValueSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.serviceModel" type="System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="behaviors" type="System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<connectionStrings>
<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
<add name="LocalSqliteServer" connectionString="Data Source=|DataDirectory|/aspnetdb.sqlite;version=3" providerName="Mono.Data.Sqlite"/>
</connectionStrings>
<configProtectedData defaultProvider="RsaProtectedConfigurationProvider">
<providers>
<add name="RsaProtectedConfigurationProvider" type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="" keyContainerName="MonoFrameworkConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false" />
<add name="DataProtectionConfigurationProvider" type="System.Configuration.DpapiProtectedConfigurationProvider, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="" useMachineProtection="true" keyEntropy="" />
</providers>
</configProtectedData>
<system.net>
<authenticationModules>
<add type="System.Net.BasicClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.DigestClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.NtlmClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</authenticationModules>
<webRequestModules>
<add prefix="http" type="System.Net.HttpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="https" type="System.Net.HttpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
<settings>
<ipv6 enabled="false"/>
</settings>
</system.net>
<system.runtime.remoting>
<application>
<channels>
<channel ref="http client" displayName="http client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="tcp client" displayName="tcp client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="ipc client" displayName="ipc client (delay loaded)" delayLoadAsClientChannel="true" />
</channels>
</application>
<channels>
<channel id="http" type="System.Runtime.Remoting.Channels.Http.HttpChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http client" type="System.Runtime.Remoting.Channels.Http.HttpClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http server" type="System.Runtime.Remoting.Channels.Http.HttpServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp" type="System.Runtime.Remoting.Channels.Tcp.TcpChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp client" type="System.Runtime.Remoting.Channels.Tcp.TcpClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp server" type="System.Runtime.Remoting.Channels.Tcp.TcpServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc" type="System.Runtime.Remoting.Channels.Ipc.IpcChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc client" type="System.Runtime.Remoting.Channels.Ipc.IpcClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc server" type="System.Runtime.Remoting.Channels.Ipc.IpcServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</channels>
<channelSinkProviders>
<clientProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapClientFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</clientProviders>
<serverProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapServerFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<provider id="wsdl" type="System.Runtime.Remoting.MetadataServices.SdlChannelSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</serverProviders>
</channelSinkProviders>
</system.runtime.remoting>
<appSettings>
<!--<add key="yourkey" value="your value" /> -->
<!--<remove key="a key defined higher in the hierarchy" /> -->
<!--<clear/> Removes all defined settings -->
</appSettings>
<system.diagnostics>
<trace autoflush="false" indentsize="4" />
</system.diagnostics>
<system.drawing>
</system.drawing>
<system.data>
<DbProviderFactories>
<add name="Mono Sqlite Data Provider" invariant="Mono.Data.SqliteClient"
description="Mono Framework Data Provider for SQLite (old version)"
type="Mono.Data.SqliteClient.SqliteFactory, Mono.Data.SqliteClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
<add name="Mono Sqlite Provider" invariant="Mono.Data.Sqlite"
description="Mono Framework Data Provider for SQLite (new version)"
type="Mono.Data.Sqlite.SqliteFactory, Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
<add name="Odbc Data Provider" invariant="System.Data.Odbc"
description=".Net Framework Data Provider for Odbc"
type="System.Data.Odbc.OdbcFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="OleDb Data Provider" invariant="System.Data.OleDb"
description=".Net Framework Data Provider for OleDb"
type="System.Data.OleDb.OleDbFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="OracleClient Data Provider" invariant="System.Data.OracleClient"
description=".Net Framework Data Provider for Oracle"
type="System.Data.OracleClient.OracleClientFactory, System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="SqlClient Data Provider" invariant="System.Data.SqlClient"
description=".Net Framework Data Provider for SqlServer"
type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="Sybase Data Provider" invariant="Mono.Data.SybaseClient"
description=".Net Framework Data Provider for Sybase"
type="Mono.Data.SybaseClient.SybaseClientFactory, Mono.Data.SybaseClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
</DbProviderFactories>
</system.data>
<mscorlib>
<cryptographySettings>
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
<strongNames>
<pubTokenMapping>
<!-- ECMA key -->
<map Token="b77a5c561934e089" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (final) key -->
<map Token="b03f5f7f11d50a3a" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (Web Service Enhancement) key -->
<map Token="31bf3856ad364e35" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- IBM (DB2 Data Provider) key -->
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
</pubTokenMapping>
</strongNames>
<system.web>
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpSoap12"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
<conformanceWarnings>
<add name="BasicProfile1_1"/>
</conformanceWarnings>
<wsdlHelpGenerator href="DefaultWsdlHelpGenerator.aspx" />
</webServices>
<membership>
<providers>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
<!-- <add name="AspNetSqlMembershipProvider" type="Mainsoft.Web.Security.GenericMembershipProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
</providers>
</membership>
<roleManager>
<providers>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" applicationName="/" connectionStringName="LocalSqlServer" />
<!-- <add name="AspNetSqlRoleProvider" type="Mainsoft.Web.Security.GenericRoleProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
</providers>
</roleManager>
<profile>
<providers>
<add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</profile>
</system.web>
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="enableWebScript" type="System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttp" type="System.ServiceModel.Configuration.WebHttpElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</behaviorExtensions>
<bindingElementExtensions>
<add name="webMessageEncoding" type="System.ServiceModel.Configuration.WebMessageEncodingElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingElementExtensions>
<bindingExtensions>
<add name="webHttpBinding" type="System.ServiceModel.Configuration.WebHttpBindingCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingExtensions>
</extensions>
</system.serviceModel>
</configuration>
+48
View File
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
any expression understood by the mapper to designate the section region to modify.
-->
<what value="providers">
<!-- 'what' can contain any number of occurrences of any three elements:
replace - replace the designated region
add - add a new entry to the region
clear - clear the region
remove - remove the designatedregion
The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the
mapper to peruse.
-->
<replace name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqliteMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqliteServer" />
</what>
</map>
<map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
any expression understood by the mapper to designate the section region to modify.
-->
<what value="providers">
<!-- 'what' can contain any number of occurrences of any three elements:
replace - replace the designated region
add - add a new entry to the region
clear - clear the region
remove - remove the designatedregion
The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the
mapper to peruse.
-->
<replace name="AspNetSqlRoleProvider"
type="System.Web.Security.SqliteRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqliteServer" />
</what>
</map>
</settingsMap>
+154
View File
@@ -0,0 +1,154 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<monoSettings>
<compilersCompatibility>
<compiler language="c#;cs;csharp" extension=".cs" compilerOptions="/nowarn:0169"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilersCompatibility>
</monoSettings>
<authorization>
<allow users="*" />
</authorization>
<httpHandlers>
<add verb="*" path="Trace.axd" type="System.Web.Handlers.TraceHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="GET" path="WebResource.axd" type="System.Web.Handlers.AssemblyResourceLoader, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.master" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.resources" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.skin" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.browser" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.sitemap" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.webinfo" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.resx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.Config" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.cs" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.vb" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.csproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.vbproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.licx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.dll" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.rem" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.soap" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpHandlers>
<httpModules>
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="RoleManager" type="System.Web.Security.RoleManagerModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpModules>
<authentication mode="Forms">
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
<credentials passwordFormat="Clear">
<!--<user name="gonzalo" password="gonz"/>-->
</credentials>
</forms>
</authentication>
<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
<globalization requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"/>
<!--
culture="en-US"
uiculture="en-US" />
-->
<sessionState mode="InProc" />
<pages>
<namespaces>
<add namespace="System" />
<add namespace="System.Collections" />
<add namespace="System.Collections.Specialized" />
<add namespace="System.Configuration" />
<add namespace="System.Text" />
<add namespace="System.Text.RegularExpressions" />
<add namespace="System.Web" />
<add namespace="System.Web.Caching" />
<add namespace="System.Web.SessionState" />
<add namespace="System.Web.Security" />
<add namespace="System.Web.Profile" />
<add namespace="System.Web.UI" />
<add namespace="System.Web.UI.WebControls" />
<!-- <add namespace="System.Web.UI.WebControls.WebParts" /> -->
<add namespace="System.Web.UI.HtmlControls" />
</namespaces>
</pages>
<webControls clientScriptsLocation="/web_scripts" />
<compilation debug="false" defaultLanguage="c#" explicit="true" strict="false" >
<assemblies>
<!--<add assembly="mscorlib" /> -->
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
<expressionBuilders>
<add expressionPrefix="Resources"
type="System.Web.Compilation.ResourceExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="ConnectionStrings"
type="System.Web.Compilation.ConnectionStringsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="AppSettings"
type="System.Web.Compilation.AppSettingsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</expressionBuilders>
<buildProviders>
<add extension=".aspx" type="System.Web.Compilation.PageBuildProvider" />
<add extension=".ascx" type="System.Web.Compilation.UserControlBuildProvider" />
<add extension=".master" type="System.Web.Compilation.MasterPageBuildProvider" />
<add extension=".asmx" type="System.Web.Compilation.WebServiceBuildProvider" />
<add extension=".ashx" type="System.Web.Compilation.WebHandlerBuildProvider" />
<add extension=".soap" type="System.Web.Compilation.WebServiceBuildProvider" />
<add extension=".resx" type="System.Web.Compilation.ResXBuildProvider" />
<add extension=".resources" type="System.Web.Compilation.ResourcesBuildProvider" />
<add extension=".wsdl" type="System.Web.Compilation.WsdlBuildProvider" />
<add extension=".xsd" type="System.Web.Compilation.XsdBuildProvider" />
<add extension=".js" type="System.Web.Compilation.ForceCopyBuildProvider" />
<add extension=".lic" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".licx" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".exclude" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" />
</buildProviders>
</compilation>
<httpRuntime executionTimeout="110"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="5000" />
<clientTarget>
<add alias="ie5" userAgent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)" />
<add alias="ie4" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="uplevel" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="downlevel" userAgent="Unknown" />
</clientTarget>
<siteMap>
<providers>
<add name="AspNetXmlSiteMapProvider"
description="Default site map provider that reads in .sitemap xml files."
type="System.Web.XmlSiteMapProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
siteMapFile="Web.sitemap" />
</providers>
</siteMap>
</system.web>
</configuration>
-7
View File
@@ -1,7 +0,0 @@
assemblies_dir=@prefix@/lib/mono
Libraries=${assemblies_dir}/2.1/smcs.exe
Name: Mono Internal -- Do not use.
Description: Mono Internal Libraries -- Do not use
Version: @VERSION@
Libs: -r:smcs.exe
+4
View File
@@ -0,0 +1,4 @@
Name: System.Web.Mvc
Description: System.Web.Mvc - ASP.NET MVC
Version: 1.0.0.0
Libs: -r:@prefix@/lib/mono/gac/System.Web.Mvc/1.0.0.0__31bf3856ad364e35/System.Web.Mvc.dll
+10
View File
@@ -0,0 +1,10 @@
/convert.exe*
/html
/Makefile
/Makefile.in
/monoapi.tree
/monoapi.zip
/mono-file-formats.tree
/mono-file-formats.zip
/mono-tools.tree
/mono-tools.zip
Binary file not shown.
+13
View File
@@ -1,3 +1,16 @@
2009-12-22 Jo Shields <[email protected]>
* HtmlAgilityPack/LICENSE: Include upstream license (Ms-PL) since the
file headers don't specify it
2009-12-22 Jo Shields <[email protected]>
* HtmlAgilityPack/*: Bundle HtmlAgilityPack 1.4~beta2 from
http://www.codeplex.com/htmlagilitypack in source form.
* AgilityPack.dll: Remove binary assembly, use source instead.
* docs.make Makefile.am README: Reflect above changes
2009-02-12 Zoltan Varga <[email protected]>
* Makefile.am (EXTRA_DIST): Remove removed files.
@@ -0,0 +1,33 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Text;
namespace HtmlAgilityPack
{
internal class EncodingFoundException : Exception
{
#region Fields
private Encoding _encoding;
#endregion
#region Constructors
internal EncodingFoundException(Encoding encoding)
{
_encoding = encoding;
}
#endregion
#region Properties
internal Encoding Encoding
{
get { return _encoding; }
}
#endregion
}
}
+260
View File
@@ -0,0 +1,260 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
#region
using System;
using System.Diagnostics;
#endregion
namespace HtmlAgilityPack
{
/// <summary>
/// Represents an HTML attribute.
/// </summary>
[DebuggerDisplay("Name: {OriginalName}, Value: {Value}")]
public class HtmlAttribute : IComparable
{
#region Fields
private int _line;
internal int _lineposition;
internal string _name;
internal int _namelength;
internal int _namestartindex;
internal HtmlDocument _ownerdocument; // attribute can exists without a node
internal HtmlNode _ownernode;
private AttributeValueQuote _quoteType = AttributeValueQuote.DoubleQuote;
internal int _streamposition;
internal string _value;
internal int _valuelength;
internal int _valuestartindex;
#endregion
#region Constructors
internal HtmlAttribute(HtmlDocument ownerdocument)
{
_ownerdocument = ownerdocument;
}
#endregion
#region Properties
/// <summary>
/// Gets the line number of this attribute in the document.
/// </summary>
public int Line
{
get { return _line; }
internal set { _line = value; }
}
/// <summary>
/// Gets the column number of this attribute in the document.
/// </summary>
public int LinePosition
{
get { return _lineposition; }
}
/// <summary>
/// Gets the qualified name of the attribute.
/// </summary>
public string Name
{
get
{
if (_name == null)
{
_name = _ownerdocument._text.Substring(_namestartindex, _namelength);
}
return _name.ToLower();
}
set
{
if (value == null)
{
throw new ArgumentNullException("value");
}
_name = value;
if (_ownernode != null)
{
_ownernode._innerchanged = true;
_ownernode._outerchanged = true;
}
}
}
/// <summary>
/// Name of attribute with original case
/// </summary>
public string OriginalName
{
get { return _name; }
}
/// <summary>
/// Gets the HTML document to which this attribute belongs.
/// </summary>
public HtmlDocument OwnerDocument
{
get { return _ownerdocument; }
}
/// <summary>
/// Gets the HTML node to which this attribute belongs.
/// </summary>
public HtmlNode OwnerNode
{
get { return _ownernode; }
}
/// <summary>
/// Specifies what type of quote the data should be wrapped in
/// </summary>
public AttributeValueQuote QuoteType
{
get { return _quoteType; }
set { _quoteType = value; }
}
/// <summary>
/// Gets the stream position of this attribute in the document, relative to the start of the document.
/// </summary>
public int StreamPosition
{
get { return _streamposition; }
}
/// <summary>
/// Gets or sets the value of the attribute.
/// </summary>
public string Value
{
get
{
if (_value == null)
{
_value = _ownerdocument._text.Substring(_valuestartindex, _valuelength);
}
return _value;
}
set
{
_value = value;
if (_ownernode != null)
{
_ownernode._innerchanged = true;
_ownernode._outerchanged = true;
}
}
}
internal string XmlName
{
get { return HtmlDocument.GetXmlName(Name); }
}
internal string XmlValue
{
get { return Value; }
}
/// <summary>
/// Gets a valid XPath string that points to this Attribute
/// </summary>
public string XPath
{
get
{
string basePath = (OwnerNode == null) ? "/" : OwnerNode.XPath + "/";
return basePath + GetRelativeXpath();
}
}
#endregion
#region IComparable Members
/// <summary>
/// Compares the current instance with another attribute. Comparison is based on attributes' name.
/// </summary>
/// <param name="obj">An attribute to compare with this instance.</param>
/// <returns>A 32-bit signed integer that indicates the relative order of the names comparison.</returns>
public int CompareTo(object obj)
{
HtmlAttribute att = obj as HtmlAttribute;
if (att == null)
{
throw new ArgumentException("obj");
}
return Name.CompareTo(att.Name);
}
#endregion
#region Public Methods
/// <summary>
/// Creates a duplicate of this attribute.
/// </summary>
/// <returns>The cloned attribute.</returns>
public HtmlAttribute Clone()
{
HtmlAttribute att = new HtmlAttribute(_ownerdocument);
att.Name = Name;
att.Value = Value;
return att;
}
/// <summary>
/// Removes this attribute from it's parents collection
/// </summary>
public void Remove()
{
_ownernode.Attributes.Remove(this);
}
#endregion
#region Private Methods
private string GetRelativeXpath()
{
if (OwnerNode == null)
return Name;
int i = 1;
foreach (HtmlAttribute node in OwnerNode.Attributes)
{
if (node.Name != Name) continue;
if (node == this)
break;
i++;
}
return "@" + Name + "[" + i + "]";
}
#endregion
}
/// <summary>
/// An Enum representing different types of Quotes used for surrounding attribute values
/// </summary>
public enum AttributeValueQuote
{
/// <summary>
/// A single quote mark '
/// </summary>
SingleQuote,
/// <summary>
/// A double quote mark "
/// </summary>
DoubleQuote
}
}
@@ -0,0 +1,394 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Collections;
using System.Collections.Generic;
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a combined list and collection of HTML nodes.
/// </summary>
public class HtmlAttributeCollection : IList<HtmlAttribute>
{
#region Fields
internal Dictionary<string, HtmlAttribute> Hashitems = new Dictionary<string, HtmlAttribute>();
private HtmlNode _ownernode;
private List<HtmlAttribute> items = new List<HtmlAttribute>();
#endregion
#region Constructors
internal HtmlAttributeCollection(HtmlNode ownernode)
{
_ownernode = ownernode;
}
#endregion
#region Properties
/// <summary>
/// Gets a given attribute from the list using its name.
/// </summary>
public HtmlAttribute this[string name]
{
get
{
if (name == null)
{
throw new ArgumentNullException("name");
}
return Hashitems.ContainsKey(name.ToLower()) ? Hashitems[name.ToLower()] : null;
}
set { Append(value); }
}
#endregion
#region IList<HtmlAttribute> Members
/// <summary>
/// Gets the number of elements actually contained in the list.
/// </summary>
public int Count
{
get { return items.Count; }
}
/// <summary>
/// Gets readonly status of colelction
/// </summary>
public bool IsReadOnly
{
get { return false; }
}
/// <summary>
/// Gets the attribute at the specified index.
/// </summary>
public HtmlAttribute this[int index]
{
get { return items[index]; }
set { items[index] = value; }
}
/// <summary>
/// Adds supplied item to collection
/// </summary>
/// <param name="item"></param>
public void Add(HtmlAttribute item)
{
Append(item);
}
/// <summary>
/// Explicit clear
/// </summary>
void ICollection<HtmlAttribute>.Clear()
{
items.Clear();
}
/// <summary>
/// Retreives existence of supplied item
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
public bool Contains(HtmlAttribute item)
{
return items.Contains(item);
}
/// <summary>
/// Copies collection to array
/// </summary>
/// <param name="array"></param>
/// <param name="arrayIndex"></param>
public void CopyTo(HtmlAttribute[] array, int arrayIndex)
{
items.CopyTo(array, arrayIndex);
}
/// <summary>
/// Get Explicit enumerator
/// </summary>
/// <returns></returns>
IEnumerator<HtmlAttribute> IEnumerable<HtmlAttribute>.GetEnumerator()
{
return items.GetEnumerator();
}
/// <summary>
/// Explicit non-generic enumerator
/// </summary>
/// <returns></returns>
IEnumerator IEnumerable.GetEnumerator()
{
return items.GetEnumerator();
}
/// <summary>
/// Retrieves the index for the supplied item, -1 if not found
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
public int IndexOf(HtmlAttribute item)
{
return items.IndexOf(item);
}
/// <summary>
/// Inserts given item into collection at supplied index
/// </summary>
/// <param name="index"></param>
/// <param name="item"></param>
public void Insert(int index, HtmlAttribute item)
{
if (item == null)
{
throw new ArgumentNullException("item");
}
Hashitems[item.Name] = item;
item._ownernode = _ownernode;
items.Insert(index, item);
_ownernode._innerchanged = true;
_ownernode._outerchanged = true;
}
/// <summary>
/// Explicit collection remove
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
bool ICollection<HtmlAttribute>.Remove(HtmlAttribute item)
{
return items.Remove(item);
}
/// <summary>
/// Removes the attribute at the specified index.
/// </summary>
/// <param name="index">The index of the attribute to remove.</param>
public void RemoveAt(int index)
{
HtmlAttribute att = items[index];
Hashitems.Remove(att.Name);
items.RemoveAt(index);
_ownernode._innerchanged = true;
_ownernode._outerchanged = true;
}
#endregion
#region Public Methods
/// <summary>
/// Adds a new attribute to the collection with the given values
/// </summary>
/// <param name="name"></param>
/// <param name="value"></param>
public void Add(string name, string value)
{
Append(name, value);
}
/// <summary>
/// Inserts the specified attribute as the last attribute in the collection.
/// </summary>
/// <param name="newAttribute">The attribute to insert. May not be null.</param>
/// <returns>The appended attribute.</returns>
public HtmlAttribute Append(HtmlAttribute newAttribute)
{
if (newAttribute == null)
{
throw new ArgumentNullException("newAttribute");
}
Hashitems[newAttribute.Name] = newAttribute;
newAttribute._ownernode = _ownernode;
items.Add(newAttribute);
_ownernode._innerchanged = true;
_ownernode._outerchanged = true;
return newAttribute;
}
/// <summary>
/// Creates and inserts a new attribute as the last attribute in the collection.
/// </summary>
/// <param name="name">The name of the attribute to insert.</param>
/// <returns>The appended attribute.</returns>
public HtmlAttribute Append(string name)
{
HtmlAttribute att = _ownernode._ownerdocument.CreateAttribute(name);
return Append(att);
}
/// <summary>
/// Creates and inserts a new attribute as the last attribute in the collection.
/// </summary>
/// <param name="name">The name of the attribute to insert.</param>
/// <param name="value">The value of the attribute to insert.</param>
/// <returns>The appended attribute.</returns>
public HtmlAttribute Append(string name, string value)
{
HtmlAttribute att = _ownernode._ownerdocument.CreateAttribute(name, value);
return Append(att);
}
/// <summary>
/// Checks for existance of attribute with given name
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
public bool Contains(string name)
{
for (int i = 0; i < items.Count; i++)
{
if (items[i].Name.Equals(name.ToLower()))
return true;
}
return false;
}
/// <summary>
/// Inserts the specified attribute as the first node in the collection.
/// </summary>
/// <param name="newAttribute">The attribute to insert. May not be null.</param>
/// <returns>The prepended attribute.</returns>
public HtmlAttribute Prepend(HtmlAttribute newAttribute)
{
Insert(0, newAttribute);
return newAttribute;
}
/// <summary>
/// Removes a given attribute from the list.
/// </summary>
/// <param name="attribute">The attribute to remove. May not be null.</param>
public void Remove(HtmlAttribute attribute)
{
if (attribute == null)
{
throw new ArgumentNullException("attribute");
}
int index = GetAttributeIndex(attribute);
if (index == -1)
{
throw new IndexOutOfRangeException();
}
RemoveAt(index);
}
/// <summary>
/// Removes an attribute from the list, using its name. If there are more than one attributes with this name, they will all be removed.
/// </summary>
/// <param name="name">The attribute's name. May not be null.</param>
public void Remove(string name)
{
if (name == null)
{
throw new ArgumentNullException("name");
}
string lname = name.ToLower();
for (int i = 0; i < items.Count; i++)
{
HtmlAttribute att = items[i];
if (att.Name == lname)
{
RemoveAt(i);
}
}
}
/// <summary>
/// Remove all attributes in the list.
/// </summary>
public void RemoveAll()
{
Hashitems.Clear();
items.Clear();
_ownernode._innerchanged = true;
_ownernode._outerchanged = true;
}
#endregion
#region LINQ Methods
/// <summary>
/// Returns all attributes with specified name. Handles case insentivity
/// </summary>
/// <param name="attributeName">Name of the attribute</param>
/// <returns></returns>
public IEnumerable<HtmlAttribute> AttributesWithName(string attributeName)
{
attributeName = attributeName.ToLower();
for (int i = 0; i < items.Count; i++)
{
if (items[i].Name.Equals(attributeName))
yield return items[i];
}
}
/// <summary>
/// Removes all attributes from the collection
/// </summary>
public void Remove()
{
foreach (HtmlAttribute item in items)
item.Remove();
}
#endregion
#region Internal Methods
/// <summary>
/// Clears the attribute collection
/// </summary>
internal void Clear()
{
Hashitems.Clear();
items.Clear();
}
internal int GetAttributeIndex(HtmlAttribute attribute)
{
if (attribute == null)
{
throw new ArgumentNullException("attribute");
}
for (int i = 0; i < items.Count; i++)
{
if ((items[i]) == attribute)
return i;
}
return -1;
}
internal int GetAttributeIndex(string name)
{
if (name == null)
{
throw new ArgumentNullException("name");
}
string lname = name.ToLower();
for (int i = 0; i < items.Count; i++)
{
if ((items[i]).Name == lname)
return i;
}
return -1;
}
#endregion
}
}
+142
View File
@@ -0,0 +1,142 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
namespace HtmlAgilityPack
{
internal class HtmlCmdLine
{
#region Static Members
internal static bool Help;
#endregion
#region Constructors
static HtmlCmdLine()
{
Help = false;
ParseArgs();
}
#endregion
#region Internal Methods
internal static string GetOption(string name, string def)
{
string p = def;
string[] args = Environment.GetCommandLineArgs();
for (int i = 1; i < args.Length; i++)
{
GetStringArg(args[i], name, ref p);
}
return p;
}
internal static string GetOption(int index, string def)
{
string p = def;
string[] args = Environment.GetCommandLineArgs();
int j = 0;
for (int i = 1; i < args.Length; i++)
{
if (GetStringArg(args[i], ref p))
{
if (index == j)
return p;
else
p = def;
j++;
}
}
return p;
}
internal static bool GetOption(string name, bool def)
{
bool p = def;
string[] args = Environment.GetCommandLineArgs();
for (int i = 1; i < args.Length; i++)
{
GetBoolArg(args[i], name, ref p);
}
return p;
}
internal static int GetOption(string name, int def)
{
int p = def;
string[] args = Environment.GetCommandLineArgs();
for (int i = 1; i < args.Length; i++)
{
GetIntArg(args[i], name, ref p);
}
return p;
}
#endregion
#region Private Methods
private static void GetBoolArg(string Arg, string Name, ref bool ArgValue)
{
if (Arg.Length < (Name.Length + 1)) // -name is 1 more than name
return;
if (('/' != Arg[0]) && ('-' != Arg[0])) // not a param
return;
if (Arg.Substring(1, Name.Length).ToLower() == Name.ToLower())
ArgValue = true;
}
private static void GetIntArg(string Arg, string Name, ref int ArgValue)
{
if (Arg.Length < (Name.Length + 3)) // -name:12 is 3 more than name
return;
if (('/' != Arg[0]) && ('-' != Arg[0])) // not a param
return;
if (Arg.Substring(1, Name.Length).ToLower() == Name.ToLower())
{
try
{
ArgValue = Convert.ToInt32(Arg.Substring(Name.Length + 2, Arg.Length - Name.Length - 2));
}
catch
{
}
}
}
private static bool GetStringArg(string Arg, ref string ArgValue)
{
if (('/' == Arg[0]) || ('-' == Arg[0]))
return false;
ArgValue = Arg;
return true;
}
private static void GetStringArg(string Arg, string Name, ref string ArgValue)
{
if (Arg.Length < (Name.Length + 3)) // -name:x is 3 more than name
return;
if (('/' != Arg[0]) && ('-' != Arg[0])) // not a param
return;
if (Arg.Substring(1, Name.Length).ToLower() == Name.ToLower())
ArgValue = Arg.Substring(Name.Length + 2, Arg.Length - Name.Length - 2);
}
private static void ParseArgs()
{
string[] args = Environment.GetCommandLineArgs();
for (int i = 1; i < args.Length; i++)
{
// help
GetBoolArg(args[i], "?", ref Help);
GetBoolArg(args[i], "h", ref Help);
GetBoolArg(args[i], "help", ref Help);
}
}
#endregion
}
}
+76
View File
@@ -0,0 +1,76 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents an HTML comment.
/// </summary>
public class HtmlCommentNode : HtmlNode
{
#region Fields
private string _comment;
#endregion
#region Constructors
internal HtmlCommentNode(HtmlDocument ownerdocument, int index)
:
base(HtmlNodeType.Comment, ownerdocument, index)
{
}
#endregion
#region Properties
/// <summary>
/// Gets or Sets the comment text of the node.
/// </summary>
public string Comment
{
get
{
if (_comment == null)
{
return base.InnerHtml;
}
return _comment;
}
set { _comment = value; }
}
/// <summary>
/// Gets or Sets the HTML between the start and end tags of the object. In the case of a text node, it is equals to OuterHtml.
/// </summary>
public override string InnerHtml
{
get
{
if (_comment == null)
{
return base.InnerHtml;
}
return _comment;
}
set { _comment = value; }
}
/// <summary>
/// Gets or Sets the object and its content in HTML.
/// </summary>
public override string OuterHtml
{
get
{
if (_comment == null)
{
return base.OuterHtml;
}
return "<!--" + _comment + "-->";
}
}
#endregion
}
}
@@ -0,0 +1,33 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Diagnostics;
namespace HtmlAgilityPack
{
internal class HtmlConsoleListener : TraceListener
{
#region Public Methods
public override void Write(string Message)
{
Write(Message, "");
}
public override void Write(string Message, string Category)
{
Console.Write("T:" + Category + ": " + Message);
}
public override void WriteLine(string Message)
{
Write(Message + "\n");
}
public override void WriteLine(string Message, string Category)
{
Write(Message + "\n", Category);
}
#endregion
}
}
File diff suppressed because it is too large. Load diff
+32
View File
@@ -0,0 +1,32 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
namespace HtmlAgilityPack
{
/// <summary>
/// Flags that describe the behavior of an Element node.
/// </summary>
[Flags]
public enum HtmlElementFlag
{
/// <summary>
/// The node is a CDATA node.
/// </summary>
CData = 1,
/// <summary>
/// The node is empty. META or IMG are example of such nodes.
/// </summary>
Empty = 2,
/// <summary>
/// The node will automatically be closed during parsing.
/// </summary>
Closed = 4,
/// <summary>
/// The node can overlap.
/// </summary>
CanOverlap = 8
}
}
+826
View File
@@ -0,0 +1,826 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Collections;
using System.Text;
namespace HtmlAgilityPack
{
/// <summary>
/// A utility class to replace special characters by entities and vice-versa.
/// Follows HTML 4.0 specification found at http://www.w3.org/TR/html4/sgml/entities.html
/// </summary>
public class HtmlEntity
{
#region Static Members
private static readonly int _maxEntitySize;
private static Hashtable _entityName;
private static Hashtable _entityValue;
/// <summary>
/// A collection of entities indexed by name.
/// </summary>
public static Hashtable EntityName
{
get { return _entityName; }
}
/// <summary>
/// A collection of entities indexed by value.
/// </summary>
public static Hashtable EntityValue
{
get { return _entityValue; }
}
#endregion
#region Constructors
static HtmlEntity()
{
_entityName = new Hashtable();
_entityValue = new Hashtable();
#region Entities Definition
_entityValue.Add("nbsp", 160); // no-break space = non-breaking space, U+00A0 ISOnum
_entityName.Add(160, "nbsp");
_entityValue.Add("iexcl", 161); // inverted exclamation mark, U+00A1 ISOnum
_entityName.Add(161, "iexcl");
_entityValue.Add("cent", 162); // cent sign, U+00A2 ISOnum
_entityName.Add(162, "cent");
_entityValue.Add("pound", 163); // pound sign, U+00A3 ISOnum
_entityName.Add(163, "pound");
_entityValue.Add("curren", 164); // currency sign, U+00A4 ISOnum
_entityName.Add(164, "curren");
_entityValue.Add("yen", 165); // yen sign = yuan sign, U+00A5 ISOnum
_entityName.Add(165, "yen");
_entityValue.Add("brvbar", 166); // broken bar = broken vertical bar, U+00A6 ISOnum
_entityName.Add(166, "brvbar");
_entityValue.Add("sect", 167); // section sign, U+00A7 ISOnum
_entityName.Add(167, "sect");
_entityValue.Add("uml", 168); // diaeresis = spacing diaeresis, U+00A8 ISOdia
_entityName.Add(168, "uml");
_entityValue.Add("copy", 169); // copyright sign, U+00A9 ISOnum
_entityName.Add(169, "copy");
_entityValue.Add("ordf", 170); // feminine ordinal indicator, U+00AA ISOnum
_entityName.Add(170, "ordf");
_entityValue.Add("laquo", 171);
// left-pointing double angle quotation mark = left pointing guillemet, U+00AB ISOnum
_entityName.Add(171, "laquo");
_entityValue.Add("not", 172); // not sign, U+00AC ISOnum
_entityName.Add(172, "not");
_entityValue.Add("shy", 173); // soft hyphen = discretionary hyphen, U+00AD ISOnum
_entityName.Add(173, "shy");
_entityValue.Add("reg", 174); // registered sign = registered trade mark sign, U+00AE ISOnum
_entityName.Add(174, "reg");
_entityValue.Add("macr", 175); // macron = spacing macron = overline = APL overbar, U+00AF ISOdia
_entityName.Add(175, "macr");
_entityValue.Add("deg", 176); // degree sign, U+00B0 ISOnum
_entityName.Add(176, "deg");
_entityValue.Add("plusmn", 177); // plus-minus sign = plus-or-minus sign, U+00B1 ISOnum
_entityName.Add(177, "plusmn");
_entityValue.Add("sup2", 178); // superscript two = superscript digit two = squared, U+00B2 ISOnum
_entityName.Add(178, "sup2");
_entityValue.Add("sup3", 179); // superscript three = superscript digit three = cubed, U+00B3 ISOnum
_entityName.Add(179, "sup3");
_entityValue.Add("acute", 180); // acute accent = spacing acute, U+00B4 ISOdia
_entityName.Add(180, "acute");
_entityValue.Add("micro", 181); // micro sign, U+00B5 ISOnum
_entityName.Add(181, "micro");
_entityValue.Add("para", 182); // pilcrow sign = paragraph sign, U+00B6 ISOnum
_entityName.Add(182, "para");
_entityValue.Add("middot", 183); // middle dot = Georgian comma = Greek middle dot, U+00B7 ISOnum
_entityName.Add(183, "middot");
_entityValue.Add("cedil", 184); // cedilla = spacing cedilla, U+00B8 ISOdia
_entityName.Add(184, "cedil");
_entityValue.Add("sup1", 185); // superscript one = superscript digit one, U+00B9 ISOnum
_entityName.Add(185, "sup1");
_entityValue.Add("ordm", 186); // masculine ordinal indicator, U+00BA ISOnum
_entityName.Add(186, "ordm");
_entityValue.Add("raquo", 187);
// right-pointing double angle quotation mark = right pointing guillemet, U+00BB ISOnum
_entityName.Add(187, "raquo");
_entityValue.Add("frac14", 188); // vulgar fraction one quarter = fraction one quarter, U+00BC ISOnum
_entityName.Add(188, "frac14");
_entityValue.Add("frac12", 189); // vulgar fraction one half = fraction one half, U+00BD ISOnum
_entityName.Add(189, "frac12");
_entityValue.Add("frac34", 190); // vulgar fraction three quarters = fraction three quarters, U+00BE ISOnum
_entityName.Add(190, "frac34");
_entityValue.Add("iquest", 191); // inverted question mark = turned question mark, U+00BF ISOnum
_entityName.Add(191, "iquest");
_entityValue.Add("Agrave", 192);
// latin capital letter A with grave = latin capital letter A grave, U+00C0 ISOlat1
_entityName.Add(192, "Agrave");
_entityValue.Add("Aacute", 193); // latin capital letter A with acute, U+00C1 ISOlat1
_entityName.Add(193, "Aacute");
_entityValue.Add("Acirc", 194); // latin capital letter A with circumflex, U+00C2 ISOlat1
_entityName.Add(194, "Acirc");
_entityValue.Add("Atilde", 195); // latin capital letter A with tilde, U+00C3 ISOlat1
_entityName.Add(195, "Atilde");
_entityValue.Add("Auml", 196); // latin capital letter A with diaeresis, U+00C4 ISOlat1
_entityName.Add(196, "Auml");
_entityValue.Add("Aring", 197);
// latin capital letter A with ring above = latin capital letter A ring, U+00C5 ISOlat1
_entityName.Add(197, "Aring");
_entityValue.Add("AElig", 198); // latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
_entityName.Add(198, "AElig");
_entityValue.Add("Ccedil", 199); // latin capital letter C with cedilla, U+00C7 ISOlat1
_entityName.Add(199, "Ccedil");
_entityValue.Add("Egrave", 200); // latin capital letter E with grave, U+00C8 ISOlat1
_entityName.Add(200, "Egrave");
_entityValue.Add("Eacute", 201); // latin capital letter E with acute, U+00C9 ISOlat1
_entityName.Add(201, "Eacute");
_entityValue.Add("Ecirc", 202); // latin capital letter E with circumflex, U+00CA ISOlat1
_entityName.Add(202, "Ecirc");
_entityValue.Add("Euml", 203); // latin capital letter E with diaeresis, U+00CB ISOlat1
_entityName.Add(203, "Euml");
_entityValue.Add("Igrave", 204); // latin capital letter I with grave, U+00CC ISOlat1
_entityName.Add(204, "Igrave");
_entityValue.Add("Iacute", 205); // latin capital letter I with acute, U+00CD ISOlat1
_entityName.Add(205, "Iacute");
_entityValue.Add("Icirc", 206); // latin capital letter I with circumflex, U+00CE ISOlat1
_entityName.Add(206, "Icirc");
_entityValue.Add("Iuml", 207); // latin capital letter I with diaeresis, U+00CF ISOlat1
_entityName.Add(207, "Iuml");
_entityValue.Add("ETH", 208); // latin capital letter ETH, U+00D0 ISOlat1
_entityName.Add(208, "ETH");
_entityValue.Add("Ntilde", 209); // latin capital letter N with tilde, U+00D1 ISOlat1
_entityName.Add(209, "Ntilde");
_entityValue.Add("Ograve", 210); // latin capital letter O with grave, U+00D2 ISOlat1
_entityName.Add(210, "Ograve");
_entityValue.Add("Oacute", 211); // latin capital letter O with acute, U+00D3 ISOlat1
_entityName.Add(211, "Oacute");
_entityValue.Add("Ocirc", 212); // latin capital letter O with circumflex, U+00D4 ISOlat1
_entityName.Add(212, "Ocirc");
_entityValue.Add("Otilde", 213); // latin capital letter O with tilde, U+00D5 ISOlat1
_entityName.Add(213, "Otilde");
_entityValue.Add("Ouml", 214); // latin capital letter O with diaeresis, U+00D6 ISOlat1
_entityName.Add(214, "Ouml");
_entityValue.Add("times", 215); // multiplication sign, U+00D7 ISOnum
_entityName.Add(215, "times");
_entityValue.Add("Oslash", 216);
// latin capital letter O with stroke = latin capital letter O slash, U+00D8 ISOlat1
_entityName.Add(216, "Oslash");
_entityValue.Add("Ugrave", 217); // latin capital letter U with grave, U+00D9 ISOlat1
_entityName.Add(217, "Ugrave");
_entityValue.Add("Uacute", 218); // latin capital letter U with acute, U+00DA ISOlat1
_entityName.Add(218, "Uacute");
_entityValue.Add("Ucirc", 219); // latin capital letter U with circumflex, U+00DB ISOlat1
_entityName.Add(219, "Ucirc");
_entityValue.Add("Uuml", 220); // latin capital letter U with diaeresis, U+00DC ISOlat1
_entityName.Add(220, "Uuml");
_entityValue.Add("Yacute", 221); // latin capital letter Y with acute, U+00DD ISOlat1
_entityName.Add(221, "Yacute");
_entityValue.Add("THORN", 222); // latin capital letter THORN, U+00DE ISOlat1
_entityName.Add(222, "THORN");
_entityValue.Add("szlig", 223); // latin small letter sharp s = ess-zed, U+00DF ISOlat1
_entityName.Add(223, "szlig");
_entityValue.Add("agrave", 224);
// latin small letter a with grave = latin small letter a grave, U+00E0 ISOlat1
_entityName.Add(224, "agrave");
_entityValue.Add("aacute", 225); // latin small letter a with acute, U+00E1 ISOlat1
_entityName.Add(225, "aacute");
_entityValue.Add("acirc", 226); // latin small letter a with circumflex, U+00E2 ISOlat1
_entityName.Add(226, "acirc");
_entityValue.Add("atilde", 227); // latin small letter a with tilde, U+00E3 ISOlat1
_entityName.Add(227, "atilde");
_entityValue.Add("auml", 228); // latin small letter a with diaeresis, U+00E4 ISOlat1
_entityName.Add(228, "auml");
_entityValue.Add("aring", 229);
// latin small letter a with ring above = latin small letter a ring, U+00E5 ISOlat1
_entityName.Add(229, "aring");
_entityValue.Add("aelig", 230); // latin small letter ae = latin small ligature ae, U+00E6 ISOlat1
_entityName.Add(230, "aelig");
_entityValue.Add("ccedil", 231); // latin small letter c with cedilla, U+00E7 ISOlat1
_entityName.Add(231, "ccedil");
_entityValue.Add("egrave", 232); // latin small letter e with grave, U+00E8 ISOlat1
_entityName.Add(232, "egrave");
_entityValue.Add("eacute", 233); // latin small letter e with acute, U+00E9 ISOlat1
_entityName.Add(233, "eacute");
_entityValue.Add("ecirc", 234); // latin small letter e with circumflex, U+00EA ISOlat1
_entityName.Add(234, "ecirc");
_entityValue.Add("euml", 235); // latin small letter e with diaeresis, U+00EB ISOlat1
_entityName.Add(235, "euml");
_entityValue.Add("igrave", 236); // latin small letter i with grave, U+00EC ISOlat1
_entityName.Add(236, "igrave");
_entityValue.Add("iacute", 237); // latin small letter i with acute, U+00ED ISOlat1
_entityName.Add(237, "iacute");
_entityValue.Add("icirc", 238); // latin small letter i with circumflex, U+00EE ISOlat1
_entityName.Add(238, "icirc");
_entityValue.Add("iuml", 239); // latin small letter i with diaeresis, U+00EF ISOlat1
_entityName.Add(239, "iuml");
_entityValue.Add("eth", 240); // latin small letter eth, U+00F0 ISOlat1
_entityName.Add(240, "eth");
_entityValue.Add("ntilde", 241); // latin small letter n with tilde, U+00F1 ISOlat1
_entityName.Add(241, "ntilde");
_entityValue.Add("ograve", 242); // latin small letter o with grave, U+00F2 ISOlat1
_entityName.Add(242, "ograve");
_entityValue.Add("oacute", 243); // latin small letter o with acute, U+00F3 ISOlat1
_entityName.Add(243, "oacute");
_entityValue.Add("ocirc", 244); // latin small letter o with circumflex, U+00F4 ISOlat1
_entityName.Add(244, "ocirc");
_entityValue.Add("otilde", 245); // latin small letter o with tilde, U+00F5 ISOlat1
_entityName.Add(245, "otilde");
_entityValue.Add("ouml", 246); // latin small letter o with diaeresis, U+00F6 ISOlat1
_entityName.Add(246, "ouml");
_entityValue.Add("divide", 247); // division sign, U+00F7 ISOnum
_entityName.Add(247, "divide");
_entityValue.Add("oslash", 248);
// latin small letter o with stroke, = latin small letter o slash, U+00F8 ISOlat1
_entityName.Add(248, "oslash");
_entityValue.Add("ugrave", 249); // latin small letter u with grave, U+00F9 ISOlat1
_entityName.Add(249, "ugrave");
_entityValue.Add("uacute", 250); // latin small letter u with acute, U+00FA ISOlat1
_entityName.Add(250, "uacute");
_entityValue.Add("ucirc", 251); // latin small letter u with circumflex, U+00FB ISOlat1
_entityName.Add(251, "ucirc");
_entityValue.Add("uuml", 252); // latin small letter u with diaeresis, U+00FC ISOlat1
_entityName.Add(252, "uuml");
_entityValue.Add("yacute", 253); // latin small letter y with acute, U+00FD ISOlat1
_entityName.Add(253, "yacute");
_entityValue.Add("thorn", 254); // latin small letter thorn, U+00FE ISOlat1
_entityName.Add(254, "thorn");
_entityValue.Add("yuml", 255); // latin small letter y with diaeresis, U+00FF ISOlat1
_entityName.Add(255, "yuml");
_entityValue.Add("fnof", 402); // latin small f with hook = function = florin, U+0192 ISOtech
_entityName.Add(402, "fnof");
_entityValue.Add("Alpha", 913); // greek capital letter alpha, U+0391
_entityName.Add(913, "Alpha");
_entityValue.Add("Beta", 914); // greek capital letter beta, U+0392
_entityName.Add(914, "Beta");
_entityValue.Add("Gamma", 915); // greek capital letter gamma, U+0393 ISOgrk3
_entityName.Add(915, "Gamma");
_entityValue.Add("Delta", 916); // greek capital letter delta, U+0394 ISOgrk3
_entityName.Add(916, "Delta");
_entityValue.Add("Epsilon", 917); // greek capital letter epsilon, U+0395
_entityName.Add(917, "Epsilon");
_entityValue.Add("Zeta", 918); // greek capital letter zeta, U+0396
_entityName.Add(918, "Zeta");
_entityValue.Add("Eta", 919); // greek capital letter eta, U+0397
_entityName.Add(919, "Eta");
_entityValue.Add("Theta", 920); // greek capital letter theta, U+0398 ISOgrk3
_entityName.Add(920, "Theta");
_entityValue.Add("Iota", 921); // greek capital letter iota, U+0399
_entityName.Add(921, "Iota");
_entityValue.Add("Kappa", 922); // greek capital letter kappa, U+039A
_entityName.Add(922, "Kappa");
_entityValue.Add("Lambda", 923); // greek capital letter lambda, U+039B ISOgrk3
_entityName.Add(923, "Lambda");
_entityValue.Add("Mu", 924); // greek capital letter mu, U+039C
_entityName.Add(924, "Mu");
_entityValue.Add("Nu", 925); // greek capital letter nu, U+039D
_entityName.Add(925, "Nu");
_entityValue.Add("Xi", 926); // greek capital letter xi, U+039E ISOgrk3
_entityName.Add(926, "Xi");
_entityValue.Add("Omicron", 927); // greek capital letter omicron, U+039F
_entityName.Add(927, "Omicron");
_entityValue.Add("Pi", 928); // greek capital letter pi, U+03A0 ISOgrk3
_entityName.Add(928, "Pi");
_entityValue.Add("Rho", 929); // greek capital letter rho, U+03A1
_entityName.Add(929, "Rho");
_entityValue.Add("Sigma", 931); // greek capital letter sigma, U+03A3 ISOgrk3
_entityName.Add(931, "Sigma");
_entityValue.Add("Tau", 932); // greek capital letter tau, U+03A4
_entityName.Add(932, "Tau");
_entityValue.Add("Upsilon", 933); // greek capital letter upsilon, U+03A5 ISOgrk3
_entityName.Add(933, "Upsilon");
_entityValue.Add("Phi", 934); // greek capital letter phi, U+03A6 ISOgrk3
_entityName.Add(934, "Phi");
_entityValue.Add("Chi", 935); // greek capital letter chi, U+03A7
_entityName.Add(935, "Chi");
_entityValue.Add("Psi", 936); // greek capital letter psi, U+03A8 ISOgrk3
_entityName.Add(936, "Psi");
_entityValue.Add("Omega", 937); // greek capital letter omega, U+03A9 ISOgrk3
_entityName.Add(937, "Omega");
_entityValue.Add("alpha", 945); // greek small letter alpha, U+03B1 ISOgrk3
_entityName.Add(945, "alpha");
_entityValue.Add("beta", 946); // greek small letter beta, U+03B2 ISOgrk3
_entityName.Add(946, "beta");
_entityValue.Add("gamma", 947); // greek small letter gamma, U+03B3 ISOgrk3
_entityName.Add(947, "gamma");
_entityValue.Add("delta", 948); // greek small letter delta, U+03B4 ISOgrk3
_entityName.Add(948, "delta");
_entityValue.Add("epsilon", 949); // greek small letter epsilon, U+03B5 ISOgrk3
_entityName.Add(949, "epsilon");
_entityValue.Add("zeta", 950); // greek small letter zeta, U+03B6 ISOgrk3
_entityName.Add(950, "zeta");
_entityValue.Add("eta", 951); // greek small letter eta, U+03B7 ISOgrk3
_entityName.Add(951, "eta");
_entityValue.Add("theta", 952); // greek small letter theta, U+03B8 ISOgrk3
_entityName.Add(952, "theta");
_entityValue.Add("iota", 953); // greek small letter iota, U+03B9 ISOgrk3
_entityName.Add(953, "iota");
_entityValue.Add("kappa", 954); // greek small letter kappa, U+03BA ISOgrk3
_entityName.Add(954, "kappa");
_entityValue.Add("lambda", 955); // greek small letter lambda, U+03BB ISOgrk3
_entityName.Add(955, "lambda");
_entityValue.Add("mu", 956); // greek small letter mu, U+03BC ISOgrk3
_entityName.Add(956, "mu");
_entityValue.Add("nu", 957); // greek small letter nu, U+03BD ISOgrk3
_entityName.Add(957, "nu");
_entityValue.Add("xi", 958); // greek small letter xi, U+03BE ISOgrk3
_entityName.Add(958, "xi");
_entityValue.Add("omicron", 959); // greek small letter omicron, U+03BF NEW
_entityName.Add(959, "omicron");
_entityValue.Add("pi", 960); // greek small letter pi, U+03C0 ISOgrk3
_entityName.Add(960, "pi");
_entityValue.Add("rho", 961); // greek small letter rho, U+03C1 ISOgrk3
_entityName.Add(961, "rho");
_entityValue.Add("sigmaf", 962); // greek small letter final sigma, U+03C2 ISOgrk3
_entityName.Add(962, "sigmaf");
_entityValue.Add("sigma", 963); // greek small letter sigma, U+03C3 ISOgrk3
_entityName.Add(963, "sigma");
_entityValue.Add("tau", 964); // greek small letter tau, U+03C4 ISOgrk3
_entityName.Add(964, "tau");
_entityValue.Add("upsilon", 965); // greek small letter upsilon, U+03C5 ISOgrk3
_entityName.Add(965, "upsilon");
_entityValue.Add("phi", 966); // greek small letter phi, U+03C6 ISOgrk3
_entityName.Add(966, "phi");
_entityValue.Add("chi", 967); // greek small letter chi, U+03C7 ISOgrk3
_entityName.Add(967, "chi");
_entityValue.Add("psi", 968); // greek small letter psi, U+03C8 ISOgrk3
_entityName.Add(968, "psi");
_entityValue.Add("omega", 969); // greek small letter omega, U+03C9 ISOgrk3
_entityName.Add(969, "omega");
_entityValue.Add("thetasym", 977); // greek small letter theta symbol, U+03D1 NEW
_entityName.Add(977, "thetasym");
_entityValue.Add("upsih", 978); // greek upsilon with hook symbol, U+03D2 NEW
_entityName.Add(978, "upsih");
_entityValue.Add("piv", 982); // greek pi symbol, U+03D6 ISOgrk3
_entityName.Add(982, "piv");
_entityValue.Add("bull", 8226); // bullet = black small circle, U+2022 ISOpub
_entityName.Add(8226, "bull");
_entityValue.Add("hellip", 8230); // horizontal ellipsis = three dot leader, U+2026 ISOpub
_entityName.Add(8230, "hellip");
_entityValue.Add("prime", 8242); // prime = minutes = feet, U+2032 ISOtech
_entityName.Add(8242, "prime");
_entityValue.Add("Prime", 8243); // double prime = seconds = inches, U+2033 ISOtech
_entityName.Add(8243, "Prime");
_entityValue.Add("oline", 8254); // overline = spacing overscore, U+203E NEW
_entityName.Add(8254, "oline");
_entityValue.Add("frasl", 8260); // fraction slash, U+2044 NEW
_entityName.Add(8260, "frasl");
_entityValue.Add("weierp", 8472); // script capital P = power set = Weierstrass p, U+2118 ISOamso
_entityName.Add(8472, "weierp");
_entityValue.Add("image", 8465); // blackletter capital I = imaginary part, U+2111 ISOamso
_entityName.Add(8465, "image");
_entityValue.Add("real", 8476); // blackletter capital R = real part symbol, U+211C ISOamso
_entityName.Add(8476, "real");
_entityValue.Add("trade", 8482); // trade mark sign, U+2122 ISOnum
_entityName.Add(8482, "trade");
_entityValue.Add("alefsym", 8501); // alef symbol = first transfinite cardinal, U+2135 NEW
_entityName.Add(8501, "alefsym");
_entityValue.Add("larr", 8592); // leftwards arrow, U+2190 ISOnum
_entityName.Add(8592, "larr");
_entityValue.Add("uarr", 8593); // upwards arrow, U+2191 ISOnum
_entityName.Add(8593, "uarr");
_entityValue.Add("rarr", 8594); // rightwards arrow, U+2192 ISOnum
_entityName.Add(8594, "rarr");
_entityValue.Add("darr", 8595); // downwards arrow, U+2193 ISOnum
_entityName.Add(8595, "darr");
_entityValue.Add("harr", 8596); // left right arrow, U+2194 ISOamsa
_entityName.Add(8596, "harr");
_entityValue.Add("crarr", 8629); // downwards arrow with corner leftwards = carriage return, U+21B5 NEW
_entityName.Add(8629, "crarr");
_entityValue.Add("lArr", 8656); // leftwards double arrow, U+21D0 ISOtech
_entityName.Add(8656, "lArr");
_entityValue.Add("uArr", 8657); // upwards double arrow, U+21D1 ISOamsa
_entityName.Add(8657, "uArr");
_entityValue.Add("rArr", 8658); // rightwards double arrow, U+21D2 ISOtech
_entityName.Add(8658, "rArr");
_entityValue.Add("dArr", 8659); // downwards double arrow, U+21D3 ISOamsa
_entityName.Add(8659, "dArr");
_entityValue.Add("hArr", 8660); // left right double arrow, U+21D4 ISOamsa
_entityName.Add(8660, "hArr");
_entityValue.Add("forall", 8704); // for all, U+2200 ISOtech
_entityName.Add(8704, "forall");
_entityValue.Add("part", 8706); // partial differential, U+2202 ISOtech
_entityName.Add(8706, "part");
_entityValue.Add("exist", 8707); // there exists, U+2203 ISOtech
_entityName.Add(8707, "exist");
_entityValue.Add("empty", 8709); // empty set = null set = diameter, U+2205 ISOamso
_entityName.Add(8709, "empty");
_entityValue.Add("nabla", 8711); // nabla = backward difference, U+2207 ISOtech
_entityName.Add(8711, "nabla");
_entityValue.Add("isin", 8712); // element of, U+2208 ISOtech
_entityName.Add(8712, "isin");
_entityValue.Add("notin", 8713); // not an element of, U+2209 ISOtech
_entityName.Add(8713, "notin");
_entityValue.Add("ni", 8715); // contains as member, U+220B ISOtech
_entityName.Add(8715, "ni");
_entityValue.Add("prod", 8719); // n-ary product = product sign, U+220F ISOamsb
_entityName.Add(8719, "prod");
_entityValue.Add("sum", 8721); // n-ary sumation, U+2211 ISOamsb
_entityName.Add(8721, "sum");
_entityValue.Add("minus", 8722); // minus sign, U+2212 ISOtech
_entityName.Add(8722, "minus");
_entityValue.Add("lowast", 8727); // asterisk operator, U+2217 ISOtech
_entityName.Add(8727, "lowast");
_entityValue.Add("radic", 8730); // square root = radical sign, U+221A ISOtech
_entityName.Add(8730, "radic");
_entityValue.Add("prop", 8733); // proportional to, U+221D ISOtech
_entityName.Add(8733, "prop");
_entityValue.Add("infin", 8734); // infinity, U+221E ISOtech
_entityName.Add(8734, "infin");
_entityValue.Add("ang", 8736); // angle, U+2220 ISOamso
_entityName.Add(8736, "ang");
_entityValue.Add("and", 8743); // logical and = wedge, U+2227 ISOtech
_entityName.Add(8743, "and");
_entityValue.Add("or", 8744); // logical or = vee, U+2228 ISOtech
_entityName.Add(8744, "or");
_entityValue.Add("cap", 8745); // intersection = cap, U+2229 ISOtech
_entityName.Add(8745, "cap");
_entityValue.Add("cup", 8746); // union = cup, U+222A ISOtech
_entityName.Add(8746, "cup");
_entityValue.Add("int", 8747); // integral, U+222B ISOtech
_entityName.Add(8747, "int");
_entityValue.Add("there4", 8756); // therefore, U+2234 ISOtech
_entityName.Add(8756, "there4");
_entityValue.Add("sim", 8764); // tilde operator = varies with = similar to, U+223C ISOtech
_entityName.Add(8764, "sim");
_entityValue.Add("cong", 8773); // approximately equal to, U+2245 ISOtech
_entityName.Add(8773, "cong");
_entityValue.Add("asymp", 8776); // almost equal to = asymptotic to, U+2248 ISOamsr
_entityName.Add(8776, "asymp");
_entityValue.Add("ne", 8800); // not equal to, U+2260 ISOtech
_entityName.Add(8800, "ne");
_entityValue.Add("equiv", 8801); // identical to, U+2261 ISOtech
_entityName.Add(8801, "equiv");
_entityValue.Add("le", 8804); // less-than or equal to, U+2264 ISOtech
_entityName.Add(8804, "le");
_entityValue.Add("ge", 8805); // greater-than or equal to, U+2265 ISOtech
_entityName.Add(8805, "ge");
_entityValue.Add("sub", 8834); // subset of, U+2282 ISOtech
_entityName.Add(8834, "sub");
_entityValue.Add("sup", 8835); // superset of, U+2283 ISOtech
_entityName.Add(8835, "sup");
_entityValue.Add("nsub", 8836); // not a subset of, U+2284 ISOamsn
_entityName.Add(8836, "nsub");
_entityValue.Add("sube", 8838); // subset of or equal to, U+2286 ISOtech
_entityName.Add(8838, "sube");
_entityValue.Add("supe", 8839); // superset of or equal to, U+2287 ISOtech
_entityName.Add(8839, "supe");
_entityValue.Add("oplus", 8853); // circled plus = direct sum, U+2295 ISOamsb
_entityName.Add(8853, "oplus");
_entityValue.Add("otimes", 8855); // circled times = vector product, U+2297 ISOamsb
_entityName.Add(8855, "otimes");
_entityValue.Add("perp", 8869); // up tack = orthogonal to = perpendicular, U+22A5 ISOtech
_entityName.Add(8869, "perp");
_entityValue.Add("sdot", 8901); // dot operator, U+22C5 ISOamsb
_entityName.Add(8901, "sdot");
_entityValue.Add("lceil", 8968); // left ceiling = apl upstile, U+2308 ISOamsc
_entityName.Add(8968, "lceil");
_entityValue.Add("rceil", 8969); // right ceiling, U+2309 ISOamsc
_entityName.Add(8969, "rceil");
_entityValue.Add("lfloor", 8970); // left floor = apl downstile, U+230A ISOamsc
_entityName.Add(8970, "lfloor");
_entityValue.Add("rfloor", 8971); // right floor, U+230B ISOamsc
_entityName.Add(8971, "rfloor");
_entityValue.Add("lang", 9001); // left-pointing angle bracket = bra, U+2329 ISOtech
_entityName.Add(9001, "lang");
_entityValue.Add("rang", 9002); // right-pointing angle bracket = ket, U+232A ISOtech
_entityName.Add(9002, "rang");
_entityValue.Add("loz", 9674); // lozenge, U+25CA ISOpub
_entityName.Add(9674, "loz");
_entityValue.Add("spades", 9824); // black spade suit, U+2660 ISOpub
_entityName.Add(9824, "spades");
_entityValue.Add("clubs", 9827); // black club suit = shamrock, U+2663 ISOpub
_entityName.Add(9827, "clubs");
_entityValue.Add("hearts", 9829); // black heart suit = valentine, U+2665 ISOpub
_entityName.Add(9829, "hearts");
_entityValue.Add("diams", 9830); // black diamond suit, U+2666 ISOpub
_entityName.Add(9830, "diams");
_entityValue.Add("quot", 34); // quotation mark = APL quote, U+0022 ISOnum
_entityName.Add(34, "quot");
_entityValue.Add("amp", 38); // ampersand, U+0026 ISOnum
_entityName.Add(38, "amp");
_entityValue.Add("lt", 60); // less-than sign, U+003C ISOnum
_entityName.Add(60, "lt");
_entityValue.Add("gt", 62); // greater-than sign, U+003E ISOnum
_entityName.Add(62, "gt");
_entityValue.Add("OElig", 338); // latin capital ligature OE, U+0152 ISOlat2
_entityName.Add(338, "OElig");
_entityValue.Add("oelig", 339); // latin small ligature oe, U+0153 ISOlat2
_entityName.Add(339, "oelig");
_entityValue.Add("Scaron", 352); // latin capital letter S with caron, U+0160 ISOlat2
_entityName.Add(352, "Scaron");
_entityValue.Add("scaron", 353); // latin small letter s with caron, U+0161 ISOlat2
_entityName.Add(353, "scaron");
_entityValue.Add("Yuml", 376); // latin capital letter Y with diaeresis, U+0178 ISOlat2
_entityName.Add(376, "Yuml");
_entityValue.Add("circ", 710); // modifier letter circumflex accent, U+02C6 ISOpub
_entityName.Add(710, "circ");
_entityValue.Add("tilde", 732); // small tilde, U+02DC ISOdia
_entityName.Add(732, "tilde");
_entityValue.Add("ensp", 8194); // en space, U+2002 ISOpub
_entityName.Add(8194, "ensp");
_entityValue.Add("emsp", 8195); // em space, U+2003 ISOpub
_entityName.Add(8195, "emsp");
_entityValue.Add("thinsp", 8201); // thin space, U+2009 ISOpub
_entityName.Add(8201, "thinsp");
_entityValue.Add("zwnj", 8204); // zero width non-joiner, U+200C NEW RFC 2070
_entityName.Add(8204, "zwnj");
_entityValue.Add("zwj", 8205); // zero width joiner, U+200D NEW RFC 2070
_entityName.Add(8205, "zwj");
_entityValue.Add("lrm", 8206); // left-to-right mark, U+200E NEW RFC 2070
_entityName.Add(8206, "lrm");
_entityValue.Add("rlm", 8207); // right-to-left mark, U+200F NEW RFC 2070
_entityName.Add(8207, "rlm");
_entityValue.Add("ndash", 8211); // en dash, U+2013 ISOpub
_entityName.Add(8211, "ndash");
_entityValue.Add("mdash", 8212); // em dash, U+2014 ISOpub
_entityName.Add(8212, "mdash");
_entityValue.Add("lsquo", 8216); // left single quotation mark, U+2018 ISOnum
_entityName.Add(8216, "lsquo");
_entityValue.Add("rsquo", 8217); // right single quotation mark, U+2019 ISOnum
_entityName.Add(8217, "rsquo");
_entityValue.Add("sbquo", 8218); // single low-9 quotation mark, U+201A NEW
_entityName.Add(8218, "sbquo");
_entityValue.Add("ldquo", 8220); // left double quotation mark, U+201C ISOnum
_entityName.Add(8220, "ldquo");
_entityValue.Add("rdquo", 8221); // right double quotation mark, U+201D ISOnum
_entityName.Add(8221, "rdquo");
_entityValue.Add("bdquo", 8222); // double low-9 quotation mark, U+201E NEW
_entityName.Add(8222, "bdquo");
_entityValue.Add("dagger", 8224); // dagger, U+2020 ISOpub
_entityName.Add(8224, "dagger");
_entityValue.Add("Dagger", 8225); // double dagger, U+2021 ISOpub
_entityName.Add(8225, "Dagger");
_entityValue.Add("permil", 8240); // per mille sign, U+2030 ISOtech
_entityName.Add(8240, "permil");
_entityValue.Add("lsaquo", 8249); // single left-pointing angle quotation mark, U+2039 ISO proposed
_entityName.Add(8249, "lsaquo");
_entityValue.Add("rsaquo", 8250); // single right-pointing angle quotation mark, U+203A ISO proposed
_entityName.Add(8250, "rsaquo");
_entityValue.Add("euro", 8364); // euro sign, U+20AC NEW
_entityName.Add(8364, "euro");
_maxEntitySize = 8 + 1; // we add the # char
#endregion
}
private HtmlEntity()
{
}
#endregion
#region Public Methods
/// <summary>
/// Replace known entities by characters.
/// </summary>
/// <param name="text">The source text.</param>
/// <returns>The result text.</returns>
public static string DeEntitize(string text)
{
if (text == null)
return null;
if (text.Length == 0)
return text;
StringBuilder sb = new StringBuilder(text.Length);
ParseState state = ParseState.Text;
StringBuilder entity = new StringBuilder(10);
for (int i = 0; i < text.Length; i++)
{
switch (state)
{
case ParseState.Text:
switch (text[i])
{
case '&':
state = ParseState.EntityStart;
break;
default:
sb.Append(text[i]);
break;
}
break;
case ParseState.EntityStart:
switch (text[i])
{
case ';':
if (entity.Length == 0)
{
sb.Append("&;");
}
else
{
if (entity[0] == '#')
{
string e = entity.ToString();
try
{
int code = Convert.ToInt32(e.Substring(1, e.Length - 1));
sb.Append(Convert.ToChar(code));
}
catch
{
sb.Append("&#" + e + ";");
}
}
else
{
// named entity?
int code;
object o = _entityValue[entity.ToString()];
if (o == null)
{
// nope
sb.Append("&" + entity + ";");
}
else
{
// we found one
code = (int) o;
sb.Append(Convert.ToChar(code));
}
}
entity.Remove(0, entity.Length);
}
state = ParseState.Text;
break;
case '&':
// new entity start without end, it was not an entity...
sb.Append("&" + entity);
entity.Remove(0, entity.Length);
break;
default:
entity.Append(text[i]);
if (entity.Length > _maxEntitySize)
{
// unknown stuff, just don't touch it
state = ParseState.Text;
sb.Append("&" + entity);
entity.Remove(0, entity.Length);
}
break;
}
break;
}
}
// finish the work
if (state == ParseState.EntityStart)
{
sb.Append("&" + entity);
}
return sb.ToString();
}
/// <summary>
/// Clone and entitize an HtmlNode. This will affect attribute values and nodes' text. It will also entitize all child nodes.
/// </summary>
/// <param name="node">The node to entitize.</param>
/// <returns>An entitized cloned node.</returns>
public static HtmlNode Entitize(HtmlNode node)
{
if (node == null)
{
throw new ArgumentNullException("node");
}
HtmlNode result = node.CloneNode(true);
if (result.HasAttributes)
Entitize(result.Attributes);
if (result.HasChildNodes)
{
Entitize(result.ChildNodes);
}
else
{
if (result.NodeType == HtmlNodeType.Text)
{
((HtmlTextNode) result).Text = Entitize(((HtmlTextNode) result).Text, true, true);
}
}
return result;
}
/// <summary>
/// Replace characters above 127 by entities.
/// </summary>
/// <param name="text">The source text.</param>
/// <returns>The result text.</returns>
public static string Entitize(string text)
{
return Entitize(text, true);
}
/// <summary>
/// Replace characters above 127 by entities.
/// </summary>
/// <param name="text">The source text.</param>
/// <param name="useNames">If set to false, the function will not use known entities name. Default is true.</param>
/// <returns>The result text.</returns>
public static string Entitize(string text, bool useNames)
{
return Entitize(text, useNames, false);
}
/// <summary>
/// Replace characters above 127 by entities.
/// </summary>
/// <param name="text">The source text.</param>
/// <param name="useNames">If set to false, the function will not use known entities name. Default is true.</param>
/// <param name="entitizeQuotAmpAndLtGt">If set to true, the [quote], [ampersand], [lower than] and [greather than] characters will be entitized.</param>
/// <returns>The result text</returns>
public static string Entitize(string text, bool useNames, bool entitizeQuotAmpAndLtGt)
// _entityValue.Add("quot", 34); // quotation mark = APL quote, U+0022 ISOnum
// _entityName.Add(34, "quot");
// _entityValue.Add("amp", 38); // ampersand, U+0026 ISOnum
// _entityName.Add(38, "amp");
// _entityValue.Add("lt", 60); // less-than sign, U+003C ISOnum
// _entityName.Add(60, "lt");
// _entityValue.Add("gt", 62); // greater-than sign, U+003E ISOnum
// _entityName.Add(62, "gt");
{
if (text == null)
return null;
if (text.Length == 0)
return text;
StringBuilder sb = new StringBuilder(text.Length);
for (int i = 0; i < text.Length; i++)
{
int code = text[i];
if ((code > 127) ||
(entitizeQuotAmpAndLtGt && ((code == 34) || (code == 38) || (code == 60) || (code == 62))))
{
string entity = _entityName[code] as string;
if ((entity == null) || (!useNames))
{
sb.Append("&#" + code + ";");
}
else
{
sb.Append("&" + entity + ";");
}
}
else
{
sb.Append(text[i]);
}
}
return sb.ToString();
}
#endregion
#region Private Methods
private static void Entitize(HtmlAttributeCollection collection)
{
foreach (HtmlAttribute at in collection)
{
at.Value = Entitize(at.Value);
}
}
private static void Entitize(HtmlNodeCollection collection)
{
foreach (HtmlNode node in collection)
{
if (node.HasAttributes)
Entitize(node.Attributes);
if (node.HasChildNodes)
{
Entitize(node.ChildNodes);
}
else
{
if (node.NodeType == HtmlNodeType.Text)
{
((HtmlTextNode) node).Text = Entitize(((HtmlTextNode) node).Text, true, true);
}
}
}
}
#endregion
#region Nested type: ParseState
private enum ParseState
{
Text,
EntityStart
}
#endregion
}
}
+52
View File
@@ -0,0 +1,52 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System.Xml;
namespace HtmlAgilityPack
{
internal class HtmlNameTable : XmlNameTable
{
#region Fields
private NameTable _nametable = new NameTable();
#endregion
#region Public Methods
public override string Add(string array)
{
return _nametable.Add(array);
}
public override string Add(char[] array, int offset, int length)
{
return _nametable.Add(array, offset, length);
}
public override string Get(string array)
{
return _nametable.Get(array);
}
public override string Get(char[] array, int offset, int length)
{
return _nametable.Get(array, offset, length);
}
#endregion
#region Internal Methods
internal string GetOrAdd(string array)
{
string s = Get(array);
if (s == null)
{
return Add(array);
}
return s;
}
#endregion
}
}
File diff suppressed because it is too large. Load diff
+512
View File
@@ -0,0 +1,512 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Collections;
using System.Collections.Generic;
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a combined list and collection of HTML nodes.
/// </summary>
public class HtmlNodeCollection : IList<HtmlNode>
{
#region Fields
private readonly HtmlNode _parentnode;
private readonly List<HtmlNode> _items = new List<HtmlNode>();
#endregion
#region Constructors
/// <summary>
/// Initialize the HtmlNodeCollection with the base parent node
/// </summary>
/// <param name="parentnode">The base node of the collection</param>
public HtmlNodeCollection(HtmlNode parentnode)
{
_parentnode = parentnode; // may be null
}
#endregion
#region Properties
/// <summary>
/// Gets a given node from the list.
/// </summary>
public int this[HtmlNode node]
{
get
{
int index = GetNodeIndex(node);
if (index == -1)
{
throw new ArgumentOutOfRangeException("node",
"Node \"" + node.CloneNode(false).OuterHtml +
"\" was not found in the collection");
}
return index;
}
}
/// <summary>
/// Get node with tag name
/// </summary>
/// <param name="nodeName"></param>
/// <returns></returns>
public HtmlNode this[string nodeName]
{
get
{
nodeName = nodeName.ToLower();
for (int i = 0; i < _items.Count; i++)
if (_items[i].Equals(nodeName))
return _items[i];
return null;
}
}
#endregion
#region IList<HtmlNode> Members
/// <summary>
/// Gets the number of elements actually contained in the list.
/// </summary>
public int Count
{
get { return _items.Count; }
}
/// <summary>
/// Is collection read only
/// </summary>
public bool IsReadOnly
{
get { return false; }
}
/// <summary>
/// Gets the node at the specified index.
/// </summary>
public HtmlNode this[int index]
{
get { return _items[index]; }
set { _items[index] = value; }
}
/// <summary>
/// Add node to the collection
/// </summary>
/// <param name="node"></param>
public void Add(HtmlNode node)
{
_items.Add(node);
}
/// <summary>
/// Clears out the collection of HtmlNodes. Removes each nodes reference to parentnode, nextnode and prevnode
/// </summary>
public void Clear()
{
foreach (HtmlNode node in _items)
{
node.ParentNode = null;
node.NextSibling = null;
node.PreviousSibling = null;
}
_items.Clear();
}
/// <summary>
/// Gets existence of node in collection
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
public bool Contains(HtmlNode item)
{
return _items.Contains(item);
}
/// <summary>
/// Copy collection to array
/// </summary>
/// <param name="array"></param>
/// <param name="arrayIndex"></param>
public void CopyTo(HtmlNode[] array, int arrayIndex)
{
_items.CopyTo(array, arrayIndex);
}
/// <summary>
/// Get Enumerator
/// </summary>
/// <returns></returns>
IEnumerator<HtmlNode> IEnumerable<HtmlNode>.GetEnumerator()
{
return _items.GetEnumerator();
}
/// <summary>
/// Get Explicit Enumerator
/// </summary>
/// <returns></returns>
IEnumerator IEnumerable.GetEnumerator()
{
return _items.GetEnumerator();
}
/// <summary>
/// Get index of node
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
public int IndexOf(HtmlNode item)
{
return _items.IndexOf(item);
}
/// <summary>
/// Insert node at index
/// </summary>
/// <param name="index"></param>
/// <param name="node"></param>
public void Insert(int index, HtmlNode node)
{
HtmlNode next = null;
HtmlNode prev = null;
if (index > 0)
{
prev = _items[index - 1];
}
if (index < _items.Count)
{
next = _items[index];
}
_items.Insert(index, node);
if (prev != null)
{
if (node == prev)
{
throw new InvalidProgramException("Unexpected error.");
}
prev._nextnode = node;
}
if (next != null)
{
next._prevnode = node;
}
node._prevnode = prev;
if (next == node)
{
throw new InvalidProgramException("Unexpected error.");
}
node._nextnode = next;
node._parentnode = _parentnode;
}
/// <summary>
/// Remove node
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
public bool Remove(HtmlNode item)
{
int i = _items.IndexOf(item);
RemoveAt(i);
return true;
}
/// <summary>
/// Remove <see cref="HtmlNode"/> at index
/// </summary>
/// <param name="index"></param>
public void RemoveAt(int index)
{
HtmlNode next = null;
HtmlNode prev = null;
HtmlNode oldnode = _items[index];
if (index > 0)
{
prev = _items[index - 1];
}
if (index < (_items.Count - 1))
{
next = _items[index + 1];
}
_items.RemoveAt(index);
if (prev != null)
{
if (next == prev)
{
throw new InvalidProgramException("Unexpected error.");
}
prev._nextnode = next;
}
if (next != null)
{
next._prevnode = prev;
}
oldnode._prevnode = null;
oldnode._nextnode = null;
oldnode._parentnode = null;
}
#endregion
#region Public Methods
/// <summary>
/// Get first instance of node in supplied collection
/// </summary>
/// <param name="items"></param>
/// <param name="name"></param>
/// <returns></returns>
public static HtmlNode FindFirst(HtmlNodeCollection items, string name)
{
foreach (HtmlNode node in items)
{
if (node.Name.ToLower().Contains(name))
return node;
if (node.HasChildNodes)
{
HtmlNode returnNode = FindFirst(node.ChildNodes, name);
if (returnNode != null)
return returnNode;
}
}
return null;
}
/// <summary>
/// Add node to the end of the collection
/// </summary>
/// <param name="node"></param>
public void Append(HtmlNode node)
{
HtmlNode last = null;
if (_items.Count > 0)
{
last = _items[_items.Count - 1];
}
_items.Add(node);
node._prevnode = last;
node._nextnode = null;
node._parentnode = _parentnode;
if (last != null)
{
if (last == node)
{
throw new InvalidProgramException("Unexpected error.");
}
last._nextnode = node;
}
}
/// <summary>
/// Get first instance of node with name
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
public HtmlNode FindFirst(string name)
{
return FindFirst(this, name);
}
/// <summary>
/// Get index of node
/// </summary>
/// <param name="node"></param>
/// <returns></returns>
public int GetNodeIndex(HtmlNode node)
{
// TODO: should we rewrite this? what would be the key of a node?
for (int i = 0; i < _items.Count; i++)
{
if (node == (_items[i]))
{
return i;
}
}
return -1;
}
/// <summary>
/// Add node to the beginning of the collection
/// </summary>
/// <param name="node"></param>
public void Prepend(HtmlNode node)
{
HtmlNode first = null;
if (_items.Count > 0)
{
first = _items[0];
}
_items.Insert(0, node);
if (node == first)
{
throw new InvalidProgramException("Unexpected error.");
}
node._nextnode = first;
node._prevnode = null;
node._parentnode = _parentnode;
if (first != null)
{
first._prevnode = node;
}
}
/// <summary>
/// Remove node at index
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
public bool Remove(int index)
{
RemoveAt(index);
return true;
}
/// <summary>
/// Replace node at index
/// </summary>
/// <param name="index"></param>
/// <param name="node"></param>
public void Replace(int index, HtmlNode node)
{
HtmlNode next = null;
HtmlNode prev = null;
HtmlNode oldnode = _items[index];
if (index > 0)
{
prev = _items[index - 1];
}
if (index < (_items.Count - 1))
{
next = _items[index + 1];
}
_items[index] = node;
if (prev != null)
{
if (node == prev)
{
throw new InvalidProgramException("Unexpected error.");
}
prev._nextnode = node;
}
if (next != null)
{
next._prevnode = node;
}
node._prevnode = prev;
if (next == node)
{
throw new InvalidProgramException("Unexpected error.");
}
node._nextnode = next;
node._parentnode = _parentnode;
oldnode._prevnode = null;
oldnode._nextnode = null;
oldnode._parentnode = null;
}
#endregion
#region LINQ Methods
/// <summary>
/// Get all node descended from this collection
/// </summary>
/// <returns></returns>
public IEnumerable<HtmlNode> DescendantNodes()
{
foreach (HtmlNode item in _items)
foreach (HtmlNode n in item.DescendantNodes())
yield return n;
}
/// <summary>
/// Get all node descended from this collection
/// </summary>
/// <returns></returns>
public IEnumerable<HtmlNode> Descendants()
{
foreach (HtmlNode item in _items)
foreach (HtmlNode n in item.Descendants())
yield return n;
}
/// <summary>
/// Get all node descended from this collection with matching name
/// </summary>
/// <returns></returns>
public IEnumerable<HtmlNode> Descendants(string name)
{
foreach (HtmlNode item in _items)
foreach (HtmlNode n in item.Descendants(name))
yield return n;
}
/// <summary>
/// Gets all first generation elements in collection
/// </summary>
/// <returns></returns>
public IEnumerable<HtmlNode> Elements()
{
foreach (HtmlNode item in _items)
foreach (HtmlNode n in item.ChildNodes)
yield return n;
}
/// <summary>
/// Gets all first generation elements matching name
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
public IEnumerable<HtmlNode> Elements(string name)
{
foreach (HtmlNode item in _items)
foreach (HtmlNode n in item.Elements(name))
yield return n;
}
/// <summary>
/// All first generation nodes in collection
/// </summary>
/// <returns></returns>
public IEnumerable<HtmlNode> Nodes()
{
foreach (HtmlNode item in _items)
foreach (HtmlNode n in item.ChildNodes)
yield return n;
}
#endregion
}
}
+768
View File
@@ -0,0 +1,768 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.XPath;
namespace HtmlAgilityPack
{
/// <summary>
/// Represents an HTML navigator on an HTML document seen as a data store.
/// </summary>
public class HtmlNodeNavigator : XPathNavigator
{
#region Fields
private int _attindex;
private HtmlNode _currentnode;
private HtmlDocument _doc = new HtmlDocument();
private HtmlNameTable _nametable = new HtmlNameTable();
internal bool Trace;
#endregion
#region Constructors
internal HtmlNodeNavigator()
{
Reset();
}
internal HtmlNodeNavigator(HtmlDocument doc, HtmlNode currentNode)
{
if (currentNode == null)
{
throw new ArgumentNullException("currentNode");
}
if (currentNode.OwnerDocument != doc)
{
throw new ArgumentException(HtmlDocument.HtmlExceptionRefNotChild);
}
InternalTrace(null);
_doc = doc;
Reset();
_currentnode = currentNode;
}
private HtmlNodeNavigator(HtmlNodeNavigator nav)
{
if (nav == null)
{
throw new ArgumentNullException("nav");
}
InternalTrace(null);
_doc = nav._doc;
_currentnode = nav._currentnode;
_attindex = nav._attindex;
_nametable = nav._nametable; // REVIEW: should we do this?
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
public HtmlNodeNavigator(Stream stream)
{
_doc.Load(stream);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the stream.</param>
public HtmlNodeNavigator(Stream stream, bool detectEncodingFromByteOrderMarks)
{
_doc.Load(stream, detectEncodingFromByteOrderMarks);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="encoding">The character encoding to use.</param>
public HtmlNodeNavigator(Stream stream, Encoding encoding)
{
_doc.Load(stream, encoding);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the stream.</param>
public HtmlNodeNavigator(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks)
{
_doc.Load(stream, encoding, detectEncodingFromByteOrderMarks);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the stream.</param>
/// <param name="buffersize">The minimum buffer size.</param>
public HtmlNodeNavigator(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
{
_doc.Load(stream, encoding, detectEncodingFromByteOrderMarks, buffersize);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a TextReader.
/// </summary>
/// <param name="reader">The TextReader used to feed the HTML data into the document.</param>
public HtmlNodeNavigator(TextReader reader)
{
_doc.Load(reader);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
public HtmlNodeNavigator(string path)
{
_doc.Load(path);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
public HtmlNodeNavigator(string path, bool detectEncodingFromByteOrderMarks)
{
_doc.Load(path, detectEncodingFromByteOrderMarks);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="encoding">The character encoding to use.</param>
public HtmlNodeNavigator(string path, Encoding encoding)
{
_doc.Load(path, encoding);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
public HtmlNodeNavigator(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks)
{
_doc.Load(path, encoding, detectEncodingFromByteOrderMarks);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
/// <param name="buffersize">The minimum buffer size.</param>
public HtmlNodeNavigator(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
{
_doc.Load(path, encoding, detectEncodingFromByteOrderMarks, buffersize);
Reset();
}
#endregion
#region Properties
/// <summary>
/// Gets the base URI for the current node.
/// Always returns string.Empty in the case of HtmlNavigator implementation.
/// </summary>
public override string BaseURI
{
get
{
InternalTrace(">");
return _nametable.GetOrAdd(string.Empty);
}
}
/// <summary>
/// Gets the current HTML document.
/// </summary>
public HtmlDocument CurrentDocument
{
get { return _doc; }
}
/// <summary>
/// Gets the current HTML node.
/// </summary>
public HtmlNode CurrentNode
{
get { return _currentnode; }
}
/// <summary>
/// Gets a value indicating whether the current node has child nodes.
/// </summary>
public override bool HasAttributes
{
get
{
InternalTrace(">" + (_currentnode.Attributes.Count > 0));
return (_currentnode.Attributes.Count > 0);
}
}
/// <summary>
/// Gets a value indicating whether the current node has child nodes.
/// </summary>
public override bool HasChildren
{
get
{
InternalTrace(">" + (_currentnode.ChildNodes.Count > 0));
return (_currentnode.ChildNodes.Count > 0);
}
}
/// <summary>
/// Gets a value indicating whether the current node is an empty element.
/// </summary>
public override bool IsEmptyElement
{
get
{
InternalTrace(">" + !HasChildren);
// REVIEW: is this ok?
return !HasChildren;
}
}
/// <summary>
/// Gets the name of the current HTML node without the namespace prefix.
/// </summary>
public override string LocalName
{
get
{
if (_attindex != -1)
{
InternalTrace("att>" + _currentnode.Attributes[_attindex].Name);
return _nametable.GetOrAdd(_currentnode.Attributes[_attindex].Name);
}
InternalTrace("node>" + _currentnode.Name);
return _nametable.GetOrAdd(_currentnode.Name);
}
}
/// <summary>
/// Gets the qualified name of the current node.
/// </summary>
public override string Name
{
get
{
InternalTrace(">" + _currentnode.Name);
return _nametable.GetOrAdd(_currentnode.Name);
}
}
/// <summary>
/// Gets the namespace URI (as defined in the W3C Namespace Specification) of the current node.
/// Always returns string.Empty in the case of HtmlNavigator implementation.
/// </summary>
public override string NamespaceURI
{
get
{
InternalTrace(">");
return _nametable.GetOrAdd(string.Empty);
}
}
/// <summary>
/// Gets the <see cref="XmlNameTable"/> associated with this implementation.
/// </summary>
public override XmlNameTable NameTable
{
get
{
InternalTrace(null);
return _nametable;
}
}
/// <summary>
/// Gets the type of the current node.
/// </summary>
public override XPathNodeType NodeType
{
get
{
switch (_currentnode.NodeType)
{
case HtmlNodeType.Comment:
InternalTrace(">" + XPathNodeType.Comment);
return XPathNodeType.Comment;
case HtmlNodeType.Document:
InternalTrace(">" + XPathNodeType.Root);
return XPathNodeType.Root;
case HtmlNodeType.Text:
InternalTrace(">" + XPathNodeType.Text);
return XPathNodeType.Text;
case HtmlNodeType.Element:
{
if (_attindex != -1)
{
InternalTrace(">" + XPathNodeType.Attribute);
return XPathNodeType.Attribute;
}
InternalTrace(">" + XPathNodeType.Element);
return XPathNodeType.Element;
}
default:
throw new NotImplementedException("Internal error: Unhandled HtmlNodeType: " +
_currentnode.NodeType);
}
}
}
/// <summary>
/// Gets the prefix associated with the current node.
/// Always returns string.Empty in the case of HtmlNavigator implementation.
/// </summary>
public override string Prefix
{
get
{
InternalTrace(null);
return _nametable.GetOrAdd(string.Empty);
}
}
/// <summary>
/// Gets the text value of the current node.
/// </summary>
public override string Value
{
get
{
InternalTrace("nt=" + _currentnode.NodeType);
switch (_currentnode.NodeType)
{
case HtmlNodeType.Comment:
InternalTrace(">" + ((HtmlCommentNode) _currentnode).Comment);
return ((HtmlCommentNode) _currentnode).Comment;
case HtmlNodeType.Document:
InternalTrace(">");
return "";
case HtmlNodeType.Text:
InternalTrace(">" + ((HtmlTextNode) _currentnode).Text);
return ((HtmlTextNode) _currentnode).Text;
case HtmlNodeType.Element:
{
if (_attindex != -1)
{
InternalTrace(">" + _currentnode.Attributes[_attindex].Value);
return _currentnode.Attributes[_attindex].Value;
}
return _currentnode.InnerText;
}
default:
throw new NotImplementedException("Internal error: Unhandled HtmlNodeType: " +
_currentnode.NodeType);
}
}
}
/// <summary>
/// Gets the xml:lang scope for the current node.
/// Always returns string.Empty in the case of HtmlNavigator implementation.
/// </summary>
public override string XmlLang
{
get
{
InternalTrace(null);
return _nametable.GetOrAdd(string.Empty);
}
}
#endregion
#region Public Methods
/// <summary>
/// Creates a new HtmlNavigator positioned at the same node as this HtmlNavigator.
/// </summary>
/// <returns>A new HtmlNavigator object positioned at the same node as the original HtmlNavigator.</returns>
public override XPathNavigator Clone()
{
InternalTrace(null);
return new HtmlNodeNavigator(this);
}
/// <summary>
/// Gets the value of the HTML attribute with the specified LocalName and NamespaceURI.
/// </summary>
/// <param name="localName">The local name of the HTML attribute.</param>
/// <param name="namespaceURI">The namespace URI of the attribute. Unsupported with the HtmlNavigator implementation.</param>
/// <returns>The value of the specified HTML attribute. String.Empty or null if a matching attribute is not found or if the navigator is not positioned on an element node.</returns>
public override string GetAttribute(string localName, string namespaceURI)
{
InternalTrace("localName=" + localName + ", namespaceURI=" + namespaceURI);
HtmlAttribute att = _currentnode.Attributes[localName];
if (att == null)
{
InternalTrace(">null");
return null;
}
InternalTrace(">" + att.Value);
return att.Value;
}
/// <summary>
/// Returns the value of the namespace node corresponding to the specified local name.
/// Always returns string.Empty for the HtmlNavigator implementation.
/// </summary>
/// <param name="name">The local name of the namespace node.</param>
/// <returns>Always returns string.Empty for the HtmlNavigator implementation.</returns>
public override string GetNamespace(string name)
{
InternalTrace("name=" + name);
return string.Empty;
}
/// <summary>
/// Determines whether the current HtmlNavigator is at the same position as the specified HtmlNavigator.
/// </summary>
/// <param name="other">The HtmlNavigator that you want to compare against.</param>
/// <returns>true if the two navigators have the same position, otherwise, false.</returns>
public override bool IsSamePosition(XPathNavigator other)
{
HtmlNodeNavigator nav = other as HtmlNodeNavigator;
if (nav == null)
{
InternalTrace(">false");
return false;
}
InternalTrace(">" + (nav._currentnode == _currentnode));
return (nav._currentnode == _currentnode);
}
/// <summary>
/// Moves to the same position as the specified HtmlNavigator.
/// </summary>
/// <param name="other">The HtmlNavigator positioned on the node that you want to move to.</param>
/// <returns>true if successful, otherwise false. If false, the position of the navigator is unchanged.</returns>
public override bool MoveTo(XPathNavigator other)
{
HtmlNodeNavigator nav = other as HtmlNodeNavigator;
if (nav == null)
{
InternalTrace(">false (nav is not an HtmlNodeNavigator)");
return false;
}
InternalTrace("moveto oid=" + nav.GetHashCode()
+ ", n:" + nav._currentnode.Name
+ ", a:" + nav._attindex);
if (nav._doc == _doc)
{
_currentnode = nav._currentnode;
_attindex = nav._attindex;
InternalTrace(">true");
return true;
}
// we don't know how to handle that
InternalTrace(">false (???)");
return false;
}
/// <summary>
/// Moves to the HTML attribute with matching LocalName and NamespaceURI.
/// </summary>
/// <param name="localName">The local name of the HTML attribute.</param>
/// <param name="namespaceURI">The namespace URI of the attribute. Unsupported with the HtmlNavigator implementation.</param>
/// <returns>true if the HTML attribute is found, otherwise, false. If false, the position of the navigator does not change.</returns>
public override bool MoveToAttribute(string localName, string namespaceURI)
{
InternalTrace("localName=" + localName + ", namespaceURI=" + namespaceURI);
int index = _currentnode.Attributes.GetAttributeIndex(localName);
if (index == -1)
{
InternalTrace(">false");
return false;
}
_attindex = index;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves to the first sibling of the current node.
/// </summary>
/// <returns>true if the navigator is successful moving to the first sibling node, false if there is no first sibling or if the navigator is currently positioned on an attribute node.</returns>
public override bool MoveToFirst()
{
if (_currentnode.ParentNode == null)
{
InternalTrace(">false");
return false;
}
if (_currentnode.ParentNode.FirstChild == null)
{
InternalTrace(">false");
return false;
}
_currentnode = _currentnode.ParentNode.FirstChild;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves to the first HTML attribute.
/// </summary>
/// <returns>true if the navigator is successful moving to the first HTML attribute, otherwise, false.</returns>
public override bool MoveToFirstAttribute()
{
if (!HasAttributes)
{
InternalTrace(">false");
return false;
}
_attindex = 0;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves to the first child of the current node.
/// </summary>
/// <returns>true if there is a first child node, otherwise false.</returns>
public override bool MoveToFirstChild()
{
if (!_currentnode.HasChildNodes)
{
InternalTrace(">false");
return false;
}
_currentnode = _currentnode.ChildNodes[0];
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves the XPathNavigator to the first namespace node of the current element.
/// Always returns false for the HtmlNavigator implementation.
/// </summary>
/// <param name="scope">An XPathNamespaceScope value describing the namespace scope.</param>
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
public override bool MoveToFirstNamespace(XPathNamespaceScope scope)
{
InternalTrace(null);
return false;
}
/// <summary>
/// Moves to the node that has an attribute of type ID whose value matches the specified string.
/// </summary>
/// <param name="id">A string representing the ID value of the node to which you want to move. This argument does not need to be atomized.</param>
/// <returns>true if the move was successful, otherwise false. If false, the position of the navigator is unchanged.</returns>
public override bool MoveToId(string id)
{
InternalTrace("id=" + id);
HtmlNode node = _doc.GetElementbyId(id);
if (node == null)
{
InternalTrace(">false");
return false;
}
_currentnode = node;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves the XPathNavigator to the namespace node with the specified local name.
/// Always returns false for the HtmlNavigator implementation.
/// </summary>
/// <param name="name">The local name of the namespace node.</param>
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
public override bool MoveToNamespace(string name)
{
InternalTrace("name=" + name);
return false;
}
/// <summary>
/// Moves to the next sibling of the current node.
/// </summary>
/// <returns>true if the navigator is successful moving to the next sibling node, false if there are no more siblings or if the navigator is currently positioned on an attribute node. If false, the position of the navigator is unchanged.</returns>
public override bool MoveToNext()
{
if (_currentnode.NextSibling == null)
{
InternalTrace(">false");
return false;
}
InternalTrace("_c=" + _currentnode.CloneNode(false).OuterHtml);
InternalTrace("_n=" + _currentnode.NextSibling.CloneNode(false).OuterHtml);
_currentnode = _currentnode.NextSibling;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves to the next HTML attribute.
/// </summary>
/// <returns></returns>
public override bool MoveToNextAttribute()
{
InternalTrace(null);
if (_attindex >= (_currentnode.Attributes.Count - 1))
{
InternalTrace(">false");
return false;
}
_attindex++;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves the XPathNavigator to the next namespace node.
/// Always returns falsefor the HtmlNavigator implementation.
/// </summary>
/// <param name="scope">An XPathNamespaceScope value describing the namespace scope.</param>
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
public override bool MoveToNextNamespace(XPathNamespaceScope scope)
{
InternalTrace(null);
return false;
}
/// <summary>
/// Moves to the parent of the current node.
/// </summary>
/// <returns>true if there is a parent node, otherwise false.</returns>
public override bool MoveToParent()
{
if (_currentnode.ParentNode == null)
{
InternalTrace(">false");
return false;
}
_currentnode = _currentnode.ParentNode;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves to the previous sibling of the current node.
/// </summary>
/// <returns>true if the navigator is successful moving to the previous sibling node, false if there is no previous sibling or if the navigator is currently positioned on an attribute node.</returns>
public override bool MoveToPrevious()
{
if (_currentnode.PreviousSibling == null)
{
InternalTrace(">false");
return false;
}
_currentnode = _currentnode.PreviousSibling;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves to the root node to which the current node belongs.
/// </summary>
public override void MoveToRoot()
{
_currentnode = _doc.DocumentNode;
InternalTrace(null);
}
#endregion
#region Internal Methods
[Conditional("TRACE")]
internal void InternalTrace(object traceValue)
{
if (!Trace)
{
return;
}
StackFrame sf = new StackFrame(1, true);
string name = sf.GetMethod().Name;
string nodename = _currentnode == null ? "(null)" : _currentnode.Name;
string nodevalue;
if (_currentnode == null)
{
nodevalue = "(null)";
}
else
{
switch (_currentnode.NodeType)
{
case HtmlNodeType.Comment:
nodevalue = ((HtmlCommentNode) _currentnode).Comment;
break;
case HtmlNodeType.Document:
nodevalue = "";
break;
case HtmlNodeType.Text:
nodevalue = ((HtmlTextNode) _currentnode).Text;
break;
default:
nodevalue = _currentnode.CloneNode(false).OuterHtml;
break;
}
}
System.Diagnostics.Trace.WriteLine(string.Format("oid={0},n={1},a={2},v={3},{4}", GetHashCode(), nodename, _attindex, nodevalue, traceValue), "N!" + name);
}
#endregion
#region Private Methods
private void Reset()
{
InternalTrace(null);
_currentnode = _doc.DocumentNode;
_attindex = -1;
}
#endregion
}
}
+29
View File
@@ -0,0 +1,29 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents the type of a node.
/// </summary>
public enum HtmlNodeType
{
/// <summary>
/// The root of a document.
/// </summary>
Document,
/// <summary>
/// An HTML element.
/// </summary>
Element,
/// <summary>
/// An HTML comment.
/// </summary>
Comment,
/// <summary>
/// A text node is always the child of an element or a document node.
/// </summary>
Text,
}
}
+92
View File
@@ -0,0 +1,92 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a parsing error found during document parsing.
/// </summary>
public class HtmlParseError
{
#region Fields
private HtmlParseErrorCode _code;
private int _line;
private int _linePosition;
private string _reason;
private string _sourceText;
private int _streamPosition;
#endregion
#region Constructors
internal HtmlParseError(
HtmlParseErrorCode code,
int line,
int linePosition,
int streamPosition,
string sourceText,
string reason)
{
_code = code;
_line = line;
_linePosition = linePosition;
_streamPosition = streamPosition;
_sourceText = sourceText;
_reason = reason;
}
#endregion
#region Properties
/// <summary>
/// Gets the type of error.
/// </summary>
public HtmlParseErrorCode Code
{
get { return _code; }
}
/// <summary>
/// Gets the line number of this error in the document.
/// </summary>
public int Line
{
get { return _line; }
}
/// <summary>
/// Gets the column number of this error in the document.
/// </summary>
public int LinePosition
{
get { return _linePosition; }
}
/// <summary>
/// Gets a description for the error.
/// </summary>
public string Reason
{
get { return _reason; }
}
/// <summary>
/// Gets the the full text of the line containing the error.
/// </summary>
public string SourceText
{
get { return _sourceText; }
}
/// <summary>
/// Gets the absolute stream position of this error in the document, relative to the start of the document.
/// </summary>
public int StreamPosition
{
get { return _streamPosition; }
}
#endregion
}
}
@@ -0,0 +1,34 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents the type of parsing error.
/// </summary>
public enum HtmlParseErrorCode
{
/// <summary>
/// A tag was not closed.
/// </summary>
TagNotClosed,
/// <summary>
/// A tag was not opened.
/// </summary>
TagNotOpened,
/// <summary>
/// There is a charset mismatch between stream and declared (META) encoding.
/// </summary>
CharsetMismatch,
/// <summary>
/// An end tag was not required.
/// </summary>
EndTagNotRequired,
/// <summary>
/// An end tag is invalid at this position.
/// </summary>
EndTagInvalidHere
}
}
+69
View File
@@ -0,0 +1,69 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents an HTML text node.
/// </summary>
public class HtmlTextNode : HtmlNode
{
#region Fields
private string _text;
#endregion
#region Constructors
internal HtmlTextNode(HtmlDocument ownerdocument, int index)
:
base(HtmlNodeType.Text, ownerdocument, index)
{
}
#endregion
#region Properties
/// <summary>
/// Gets or Sets the HTML between the start and end tags of the object. In the case of a text node, it is equals to OuterHtml.
/// </summary>
public override string InnerHtml
{
get { return OuterHtml; }
set { _text = value; }
}
/// <summary>
/// Gets or Sets the object and its content in HTML.
/// </summary>
public override string OuterHtml
{
get
{
if (_text == null)
{
return base.OuterHtml;
}
return _text;
}
}
/// <summary>
/// Gets or Sets the text of the node.
/// </summary>
public string Text
{
get
{
if (_text == null)
{
return base.OuterHtml;
}
return _text;
}
set { _text = value; }
}
#endregion
}
}
+907
View File
@@ -0,0 +1,907 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.Xml.Xsl;
using Microsoft.Win32;
namespace HtmlAgilityPack
{
/// <summary>
/// A utility class to get HTML document from HTTP.
/// </summary>
public class HtmlWeb
{
#region Delegates
/// <summary>
/// Represents the method that will handle the PostResponse event.
/// </summary>
public delegate void PostResponseHandler(HttpWebRequest request, HttpWebResponse response);
/// <summary>
/// Represents the method that will handle the PreHandleDocument event.
/// </summary>
public delegate void PreHandleDocumentHandler(HtmlDocument document);
/// <summary>
/// Represents the method that will handle the PreRequest event.
/// </summary>
public delegate bool PreRequestHandler(HttpWebRequest request);
#endregion
#region Fields
private bool _autoDetectEncoding = true;
private bool _cacheOnly;
private string _cachePath;
private bool _fromCache;
private int _requestDuration;
private Uri _responseUri;
private HttpStatusCode _statusCode = HttpStatusCode.OK;
private int _streamBufferSize = 1024;
private bool _useCookies;
private bool _usingCache;
/// <summary>
/// Occurs after an HTTP request has been executed.
/// </summary>
public PostResponseHandler PostResponse;
/// <summary>
/// Occurs before an HTML document is handled.
/// </summary>
public PreHandleDocumentHandler PreHandleDocument;
/// <summary>
/// Occurs before an HTTP request is executed.
/// </summary>
public PreRequestHandler PreRequest;
#endregion
#region Properties
/// <summary>
/// Gets or Sets a value indicating if document encoding must be automatically detected.
/// </summary>
public bool AutoDetectEncoding
{
get { return _autoDetectEncoding; }
set { _autoDetectEncoding = value; }
}
/// <summary>
/// Gets or Sets a value indicating whether to get document only from the cache.
/// If this is set to true and document is not found in the cache, nothing will be loaded.
/// </summary>
public bool CacheOnly
{
get { return _cacheOnly; }
set
{
if ((value) && !UsingCache)
{
throw new HtmlWebException("Cache is not enabled. Set UsingCache to true first.");
}
_cacheOnly = value;
}
}
/// <summary>
/// Gets or Sets the cache path. If null, no caching mechanism will be used.
/// </summary>
public string CachePath
{
get { return _cachePath; }
set { _cachePath = value; }
}
/// <summary>
/// Gets a value indicating if the last document was retrieved from the cache.
/// </summary>
public bool FromCache
{
get { return _fromCache; }
}
/// <summary>
/// Gets the last request duration in milliseconds.
/// </summary>
public int RequestDuration
{
get { return _requestDuration; }
}
/// <summary>
/// Gets the URI of the Internet resource that actually responded to the request.
/// </summary>
public Uri ResponseUri
{
get { return _responseUri; }
}
/// <summary>
/// Gets the last request status.
/// </summary>
public HttpStatusCode StatusCode
{
get { return _statusCode; }
}
/// <summary>
/// Gets or Sets the size of the buffer used for memory operations.
/// </summary>
public int StreamBufferSize
{
get { return _streamBufferSize; }
set
{
if (_streamBufferSize <= 0)
{
throw new ArgumentException("Size must be greater than zero.");
}
_streamBufferSize = value;
}
}
/// <summary>
/// Gets or Sets a value indicating if cookies will be stored.
/// </summary>
public bool UseCookies
{
get { return _useCookies; }
set { _useCookies = value; }
}
/// <summary>
/// Gets or Sets a value indicating whether the caching mechanisms should be used or not.
/// </summary>
public bool UsingCache
{
get
{
if (_cachePath == null)
{
return false;
}
return _usingCache;
}
set
{
if ((value) && (_cachePath == null))
{
throw new HtmlWebException("You need to define a CachePath first.");
}
_usingCache = value;
}
}
#endregion
#region Public Methods
/// <summary>
/// Gets the MIME content type for a given path extension.
/// </summary>
/// <param name="extension">The input path extension.</param>
/// <param name="def">The default content type to return if any error occurs.</param>
/// <returns>The path extension's MIME content type.</returns>
public static string GetContentTypeForExtension(string extension, string def)
{
if (string.IsNullOrEmpty(extension))
{
return def;
}
string contentType = "";
try
{
RegistryKey reg = Registry.ClassesRoot;
reg = reg.OpenSubKey(extension, false);
if (reg != null) contentType = (string)reg.GetValue("", def);
}
catch (Exception)
{
contentType = def;
}
return contentType;
}
/// <summary>
/// Gets the path extension for a given MIME content type.
/// </summary>
/// <param name="contentType">The input MIME content type.</param>
/// <param name="def">The default path extension to return if any error occurs.</param>
/// <returns>The MIME content type's path extension.</returns>
public static string GetExtensionForContentType(string contentType, string def)
{
if (string.IsNullOrEmpty(contentType))
{
return def;
}
string ext = "";
try
{
RegistryKey reg = Registry.ClassesRoot;
reg = reg.OpenSubKey(@"MIME\Database\Content Type\" + contentType, false);
if (reg != null) ext = (string)reg.GetValue("Extension", def);
}
catch (Exception)
{
ext = def;
}
return ext;
}
/// <summary>
/// Creates an instance of the given type from the specified Internet resource.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="type">The requested type.</param>
/// <returns>An newly created instance.</returns>
public object CreateInstance(string url, Type type)
{
return CreateInstance(url, null, null, type);
}
/// <summary>
/// Creates an instance of the given type from the specified Internet resource.
/// </summary>
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="xsltUrl">The URL that specifies the XSLT stylesheet to load.</param>
/// <param name="xsltArgs">An <see cref="XsltArgumentList"/> containing the namespace-qualified arguments used as input to the transform.</param>
/// <param name="type">The requested type.</param>
/// <returns>An newly created instance.</returns>
public object CreateInstance(string htmlUrl, string xsltUrl, XsltArgumentList xsltArgs, Type type)
{
return CreateInstance(htmlUrl, xsltUrl, xsltArgs, type, null);
}
/// <summary>
/// Creates an instance of the given type from the specified Internet resource.
/// </summary>
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="xsltUrl">The URL that specifies the XSLT stylesheet to load.</param>
/// <param name="xsltArgs">An <see cref="XsltArgumentList"/> containing the namespace-qualified arguments used as input to the transform.</param>
/// <param name="type">The requested type.</param>
/// <param name="xmlPath">A file path where the temporary XML before transformation will be saved. Mostly used for debugging purposes.</param>
/// <returns>An newly created instance.</returns>
public object CreateInstance(string htmlUrl, string xsltUrl, XsltArgumentList xsltArgs, Type type,
string xmlPath)
{
StringWriter sw = new StringWriter();
XmlTextWriter writer = new XmlTextWriter(sw);
if (xsltUrl == null)
{
LoadHtmlAsXml(htmlUrl, writer);
}
else
{
if (xmlPath == null)
{
LoadHtmlAsXml(htmlUrl, xsltUrl, xsltArgs, writer);
}
else
{
LoadHtmlAsXml(htmlUrl, xsltUrl, xsltArgs, writer, xmlPath);
}
}
writer.Flush();
StringReader sr = new StringReader(sw.ToString());
XmlTextReader reader = new XmlTextReader(sr);
XmlSerializer serializer = new XmlSerializer(type);
object o;
try
{
o = serializer.Deserialize(reader);
}
catch (InvalidOperationException ex)
{
throw new Exception(ex + ", --- xml:" + sw);
}
return o;
}
/// <summary>
/// Gets an HTML document from an Internet resource and saves it to the specified file.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="path">The location of the file where you want to save the document.</param>
public void Get(string url, string path)
{
Get(url, path, "GET");
}
/// <summary>
/// Gets an HTML document from an Internet resource and saves it to the specified file. - Proxy aware
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="path">The location of the file where you want to save the document.</param>
/// <param name="proxy"></param>
/// <param name="credentials"></param>
public void Get(string url, string path, WebProxy proxy, NetworkCredential credentials)
{
Get(url, path, proxy, credentials, "GET");
}
/// <summary>
/// Gets an HTML document from an Internet resource and saves it to the specified file.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="path">The location of the file where you want to save the document.</param>
/// <param name="method">The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.</param>
public void Get(string url, string path, string method)
{
Uri uri = new Uri(url);
if ((uri.Scheme == Uri.UriSchemeHttps) ||
(uri.Scheme == Uri.UriSchemeHttp))
{
Get(uri, method, path, null, null, null);
}
else
{
throw new HtmlWebException("Unsupported uri scheme: '" + uri.Scheme + "'.");
}
}
/// <summary>
/// Gets an HTML document from an Internet resource and saves it to the specified file. Understands Proxies
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="path">The location of the file where you want to save the document.</param>
/// <param name="credentials"></param>
/// <param name="method">The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.</param>
/// <param name="proxy"></param>
public void Get(string url, string path, WebProxy proxy, NetworkCredential credentials, string method)
{
Uri uri = new Uri(url);
if ((uri.Scheme == Uri.UriSchemeHttps) ||
(uri.Scheme == Uri.UriSchemeHttp))
{
Get(uri, method, path, null, proxy, credentials);
}
else
{
throw new HtmlWebException("Unsupported uri scheme: '" + uri.Scheme + "'.");
}
}
/// <summary>
/// Gets the cache file path for a specified url.
/// </summary>
/// <param name="uri">The url fo which to retrieve the cache path. May not be null.</param>
/// <returns>The cache file path.</returns>
public string GetCachePath(Uri uri)
{
if (uri == null)
{
throw new ArgumentNullException("uri");
}
if (!UsingCache)
{
throw new HtmlWebException("Cache is not enabled. Set UsingCache to true first.");
}
string cachePath;
if (uri.AbsolutePath == "/")
{
cachePath = Path.Combine(_cachePath, ".htm");
}
else
{
cachePath = Path.Combine(_cachePath, (uri.Host + uri.AbsolutePath).Replace('/', '\\'));
}
return cachePath;
}
/// <summary>
/// Gets an HTML document from an Internet resource.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <returns>A new HTML document.</returns>
public HtmlDocument Load(string url)
{
return Load(url, "GET");
}
/// <summary>
/// Gets an HTML document from an Internet resource.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="proxyHost">Host to use for Proxy</param>
/// <param name="proxyPort">Port the Proxy is on</param>
/// <param name="userId">User Id for Authentication</param>
/// <param name="password">Password for Authentication</param>
/// <returns>A new HTML document.</returns>
public HtmlDocument Load(string url, string proxyHost, int proxyPort, string userId, string password)
{
//Create my proxy
WebProxy myProxy = new WebProxy(proxyHost, proxyPort);
myProxy.BypassProxyOnLocal = true;
//Create my credentials
NetworkCredential myCreds = null;
if ((userId != null) && (password != null))
{
myCreds = new NetworkCredential(userId, password);
CredentialCache credCache = new CredentialCache();
//Add the creds
credCache.Add(myProxy.Address, "Basic", myCreds);
credCache.Add(myProxy.Address, "Digest", myCreds);
}
return Load(url, "GET", myProxy, myCreds);
}
/// <summary>
/// Loads an HTML document from an Internet resource.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="method">The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.</param>
/// <returns>A new HTML document.</returns>
public HtmlDocument Load(string url, string method)
{
Uri uri = new Uri(url);
HtmlDocument doc;
if ((uri.Scheme == Uri.UriSchemeHttps) ||
(uri.Scheme == Uri.UriSchemeHttp))
{
doc = LoadUrl(uri, method, null, null);
}
else
{
if (uri.Scheme == Uri.UriSchemeFile)
{
doc = new HtmlDocument();
doc.OptionAutoCloseOnEnd = false;
doc.OptionAutoCloseOnEnd = true;
doc.DetectEncodingAndLoad(url, _autoDetectEncoding);
}
else
{
throw new HtmlWebException("Unsupported uri scheme: '" + uri.Scheme + "'.");
}
}
if (PreHandleDocument != null)
{
PreHandleDocument(doc);
}
return doc;
}
/// <summary>
/// Loads an HTML document from an Internet resource.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="method">The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.</param>
/// <param name="proxy">Proxy to use with this request</param>
/// <param name="credentials">Credentials to use when authenticating</param>
/// <returns>A new HTML document.</returns>
public HtmlDocument Load(string url, string method, WebProxy proxy, NetworkCredential credentials)
{
Uri uri = new Uri(url);
HtmlDocument doc;
if ((uri.Scheme == Uri.UriSchemeHttps) ||
(uri.Scheme == Uri.UriSchemeHttp))
{
doc = LoadUrl(uri, method, proxy, credentials);
}
else
{
if (uri.Scheme == Uri.UriSchemeFile)
{
doc = new HtmlDocument();
doc.OptionAutoCloseOnEnd = false;
doc.OptionAutoCloseOnEnd = true;
doc.DetectEncodingAndLoad(url, _autoDetectEncoding);
}
else
{
throw new HtmlWebException("Unsupported uri scheme: '" + uri.Scheme + "'.");
}
}
if (PreHandleDocument != null)
{
PreHandleDocument(doc);
}
return doc;
}
/// <summary>
/// Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter.
/// </summary>
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="writer">The XmlTextWriter to which you want to save.</param>
public void LoadHtmlAsXml(string htmlUrl, XmlTextWriter writer)
{
HtmlDocument doc = Load(htmlUrl);
doc.Save(writer);
}
/// <summary>
/// Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter, after an XSLT transformation.
/// </summary>
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="xsltUrl">The URL that specifies the XSLT stylesheet to load.</param>
/// <param name="xsltArgs">An XsltArgumentList containing the namespace-qualified arguments used as input to the transform.</param>
/// <param name="writer">The XmlTextWriter to which you want to save.</param>
public void LoadHtmlAsXml(string htmlUrl, string xsltUrl, XsltArgumentList xsltArgs, XmlTextWriter writer)
{
LoadHtmlAsXml(htmlUrl, xsltUrl, xsltArgs, writer, null);
}
/// <summary>
/// Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter, after an XSLT transformation.
/// </summary>
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp". May not be null.</param>
/// <param name="xsltUrl">The URL that specifies the XSLT stylesheet to load.</param>
/// <param name="xsltArgs">An XsltArgumentList containing the namespace-qualified arguments used as input to the transform.</param>
/// <param name="writer">The XmlTextWriter to which you want to save.</param>
/// <param name="xmlPath">A file path where the temporary XML before transformation will be saved. Mostly used for debugging purposes.</param>
public void LoadHtmlAsXml(string htmlUrl, string xsltUrl, XsltArgumentList xsltArgs, XmlTextWriter writer,
string xmlPath)
{
if (htmlUrl == null)
{
throw new ArgumentNullException("htmlUrl");
}
HtmlDocument doc = Load(htmlUrl);
if (xmlPath != null)
{
XmlTextWriter w = new XmlTextWriter(xmlPath, doc.Encoding);
doc.Save(w);
w.Close();
}
if (xsltArgs == null)
{
xsltArgs = new XsltArgumentList();
}
// add some useful variables to the xslt doc
xsltArgs.AddParam("url", "", htmlUrl);
xsltArgs.AddParam("requestDuration", "", RequestDuration);
xsltArgs.AddParam("fromCache", "", FromCache);
XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load(xsltUrl);
xslt.Transform(doc, xsltArgs, writer);
}
#endregion
#region Private Methods
private static void FilePreparePath(string target)
{
if (File.Exists(target))
{
FileAttributes atts = File.GetAttributes(target);
File.SetAttributes(target, atts & ~FileAttributes.ReadOnly);
}
else
{
string dir = Path.GetDirectoryName(target);
if (!Directory.Exists(dir))
{
Directory.CreateDirectory(dir);
}
}
}
private static DateTime RemoveMilliseconds(DateTime t)
{
return new DateTime(t.Year, t.Month, t.Day, t.Hour, t.Minute, t.Second, 0);
}
// ReSharper disable UnusedMethodReturnValue.Local
private static long SaveStream(Stream stream, string path, DateTime touchDate, int streamBufferSize)
// ReSharper restore UnusedMethodReturnValue.Local
{
FilePreparePath(path);
FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write);
BinaryReader br = null;
BinaryWriter bw = null;
long len = 0;
try
{
br = new BinaryReader(stream);
bw = new BinaryWriter(fs);
byte[] buffer;
do
{
buffer = br.ReadBytes(streamBufferSize);
len += buffer.Length;
if (buffer.Length > 0)
{
bw.Write(buffer);
}
} while (buffer.Length > 0);
}
finally
{
if (br != null)
{
br.Close();
}
if (bw != null)
{
bw.Flush();
bw.Close();
}
if (fs != null)
{
fs.Close();
}
}
File.SetLastWriteTime(path, touchDate);
return len;
}
private HttpStatusCode Get(Uri uri, string method, string path, HtmlDocument doc, IWebProxy proxy,
ICredentials creds)
{
string cachePath = null;
HttpWebRequest req;
bool oldFile = false;
req = WebRequest.Create(uri) as HttpWebRequest;
req.Method = method;
if (proxy != null)
{
if (creds != null)
{
proxy.Credentials = creds;
req.Credentials = creds;
}
else
{
proxy.Credentials = CredentialCache.DefaultCredentials;
req.Credentials = CredentialCache.DefaultCredentials;
}
req.Proxy = proxy;
}
_fromCache = false;
_requestDuration = 0;
int tc = Environment.TickCount;
if (UsingCache)
{
cachePath = GetCachePath(req.RequestUri);
if (File.Exists(cachePath))
{
req.IfModifiedSince = File.GetLastAccessTime(cachePath);
oldFile = true;
}
}
if (_cacheOnly)
{
if (!File.Exists(cachePath))
{
throw new HtmlWebException("File was not found at cache path: '" + cachePath + "'");
}
if (path != null)
{
IOLibrary.CopyAlways(cachePath, path);
// touch the file
File.SetLastWriteTime(path, File.GetLastWriteTime(cachePath));
}
_fromCache = true;
return HttpStatusCode.NotModified;
}
if (_useCookies)
{
req.CookieContainer = new CookieContainer();
}
if (PreRequest != null)
{
// allow our user to change the request at will
if (!PreRequest(req))
{
return HttpStatusCode.ResetContent;
}
// dump cookie
// if (_useCookies)
// {
// foreach(Cookie cookie in req.CookieContainer.GetCookies(req.RequestUri))
// {
// HtmlLibrary.Trace("Cookie " + cookie.Name + "=" + cookie.Value + " path=" + cookie.Path + " domain=" + cookie.Domain);
// }
// }
}
HttpWebResponse resp;
try
{
resp = req.GetResponse() as HttpWebResponse;
}
catch (WebException we)
{
_requestDuration = Environment.TickCount - tc;
resp = (HttpWebResponse)we.Response;
if (resp == null)
{
if (oldFile)
{
if (path != null)
{
IOLibrary.CopyAlways(cachePath, path);
// touch the file
File.SetLastWriteTime(path, File.GetLastWriteTime(cachePath));
}
return HttpStatusCode.NotModified;
}
throw;
}
}
catch (Exception)
{
_requestDuration = Environment.TickCount - tc;
throw;
}
// allow our user to get some info from the response
if (PostResponse != null)
{
PostResponse(req, resp);
}
_requestDuration = Environment.TickCount - tc;
_responseUri = resp.ResponseUri;
bool html = IsHtmlContent(resp.ContentType);
Encoding respenc;
if ((resp.ContentEncoding != null) && (resp.ContentEncoding.Length > 0))
{
respenc = Encoding.GetEncoding(resp.ContentEncoding);
}
else
{
respenc = null;
}
if (resp.StatusCode == HttpStatusCode.NotModified)
{
if (UsingCache)
{
_fromCache = true;
if (path != null)
{
IOLibrary.CopyAlways(cachePath, path);
// touch the file
File.SetLastWriteTime(path, File.GetLastWriteTime(cachePath));
}
return resp.StatusCode;
}
else
{
// this should *never* happen...
throw new HtmlWebException("Server has send a NotModifed code, without cache enabled.");
}
}
Stream s = resp.GetResponseStream();
if (s != null)
{
if (UsingCache)
{
// NOTE: LastModified does not contain milliseconds, so we remove them to the file
SaveStream(s, cachePath, RemoveMilliseconds(resp.LastModified), _streamBufferSize);
// save headers
SaveCacheHeaders(req.RequestUri, resp);
if (path != null)
{
// copy and touch the file
IOLibrary.CopyAlways(cachePath, path);
File.SetLastWriteTime(path, File.GetLastWriteTime(cachePath));
}
}
else
{
// try to work in-memory
if ((doc != null) && (html))
{
if (respenc != null)
{
doc.Load(s, respenc);
}
else
{
doc.Load(s, true);
}
}
}
resp.Close();
}
return resp.StatusCode;
}
private string GetCacheHeader(Uri requestUri, string name, string def)
{
// note: some headers are collection (ex: www-authenticate)
// we don't handle that here
XmlDocument doc = new XmlDocument();
doc.Load(GetCacheHeadersPath(requestUri));
XmlNode node =
doc.SelectSingleNode("//h[translate(@n, 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')='" +
name.ToUpper() + "']");
if (node == null)
{
return def;
}
// attribute should exist
return node.Attributes[name].Value;
}
private string GetCacheHeadersPath(Uri uri)
{
//return Path.Combine(GetCachePath(uri), ".h.xml");
return GetCachePath(uri) + ".h.xml";
}
private bool IsCacheHtmlContent(string path)
{
string ct = GetContentTypeForExtension(Path.GetExtension(path), null);
return IsHtmlContent(ct);
}
private bool IsHtmlContent(string contentType)
{
return contentType.ToLower().StartsWith("text/html");
}
private HtmlDocument LoadUrl(Uri uri, string method, WebProxy proxy, NetworkCredential creds)
{
HtmlDocument doc = new HtmlDocument();
doc.OptionAutoCloseOnEnd = false;
doc.OptionFixNestedTags = true;
_statusCode = Get(uri, method, null, doc, proxy, creds);
if (_statusCode == HttpStatusCode.NotModified)
{
// read cached encoding
doc.DetectEncodingAndLoad(GetCachePath(uri));
}
return doc;
}
private void SaveCacheHeaders(Uri requestUri, HttpWebResponse resp)
{
// we cache the original headers aside the cached document.
string file = GetCacheHeadersPath(requestUri);
XmlDocument doc = new XmlDocument();
doc.LoadXml("<c></c>");
XmlNode cache = doc.FirstChild;
foreach (string header in resp.Headers)
{
XmlNode entry = doc.CreateElement("h");
XmlAttribute att = doc.CreateAttribute("n");
att.Value = header;
entry.Attributes.Append(att);
att = doc.CreateAttribute("v");
att.Value = resp.Headers[header];
entry.Attributes.Append(att);
cache.AppendChild(entry);
}
doc.Save(file);
}
#endregion
}
}
+24
View File
@@ -0,0 +1,24 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
namespace HtmlAgilityPack
{
/// <summary>
/// Represents an exception thrown by the HtmlWeb utility class.
/// </summary>
public class HtmlWebException : Exception
{
#region Constructors
/// <summary>
/// Creates an instance of the HtmlWebException.
/// </summary>
/// <param name="message">The exception's message.</param>
public HtmlWebException(string message)
: base(message)
{
}
#endregion
}
}
+28
View File
@@ -0,0 +1,28 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System.IO;
namespace HtmlAgilityPack
{
internal struct IOLibrary
{
#region Internal Methods
internal static void CopyAlways(string source, string target)
{
if (!File.Exists(source))
return;
Directory.CreateDirectory(Path.GetDirectoryName(target));
MakeWritable(target);
File.Copy(source, target, true);
}
internal static void MakeWritable(string path)
{
if (!File.Exists(path))
return;
File.SetAttributes(path, File.GetAttributes(path) & ~FileAttributes.ReadOnly);
}
#endregion
}
}
+27
View File
@@ -0,0 +1,27 @@
Microsoft Permissive License (Ms-PL)
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
1. Definitions
The terms “reproduce,” “reproduction,” “derivative works,” and “distribution” have the same meaning here as under U.S. copyright law.
A “contribution” is the original software, or any additions or changes to the software.
A “contributor” is any person that distributes its contribution under this license.
“Licensed patents” are a contributor’s patent claims that read directly on its contribution.
2. Grant of Rights
(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
3. Conditions and Limitations
(A) No Trademark License- This license does not grant you rights to use any contributors’ name, logo, or trademarks.
(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
(E) The software is licensed “as-is.” You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
(F) If you distribute the software or derivative works with programs you develop, you agree to indemnify, defend, and hold harmless all contributors from any claims, including attorneys’ fees, related to the distribution or use of your programs. For clarity, you have no such obligations to a contributor for any claims based solely on the unmodified contributions of that contributor.
(G) If you make any additions or changes to the original software, you may only distribute them under a new namespace. In addition, you will clearly identify your changes or additions as your own.
+453
View File
@@ -0,0 +1,453 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.IO;
using System.Text;
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a document with mixed code and text. ASP, ASPX, JSP, are good example of such documents.
/// </summary>
public class MixedCodeDocument
{
#region Fields
private int _c;
internal MixedCodeDocumentFragmentList _codefragments;
private MixedCodeDocumentFragment _currentfragment;
internal MixedCodeDocumentFragmentList _fragments;
private int _index;
private int _line;
private int _lineposition;
private ParseState _state;
private Encoding _streamencoding;
internal string _text;
internal MixedCodeDocumentFragmentList _textfragments;
/// <summary>
/// Gets or sets the token representing code end.
/// </summary>
public string TokenCodeEnd = "%>";
/// <summary>
/// Gets or sets the token representing code start.
/// </summary>
public string TokenCodeStart = "<%";
/// <summary>
/// Gets or sets the token representing code directive.
/// </summary>
public string TokenDirective = "@";
/// <summary>
/// Gets or sets the token representing response write directive.
/// </summary>
public string TokenResponseWrite = "Response.Write ";
private string TokenTextBlock = "TextBlock({0})";
#endregion
#region Constructors
/// <summary>
/// Creates a mixed code document instance.
/// </summary>
public MixedCodeDocument()
{
_codefragments = new MixedCodeDocumentFragmentList(this);
_textfragments = new MixedCodeDocumentFragmentList(this);
_fragments = new MixedCodeDocumentFragmentList(this);
}
#endregion
#region Properties
/// <summary>
/// Gets the code represented by the mixed code document seen as a template.
/// </summary>
public string Code
{
get
{
string s = "";
int i = 0;
foreach (MixedCodeDocumentFragment frag in _fragments)
{
switch (frag._type)
{
case MixedCodeDocumentFragmentType.Text:
s += TokenResponseWrite + string.Format(TokenTextBlock, i) + "\n";
i++;
break;
case MixedCodeDocumentFragmentType.Code:
s += ((MixedCodeDocumentCodeFragment) frag).Code + "\n";
break;
}
}
return s;
}
}
/// <summary>
/// Gets the list of code fragments in the document.
/// </summary>
public MixedCodeDocumentFragmentList CodeFragments
{
get { return _codefragments; }
}
/// <summary>
/// Gets the list of all fragments in the document.
/// </summary>
public MixedCodeDocumentFragmentList Fragments
{
get { return _fragments; }
}
/// <summary>
/// Gets the encoding of the stream used to read the document.
/// </summary>
public Encoding StreamEncoding
{
get { return _streamencoding; }
}
/// <summary>
/// Gets the list of text fragments in the document.
/// </summary>
public MixedCodeDocumentFragmentList TextFragments
{
get { return _textfragments; }
}
#endregion
#region Public Methods
/// <summary>
/// Create a code fragment instances.
/// </summary>
/// <returns>The newly created code fragment instance.</returns>
public MixedCodeDocumentCodeFragment CreateCodeFragment()
{
return (MixedCodeDocumentCodeFragment) CreateFragment(MixedCodeDocumentFragmentType.Code);
}
/// <summary>
/// Create a text fragment instances.
/// </summary>
/// <returns>The newly created text fragment instance.</returns>
public MixedCodeDocumentTextFragment CreateTextFragment()
{
return (MixedCodeDocumentTextFragment) CreateFragment(MixedCodeDocumentFragmentType.Text);
}
/// <summary>
/// Loads a mixed code document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
public void Load(Stream stream)
{
Load(new StreamReader(stream));
}
/// <summary>
/// Loads a mixed code document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
public void Load(Stream stream, bool detectEncodingFromByteOrderMarks)
{
Load(new StreamReader(stream, detectEncodingFromByteOrderMarks));
}
/// <summary>
/// Loads a mixed code document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="encoding">The character encoding to use.</param>
public void Load(Stream stream, Encoding encoding)
{
Load(new StreamReader(stream, encoding));
}
/// <summary>
/// Loads a mixed code document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
public void Load(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks)
{
Load(new StreamReader(stream, encoding, detectEncodingFromByteOrderMarks));
}
/// <summary>
/// Loads a mixed code document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
/// <param name="buffersize">The minimum buffer size.</param>
public void Load(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
{
Load(new StreamReader(stream, encoding, detectEncodingFromByteOrderMarks, buffersize));
}
/// <summary>
/// Loads a mixed code document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
public void Load(string path)
{
Load(new StreamReader(path));
}
/// <summary>
/// Loads a mixed code document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
public void Load(string path, bool detectEncodingFromByteOrderMarks)
{
Load(new StreamReader(path, detectEncodingFromByteOrderMarks));
}
/// <summary>
/// Loads a mixed code document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="encoding">The character encoding to use.</param>
public void Load(string path, Encoding encoding)
{
Load(new StreamReader(path, encoding));
}
/// <summary>
/// Loads a mixed code document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
public void Load(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks)
{
Load(new StreamReader(path, encoding, detectEncodingFromByteOrderMarks));
}
/// <summary>
/// Loads a mixed code document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
/// <param name="buffersize">The minimum buffer size.</param>
public void Load(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
{
Load(new StreamReader(path, encoding, detectEncodingFromByteOrderMarks, buffersize));
}
/// <summary>
/// Loads the mixed code document from the specified TextReader.
/// </summary>
/// <param name="reader">The TextReader used to feed the HTML data into the document.</param>
public void Load(TextReader reader)
{
_codefragments.Clear();
_textfragments.Clear();
// all pseudo constructors get down to this one
StreamReader sr = reader as StreamReader;
if (sr != null)
{
_streamencoding = sr.CurrentEncoding;
}
_text = reader.ReadToEnd();
reader.Close();
Parse();
}
/// <summary>
/// Loads a mixed document from a text
/// </summary>
/// <param name="html">The text to load.</param>
public void LoadHtml(string html)
{
Load(new StringReader(html));
}
/// <summary>
/// Saves the mixed document to the specified stream.
/// </summary>
/// <param name="outStream">The stream to which you want to save.</param>
public void Save(Stream outStream)
{
StreamWriter sw = new StreamWriter(outStream, GetOutEncoding());
Save(sw);
}
/// <summary>
/// Saves the mixed document to the specified stream.
/// </summary>
/// <param name="outStream">The stream to which you want to save.</param>
/// <param name="encoding">The character encoding to use.</param>
public void Save(Stream outStream, Encoding encoding)
{
StreamWriter sw = new StreamWriter(outStream, encoding);
Save(sw);
}
/// <summary>
/// Saves the mixed document to the specified file.
/// </summary>
/// <param name="filename">The location of the file where you want to save the document.</param>
public void Save(string filename)
{
StreamWriter sw = new StreamWriter(filename, false, GetOutEncoding());
Save(sw);
}
/// <summary>
/// Saves the mixed document to the specified file.
/// </summary>
/// <param name="filename">The location of the file where you want to save the document.</param>
/// <param name="encoding">The character encoding to use.</param>
public void Save(string filename, Encoding encoding)
{
StreamWriter sw = new StreamWriter(filename, false, encoding);
Save(sw);
}
/// <summary>
/// Saves the mixed document to the specified StreamWriter.
/// </summary>
/// <param name="writer">The StreamWriter to which you want to save.</param>
public void Save(StreamWriter writer)
{
Save((TextWriter) writer);
}
/// <summary>
/// Saves the mixed document to the specified TextWriter.
/// </summary>
/// <param name="writer">The TextWriter to which you want to save.</param>
public void Save(TextWriter writer)
{
writer.Flush();
}
#endregion
#region Internal Methods
internal MixedCodeDocumentFragment CreateFragment(MixedCodeDocumentFragmentType type)
{
switch (type)
{
case MixedCodeDocumentFragmentType.Text:
return new MixedCodeDocumentTextFragment(this);
case MixedCodeDocumentFragmentType.Code:
return new MixedCodeDocumentCodeFragment(this);
default:
throw new NotSupportedException();
}
}
internal Encoding GetOutEncoding()
{
if (_streamencoding != null)
return _streamencoding;
return Encoding.Default;
}
#endregion
#region Private Methods
private void IncrementPosition()
{
_index++;
if (_c == 10)
{
_lineposition = 1;
_line++;
}
else
_lineposition++;
}
private void Parse()
{
_state = ParseState.Text;
_index = 0;
_currentfragment = CreateFragment(MixedCodeDocumentFragmentType.Text);
while (_index < _text.Length)
{
_c = _text[_index];
IncrementPosition();
switch (_state)
{
case ParseState.Text:
if (_index + TokenCodeStart.Length < _text.Length)
{
if (_text.Substring(_index - 1, TokenCodeStart.Length) == TokenCodeStart)
{
_state = ParseState.Code;
_currentfragment.Length = _index - 1 - _currentfragment.Index;
_currentfragment = CreateFragment(MixedCodeDocumentFragmentType.Code);
SetPosition();
continue;
}
}
break;
case ParseState.Code:
if (_index + TokenCodeEnd.Length < _text.Length)
{
if (_text.Substring(_index - 1, TokenCodeEnd.Length) == TokenCodeEnd)
{
_state = ParseState.Text;
_currentfragment.Length = _index + TokenCodeEnd.Length - _currentfragment.Index;
_index += TokenCodeEnd.Length;
_lineposition += TokenCodeEnd.Length;
_currentfragment = CreateFragment(MixedCodeDocumentFragmentType.Text);
SetPosition();
continue;
}
}
break;
}
}
_currentfragment.Length = _index - _currentfragment.Index;
}
private void SetPosition()
{
_currentfragment.Line = _line;
_currentfragment._lineposition = _lineposition;
_currentfragment.Index = _index - 1;
_currentfragment.Length = 0;
}
#endregion
#region Nested type: ParseState
private enum ParseState
{
Text,
Code
}
#endregion
}
}
@@ -0,0 +1,51 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a fragment of code in a mixed code document.
/// </summary>
public class MixedCodeDocumentCodeFragment : MixedCodeDocumentFragment
{
#region Fields
private string _code;
#endregion
#region Constructors
internal MixedCodeDocumentCodeFragment(MixedCodeDocument doc)
:
base(doc, MixedCodeDocumentFragmentType.Code)
{
}
#endregion
#region Properties
/// <summary>
/// Gets the fragment code text.
/// </summary>
public string Code
{
get
{
if (_code == null)
{
_code = FragmentText.Substring(Doc.TokenCodeStart.Length,
FragmentText.Length - Doc.TokenCodeEnd.Length -
Doc.TokenCodeStart.Length - 1).Trim();
if (_code.StartsWith("="))
{
_code = Doc.TokenResponseWrite + _code.Substring(1, _code.Length - 1);
}
}
return _code;
}
set { _code = value; }
}
#endregion
}
}
@@ -0,0 +1,95 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a base class for fragments in a mixed code document.
/// </summary>
public abstract class MixedCodeDocumentFragment
{
#region Fields
internal MixedCodeDocument Doc;
private string _fragmentText;
internal int Index;
internal int Length;
private int _line;
internal int _lineposition;
internal MixedCodeDocumentFragmentType _type;
#endregion
#region Constructors
internal MixedCodeDocumentFragment(MixedCodeDocument doc, MixedCodeDocumentFragmentType type)
{
Doc = doc;
_type = type;
switch (type)
{
case MixedCodeDocumentFragmentType.Text:
Doc._textfragments.Append(this);
break;
case MixedCodeDocumentFragmentType.Code:
Doc._codefragments.Append(this);
break;
}
Doc._fragments.Append(this);
}
#endregion
#region Properties
/// <summary>
/// Gets the fragement text.
/// </summary>
public string FragmentText
{
get
{
if (_fragmentText == null)
{
_fragmentText = Doc._text.Substring(Index, Length);
}
return FragmentText;
}
internal set { _fragmentText = value; }
}
/// <summary>
/// Gets the type of fragment.
/// </summary>
public MixedCodeDocumentFragmentType FragmentType
{
get { return _type; }
}
/// <summary>
/// Gets the line number of the fragment.
/// </summary>
public int Line
{
get { return _line; }
internal set { _line = value; }
}
/// <summary>
/// Gets the line position (column) of the fragment.
/// </summary>
public int LinePosition
{
get { return _lineposition; }
}
/// <summary>
/// Gets the fragment position in the document's stream.
/// </summary>
public int StreamPosition
{
get { return Index; }
}
#endregion
}
}
@@ -0,0 +1,236 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Collections;
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a list of mixed code fragments.
/// </summary>
public class MixedCodeDocumentFragmentList : IEnumerable
{
#region Fields
private MixedCodeDocument _doc;
private ArrayList _items = new ArrayList();
#endregion
#region Constructors
internal MixedCodeDocumentFragmentList(MixedCodeDocument doc)
{
_doc = doc;
}
#endregion
#region Properties
///<summary>
/// Gets the Document
///</summary>
public MixedCodeDocument Doc
{
get { return _doc; }
}
/// <summary>
/// Gets the number of fragments contained in the list.
/// </summary>
public int Count
{
get { return _items.Count; }
}
/// <summary>
/// Gets a fragment from the list using its index.
/// </summary>
public MixedCodeDocumentFragment this[int index]
{
get { return _items[index] as MixedCodeDocumentFragment; }
}
#endregion
#region IEnumerable Members
/// <summary>
/// Gets an enumerator that can iterate through the fragment list.
/// </summary>
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
#endregion
#region Public Methods
/// <summary>
/// Appends a fragment to the list of fragments.
/// </summary>
/// <param name="newFragment">The fragment to append. May not be null.</param>
public void Append(MixedCodeDocumentFragment newFragment)
{
if (newFragment == null)
{
throw new ArgumentNullException("newFragment");
}
_items.Add(newFragment);
}
/// <summary>
/// Gets an enumerator that can iterate through the fragment list.
/// </summary>
public MixedCodeDocumentFragmentEnumerator GetEnumerator()
{
return new MixedCodeDocumentFragmentEnumerator(_items);
}
/// <summary>
/// Prepends a fragment to the list of fragments.
/// </summary>
/// <param name="newFragment">The fragment to append. May not be null.</param>
public void Prepend(MixedCodeDocumentFragment newFragment)
{
if (newFragment == null)
{
throw new ArgumentNullException("newFragment");
}
_items.Insert(0, newFragment);
}
/// <summary>
/// Remove a fragment from the list of fragments. If this fragment was not in the list, an exception will be raised.
/// </summary>
/// <param name="fragment">The fragment to remove. May not be null.</param>
public void Remove(MixedCodeDocumentFragment fragment)
{
if (fragment == null)
{
throw new ArgumentNullException("fragment");
}
int index = GetFragmentIndex(fragment);
if (index == -1)
{
throw new IndexOutOfRangeException();
}
RemoveAt(index);
}
/// <summary>
/// Remove all fragments from the list.
/// </summary>
public void RemoveAll()
{
_items.Clear();
}
/// <summary>
/// Remove a fragment from the list of fragments, using its index in the list.
/// </summary>
/// <param name="index">The index of the fragment to remove.</param>
public void RemoveAt(int index)
{
//MixedCodeDocumentFragment frag = (MixedCodeDocumentFragment) _items[index];
_items.RemoveAt(index);
}
#endregion
#region Internal Methods
internal void Clear()
{
_items.Clear();
}
internal int GetFragmentIndex(MixedCodeDocumentFragment fragment)
{
if (fragment == null)
{
throw new ArgumentNullException("fragment");
}
for (int i = 0; i < _items.Count; i++)
{
if ((_items[i]) == fragment)
{
return i;
}
}
return -1;
}
#endregion
#region Nested type: MixedCodeDocumentFragmentEnumerator
/// <summary>
/// Represents a fragment enumerator.
/// </summary>
public class MixedCodeDocumentFragmentEnumerator : IEnumerator
{
#region Fields
private int _index;
private ArrayList _items;
#endregion
#region Constructors
internal MixedCodeDocumentFragmentEnumerator(ArrayList items)
{
_items = items;
_index = -1;
}
#endregion
#region Properties
/// <summary>
/// Gets the current element in the collection.
/// </summary>
public MixedCodeDocumentFragment Current
{
get { return (MixedCodeDocumentFragment) (_items[_index]); }
}
#endregion
#region IEnumerator Members
/// <summary>
/// Gets the current element in the collection.
/// </summary>
object IEnumerator.Current
{
get { return (Current); }
}
/// <summary>
/// Advances the enumerator to the next element of the collection.
/// </summary>
/// <returns>true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.</returns>
public bool MoveNext()
{
_index++;
return (_index < _items.Count);
}
/// <summary>
/// Sets the enumerator to its initial position, which is before the first element in the collection.
/// </summary>
public void Reset()
{
_index = -1;
}
#endregion
}
#endregion
}
}
@@ -0,0 +1,19 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents the type of fragment in a mixed code document.
/// </summary>
public enum MixedCodeDocumentFragmentType
{
/// <summary>
/// The fragment contains code.
/// </summary>
Code,
/// <summary>
/// The fragment contains text.
/// </summary>
Text,
}
}
@@ -0,0 +1,32 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a fragment of text in a mixed code document.
/// </summary>
public class MixedCodeDocumentTextFragment : MixedCodeDocumentFragment
{
#region Constructors
internal MixedCodeDocumentTextFragment(MixedCodeDocument doc)
:
base(doc, MixedCodeDocumentFragmentType.Text)
{
}
#endregion
#region Properties
/// <summary>
/// Gets the fragment text.
/// </summary>
public string Text
{
get { return FragmentText; }
set { FragmentText = value; }
}
#endregion
}
}
+35
View File
@@ -0,0 +1,35 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
internal class NameValuePair
{
#region Fields
internal readonly string Name;
internal string Value;
#endregion
#region Constructors
internal NameValuePair()
{
}
internal NameValuePair(string name)
:
this()
{
Name = name;
}
internal NameValuePair(string name, string value)
:
this(name)
{
Value = value;
}
#endregion
}
}
+101
View File
@@ -0,0 +1,101 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Collections;
namespace HtmlAgilityPack
{
internal class NameValuePairList
{
#region Fields
internal readonly string Text;
private ArrayList _allPairs;
private Hashtable _pairsWithName;
#endregion
#region Constructors
internal NameValuePairList() :
this(null)
{
}
internal NameValuePairList(string text)
{
Text = text;
_allPairs = new ArrayList();
_pairsWithName = new Hashtable();
Parse(text);
}
#endregion
#region Internal Methods
internal static string GetNameValuePairsValue(string text, string name)
{
NameValuePairList l = new NameValuePairList(text);
return l.GetNameValuePairValue(name);
}
internal ArrayList GetNameValuePairs(string name)
{
if (name == null)
return _allPairs;
return _pairsWithName[name] as ArrayList;
}
internal string GetNameValuePairValue(string name)
{
if (name == null)
throw new ArgumentNullException();
ArrayList al = GetNameValuePairs(name);
if (al == null)
return null;
// return first item
NameValuePair nvp = al[0] as NameValuePair;
return nvp != null ? nvp.Value : string.Empty;
}
#endregion
#region Private Methods
private void Parse(string text)
{
_allPairs.Clear();
_pairsWithName.Clear();
if (text == null)
return;
string[] p = text.Split(';');
foreach (string pv in p)
{
if (pv.Length == 0)
continue;
string[] onep = pv.Split(new char[] {'='}, 2);
if (onep.Length==0)
continue;
NameValuePair nvp = new NameValuePair(onep[0].Trim().ToLower());
nvp.Value = onep.Length < 2 ? "" : onep[1];
_allPairs.Add(nvp);
// index by name
ArrayList al = _pairsWithName[nvp.Name] as ArrayList;
if (al == null)
{
al = new ArrayList();
_pairsWithName[nvp.Name] = al;
}
al.Add(nvp);
}
}
#endregion
}
}
+156
View File
@@ -0,0 +1,156 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// A utility class to compute CRC32.
/// </summary>
public class Crc32
{
#region Fields
private uint _crc32;
#endregion
#region Static Members
private static uint[] crc_32_tab = // CRC polynomial 0xedb88320
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7,
0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,
0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172,
0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c,
0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59,
0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423,
0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924,
0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106,
0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433,
0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d,
0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e,
0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950,
0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65,
0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7,
0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0,
0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa,
0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f,
0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81,
0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a,
0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84,
0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1,
0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb,
0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc,
0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e,
0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b,
0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55,
0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236,
0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28,
0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d,
0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f,
0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38,
0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242,
0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777,
0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69,
0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2,
0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc,
0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9,
0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693,
0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94,
0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d
};
#endregion
#region Properties
internal uint CheckSum
{
get { return _crc32; }
set { _crc32 = value; }
}
#endregion
#region Public Methods
/// <summary>
/// Compute a checksum for a given array of bytes.
/// </summary>
/// <param name="bytes">The array of bytes to compute the checksum for.</param>
/// <returns>The computed checksum.</returns>
public static uint CRC32Bytes(byte[] bytes)
{
uint oldcrc32;
oldcrc32 = 0xFFFFFFFF;
int len = bytes.Length;
for (int i = 0; len > 0; i++)
{
--len;
oldcrc32 = UPDC32(bytes[len], oldcrc32);
}
return ~oldcrc32;
}
/// <summary>
/// Compute a checksum for a given string.
/// </summary>
/// <param name="text">The string to compute the checksum for.</param>
/// <returns>The computed checksum.</returns>
public static uint CRC32String(string text)
{
uint oldcrc32;
oldcrc32 = 0xFFFFFFFF;
int len = text.Length;
ushort uCharVal;
byte lowByte, hiByte;
for (int i = 0; len > 0; i++)
{
--len;
uCharVal = text[len];
unchecked
{
lowByte = (byte) (uCharVal & 0x00ff);
hiByte = (byte) (uCharVal >> 8);
}
oldcrc32 = UPDC32(hiByte, oldcrc32);
oldcrc32 = UPDC32(lowByte, oldcrc32);
}
return ~oldcrc32;
}
#endregion
#region Internal Methods
internal uint AddToCRC32(int c)
{
return AddToCRC32((ushort) c);
}
internal uint AddToCRC32(ushort c)
{
byte lowByte, hiByte;
lowByte = (byte) (c & 0x00ff);
hiByte = (byte) (c >> 8);
_crc32 = UPDC32(hiByte, _crc32);
_crc32 = UPDC32(lowByte, _crc32);
return ~_crc32;
}
#endregion
#region Private Methods
private static uint UPDC32(byte octet, uint crc)
{
return (crc_32_tab[((crc) ^ (octet)) & 0xff] ^ ((crc) >> 8));
}
#endregion
}
}
+6 -4
View File
@@ -13,7 +13,6 @@ ASSEMBLED_DOCS = \
EXTRA_DIST = \
abc-removal.txt \
AgilityPack.dll \
api-style.css \
assembly-bundle \
check-exports \
@@ -39,7 +38,6 @@ EXTRA_DIST = \
local-regalloc.txt \
magic.diff \
mini-doc.txt \
mini-porting.txt \
mono-api-metadata.html \
mono-file-formats.config\
mono-file-formats.source\
@@ -69,12 +67,14 @@ EXTRA_DIST = \
dist-hook:
$(mkdir_p) $(distdir)/sources
$(mkdir_p) $(distdir)/svgs
$(mkdir_p) $(distdir)/HtmlAgilityPack
cp sources/* $(distdir)/sources
cp svgs/* $(distdir)/svgs
cp HtmlAgilityPack/* $(distdir)/HtmlAgilityPack
clean-local:
-rm -Rf $(srcdir)/html
-rm -f $(srcdir)/deploy/* $(srcdir)/convert.exe*
-rm -f $(srcdir)/deploy/* $(srcdir)/convert.exe* $(srcdir)/AgilityPack.dll*
-cd $(srcdir) && rm -f $(ASSEMBLED_DOCS)
monoapi.zip: monoapi.tree
@@ -102,5 +102,7 @@ $(srcdir)/deploy/.stamp: convert.exe Makefile.am
extract: $(srcdir)/deploy/.stamp
convert.exe: convert.cs AgilityPack.dll
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) convert.exe
cd $(srcdir) && $(MAKE) PROFILE=net_2_0 -f docs.make topdir=$(mcs_topdir_from_srcdir) convert.exe
AgilityPack.dll:
cd $(srcdir) && $(MAKE) PROFILE=net_2_0 -f docs.make topdir=$(mcs_topdir_from_srcdir) AgilityPack.dll
+2 -4
View File
@@ -64,10 +64,8 @@ PROGRAMS
* convert.cs
Converts an HTML file into a valid XML document, uses the
AgilityPack.dll. The sources to this DLL live in GNOME CVS
module beagle/Filters/AgilityPack.
A binary is shipped for our convenience.
AgilityPack.dll. The sources to this DLL live in the
HtmlAgilityPack folder, and are a prerequisite for convert.exe.
DATAFILES:
---------
+3
View File
@@ -0,0 +1,3 @@
/.stamp
/*.html
/api-style.css
+3
View File
@@ -10,6 +10,9 @@ ASSEMBLED_DOCS = \
convert.exe: convert.cs AgilityPack.dll
$(CSCOMPILE) -out:$@ $< -r:AgilityPack.dll
AgilityPack.dll:
$(CSCOMPILE) -target:library -out:$@ HtmlAgilityPack/*.cs
monoapi.zip: monoapi.tree
@test -f $@ || { rm -f $< && $(MAKE) $<; }
monoapi.tree: toc.xml docs.make
-223
View File
@@ -1,223 +0,0 @@
-*- outline -*-
Generic code sharing
====================
* Porting
** Generic class init trampoline
The generic class init trampoline is very similar to the class init
trampoline, with the exception that the VTable of the class to be
inited is passed in a register, MONO_ARCH_VTABLE_REG. That register
can be the same as the IMT register.
The call to the generic class init trampoline is never patched because
the VTable is not constant - it depends on the type arguments of the
class/method doing the call to the trampoline. For that reason, the
trampoline needs a fast path for the case that the class is already
inited, i.e. the trampoline needs to check the initialized bit of the
MonoVTable and immediately return if it is set. See tramp-x86.c for
how to portably figure out the number of the bit in the bit-field that
needs to be checked.
Since the MONO_ARCH_VTABLE_REG is needed by the generic class init
trampoline function (in mini-trampolines.c) it needs to be saved by
the generic trampoline code in the register save block which is passed
to the trampoline. This also applies to the RGCTX fetch trampoline
(see below).
Like the normal class init trampoline, the result of the generic class
init trampoline function is not a pointer to code that needs to be
jumped to. Instead, just like for the class init trampoline, the
generic trampoline code must return to the caller instead of jumping
to the returned value. The same applies for the RGCTX fetch
trampoline (see below).
** RGCTX register
Generic shared code needs access to type information. This
information is contained in a RGCTX for non-generic methods and in an
MRGCTX for generic methods. It is passed in one of several ways,
depending on the type of the called method:
1. Non-generic non-static methods of reference types have access to
the RGCTX via the "this" argument (this->vtable->rgctx).
2. Non-generic static methods of reference types and non-generic
methods of value types need to be passed a pointer to the
caller's class's VTable in the MONO_ARCH_RGCTX_REG register.
3. Generic methods need to be passed a pointer to the MRGCTX in the
MONO_ARCH_RGCTX_REG register.
The MONO_ARCH_RGCTX_REG must not be clobbered by trampolines.
MONO_ARCH_RGCTX_REG can be the same as the IMT register for now, but
this might change in the future when we implement virtual generic
method calls (more) efficiently.
This register lifetime starts at the call site that loads it and
ends in the callee prologue when it is either discarded or stored
into a local variable.
It's better to avoid registers used for argument passing for the RGCTX
as it would make the code dealing with calling conventions code a lot
harder.
** Method prologue
Generic shared code that have a RGCTX receive it in RGCTX_REG. There
must be a check in mono_arch_emit_prolog for MonoCompile::rgctx_var
and if set store it. See mini-x86.c for reference.
** Dealing with types
Types passed to arch functions might be type parameters
(MONO_TYPE_(M)VAR) if the MonoGenericSharingContext* argument is
non-NULL. For example, an argument or return type in a method passed
to mono_arch_find_this_argument() could be a MONO_TYPE_VAR. To guard
for that case use mini_get_basic_type_from_generic() on the type. See
get_call_info() in mini-x86.c, for example.
** (M)RGCTX lazy fetch trampoline
The purpose of the lazy fetch trampoline is to fetch a slot from an
(M)RGCTX which might not be inited, yet. In the latter case, it needs
to go make a transition to unmanaged code to fill the slot. This is
the layout of a RGCTX:
+---------------------------------+
| next | slot 0 | slot 1 | slot 2 |
+--|------------------------------+
|
+-----+
| +---------------------------------
+->| next | slot 3 | slot 4 | slot 5 ....
+--|------------------------------
|
+-----+
| +------------------------------------
+->| next | slot 10 | slot 11 | slot 12 ....
+--|---------------------------------
.
.
.
For fetching a slot from a RGCTX the trampoline is passed a pointer
(as a normal integer argument) to the VTable. From there it has to
fetch the pointer to the RGCTX, which might be null. Then it has to
traverse the correct number of "next" links, each of which might be
NULL. Arriving at the right array it needs to fetch the slot, which
might also be NULL. If any of the NULL cases, the trampoline must
transition to unmanaged code to potentially setup the RGCTX and fill
the slot. Here is pseudo-code for fetching slot 11:
; vtable ptr in r1
; fetch RGCTX array 0
r2 = *(r1 + offsetof(MonoVTable, runtime_generic_context))
if r2 == NULL goto unmanaged
; fetch RGCTX array 1
r2 = *r2
if r2 == NULL goto unmanaged
; fetch RGCTX array 2
r2 = *r2
if r2 == NULL goto unmanaged
; fetch slot 11
r2 = *(r2 + 2 * sizeof (gpointer))
if r2 == NULL goto unmanaged
return r2
unmanaged:
jump unmanaged_fetch_code
The number of slots in the arrays must be obtained from the function
mono_class_rgctx_get_array_size().
The MRGCTX case is different in two aspects. First, the trampoline is
not passed a pointer to a VTable, but a pointer directly to the
MRGCTX, which is guaranteed not to be NULL (any of the next pointers
and any of the slots can be NULL, though). Second, the layout of the
first array is slightly different, in that the first two slots are
occupied by a pointers to the class's VTable and to the method's
method_inst. The next pointer is in the third slot and the first
actual slot, "slot 0", in the fourth:
+--------------------------------------------------------+
| vtable | method_inst | next | slot 0 | slot 1 | slot 2 |
+-------------------------|------------------------------+
.
.
All other arrays have the same layout as the RGCTX ones, except
possibly for their length.
The function to create the trampoline,
mono_arch_create_rgctx_lazy_fetch_trampoline(), gets passed an encoded
slot number. Use the macro MONO_RGCTX_SLOT_IS_MRGCTX to query whether
a trampoline for an MRGCTX is needed, as opposed to one for a RGCTX.
Use MONO_RGCTX_SLOT_INDEX to get the index of the slot (like 2 for
"slot 2" as above).
The unmanaged fetch code is yet another trampoline created via
mono_arch_create_specific_trampoline(), of type
MONO_TRAMPOLINE_RGCTX_LAZY_FETCH. It's given the slot number as the
trampoline argument. In addition, the pointer to the VTable/MRGCTX is
passed in MONO_ARCH_VTABLE_REG (like the VTable to the generic class
init trampoline - see above).
Like the class init and generic class init trampolines, the RGCTX
fetch trampoline code doesn't return code that must be jumped to, so,
like for those trampolines (see above), the generic trampoline code
must do a normal return instead.
* Getting generics information about a stack frame
If a method is compiled with generic sharing, its MonoJitInfo has
has_generic_jit_info set. In that case, the MonoJitInfo is followed
(after the MonoJitExceptionInfo array) by a MonoGenericJitInfo.
The MonoGenericJitInfo contains information about the location of the
this/vtable/MRGCTX variable, if the has_this flag is set. If that is
the case, there are two possibilities:
1. this_in_reg is set. this_reg is the number of the register where
the variable is stored.
2. this_in_reg is not set. The variable is stored at offset
this_offset from the address in the register with number
this_reg.
The variable can either point to the "this" object, to a vtable or to
an MRGCTX:
1. If the method is a non-generic non-static method of a reference
type, the variable points to the "this" object.
2. If the method is a non-generic static method or a non-generic
method of a value type, the variable points to the vtable of the
class.
3. If the method is a generic method, the variable points to the
MRGCTX of the method.
* Layout of the MRGCTX
The MRGCTX is a structure that starts with
MonoMethodRuntimeGenericContext, which contains a pointer to the
vtable of the class and a pointer to the MonoGenericInst with the type
arguments for the method.
* Blog posts about generic code sharing
http://schani.wordpress.com/2007/09/22/generics-sharing-in-mono/
http://schani.wordpress.com/2007/10/12/the-trouble-with-shared-generics/
http://schani.wordpress.com/2007/10/15/a-quick-generics-sharing-update/
http://schani.wordpress.com/2008/01/29/other-types/
http://schani.wordpress.com/2008/02/25/generic-types-are-lazy/
http://schani.wordpress.com/2008/03/10/sharing-static-methods/
http://schani.wordpress.com/2008/04/22/sharing-everything-and-saving-memory/
http://schani.wordpress.com/2008/06/02/sharing-generic-methods/
http://schani.wordpress.com/2008/06/27/another-generic-sharing-update/
-531
View File
@@ -1,531 +0,0 @@
Mono JIT porting guide.
Paolo Molaro ([email protected])
* Introduction
This documents describes the process of porting the mono JIT
to a new CPU architecture. The new mono JIT has been designed
to make porting easier though at the same time enable the port
to take full advantage from the new architecture features and
instructions. Knowledge of the mini architecture (described in
the mini-doc.txt file) is a requirement for understanding this
guide, as well as an earlier document about porting the mono
interpreter (available on the web site).
There are six main areas that a port needs to implement to
have a fully-functional JIT for a given architecture:
1) instruction selection
2) native code emission
3) call conventions and register allocation
4) method trampolines
5) exception handling
6) minor helper methods
To take advantage of some not-so-common processor features
(for example conditional execution of instructions as may be
found on ARM or ia64), it may be needed to develop an
high-level optimization, but doing so is not a requirement for
getting the JIT to work.
We'll see in more details each of the steps required, note,
though, that a new port may just as well start from a
cut&paste of an existing port to a similar architecture (for
example from x86 to amd64, or from powerpc to sparc).
The architecture specific code is split from the rest of the
JIT, for example the x86 specific code and data is all
included in the following files in the distribution:
mini-x86.h mini-x86.c
inssel-x86.brg
cpu-pentium.md
tramp-x86.c
exceptions-x86.c
I suggest a similar split for other architectures as well.
Note that this document is still incomplete: some sections are
only sketched and some are missing, but the important info to
get a port going is already described.
* Architecture-specific instructions and instruction selection.
The JIT already provides a set of instructions that can be
easily mapped to a great variety of different processor
instructions. Sometimes it may be necessary or advisable to
add a new instruction that represent more closely an
instruction in the architecture. Note that a mini instruction
can be used to represent also a short sequence of CPU
low-level instructions, but note that each instruction
represents the minimum amount of code the instruction
scheduler will handle (i.e., the scheduler won't schedule the
instructions that compose the low-level sequence as individual
instructions, but just the whole sequence, as an indivisible
block).
New instructions are created by adding a line in the
mini-ops.h file, assigning an opcode and a name. To specify
the input and output for the instruction, there are two
different places, depending on the context in which the
instruction gets used.
If the instruction is used in the tree representation, the
input and output types are defined by the BURG rules in the
*.brg files (the usual non-terminals are 'reg' to represent a
normal register, 'lreg' to represent a register or two that
hold a 64 bit value, freg for a floating point register).
If an instruction is used as a low-level CPU instruction, the
info is specified in a machine description file. The
description file is processed by the genmdesc program to
provide a data structure that can be easily used from C code
to query the needed info about the instruction.
As an example, let's consider the add instruction for both x86
and ppc:
x86 version:
add: dest:i src1:i src2:i len:2 clob:1
ppc version:
add: dest:i src1:i src2:i len:4
Note that the instruction takes two input integer registers on
both CPU, but on x86 the first source register is clobbered
(clob:1) and the length in bytes of the instruction differs.
Note that integer adds and floating point adds use different
opcodes, unlike the IL language (64 bit add is done with two
instructions on 32 bit architectures, using a add that sets
the carry and an add with carry).
A specific CPU port may assign any meaning to the clob field
for an instruction since the value will be processed in an
arch-specific file anyway.
See the top of the existing cpu-pentium.md file for more info
on other fields: the info may or may not be applicable to a
different CPU, in this latter case the info can be ignored.
The code in mini.c together with the BURG rules in inssel.brg,
inssel-float.brg and inssel-long32.brg provides general
purpose mappings from the tree representation to a set of
instructions that should be easily implemented in any
architecture. To allow for additional arch-specific
functionality, an arch-specific BURG file can be used: in this
file arch-specific instructions can be selected that provide
better performance than the general instructions or that
provide functionality that is needed by the JIT but that
cannot be expressed in a general enough way.
As an example, x86 has the special instruction "push" to make
it easier to implement the default call convention (passing
arguments on the stack): almost all the other architectures
don't have such an instruction (and don't need it anyway), so
we added a special rule in the inssel-x86.brg file for it.
So, one of the first things needed in a port is to write a
cpu-$(arch).md machine description file and fill it with the
needed info. As a start, only a few instructions can be
specified, like the ones required to do simple integer
operations. The default rules of the instruction selector will
emit the common instructions and so we're ready to go for the
next step in porting the JIT.
*) Native code emission
Since the first step in porting mono to a new CPU is to port
the interpreter, there should be already a file that allows
the emission of binary native code in a buffer for the
architecture. This file should be placed in the
mono/arch/$(arch)/
directory.
The bulk of the code emission happens in the mini-$(arch).c
file, in a function called mono_arch_output_basic_block
(). This function takes a basic block, walks the list of
instructions in the block and emits the binary code for each.
Optionally a peephole optimization pass is done on the basic
block, but this can be left for later, when the port actually
works.
This function is very simple, there is just a big switch on
the instruction opcode and in the corresponding case the
functions or macros to emit the binary native code are
used. Note that in this function the lengths of the
instructions are used to determine if the buffer for the code
needs enlarging.
To complete the code emission for a method, a few other
functions need implementing as well:
mono_arch_emit_prolog ()
mono_arch_emit_epilog ()
mono_arch_patch_code ()
mono_arch_emit_prolog () will emit the code to setup the stack
frame for a method, optionally call the callbacks used in
profiling and tracing, and move the arguments to their home
location (in a caller-save register if the variable was
allocated to one, or in a stack location if the argument was
passed in a volatile register and wasn't allocated a
non-volatile one). caller-save registers used by the function
are saved in the prolog as well.
mono_arch_emit_epilog () will emit the code needed to return
from the function, optionally calling the profiling or tracing
callbacks. At this point the basic blocks or the code that was
moved out of the normal flow for the function can be emitted
as well (this is usually done to provide better info for the
static branch predictor). In the epilog, caller-save
registers are restored if they were used.
Note that, to help exception handling and stack unwinding,
when there is a transition from managed to unmanaged code,
some special processing needs to be done (basically, saving
all the registers and setting up the links in the Last Managed
Frame structure).
When the epilog has been emitted, the upper level code
arranges for the buffer of memory that contains the native
code to be copied in an area of executable memory and at this
point, instructions that use relative addressing need to be
patched to have the right offsets: this work is done by
mono_arch_patch_code ().
* Call conventions and register allocation
To account for the differences in the call conventions, a few functions need to
be implemented.
mono_arch_allocate_vars () assigns to both arguments and local
variables the offset relative to the frame register where they
are stored, dead variables are simply discarded. The total
amount of stack needed is calculated.
mono_arch_call_opcode () is the function that more closely
deals with the call convention on a given system. For each
argument to a function call, an instruction is created that
actually puts the argument where needed, be it the stack or a
specific register. This function can also re-arrange th order
of evaluation when multiple arguments are involved if needed
(like, on x86 arguments are pushed on the stack in reverse
order). The function needs to carefully take into accounts
platform specific issues, like how structures are returned as
well as the differences in size and/or alignment of managed
and corresponding unmanaged structures.
The other chunk of code that needs to deal with the call
convention and other specifics of a CPU, is the local register
allocator, implemented in a function named
mono_arch_local_regalloc (). The local allocator deals with a
basic block at a time and basically just allocates registers
for temporary values during expression evaluation, spilling
and unspilling as necessary.
The local allocator needs to take into account clobbering
information, both during simple instructions and during
function calls and it needs to deal with other
architecture-specific weirdnesses, like instructions that take
inputs only in specific registers or output only is some.
Some effort will be put later in moving most of the local
register allocator to a common file so that the code can be
shared more for similar, risc-like CPUs. The register
allocator does a first pass on the instructions in a block,
collecting liveness information and in a backward pass on the
same list performs the actual register allocation, inserting
the instructions needed to spill values, if necessary.
The cross-platform local register allocator is now implemented
and it is documented in the jit-regalloc file.
When this part of code is implemented, some testing can be
done with the generated code for the new architecture. Most
helpful is the use of the --regression command line switch to
run the regression tests (basic.cs, for example).
Note that the JIT will try to initialize the runtime, but it
may not be able yet to compile and execute complex code:
commenting most of the code in the mini_init() function in
mini.c is needed to let the JIT just compile the regression
tests. Also, using multiple -v switches on the command line
makes the JIT dump an increasing amount of information during
compilation.
Values loaded into registers need to be extened as needed by
the ECMA specs:
*) integers smaller than 4 bytes are extended to int32 values
*) 32 bit floats are extended to double precision (in particular
this means that currently all the floating point operations operate
on doubles)
* Method trampolines
To get better startup performance, the JIT actually compiles a
method only when needed. To achieve this, when a call to a
method is compiled, we actually emit a call to a magic
trampoline. The magic trampoline is a function written in
assembly that invokes the compiler to compile the given method
and jumps to the newly compiled code, ensuring the arguments
it received are passed correctly to the actual method.
Before jumping to the new code, though, the magic trampoline
takes care of patching the call site so that next time the
call will go directly to the method instead of the
trampoline. How does this all work?
mono_arch_create_jit_trampoline () creates a small function
that just preserves the arguments passed to it and adds an
additional argument (the method to compile) before calling the
generic trampoline. This small function is called the specific
trampoline, because it is method-specific (the method to
compile is hard-code in the instruction stream).
The generic trampoline saves all the arguments that could get
clobbered and calls a C function that will do two things:
*) actually call the JIT to compile the method
*) identify the calling code so that it can be patched to call directly
the actual method
If the 'this' argument to a method is a boxed valuetype that
is passed to a method that expects just a pointer to the data,
an additional unboxing trampoline will need to be inserted as
well.
* Exception handling
Exception handling is likely the most difficult part of the
port, as it needs to deal with unwinding (both managed and
unmanaged code) and calling catch and filter blocks. It also
needs to deal with signals, because mono takes advantage of
the MMU in the CPU and of the operation system to handle
dereferences of the NULL pointer. Some of the function needed
to implement the mechanisms are:
mono_arch_get_throw_exception () returns a function that takes
an exception object and invokes an arch-specific function that
will enter the exception processing. To do so, all the
relevant registers need to be saved and passed on.
mono_arch_handle_exception () this function takes the
exception thrown and a context that describes the state of the
CPU at the time the exception was thrown. The function needs
to implement the exception handling mechanism, so it makes a
search for an handler for the exception and if none is found,
it follows the unhandled exception path (that can print a
trace and exit or just abort the current thread). The
difficulty here is to unwind the stack correctly, by restoring
the register state at each call site in the call chain,
calling finally, filters and handler blocks while doing so.
As part of exception handling a couple of internal calls need
to be implemented as well.
ves_icall_get_frame_info () returns info about a specific
frame.
mono_jit_walk_stack () walks the stack and calls a callback with info for
each frame found.
ves_icall_get_trace () return an array of StackFrame objects.
** Code generation for filter/finally handlers
Filter and finally handlers are called from 2 different locations:
1.) from within the method containing the exception clauses
2.) from the stack unwinding code
To make this possible we implement them like subroutines,
ending with a "return" statement. The subroutine does not save
the base pointer, because we need access to the local
variables of the enclosing method. Its is possible that
instructions inside those handlers modify the stack pointer,
thus we save the stack pointer at the start of the handler,
and restore it at the end. We have to use a "call" instruction
to execute such finally handlers.
The MIR code for filter and finally handlers looks like:
OP_START_HANDLER
...
OP_END_FINALLY | OP_ENDFILTER(reg)
OP_START_HANDLER: should save the stack pointer somewhere
OP_END_FINALLY: restores the stack pointers and returns.
OP_ENDFILTER (reg): restores the stack pointers and returns the value in "reg".
** Calling finally/filter handlers
There is a special opcode to call those handler, its called
OP_CALL_HANDLER. It simple emits a call instruction.
Its a bit more complex to call handler from outside (in the
stack unwinding code), because we have to restore the whole
context of the method first. After that we simply emit a call
instruction to invoke the handler. Its usually possible to use
the same code to call filter and finally handlers (see
arch_get_call_filter).
** Calling catch handlers
Catch handlers are always called from the stack unwinding
code. Unlike finally clauses or filters, catch handler never
return. Instead we simply restore the whole context, and
restart execution at the catch handler.
** Passing Exception objects to catch handlers and filters.
We use a local variable to store exception objects. The stack
unwinding code must store the exception object into this
variable before calling catch handler or filter.
* Minor helper methods
A few minor helper methods are referenced from the arch-independent code.
Some of them are:
*) mono_arch_cpu_optimizations ()
This function returns a mask of optimizations that
should be enabled for the current CPU and a mask of
optimizations that should be excluded, instead.
*) mono_arch_regname ()
Returns the name for a numeric register.
*) mono_arch_get_allocatable_int_vars ()
Returns a list of variables that can be allocated to
the integer registers in the current architecture.
*) mono_arch_get_global_int_regs ()
Returns a list of caller-save registers that can be
used to allocate variables in the current method.
*) mono_arch_instrument_mem_needs ()
*) mono_arch_instrument_prolog ()
*) mono_arch_instrument_epilog ()
Functions needed to implement the profiling interface.
* Testing the port
The JIT has a set of regression tests in *.cs files inside the
mini directory.
The usual method of testing a port is by compiling these tests on
another machine with a working runtime by typing 'make rcheck',
then copying TestDriver.dll and *.exe to the mini directory. The
tests can be run by typing:
./mono --regression <exe file name>
The suggested order for working through these tests is the
following:
- basic.exe
- basic-long.exe
- basic-float.exe
- basic-calls.exe
- objects.exe
- arrays.exe
- exceptions.exe
- iltests.exe
- generics.exe
* Writing regression tests
Regression tests for the JIT should be written for any bug
found in the JIT in one of the *.cs files in the mini
directory. Eventually all the operations of the JIT should be
tested (including the ones that get selected only when some
specific optimization is enabled).
* Platform specific optimizations
An example of a platform-specific optimization is the peephole
optimization: we look at a small window of code at a time and
we replace one or more instructions with others that perform
better for the given architecture or CPU.
* 64 bit support tips, by Zoltan Varga ([email protected])
For a 64-bit port of the Mono runtime, you will typically do
the following:
* need to use inssel-long.brg instead of
inssel-long32.brg.
* need to implement lots of new opcodes:
OP_I<OP> is 32 bit op
OP_L<OP> and CEE_<OP> are 64 bit ops
The 64 bit version of an existing port might share the code
with the 32 bit port (for example SPARC/SPARV9), or it might
be separate (x86/AMD64).
That will depend on the similarities of the two instructions
sets/ABIs etc.
The runtime and most parts of the JIT are 64 bit clean
at this point, so the only parts which require changing are
the arch dependent files.
* Function descriptors
Some ABIs, like those for IA64 and PPC64, don't use direct
function pointers, but so called function descriptors. A
function descriptor is a short data structure which contains
at least a pointer to the code of the function and a pointer
to a GOT/TOC, which needs to be loaded into a specific
register prior to jumping to the function. Global variables
and large constants are accessed through that register.
Mono does not need function descriptors for the JITted code,
but we need to handle them when calling unmanaged code and we
need to create them when passing managed code to unmanaged
code.
mono_create_ftnptr() creates a function descriptor for a piece
of generated code within a specific domain.
mono_get_addr_from_ftnptr() returns the pointer to the native
code in a function descriptor. Never use this function to
generate a jump to a function without loading the GOT/TOC
register unless the function descriptor was created by
mono_create_ftnptr().
See the sources for IA64 and PPC64 on when to create and when
to dereference function descriptors. On PPC64 function
descriptors for various generated helper functions (in
exceptions-ppc.c and tramp-ppc.c) are generated in front of
the code they refer to (see ppc_create_pre_code_ftnptr()). On
IA64 they are created separately.
* Emulated opcodes
Mini has code for emulating quite a few opcodes, most notably
operations on longs, int/float conversions and atomic
operations. If an architecture wishes such an opcode to be
emulated, mini produces icalls instead of those opcodes. This
should only be considered when the operation cannot be
implemented efficiently and thus the overhead occured by the
icall is not relatively large. Emulation of operations is
controlled by #defines in the arch header, but the naming is
not consistent. They usually start with MONO_ARCH_EMULATE_,
MONO_ARCH_NO_EMULATE_ and MONO_ARCH_HAVE_.
* Generic code sharing
Generic code sharing is optional. See the file
"generic-sharing" for information on how to support it on an
architecture.
+21
View File
@@ -0,0 +1,21 @@
/
/depcomp
/config.guess
/config.sub
/ltmain.sh
/eglib-*.tar.gz
/missing
/install-sh
/compile
/Makefile
/Makefile.in
/stamp-h1
/config.h.in
/libtool
/autom4te.cache
/aclocal.m4
/config.log
/configure
/config.h
/config.status
/INSTALL
+8
View File
@@ -0,0 +1,8 @@
set(SUBDIRS src test)
autoheader("config.h" null)
foreach(subdir ${SUBDIRS})
add_subdirectory(${subdir})
endforeach()
+68
View File
@@ -1,3 +1,71 @@
2009-12-03 Zoltan Varga <[email protected]>
* src/gmisc-unix.c (g_get_user_name): Avoid returning NULL if the env
var is not set.
2009-10-15 Andreia Gaita <[email protected]>
* src/gptrarray.c: implement g_ptr_array_remove_index_fast
* src/glib.h: fix g_ptr_array_remove_index_fast declaration
* test/ptrarray.c: new tests
2009-09-26 Gonzalo Paniagua Javier <[email protected]>
* test/queue.c: new tests.
* src/gqueue.c: fixed pop_head.
2009-09-26 Gonzalo Paniagua Javier <[email protected]>
* src/gqueue.c: add g_queue_push_tail.
2009-06-20 Zoltan Varga <[email protected]>
* src/glib.h: Add GUINT32_FROM/TO_BE macros.
2009-06-09 Jonathan Chambers <[email protected]>
* CMakeLists.txt: Add start of CMake build.
* src/CMakeLists.txt: Add start of CMake build.
Contribution is licensed as MIT/X11.
2009-06-02 Bill Holmes <[email protected]>
* src/gpath.c (g_find_program_in_path): While searching on Windows
also try additional suffixes .exe, .cmd, .bat, and.com.
Contributed under MIT/X11 license.
2009-05-27 Geoff Norton <[email protected]>
* src/gfile-posix.c: Fix g_get_current_dir on amd64
2009-04-22 Jeffrey Stedfast <[email protected]>
* src/gtimer-win32.c (g_timer_elapsed): Avoid re-querying freq by
just saving it in a static variable. Also modified microseconds
calculation to avoid overflow.
2009-04-05 Miguel de Icaza <[email protected]>
* src/gpath.c: Avoid situations where we add the separator if one
of the elements is the separator.
2009-04-02 Miguel de Icaza <[email protected]>
* src/gpath.c: If the first element is NULL, return an empty
string.
2009-02-19 Gonzalo Paniagua Javier <[email protected]>
* src/gstr.c: use memset in g_strnfill.
2009-01-19 Bill Holmes <[email protected]>
* src/gstr.c (g_strnfill): Fixing a warning for MSVC.
Contributed under MIT/X11 license.
2009-02-05 Miguel de Icaza <[email protected]>
* src/gstr.c: Add g_strnfill
+45 -9
View File
@@ -7,8 +7,7 @@ AM_MAINTAINER_MODE
AC_PROG_CC
AM_PROG_LIBTOOL
CFLAGS='-g -O0 -D_GNU_SOURCE'
AC_SUBST(CFLAGS)
CFLAGS="$CFLAGS -g -O0 -D_GNU_SOURCE"
GNUC_PRETTY=
GNUC_UNUSED=
BREAKPOINT="G_STMT_START { raise (SIGTRAP); } G_STMT_END"
@@ -25,9 +24,17 @@ AC_SUBST(GNUC_UNUSED)
AC_SUBST(GNUC_NORETURN)
AC_SUBST(BREAKPOINT)
# We use a separate variable to pass down CPPFLAGS and CFLAGS from the main mono
# configure, because of autoconf brokeness
if test "x$CPPFLAGS_FOR_EGLIB" != "x"; then
CPPFLAGS=$CPPFLAGS_FOR_EGLIB
fi
if test "x$CFLAGS_FOR_EGLIB" != "x"; then
CFLAGS=$CFLAGS_FOR_EGLIB
fi
AM_CONDITIONAL(CROSS_COMPILING, [test x$cross_compiling = xyes])
AC_C_BIGENDIAN([ORDER=G_BIG_ENDIAN],[ORDER=G_LITTLE_ENDIAN])
AC_SUBST(ORDER)
case $host in
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
@@ -44,10 +51,15 @@ esac
case $target in
arm*-darwin*)
CFLAGS="$CLAFGS -U_FORTIFY_SOURCE"
CFLAGS="$CFLAGS -U_FORTIFY_SOURCE"
;;
i*86-*-darwin*)
ORDER=G_LITTLE_ENDIAN
;;
esac
AC_SUBST(ORDER)
AC_SUBST(CFLAGS)
AC_SUBST(PATHSEP)
AC_SUBST(SEARCHSEP)
AC_SUBST(OS)
@@ -55,7 +67,7 @@ AM_CONDITIONAL(PLATFORM_WIN32, test x$OS = xWIN32)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(void *)
AC_CHECK_FUNCS(strndup strlcpy getpwent_r strtok_r)
AC_CHECK_FUNCS(strndup strlcpy getpwent_r strtok_r rewinddir)
AC_CHECK_LIB(iconv, libiconv_open, LIBS="$LIBS -liconv")
old_ldflags="${LDFLAGS}"
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
@@ -84,10 +96,34 @@ else
G_GUINT64_FORMAT='"llu"'
fi
PKG_CHECK_MODULES(GLIB, glib-2.0,
[AM_CONDITIONAL(HAVE_GLIB, test x = x)],
[AM_CONDITIONAL(HAVE_GLIB, test x = y)]
)
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
pkg_config_path=
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Change pkg-config dir to custom dir],
if test x$with_crosspkgdir = "x"; then
if test -s $PKG_CONFIG_PATH; then
pkg_config_path=$PKG_CONFIG_PATH
fi
else
pkg_config_path=$with_crosspkgdir
PKG_CONFIG_PATH=$pkg_config_path
export PKG_CONFIG_PATH
fi
)
dnl
dnl No, you can not replace the call below with a pkg.m4 macro
dnl
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
have_glib=true;
else
have_glib=false;
fi
AM_CONDITIONAL(HAVE_GLIB, $have_glib)
AC_SUBST(GPOINTER_TO_INT)
AC_SUBST(GPOINTER_TO_UINT)
AC_SUBST(GINT_TO_POINTER)
+6
View File
@@ -0,0 +1,6 @@
/
/Makefile
/Makefile.in
/.libs
/.deps
/eglib-config.h
+49
View File
@@ -0,0 +1,49 @@
set(win_files
gdate-win32.c gdir-win32.c gfile-win32.c gmisc-win32.c
gmodule-win32.c gtimer-win32.c)
set(unix_files
gdate-unix.c gdir-unix.c gfile-unix.c gmisc-unix.c
gmodule-unix.c gtimer-unix.c)
if (MSVC)
set(os_files ${win_files})
else(MSVC)
set(os_files ${unix_files})
endif(MSVC)
set(libeglib_la_SOURCES
${os_files}
eglib-config.h
sort.frag.h
glib.h
garray.c
gerror.c
ghashtable.c
gmem.c
gmodule.h
goutput.c
gstr.c
gslist.c
gstring.c
gptrarray.c
glist.c
gqueue.c
gpath.c
gshell.c
gspawn.c
gfile.c
gfile-posix.c
gpattern.c
gmarkup.c
gutf8.c
gunicode.c
unicode-data.h)
set(EXTRA_DIST eglib-config.h.in eglib-config.hw ${win_files} ${unix_files})
INCLUDE_DIRECTORIES(../ ${CMAKE_CURRENT_SOURCE_DIR})
ADD_DEFINITIONS(${CFLAGS} -D_FORTIFY_SOURCE=2)
ADD_LIBRARY(eglib-static STATIC ${libeglib_la_SOURCES})
ADD_LIBRARY(eglib SHARED ${libeglib_la_SOURCES})
+14
View File
@@ -36,6 +36,9 @@
struct _GDir {
DIR *dir;
#ifndef HAVE_REWINDDIR
char *path;
#endif
};
GDir *
@@ -57,6 +60,9 @@ g_dir_open (const gchar *path, guint flags, GError **error)
g_free (dir);
return NULL;
}
#ifndef HAVE_REWINDDIR
dir->path = g_strdup (path);
#endif
return dir;
}
@@ -79,7 +85,12 @@ void
g_dir_rewind (GDir *dir)
{
g_return_if_fail (dir != NULL && dir->dir != NULL);
#ifndef HAVE_REWINDDIR
closedir (dir->dir);
dir->dir = opendir (dir->path);
#else
rewinddir (dir->dir);
#endif
}
void
@@ -87,6 +98,9 @@ g_dir_close (GDir *dir)
{
g_return_if_fail (dir != NULL && dir->dir != 0);
closedir (dir->dir);
#ifndef HAVE_REWINDDIR
g_free (dir->path);
#endif
dir->dir = NULL;
g_free (dir);
}
+5 -1
View File
@@ -162,6 +162,10 @@ g_get_current_dir (void)
}
} while (fail);
return r;
/* On amd64 sometimes the bottom 32-bits of r == the bottom 32-bits of buffer
* but the top 32-bits of r have overflown to 0xffffffff (seriously wtf getcwd
* so we return the buffer here since it has a pointer to the valid string
*/
return buffer;
}
+8 -2
View File
@@ -109,7 +109,7 @@ typedef uint16_t gunichar2;
/*
* Allocation
*/
#define g_free free
void g_free (void *ptr);
static inline gpointer g_realloc (gpointer obj, gsize size) { if (!size) {g_free (obj); return 0;} return realloc (obj, size);}
static inline gpointer g_malloc (gsize x) {if (x) return malloc (x); else return 0;}
static inline gpointer g_malloc0 (gsize x) {if (x) return calloc(1,x); else return 0;}
@@ -449,7 +449,7 @@ void g_ptr_array_add (GPtrArray *array, gpointer data);
gboolean g_ptr_array_remove (GPtrArray *array, gpointer data);
gpointer g_ptr_array_remove_index (GPtrArray *array, guint index);
gboolean g_ptr_array_remove_fast (GPtrArray *array, gpointer data);
gpointer g_ptr_array_remove_index_fast (GPtrArray *array, gpointer data);
gpointer g_ptr_array_remove_index_fast (GPtrArray *array, guint index);
void g_ptr_array_sort (GPtrArray *array, GCompareFunc compare_func);
void g_ptr_array_sort_with_data (GPtrArray *array, GCompareDataFunc compare_func, gpointer user_data);
void g_ptr_array_set_size (GPtrArray *array, gint length);
@@ -469,6 +469,8 @@ typedef struct {
gpointer g_queue_pop_head (GQueue *queue);
void g_queue_push_head (GQueue *queue,
gpointer data);
void g_queue_push_tail (GQueue *queue,
gpointer data);
gboolean g_queue_is_empty (GQueue *queue);
GQueue *g_queue_new (void);
void g_queue_free (GQueue *queue);
@@ -860,11 +862,15 @@ glong g_utf8_strlen (const gchar *str, gssize max);
# define GUINT64_TO_LE(x) (x)
# define GUINT16_TO_LE(x) (x)
# define GUINT_TO_LE(x) (x)
# define GUINT32_TO_BE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT32_FROM_BE(x) GUINT32_SWAP_LE_BE(x)
#else
# define GUINT32_TO_LE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT64_TO_LE(x) GUINT64_SWAP_LE_BE(x)
# define GUINT16_TO_LE(x) GUINT16_SWAP_LE_BE(x)
# define GUINT_TO_LE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT32_TO_BE(x) (x)
# define GUINT32_FROM_BE(x) (x)
#endif
#define GUINT32_FROM_LE(x) (GUINT32_TO_LE (x))
+7
View File
@@ -29,6 +29,13 @@
#include <string.h>
#include <glib.h>
void
g_free (void *ptr)
{
if (ptr != NULL)
free (ptr);
}
gpointer
g_memdup (gconstpointer mem, guint byte_size)
{
+2
View File
@@ -110,6 +110,8 @@ const char *
g_get_user_name (void)
{
const char *retName = g_getenv ("USER");
if (!retName)
retName = "somebody";
return retName;
}
+40 -2
View File
@@ -47,7 +47,9 @@ g_build_path (const gchar *separator, const gchar *first_element, ...)
va_list args;
g_return_val_if_fail (separator != NULL, NULL);
g_return_val_if_fail (first_element != NULL, NULL);
if (first_element == NULL)
return g_strdup ("");
result = g_string_sized_new (48);
@@ -66,7 +68,8 @@ g_build_path (const gchar *separator, const gchar *first_element, ...)
g_string_append_len (result, s, p - s);
if (next && *next){
g_string_append (result, separator);
if (strncmp (separator, result->str + strlen (result->str) - slen, slen))
g_string_append (result, separator);
for (; strncmp (next, separator, slen) == 0; )
next += slen;
@@ -192,6 +195,12 @@ g_find_program_in_path (const gchar *program)
char *x = p, *l;
gchar *curdir = NULL;
char *save;
#ifdef G_OS_WIN32
char *program_exe;
char *suffix_list[5] = {".exe",".cmd",".bat",".com",NULL};
int listx;
gboolean hasSuffix;
#endif
g_return_val_if_fail (program != NULL, NULL);
@@ -200,6 +209,15 @@ g_find_program_in_path (const gchar *program)
x = curdir;
}
#ifdef G_OS_WIN32
/* see if program already has a suffix */
listx = 0;
hasSuffix = FALSE;
while (!hasSuffix && suffix_list[listx]) {
hasSuffix = g_str_has_suffix(program,suffix_list[listx++]);
}
#endif
while ((l = strtok_r (x, G_SEARCHPATH_SEPARATOR_S, &save)) != NULL){
char *probe_path;
@@ -211,6 +229,26 @@ g_find_program_in_path (const gchar *program)
return probe_path;
}
g_free (probe_path);
#ifdef G_OS_WIN32
/* check for program with a suffix attached */
if (!hasSuffix) {
listx = 0;
while (suffix_list[listx]) {
program_exe = g_strjoin(NULL,program,suffix_list[listx],NULL);
probe_path = g_build_path (G_DIR_SEPARATOR_S, l, program_exe, NULL);
if (access (probe_path, X_OK) == 0){ /* FIXME: on windows this is just a read permissions test */
g_free (curdir);
g_free (p);
g_free (program_exe);
return probe_path;
}
listx++;
g_free (probe_path);
g_free (program_exe);
}
}
#endif
}
g_free (curdir);
g_free (p);
+21
View File
@@ -139,6 +139,27 @@ g_ptr_array_remove_index(GPtrArray *array, guint index)
return removed_node;
}
gpointer
g_ptr_array_remove_index_fast(GPtrArray *array, guint index)
{
gpointer removed_node;
g_return_val_if_fail(array != NULL, NULL);
g_return_val_if_fail(index >= 0 || index < array->len, NULL);
removed_node = array->pdata[index];
if(index != array->len - 1) {
g_memmove(array->pdata + index, array->pdata + array->len - 1,
sizeof(gpointer));
}
array->len--;
array->pdata[array->len] = NULL;
return removed_node;
}
gboolean
g_ptr_array_remove(GPtrArray *array, gpointer data)
{
+31 -15
View File
@@ -3,6 +3,7 @@
*
* Author:
* Duncan Mak ([email protected])
* Gonzalo Paniagua Javier ([email protected])
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
@@ -23,7 +24,7 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* (C) 2006 Novell, Inc.
* Copyright (c) 2006-2009 Novell, Inc.
*
*/
@@ -33,19 +34,23 @@
gpointer
g_queue_pop_head (GQueue *queue)
{
gpointer head = NULL;
gpointer result;
GList *old_head;
if (queue->length != 0){
GList *old_head;
if (!queue || queue->length == 0)
return NULL;
old_head = queue->head;
head = old_head->data;
queue->head = old_head->next;
queue->length--;
g_list_free_1 (old_head);
}
result = queue->head->data;
old_head = queue->head;
queue->head = old_head->next;
g_list_free_1 (old_head);
return head;
if (--queue->length)
queue->head->prev = NULL;
else
queue->tail = NULL;
return result;
}
gboolean
@@ -71,13 +76,24 @@ g_queue_push_head (GQueue *queue, gpointer head)
queue->length ++;
}
void
g_queue_push_tail (GQueue *queue, gpointer data)
{
if (!queue)
return;
queue->tail = g_list_append (queue->tail, data);
if (queue->head == NULL)
queue->head = queue->tail;
else
queue->tail = queue->tail->next;
queue->length++;
}
GQueue *
g_queue_new (void)
{
GQueue *queue = g_new0 (GQueue, 1);
queue->length = 0;
return queue;
return g_new0 (GQueue, 1);
}
void
+1 -4
View File
@@ -830,11 +830,8 @@ gchar *
g_strnfill (gsize length, gchar fill_char)
{
gchar *ret = g_new (gchar, length + 1);
int i;
for (i = 0; i < length; i++)
ret [i] = fill_char;
memset (ret, fill_char, length);
ret [length] = 0;
return ret;
}
+13 -9
View File
@@ -68,9 +68,14 @@ g_timer_stop (GTimer *timer)
gdouble
g_timer_elapsed (GTimer *timer, gulong *microseconds)
{
guint64 stop;
guint64 freq;
gdouble seconds;
static guint64 freq = 0;
guint64 delta, stop;
if (freq == 0) {
if (!QueryPerformanceFrequency ((LARGE_INTEGER *)&freq))
freq = 1;
}
if (timer->stop == 0) {
QueryPerformanceCounter ((LARGE_INTEGER*)&stop);
}
@@ -78,13 +83,12 @@ g_timer_elapsed (GTimer *timer, gulong *microseconds)
stop = timer->stop;
}
QueryPerformanceFrequency ((LARGE_INTEGER*)&freq);
seconds = 1.0 * (stop - timer->start) / freq;
delta = stop - timer->start;
if (microseconds) {
*microseconds = (gulong)(1000000.0 * (stop - timer->start) / freq);
}
return seconds;
if (microseconds)
*microseconds = (gulong) (delta * (1000000.0 / freq));
return (gdouble) delta / (gdouble) freq;
}
+17
View File
@@ -0,0 +1,17 @@
/
/Makefile.in
/configure
/libtool
/aclocal.m4
/Makefile
/config.h
/config.h.in
/config.status
/stamp-h1
/autom4te.cache
/.libs
/.deps
/test-glib
/test-eglib
/test-glib.exe
/test-eglib.exe
+23 -2
View File
@@ -92,7 +92,14 @@ test_buildpath ()
if (strcmp (s, "/a/c/") != 0)
return FAILED ("14 Got wrong result, got: %s", s);
g_free (s);
/* Null */
s = g_build_path ("/", NULL);
if (s == NULL)
return FAILED ("must get a non-NULL return");
if (s [0] != 0)
return FAILED ("must get an empty string");
g_free (s);
return OK;
}
@@ -109,6 +116,20 @@ test_buildfname ()
#endif
return FAILED ("1 Got wrong result, got: %s", s);
g_free (s);
s = g_build_filename ("/", "a", NULL);
#ifdef G_OS_WIN32
if (strcmp (s, "\\a") != 0)
#else
if (strcmp (s, "/a") != 0)
#endif
return FAILED ("1 Got wrong result, got: %s", s);
#ifndef OS_WIN32
s = g_build_filename ("/", "foo", "/bar", "tolo/", "/meo/", NULL);
if (strcmp (s, "/foo/bar/tolo/meo/") != 0)
return FAILED ("1 Got wrong result, got: %s", s);
#endif
return OK;
}
@@ -284,8 +305,8 @@ test_misc ()
}
static Test path_tests [] = {
{"g_buildpath", test_buildpath},
{"g_build_filename", test_buildfname},
{"g_buildpath", test_buildpath},
{"g_path_get_dirname", test_dirname},
{"g_path_get_basename", test_basename},
{"g_find_program_in_path", test_ppath},
+25
View File
@@ -170,6 +170,30 @@ RESULT ptrarray_remove_index()
return OK;
}
RESULT ptrarray_remove_index_fast()
{
GPtrArray *array;
guint i;
array = ptrarray_alloc_and_fill(&i);
g_ptr_array_remove_index_fast(array, 0);
if(array->pdata[0] != items[array->len]) {
return FAILED("First item is not %s, it is %s", items[array->len],
array->pdata[0]);
}
g_ptr_array_remove_index_fast(array, array->len - 1);
if(array->pdata[array->len - 1] != items[array->len - 1]) {
return FAILED("Last item is not %s, it is %s",
items[array->len - 1], array->pdata[array->len - 1]);
}
g_ptr_array_free(array, TRUE);
return OK;
}
RESULT ptrarray_remove()
{
GPtrArray *array;
@@ -235,6 +259,7 @@ static Test ptrarray_tests [] = {
{"foreach_iterate", ptrarray_foreach_iterate},
{"set_size", ptrarray_set_size},
{"remove_index", ptrarray_remove_index},
{"remove_index_fast", ptrarray_remove_index_fast},
{"remove", ptrarray_remove},
{"sort", ptrarray_sort},
{NULL, NULL}
+85
View File
@@ -15,6 +15,66 @@ test_queue_push ()
if (queue->length != 3)
return FAILED ("push failed");
if (NULL != queue->head->prev)
return FAILED ("HEAD: prev is wrong");
if (strcmp ("baz", queue->head->data))
return FAILED ("HEAD: First element is wrong");
if (strcmp ("bar", queue->head->next->data))
return FAILED ("HEAD: Second element is wrong");
if (strcmp ("foo", queue->head->next->next->data))
return FAILED ("HEAD: Third element is wrong");
if (NULL != queue->head->next->next->next)
return FAILED ("HEAD: End is wrong");
if (NULL != queue->tail->next)
return FAILED ("TAIL: next is wrong");
if (strcmp ("foo", queue->tail->data))
return FAILED ("TAIL: Third element is wrong");
if (strcmp ("bar", queue->tail->prev->data))
return FAILED ("TAIL: Second element is wrong");
if (strcmp ("baz", queue->tail->prev->prev->data))
return FAILED ("TAIL: First element is wrong");
if (NULL != queue->tail->prev->prev->prev)
return FAILED ("TAIL: End is wrong");
g_queue_free (queue);
return OK;
}
RESULT
test_queue_push_tail ()
{
GQueue *queue = g_queue_new ();
g_queue_push_tail (queue, "baz");
g_queue_push_tail (queue, "bar");
g_queue_push_tail (queue, "foo");
if (queue->length != 3)
return FAILED ("push failed");
if (NULL != queue->head->prev)
return FAILED ("HEAD: prev is wrong");
if (strcmp ("baz", queue->head->data))
return FAILED ("HEAD: First element is wrong");
if (strcmp ("bar", queue->head->next->data))
return FAILED ("HEAD: Second element is wrong");
if (strcmp ("foo", queue->head->next->next->data))
return FAILED ("HEAD: Third element is wrong");
if (NULL != queue->head->next->next->next)
return FAILED ("HEAD: End is wrong");
if (NULL != queue->tail->next)
return FAILED ("TAIL: next is wrong");
if (strcmp ("foo", queue->tail->data))
return FAILED ("TAIL: Third element is wrong");
if (strcmp ("bar", queue->tail->prev->data))
return FAILED ("TAIL: Second element is wrong");
if (strcmp ("baz", queue->tail->prev->prev->data))
return FAILED ("TAIL: First element is wrong");
if (NULL != queue->tail->prev->prev->prev)
return FAILED ("TAIL: End is wrong");
g_queue_free (queue);
return OK;
}
@@ -47,6 +107,30 @@ test_queue_pop ()
if (queue->length != 0)
return FAILED ("expect 0 length .");
g_queue_push_head (queue, "foo");
g_queue_push_head (queue, "bar");
g_queue_push_head (queue, "baz");
g_queue_pop_head (queue);
if (NULL != queue->head->prev)
return FAILED ("HEAD: prev is wrong");
if (strcmp ("bar", queue->head->data))
return FAILED ("HEAD: Second element is wrong");
if (strcmp ("foo", queue->head->next->data))
return FAILED ("HEAD: Third element is wrong");
if (NULL != queue->head->next->next)
return FAILED ("HEAD: End is wrong");
if (NULL != queue->tail->next)
return FAILED ("TAIL: next is wrong");
if (strcmp ("foo", queue->tail->data))
return FAILED ("TAIL: Second element is wrong");
if (strcmp ("bar", queue->tail->prev->data))
return FAILED ("TAIL: First element is wrong");
if (NULL != queue->tail->prev->prev)
return FAILED ("TAIL: End is wrong");
g_queue_free (queue);
return OK;
}
@@ -89,6 +173,7 @@ test_queue_is_empty ()
static Test queue_tests [] = {
{ "push", test_queue_push},
{"push_tail", test_queue_push_tail},
{ "pop", test_queue_pop},
{ "new", test_queue_new},
{"is_empty", test_queue_is_empty},
+3 -8
View File
@@ -184,14 +184,9 @@ gdouble
get_timestamp()
{
/* FIXME: We should use g_get_current_time here */
#ifdef G_OS_WIN32
long int l = GetTickCount();
return (gdouble)(l / 1000) + (1.e-6) * ((l % 1000) * 1000);
#else
struct timeval tp;
gettimeofday(&tp, NULL);
return (gdouble)tp.tv_sec + (1.e-6) * tp.tv_usec;
#endif
GTimeVal res;
g_get_current_time (&res);
return res.tv_sec + (1.e-6) * res.tv_usec;
}
/*
+7
View File
@@ -0,0 +1,7 @@
/Makefile.in
/.libs
/.deps
/Makefile
/*.o
/*.lo
/*.la
+4
View File
@@ -0,0 +1,4 @@
ADD_DEFINITIONS(${GMODULE_CFLAGS})
ADD_LIBRARY(ikvm_native SHARED jni.c os.c jni.h)
TARGET_LINK_LIBRARIES(ikvm_native ${GMODULE_LIBS})
+24
View File
@@ -0,0 +1,24 @@
/aclocal.m4
/config.cache
/config.guess
/config.h
/config.h.in
/config.log
/config.status
/config.sub
/configure
/libtool
/ltmain.sh
/ltconfig
/Makefile
/Makefile.in
/stamp-h
/stamp-h.in
/*.lo
/.deps
/.libs
/*.la
/*.o
/autom4te.cache
/libgc-mono.pc
/libgc-mono-*.tar.gz
Loaded 100 of 6826 files, more files were not shown because too many files have changed in this diff. Show more