Compare commits

...
2266 Commits
Author SHA1 Message Date
Miguel de Icaza 6dc86808d6 Backport
svn path=/branches/wii/mono/; revision=131084
2009-04-06 00:13:36 +00:00
Miguel de Icaza 056c053b97 Backport to the branch
svn path=/branches/wii/mono/; revision=131032
2009-04-03 23:27:31 +00:00
Miguel de Icaza f5d8d3ed54 Backport
svn path=/branches/wii/mono/; revision=130826
2009-04-02 04:15:15 +00:00
Miguel de Icaza 7808c43dad Make this build with Codewarrior
svn path=/branches/wii/mono/; revision=130825
2009-04-02 04:14:41 +00:00
Miguel de Icaza 31bcb8888a Make this build with Codewarrior
svn path=/branches/wii/mono/; revision=130824
2009-04-02 04:14:27 +00:00
Andrés G. Aragoneses b1d623c83c * System.Windows.Forms/ToolBarButton.cs: Event for Enabled property
(needed to fix UIA #474197).

svn path=/trunk/mcs/; revision=127225
2009-02-17 23:15:15 +00:00
Zoltan Varga 4931c9bf56 2009-02-17 Zoltan Varga <[email protected]>
* class.c (mono_class_get_vtable_entry): Move the addition of
	static rgctx invoke wrappers for vtable methods here, this simplifies
	a lot of code and causes fewer rgctx wrappers to be created.

	* marshal.c (mono_marshal_get_static_rgctx_invoke): Change the
	name of the statistics to begin with an uppercase.

svn path=/trunk/mono/; revision=127216
2009-02-17 21:23:06 +00:00
Zoltan Varga 197af0621c 2009-02-17 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_class): Only add rgctx invoke wrappers
	for cctors if needed.

svn path=/trunk/mono/; revision=127200
2009-02-17 19:53:58 +00:00
Jonathan Pryor ff2f8ee9df * Mono.Documentation/monodocer.cs: Check that the cref attribute is
non-null before trying to use it when importing slashdoc sources.
	  Fixes #475852.
	* Test/DocTest-v1.cs: Add an <exception/> doc comment with an invalid
	  attribute value for testing.

svn path=/trunk/mcs/; revision=127195
2009-02-17 19:05:53 +00:00
Rodrigo Kumpera 1435b8f440 2009-02-17 Rodrigo Kumpera <[email protected]>
* reflection.c: Revert previous change as it breaks the build.
	


svn path=/trunk/mono/; revision=127193
2009-02-17 18:54:57 +00:00
Jonathan Pryor 4ff41f7e7a * Mono.Documentation/mdoc.cs: Set Environment.ExitCode=1 if an
exception occurs, so that calling code can determine that an error
	  occurred w/o resorting to parsing stderr.

svn path=/trunk/mcs/; revision=127192
2009-02-17 18:37:21 +00:00
Marek Safar 12a424c390 2009-02-17 Marek Safar <[email protected]>
* typemanager.cs, convert.cs, flowanalysis.cs, driver.cs,
	expression.cs, ecore.cs, rootcontext.cs, eval.cs, class.cs: More
	messing with static variables.


svn path=/trunk/mcs/; revision=127190
2009-02-17 18:06:40 +00:00
Rodrigo Kumpera 8b189193f6 In .:
2009-02-17 Rodrigo Kumpera  <[email protected]>

	* unverifiable_array_element_type_compatiblity.il: Regression test
	for #474271.


svn path=/trunk/mono/; revision=127171
2009-02-17 17:00:58 +00:00
Rodrigo Kumpera 48de47dd82 In .:
* verify.c: Properly handle SZARRAY element type.

	Fixes #474271.

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


svn path=/trunk/mono/; revision=127170
2009-02-17 16:58:47 +00:00
Sebastien Pouliot a65f999546 oops, moving from wrong directory
svn path=/trunk/mcs/; revision=127167
2009-02-17 16:37:43 +00:00
Sebastien Pouliot abaf92f649 SL2 [SecurityCritical] data
svn path=/trunk/mcs/; revision=127166
2009-02-17 16:31:12 +00:00
Sebastien Pouliot 8d0030f20f In overrides:
2008-02-17  Sebastien Pouliot  <[email protected]>

	* here goes the manual overrides files
In .:
2008-02-17  Sebastien Pouliot  <[email protected]>

	* detect-sc.cs: Tool to detect methods that *likely* needs a
	[SecurityCritical] attribute to execute under the CoreCLR
	* detect-ssc.cs: Tool to detect methods that *likely* needs a
	[SecuritySafeCritical] attribute to execute under the CoreCLR
	* find-sc.cs: Tool to extract types and methods decorated with
	[SecurityCritical] in Silverlight platform code.
	* merge.cs: Tool to merge the different data files into files (one
	per assembly) usable by the tuner.
	* PlatformCode.cs: Helpers for tools.
	* CecilRocks.cs: Extension methods helpers for tools.
	* Makefile: Build file. Normally only the merging should be done.
	Other options needs "supervision" ;-) and store their data into 
	SVN to allow tracking/auditing all changes. Note: this is not (yet)
	part of the main build.
	* README: Documentation about the files.

svn path=/trunk/mcs/; revision=127164
2009-02-17 16:18:53 +00:00
Marek Safar 19eaa801db 2009-02-17 Marek Safar <[email protected]>
* typemanager.cs, convert.cs, flowanalysis.cs, driver.cs,
	expression.cs, ecore.cs, rootcontext.cs: More messing with static
	variables.


svn path=/trunk/mcs/; revision=127159
2009-02-17 15:43:24 +00:00
Rodrigo Kumpera 231bf688ce In .:
2009-02-17 Rodrigo Kumpera  <[email protected]>

	* reflection.c (mono_image_create_method_token): Correctly encode
	MethodDef MemberRefParent token.

	Fixes #472845.


svn path=/trunk/mono/; revision=127143
2009-02-17 14:15:35 +00:00
Marek Safar 4302b6367d 2009-02-17 Marek Safar <[email protected]>
* typemanager.cs, convert.cs, flowanalysis.cs, driver.cs: More
	messing with static variables.


svn path=/trunk/mcs/; revision=127133
2009-02-17 12:03:49 +00:00
Atsushi Eno 5210df17ef 2009-02-17 Atsushi Enomoto <[email protected]>
* XsdDatatypeProvider.cs : workaround .NET/Mono Regex bug that
	  does not handle \p{Latin-1Supplement} to work with OOXML grammar.


svn path=/trunk/mcs/; revision=127130
2009-02-17 11:32:03 +00:00
Mark Probst d6d72e3110 2009-02-17 Mark Probst <[email protected]>
* mini-ppc.c: Fix build on Darwin.

svn path=/trunk/mono/; revision=127108
2009-02-17 08:03:06 +00:00
Zoltan Varga f459dae3f2 2009-02-17 Zoltan Varga <[email protected]>
* image.c (mono_image_close): Delete the critical section before
	freeing the memory holding it.

svn path=/trunk/mono/; revision=127107
2009-02-17 07:45:32 +00:00
Gonzalo Paniagua Javier 8b0ce39175 reverting this patch until it works with bug 354090 and 476138
svn path=/trunk/mcs/; revision=127104
2009-02-17 07:30:29 +00:00
Zoltan Varga 1fd95fe8dd Revert r127101, subsections need to be aligned.
svn path=/trunk/mono/; revision=127103
2009-02-17 07:27:02 +00:00
Zoltan Varga 7be8a84342 2009-02-17 Zoltan Varga <[email protected]>
* image-writer.c: Don't align subsections to 8 in the binary writer.
	
	* dwarfwriter.c (emit_line_number_info_begin): This now works with the
	binary writer too.

svn path=/trunk/mono/; revision=127101
2009-02-17 06:48:23 +00:00
Zoltan Varga 2d331c22ce 2009-02-17 Zoltan Varga <[email protected]>
* dwarfwriter.c (mono_dwarf_writer_emit_base_info): Use 2 as the DWARF
	version instead of 3 as valgrind doesn't like version 3.

svn path=/trunk/mono/; revision=127100
2009-02-17 06:19:52 +00:00
Zoltan Varga 4bc11c8bdf 2009-02-17 Zoltan Varga <[email protected]>
* mini.h (MONO_AOT_FILE_VERSION): Bump this.

	* aot-compiler.c (mono_aot_method_hash): New function to return a hash
	usable for hashing methods.
	(emit_extra_methods): Use the new hash to avoid putting every method in the
	same hash bucket.

	* aot-runtime.c (find_extra_method_in_amodule): Use the new hash.

	* aot-runtime.c (can_method_ref_match_method): New function to quickly check
	whenever a method ref could match a method.

svn path=/trunk/mono/; revision=127099
2009-02-17 06:06:17 +00:00
Zoltan Varga 9a54ded80f 2009-02-17 Zoltan Varga <[email protected]>
* aot-runtime.c (load_image): Revert the previous change, it causes an AOT
	test to fail.

svn path=/trunk/mono/; revision=127098
2009-02-17 06:01:45 +00:00
Zoltan Varga 69ca62df18 2009-02-17 Zoltan Varga <[email protected]>
* aot-runtime.c (find_extra_method_in_amodule): Add a cache for decoded 
	methods refs.

svn path=/trunk/mono/; revision=127097
2009-02-17 04:35:08 +00:00
Zoltan Varga 2e1d9a67ea 2009-02-17 Zoltan Varga <[email protected]>
* aot-runtime.c (load_image): Pass our basedir to mono_assembly_load.

svn path=/trunk/mono/; revision=127095
2009-02-17 03:34:35 +00:00
Zoltan Varga c69c68287c 2009-02-17 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_exception_debug_info): Bump the maximum size of
	the encoding buffer.

svn path=/trunk/mono/; revision=127093
2009-02-17 03:29:10 +00:00
Rodrigo Kumpera 7766403479 In .:
2009-02-16 Rodrigo Kumpera  <[email protected]>

	* valid_rethrow_doesnt_fallthrough: New regression test for
	#476257.


svn path=/trunk/mono/; revision=127089
2009-02-17 02:10:47 +00:00
Rodrigo Kumpera d619fe0080 In .:
* verify.c (mono_method_verify): rethrow opcode doesn not fall through.
	Fixes #476257.

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


svn path=/trunk/mono/; revision=127088
2009-02-17 02:10:30 +00:00
Rodrigo Kumpera 3070f2f60b In .:
* pedump.c (main): Call mono_marshal_init so pedump
	doesn't crash.

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


svn path=/trunk/mono/; revision=127087
2009-02-17 01:54:15 +00:00
Carlos Alberto Cortez 1dd640b821 2009-02-16 Carlos Alberto Cortez <[email protected]>
* TextBox.cs: When handling WndProc with autocomplete activated,
	event if the new text is not causing any change in the look up
	algorithm, save it as we normally do when numbers and letters.
	Fixes #469967.


svn path=/trunk/mcs/; revision=127086
2009-02-17 00:57:15 +00:00
Carlos Alberto Cortez 5b429443f9 2009-02-16 Carlos Alberto Cortez <[email protected]>
* TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
	Invalidate the proper bounds in the TreeView, not only resetting the
	width.
	Fixes #475542.


svn path=/trunk/mcs/; revision=127085
2009-02-17 00:53:48 +00:00
Zoltan Varga 98ab461f12 2009-02-17 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_check_inlining): Avoid calling 
	mono_method_get_header () on inflated methods as an optimization.

svn path=/trunk/mono/; revision=127081
2009-02-16 23:56:23 +00:00
Rodrigo Kumpera ddf326b9a6 In .:
2009-02-16 Rodrigo Kumpera  <[email protected]>

	* loader.c (method_from_memberref): Properly fix #474271 and
	don't break the runtime bad.


svn path=/trunk/mono/; revision=127072
2009-02-16 21:49:40 +00:00
Zoltan Varga f708b78705 2009-02-16 Zoltan Varga <[email protected]>
* ssa.c (fold_ins): Fix another crash if the instruction following the
	switch was optimized away.

svn path=/trunk/mono/; revision=127069
2009-02-16 21:46:47 +00:00
Jonathan Pryor cdbcf942da * Mono.Documentation/monodocer.cs: Support C#4 variant generics, e.g.
`delegate TRet Func<in TArg, out TRet>(TArg a)'.  Alas, this
	  required making MemberFormatter explicitly stateful, so any thoughts
	  of using instances w/o locking are now out the window...  (Not that
	  threads are currently used, but they're planned to be used...)
	  TODO: Add a test to Test/DocTest-v1.cs.  This wasn't done as the
	  current gmcs support doesn't like intermixing variance with generic
	  parameter attributes, and I don't want to introduce a new delegate
	  type (and the ~6 new files that would imply) just for this feature.

svn path=/trunk/mcs/; revision=127065
2009-02-16 21:16:33 +00:00
Mark Probst 1608ac040d 2009-02-16 Mark Probst <[email protected]>
Contributed under the terms of the MIT/X11 license by Steven
	Munroe <[email protected]>.

	* mini-ppc.c, mini-ppc.h: Implement TLS for PPC64.

2009-02-16  Mark Probst  <[email protected]>

	Contributed under the terms of the MIT/X11 license by Steven
	Munroe <[email protected]>.

	* mono-compiler.h: MONO_THREAD_VAR_OFFSET for PPC(64).

svn path=/trunk/mono/; revision=127060
2009-02-16 17:43:59 +00:00
Jb Evain 40cfd27e1d revert 127010 until Jeremie polishes and fixes the integration
svn path=/trunk/mcs/; revision=127046
2009-02-16 16:02:59 +00:00
Marek Safar f278715e4f New test.
svn path=/trunk/mcs/; revision=127042
2009-02-16 15:34:52 +00:00
Marek Safar 27b487abd2 2009-02-16 Marek Safar <[email protected]>
A fix for bug #475965
	* generics.cs: Check generic parameter type after extracting from
	Expression<T>.


svn path=/trunk/mcs/; revision=127040
2009-02-16 15:33:01 +00:00
Jb Evain 85e8848db2 2009-02-16 Jb Evain <[email protected]>
* Regex.cs: on the NET_2_1 profile, always use the old engine for now.


svn path=/trunk/mcs/; revision=127039
2009-02-16 15:28:14 +00:00
Zoltan Varga 05c95e6b79 2009-02-16 Zoltan Varga <[email protected]>
* mini.c method-to-ir.c mini-trampolines.c aot-runtime.c: Remove locking
	around the mono_domain_alloc calls, it is now done by the functions
	themselves.

svn path=/trunk/mono/; revision=127038
2009-02-16 15:24:24 +00:00
Zoltan Varga 6014e3525a 2009-02-16 Zoltan Varga <[email protected]>
* domain.c (mono_domain_alloc): Add locking so the caller doesn't have to.
	(mono_domain_alloc0): Ditto.

svn path=/trunk/mono/; revision=127037
2009-02-16 15:23:21 +00:00
Bill Holmes 5c2ebb1dba 2009-02-16 Bill Holmes <[email protected]>
* libmono.vcproj : Adding metadata/cominterop and 
	  mini/dwarfwriter to the project.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=127033
2009-02-16 15:04:36 +00:00
Rodrigo Kumpera 64e63f153d In .:
* loader.c (method_from_memberref): Don't abort if the array
	method is not found. A regular loader failure is more informative
	and correct.

	Fixes #474271.

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


svn path=/trunk/mono/; revision=127032
2009-02-16 14:44:32 +00:00
Zoltan Varga 6ef157a6e6 2009-02-16 Zoltan Varga <[email protected]>
* aot-compiler.c (compile_method): Only add wrappers referenced by
	the method if compiling with full AOT.
	(mono_compile_assembly): Error out if --aot=full is specified on
	a platform where it is not supported.

svn path=/trunk/mono/; revision=127031
2009-02-16 14:32:46 +00:00
Marek Safar 2a91fd094c New tests.
svn path=/trunk/mcs/; revision=127023
2009-02-16 13:12:13 +00:00
Marek Safar f4041ce36a New tests.
svn path=/trunk/mcs/; revision=127022
2009-02-16 13:11:58 +00:00
Marek Safar c7c1e192da 2009-02-16 Marek Safar <[email protected]>
A fix for bug #475823
	* convert.cs, expression.cs, literal.cs, ecore.cs, cfold.cs: Add
	typed-null support.


svn path=/trunk/mcs/; revision=127021
2009-02-16 13:11:43 +00:00
Rodrigo Kumpera 484afa3440 In .:
2009-02-16 Rodrigo Kumpera  <[email protected]>

	*loader.c: Guard MonoImage::method_cache/methodref_cache
	using the image lock instead of the loader lock.

	* metadata.h: Add comments about which fields are protected by
	the image lock.


svn path=/trunk/mono/; revision=127020
2009-02-16 13:07:45 +00:00
Jérémie Laval 9c16b076a1 * Initial commit of ParallelFx (corlib part only, no PLinq)
svn path=/trunk/mcs/; revision=127010
2009-02-16 10:50:43 +00:00
Atsushi Eno f5d1dc6c2c 2009-02-16 Atsushi Enomoto <[email protected]>
* WebConnectionStream.cs : use request only after it is set.


svn path=/trunk/mcs/; revision=126994
2009-02-16 05:45:36 +00:00
Zoltan Varga 0a5d58ab5c 2009-02-16 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_trampolines): Emit generic class init trampolines
	on ARM too.

	* tramp-arm.c (mono_arch_create_generic_class_init_trampoline_full): Add
	AOT support.

	* aot-runtime.c (load_named_code): Handle 
	mono_arm_throw_exception_by_token.

	* mini-arm.h: Add declaration of mono_arm_throw_exception_by_token.

	* image-writer.c (asm_writer_emit_pointer_unaligned): Make this really
	unaligned.

svn path=/trunk/mono/; revision=126989
2009-02-16 04:29:42 +00:00
Zoltan Varga 35b1af2386 Fix the previous change.
svn path=/trunk/mono/; revision=126988
2009-02-16 04:26:16 +00:00
Zoltan Varga 9169d0307e 2009-02-16 Zoltan Varga <[email protected]>
* appdomain.c (mono_set_private_bin_path_from_config): Fix a warning.

svn path=/trunk/mono/; revision=126987
2009-02-16 04:22:17 +00:00
Zoltan Varga dfc83b195a 2009-02-16 Zoltan Varga <[email protected]>
* generic-sharing.c (mono_method_construct_object_context): Remove the
	wrapper_type == NONE assert, it is not needed.

svn path=/trunk/mono/; revision=126986
2009-02-16 04:21:31 +00:00
Zoltan Varga 8fd85d00cd 2009-02-16 Zoltan Varga <[email protected]>
* Makefile.am (fullaotcheck): Exit if a test fails.

svn path=/trunk/mono/; revision=126985
2009-02-16 04:07:24 +00:00
Zoltan Varga 0e5ba7097b 2009-02-16 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Use the ASM writer for full aot
	on ARM.
	(mono_compile_assembly): Handle the assembler failing.

	* image-writer.c (asm_writer_emit_section_change): Handle ARM gas not
	accepting subsections of .bss.

svn path=/trunk/mono/; revision=126984
2009-02-16 03:58:21 +00:00
Zoltan Varga 84948da01e 2009-02-16 Zoltan Varga <[email protected]>
* ssa.c (visit_inst): Fix a crash if the instruction following a switch
	was optimized away.

svn path=/trunk/mono/; revision=126983
2009-02-16 03:28:44 +00:00
Zoltan Varga a068649da1 2009-02-16 Zoltan Varga <[email protected]>
* aot-compiler.c: Remove some unused includes.

svn path=/trunk/mono/; revision=126982
2009-02-16 01:14:13 +00:00
Zoltan Varga 23d50c1682 2009-02-16 Zoltan Varga <[email protected]>
* aot-compiler.c (MonoAotCompile): Remove some unused fields which are
	now in MonoImageWriter.

svn path=/trunk/mono/; revision=126981
2009-02-16 01:12:08 +00:00
Zoltan Varga 81c8bea5dd 2009-02-16 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_get_vcall_slot): Handle yet another
	code sequence which matches a non-virtual call. Fixes #472654.

svn path=/trunk/mono/; revision=126980
2009-02-16 01:04:25 +00:00
Zoltan Varga a4d60a3e1a 2009-02-15 Zoltan Varga <[email protected]>
* aot-compiler.c: Use xdebug_lock ()/unlock () macros for locking in the
	xdebug code.

svn path=/trunk/mono/; revision=126964
2009-02-15 22:26:33 +00:00
Zoltan Varga 81b8ff872e 2009-02-15 Zoltan Varga <[email protected]>
* aot-compiler.c: Make the xdebug code not depend on the AOT compiler,
	use the image/dwarf writers directly.

svn path=/trunk/mono/; revision=126963
2009-02-15 22:24:38 +00:00
Zoltan Varga f6b25f19f5 2009-02-15 Zoltan Varga <[email protected]>
* image-writer.c (struct _MonoImageWriter): Remove the unused 'image'
	field.

	* aot-compiler.c (MonoAotCompile): Remove fields which are now in
	MonoDwarfWriter.

svn path=/trunk/mono/; revision=126962
2009-02-15 21:53:03 +00:00
Zoltan Varga e99c74eab0 2009-02-15 Zoltan Varga <[email protected]>
* image-writer.h: Fix some typos.

svn path=/trunk/mono/; revision=126961
2009-02-15 21:50:54 +00:00
Zoltan Varga 36498c84e8 2009-02-15 Zoltan Varga <[email protected]>
* dwarfwriter.h dwarfwriter.c: New files.
	
	* aot-compiler.c: Extract the DWARF info writing functionality into a 
	separate module.

svn path=/trunk/mono/; revision=126960
2009-02-15 21:50:36 +00:00
Zoltan Varga 45df712a9b 2009-02-15 Zoltan Varga <[email protected]>
* dwarfwriter.h dwarfwriter.c: New files.
	
	* aot-compiler.c: Extract the DWARF info writing functionality into a 
	separate module.

svn path=/trunk/mono/; revision=126959
2009-02-15 21:49:47 +00:00
Zoltan Varga b9800a017c 2009-02-15 Zoltan Varga <[email protected]>
* reflection.c (clear_cached_object): New helper function.
	(mono_method_clear_object): New function to clear the cached reflection
	objects for a dynamic method.

	* object.c (mono_runtime_free_method): Call mono_method_clear_object ().
	Partly fixes # 463323.

svn path=/trunk/mono/; revision=126958
2009-02-15 20:36:54 +00:00
Jonathan Chambers a5b361b58c 2009-02-15 Jonathan Chambers <[email protected]>
* Microsoft.Build.Engine_test.dll.sources: Add BuildChooseTest.cs.


svn path=/trunk/mcs/; revision=126957
2009-02-15 20:31:46 +00:00
Zoltan Varga 0a191960ad 2009-02-15 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_create_trampoline_code_full): Add a 'out_unwind_ops'
	argument to return unwind info.

	* tramp-arm.c (mono_arch_create_trampoline_code_full): Ditto.

	* aot-compiler.c: Emit unwind info for trampolines in full-aot mode.

svn path=/trunk/mono/; revision=126953
2009-02-15 18:11:20 +00:00
Zoltan Varga e91f528120 2009-02-15 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_method_ref): Add a case for 
	MONO_AOT_METHODREF_WRAPPER_NAME.

svn path=/trunk/mono/; revision=126951
2009-02-15 02:56:25 +00:00
Zoltan Varga 1af51cd398 2009-02-15 Zoltan Varga <[email protected]>
* mini.h: Add constants for the magic numbers used in encode_method_ref ()
	for AOT.

	* aot-compiler.c (encode_method_ref): Use the new constants.

	* aot-runtime.c (decode_method_ref): Ditto.

svn path=/trunk/mono/; revision=126950
2009-02-15 02:48:39 +00:00
Zoltan Varga fb3e88e408 2009-02-15 Zoltan Varga <[email protected]>
* aot-compiler.c (compile_method): For generic icalls, queue the wrapper to
	be compiled, not the icall itself.

svn path=/trunk/mono/; revision=126949
2009-02-15 02:24:27 +00:00
Zoltan Varga 92db36d9f9 2009-02-14 Zoltan Varga <[email protected]>
* aot-runtime.c (find_extra_method_in_amodule): Avoid decoding wrapper names
	using decode_method_ref ().

svn path=/trunk/mono/; revision=126936
2009-02-14 17:43:23 +00:00
Rodrigo Kumpera 1c581a0886 In .:
* class.c:
	* loader.c:
	* reflection.c: Remove all explicit uses of MonoImage::property_hash.

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


svn path=/trunk/mono/; revision=126928
2009-02-14 15:59:30 +00:00
Rodrigo Kumpera 7c0366cd7b In .:
2009-02-14 Rodrigo Kumpera  <[email protected]>

	* image.c: Add mono_image_property_(lookup,insert,remove) functions that
	take the image lock instead of the loader lock.

	* metadata-internals.h: Export new functions.


svn path=/trunk/mono/; revision=126925
2009-02-14 15:26:40 +00:00
Zoltan Varga 69d48eba16 2009-02-14 Zoltan Varga <[email protected]>
* Regex.cs: Add a MONO_NEW_RX variable to enable the new regex
	engine.

svn path=/trunk/mcs/; revision=126923
2009-02-14 14:36:27 +00:00
Jonathan Pryor 3cfe05c157 * System.Xml/UniqueId.cs: Remove most [MonoTODO]s and
NotImplementedExceptions.  Revert the 2009-02-12 UniqueId.IsGuid 
	  "fix", as .NET says that new UniqueId(new Guid()).IsGuid==false 
	  (which makes no sense, as .ToString() on the same instance includes 
	  the "urn:uuid:" prefix, which is used by Guids...).
	* Test/System.Xml/UniqueIdTest.cs: Add tests for all members.

svn path=/trunk/mcs/; revision=126911
2009-02-14 03:33:07 +00:00
Marek Safar dcf19c85e5 2009-02-14 Marek Safar <[email protected]>
* modifiers.cs, decl.cs, ecore.cs, class.cs, flowanalysis.cs:
	Simplified event field definition using backing field and not
	field builder directly.

	* expression.cs (EmitLdArg): Optimize fast paths.


svn path=/trunk/mcs/; revision=126901
2009-02-14 00:09:36 +00:00
Zoltan Varga 1b70814bb9 2009-02-14 Zoltan Varga <[email protected]>
* method-to-ir.c (mini_emit_ldelema_1_ins): If the array index is a long,
	convert it to an in32. Fixes #475859.

	* arrays.cs: Add a test.

svn path=/trunk/mono/; revision=126897
2009-02-14 00:02:45 +00:00
Marek Habersack e2d52d7929 2009-02-14 Marek Habersack <[email protected]>
* UrlPattern.cs: use the defaults collection when matching a path
	and segments are missing.

	* RouteCollection.cs: GetRouteData must use VirtualPathProvider
	to check for virtual path existence.

svn path=/trunk/mcs/; revision=126891
2009-02-13 23:21:33 +00:00
Miguel de Icaza 21aadb64c1 2009-02-12 Miguel de Icaza <[email protected]>
* domain.c (app_config_parse): Remove another use of stat that is
	not necessary as g_file_get_contents already does the presence
	check. 

svn path=/trunk/mono/; revision=126879
2009-02-13 22:02:44 +00:00
Jonathan Chambers 49481d19ea Add test for solutions, project references, and project dependencies.
svn path=/trunk/mcs/; revision=126870
2009-02-13 21:25:57 +00:00
Jonathan Pryor e1b0befb1a * System.Xml/XmlDictionaryWriter.cs: Implement
WriteValue(IStreamProvider).
	* Test/System.Xml/XmlDictionaryWriterTest.cs: Test 
	  WriteValue(IStreamProvider).

svn path=/trunk/mcs/; revision=126867
2009-02-13 20:55:12 +00:00
Jonathan Chambers f234d25375 2009-02-13 Jonathan Chambers <[email protected]>
* SolutionParser.cs: Make Guid Regex case insensitive.
        Handle project dependencies. The solution has explicit
        dependencies, but we have to open projects for implicit
        dependencies (via ProjectReferences).


svn path=/trunk/mcs/; revision=126863
2009-02-13 20:43:10 +00:00
Atsushi Eno 3de9acfaf0 2009-02-13 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : remove use of non-2.1 CreateInstance().
        * XmlFormatterDeserializer.cs : allow empty element.


svn path=/trunk/mcs/; revision=126857
2009-02-13 20:18:57 +00:00
Marek Habersack 092b136928 Fixed a compilation issue
svn path=/trunk/mcs/; revision=126856
2009-02-13 20:11:41 +00:00
Marek Habersack 5df8b478b6 2009-02-13 Marek Habersack <[email protected]>
* AspParser.cs: added an event raised when parsing is complete.

	* AspGenerator.cs: added support for PageParserFilter which, if
	found, is used to control certain aspects of code parsing
	(accepting/rejecting control types, accepting/rejecting code
	snippets, parsing completion)
	Added the AddControl method, used by PageParserFilter when a
	custom filter wants to inject a control in the current control
	builder tree.

2009-02-13  Marek Habersack  <[email protected]>

	* TemplateParser.cs: PageParserFilter handling moved to here.
	PagesConfig must use the current virtual path when retrieving the
	section, or otherwise we'll miss the lower level web.configs.
	Added the AddControl method, used by PageParserFilter.
	Implementing filtering of: parsed directives and the base type, if
	a page parser filter is present.

	* PageParserFilter.cs: added missing 3.5 members and implemented
	everything.

	* PageParser.cs: moved PageParserFilter processing to
	TemplateParser.
	VirtualPath must be set before anything else.
	Call page parser filter's directive preprocessing code from
	AddDirective if a filter is present and a mastertype or
	previouspagetype directive is parsed.

	* MasterPageParser.cs: when PageParserFilter is present use it to
	preprocess the MasterType directive.

svn path=/trunk/mcs/; revision=126855
2009-02-13 20:11:19 +00:00
Jonathan Pryor 39d3548bd8 * System.Xml/XmlDictionaryWriter.cs: Implement
WriteTextNode(XmlDictionaryReader,bool).  This requires changes to
	  WriteNode(), as testing had determined that WriteTextNode() is used
	  instead of WriteString() for Text nodes and attribute values when
	  called via WriteNode().
	* Test/System.Xml/XmlDictionaryWriterTest.cs: Test 
	  WriteNode(XmlDictionaryReader), WriteNode(XmlReader), and 
	  WriteTextNode().

svn path=/trunk/mcs/; revision=126853
2009-02-13 19:39:20 +00:00
Jonathan Chambers 0188c5907f 2009-02-13 Jonathan Chambers <[email protected]>
* Main.cs: Add support for .sln files.
        * SolutionParser.cs: Class for generating project file
        from solution file.
        * xbuild.exe.sources: Added SolutionParser.cs.


svn path=/trunk/mcs/; revision=126845
2009-02-13 16:12:45 +00:00
Gonzalo Paniagua Javier 17efcb2270 2009-02-13 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: implemente (Read|Write)Timeout.
	Fixes bug #348159.


svn path=/trunk/mcs/; revision=126842
2009-02-13 15:09:07 +00:00
Atsushi Eno 4a7cc8b64b 2009-02-13 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs : for default constructor, first try to
          retrieve configuration from its contract name.
          Diagnose errorneous configuration.
        * SilverlightClientConfigLoader.cs : basicHttpBinding/binding
          element could be defined two or more times.


svn path=/trunk/mcs/; revision=126830
2009-02-13 12:30:11 +00:00
Marek Safar 09d530bcef New test.
svn path=/trunk/mcs/; revision=126827
2009-02-13 12:09:24 +00:00
Marek Safar 703c6f19d4 2009-02-13 Marek Safar <[email protected]>
A fix for bug #475327
	* expression.cs (ArrayCreation): Don't mutate values optimized away.


svn path=/trunk/mcs/; revision=126825
2009-02-13 12:08:42 +00:00
Marek Safar 5ac05fb548 New test.
svn path=/trunk/mcs/; revision=126823
2009-02-13 11:37:56 +00:00
Marek Safar 609ff98f61 2009-02-13 Marek Safar <[email protected]>
A fix for bug #475342
	* cs-parser.jay: Using 'super' instead of 'base' to call base
	constructor crashes compiler.


svn path=/trunk/mcs/; revision=126822
2009-02-13 11:37:28 +00:00
Marek Safar 9786bcd92a New tests.
svn path=/trunk/mcs/; revision=126820
2009-02-13 11:16:40 +00:00
Marek Safar e54985dd40 2009-02-13 Marek Safar <[email protected]>
A fix for bug #475354
	* expression.cs (Constantify): Add nullable types.
	
	* const.cs (EmitDecimalConstant): Avoid explicit cast.


svn path=/trunk/mcs/; revision=126819
2009-02-13 11:16:19 +00:00
Atsushi Eno 4e22f2b6e0 2009-02-13 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, DataContractSerializer.cs,
	  KnownTypeCollection.cs : now .NET 3.5/SP1 supports non-contract
	  type serialization.

	* XmlObjectSerializerTest.cs : fixed non-contract serialization
	  tests and remove some NotWorking.


svn path=/trunk/mcs/; revision=126813
2009-02-13 10:57:50 +00:00
Atsushi Eno 2a959d05da 2009-02-13 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs : couple of refactoring
	  to simplify code base and handle CollectionDataContract namespace.

	* XmlObjectSerializerTest.cs : fixed collection contract test and
	  added some notes.


svn path=/trunk/mcs/; revision=126807
2009-02-13 08:43:01 +00:00
Atsushi Eno 6713e65b43 2009-02-13 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : oops, remove debug lines.


svn path=/trunk/mcs/; revision=126803
2009-02-13 07:37:18 +00:00
Atsushi Eno 5edad3625a 2009-02-13 Atsushi Enomoto <[email protected]>
* DataContractSerializer.cs : remove extra writexmlns.
	* SerializationMap.cs : allow DataMember of collection contract type
	  as read-only.
	* KnownTypeCollection.cs : it was not iterating interfaces to find
	  IEnumerable<T> correctly.

	* XmlObjectSerializerTest.cs : added couple of test fixes in
	  collection serialization tests.


svn path=/trunk/mcs/; revision=126802
2009-02-13 07:35:55 +00:00
Jonathan Chambers c568e12fd7 2009-02-12 Jonathan Chambers <[email protected]>
* BuildProperty.cs: Value corresponds to XmlElement.InnerXml
        no XmlElement.InnerText. This allows properties to be additional
        xml elements.


svn path=/trunk/mcs/; revision=126791
2009-02-13 02:13:04 +00:00
Miguel de Icaza 3e2e6297aa 2009-02-12 Miguel de Icaza <[email protected]>
More Paolo patches from the Wii port:
	
	* security.c: Remove ves_icall_System_Environment_get_UserName
	from here.

	* icall.c: And put ves_icall_System_Environment_get_UserName
	here. 

	* appdomain.c (mono_set_private_bin_path_from_config): Remove
	redundant call to stat that was only used to test for the file
	existence.   Patch from Paolo.

	* gc.c (run_finalize): If COM is disabled, do not link in
	mono_marshal_free_ccw.

	* generic-sharing.c: Use alloca.h here as well.



svn path=/trunk/mono/; revision=126789
2009-02-13 02:01:31 +00:00
Zoltan Varga da08584c88 2009-02-13 Zoltan Varga <[email protected]>
* cominterop.c icall-def.h: Fix the DISABLE_COM build.

svn path=/trunk/mono/; revision=126787
2009-02-13 01:12:06 +00:00
Zoltan Varga cc5fe380f2 2009-02-13 Zoltan Varga <[email protected]>
* marshal.c: Move the bstr handling code to cominterop.c.

svn path=/trunk/mono/; revision=126786
2009-02-13 01:08:52 +00:00
Zoltan Varga c630b50e05 2009-02-13 Zoltan Varga <[email protected]>
* marshal.c: Remove some COM interop code missed previously.

svn path=/trunk/mono/; revision=126785
2009-02-13 00:55:36 +00:00
Miguel de Icaza a4069624be 2009-02-12 Miguel de Icaza <[email protected]>
* generic-sharing.c: Use alloca.h here as well.

svn path=/trunk/mono/; revision=126784
2009-02-13 00:43:56 +00:00
Rodrigo Kumpera 94dd424b3a In .:
2009-02-13 Rodrigo Kumpera  <[email protected]>

	* reflection.c (mono_reflection_lookup_dynamic_token): Do the locking properly.


svn path=/trunk/mono/; revision=126783
2009-02-13 00:25:24 +00:00
Zoltan Varga ef571a3427 2009-02-13 Zoltan Varga <[email protected]>
* cominterop.c cominterop.h: New files.

	* marshal.c: Move the COM interop related code to cominterop.c. Make a few
	function/typedefs which are needed by cominterop.c global.

svn path=/trunk/mono/; revision=126782
2009-02-13 00:22:42 +00:00
Zoltan Varga 170d4a4860 2009-02-13 Zoltan Varga <[email protected]>
* cominterop.c cominterop.h: New files.

	* marshal.c: Move the COM interop related code to cominterop.c. Make a few
	function/typedefs which are needed by cominterop.c global.

svn path=/trunk/mono/; revision=126775
2009-02-12 23:49:00 +00:00
Robert Jordan b462df9c67 2009-02-12 Robert Jordan <[email protected]>
* Exception.cs: Rename remote_stack_trace for MS.NET
	compatibility. Fixes #425512.
	r=miguel


svn path=/trunk/mcs/; revision=126770
2009-02-12 22:57:12 +00:00
Marek Safar b1a2042b83 2009-02-12 Marek Safar <[email protected]>
* ControlBuilder.cs, PageParserFilter.cs, CodeConstructType.cs:
	Add few missing members.


svn path=/trunk/mcs/; revision=126769
2009-02-12 22:51:00 +00:00
Zoltan Varga 41c54c44fc 2009-02-12 Zoltan Varga <[email protected]>
* Makefile.am (EXTRA_DIST): Remove removed files.

svn path=/trunk/mono/; revision=126767
2009-02-12 22:35:33 +00:00
Mark Probst 88f1720faf 2009-02-12 Mark Probst <[email protected]>
* generic-sharing.c: Don't take the loader lock to guard image
	mempool allocs.

svn path=/trunk/mono/; revision=126764
2009-02-12 21:32:57 +00:00
Jonathan Pryor 8556a49e3c * System.Xml/XmlDictionaryWriter.cs: Implement WriteValue(Guid),
WriteValue(TimeSpan), WriteValue(UniqueId).
	* System.Xml/UniqueId.cs: Fix UniqueId.IsGuid, as 
	  `new UniqueId(new Guid())` was previously being detected as a string 
	  value, not a Guid value.
	* Test/System.Xml/XmlDictionaryWriterTest.cs: Test WriteValue(Guid),
	  WriteValue(TimeSpan), WriteValue(UniqueId).

svn path=/trunk/mcs/; revision=126760
2009-02-12 20:56:05 +00:00
Rodrigo Kumpera 1282c14690 In .:
* reflection.c (mono_reflection_lookup_dynamic_token): This function might be called without
	the loader lock which is required to guard MonoImage:tokens.

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


svn path=/trunk/mono/; revision=126758
2009-02-12 20:41:17 +00:00
Rodrigo Kumpera 36f31ed56d In .:
* class.c:
	* metadata.c:
	* method-builder.c:
	* marshal.c:
	* reflection.c: Don't take the loader lock to alloc memory from the image mempool.

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


svn path=/trunk/mono/; revision=126756
2009-02-12 20:27:56 +00:00
Jonathan Pryor c8f1af3dd7 * System.Runtime.Serialization_test.dll.sources: Add
System.Xml/XmlDictionaryWriterTest.cs to the test build.
	* System.Xml/XmlDictionaryWriter.cs (WriteStartElement): Add parameter 
	  checking and default arguments to avoid NullReferenceExceptions.
	* Test/System.Xml/XmlDictionaryWriterTest.cs: Added; test
	  XmlDictionaryWriter.WriteElementString().

svn path=/trunk/mcs/; revision=126751
2009-02-12 19:47:59 +00:00
Zoltan Varga a37699ee22 2009-02-12 Zoltan Varga <[email protected]>
* README: Point to the documentation on the wiki.

svn path=/trunk/mono/; revision=126749
2009-02-12 19:41:13 +00:00
Rodrigo Kumpera 05506f4d00 In .:
2009-02-12 Rodrigo Kumpera  <[email protected]>

	* metadata.c: Remove mono_image_alloc_lock and mono_image_alloc0_lock.
	Rework the code to use regular mono_image_alloc/0.

	* loader.c: Rework the code to use regular mono_image_alloc/0.

	* metadata-internals.h: Remove mono_image_alloc_lock and mono_image_alloc0_lock.


svn path=/trunk/mono/; revision=126748
2009-02-12 19:30:26 +00:00
Zoltan Varga a98fd0834a 2009-02-12 Zoltan Varga <[email protected]>
* call-sites.txt: Remove this, its contents is in jit-trampolines.

svn path=/trunk/mono/; revision=126747
2009-02-12 19:27:43 +00:00
Lluis Sanchez b62c411dc5 2009-02-12 Lluis Sanchez Gual <[email protected]>
* MarshalByRefObject.cs: Implemented MemberwiseClone(bool).


svn path=/trunk/mcs/; revision=126746
2009-02-12 19:26:09 +00:00
Zoltan Varga 18b99ebc85 2009-02-12 Zoltan Varga <[email protected]>
* memory-management.txt thread-safety.txt aot-compiler.txt jit-regalloc
	exception-handling.txt: Remove documents which are now on the wiki.

svn path=/trunk/mono/; revision=126745
2009-02-12 19:22:39 +00:00
Bill Holmes 4445ef40a6 2009-02-12 Bill Holmes <[email protected]>
* object-internals.h : Fixing a typo in the
	  MonoReflectionComVisibleAttribute struct.

	* marshal.c (cominterop_com_visible): Check the implemented
	  interfaces for ComImport.

	* marshal.c (cominterop_get_native_wrapper_adjusted): For COM calls
	  assume that bools should be treated as VARIANTBOOLs.

	* marshal.c (emit_marshal_boolean): Adding cases for
	  MARSHAL_ACTION_MANAGED_CONV_IN and MARSHAL_ACTION_MANAGED_CONV_OUT.

	* marshal.c (mono_marshal_emit_managed_wrapper): Adding calls to
	  emit_marshal MARSHAL_ACTION_MANAGED_CONV_IN and OUT for bools.

	* marshal.c (cominterop_get_ccw): For COM calls assume that bools
	  should be treated as VARIANTBOOLs.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=126738
2009-02-12 18:38:54 +00:00
Zoltan Varga f792758b62 2009-02-12 Zoltan Varga <[email protected]>
* mini-s390x.c (mono_arch_output_basic_block): Fix the shift amounts in 
	OP_LCONV_TO_U2.

	* basic-long.cs: Add a test.

svn path=/trunk/mono/; revision=126737
2009-02-12 18:38:38 +00:00
Rodrigo Kumpera 580c60340c In .:
* image.c (mono_image_alloc, mono_image_alloc0, mono_image_strdup): Guard mempool
	allocation with the image lock.

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


svn path=/trunk/mono/; revision=126736
2009-02-12 18:36:45 +00:00
Jordi Mas i Hernandez 3dd6477818 2009-02-12 Jordi Mas i Hernandez <[email protected]>
* Mono.Cairo/ScaledFont.cs: Fixes Dispose signature
	* Mono.Cairo/FontFace.cs: Fixes Dispose signature
	* Mono.Cairo/Surface.cs: Fixes Dispose signature
	* Mono.Cairo/Path.cs: Fixes Dispose signature
	* Mono.Cairo/Pattern.cs: Fixes Dispose signature


svn path=/trunk/mcs/; revision=126734
2009-02-12 18:11:45 +00:00
Rodrigo Kumpera 9569ace7e1 2009-02-12 Rodrigo Kumpera <[email protected]>
This patch is the last of a series to remove explicit reference of MonoImage::mempool
	and use mono_image_alloc set of functions instead. This time we finish with reflection.c

	* object.c: Add mono_string_to_utf8_image.

	* object-internals.h: Export mono_string_to_utf8_image.

	* reflection.c: Rework all explicit references to the the image mempool to go thought
	the mono_image_alloc set of functions.




svn path=/trunk/mono/; revision=126732
2009-02-12 17:57:44 +00:00
Marek Safar b664cd8888 New tests.
svn path=/trunk/mcs/; revision=126730
2009-02-12 17:48:30 +00:00
Marek Safar af4c753d92 2009-02-12 Marek Safar <[email protected]>
A fix for bug ##475246
	* expression.cs: More broken flowanalysis hacking needed.


svn path=/trunk/mcs/; revision=126728
2009-02-12 17:47:46 +00:00
Mark Probst 059c8a50db 2009-02-12 Mark Probst <[email protected]>
* mini-x86.c, mini-x86.h: Very simple frame pointer removal.  We
	remove the frame pointer in leaf methods which don't receive any
	arguments, don't throw exceptions and don't do dynamic stack
	allocations.

svn path=/trunk/mono/; revision=126720
2009-02-12 16:04:19 +00:00
Zoltan Varga 55064ccc07 2009-02-12 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_build_imt_thunk): Fix size calculation after
	the fail_tramp changes. Hopefully fixes #475132.

svn path=/trunk/mono/; revision=126717
2009-02-12 14:35:48 +00:00
Rodrigo Kumpera c39f68853b 2009-02-12 Rodrigo Kumpera <[email protected]>
This patch is the third of a series to remove explicit reference of MonoImage::mempool
	and use mono_image_alloc set of functions instead. This time we finish with marshal.c
	and generics-sharing.c.

	* generics-sharing.c (set_other_info_templates): Take a MonoImage instead of a MonoMemPool
	as first argument. Note that this function remains broken as it doesn't perform locking around the
	mempool allocation.

	* generics-sharing.c (rgctx_template_set_other_slot): Pass the image and not the mempool.

	* image.c: Add g_slist_append_image.

	* metadata.c (mono_metadata_field_info_with_mempool): Remove the mempool argument and use
	the supplied image for allocation. Move code into mono_metadata_field_info_full.

	* metadata.c (mono_metadata_parse_marshal_spec_full): Take a MonoImage instead of a MonoMemPool.
	Fix all related code to do the same.

	* marshal.c (mono_marshal_load_type_info): Pass the image instead of the mempool.

	* metadata-internals.h: Fix the signatures.


svn path=/trunk/mono/; revision=126716
2009-02-12 14:16:26 +00:00
Rodrigo Kumpera f48d04ed59 In mini:
2009-02-12  Rodrigo Kumpera  <[email protected]>

	* method-to-ir.c (mono_emit_method_call_full): Use mono_metadata_signature_dup_mempool
	instead of mono_metadata_signature_dup_full.

In metadata:
	and use mono_image_alloc set of functions instead. This time we rework mono_metadata_type_dup
	and similar to work using MonoImage.

	* class.c (mono_mempool_dup): Rename to mono_image_memdup and take a MonoImage instead of a
	MonoMemPool.

	* class.c (mono_dup_array_type): Take a MonoImage instead of a MonoMemPool as first argument.

	* class.c (mono_metadata_signature_deep_dup): Same.

	* class.c (inflate_generic_type): Same.

	* class.c (mono_class_inflate_generic_type_with_mempool): Same.

	* metadata.c (mono_metadata_signature_dup_full): Same.

	* metadata.c: Add mono_metadata_signature_dup_mempool and extract common functionality from 
	mono_metadata_signature_dup_full.

	* metadata.c (mono_metadata_type_dup): Same.

	* marshal.c: Pass the image to calls to mono_metadata_type_dup.

	* reflection.c: Same.

	* generic-sharing.c: Pass the image to calls to mono_class_inflate_generic_type_with_mempool.

	* metadata-internals.h: Fix the signatures.

	* class-internals.h: Same.

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

	This patch is the first of a series to remove explicit reference of MonoImage::mempool

svn path=/trunk/mono/; revision=126710
2009-02-12 13:40:36 +00:00
Atsushi Eno 7a7a4c4cb3 2009-02-12 Atsushi Enomoto <[email protected]>
* Message.cs : if there is no header item to write, do not write
	  SOAP header element.


svn path=/trunk/mcs/; revision=126705
2009-02-12 11:31:26 +00:00
Atsushi Eno 0c744bd73f 2009-02-12 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : do not write body wrapper element
	  when IsWrapped = false.


svn path=/trunk/mcs/; revision=126704
2009-02-12 11:29:36 +00:00
Marek Safar 5954368ddc 2009-02-12 Marek Safar <[email protected]>
* attribute.cs: Compare only ref/out array modifiers. 


svn path=/trunk/mcs/; revision=126699
2009-02-12 10:41:52 +00:00
Atsushi Eno a17c5b6e6c 2009-02-12 Atsushi Enomoto <[email protected]>
* ClientProxyGenerator.cs : so, the proxy generator was buggy to
          generate end invoke.
        * ClientBase.cs : make it simpler and just work.


svn path=/trunk/mcs/; revision=126693
2009-02-12 09:09:11 +00:00
Gonzalo Paniagua Javier cfbe89decd 2009-02-12 Gonzalo Paniagua Javier <[email protected]>
* io.c: EXDEV when moving directories fails now without creating a
	file in the destination.
	Fixes bug #326983.


svn path=/trunk/mono/; revision=126690
2009-02-12 07:43:46 +00:00
Gonzalo Paniagua Javier e74faa5cd0 2009-02-12 Gonzalo Paniagua Javier <[email protected]>
* MonoIO.cs:
	* MonoIOError.cs: enable ERROR_NOT_SAME_DEVICE.


svn path=/trunk/mcs/; revision=126688
2009-02-12 07:43:30 +00:00
Jonathan Pryor 79d3cca79c * System.Runtime.Serialization_test.dll.sources: Add
System.Xml/XmlDictionaryStringTest.cs to the test build.
	* System.Xml/XmlDictionaryString.cs: Add constructor argument checking.
	* Test/System.Xml/XmlDictionaryStringTest.cs: Added; tests for 
	  XmlDictionaryString.

svn path=/trunk/mcs/; revision=126680
2009-02-12 03:43:25 +00:00
Rodrigo Kumpera 2a35450fc6 2009-02-11 Rodrigo Kumpera <[email protected]>
This patch is the first of a series to remove explicit reference of MonoImage::mempool
	and use mono_image_alloc set of functions instead. 

	* class.c (mono_class_inflate_generic_type_with_mempool_no_copy):
	Rename to mono_class_inflate_generic_type_no_copy and take a MonoImage instead
	of a MonoMemPool.

	* class.c (mono_class_setup_fields): Adapt to mono_class_inflate_generic_type_no_copy.

	* class.c (g_list_prepend_mempool): Removed.

	* class.c (mono_class_get_nested_types): Use g_list_prepend_image instead of g_list_prepend_mempool.

	* image.c: Add g_list_prepend_image.

	* metadata-internals.h (struct MonoImage): Fix comment. Export g_list_prepend_image as internal.

	* reflection.c (mono_reflection_create_runtime_class): Use g_list_prepend_image instead of g_list_prepend_mempool.





svn path=/trunk/mono/; revision=126672
2009-02-12 01:46:35 +00:00
Rodrigo Kumpera 8f91e420d7 In .:
* thread-safety.txt: Improve the docs about image lock.

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


svn path=/trunk/mono/; revision=126671
2009-02-12 01:16:09 +00:00
Zoltan Varga 3d0d54794b 2009-02-12 Zoltan Varga <[email protected]>
* ssa.c (fold_ins): Use MONO_IS_JUMP_TABLE () and MONO_JUMP_TABLE_FROM_INS ()
	for processing jump tables. Fixes #473787.

svn path=/trunk/mono/; revision=126668
2009-02-12 00:17:45 +00:00
Rodrigo Kumpera 122601004c In .:
2009-02-11  Rodrigo Kumpera  <[email protected]>

	* thread-safety.txt: Document the new image lock.


svn path=/trunk/mono/; revision=126667
2009-02-12 00:13:20 +00:00
Rodrigo Kumpera 74a25c8a2b In .:
2009-02-11 Rodrigo Kumpera  <[email protected]>

	* metadata-internals.h (struct MonoImage): Add lock field. Export mono_image_lock and
	mono_image_unlock.

	* image.c (mono_image_init): Init the lock field.
 
	* image.c (mono_image_init): Cleanup the lock field.

	* image.c: Add mono_image_(un)lock functions.

	

svn path=/trunk/mono/; revision=126666
2009-02-12 00:13:08 +00:00
Bill Holmes d260b1ab91 2009-02-11 Bill Holmes <[email protected]>
* mono-filemap.c : Fixing the MSVC build.

	Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=126646
2009-02-11 22:09:15 +00:00
Bill Holmes 0357cb49da 2009-02-11 Bill Holmes <[email protected]>
* libmono.vcproj : Adding utils\mono-filemap.c to the project.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=126645
2009-02-11 22:07:28 +00:00
Gonzalo Paniagua Javier 3ab9dba94e 2009-02-11 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.


svn path=/trunk/mcs/; revision=126637
2009-02-11 19:47:29 +00:00
Mark Probst 8861613217 2009-02-11 Mark Probst <[email protected]>
* class.c, class-internals.h: mono_method_get_context_general()
	combines the functionality of mono_method_get_context() and
	mini_method_get_context().

	* generic-sharing.c, domain-internals.h:
	mono_method_construct_object_context() and
	mono_domain_lookup_shared_generic() moved from mini.

	* icall.c (ves_icall_InternalInvoke): Handle the case where the
	method doesn't have the correct instantiation because it's shared
	generic code.  Fixes #473999.

2009-02-11  Mark Probst  <[email protected]>

	* mini-generic-sharing.c: mini_method_get_context() just calls
	mono_method_get_context_general() now.

	* mini.c, mini.h: Moved get_object_generic_inst(),
	construct_object_context_for_method() and
	mono_domain_lookup_shared_generic() to metadata/generic-sharing.c.

2009-02-11  Mark Probst  <[email protected]>

	* bug-473999.2.cs: New test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=126631
2009-02-11 19:03:27 +00:00
Marek Safar 7c1ac4b6ab 2009-02-11 Marek Safar <[email protected]>
* statement.cs: Use member cache when looking for foreach members.


svn path=/trunk/mcs/; revision=126626
2009-02-11 17:40:36 +00:00
Leszek 'skolima' Ciesielski 2978f13a2b 2009-02-11 Leszek Ciesielski <[email protected]>
* ResolveAssemblyReference.cs : AllowedRelatedFileExtensions stub


svn path=/trunk/mcs/; revision=126625
2009-02-11 17:24:12 +00:00
Marek Safar 6477089075 2009-02-11 Marek Safar <[email protected]>
* convert.cs, statement.cs: Removed usage of IsAssignableFrom.


svn path=/trunk/mcs/; revision=126621
2009-02-11 16:59:38 +00:00
Zoltan Varga 23956528a5 2009-02-11 Zoltan Varga <[email protected]>
* loader.c (mono_method_get_wrapper_data): Handle inflated methods as well.

	* loader.c (mono_loader_lock): Add a comment pointing to the locking document.

svn path=/trunk/mono/; revision=126607
2009-02-11 14:39:47 +00:00
Zoltan Varga 9b76f581b7 2009-02-11 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Handle the case where the merged 
	basic block fell through to its successor bblock without a branch. Fixes
	#474718.

	* iltests.il.in: Add a test.

svn path=/trunk/mono/; revision=126604
2009-02-11 14:30:46 +00:00
Marek Safar 5047a5729c New test.
svn path=/trunk/mcs/; revision=126602
2009-02-11 14:14:18 +00:00
Marek Safar e7e2b27972 2009-02-11 Marek Safar <[email protected]>
* expression.cs: Don't expose internal initializer types.
	
	* statement.cs: Check also explicit conversions for goto case.


svn path=/trunk/mcs/; revision=126601
2009-02-11 14:14:05 +00:00
Rodrigo Kumpera 45808748df In .:
2009-02-11 Rodrigo Kumpera  <[email protected]>

	* metadata.c: Make mono_image_alloc_lock and mono_image_alloc0_lock non static.

	* metadata-internals.h: Export mono_image_alloc_lock and mono_image_alloc0_lock.

	* loader.c (mono_get_method_full): Drop the loader lock while constructing the method
	and recheck the cache for dups after it.

	* loader.c (mono_get_method_from_token): Use _lock version of mono_image_alloc0.

	Fixes one of the deadlocks found in #473150.


svn path=/trunk/mono/; revision=126599
2009-02-11 13:52:12 +00:00
Bill Holmes da80452cfd 2009-02-11 Bill Holmes <[email protected]>
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal):
	  For Win32, add additional break conditions for accept.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=126596
2009-02-11 13:45:07 +00:00
Marek Safar c96c5faa5e 2009-02-11 Marek Safar <[email protected]>
* convert.cs: Removed usage of IsAssignableFrom.


svn path=/trunk/mcs/; revision=126564
2009-02-11 11:27:59 +00:00
Gonzalo Paniagua Javier a01b5f3fa1 2009-02-10 Gonzalo Paniagua Javier <[email protected]>
* CookieContainer.cs: separate cookies with "; " instead of just ';'.
	Fixes bug #386727.


svn path=/trunk/mcs/; revision=126530
2009-02-10 23:35:11 +00:00
Zoltan Varga b18e259b9b 2009-02-11 Zoltan Varga <[email protected]>
* aot-compiler.c (encode_method_ref): Encode methods of array types.
	(can_encode_patch): We can now handle arrays of generic parameters and
	array methods.

	* aot-runtime.c (decode_method_ref_2): Handle methods of array types.

	* aot-compiler.c aot-runtime.c: Emit the size of specific trampolines into
	the AOT file to avoid some #ifdefs in aot-runtime.c

	* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=126528
2009-02-10 23:19:09 +00:00
Gonzalo Paniagua Javier 7c5529e46b 2009-02-10 Gonzalo Paniagua Javier <[email protected]>
- The PropertyValueCollection class doesn't mark its data as dirty/changed in
	  - this[int index] setter
	  - Insert()
	  - Remove() 
	  - Value setter
	The DirectoryEntry class doesn't handle the clearing of an attribute (see
	CommitEntry())
	Patch from Juraj Skripsky that fixes bug #416985.


svn path=/trunk/mcs/; revision=126522
2009-02-10 22:32:17 +00:00
Zoltan Varga f593e5a31d 2009-02-10 Zoltan Varga <[email protected]>
* Makefile.am (fullaotcheck): Make this run the tests.

svn path=/trunk/mono/; revision=126501
2009-02-10 19:20:14 +00:00
Zoltan Varga 517b828bdb 2009-02-10 Zoltan Varga <[email protected]>
* aot-compiler.c: Make the printing of skipped methods runtime configurable.

svn path=/trunk/mono/; revision=126499
2009-02-10 19:19:41 +00:00
Zoltan Varga 4905332f60 2009-02-10 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_native_func_wrapper): Use get_cache to
	lazily initialize the native wrapper cache.
	(mono_marshal_get_native_wrapper): Put aot-ed native wrappers into a separate
	cache, since they are different from the normal wrappers.

	* image.c (mono_image_init): Initialize native_wrapper_cache lazily as well.

	* metadata-internals.h (struct _MonoImage): Add a new wrapper for
	AOT compiled native wrappers.

svn path=/trunk/mono/; revision=126498
2009-02-10 19:18:06 +00:00
Jonathan Pryor 1deef7537f * System.Runtime.Serialization.dll.sources: Add
System.Xml/IFragmentCapableXmlDictionaryWriter.cs to the build.
	* IFragmentCapableXmlDictionaryWriter.cs: Added.

svn path=/trunk/mcs/; revision=126493
2009-02-10 19:09:24 +00:00
Jonathan Pryor 032997df5a * Mono.Documentation/monodocer.cs: Cleanup: turn static data into
instance data (for future Threading changes, as only static data
	  will be tracked for thread-safety); use MDocCommand.Message() and
	  MDocCommand.Error() for message reporting; remove warnings.

svn path=/trunk/mcs/; revision=126485
2009-02-10 18:16:14 +00:00
Marek Habersack 4d4dfda2d6 2009-02-10 Marek Habersack <[email protected]>
* ImageButton.cs: AddAttributesToRender renders the onclick
	attribute only if any of the following is true:
	  - OnClientClick is not empty
	  - Validation is enabled for the control
	  - PostBackUrl is used
	PostBackOptions now indicate that control requires the javascript
	protocol for the handler.
	RaisePostBackEvent passes String.Empty as the argument.
	Fixes bug #463939

2009-02-10  Marek Habersack  <[email protected]>

	* ImageButtonTest.cs: added test for bug #46393

svn path=/trunk/mcs/; revision=126482
2009-02-10 18:12:15 +00:00
Mark Probst 7cb492aae6 2009-02-10 Mark Probst <[email protected]>
* mini-x86.c (mono_arch_context_get_int_reg): Handle all registers
	individually.  Fixes #473482.

2009-02-10  Mark Probst  <[email protected]>

	* bug-473482.2.cs: New test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=126467
2009-02-10 14:59:00 +00:00
Marek Safar 9af6139e9d 2009-02-10 Marek Safar <[email protected]>
* *.cs: Replace null-type with NullLiteral where appropriate.


svn path=/trunk/mcs/; revision=126464
2009-02-10 14:43:14 +00:00
Jeffrey Stedfast 678b765c8b 2009-02-10 Jeffrey Stedfast <[email protected]>
* minizip/zip.c: Fix warnings about old-style paramater type
	specifications.

	* minizip/unzip.c Fix warnings about old-style paramater type
	specifications.

svn path=/trunk/mono/; revision=126463
2009-02-10 14:29:46 +00:00
Jeffrey Stedfast 21f14f83f4 2009-02-10 Jeffrey Stedfast <[email protected]>
* minizip/unzip.c (unzlocal_DosDateToTmuDate): Fix ambiguous
	else's.
	(unzlocal_DosDateToTmuDate): Here too.
	(unzlocal_CheckCurrentFileCoherencyHeader): And here.


svn path=/trunk/mono/; revision=126461
2009-02-10 14:22:22 +00:00
Jeffrey Stedfast fbdc6bdce0 2009-02-10 Jeffrey Stedfast <[email protected]>
* old-map.c: Added prototypes to silence compile warnings. Looks
	like this file is supposed to be autogenerated, so probably not
	the right fix but I can't find the autogen script.

	* map.h (helper_Mono_Posix_getpwnamuid): Added a prototype for
	this - it doesn't seem to be used anywhere in mono, so
	maybe it can be removed but I'm not positive.
	(map_Mono_Posix_PollEvents): Added prototype.
	(map_Mono_Posix_Signals): Added prototype.

	* macros.c: #include "map.h" to silence compile warnings about no
	previous prototypes.


svn path=/trunk/mono/; revision=126460
2009-02-10 14:18:02 +00:00
Carlos Alberto Cortez c7c6b2b2f4 * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
BackColor property. This is what .net does in both 1.1 and 2.0.
	* TreeView.cs: When selected_node is not the same as highlighted_node,
	we need to handle the back color in a different way, trying to use the
	node's BackColor if it's not Color.Empty.
	Fixes #464200.

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


svn path=/trunk/mcs/; revision=126440
2009-02-10 10:33:28 +00:00
Carlos Alberto Cortez 12e8bfa789 2009-02-09 Carlos Alberto Cortez <[email protected]>
* TreeView.cs: When canceling selection in our MouseUp handler,
	invalidate also the previous selected node bounds.
	Fixes #464191.


svn path=/trunk/mcs/; revision=126433
2009-02-10 09:12:02 +00:00
Gonzalo Paniagua Javier bca301ca5b 2009-02-10 Gonzalo Paniagua Javier <[email protected]>
* AppDomain.cs: this fixes the remoting tests.
	Zoltan found out that there was a domain improperly using shadow
	copy.


svn path=/trunk/mcs/; revision=126430
2009-02-10 07:35:08 +00:00
Gonzalo Paniagua Javier c87873b57b fix the windows build
svn path=/trunk/mono/; revision=126424
2009-02-10 06:10:49 +00:00
Atsushi Eno c225d87477 2009-02-10 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : similar fix in WriteStartElement() to
	  previous change. Fixed bug #474091.

	* XmlTextWriterTests.cs : added test for bug #474091.


svn path=/trunk/mcs/; revision=126417
2009-02-10 04:09:27 +00:00
Jeffrey Stedfast afc88b1169 2009-02-09 Jeffrey Stedfast <[email protected]>
* supportw.c (SetWindowPos): Fixed compile warnings about
	printf-style formatters.
	(SendMessageA): Same.


svn path=/trunk/mono/; revision=126409
2009-02-10 01:32:54 +00:00
Jeffrey Stedfast 156c3308e8 2009-02-09 Jeffrey Stedfast <[email protected]>
* aot-compiler.c (arch_emit_plt_entry): Fixed to compile.
	(mono_compile_assembly): Hush compile warnings about
	uninitialized [tmp_]outfile_name variables in the !use_bin_writer
	code path.


svn path=/trunk/mono/; revision=126408
2009-02-10 01:32:19 +00:00
Zoltan Varga b528bf6d0b 2009-02-10 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_output_basic_block): Disable AOT for OP_JMP.

svn path=/trunk/mono/; revision=126406
2009-02-10 01:16:57 +00:00
Jeffrey Stedfast 668ac959e1 2009-02-09 Jeffrey Stedfast <[email protected]>
* aot-compiler.c (arch_emit_plt_entry): Fixed to compile.


svn path=/trunk/mono/; revision=126405
2009-02-10 01:08:46 +00:00
Zoltan Varga 8cbcd0153a 2009-02-10 Zoltan Varga <[email protected]>
* exceptions-arm.c (mono_arch_find_jit_info): Fix aot support.

	* mini-arm.c: Checkin unwind related changes missing from an earlier commit.

svn path=/trunk/mono/; revision=126404
2009-02-10 01:02:38 +00:00
Zoltan Varga c8363bb3f8 2009-02-10 Zoltan Varga <[email protected]>
* aot-compiler.c: Fix arm support.

	* image-writer.c: Move the R_ARM constants to image-writer.h. Export a
	img_writer_emit_unset_mode () function.

svn path=/trunk/mono/; revision=126403
2009-02-10 01:00:15 +00:00
Geoff Norton fa16ff4274 2009-02-09 Geoff Norton <[email protected]>
* mini-s390.c: Fix the signature of emit_sig_cookie.

svn path=/trunk/mono/; revision=126400
2009-02-10 00:22:32 +00:00
Zoltan Varga 23bfc03957 Add missing files to the build.
svn path=/trunk/mono/; revision=126399
2009-02-10 00:20:50 +00:00
Zoltan Varga 422f24ef74 2009-02-10 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_get_dwarf_data_align): New helper function.
	(mono_unwind_get_dwarf_pc_reg): Ditto.

	* aot-compiler.c (emit_dwarf_abbrev): Another large reorganization.
	Move almost all platform specific code to a set of arch_ functions, 
	and document them to ease porting.

svn path=/trunk/mono/; revision=126398
2009-02-10 00:20:33 +00:00
Zoltan Varga 60f0ae75c1 2009-02-10 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_xdebug_init): Fix xdebug support.

svn path=/trunk/mono/; revision=126392
2009-02-09 23:07:40 +00:00
Marek Safar eff243253a Enabled full verify for 2.0 profile
svn path=/trunk/mcs/; revision=126391
2009-02-09 23:05:38 +00:00
Marek Safar 693c99aa07 Update.
svn path=/trunk/mcs/; revision=126390
2009-02-09 23:05:03 +00:00
Marek Safar d8c407c0cb 2009-02-09 Marek Safar <[email protected]>
* expression.cs: Initializer of reference argument use temporary
	variable to be verifiable.
	
	* parameter.cs: Share EmitLdArg.


svn path=/trunk/mcs/; revision=126389
2009-02-09 23:04:38 +00:00
Zoltan Varga 91f40d40a9 2009-02-10 Zoltan Varga <[email protected]>
* image-writer.h image-writer.c: New files, extracted from aot-compiler.c.

	* aot-compiler.c: Extract the image writing functionality into a separate
	module to reduce the size of this file.

svn path=/trunk/mono/; revision=126388
2009-02-09 23:02:45 +00:00
Jonathan Pryor a8762cbe8c * Documentation/en/Mono.Unix/UnixGroupInfo.xml: Document semantic
changes to UnixGroupInfo.GetMembers().
	* Mono.Unix/UnixGroupInfo.cs (GetMembers): Skip group members which 
	  aren't valid users on the system (thus removing a possible exception).
	  Patch thanks to Daniel Peñalba.

svn path=/trunk/mcs/; revision=126381
2009-02-09 21:34:01 +00:00
Zoltan Varga 576e0e910c 2009-02-09 Zoltan Varga <[email protected]>
* aot-compiler.c (is_shared_got_patch): Add MONO_PATCH_INFO_IMAGE.

	* aot-runtime.c (is_shared_got_patch): Ditto.

	* aot-runtime.c (load_named_code): Cope with the fact that 
	decode_got_entry () won't decode the patch fully if its corresponding got
	entry is already filled.

svn path=/trunk/mono/; revision=126377
2009-02-09 21:17:46 +00:00
Marek Habersack cb88a46267 2009-02-09 Marek Habersack <[email protected]>
* ObjectDataSourceViewTest.cs: added test for bug #471767

2009-02-09  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs: ExecuteSelect returns a single-item
	array of objects containing the result, if the result isn't one of
	DataSet, DataTable or IEnumerable. Fixes bug #471767

svn path=/trunk/mcs/; revision=126371
2009-02-09 21:08:40 +00:00
Jonathan Pryor 695aa913f3 * Makefile: Don't include mono-ecma-css.js as a resource.
* Monodoc/ecma-provider.cs: Insert helper.js, not mono-ecma-css.js.
	* Monodoc/provider.cs: Surround the contents of `helper.js' with a
	  <script/> block so that valid HTMl is generated.
	* Resources/helper.js: Remove <script/> block, so that `helper.js' is an
	  actual JavaScript file, not an SGML file w/ JavaScript content.
	* Resources/mono-ecma-css.js: Remove; use Resources/helper.js instead.

svn path=/trunk/mcs/; revision=126359
2009-02-09 18:44:57 +00:00
Raja R Harinath 3fc2b36b7b * IUriData.cs, UriData.cs: New. Initial cut at UriParser protocol.
svn path=/trunk/mcs/; revision=126358
2009-02-09 18:13:30 +00:00
Raja R Harinath 6d85a2d5ac Make UriParser available in the NET_1_1 build
* UriParser.cs: Make visible as internal class in the NET_1_1 build.
* UriComponents.cs, UriFormats.cs, DefaultUriParser.cs: Likewise.
* GenericUriParser.cs, GenericUriParserOptions.cs: Likewise.

svn path=/trunk/mcs/; revision=126357
2009-02-09 18:13:02 +00:00
Raja R Harinath 691eaa57f5 update known issues
svn path=/trunk/mcs/; revision=126356
2009-02-09 18:12:34 +00:00
Geoff Norton 8362286edf 2009-02-09 Geoff Norton <[email protected]>
* appdomain.h:
        * security-core-clr.c: Allow enabling core-clr from the embedding
        API.

svn path=/trunk/mono/; revision=126351
2009-02-09 17:28:57 +00:00
Zoltan Varga 0bf993901f 2009-02-09 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_create_monitor_enter_trampoline_full): 
	Initialize *ji.
	(mono_arch_create_monitor_exit_trampoline_full): Ditto.

svn path=/trunk/mono/; revision=126339
2009-02-09 15:54:24 +00:00
Zoltan Varga 56f0113cd0 2009-02-09 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_create_monitor_enter_trampoline_full): Use 'code'
	as the moving pointer instead of 'buf' for consistency with the rest of the
	codebase.
	(mono_arch_create_monitor_exit_trampoline): Ditto.

svn path=/trunk/mono/; revision=126338
2009-02-09 15:50:18 +00:00
Zoltan Varga 8a19652bdf 2009-02-09 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_trampolines): Add throw_pending_exception/
	generic_class_init trampolines.
	(add_generic_class): Extract some code from add_generic_instances () into a
	separate function so it can be called from other places too.
	(compile_method): Call add_generic_class () for the classes of inflated methods
	referenced by the method.
	(can_encode_patch): Allow references to generic parameters.

	* aot-runtime.c: Add support the patches required by the new trampolines.
	
	* exceptions-amd64.c (mono_arch_get_throw_pending_exception_full): Add full-aot
	support.

	* tramp-amd64.c (mono_arch_create_generic_class_init_trampoline_full): Add
	full-aot support.

	* exceptions-amd64.c (mono_arch_get_throw_pending_exception_full): Rename
	this from get_throw_pending_exception, make the signature full aot compatible.

svn path=/trunk/mono/; revision=126337
2009-02-09 15:33:25 +00:00
Marek Safar 2190a2208e New test.
svn path=/trunk/mcs/; revision=126329
2009-02-09 10:38:32 +00:00
Marek Safar b8f7955c05 2009-02-09 Marek Safar <[email protected]>
A fix for bug #473559
	* class.cs: Fixed: Not reporting error about nested class with the
	same name.


svn path=/trunk/mcs/; revision=126328
2009-02-09 10:38:10 +00:00
Atsushi Eno da362d6d88 2009-02-09 Atsushi Enomoto <[email protected]>
* XmlElementTest.cs: SetAttribute(name,value) should identify value
	  change for existing node, from new node insertion.
	  Fixed bug #464394.

	* XmlElementTests.cs : added test for bug #464394.



svn path=/trunk/mcs/; revision=126323
2009-02-09 09:31:23 +00:00
Zoltan Varga 600e528b81 2009-02-09 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_get_throw_pending_exception_full): Rename
	this from get_throw_pending_exception, make the signature full aot compatible.

svn path=/trunk/mono/; revision=126301
2009-02-09 01:08:13 +00:00
Zoltan Varga f20eabe2bc 2009-02-09 Zoltan Varga <[email protected]>
* Makefile.am (fullaotcheck): New target to run full-aot tests.

svn path=/trunk/mono/; revision=126300
2009-02-09 00:46:03 +00:00
Zoltan Varga 41b3e459f1 2009-02-09 Zoltan Varga <[email protected]>
* method-to-ir.c (inline_method): Save/Restore cfg->ret_var_set too.

	* exceptions.cs: Add a test.

svn path=/trunk/mono/; revision=126299
2009-02-09 00:37:01 +00:00
Gonzalo Paniagua Javier 4771a3f360 2009-02-08 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: lock SetResponseError.


svn path=/trunk/mcs/; revision=126292
2009-02-08 23:11:03 +00:00
Zoltan Varga aad587a96c 2009-02-09 Zoltan Varga <[email protected]>
* wait.c (WaitForMultipleObjectsEx): Initialize poll variable.

svn path=/trunk/mono/; revision=126290
2009-02-08 23:06:45 +00:00
Gonzalo Paniagua Javier 9381095cab 2009-02-08 Gonzalo Paniagua Javier <[email protected]>
* HttpClientTransportSink.cs: if we get an WebException that does not
	have a response, dispatch it to the sink.



svn path=/trunk/mcs/; revision=126288
2009-02-08 22:51:30 +00:00
Gert Driesen 7cbe766dac * DnsTest.cs: Use Assert syntax, and spaces to tabs. Added tests
for argument checks.
* Dns.cs: BeginGetHostAddresses - renamed argument to match MS,
reject "any" IP addresses. BeginGetHostEntry - renamed argument
to match MS, reject "any" IP addresses. GetHostEntry - reject
"any" IP addresses. GetHostAddresses - reject "any" IP addresses.
GetHostByName - use "hostName" as paramname in ANE.

svn path=/trunk/mcs/; revision=126281
2009-02-08 19:43:44 +00:00
Gert Driesen 74635036de * Uri.cs: Moved UriKind check from TryCreate to exception-less .ctor,
and check accessibility of this .ctor from internal to private.
* UriTest3.cs: Added and improved tests for TryCreate. Added few
asserts for IsWellFormedUriString. Added .ctor tests.

svn path=/trunk/mcs/; revision=126272
2009-02-08 18:05:07 +00:00
Marek Safar 6d31d60020 Optmize modifiers setting
svn path=/trunk/mcs/; revision=126271
2009-02-08 17:39:21 +00:00
Gert Driesen 55e84a759f * HttpWebRequestTest.cs: Added Not-Modified-Since test. Updated
bug numbers.

svn path=/trunk/mcs/; revision=126263
2009-02-08 10:33:09 +00:00
Ivan Zlatev a0501a8280 2009-02-07 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: End or if end fails then cancel the current edit
	operation before clearing the data source.

svn path=/trunk/mcs/; revision=126213
2009-02-07 23:24:56 +00:00
Ivan Zlatev 0cd10e65b1 2009-02-07 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Data-bind only after the handle is created.
	[Fixes bug #473680]

svn path=/trunk/mcs/; revision=126212
2009-02-07 23:24:51 +00:00
Gonzalo Paniagua Javier 75e4abc500 2009-02-07 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: when requesting all the local ips, if there are no
	interfaces up and running, MS returns 127.0.0.1.


svn path=/trunk/mono/; revision=126203
2009-02-07 19:57:18 +00:00
Zoltan Varga 14c7f52bde 2009-02-07 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_frame): Eliminate the data_align_factor argument,
	use the DWARF_DATA_ALIGN constant instead.

svn path=/trunk/mono/; revision=126199
2009-02-07 19:09:44 +00:00
Zoltan Varga 7c5cf55458 2009-02-07 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_frame): Eliminate the data_align_factor argument,
	use the DWARF_DATA_ALIGN constant instead.

	* exception-<ARCH>.c: Update after the above change.

svn path=/trunk/mono/; revision=126195
2009-02-07 18:59:29 +00:00
Zoltan Varga 636cc32079 2009-02-07 Zoltan Varga <[email protected]>
* exceptions-arm.c (mono_arch_find_jit_info): Transition this to use the
	dwarf unwinder.

	* mini-arm.c: Enable the dwarf unwinder.

svn path=/trunk/mono/; revision=126193
2009-02-07 18:56:37 +00:00
Gonzalo Paniagua Javier 02fb8bcd9a 2009-02-07 Gonzalo Paniagua Javier <[email protected]>
* mono-perfcounters-def.h: processor time is an inverse time.
	Fixes bug #468625.


svn path=/trunk/mono/; revision=126192
2009-02-07 18:54:03 +00:00
Zoltan Varga 989cf48516 2009-02-07 Zoltan Varga <[email protected]>
* Makefile: Add Test/resources/Fergie.GED to EXTRA_DIST.

svn path=/trunk/mcs/; revision=126190
2009-02-07 17:43:57 +00:00
Jordi Mas i Hernandez 57594e91ec 2009-02-07 Jordi Mas i Hernandez <[email protected]>
* Mono.Cairo/NativeMethods.cs: class should be internal not public


svn path=/trunk/mcs/; revision=126187
2009-02-07 15:02:50 +00:00
Gonzalo Paniagua Javier 28636c1f1d 2009-02-07 Gonzalo Paniagua Javier <[email protected]>
* configure.in: include stdio so that NULL is defined when checking
	for ifreq.


svn path=/trunk/mono/; revision=126164
2009-02-07 05:25:24 +00:00
Gonzalo Paniagua Javier 74b093ad4b 2009-02-07 Gonzalo Paniagua Javier <[email protected]>
* Dns.cs: empty string for host (also 0.0.0.0) is just passed to the
	runtime, which will then retrieve the local IP addresses. Fixes bug
	#386637 part 2/2.


svn path=/trunk/mcs/; revision=126162
2009-02-07 05:22:30 +00:00
Gonzalo Paniagua Javier e577a48ad0 2009-02-07 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: an empty host name returns the list of local IPs.
	Fixes bug #386637 part 1/2.


svn path=/trunk/mono/; revision=126159
2009-02-07 05:20:52 +00:00
Zoltan Varga 68c63cbd3d 2009-02-07 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_magic_trampoline): Use mono_class_get_vtable_entry ()
	instead of mono_class_setup_vtable ().

svn path=/trunk/mono/; revision=126152
2009-02-07 03:47:43 +00:00
Zoltan Varga 2598b6025e 2009-02-07 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_find_jit_info): Transition this to use the
	dwarf unwinder.

	* mini-x86.h: Enable the dwarf unwinder.

svn path=/trunk/mono/; revision=126151
2009-02-07 03:23:01 +00:00
Zoltan Varga 1ec5bec526 2009-02-07 Zoltan Varga <[email protected]>
* verify.c (mono_class_interface_implements_interface): Call
	mono_class_setup_interfaces ().
	(merge_stacks): Ditto.

svn path=/trunk/mono/; revision=126150
2009-02-07 02:43:48 +00:00
Carlos Alberto Cortez 7f5183067e 2009-02-06 Carlos Alberto Cortez <[email protected]>
* TreeView.cs: When handling the MouseMove event, check if
	focused_node and selected_node fields are null - usually they are non
	null, since we have always a selected node, but canceling selection by
	handling BeforeSelect event leaves the two of them as null.
	Fixes #470451.


svn path=/trunk/mcs/; revision=126139
2009-02-07 00:13:48 +00:00
Gonzalo Paniagua Javier dcd7a434de remove warning
svn path=/trunk/mono/; revision=126137
2009-02-06 23:58:46 +00:00
Gonzalo Paniagua Javier c770834fff test for bug 445326
svn path=/trunk/mcs/; revision=126133
2009-02-06 23:02:58 +00:00
Gonzalo Paniagua Javier ebb8a2fb03 2009-02-06 Gonzalo Paniagua Javier <[email protected]>
* StreamReader.cs: when a LF ends a decoded buffer and is not followed
	by a CR in the next decoded buffer, we didn't flush the string.
	Fixes bug #445326.


svn path=/trunk/mcs/; revision=126131
2009-02-06 23:01:29 +00:00
Zoltan Varga 73b0d01d52 2009-02-06 Zoltan Varga <[email protected]>
* class.c (mono_class_setup_interfaces): New function to lazily initalize
	klass->interfaces.
	(mono_generic_class_get_class): Don't initalize klass->interfaces.
	(mono_generic_class_get_class): Ditto.

svn path=/trunk/mono/; revision=126112
2009-02-06 21:03:50 +00:00
Miguel de Icaza 675bf0012a 2009-02-06 U-QUACK\miguel <miguel@quack>
* icall-defs.h: Include also the Encrypt/Decrypt string methods as
	they live in security.c

	* debug-mono-symfile.c (mono_debug_open_mono_symbols): Integrated
	another bit from Paolo's code.

svn path=/trunk/mono/; revision=126110
2009-02-06 20:49:19 +00:00
Miguel de Icaza 8db3da3e59 Alloca
svn path=/trunk/mono/; revision=126103
2009-02-06 20:23:22 +00:00
Gonzalo Paniagua Javier 6f5b93b2d2 2009-02-06 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: some servers have a comment after the directory
	name. Fixes bugs #471149 and #471216.


svn path=/trunk/mcs/; revision=126101
2009-02-06 20:18:50 +00:00
Gonzalo Paniagua Javier b528a9481f 2009-02-06 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: set the content length to 0 when the
	response is not supposed to have any content.


svn path=/trunk/mcs/; revision=126090
2009-02-06 19:33:19 +00:00
Scott Thomas a8b8e5b253 Contributed under the MIT/X11 license. This patch cleans up some
generic variance code and fixes the variance rules. The spec,
SURPRISE SURPRISE, is totally wrong about variance rules. Luckily,
we figured out how it really ought to be. Also added some new
error tests and three new regular tests which are on the ignore
list for now until VM support lands.


svn path=/trunk/mcs/; revision=126062
2009-02-06 16:20:09 +00:00
Neville Gao 478add0177 Added events to support IScrollProvier accessibility.
svn path=/trunk/mcs/; revision=126060
2009-02-06 16:12:38 +00:00
Jb Evain 1add3300bc 2009-02-06 Jb Evain <[email protected]>
* AssemblyInfo.cs: allow System.Net to see mscorlib's internals,
	as it needs Thread.Interrupt.


svn path=/trunk/mcs/; revision=126058
2009-02-06 16:00:06 +00:00
Zoltan Varga 2db0990ded 2009-02-06 Zoltan Varga <[email protected]>
* object.c (build_imt_slots): Add a small optimization to avoid inflating
	methods which will be discarded by add_imt_builder_entry ().

svn path=/trunk/mono/; revision=126057
2009-02-06 15:57:51 +00:00
Zoltan Varga 164f00b161 2009-02-06 Zoltan Varga <[email protected]>
* marshal.c (get_runtime_invoke_type): Avoid sharing enum types since they
	need to be boxed.

svn path=/trunk/mono/; revision=126054
2009-02-06 15:17:19 +00:00
Marek Habersack 883b592eb0 2009-02-06 Marek Habersack <[email protected]>
* Style.cs: if CssClass is null, return String.Empty. Fixes bug
	#473303
	Added a range check to the BorderStyle property.

2009-02-06  Marek Habersack  <[email protected]>

	* StyleTest.cs: added tests for CssClass and BorderStyle.
	Renamed the Style_CssClass method to Style_RegisteredCssClass.

svn path=/trunk/mcs/; revision=126051
2009-02-06 15:06:18 +00:00
Atsushi Eno fbda9fbe5d 2009-02-06 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : in WriteStartAttribute(), fill namespace in
	  case it is null and the prefix has matching ns. Fixed bug #472634.

	* XmlTextWriterTests.cs : added test for bug #472634.


svn path=/trunk/mcs/; revision=126047
2009-02-06 14:13:28 +00:00
Marek Habersack da4068f8c0 Reverting revision 126037, it's already taken care of in IsViewStateEnabled, thanks Gert for noticing it.
svn path=/trunk/mcs/; revision=126045
2009-02-06 14:08:59 +00:00
Marek Habersack ebe289242c 2009-02-06 Marek Habersack <[email protected]>
* Control.cs: partially restore the ViewStateShouldBeSaved method
	in order to introduce a small optimization - when the control's
	EnableViewState is false, there is no point in checking all the
	child controls.

svn path=/trunk/mcs/; revision=126037
2009-02-06 13:09:25 +00:00
Marek Safar 739e81efea 2009-02-06 Marek Safar <[email protected]>
* delegate.cs: Use cached Invoke method directly.


svn path=/trunk/mcs/; revision=126031
2009-02-06 12:49:11 +00:00
Atsushi Eno b7b875d7be 2009-02-06 Atsushi Enomoto <[email protected]>
* ClientBase.cs : oops, should have tried build with net_2_1_raw.


svn path=/trunk/mcs/; revision=126028
2009-02-06 11:52:22 +00:00
Gert Driesen 215b9c88cf * Control.cs: Make IsViewStateEnabled available on 1.0 profile
and use it to determine if viewstate needs to be saved instead of
the newly introduced ViewStateShouldBeSaved. Remove
ViewStateShouldBeSaved.

svn path=/trunk/mcs/; revision=126025
2009-02-06 11:34:39 +00:00
Marek Safar c33886d65e Update.
svn path=/trunk/mcs/; revision=126022
2009-02-06 11:11:45 +00:00
Marek Safar 601e252b71 2009-02-06 Marek Safar <[email protected]>
* expression.cs: Emit expression tree for hoisted variable access.


svn path=/trunk/mcs/; revision=126021
2009-02-06 11:11:32 +00:00
Atsushi Eno 3c05b810ce 2009-02-06 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, ClientBase.cs :
	  implement remaining ChannelBase members and made some required
	  changes in ClientRuntimeChannel.


svn path=/trunk/mcs/; revision=126017
2009-02-06 10:27:01 +00:00
Raja R Harinath 643c419e5e Fix mcs/tests/test-7.cs
* mini-amd64.c (mono_arch_allocate_vars): Revert change from 2009-02-03.`

svn path=/trunk/mono/; revision=126006
2009-02-06 07:50:39 +00:00
Geoff Norton 24e50293b9 2009-02-05 Geoff Norton <[email protected]>
* WebClient_2_1.cs: Use g_timeout_add instead of g_idle_add here until
        SyncContext is ready, as its less prone to starvation.

svn path=/trunk/mcs/; revision=126003
2009-02-06 07:02:03 +00:00
Miguel de Icaza d0a57d5f91 2009-02-06 Miguel De Icaza <[email protected]>
* Disable parallel marking on OSX as it hangs during collections
	in the bootstrap stage of Mono.

	As we find more platforms that hang, we should disable it there as
	well. 

svn path=/trunk/mono/; revision=126002
2009-02-06 06:26:59 +00:00
Scott Thomas de0624d8b3 Rolling back premature commit.
svn path=/trunk/mono/; revision=125977
2009-02-06 01:03:07 +00:00
Scott Thomas 31f23392e0 Contributed under the MIT/X11 license. This patch completes
runtime support for generic variance.


svn path=/trunk/mono/; revision=125976
2009-02-06 00:52:27 +00:00
Zoltan Varga ea5c82ed02 Put back a '\n'.
svn path=/trunk/mono/; revision=125957
2009-02-05 23:26:36 +00:00
Zoltan Varga 278edde406 2009-02-06 Zoltan Varga <[email protected]>
* mini.c (print_jit_stats): Remove some unused statistics.

svn path=/trunk/mono/; revision=125955
2009-02-05 23:25:12 +00:00
Zoltan Varga 61017b31e0 2009-02-06 Zoltan Varga <[email protected]>
* loader.c: Add a statistics for the size of the memberref signature cache.

svn path=/trunk/mono/; revision=125954
2009-02-05 23:18:25 +00:00
Zoltan Varga 8a764ef32a 2009-02-06 Zoltan Varga <[email protected]>
* loader.c (find_cached_memberref_sig): New helper function.
	(cache_memberref_sig): Ditto.

	* loader.c: Cache the result of parsing memberref signatures, since otherwise
	they will be parsed again for every generic instantiation, leading to unbounded
	memory growth.

svn path=/trunk/mono/; revision=125953
2009-02-05 23:10:40 +00:00
Miguel de Icaza 28ae4d08af Add a new macro
svn path=/trunk/mono/; revision=125952
2009-02-05 23:01:12 +00:00
Marek Habersack b82b595555 2009-02-05 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: implemented a type resolver for
	ResXResourceReader so that it can correctly resolve
	System.Resources types which are normally found in
	System.Windows.Forms but are included by System.Web
	directly. Without the type resolver, code comparing types inside
	ResXResourceReader when file references are used in side the .resx
	file will not work correctly. The reason for that is that .resx
	files will name "System.Resources.ResXFileRef,
	System.Windows.Forms" as the file reference handler, while inside
	System.Web ResXFileRef will be of type
	"System.Resources.ResXFileRef, System.Web". Fixes bug #466059

svn path=/trunk/mcs/; revision=125945
2009-02-05 22:08:33 +00:00
Geoff Norton 7093fa8a83 2009-02-05 Geoff Norton <[email protected]>
* WebClient_2_1.cs: CancelAsync calls Thread.Interrupt so needs to be
        SecuritySafeCritical for now.

svn path=/trunk/mcs/; revision=125938
2009-02-05 21:50:21 +00:00
Zoltan Varga d873f1667a 2009-02-05 Zoltan Varga <[email protected]>
* loader.c (mono_get_method_from_token): Avoid creating class for the generic
	parameters of generic methods.

svn path=/trunk/mono/; revision=125937
2009-02-05 21:44:57 +00:00
Miguel de Icaza 1df1b72f37 2009-02-05 Miguel de Icaza <[email protected]>
* src/gstr.c: Add g_strnfill

	* src/glib.h: Add g_list_previous

svn path=/trunk/mono/; revision=125934
2009-02-05 21:24:41 +00:00
Miguel de Icaza 76bcb8a5e2 Fix make distcheck
svn path=/trunk/mono/; revision=125928
2009-02-05 20:30:21 +00:00
Zoltan Varga e0bc39aa00 2009-02-05 Zoltan Varga <[email protected]>
* class.c (mono_class_inflate_generic_method_full): Set is_mb_open again
	after the original method is copied to the inflated method.
	(mono_class_get_vtable_entry): Handle rgctx invoke wrappers more efficiently.

svn path=/trunk/mono/; revision=125918
2009-02-05 19:29:04 +00:00
Zoltan Varga 350ea97908 2009-02-05 Zoltan Varga <[email protected]>
* class-internals.h (struct _MonoMethodInflated): Move the is_mb_open
	field to MonoMethod since it only consumes 1 bit there, and 4/8 bytes here.

	* class.c metadata.c: Update after the changes above.

svn path=/trunk/mono/; revision=125911
2009-02-05 18:58:34 +00:00
Rodrigo Kumpera 0165474053 2009-02-05 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Simplified error handling and added
	section table validation.

svn path=/trunk/mono/; revision=125909
2009-02-05 18:45:21 +00:00
Rodrigo Kumpera 0b1f888434 2009-02-05 Rodrigo Kumpera <[email protected]>
* section-table-tests.md: New test suite for
	section headers.

	* Makefile: Add new test suite.

svn path=/trunk/mono/; revision=125908
2009-02-05 18:45:20 +00:00
Rodrigo Kumpera 5266969ac3 2009-02-05 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add section-table var.
	Add support for function calls. Added read.uint.
	Added support for complex arithmetic expressions.

svn path=/trunk/mono/; revision=125907
2009-02-05 18:45:19 +00:00
Zoltan Varga e45a42e822 2009-02-05 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_klass_info): Update after MonoClass changes.

svn path=/trunk/mono/; revision=125903
2009-02-05 18:30:41 +00:00
Zoltan Varga 300b7076cf 2009-02-05 Zoltan Varga <[email protected]>
* class-internals.h (MonoClassExt): New structure containing rarely used
	fields of MonoClass.
	(struct _MonoClass): Move rarely used fields to MonoClassExt, accessed
	through a new 'ext' field.

	* class.c (mono_class_alloc_ext): New helper function to allocate 
	class->ext.

	* class.c metadata.c reflection.c: Update after MonoClass structure changes.

svn path=/trunk/mono/; revision=125902
2009-02-05 18:29:33 +00:00
Ivan Zlatev f7dee771d1 2009-02-05 Ivan N. Zlatev <[email protected]>
* DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation:
	   - Use ArrayList.Insert instead of the Item property so that the item
	   is actually inserted and not an existing item replaced.
	   - Call DataGridView.OnRowsAddedInternal and drop internal from
	   OnRowsAdded for binary compitability. This also fixes several
	   redrawing issues.
	[Fixes bug #472968]

svn path=/trunk/mcs/; revision=125900
2009-02-05 18:23:39 +00:00
Andrés G. Aragoneses 3048727d1a * System.Windows.Forms/ToolBarButton.cs: Doh, fire OnUIATextChanged
*after* setting the value.

svn path=/trunk/mcs/; revision=125894
2009-02-05 18:03:59 +00:00
Mark Probst b2f3bee70e 2009-02-05 Mark Probst <[email protected]>
* object.c (mono_object_get_virtual_method): Properly inflate
	generic methods.  Fixes #472692.

2009-02-05  Mark Probst  <[email protected]>

	* jit-icalls.c (mono_helper_compile_generic_method): Don't inflate
	the method we get from mono_object_get_virtual_method() because
	that function does it properly, now.

2009-02-05  Mark Probst  <[email protected]>

	* bug-472692.2.cs: New test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=125887
2009-02-05 17:04:43 +00:00
Marek Habersack f3e28b8c5d Merge branch 'bug468359'
* bug468359:
  2009-02-05  Marek Habersack  <[email protected]>

Conflicts:

	class/System.Web/ChangeLog
	class/System.Web/Makefile

svn path=/trunk/mcs/; revision=125885
2009-02-05 17:01:27 +00:00
Zoltan Varga 80789c9daf 2009-02-05 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_ops_encode): Handle offsets greater than 32 between
	opcodes. Fixes #472775.

svn path=/trunk/mono/; revision=125879
2009-02-05 16:26:51 +00:00
Marek Safar 30794c0348 Enable full verifier
svn path=/trunk/mono/; revision=125872
2009-02-05 15:37:11 +00:00
Marek Safar 25de17d67f Enable full verifier for 1.1
svn path=/trunk/mcs/; revision=125870
2009-02-05 15:30:29 +00:00
Marek Safar 23b5aa7e91 1 test fixed
svn path=/trunk/mcs/; revision=125869
2009-02-05 15:30:13 +00:00
Gert Driesen 81ef506280 * UTF32EncodingTest.cs: Added tests for GetByteCount overloads.
svn path=/trunk/mcs/; revision=125864
2009-02-05 14:56:52 +00:00
Gert Driesen a06084d909 * UTF32Encoding.cs: Added missing argument check in GetByteCount
(char*, int) overload.

svn path=/trunk/mcs/; revision=125863
2009-02-05 14:55:41 +00:00
Marek Habersack 9b9650acd6 2009-02-05 Marek Habersack <[email protected]>
* NunitWebResources/NoDoubleOnInitOnRemoveAdd.aspx,
	NunitWebResources/NoDoubleOnInitOnRemoveAdd.aspx.cs: added

2009-02-05  Marek Habersack  <[email protected]>

	* ControlTest.cs: added test for bug #47130

2009-02-05  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/NoDoubleOnInitOnRemoveAdd.aspx and
	Test/mainsoft/NunitWebResources/NoDoubleOnInitOnRemoveAdd.aspx.cs

svn path=/trunk/mcs/; revision=125860
2009-02-05 13:48:38 +00:00
Marek Habersack f3b110a6d0 2009-02-05 Marek Habersack <[email protected]>
* GenericBuildProvider.cs: added a new virtual method, MapPath,
	which can be overriden by builders which need special handling of
	virtual path mapping.

	* PageBuildProvider.cs: provide implementation of
	GenericBuildProvider.MapPath which takes into account fake virtual
	paths. Fixes bug #463950

svn path=/trunk/mcs/; revision=125857
2009-02-05 13:15:06 +00:00
Gert Driesen 2554a51eb9 * HttpListener2Test.cs: Make tests quiet.
* HttpWebRequestTest.cs: Added test for bug #471782.

svn path=/trunk/mcs/; revision=125852
2009-02-05 12:06:22 +00:00
Rodrigo Kumpera 1f5e6dfd08 2009-02-05 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_create_from_typedef): The CLR supports SystemF
	recursive types such as List<T>:Cons<T,List<T>> so when doing the lookup
	for the parent type, the created type must be ready to be used on a generic
	instantiation.
	We fill this_arg/byval_arg if the parent is a generic instance to make sure
	we won't have duplicated entries in generic_inst_cache.

	Fixes #469553.

svn path=/trunk/mono/; revision=125849
2009-02-05 11:40:50 +00:00
Mark Probst 1b384fc22f 2009-02-05 Mark Probst <[email protected]>
* mini-exceptions.c (ves_icall_get_frame_info): Account for the
	fact that mono_find_jit_info() sometimes returns the context
	corresponding to the jit info in new_ctx.  Fixes #472600.

2009-02-05  Mark Probst  <[email protected]>

	* bug-472600.2.cs: New test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=125839
2009-02-05 10:39:30 +00:00
Miguel de Icaza b36f2aa0dd 2009-02-05 Miguel de Icaza <[email protected]>
* WebConnectionStream.cs: Prevent a nullref here.   This might
	have to be backported to 2.2 and 2.4

svn path=/trunk/mcs/; revision=125823
2009-02-05 06:10:57 +00:00
Miguel de Icaza a87e065bae Add test for bug 471580
svn path=/trunk/mcs/; revision=125822
2009-02-05 05:58:23 +00:00
Miguel de Icaza 41c8c7bcce 2009-02-05 Miguel De Icaza <[email protected]>
* threadpool.c (socket_io_add_poll): Remove the BSD6 define and
	replace with plain BSD per the comments on the bug MONO77637.

2009-02-05  Miguel De Icaza  <[email protected]>

	* sockets.c (_wapi_setsockopt): SO_REUSEPORT is needed also on
	MacOS X.  Fixes bug #471292



svn path=/trunk/mono/; revision=125821
2009-02-05 05:57:54 +00:00
Zoltan Varga 9a5645721d 2009-02-05 Zoltan Varga <[email protected]>
* class.c (mono_class_get_generic_class): New accessor function.
	(mono_class_get_generic_container): Ditto.

svn path=/trunk/mono/; revision=125818
2009-02-05 05:36:42 +00:00
Zoltan Varga 6d3dc7d58a 2009-02-05 Zoltan Varga <[email protected]>
* class-internals.h (struct _MonoClass): Add 'is_generic' and 'is_inflated'
	fields, similar to the ones in MonoMethod.

	* class.c (mono_generic_class_get_class): Set klass->is_inflated.
	(mono_class_create_from_typedef): Set klass->is_generic if needed.

	* reflection.c (mono_reflection_create_generic_class): Set klass->is_generic.

svn path=/trunk/mono/; revision=125816
2009-02-05 05:10:44 +00:00
Zoltan Varga ee9de60753 2009-02-05 Zoltan Varga <[email protected]>
* class-internals.h (struct _MonoClass): Remove enum_basetype, it contains
	the same information as element_class->byval_arg.

	* class.c reflection.c: Remove references to class->byval_arg.

svn path=/trunk/mono/; revision=125813
2009-02-05 04:01:41 +00:00
Miguel de Icaza 44db5c7220 Fix build regression
svn path=/trunk/mono/; revision=125810
2009-02-05 03:36:14 +00:00
Zoltan Varga caf0ecb386 2009-02-05 Zoltan Varga <[email protected]>
* class.c marshal.c: Use mono_class_enum_basetype () instead of accessing 
	klass->enum_basetype directly.

svn path=/trunk/mono/; revision=125809
2009-02-05 03:30:25 +00:00
Zoltan Varga 77f235b1ff 2009-02-05 Zoltan Varga <[email protected]>
* class.c: Use 	mono_class_enum_basetype () instead of accessing 
	klass->enum_basetype directly.

svn path=/trunk/mono/; revision=125807
2009-02-05 02:37:06 +00:00
Zoltan Varga 2e14824e5f 2009-02-05 Zoltan Varga <[email protected]>
* verify.c metadata.c object.c icall.c reflection.c: Use 
	mono_class_enum_basetype () instead of accessing klass->enum_basetype 
	directly.

svn path=/trunk/mono/; revision=125806
2009-02-05 02:25:00 +00:00
Zoltan Varga 7346fc2c1f 2009-02-05 Zoltan Varga <[email protected]>
* method-to-ir.c mini-hppa.c mini.c trace.c mini-s390x.c aot-compiler.c
	mini-s390.c: Use mono_class_enum_basetype () instead of accessing
	klass->enum_basetype directly.

svn path=/trunk/mono/; revision=125805
2009-02-05 02:23:20 +00:00
Andrés G. Aragoneses 915eb7317e * ToolBarButton.cs: Add another event (OnUIATextChanged).
svn path=/trunk/mcs/; revision=125802
2009-02-05 01:31:32 +00:00
Zoltan Varga 5b2dd50064 2009-02-05 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_class_dwarf_info): Add support for all possible
	enum subtypes.

svn path=/trunk/mono/; revision=125801
2009-02-05 01:15:49 +00:00
Marek Habersack 08c59df0f6 2009-02-05 Marek Habersack <[email protected]>
* Control.cs: if a control has been added to the controls
	collection, removed and added again do not call OnInit (). At the
	same time OnInit() should be called more than once if a control is
	added to a container which, in turn, is then added to another
	control. To achieve that a new state mask flag has been added -
	REMOVED. Fixes bug #471305

svn path=/trunk/mcs/; revision=125798
2009-02-05 00:56:56 +00:00
Gonzalo Paniagua Javier 4b8717c637 new tests for empty string
svn path=/trunk/mcs/; revision=125795
2009-02-05 00:21:52 +00:00
Gonzalo Paniagua Javier 3e80fc7d05 2009-02-04 Gonzalo Paniagua Javier <[email protected]>
* DateTime.cs: check for null and empty strings before anything else
	in CoreParse.


svn path=/trunk/mcs/; revision=125793
2009-02-05 00:19:49 +00:00
Zoltan Varga 003a7a95fa Oops.
svn path=/trunk/mono/; revision=125792
2009-02-05 00:16:14 +00:00
Zoltan Varga 177e0a0a07 Fix another [0] issue.
svn path=/trunk/mono/; revision=125791
2009-02-05 00:15:16 +00:00
Zoltan Varga 368bedf09c 2009-02-05 Zoltan Varga <[email protected]>
* unwind.c: Avoid 0 sized arrays.

svn path=/trunk/mono/; revision=125790
2009-02-05 00:11:32 +00:00
Jonathan Pobst f124ea39ba 2009-02-04 Jonathan Pobst <[email protected]>
* FlowLayout.cs: When laying out ToolStripItems, they should be
	the height of the ToolStrip, not their preferred height.
	[Fixes bug #469196]

svn path=/trunk/mcs/; revision=125770
2009-02-04 22:16:55 +00:00
Miguel de Icaza 04aa4b3d4c This seems like dead code for now
svn path=/trunk/mono/; revision=125764
2009-02-04 22:02:41 +00:00
Miguel de Icaza 806f7105c6 On platforms without SIGUSR1, return -1
svn path=/trunk/mono/; revision=125762
2009-02-04 21:56:45 +00:00
Miguel de Icaza db3591bb93 2009-02-04 Miguel de Icaza <[email protected]>
More patches from Paolo's work, refactored to be integrated into
	trunk:
	
	* icall-def.h: Remove internal calls for sockets when
	DISABLE_SOCKET is defined, file system writing features when the
	OS only support reading and not writing data and Policy support if
	the Policy is disabled.
	
	* image.c (do_mono_image_open): Apply Paolo's patches for using
	mono_file_map_ APIs here.

	* assembly.c: Add support for platforms to avoid prefix
	auto-detection. 



svn path=/trunk/mono/; revision=125757
2009-02-04 21:40:14 +00:00
Miguel de Icaza 3697185e0d This is internal
svn path=/trunk/mcs/; revision=125748
2009-02-04 20:57:32 +00:00
Andrés G. Aragoneses 73dda635ec fix changelog
svn path=/trunk/mcs/; revision=125747
2009-02-04 20:51:01 +00:00
Andrés G. Aragoneses 9f10f97f09 * System.Windows.Forms/ToolBarButton.cs: Fix typo in previous commit
(r125704).

svn path=/trunk/mcs/; revision=125744
2009-02-04 20:43:27 +00:00
Andrew Jorgensen b53094a19f remove genxs2 (no 2.0 profile assembly is built)
svn path=/trunk/mono/; revision=125742
2009-02-04 20:35:58 +00:00
Zoltan Varga f77392683a 2009-02-04 Zoltan Varga <[email protected]>
* Dictionary.cs: Declare the Link struct outside the main class to avoid
	creating a separate inflated instances for each instantiation of Dictionary.

svn path=/trunk/mcs/; revision=125739
2009-02-04 20:24:35 +00:00
Zoltan Varga 2981ab96ba 2009-02-04 Zoltan Varga <[email protected]>
* generic-sharing.c (mono_method_fill_runtime_generic_context): Fix a
	warning.

svn path=/trunk/mono/; revision=125737
2009-02-04 20:04:33 +00:00
Zoltan Varga cef1ed6c00 2009-02-04 Zoltan Varga <[email protected]>
* class.c (mono_class_inflate_generic_class): New helper function.

	* class.c: Use mono_class_inflate_generic_class in a few places. Add
	statistics for inflated methods/classes.

	* loader.c (inflate_generic_header): Use mono_class_inflate_generic_class.

svn path=/trunk/mono/; revision=125730
2009-02-04 19:45:59 +00:00
Zoltan Varga fa4772d921 2009-02-04 Zoltan Varga <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Optimize the case when
	the call is made from Delegate.CreateDelegate () for the invoke method of
	a delegate.

	* loader.c: Add a statistics for the memory occupied by inflated signatures.

	* metadata.c (mono_metadata_signature_size): New helper function.

	* class.c (mono_class_get_method_from_name_flags): Add an optimization for
	generic instances.

svn path=/trunk/mono/; revision=125727
2009-02-04 19:25:03 +00:00
Zoltan Varga 763163013a 2009-02-04 Zoltan Varga <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Optimize the case when
	the call is made from Delegate.CreateDelegate () for the invoke method of
	a delegate.

	* loader.c: Add a statistics for the memory occupied by inflated signatures.

	* metadata.c (mono_metadata_signature_size): New helper function.

	* class.c (mono_class_get_method_from_name_flags): Add an optimization for
	generic instances.

svn path=/trunk/mono/; revision=125726
2009-02-04 19:24:53 +00:00
Zoltan Varga ba87930525 2009-02-04 Zoltan Varga <[email protected]>
* metadata.c (inflated_method_in_image): Avoid calling 
	mono_method_signature () if the method does not already have a signature.

svn path=/trunk/mono/; revision=125724
2009-02-04 19:07:52 +00:00
Raja R Harinath 6a10b998d7 update known issues
svn path=/trunk/mcs/; revision=125722
2009-02-04 18:39:26 +00:00
Raja R Harinath e8cfb491c5 update known issues
svn path=/trunk/mcs/; revision=125721
2009-02-04 18:34:45 +00:00
Andrew Jorgensen 530cf9cee3 Fix bnc#472021
svn path=/trunk/mono/; revision=125709
2009-02-04 17:47:26 +00:00
Andrés G. Aragoneses 5223a10aa7 * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
when a button gets focus, firing the events from the ToolBar. 
r: jpobst

svn path=/trunk/mcs/; revision=125704
2009-02-04 17:11:21 +00:00
Mario Carrion 6b1bb600a5 2009-02-04 Mario Carrion <[email protected]>
* ColumnHeaderTest.cs: Testing ListView.ColumnWidthChanged when
        changing Width (for bug #467086).


svn path=/trunk/mcs/; revision=125703
2009-02-04 17:11:13 +00:00
Mario Carrion 3b86c05ac9 2009-02-04 Mario Carrion <[email protected]>
* ColumnHeader.cs: Raising ListView.ColumnWidthChanged when
        setting Width.
        * ListView.cs: Internal method added: RaiseColumnWidthChanged,
        used by ColumnHeader to raise ColumnWidthChanged. [
        Fixes Bug #467086]


svn path=/trunk/mcs/; revision=125702
2009-02-04 17:10:31 +00:00
Zoltan Varga c5ff3a4880 2009-02-04 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_setup_altstack): Use a more reasonable altstack
	size on systems with 64k pages. Fixes #471389.

svn path=/trunk/mono/; revision=125697
2009-02-04 16:32:07 +00:00
Miguel de Icaza 2337d22bcd Fix windows build
svn path=/trunk/mono/; revision=125690
2009-02-04 14:43:56 +00:00
Marek Safar e1cde561ef Sealed internal comparers.
svn path=/trunk/mcs/; revision=125687
2009-02-04 14:14:19 +00:00
Mark Probst d8c06a5623 2009-02-04 Mark Probst <[email protected]>
Contributed under the terms of the MIT/X11 license by Steven
	Munroe <[email protected]>.

	* mini-ppc.c (mono_arch_output_basic_block): Generate better code
	for LOADI4_MEMBASE.  Use addi instead of addic if it's not
	necessary.

svn path=/trunk/mono/; revision=125679
2009-02-04 13:39:11 +00:00
Mark Probst f4d68215b5 2009-02-04 Mark Probst <[email protected]>
Contributed under the terms of the MIT/X11 license by Steven
	Munroe <[email protected]>.

	* exceptions-ppc.c (mono_arch_get_restore_context): Code size
	comparison fix.

	* tramp-ppc.c (mono_arch_create_generic_class_init_trampoline):
	The trampoline can be longer on PPC64.

svn path=/trunk/mono/; revision=125676
2009-02-04 13:25:48 +00:00
Mark Probst 64e2556130 2009-02-04 Mark Probst <[email protected]>
Contributed under the terms of the MIT/X11 license by Steven
	Munroe <[email protected]>.

	* mini-ppc.c: Compiler warning fixes and trivial code
	simplifications.

svn path=/trunk/mono/; revision=125672
2009-02-04 13:09:29 +00:00
Marek Safar ffa9d10d8a 2009-02-04 Marek Safar <[email protected]>
* namespace.cs: Add better extension class check.


svn path=/trunk/mcs/; revision=125667
2009-02-04 11:36:42 +00:00
Scott Thomas 6ccedd43be Fixed a type (TypeParameter.Variacne).
svn path=/trunk/mcs/; revision=125666
2009-02-04 11:06:48 +00:00
Marek Habersack f10126e819 2009-02-04 Marek Habersack <[email protected]>
* Control.cs: update of the fix for bug #470993 - view state of
	the child controls isn't saved when any of their parents has it
	disabled.

svn path=/trunk/mcs/; revision=125663
2009-02-04 10:44:57 +00:00
Marek Habersack 8bafb10ee1 2009-02-04 Marek Habersack <[email protected]>
* SQLite3.cs, SQLite3_UTF16.cs, SQLiteBase.cs, SQLiteFunction.cs,
	UnsafeNativeMethods.cs: fixes for custom functions and collations
	creation with sqlite3. Fixes bug #470042. Patch from John Millikin
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=125659
2009-02-04 09:03:42 +00:00
Atsushi Eno a66928a950 2009-02-04 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : add async operation support (might
	  be hacky under some condition).


svn path=/trunk/mcs/; revision=125655
2009-02-04 08:11:13 +00:00
Atsushi Eno 55791e96b7 2009-02-04 Atsushi Enomoto <[email protected]>
* BaseMessagesFormatter.cs : do not use non-2.1 CreateInstance().


svn path=/trunk/mcs/; revision=125653
2009-02-04 06:31:05 +00:00
Atsushi Eno 16ac3b3241 2009-02-04 Atsushi Enomoto <[email protected]>
* UTF32Encoding.cs : fixed wrong range in GetByteCount(). Patch by
	  David Michell.


svn path=/trunk/mcs/; revision=125648
2009-02-04 04:23:38 +00:00
Scott Thomas b254c9e9e9 This commit adds generic variance support under the new
"future" langversion. Variance is allowed in interface
and delegate types. Covariant type parameters are denoted
with the "out" keyword like so:

interface IFoo<out T> {
    T Bar { get; }
}

And contravariant type parameters are dentoed with the
"in" keyword, like so:

delegate void Bar<in T> (T input);

Covariant type parameters can only be used as method
return types and type arguments for inherited
interfaces. Contravariant type parameters can only be
used as by-value method parameter types.

Only reference type are variant.

!!!IT SHOULD BE NOTED!!!
That the Mono VM does not yet fully support generic
type variance, so variant code compiled with this
feature will not run on Mono until variance support
is complete. Code compiled with this feature will run
on the .NET 2.0 virtual machine.

This patch is contributed under the MIT/X11 license.


svn path=/trunk/mcs/; revision=125647
2009-02-04 04:22:19 +00:00
Zoltan Varga f908a8a6c3 2009-02-04 Zoltan Varga <[email protected]>
* Regex.cs: Disable the new regex engine for now.

svn path=/trunk/mcs/; revision=125637
2009-02-04 02:18:48 +00:00
Zoltan Varga 4e8d8cd4d9 Fix AOT.
svn path=/trunk/mono/; revision=125634
2009-02-04 01:50:17 +00:00
Gonzalo Paniagua Javier 42bcc2f506 2009-02-03 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs:
	* HttpWebRequest.cs: calling Abort is safe now if the request has been
	read entirely.


svn path=/trunk/mcs/; revision=125633
2009-02-04 01:50:09 +00:00
Zoltan Varga bb565391df 2009-02-04 Zoltan Varga <[email protected]>
* GenericIdentityTest.cs GenericPrincipalTest.cs: Make these tests
	quiet.

svn path=/trunk/mcs/; revision=125632
2009-02-04 01:31:11 +00:00
Zoltan Varga 6c78891fec 2009-02-04 Zoltan Varga <[email protected]>
* SerializationCallbackTest.cs: Make a few tests quiet.

svn path=/trunk/mcs/; revision=125631
2009-02-04 01:24:10 +00:00
Zoltan Varga 511ddcf206 2009-02-04 Zoltan Varga <[email protected]>
* MethodBaseTest.cs: Make a test quiet.

svn path=/trunk/mcs/; revision=125630
2009-02-04 01:23:29 +00:00
Zoltan Varga 9ba35a0f40 2009-02-04 Zoltan Varga <[email protected]>
* TypeBuilderTest.cs: Make this test quiet.

svn path=/trunk/mcs/; revision=125629
2009-02-04 01:22:59 +00:00
Zoltan Varga 323c13b06c 2009-02-04 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Avoid reading cfg->varinfo[..]
	->dreg, that is not the vreg we are looking for.


svn path=/trunk/mono/; revision=125628
2009-02-04 01:08:30 +00:00
Zoltan Varga ae28bd623a 2009-02-04 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_spill_global_vars): Fix problems caused by reading
	ins->dreg which could be a hardware register, not a vreg.

	* aot-compiler.c (emit_method_dwarf_info): Ditto.
	
	* mini.h (MonoCompile): Remove vreg_to_var_num array, it is no longer used.
	(struct MonoMethodVar): Add a vreg field, holding the vreg of variable.

	* mini.c (mono_compile_create_var_for_vreg): Set var->vreg.
	
	* mini-amd64.c (mono_arch_output_basic_block): Avoid reading cfg->varinfo[..]
	->dreg, that is not the vreg we are looking for.

	* mini-amd64.h mini-x86.h: Enable MONO_ARCH_LIVENESS_OPS again.

svn path=/trunk/mono/; revision=125627
2009-02-04 01:07:13 +00:00
Miguel de Icaza 2a2473d23f update copyright notices
svn path=/trunk/mono/; revision=125626
2009-02-04 01:06:30 +00:00
Zoltan Varga 7031e7837c 2009-02-04 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Add support for LIVERANGE_START/
	LIVERANGE_END.

svn path=/trunk/mono/; revision=125625
2009-02-04 01:00:15 +00:00
Zoltan Varga adbda3fc49 Disable HAVE_LIVERANGE_OPS to fix crashes.
svn path=/trunk/mono/; revision=125624
2009-02-04 00:58:22 +00:00
Miguel de Icaza faff363db2 Style police
svn path=/trunk/mono/; revision=125623
2009-02-04 00:54:57 +00:00
Miguel de Icaza 6dced8b868 2009-02-03 Miguel de Icaza <[email protected]>
* mono-dl.c: Add support for registering in-proc addresses as
	libraries that can be P/Invoked.   Used in operating systems that
	lack a dynamic linker. 

svn path=/trunk/mono/; revision=125622
2009-02-04 00:53:31 +00:00
Miguel de Icaza 27ae9063e5 2009-02-03 Miguel de Icaza <[email protected]>
* configure.in (PLATFORM_NO_SYMLINKS): New define that replaces
	PLATFORM_WIN32.

svn path=/trunk/mono/; revision=125621
2009-02-04 00:42:13 +00:00
Zoltan Varga 908b577a1b 2009-02-04 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_spill_global_vars): Add an assert to help track down
	strange crashes.

svn path=/trunk/mono/; revision=125617
2009-02-04 00:15:45 +00:00
Zoltan Varga 54ced47a90 2009-02-03 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_prolog): Emit unwind info.

	* aot-compiler.c (emit_line_number_info): Fix line number emission when
	the line diff is 0.

	* aot-compiler.c: Add xdebug support on x86.

	* unwind.c: Add x86 support.

svn path=/trunk/mono/; revision=125609
2009-02-03 22:45:25 +00:00
Zoltan Varga 7509f947ae 2009-02-03 Zoltan Varga <[email protected]>
* mono-gdb.py: Remove the --64 argument to as, it is not needed.

svn path=/trunk/mono/; revision=125608
2009-02-03 22:15:08 +00:00
Rodrigo Kumpera a136e4ca1a 2009-02-03 Rodrigo Kumpera <[email protected]>
* valid_boxed_vt_compatible_with_sys_vt_or_sys_enum.il:
	Regression test for #469549.

svn path=/trunk/mono/; revision=125604
2009-02-03 21:58:34 +00:00
Rodrigo Kumpera 385bc515ed 2009-02-03 Rodrigo Kumpera <[email protected]>
* verify.c (is_compatible_boxed_valuetype): When checking if the boxed
	valuetype is compatible with target type, check by inheritance as a
	VT is not really compatible with System.ValueType, for example.

	* verify.c (do_invoke_method): Improve error message.

	* verify.c (do_box_value): If boxing a nullable, use the type argument
	on stack instead.

	* verify.c (do_newobj): Improve error message.

	Fixes #469549.

svn path=/trunk/mono/; revision=125603
2009-02-03 21:58:23 +00:00
Zoltan Varga d98fec71b5 2009-02-03 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_exception_debug_info): Control the emission of
	unwind info using a new MONO_ARCH_HAVE_XP_UNWIND define.

	* mini.c (mini_method_compile): Ditto.

svn path=/trunk/mono/; revision=125599
2009-02-03 21:37:17 +00:00
Miguel de Icaza 7af42096f6 Ifdef
svn path=/trunk/mono/; revision=125597
2009-02-03 20:54:29 +00:00
Zoltan Varga 7f8c90da24 2009-02-03 Zoltan Varga <[email protected]>
* 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.

svn path=/trunk/mono/; revision=125594
2009-02-03 20:23:35 +00:00
Zoltan Varga dca5b708a1 2009-02-03 Zoltan Varga <[email protected]>
* gdb-python.diff: Changes against the gdb archer branch at 
	http://sourceware.org/gdb/wiki/PythonGdb to fix some problems/add functionality.

svn path=/trunk/mono/; revision=125593
2009-02-03 20:19:25 +00:00
Geoff Norton 07a7b75118 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

svn path=/trunk/mono/; revision=125591
2009-02-03 20:07:12 +00:00
Ivan Zlatev 5a78a959a5 2009-02-03 Ivan N. Zlatev <[email protected]>
* DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
	code in the row collection code, so that the completion happens before
	the CollectionChanged event, also better encapsulation.
	[Fixes bug #471987]

svn path=/trunk/mcs/; revision=125585
2009-02-03 19:39:22 +00:00
Rodrigo Kumpera e1dff2b677 2009-02-03 Rodrigo Kumpera <[email protected]>
* unverifiable_delegate_with_bad_bound_first_arg_to_static_method.il:
	* mono/tests/verifier/valid_ldfnt_delegates_of_static_methods.il:
	Regression test for #469529.

svn path=/trunk/mono/; revision=125582
2009-02-03 19:30:31 +00:00
Rodrigo Kumpera d1c5860c31 2009-02-03 Rodrigo Kumpera <[email protected]>
* verify.c (mono_delegate_signature_equal): Make it possible to check
	first-arg-bound delegates to static method.

	* verify.c (verify_delegate_compatibility): Correctly verify delegates to
	static methods with the first arg bound.

	Fixes #469529.

svn path=/trunk/mono/; revision=125581
2009-02-03 19:30:21 +00:00
Miguel de Icaza 64ba40a191 Change prototype
svn path=/trunk/mono/; revision=125579
2009-02-03 19:14:59 +00:00
Miguel de Icaza b0a97be780 2009-02-03 Miguel de Icaza <[email protected]>
* mono-filemap.c: Integrate Paolo's mono-filemap code here, split
	some code from mono-mmap. into this file to ease porting.

svn path=/trunk/mono/; revision=125578
2009-02-03 19:14:01 +00:00
Miguel de Icaza 1c2dafec93 Build fix
svn path=/trunk/mono/; revision=125577
2009-02-03 19:05:35 +00:00
Miguel de Icaza 56bd625b5f Use a feature test instead of a platform test
svn path=/trunk/mono/; revision=125576
2009-02-03 19:03:33 +00:00
Miguel de Icaza 140a67c27f Add new feature
svn path=/trunk/mono/; revision=125575
2009-02-03 19:03:12 +00:00
Miguel de Icaza 5e149f9315 2009-02-03 Miguel de Icaza <[email protected]>
* appdomain.c: Add support for DISABLE_SOCKETS and DISABLE_SHADOW_COPY

svn path=/trunk/mono/; revision=125572
2009-02-03 18:52:15 +00:00
Zoltan Varga e698ebe635 2009-02-03 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_allocate_vars): Avoid setting cfg->ret->dreg to
	the variable index.

svn path=/trunk/mono/; revision=125571
2009-02-03 18:43:22 +00:00
Mark Probst 478f9c16bf 2009-02-03 Mark Probst <[email protected]>
* generic-sharing.c: Don't hold domain lock when calling
	instantiate_other_info().  Fixes #471958.

	* domain-internals.h, loader.c: Describe locking policy of domain
	lock vs loader lock.

svn path=/trunk/mono/; revision=125565
2009-02-03 18:16:00 +00:00
Zoltan Varga f153669260 2009-02-03 Zoltan Varga <[email protected]>
* aot-compiler.c: Add emit_push_section ()/emit_pop_section () helper functions
	which mimic .push_section/.pop_section in GAS.

svn path=/trunk/mono/; revision=125563
2009-02-03 18:04:41 +00:00
Zoltan Varga cfc3f20c8a Fix the build.
svn path=/trunk/mono/; revision=125560
2009-02-03 17:52:43 +00:00
Jonathan Pobst 5afc5c9d3a 2009-02-03 Jonathan Pobst <[email protected]>
* libmono.vcproj : Track mini/generic-sharing.cs being renamed
	to mini/mini-generic-sharing.cs.

svn path=/trunk/mono/; revision=125558
2009-02-03 17:51:12 +00:00
Zoltan Varga c86ba07983 2009-02-03 Zoltan Varga <[email protected]>
* aot-compiler.c: Emit precise live range information for variables.

svn path=/trunk/mono/; revision=125544
2009-02-03 16:36:48 +00:00
Zoltan Varga a85c995595 2009-02-03 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Add OP_LIVERANGE_START/END.

	* method-to-ir.c (mono_spill_global_vars): Compute the instructions marking
	the live ranges of variables, and emit OP_LIVERANGE_START/END opcodes for
	them.

	* mini-ops.h: Add OP_LIVERANGE_START/END opcodes to mark
	the live ranges of variables.

	* mini.h (struct MonoMethodVar): Add two fields containing the live range
	of the variable in terms of native offsets.

svn path=/trunk/mono/; revision=125543
2009-02-03 16:34:38 +00:00
Rodrigo Kumpera 75eb35d155 2009-02-03 Rodrigo Kumpera <[email protected]>
* valid_valuetype_boxed_types_are_merge_compatible.il:
	Regression test for #469528.

svn path=/trunk/mono/; revision=125540
2009-02-03 16:07:18 +00:00
Rodrigo Kumpera 8e01633fe7 2009-02-03 Rodrigo Kumpera <[email protected]>
* verify.c: Added stack_slot_full_name to provide decent and more meanfull
	errors.

	* verify.c (is_compatible_boxed_valuetype): Be less restrictive when not
	under strict mode. Any type, when boxed can be seen as a reference type.

	Fixes #469528.

svn path=/trunk/mono/; revision=125539
2009-02-03 16:07:08 +00:00
Rodrigo Kumpera db16cb2e0a 2009-02-03 Rodrigo Kumpera <[email protected]>
* docs/Makefile: Fix install-local and uninstall-local if
	DISABLE_MCS_DOCS is defined.

svn path=/trunk/mcs/; revision=125515
2009-02-03 12:48:01 +00:00
Marek Safar a6a296be2c New test, update.
svn path=/trunk/mcs/; revision=125509
2009-02-03 12:08:17 +00:00
Marek Safar ecd4300cd7 2009-02-03 Marek Safar <[email protected]>
* class.cs, generic.cs: Emit type parameter constraints for nested
	types.


svn path=/trunk/mcs/; revision=125507
2009-02-03 12:07:41 +00:00
Atsushi Eno ac6ebb66e6 2009-02-03 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : a bit more detailed error message.


svn path=/trunk/mcs/; revision=125504
2009-02-03 11:33:13 +00:00
Atsushi Eno 30c2adc592 2009-02-03 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs :
          change async methods signature and dynamic code generation.


svn path=/trunk/mcs/; revision=125502
2009-02-03 11:01:04 +00:00
Gonzalo Paniagua Javier 28da946864 2009-02-03 Gonzalo Paniagua Javier <[email protected]>
* WebProxy.cs: use TryParse when checking for a localhost IP.


svn path=/trunk/mcs/; revision=125499
2009-02-03 10:08:38 +00:00
Rodrigo Kumpera a42a1ee680 2009-02-03 Rodrigo Kumpera <[email protected]>
* arrays.cs: Test for Get/SetValue of array with negate lower bounds.

svn path=/trunk/mono/; revision=125459
2009-02-03 02:53:41 +00:00
Rodrigo Kumpera 0926c4a84a 2009-02-03 Rodrigo Kumpera <[email protected]>
* object.h: The lower bound of an array is a signed integer value.
	Introduce mono_array_lower_bound_t typedef. It should be used instead of
	gint32 as under MONO_BIG_ARRAYS it will be a gint64.

	* icall.c: Cast MonoArrayBounds::length to a signed value so correctly
	calculate the upper bound.

	Fixes #471252.

svn path=/trunk/mono/; revision=125458
2009-02-03 02:53:30 +00:00
Rodrigo Kumpera 6d65a06aea 2008-02-03 Rodrigo Kumpera <[email protected]>
* MonoMethod.cs: Fix the 1.1 build.

2008-02-03  Rodrigo Kumpera  <[email protected]>

	* MethodInfoTest.cs: Fix the 1.1 build.

svn path=/trunk/mcs/; revision=125456
2009-02-03 02:49:28 +00:00
Miguel de Icaza 93abf8f500 2009-02-02 Miguel de Icaza <[email protected]>
From Paolo's work, refactored, cleared up:
	
	* threadpool.c, icall.c: ifdef code that requires a working socket
	stack.

	* metadata.c (mono_metadata_field_info): Do not attempt to return
	a value from a function declared as void.

	* console-io.c: Use MONO_NULL_TTYDRIVER to remove the tty driver
	from the console stack.

	* assembly.c: use strrchr instead of rindex.

	* class.c, object.c, marshal.c, icall.c, reflection.c: include
	alloca.h on systems that have it.

	* environment.c: Avoid code that uses stuff from
	HAVE_SYS_UTSNAME_H
	
	* appdomain.c: Include sys/time.h.

	* console-io.c: include sys/ioctl.h if it is available.



svn path=/trunk/mono/; revision=125449
2009-02-03 00:17:44 +00:00
Mark Probst c0af434338 2009-02-02 Mark Probst <[email protected]>
Contributed under the terms of the MIT/X11 license by Steven
	Munroe <[email protected]>.

	* ppc/ppc-codegen.h: Make operand order and case consistent
	(assembler order) for ppc_load_reg_update, ppc_load_multiple_regs,
	ppc_store_multiple_regs, ppc_lwz, ppc_lhz, ppc_lbz,
	ppc_stw,ppc_sth, ppc_stb, ppc_stwu, ppc_lbzu, ppc_lfdu, ppc_lfsu,
	ppc_lfsux, ppc_lfsx, ppc_lha, ppc_lhau, ppc_lhzu, ppc_lmw,
	ppc_lwzu, ppc_stbu, ppc_stfdu, ppc_stfsu, ppc_sthu, ppc_stmw.  Use
	"i" or "ui" instead of "d" for immediated operands to immediate
	arthimetic and logical instructions in macros ppc_addi, ppc_addis,
	ppc_ori, ppc_addic, ppc_addicd, ppc_andid, ppc_andisd.
	[__mono_ppc64__]: Make operand order and case consistent
	(assembler order) for ppc_load_multiple_regs,
	ppc_store_multiple_regs.  Simplify the DS form and make them
	consistent with D forms for ppc_load_reg, ppc_load_reg_update,
	ppc_store_reg, ppc_store_reg_update. ppc_ld, ppc_lwa, ppc_ldu,
	ppc_std, ppc_stdu.  Define ppc_lwax and ppc_lwaux.

2009-02-02  Mark Probst  <[email protected]>

	Contributed under the terms of the MIT/X11 license by Steven
	Munroe <[email protected]>.

	* exceptions-ppc.c (restore_regs_from_context): Correct operand
	order (offset then base reg) for ppc_load_multiple_regs.
	(emit_save_saved_regs) Correct operand order for
	ppc_store_multiple_regs.
	(mono_arch_get_call_filter): Correct operand order for
	ppc_load_multiple_regs.

	* mini-ppc.c (emit_memcpy): Fix operand order for
	ppc_load_reg_update and ppc_store_reg_update.
	(mono_arch_output_basic_block): Correct operand order for ppc_lha.
	(mono_arch_emit_epilog): Correct operand order for
	ppc_load_multiple_regs.

	* tramp-ppc.c (mono_arch_create_trampoline_code): Correct operand
	order for ppc_store_multiple_regs and ppc_load_multiple_regs.

svn path=/trunk/mono/; revision=125443
2009-02-02 23:32:58 +00:00
Ivan Zlatev f01dd946ff 2009-02-02 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: When editing is finished do not remove the editing
	row, because it has already become a real one. Instead add a new one.
	[Fixes bug #471754]

svn path=/trunk/mcs/; revision=125440
2009-02-02 23:31:14 +00:00
Zoltan Varga 0390fe1c0c 2009-02-03 Zoltan Varga <[email protected]>
* method-builder.h (_MonoMethodBuilder): Add a 'skip_visibility' flag.

	* method-builder.c (mono_mb_create_method): Set method->skip_visibility from
	the method builder.

	* marshal.c: Set mb->skip_visibility instead of setting it on the method
	after it was created and cached, as the later is not thread safe.

svn path=/trunk/mono/; revision=125436
2009-02-02 23:11:28 +00:00
Zoltan Varga a1a1c134cd 2009-02-03 Zoltan Varga <[email protected]>
* method-builder.h (_MonoMethodBuilder): Add a 'skip_visibility' flag.

	* method-builder.c (mono_mb_create_method): Set method->skip_visibility from
	the method builder.

	* marshal.c: Set mb->skip_visibility instead of setting it on the method
	after it was created and cached, as the later is not thread safe.

svn path=/trunk/mono/; revision=125435
2009-02-02 23:07:13 +00:00
Mark Probst 41f9063d07 2009-02-02 Mark Probst <[email protected]>
* cpu-ppc64.md: Fixed storer4_memindex length.

svn path=/trunk/mono/; revision=125430
2009-02-02 22:44:13 +00:00
Rodrigo Kumpera 3e67cda6e2 2008-02-02 Rodrigo Kumpera <[email protected]>
* MethodInfoTest.cs: Test for non primitive structs.

svn path=/trunk/mcs/; revision=125416
2009-02-02 21:56:39 +00:00
Rodrigo Kumpera f3ac092a88 2008-02-02 Rodrigo Kumpera <[email protected]>
* MonoMethod.cs (ToString): Fix the representation of non primitive structs.

svn path=/trunk/mcs/; revision=125415
2009-02-02 21:56:37 +00:00
Zoltan Varga ab73db41f6 2009-02-02 Zoltan Varga <[email protected]>
* mono-debug.c (mono_debug_print_stack_frame): Avoid crashes when this is
	called while the debugging module is not initialized. Fixes #471669.

svn path=/trunk/mono/; revision=125413
2009-02-02 21:30:26 +00:00
Rodrigo Kumpera 9835f559cc 2008-02-02 Rodrigo Kumpera <[email protected]>
* MethodInfoTest.cs: Test for #409583.

svn path=/trunk/mcs/; revision=125410
2009-02-02 21:02:39 +00:00
Rodrigo Kumpera 1f7742aa52 2008-02-02 Rodrigo Kumpera <[email protected]>
* MonoMethod.cs (ToString): Fix representation of pointer types.

	Fixes #409583.

svn path=/trunk/mcs/; revision=125409
2009-02-02 21:02:36 +00:00
Rodrigo Kumpera 6f9ecc364d 2009-02-02 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Add a test for #471255.

svn path=/trunk/mcs/; revision=125403
2009-02-02 20:29:16 +00:00
Rodrigo Kumpera 69701dc97b 2009-02-02 Rodrigo Kumpera <[email protected]>
* icall.c (type_from_name): Ignore reflection frames to find out the real caller.

	Fixes #471255.

svn path=/trunk/mono/; revision=125402
2009-02-02 20:25:42 +00:00
Mark Probst 4bffd5a4ee 2009-02-02 Mark Probst <[email protected]>
* generic-sharing.c (lookup_or_register_other_info): Make sure the
	loader lock is not taken while the templates lock is held.  Fixes
	#471089.

svn path=/trunk/mono/; revision=125388
2009-02-02 18:26:21 +00:00
Zoltan Varga aa55e657b5 2009-02-02 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_line_number_info): Optimize the size of the emitted
	line number info.

svn path=/trunk/mono/; revision=125385
2009-02-02 17:40:17 +00:00
Rodrigo Kumpera bd6f70058e 2009-02-02 Rodrigo Kumpera <[email protected]>
* configure.in: Add --with-mcs-docs to make it possible to disable building of documentation under mcs.

svn path=/trunk/mono/; revision=125382
2009-02-02 17:24:29 +00:00
Rodrigo Kumpera 0a0a41a759 2009-02-02 Rodrigo Kumpera <[email protected]>
* docs/Makefile: Don't build build-documentation if DISABLE_MCS_DOCS
	is defined.

svn path=/trunk/mcs/; revision=125381
2009-02-02 17:19:47 +00:00
Rodrigo Kumpera 6969398a40 2009-01-31 Rodrigo Kumpera <[email protected]>
* docs/Makefile: use -f with rm on the clean target so
	rm doesn't complain about missing files.

svn path=/trunk/mcs/; revision=125380
2009-02-02 17:19:46 +00:00
Carlos Alberto Cortez 5a1b57a51a 2009-02-02 Carlos Alberto Cortez <[email protected]>
* TreeView.cs: When drawing the node's image, check that the index
	specified by the node is valid for the ImageList.
	Fixes #471094.


svn path=/trunk/mcs/; revision=125379
2009-02-02 17:13:44 +00:00
Zoltan Varga 3300873961 2009-02-02 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_line_number_info): Optimize this.

svn path=/trunk/mono/; revision=125375
2009-02-02 16:59:18 +00:00
Mark Probst dbd366752e 2009-02-02 Mark Probst <[email protected]>
* metadata.c (type_in_image): Added a check to fix a monodis
	crash.

svn path=/trunk/mono/; revision=125371
2009-02-02 16:42:37 +00:00
Jb Evain 4269288574 2009-02-02 Jb Evain <[email protected]>
* Mono.Cecil.Mdb/MdbWriter.cs: add a GetDebugHeader method
		that will be used by the image writer.


svn path=/trunk/mcs/; revision=125364
2009-02-02 16:17:32 +00:00
Andrés G. Aragoneses 3a36287189 2009-02-02 Andrés G. Aragoneses <[email protected]>
* ToolBar.cs: Add new UIAPerformClick method to be called by   
        UIAutomationWinforms when someone calls Invoke() on the    
        ToolBarButtonProvider. r: jpobst


svn path=/trunk/mcs/; revision=125354
2009-02-02 15:28:01 +00:00
Zoltan Varga 7461e395f7 2009-02-02 Zoltan Varga <[email protected]>
* generics-invoke-byref.2.cs: Add a test for #471259.

svn path=/trunk/mono/; revision=125352
2009-02-02 15:04:25 +00:00
Zoltan Varga 68f35f6825 2009-02-02 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Add support for byref
	nullable arguments.

	* object.c (mono_runtime_invoke_array): Ditto.

svn path=/trunk/mono/; revision=125351
2009-02-02 15:01:55 +00:00
Zoltan Varga 9cbd58a53a 2009-02-02 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_free_dynamic_wrappers): New function for
	freeing wrappers of dynamic methods.

	* loader.c (mono_free_method): Call it. Fixes #463323.

svn path=/trunk/mono/; revision=125349
2009-02-02 14:28:41 +00:00
Zoltan Varga 7921c28dc5 2009-02-02 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Disable sharing for
	methods taking vtype/byref arguments, to fix yet another bug caused by
	the sharing of runtime invoke wrappers. Partly fixes #471259.

svn path=/trunk/mono/; revision=125348
2009-02-02 14:11:35 +00:00
Atsushi Eno 78c9e57f94 2009-02-02 Atsushi Enomoto <[email protected]>
* JsonReader.cs : show invalid input character in the error
          message.


svn path=/trunk/mcs/; revision=125341
2009-02-02 12:38:03 +00:00
Atsushi Eno 9359270470 2009-02-02 Atsushi Enomoto <[email protected]>
* TypeMap.cs : in 2.1 do not use non-2.1 CreateInstance().


svn path=/trunk/mcs/; revision=125338
2009-02-02 11:35:56 +00:00
Marek Safar 1b36d500bb New test.
svn path=/trunk/mcs/; revision=125337
2009-02-02 11:33:39 +00:00
Marek Safar 9e4593ca6c New test.
svn path=/trunk/mcs/; revision=125336
2009-02-02 11:33:28 +00:00
Marek Safar 3604aa25a6 2009-02-02 Marek Safar <[email protected]>
A fix for bug #471213
	* class.cs: Avoid emitting backing field for abstract event fields.


svn path=/trunk/mcs/; revision=125334
2009-02-02 11:32:43 +00:00
Veerapuram Varadhan fd5ac5b3ed TDS 8 changes
svn path=/trunk/mcs/; revision=125333
2009-02-02 11:05:18 +00:00
Atsushi Eno 276f8e262c 2009-02-02 Atsushi Enomoto <[email protected]>
* TypeMap.cs : allow get-only collections. Note that they are not
	  always deserializable (in .NET either).

	* DataContractJsonSerializerTest.cs : fixed some tests to match
	  .NET RTM behavior. Added read-only collection case, (but [Ignore]d).


svn path=/trunk/mcs/; revision=125332
2009-02-02 10:50:33 +00:00
Atsushi Eno 70db8e61e3 2009-02-02 Atsushi Enomoto <[email protected]>
* TypeMap.cs : DataContractJsonSerializer in RTM does not seem to
	  reject contract-less types. So populate map for public members.
	* DataContractJsonSerializer.cs : close XmlWriter to flush stream
	  (and it closes the stream by default).

	* DataContractJsonSerializerTest.cs : added test for contract-less
	  serialization.

	* Makefile : add -d:NET_3_5.


svn path=/trunk/mcs/; revision=125328
2009-02-02 09:38:03 +00:00
Carlos Alberto Cortez b00242636b 2009-02-02 Carlos Alberto Cortez <[email protected]>
* FormEventTest.cs: New test for VisibleChanged event (and children
	controls as well).


svn path=/trunk/mcs/; revision=125326
2009-02-02 09:30:48 +00:00
Carlos Alberto Cortez 8c5edee465 2009-02-02 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
	MapNotify/UnmapNotify events - we are already firing those events in
	the proper places, so we avoid this way to send the same message two
	times. I'm leaving the handling code in case we could break something
	in the future, as this change seems dangerous (but needed).
	Fixes #467546.


svn path=/trunk/mcs/; revision=125325
2009-02-02 09:28:08 +00:00
Veerapuram Varadhan b814b2bb89 TDS 8 Changes
svn path=/trunk/mcs/; revision=125324
2009-02-02 09:26:36 +00:00
Veerapuram Varadhan 15c2751851 TDS 8 changes
svn path=/trunk/mcs/; revision=125323
2009-02-02 09:24:39 +00:00
Veerapuram Varadhan 029b857515 TDS 8 changes
svn path=/trunk/mcs/; revision=125322
2009-02-02 09:23:17 +00:00
Veerapuram Varadhan e62e0f62e5 TDS 8 changes
svn path=/trunk/mcs/; revision=125321
2009-02-02 09:13:24 +00:00
Veerapuram Varadhan 80a0c5acd1 TDS 8 changes
svn path=/trunk/mcs/; revision=125320
2009-02-02 09:10:15 +00:00
Raja R Harinath 694995a34a Fix #463999
* CommittableTransaction.cs (CommitCallback): Handle the case
where the callback is invoked before BeginCommit ends due to the
async call ending synchronously.

svn path=/trunk/mcs/; revision=125314
2009-02-02 06:41:28 +00:00
Andreia Gaita 523919603d 2009-02-02 Andreia Gaita <[email protected]>
* JsonSerializationReader.cs : Use 2.1 "approved" calls for Enum.Parse
    and Convert.ChangeType

svn path=/trunk/mcs/; revision=125298
2009-02-02 02:52:45 +00:00
Ankit Jain 72d15d28a8 * Microsoft.CSharp.targets: Add targets to generate resource ids.
* Microsoft.Common.targets: Add targets for generating resources,
generate and deploy satellite assemblies, resolve project and assembly
references. All intermediate build output goes into a 'obj/' dir by
default. 'Clean' target enabled.

svn path=/trunk/mcs/; revision=125293
2009-02-02 00:01:53 +00:00
Ankit Jain 85358e0f1a * MSBuild.cs (Execute): Disable incorrect 'rebaseOutputs' behavior.
svn path=/trunk/mcs/; revision=125292
2009-02-02 00:01:47 +00:00
Ankit Jain ede2902c8f * ResolveAssemblyReference.cs: Honor SearchPaths and the special
items like '{HintPathFromItem}', '{TargetFrameworkDirectory}' etc.
* AssemblyResolver.cs: Add api for more specific search, like search
in a directory, target frameworks, gac etc.

svn path=/trunk/mcs/; revision=125291
2009-02-02 00:01:25 +00:00
Ivan Zlatev 35d653000b 2009-02-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Complete incomplete rows when they are added to
	the grid.
	[Fixes bug #471068]

svn path=/trunk/mcs/; revision=125277
2009-02-01 19:58:57 +00:00
Zoltan Varga 380ccfbee5 2009-02-01 Zoltan Varga <[email protected]>
* aot-compiler.c: Disassemble tokens in the IL disassembly.

svn path=/trunk/mono/; revision=125276
2009-02-01 19:46:51 +00:00
Zoltan Varga db1afe62e0 2009-02-01 Zoltan Varga <[email protected]>
* aot-compiler.c: Add debug info for methods without debug info by
	emitting an IL file and having the line number info referencing that file.

svn path=/trunk/mono/; revision=125273
2009-02-01 19:13:54 +00:00
Ivan Zlatev 498d1353a1 2009-02-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the
	binding is cleared prior to setting it to null. Fixes a regression
	causing exceptions when the DataSource is set to null and then set
	again to a data source.

svn path=/trunk/mcs/; revision=125271
2009-02-01 18:32:16 +00:00
Marek Safar 533141883f New test.
svn path=/trunk/mcs/; revision=125269
2009-02-01 18:23:32 +00:00
Marek Safar 0c6cb13461 2009-02-01 Marek Safar <[email protected]>
A fix for bug #359731
	* cs-tokenizer.cs, cs-parser.jay: Correctly parse nested query
	expressions.


svn path=/trunk/mcs/; revision=125268
2009-02-01 18:23:13 +00:00
Zoltan Varga fbad416cd4 2009-02-01 Zoltan Varga <[email protected]>
* aot-compiler.c: Optimize the size of the generated line number info.

svn path=/trunk/mono/; revision=125264
2009-02-01 17:06:55 +00:00
Zoltan Varga e19e0ebe7d 2009-02-01 Zoltan Varga <[email protected]>
* debug-mono-symfile.c (check_line): Return NULL instead of returning
	<first file in file table>:1 when the IL offset does not have an associated
	line number.

svn path=/trunk/mono/; revision=125261
2009-02-01 16:32:20 +00:00
Ivan Zlatev 989a198189 2009-02-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs:
	   - Make Image/Bitmap cells work.
	   - Handle images with size greater than the cell.
	   - Default to MiddleCenter alignment for image cells.
	[Fixes bug #471101]

svn path=/trunk/mcs/; revision=125258
2009-02-01 16:30:17 +00:00
Zoltan Varga 4c73d200ba 2009-02-01 Zoltan Varga <[email protected]>
* aot-compiler.c: Emit line number info in xdebug mode.

svn path=/trunk/mono/; revision=125255
2009-02-01 14:05:35 +00:00
Zoltan Varga c1e523b76e 2009-02-01 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Receive a MonoCompile instead of a
	million arguments.

svn path=/trunk/mono/; revision=125235
2009-02-01 01:47:31 +00:00
Ankit Jain df380b7d57 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* BuildEngine.cs (BuildProjectFile): Use
	BuildSettings.DoNotResetPreviouslyBuiltTargets for building projects.
	* Engine.cs (BuiltTargetsOutputByName): New. Table of targets already
	built. Move logging of project start/finish to ..
	* Project.cs: .. here. Build a target only if hasn't been built already.
	Keep track of target outputs, and return those even if an already built
	target has been invoked again.
	Honor BuildSettings.None and DoNotResetPreviouslyBuiltTargets .

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* ProjectTest.cs (TestBuild[23]): Check number of task started/finished
	events.
	(TestResetBuildStat): Remove "NotWorking".
	(TestBuild4): Likewise. Check number of task started/finished events.

	* TargetTest.cs (TestTargetOutputs1): New.

svn path=/trunk/mcs/; revision=125234
2009-02-01 00:30:54 +00:00
Ankit Jain df9efc88a6 * CallTarget.cs: Copy all items from target to TargetOutputs.
svn path=/trunk/mcs/; revision=125233
2009-02-01 00:30:48 +00:00
Ankit Jain 4af5d60b67 * Csc.cs (AddResponseFileCommands):
* ManagedCompiler.cs (AddResponseFileCommands): 'AddModules' and
'AdditionalLibPaths' can be empty.

svn path=/trunk/mcs/; revision=125232
2009-02-01 00:30:40 +00:00
Zoltan Varga e3f9dfb88d 2009-01-31 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_dwarf_info): Emit names for local variables.

	* driver.c (mono_main): Enable debugging support automatically if XDEBUG
	is used.

svn path=/trunk/mono/; revision=125231
2009-01-31 22:54:11 +00:00
Zoltan Varga 7772517d1b 2009-01-31 Zoltan Varga <[email protected]>
* mono-debug.c (mono_debug_lookup_locals): New function to return local
	variable info for a method.

	* debug-mono-symfile.c (mono_debug_symfile_lookup_locals): Ditto.

svn path=/trunk/mono/; revision=125230
2009-01-31 22:52:39 +00:00
Miguel de Icaza e26a5f60d7 Add OpenBSD support
svn path=/trunk/mono/; revision=125218
2009-01-31 15:55:46 +00:00
Miguel de Icaza d6a3da64f9 Build fixes for OpenBSD
svn path=/trunk/mono/; revision=125217
2009-01-31 15:52:00 +00:00
Miguel de Icaza f3cfdb43db Add support for OpenBSD
svn path=/trunk/mono/; revision=125216
2009-01-31 15:29:33 +00:00
Rodrigo Kumpera 82a90c9311 2009-01-31 Rodrigo Kumpera <[email protected]>
* basic-calls.cs: Test for the weird crash found on arm.

svn path=/trunk/mono/; revision=125206
2009-01-31 03:51:45 +00:00
Rodrigo Kumpera 88ca29f715 2009-01-31 Rodrigo Kumpera <[email protected]>
* cpu-arm.md: Increase the size of storer8_membase_reg and
	loadr8_membase_reg to 24 bytes to accomodate the extra add.

	* mini-arm.c (mono_arch_output_basic_block): Under FPA, when emitting
	OP_STORER8_MEMBASE_REG and OP_LOADR8_MEMBASE_REG, add the original
	reg to LR otherwise we'll be loading/storing from just the offset.

svn path=/trunk/mono/; revision=125205
2009-01-31 03:51:38 +00:00
Miguel de Icaza 63b95da542 Indent all continuation lines
svn path=/trunk/mono/; revision=125186
2009-01-31 00:32:23 +00:00
Miguel de Icaza 94268fc4b8 2009-01-30 Miguel de Icaza <[email protected]>
Question: if we are storing gint32's inside the "*native_offset",
	should we change the signature to "gint32 *native_offset" to
	ensure that we do not have type definition problems?
	
	* mini-exceptions.c (ves_icall_get_frame_info): Cast the gint32 to
	an int * as this is what the other function expects, causes
	problems with Freescale's compiler that defined int32_t to be a
	long and makes int incompatible 

svn path=/trunk/mono/; revision=125175
2009-01-30 23:35:10 +00:00
Miguel de Icaza de8accac94 2009-01-30 Miguel de Icaza <[email protected]>
* Rename generic-sharing.c to mini-generic-sharing.c to avoid the
	filename conflict with bjam.

svn path=/trunk/mono/; revision=125174
2009-01-30 23:34:15 +00:00
Jb Evain 4ada7de54a update backlinq tests
svn path=/trunk/mcs/; revision=125173
2009-01-30 23:08:18 +00:00
Rodrigo Kumpera d67ad1698b 2009-01-30 Rodrigo Kumpera <[email protected]>
* cpu-arm.md: Increase the size of storer8_membase_reg to 20 bytes
	as it might use decomposed ops.

svn path=/trunk/mono/; revision=125172
2009-01-30 23:04:33 +00:00
Andreia Gaita 1899bad880 2009-01-30 Andreia Gaita <[email protected]>
* SynchronizationContext.cs: Remove moonlight hacks, dispatcher should
	be able to handle this now.

svn path=/trunk/mcs/; revision=125170
2009-01-30 22:52:29 +00:00
Zoltan Varga dd1639bfc6 2009-01-30 Zoltan Varga <[email protected]>
* jit-icalls.c (mono_imul_ovf): Fix one of the literals.

	* mini.c (mini_init): Emulate mul.ovf opcodes if MONO_ARCH_EMULATE_MUL_OVF
	is defined.

	* mini-arm.h (MONO_ARCH_EMULATE_MUL_OVF): New define.

svn path=/trunk/mono/; revision=125166
2009-01-30 21:58:28 +00:00
Ankit Jain fa15e7d300 In class/Microsoft.Build.Engine:
* Microsoft.Build.Engine_test.dll.sources: Replace BatchingImpl.cs with
	BatchingImplBase.cs, TargetBatchingImpl.cs and TaskBatchingImpl.cs

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

	* BatchingImpl.cs: Split into ..
	* BatchingImplBase.cs: .. this,
	* TaskBatchingImpl.cs: .. this ..
	* TargetBatchingImpl.cs: .. and this. Implement target batching here.

	* Target.cs (DoBuild): Use TargetBatchingImpl for building.
	(Log*): Move to TargetBatchingImpl .
	(BuildTasks): New.
	(Engine): New.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* TaskBatchingTest.cs (*): Add tests for target/task events.
	(TestTargetBatching*): New tests for target batching.
	* TestMessageLogger.cs: Add counts for target/task started/finished
	events.
	(NormalMessageCount): New.

svn path=/trunk/mcs/; revision=125159
2009-01-30 21:28:13 +00:00
Zoltan Varga 7301567879 2009-01-30 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_build_imt_thunk): Rewrite this to allow large vtable
	offsets.

svn path=/trunk/mono/; revision=125155
2009-01-30 21:21:44 +00:00
Jb Evain 6a92e96a89 2009-01-30 Jb Evain <[email protected]>
* pedump.c: reuse code from monodis to make sure pedump honors
	MONO_PATH, which is needed to verify net_2_1 assemblies.


svn path=/trunk/mono/; revision=125124
2009-01-30 18:18:20 +00:00
Zoltan Varga 147a12af5a 2009-01-30 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_context_get_int_reg): Adapt this to the "clever"
	way registers are stored in MonoContext on arm.

svn path=/trunk/mono/; revision=125118
2009-01-30 17:35:19 +00:00
Marek Habersack 98ad9d57a0 2009-01-30 Marek Habersack <[email protected]>
* Control.cs: don't save the control's state if it's
	disabled. Fixes bug #470993

svn path=/trunk/mcs/; revision=125111
2009-01-30 16:52:34 +00:00
Ivan Zlatev 914b84f479 2009-01-30 Ivan N. Zlatev <[email protected]>
* UpDownBase.cs: Force Height to PreferredHeight.
	* NumericUpDownTest.cs: Add a test to check Height == PreferredHeight.

svn path=/trunk/mcs/; revision=125102
2009-01-30 16:10:23 +00:00
Zoltan Varga 5c56485bbb 2009-01-30 Zoltan Varga <[email protected]>
* unwind.c: Rewrite the handling of the cached_info array to use hazard pointers
	instead of locking so mono_get_cached_unwind_info () becomes signal safe.

svn path=/trunk/mono/; revision=125100
2009-01-30 15:40:46 +00:00
Marek Safar 7f930cfc48 New test.
svn path=/trunk/mcs/; revision=125098
2009-01-30 14:54:22 +00:00
Marek Safar 0380211806 2009-01-30 Marek Safar <[email protected]>
A fix for bug #470767
	* statement.cs: Introduced BlockScopeExpression, needed when 
	expression tree conversion has to emit scope variables.


svn path=/trunk/mcs/; revision=125094
2009-01-30 14:41:37 +00:00
Zoltan Varga 3f21f25f92 2009-01-30 Zoltan Varga <[email protected]>
* mini.c (mini_init): Emuate OP_FCONV_TO_I when using soft float.

	* mini-arm.c (emit_load_volatile_arguments): Avoid an unneccesary assert.

svn path=/trunk/mono/; revision=125088
2009-01-30 13:45:39 +00:00
Zoltan Varga 19e3c13220 2009-01-30 Zoltan Varga <[email protected]>
* mini.c (mini_init): Register mono_isfinite.

	* jit-icalls.c (mono_isfinite): New jit icall.

	* method-to-ir.c (mono_decompose_soft_float): Add support for OP_CKFINITE.

svn path=/trunk/mono/; revision=125086
2009-01-30 13:32:51 +00:00
Zoltan Varga e5994d5286 2009-01-30 Zoltan Varga <[email protected]>
* exceptions-arm.c (mono_arch_find_jit_info): When unwinding using the LMF,
	set esp to ARMREG_FP instead of R12, since R12 stores the value of sp for
	the parent frame.

svn path=/trunk/mono/; revision=125081
2009-01-30 13:01:02 +00:00
Rodrigo Kumpera 0f8b0005f5 2009-01-30 Rodrigo Kumpera <[email protected]>
* exceptions-arm.c (mono_arch_find_jit_info): The frame layout on arm have
	separate frame and stack pointers, so we must use FP to find the register
	spill area.
	The FP reg is retrieved from the MonoContext::regs array.

svn path=/trunk/mono/; revision=125079
2009-01-30 12:48:29 +00:00
Rodrigo Kumpera e1334e19e7 2009-01-30 Rodrigo Kumpera <[email protected]>
* mini-arm.c (mono_arch_output_basic_block): Emit two cond ops for OP_FBGE
	as FPA requires it.

svn path=/trunk/mono/; revision=125078
2009-01-30 12:48:22 +00:00
Rodrigo Kumpera 366174fdff 2009-01-30 Rodrigo Kumpera <[email protected]>
* mini-arm.c (mono_arch_emit_setret): Emit OP_FMOVE for methods that
	return R4 and R8 when not running under softfloat.

	Fixes basic-calls.exe

svn path=/trunk/mono/; revision=125077
2009-01-30 12:48:02 +00:00
Ankit Jain 0e7783175b In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* TaskEngine.cs (GetObjectFromString): Empty value is allowed only for
	arrays.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* ProjectTest.cs (TestRequiredTask_*): New.
	(TestBatchedMetadataRef5): New.

In class/Microsoft.Build.Engine/Test/resources:

	* TestTasks.cs (RequiredTestTask): Rename to ..
	(RequiredTestTask_TaskItems): .. this.
	(RequiredTestTask_*): New types.

svn path=/trunk/mcs/; revision=125076
2009-01-30 12:27:45 +00:00
Atsushi Eno 3ef06e62ed 2009-01-30 Atsushi Enomoto <[email protected]>
* UTF8Encoding.cs : surrogate characters are handled in 
	  InternalGetChars() but not in InternalGetCharCount().
	  Fixed bug #415628.

	* UTF8EncodingTest.cs : added test for bug #415628.

	* 415628.bin : new test resource.

	* Makefile: new resource, new EXTRA_DIST mess.


svn path=/trunk/mcs/; revision=125075
2009-01-30 12:13:56 +00:00
Ankit Jain c6411353b7 * Copy.cs (Execute): Use for loop instead of enumerators.
sourceFiles and destinationFiles can be null, handle that.
Create new directory if required.

svn path=/trunk/mcs/; revision=125074
2009-01-30 11:59:45 +00:00
Atsushi Eno 015ecae5f8 2009-01-30 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : when xsi:nil is true, do not validate
	  text string. Fixed bug #469713.

	* XsdValidatingReader.cs : when xsi:nil is true, do not validate
	  text string.

	* XmlSchemaValidatorTests.cs : added test for bug #469713.


svn path=/trunk/mcs/; revision=125069
2009-01-30 11:14:22 +00:00
Atsushi Eno 4c6adc47ba 2009-01-30 Atsushi Enomoto <[email protected]>
* XmlSchemaElement.cs : to reference elementFormDefault, use its
	  ancestor, not the schema island root.


svn path=/trunk/mcs/; revision=125058
2009-01-30 08:13:06 +00:00
Atsushi Eno 0fc59854a9 2009-01-30 Atsushi Enomoto <[email protected]>
* XmlSchemaValidatingReader.cs : implement IHasXmlParserContext to
	  pass possible DTD information.

	* DTDValidatingReader2.cs, EntityResolvingXmlReader.cs : simplify
	  parsercontext provision.
	* XmlValidatingReader.cs : expand parser context provision to
	  non-dtdvalidating readers.


svn path=/trunk/mcs/; revision=125053
2009-01-30 03:17:39 +00:00
Zoltan Varga 9e706351f4 Fix the build
svn path=/trunk/mono/; revision=125039
2009-01-30 01:21:32 +00:00
Zoltan Varga 05ce4dcd87 2009-01-30 Zoltan Varga <[email protected]>
* mini-arm.c: Implement some overflow opcodes.

svn path=/trunk/mono/; revision=125038
2009-01-30 01:17:20 +00:00
Miguel de Icaza df2041cc3b 2009-01-29 Miguel de Icaza <[email protected]>
* ssa.c: handle another alloca.h

	* mini-exceptions.c (mono_handle_native_sigsegv): Do not use
	PLATFORM_WIN32 for detecting if we have sigaction.   Instead use
	MONO_ARCH_USE_SIGACTION. 

svn path=/trunk/mono/; revision=125037
2009-01-30 00:54:07 +00:00
Miguel de Icaza 9e81cf48db 2009-01-29 Miguel de Icaza <[email protected]>
* aot-runtime.c, mini-exceptions.c: Replace platform define with
	capability defines.

svn path=/trunk/mono/; revision=125035
2009-01-30 00:48:17 +00:00
Miguel de Icaza 1377bee644 Need config.h to check for HAVE_ALLOCA_H
svn path=/trunk/mono/; revision=125034
2009-01-30 00:43:24 +00:00
Miguel de Icaza 9a2abfc7d1 2009-01-29 Miguel de Icaza <[email protected]>
* method-to-ir.c (mono_method_to_ir): Type cast fix on some platforms.

	* mini-ppc.h (MONO_ARCH_USE_SIGACTION): Do not define this for all
	PPC targets as sigaction does not exist on all platforms, define
	this on a per-platform basis.

	Instead of erroring out if the platform is not defined, include
	mini-ppc-os.h, and expect that the OS specific setting provides
	the required information.   

svn path=/trunk/mono/; revision=125033
2009-01-30 00:38:55 +00:00
Miguel de Icaza e4016d2383 Tiny fixio
svn path=/trunk/mono/; revision=125032
2009-01-30 00:25:20 +00:00
Zoltan Varga 77805d495e 2009-01-30 Zoltan Varga <[email protected]>
* aot-compiler.c: Fix --enable-minimal=aot.

svn path=/trunk/mono/; revision=125029
2009-01-30 00:15:43 +00:00
Zoltan Varga 3276c5beec 2009-01-30 Zoltan Varga <[email protected]>
* exceptions-arm.c (mono_arch_get_throw_exception_generic): Fix the
	previous change.

svn path=/trunk/mono/; revision=125028
2009-01-30 00:08:58 +00:00
Zoltan Varga 2fd0ba2813 2009-01-29 Zoltan Varga <[email protected]>
* exceptions-arm.c: Fix warnings.

	* tramp-arm.c aot-compiler.c unwind.h unwind.c: Implement xdebug support for
	ARM.

svn path=/trunk/mono/; revision=125019
2009-01-29 22:14:03 +00:00
Zoltan Varga 36b2986ac6 2009-01-29 Zoltan Varga <[email protected]>
* mini-x86.c: Fix --enable-minimal=jit build.

svn path=/trunk/mono/; revision=125015
2009-01-29 21:36:06 +00:00
Zoltan Varga 464f9ab312 Fix another DISABLE_JIT problem.
svn path=/trunk/mono/; revision=125012
2009-01-29 20:55:19 +00:00
Zoltan Varga d362e412fb 2009-01-29 Zoltan Varga <[email protected]>
* configure.in: Remove -Wcast-align from the warning list, it leads to a lot of
	useless warnings which can only be fixed by casting a pointer to (void*).

svn path=/trunk/mono/; revision=125006
2009-01-29 20:37:26 +00:00
Zoltan Varga 0173370e2e 2009-01-29 Zoltan Varga <[email protected]>
* mini.c: Really fix --enable-minimal=jit build.

svn path=/trunk/mono/; revision=125004
2009-01-29 20:32:46 +00:00
Zoltan Varga b8984cd448 2009-01-29 Zoltan Varga <[email protected]>
* mini.c (construct_object_context_for_method): Move this outside
	the DISABLE_JIT block to fix the --enable-minimal=jit build.

svn path=/trunk/mono/; revision=124998
2009-01-29 19:50:08 +00:00
Gert Driesen 78a4d7dc71 * SqlCommandTest.cs: Added test for bug #470579.
svn path=/trunk/mcs/; revision=124992
2009-01-29 19:10:44 +00:00
Zoltan Varga 2e7a2ada56 2009-01-29 Zoltan Varga <[email protected]>
"Backported" of r124984 from 2.0 branch.
	
	* aot-compiler.c aot-runtime.c: Add full-aot support delegate BeginInvoke/EndInvoke.

	"Backport" of r124977 + r124978 from 2.0 branch.
	
	* exceptions-arm.c (mono_arm_throw_exception_by_token): New helper function
	to avoid calling mono_exception_from_token () from the throw trampoline.
	(mono_arch_get_throw_exception_generic): call throw_exception_by_token
	for throwing corlib exceptions, this fixes full-aot support for corlib
	exceptions.

svn path=/trunk/mono/; revision=124988
2009-01-29 18:58:09 +00:00
Gonzalo Paniagua Javier 2b2da9618a fix the 1.x build. Patch from Marek Safar
svn path=/trunk/mcs/; revision=124985
2009-01-29 18:56:42 +00:00
Zoltan Varga 9d40f42e20 2009-01-29 Zoltan Varga <[email protected]>
* aot-compiler.c (compile_method): Make a copy of cfg->locals to fix the build.

svn path=/trunk/mono/; revision=124983
2009-01-29 18:31:08 +00:00
Miguel de Icaza ca96527a9d 2009-01-29 Miguel de Icaza <[email protected]>
* configure.in: Add a couple of new AM conditionals for POSIX and
	DARWIN, these are used to conditionally include some files in
	mono/mini. 

svn path=/trunk/mono/; revision=124974
2009-01-29 18:01:59 +00:00
Miguel de Icaza 4fcd050946 2009-01-29 Miguel de Icaza <[email protected]>
* mini-darwin.c, mini-windows.c, mini-posix.c: Commit the first
	part of the changes to split the code in mini into operating
	system specific files.

	This patch was done by copying mini.c to the respective files to
	preserve SVN history.

svn path=/trunk/mono/; revision=124973
2009-01-29 17:57:40 +00:00
Miguel de Icaza c531eea82f Copy
svn path=/trunk/mono/; revision=124972
2009-01-29 17:53:59 +00:00
Miguel de Icaza 61a9b510e3 Copy
svn path=/trunk/mono/; revision=124971
2009-01-29 17:53:54 +00:00
Miguel de Icaza 5a6f025cc3 Copy
svn path=/trunk/mono/; revision=124970
2009-01-29 17:53:50 +00:00
Gonzalo Paniagua Javier 242c240de3 2009-01-29 Gonzalo Paniagua Javier <[email protected]>
* Tds70.cs: fix for output parameters and '@'.
	Fixes bug #470579. Patch from Varadhan.


svn path=/trunk/mcs/; revision=124963
2009-01-29 17:20:39 +00:00
Gonzalo Paniagua Javier 13fe314440 2009-01-29 Gonzalo Paniagua Javier <[email protected]>
* HttpApplicationFactory.cs: fix check that avoids lock. Keep one
	HttpApplication instance ready to be returned in an instance variable
	to avoid a few locks.


svn path=/trunk/mcs/; revision=124950
2009-01-29 16:42:47 +00:00
Zoltan Varga 95377c166f 2009-01-29 Zoltan Varga <[email protected]>
* shared.c: Fall back to file based shared storage if shm_open () fails
	because /dev/shm is not mounted.

svn path=/trunk/mono/; revision=124929
2009-01-29 15:26:33 +00:00
Zoltan Varga 7e79658a46 2009-01-29 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_dwarf_info): Add minimal support for locals.

svn path=/trunk/mono/; revision=124926
2009-01-29 15:13:47 +00:00
Joseph Hill 018b733a75 Clarified details regarding non-LGPL use to specify both Mono and Moonlight
svn path=/trunk/mono/; revision=124925
2009-01-29 14:51:39 +00:00
Carlos Alberto Cortez 0bd4417532 2009-01-29 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: We should use utf8 handling clipboard transference
	with other x11 applications, and use utf16 when handling clipboard
	data in the class library. Update the related points as well.
	Fixes #468683.


svn path=/trunk/mcs/; revision=124918
2009-01-29 14:06:53 +00:00
Zoltan Varga 390694643e 2009-01-29 Zoltan Varga <[email protected]>
* shared.c: Add an alternative implementation using shared memory instead of
	files. This fixes problems where the mono process would spin up the disk
	every x secs on laptops. Fixes #434566, #415373 and #321949.

svn path=/trunk/mono/; revision=124915
2009-01-29 13:13:10 +00:00
Jb Evain 39c448b2ed fix build
svn path=/trunk/mcs/; revision=124914
2009-01-29 12:52:51 +00:00
Marek Safar ce6f335381 2009-01-29 Marek Safar <[email protected]>
* class.cs: Remove duplicate CallingConvention.

svn path=/trunk/mcs/; revision=124913
2009-01-29 11:39:42 +00:00
Marek Safar 07303ac11c 2009-01-29 Marek Safar <[email protected]>
*.cs: Rename Parameters to ParametersCompiled and ParametersImported
	when I finally found the right naming convention.


svn path=/trunk/mcs/; revision=124911
2009-01-29 11:09:23 +00:00
Marek Safar a189e328c6 2009-01-29 Marek Safar <[email protected]>
* cs-tokenizer.cs: Put back different open parens optimization.


svn path=/trunk/mcs/; revision=124905
2009-01-29 10:46:00 +00:00
Zoltan Varga f8c2495e2b 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.

svn path=/trunk/mono/; revision=124883
2009-01-29 00:00:55 +00:00
Zoltan Varga 574903d96b 2009-01-29 Zoltan Varga <[email protected]>
* mono-debug.c (mono_debug_print_stack_frame): Print the IL offset even when
	there is no line number info.

svn path=/trunk/mono/; revision=124880
2009-01-28 23:42:05 +00:00
Marek Habersack 0ce1a3d997 2009-01-29 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: optimize lock usage

svn path=/trunk/mcs/; revision=124872
2009-01-28 23:28:34 +00:00
Ivan Zlatev 2581739a79 2009-01-28 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: Format strings according to the supplied
	CellStyle.Format.
	[Fixes bug #470384]

svn path=/trunk/mcs/; revision=124871
2009-01-28 23:25:52 +00:00
Bill Holmes 1e7acf65a0 2009-01-28 Bill Holmes <[email protected]>
* Uri.cs (IsWellFormedUriString):  Changing IsWellFormedUriString
	  to not throw an exception but return false instead.

	Contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=124869
2009-01-28 23:22:09 +00:00
Ivan Zlatev ba8c8717be 2009-01-28 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Reset the hover cell if it gets moved due to row(s)
	addition or removal. Fixes multiple crashes in OnMouseMove.

svn path=/trunk/mcs/; revision=124867
2009-01-28 22:47:24 +00:00
Raja R Harinath 2200ce9912 Avoid some MonoType allocations
* reflection.c (mono_reflection_initialize_generic_parameter):
Reuse MonoType from param->pklass rather than allocating one.
(mono_dynamic_image_free): Update to changes.

svn path=/trunk/mono/; revision=124850
2009-01-28 21:05:41 +00:00
Raja R Harinath 2c20f4b34f Rearrange some code to improve consistency
* reflection.c (mono_reflection_setup_generic_class): Move body ...
(mono_reflection_initialize_generic_parameter): ... here.

svn path=/trunk/mono/; revision=124849
2009-01-28 21:05:18 +00:00
Miguel de Icaza 52030ae183 Update
svn path=/trunk/mono/; revision=124848
2009-01-28 21:04:56 +00:00
Ankit Jain 8657a158fb In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* BuildItem.cs (child_items): Change type from BuildItemGroup to
	List<BuildItem>.
	(HasParent): Rename to ..
	(HasParentItem): .. this.
	(ParentItemGroup): Add setter.

	* BuildItemGroup.cs (.ctor): Add overload with @project param.
	(AddNewItem):
	(AddItem): Correctly set the ParentItemGroup for new build items.
	(ParentProject): Add setter.
	* Project.cs: Set the project for new BuildItemGroup instances.
	* TaskEngine.cs (PublishItemGroup): Likewise.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* BuildItemTest.cs (TestBuildItemTransform): New.

In class/Microsoft.Build.Engine/Test/resources:

	* TestTasks.cs (BatchingTestTask.TaskItemsOutput): New.

svn path=/trunk/mcs/; revision=124840
2009-01-28 20:05:01 +00:00
Raja R Harinath 86a2219846 update known issues
svn path=/trunk/mcs/; revision=124837
2009-01-28 19:43:46 +00:00
Jb Evain 913b6ebe3b 2009-01-28 Jb Evain <[email protected]>
* Mono.Tuner/CheckVisibility.cs: use the appropriate Resolve methods.


svn path=/trunk/mcs/; revision=124836
2009-01-28 19:40:38 +00:00
Jb Evain 80676b5c11 small optimization
svn path=/trunk/mcs/; revision=124833
2009-01-28 19:23:24 +00:00
Jb Evain 0fb11ee37e 2009-01-28 Jb Evain <[email protected]>
* AssemblyResolver.cs
	  Util.cs
	  mono-api-info.cs:
		Directly use the Resolve methods from Cecil.

svn path=/trunk/mcs/; revision=124822
2009-01-28 19:06:25 +00:00
Jb Evain f80357b26a 2009-01-28 Jb Evain <[email protected]>
* Mono.Linker/AssemblyResolver.cs
	  Mono.Linker.Steps/MarkStep.cs:
		Directly use the Resolve methods from Cecil.

svn path=/trunk/mcs/; revision=124821
2009-01-28 19:06:14 +00:00
Jb Evain 2015488571 2009-01-28 Jb Evain <[email protected]>
* Mono.Cecil/MetadataResolver.cs:
		Add new MetadataResolver.

	* Mono.Cecil/GenericParameter.cs
	  Mono.Cecil/FieldDefinition.cs
	  Mono.Cecil/TypeReference.cs
	  Mono.Cecil/GenericInstanceMethod.cs
	  Mono.Cecil/IMemberDefinition.cs
	  Mono.Cecil/TypeDefinition.cs
	  Mono.Cecil/PropertyReference.cs
	  Mono.Cecil/EventReference.cs
	  Mono.Cecil/MethodDefinition.cs
	  Mono.Cecil/EventDefinition.cs
	  Mono.Cecil/ModuleDefinition.cs
	  Mono.Cecil/MethodReference.cs
	  Mono.Cecil/FieldReference.cs
	  Mono.Cecil/ParameterDefinition.cs
	  Mono.Cecil/PropertyDefinition.cs
	  Mono.Cecil/ParameterReference.cs
	  Mono.Cecil.Cil/VariableReference.cs
	  Mono.Cecil.Cil/VariableDefinition.cs:
		Add Resolve to Definition methods on References.

	* Mono.Cecil.dll.sources, Mono.Cecil.csproj: add MetadataResolver.cs

svn path=/trunk/mcs/; revision=124820
2009-01-28 19:06:00 +00:00
Zoltan Varga 9eb6e77c2c Fix a warning.
svn path=/trunk/mono/; revision=124799
2009-01-28 16:58:21 +00:00
Jb Evain a497b0e1e7 cosmetic diff
svn path=/trunk/mcs/; revision=124795
2009-01-28 16:41:38 +00:00
Zoltan Varga 4be6524232 2009-01-28 Zoltan Varga <[email protected]>
* generic-sharing.c (has_constraints): Enable gshared for methods/classes
	with type constraints as an experiment.

svn path=/trunk/mono/; revision=124794
2009-01-28 16:40:49 +00:00
Jb Evain 4a3b13b4ed cosmetic diff
svn path=/trunk/mcs/; revision=124793
2009-01-28 16:38:17 +00:00
Zoltan Varga 5467244f3d 2009-01-28 Zoltan Varga <[email protected]>
* generic-marshalbyref.2.cs: Also do the test for a class without type
	constraints.

svn path=/trunk/mono/; revision=124790
2009-01-28 16:19:01 +00:00
Zoltan Varga 53de640d67 2009-01-28 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Avoid generic sharing for calls made to
	remoting-invoke-with-check wrappers of shared methods.

svn path=/trunk/mono/; revision=124789
2009-01-28 16:18:05 +00:00
Marek Safar 90d00cdf12 New test.
svn path=/trunk/mcs/; revision=124788
2009-01-28 16:13:30 +00:00
Marek Safar 6f8bf682a6 2009-01-28 Marek Safar <[email protected]>
A fix for bug #470227
	* cs-tokenizer.cs: Remove too agressive parser optimization.


svn path=/trunk/mcs/; revision=124786
2009-01-28 16:12:37 +00:00
Marek Habersack 15e7dec4cd Copied a few more stub files
svn path=/trunk/mcs/; revision=124784
2009-01-28 15:37:05 +00:00
Marek Habersack 3fd8028d75 More attribution/header updates
svn path=/trunk/mcs/; revision=124783
2009-01-28 15:25:02 +00:00
Zoltan Varga 5c0e5164ac 2009-01-28 Zoltan Varga <[email protected]>
* boehm-gc.c (on_gc_notification): Update mono_stats.

svn path=/trunk/mono/; revision=124782
2009-01-28 14:55:48 +00:00
Zoltan Varga 8da57a4a8b 2009-01-28 Zoltan Varga <[email protected]>
* mini.c (print_jit_stats): Print out major gc count/time for libgc too.

svn path=/trunk/mono/; revision=124781
2009-01-28 14:54:52 +00:00
Marek Habersack 7f146e5225 Added copies of some .jvm.cs files
svn path=/trunk/mcs/; revision=124780
2009-01-28 14:51:30 +00:00
Marek Habersack 1556223283 Added attribution and copyright headers
svn path=/trunk/mcs/; revision=124779
2009-01-28 14:42:28 +00:00
Marek Safar 7a7bebb6dc New test, update.
svn path=/trunk/mcs/; revision=124773
2009-01-28 12:34:17 +00:00
Marek Safar 350ea7a6c0 Better error message.
svn path=/trunk/mcs/; revision=124772
2009-01-28 12:34:00 +00:00
Marek Safar d784cacad8 Update.
svn path=/trunk/mcs/; revision=124768
2009-01-28 12:27:03 +00:00
Marek Safar c0a3a1a90e 2009-01-28 Marek Safar <[email protected]>
A fix for bug #324319
	* class.cs: Remove too early base type resolve.



svn path=/trunk/mcs/; revision=124766
2009-01-28 12:26:47 +00:00
Raja R Harinath f581d8beb6 Avoid some allocations
* class-internals.h (_MonoGenericInst::type_argv): Convert from
pointer to tail array to avoid extra allocation.
* metadata.c (free_generic_inst): Update to changes.
(mono_metadata_get_generic_inst): Likewise.  Use alloca instead of
on-stack struct.

This adds a blit to get_generic_inst as compared to the original version.
However, both arms of the 'if' in there traverse the 'type_argv' array
_fully_ with 'for' loops, recursion and whatnot; the extra blit is unlikely
to add overhead.

svn path=/trunk/mono/; revision=124754
2009-01-28 07:30:59 +00:00
Raja R Harinath 989a8f0fcd Revert r124658. Either full verification isn't ready or our generated code is
buggy -- either way, it isn't the right time to enable it, since it breaks
'make compiler-tests'

svn path=/trunk/mono/; revision=124752
2009-01-28 06:23:36 +00:00
Miguel de Icaza c067747967 2009-01-16 Miguel de Icaza <[email protected]>
* sockets.c (WSASend): Fix memory leak, and optimize for the case
	with 1 segment. 

	This should really use writev or sendmsg to use the kernel
	scatter/gather facility instead of emulating it by copying buffers.

svn path=/trunk/mono/; revision=124732
2009-01-28 00:00:06 +00:00
Marek Safar c97cb0ffc9 New test, update.
svn path=/trunk/mcs/; revision=124724
2009-01-27 22:42:27 +00:00
Marek Safar f860adefd8 2009-01-27 Marek Safar <[email protected]>
A fix for bug #324319
	* ecore.cs: Explicitly type null when assigning to type argument to
	make pass verifier check.


svn path=/trunk/mcs/; revision=124723
2009-01-27 22:41:54 +00:00
Zoltan Varga 120c215095 2009-01-27 Zoltan Varga <[email protected]>
* TypeTest.cs: Add a test for #467229.

svn path=/trunk/mcs/; revision=124718
2009-01-27 21:57:34 +00:00
Zoltan Varga a7f976d157 2009-01-27 Zoltan Varga <[email protected]>
* Type.cs (GetHashCode): Work on UnderlyingSystemType. Fixes #467229.

svn path=/trunk/mcs/; revision=124716
2009-01-27 21:56:31 +00:00
Zoltan Varga 6f157ede21 2009-01-27 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Type_EqualsInternal): For user-defined types,
	return TRUE if the two type objects are the same.

svn path=/trunk/mono/; revision=124714
2009-01-27 21:45:26 +00:00
Mark Probst 8b88712fc6 2009-01-27 Mark Probst <[email protected]>
* method-to-ir.c (emit_stloc_ir): Only apply the reg-reg move
	optimization if the top of stack is the last instruction in the
	bblock.  Otherwise it might have been used after its definition.
	Fixes #469742.

2009-01-27  Mark Probst  <[email protected]>

	* bug469742.2.il: New test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=124712
2009-01-27 21:12:43 +00:00
Jb Evain 9708ed8168 2009-01-27 Jb Evain <[email protected]>
* configure.in: bump Mono's version to 2.5 now that 2.4
	has been branched.


svn path=/trunk/mono/; revision=124707
2009-01-27 20:37:49 +00:00
Zoltan Varga aa37ee252a 2009-01-27 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_magic_trampoline): Print out the caller
	method as well when get_vcall_slot () fails to match a code sequence.

svn path=/trunk/mono/; revision=124689
2009-01-27 18:06:58 +00:00
Zoltan Varga 42f3709f93 2009-01-27 Zoltan Varga <[email protected]>
* mini-arm.c: Fix the android build, which doesn't have
	__aeabi_read_tp.

svn path=/trunk/mono/; revision=124674
2009-01-27 17:07:34 +00:00
Ivan Zlatev cf06800b74 2009-01-27 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix a NRE when setting the CurrentCell to null.

svn path=/trunk/mcs/; revision=124670
2009-01-27 16:46:16 +00:00
Ivan Zlatev 2c110c5d27 2009-01-27 Ivan N. Zlatev <[email protected]>
* XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the
	current context.
	[Fixes bug #469239]

svn path=/trunk/mcs/; revision=124668
2009-01-27 16:39:20 +00:00
Marek Habersack 7dea4232fe 2009-01-27 Marek Habersack <[email protected]>
* HttpHandlerAction.cs: removed the matches cache, it doesn't
	improve matters here in 99% of the cases.
	Regexps are no longer used to match handler paths, SearchPattern
	is used instead.

2009-01-27  Marek Habersack  <[email protected]>

	* SearchPattern.cs: added

2009-01-27  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added System.Web.Util/SearchPattern.cs

svn path=/trunk/mcs/; revision=124659
2009-01-27 14:25:00 +00:00
Marek Safar 8884ee2788 2009-01-27 Marek Safar <[email protected]>
* runtime/Makefile.am: Run full verification checks


svn path=/trunk/mono/; revision=124658
2009-01-27 14:13:11 +00:00
Jb Evain d439169d83 2009-01-27 Jb Evain <[email protected]>
* HashSet.cs: use Paolo's trick to return items in insertion order
	when possible.


svn path=/trunk/mcs/; revision=124656
2009-01-27 13:29:58 +00:00
Ankit Jain 445401abce * Delete.cs (Execute): Skip non-existant files.
svn path=/trunk/mcs/; revision=124655
2009-01-27 12:58:38 +00:00
Gonzalo Paniagua Javier dfb688280d 2009-01-26 Christian Prochnow <[email protected]>
* Ping.cs: ignore ICMP echo request packet in case we ping
	  localhost.

svn path=/trunk/mcs/; revision=124624
2009-01-27 03:51:13 +00:00
Marek Safar 9ba55d08dc 2009-01-27 Marek Safar <[email protected]>
* anonymous.cs: Fixed recent regression when initializing captured 
	this.


svn path=/trunk/mcs/; revision=124607
2009-01-27 00:01:25 +00:00
Andreia Gaita 0bdfd500d3 * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
won't be disabled by default.
Fixes #468690

2009-01-26  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=124596
2009-01-26 22:58:49 +00:00
Zoltan Varga 0d3ee43042 2009-01-26 Zoltan Varga <[email protected]>
* mini-s390x.c: Remove a stray declaration of emit_sig_cookie () to fix
	the s390x build.

svn path=/trunk/mono/; revision=124582
2009-01-26 22:10:57 +00:00
Ivan Zlatev 7c1873c3f1 2009-01-26 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Do not clear the rows if we are not databound.

svn path=/trunk/mcs/; revision=124569
2009-01-26 21:56:44 +00:00
Zoltan Varga 9b78c0b9c0 2009-01-26 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: Add a test for #469135.

svn path=/trunk/mono/; revision=124560
2009-01-26 20:33:31 +00:00
Zoltan Varga 6217719015 2009-01-26 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_load_type_info): Fill out info->min_align.
	(mono_class_native_size): Use klass->marshal_info->min_align instead of
	klass->min_align, since klass->min_align contains the managed alignment,
	while the native alignment can be different, like for longs on x86.
	Fixes #469135.

	* class-internals.h (MonoMarshalType): Add a min_align field.

svn path=/trunk/mono/; revision=124559
2009-01-26 20:32:34 +00:00
Ivan Zlatev 82ddb28253 2009-01-26 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Do not be too smart about selecting the first cell
	when the first row is added as this is not what MS does. Fixes the
	failing unit tests.

svn path=/trunk/mcs/; revision=124557
2009-01-26 20:14:00 +00:00
Carlos Alberto Cortez 790acfed33 2009-01-26 Carlos Alberto Cortez <[email protected]>
* TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
	take into account the fact that OpenTreeNodeEnumerator needs to call
	MoveNext/MovePrevious to actually put the passed node as the one
	retrieved in Current. This way this property should work as really
	expected in .net.
	Fixes part of #467225.


svn path=/trunk/mcs/; revision=124553
2009-01-26 19:40:24 +00:00
Rodrigo Kumpera baea8ca7b5 2009-01-26 Rodrigo Kumpera <[email protected]>
* critical-sections.h (Enter/LeaveCriticalSection): Show
	helpfull warning messages before crashing.

svn path=/trunk/mono/; revision=124549
2009-01-26 19:06:56 +00:00
Marek Habersack 0d78066093 2009-01-26 Marek Habersack <[email protected]>
* ClientProxyHandler.cs: before generating the proxy check if the
	service type is decorated with the [ScriptService] custom
	attribute. Only such service types can be called from client
	JavaScript.

2009-01-26  Marek Habersack  <[email protected]>

	* ScriptManager.cs: before registering script service reference
	check if the service type is decorated with the [ScriptService]
	custom attribute. Only such service types can be called from
	client JavaScript.

svn path=/trunk/mcs/; revision=124547
2009-01-26 18:58:04 +00:00
Rodrigo Kumpera 9a720cf896 2009-01-26 Rodrigo Kumpera <[email protected]>
* unwind.c (mono_unwind_cleanup): Don't crash if cached_info is NULL.

svn path=/trunk/mono/; revision=124545
2009-01-26 18:54:39 +00:00
Rodrigo Kumpera bed58e21e6 2009-01-26 Rodrigo Kumpera <[email protected]>
* assembly.c (mono_assembly_try_decode_skip_verification): Add a hack to check
	the 1.0 format.

svn path=/trunk/mono/; revision=124540
2009-01-26 18:21:29 +00:00
Rodrigo Kumpera 052c814f06 2009-01-26 Rodrigo Kumpera <[email protected]>
* handles-private.h (_wapi_handle_set_signal_state): Show
	helpfull warning messages before crashing.

svn path=/trunk/mono/; revision=124539
2009-01-26 18:21:27 +00:00
Marek Safar 416cacb66c Replace FullName with CSharpSignature
svn path=/trunk/mcs/; revision=124537
2009-01-26 17:59:19 +00:00
Marek Habersack 135d21c0b3 2009-01-26 Marek Habersack <[email protected]>
* BuildManagerDirectoryBuilder.cs: added support for fake virtual
	paths.

svn path=/trunk/mcs/; revision=124536
2009-01-26 17:51:25 +00:00
Jeffrey Stedfast ca2e502bd0 2009-01-26 Jeffrey Stedfast <[email protected]>
* mono-mutex.[c,h]: Removed GPLv2 copyright notice which should
	not have been there.


svn path=/trunk/mono/; revision=124535
2009-01-26 17:07:58 +00:00
Marek Safar 23dbb1bd42 New test.
svn path=/trunk/mcs/; revision=124534
2009-01-26 16:50:14 +00:00
Marek Safar 835f15a7b1 2009-01-26 Marek Safar <[email protected]>
A fix for bug #469019
	* anonymous.cs: Use all parent type parameters when instantiating
	nested generic storey.


svn path=/trunk/mcs/; revision=124532
2009-01-26 16:49:23 +00:00
Carlos Alberto Cortez 215c3de565 2000-01-26 Carlos Alberto Cortez <[email protected]>
* TreeView.cs: When calculating the scrollbars, don't use
	TreeNode.Bounds, since it still can have the values of the previous
	-and now invalid- layout -which depends on TreeView.skipped_nodes, and
	could not have been updated as well-, and use the actual number of
	visible number of nodes to compute the height needed to contain all
	the nodes. Also reset the value of vbar to 0 when disabled - this way
	we make sure that, when re-enabled, it will update the visible area of
	the treeview, even if the previous value before disabling it is the
	same as now. Finally don't do anything for the vbar.ValueChanged
	handler - for the case wheer we manually set the value but don't the
	vbar is disabled already.
	Fixes part of #467225.


svn path=/trunk/mcs/; revision=124509
2009-01-26 15:47:56 +00:00
Marek Safar 543be7323b New test.
svn path=/trunk/mcs/; revision=124507
2009-01-26 15:28:41 +00:00
Marek Safar 1c498ef372 2009-01-26 Marek Safar <[email protected]>
* expression.cs: Check for null instance methodgroup expression.


svn path=/trunk/mcs/; revision=124505
2009-01-26 15:27:14 +00:00
Zoltan Varga b0f0755b24 2009-01-26 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Save the unwind info generated by the JIT
	and put its id into jinfo->used_regs. This is only used on amd64,
	which is currently the only platform generating unwind info.

	* exceptions-amd64.c: Instead of unwinding based on a register mask, use
	the dwarf unwinder. This is required to correctly handle async exceptions
	like thread abort and stack overflows, which can happen while a method
	is in the middle of its prolog or epilog.
	
	* aot-runtime.c (mono_aot_get_unwind_info): New helper function to obtain
	the unwind info belonging to an AOTed method.

	* aot-compiler.c aot-runtime.c: Save/Load the unwind info emitted by the JIT
	into cfg->unwind_ops.

svn path=/trunk/mono/; revision=124504
2009-01-26 15:18:18 +00:00
Zoltan Varga 17312bbcdf 2009-01-26 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_frame): Use <= instead of < for the loop exit check.

svn path=/trunk/mono/; revision=124503
2009-01-26 15:13:18 +00:00
Zoltan Varga 9b94b6dbea 2009-01-26 Zoltan Varga <[email protected]>
* domain-internals.h (struct _MonoJitInfo): Add a 'from_aot' field plus
	some comments about the usage of the used_regs field.

svn path=/trunk/mono/; revision=124502
2009-01-26 14:56:40 +00:00
Zoltan Varga fcb967180b 2009-01-26 Zoltan Varga <[email protected]>
* mini.c (mini_init): Call mono_unwind_init ().
	(mini_cleanup): Call mono_unwind_cleanup ().

svn path=/trunk/mono/; revision=124501
2009-01-26 14:43:59 +00:00
Zoltan Varga 5142cc7796 2009-01-26 Zoltan Varga <[email protected]>
* unwind.c: Add functions for managing a set of unwind info entries, allowing
	unwind info to be shared between methods.

svn path=/trunk/mono/; revision=124500
2009-01-26 14:41:29 +00:00
Zoltan Varga f0f430f5dc 2009-01-26 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_prolog): Emit unwind info for the registers
	saved in the LMF.

svn path=/trunk/mono/; revision=124499
2009-01-26 14:23:17 +00:00
Marek Habersack 780ba9136f 2009-01-26 Marek Habersack <[email protected]>
* data/config.xml: added a definition for .NET 3.5 AJAX entries
	(feature AJAX) and moved the 1.0 entries to feature AJAX1.

svn path=/trunk/mcs/; revision=124498
2009-01-26 14:22:48 +00:00
Marek Habersack 21c73210aa 2009-01-26 Marek Habersack <[email protected]>
* SearchPattern.cs: make IsMatch work for situations when there is
	no wildcard in the pattern, but a subdirectory match is being
	tested, e.g. pattern == "file.txt" and text ==
	"subdir/file.txt". Lack of support for this has been causing
	watching for changes to ASP.NET's web.config in subdirectories to
	fail.

svn path=/trunk/mcs/; revision=124491
2009-01-26 13:26:21 +00:00
Rolf Bjarne Kvinge 1bd13882ad 2009-01-26 Rolf Bjarne Kvinge <[email protected]>
* WebClient_2_1.cs: Ensure we don't let exceptions go to native code.
	* HttpWebRequest_2_1.cs: Add AllowReadStreamBuffering.


svn path=/trunk/mcs/; revision=124487
2009-01-26 12:58:50 +00:00
Marek Safar 9c4b7694b4 New test.
svn path=/trunk/mcs/; revision=124485
2009-01-26 12:43:57 +00:00
Marek Safar 1952f6b9c1 2009-01-26 Marek Safar <[email protected]>
A fix for bug #469244
	* cs-tokenizer.cs, cs-parser.jay: Fixed parsing of nullable type
	instance inside a conditional expression.


svn path=/trunk/mcs/; revision=124484
2009-01-26 12:42:31 +00:00
Marek Habersack eb01ce450f 2009-01-26 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: when an attempt to map a fake virtual
	path is made, MapPath returns the aplication physical root
	directory. Fixes bug #463950

svn path=/trunk/mcs/; revision=124479
2009-01-26 11:38:08 +00:00
Marek Habersack 4a986567ec 2009-01-26 Marek Habersack <[email protected]>
* CompilationException.cs: added a Message override to make error
	messages more useful.

svn path=/trunk/mcs/; revision=124475
2009-01-26 10:46:23 +00:00
Zoltan Varga 986e196408 2009-01-26 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_ptr): Allow pointers to blittable structures.
	Fixes #469217.

svn path=/trunk/mono/; revision=124469
2009-01-26 08:16:39 +00:00
Gonzalo Paniagua Javier ca31518c5a 2009-01-26 Gonzalo Paniagua Javier <[email protected]>
* SocketTest.cs:
	(TestSelect1) avoid RST by reading the bytes from the client.

svn path=/trunk/mcs/; revision=124463
2009-01-26 07:00:46 +00:00
Gonzalo Paniagua Javier 912095a65c ChangeLog
svn path=/trunk/mcs/; revision=124459
2009-01-26 06:47:17 +00:00
Gonzalo Paniagua Javier 0b70322ff1 2009-01-26 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: avoid throwing an exception when
	Content-Length is not present.

svn path=/trunk/mcs/; revision=124458
2009-01-26 06:44:21 +00:00
Zoltan Varga dd1b198607 2009-01-26 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_exceptions_init): Call 
	get_throw_pending_exception () to avoid initialization races.

	* mini-exceptions.c (mono_exceptions_init): Call an arch specific
	mono_arch_exceptions_init () function.

svn path=/trunk/mono/; revision=124457
2009-01-26 06:42:29 +00:00
Zoltan Varga 4c75114275 2009-01-26 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_exceptions_init): Call 
	get_throw_pending_exception () to avoid initialization races.

	* mini-exceptions.c (mono_exceptions_init): Call an arch specific
	mono_arch_exceptions_init () function.

svn path=/trunk/mono/; revision=124456
2009-01-26 06:42:08 +00:00
Zoltan Varga 3976a02fbf 2009-01-26 Zoltan Varga <[email protected]>
* mini.h (MONO_INST_NEW): Remove duplicate setting of cil_code.

svn path=/trunk/mono/; revision=124455
2009-01-26 05:34:05 +00:00
Gonzalo Paniagua Javier 0a087b4e24 2009-01-26 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: added locking in SetResponseData for the case
	when we get an error response before BeginGetResponse has been
	called.


svn path=/trunk/mcs/; revision=124452
2009-01-26 05:02:47 +00:00
Massimiliano Mantione 8baf9b5f74 Fixed crash in the statistical profiler.
svn path=/trunk/mono/; revision=124441
2009-01-25 20:08:40 +00:00
Zoltan Varga dc16cc6be6 2009-01-25 Zoltan Varga <[email protected]>
* mini.c (mono_get_domain_intrinsic): New helper function.
	(mono_get_thread_intrinsic): Ditto.

	* mini-arm.c mini-ia64.c: Use the new helper functions.
	
	* method-to-ir.c (mono_method_to_ir): Fix the comment for
	the last constrained_call change, since it is needed in the non-AOT
	case as well.

svn path=/trunk/mono/; revision=124434
2009-01-25 17:29:45 +00:00
Zoltan Varga 89680281ac 2009-01-25 Zoltan Varga <[email protected]>
* mini.c (mono_get_domain_intrinsic): New helper function.
	(mono_get_thread_intrinsic): Ditto.

	* mini-arm.c mini-ia64.c: Use the new helper functions.
	
	* method-to-ir.c (mono_method_to_ir): Fix the comment for
	the last constrained_call change, since it is needed in the non-AOT
	case as well.

svn path=/trunk/mono/; revision=124433
2009-01-25 17:29:30 +00:00
Zoltan Varga 5760e0190e 2009-01-25 Zoltan Varga <[email protected]>
* mini-arm.c: Implement OP_TLS_GET on arm eabi linux.

svn path=/trunk/mono/; revision=124431
2009-01-25 17:18:40 +00:00
Zoltan Varga d4f6173fc2 2009-01-25 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_emit_prolog): Add an inlined version of 
	mono_get_lmf_addr () on arm eabi linux.

svn path=/trunk/mono/; revision=124430
2009-01-25 17:06:46 +00:00
Zoltan Varga 89e3dc8396 2009-01-25 Zoltan Varga <[email protected]>
* mono-compiler.h (MONO_THREAD_VAR_OFFSET): Add ARM Linux support.

svn path=/trunk/mono/; revision=124429
2009-01-25 17:05:25 +00:00
Zoltan Varga e1745a4bc9 2009-01-25 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Handle ARM as well.

svn path=/trunk/mono/; revision=124428
2009-01-25 17:04:47 +00:00
Zoltan Varga 9eae61bc94 2009-01-24 Zoltan Varga <[email protected]>
* StackFrame.cs: Fix warnings.

svn path=/trunk/mcs/; revision=124424
2009-01-24 21:47:04 +00:00
Zoltan Varga a8c8abe55e 2009-01-24 Zoltan Varga <[email protected]>
* Variant.cs ApplicationIdentity.cs ActivationContext.cs Environment.cs
	AppDomain.cs: Fix warnings.

svn path=/trunk/mcs/; revision=124423
2009-01-24 21:43:42 +00:00
Zoltan Varga 55db1d0f0a 2009-01-24 Zoltan Varga <[email protected]>
* SignatureHelper.cs: Fix warnings.

svn path=/trunk/mcs/; revision=124422
2009-01-24 21:34:39 +00:00
Zoltan Varga 5324163a6a 2009-01-24 Zoltan Varga <[email protected]>
* MonoGenericClass.cs: Fix warnings.

svn path=/trunk/mcs/; revision=124421
2009-01-24 21:31:06 +00:00
Zoltan Varga 05d68ca471 2009-01-24 Zoltan Varga <[email protected]>
* ILGenerator.cs: Fix warnings.

svn path=/trunk/mcs/; revision=124420
2009-01-24 21:30:34 +00:00
Zoltan Varga db3b8c86ea 2009-01-24 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_get_vcall_slot): Handle yet another
	code sequence which matches a non-virtual call.

svn path=/trunk/mono/; revision=124419
2009-01-24 21:22:35 +00:00
Gonzalo Paniagua Javier c9c546fda4 fix ChangeLog
svn path=/trunk/mcs/; revision=124412
2009-01-24 08:15:36 +00:00
Gonzalo Paniagua Javier c0ac3b7e2d Improved TDS connection pooling
svn path=/trunk/mcs/; revision=124408
2009-01-24 05:55:52 +00:00
Gonzalo Paniagua Javier 67a10ac834 Do not throw exceptions when attempting to load satellite assemblies
svn path=/trunk/mcs/; revision=124405
2009-01-24 05:34:42 +00:00
Gonzalo Paniagua Javier 56698a50a2 2009-01-24 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: return NULL instead of throwing FileNotFoundException
	when LoadAssembly() fails.


svn path=/trunk/mono/; revision=124404
2009-01-24 05:34:08 +00:00
Gonzalo Paniagua Javier 2cd8cdbf02 2009-01-23 Gonzalo Paniagua Javier <[email protected]>
* AspComponentFoundry.cs: no need to throw. Caller handles a null
	return value.


svn path=/trunk/mcs/; revision=124403
2009-01-24 05:16:23 +00:00
Gonzalo Paniagua Javier 3bbf218975 2009-01-23 Gonzalo Paniagua Javier <[email protected]>
* HttpResponse.cs: make sure config is not null here.
	* HttpApplication.cs: add a timer (-d:PIPELINE_TIMER) for the pipeline.
	Handle timeouts for OutputPage() too.


svn path=/trunk/mcs/; revision=124395
2009-01-24 03:19:52 +00:00
Gonzalo Paniagua Javier bc9b19e4d9 2009-01-23 Gonzalo Paniagua Javier <[email protected]>
* HttpApplicationFactory.cs: set/reset the context for the application
	when creating/disposing. Dispose() out of the lock.


svn path=/trunk/mcs/; revision=124393
2009-01-24 02:59:33 +00:00
Marek Habersack f133977ac4 2009-01-24 Marek Habersack <[email protected]>
* XmlSiteMapProvider.cs: if a nested sitemap is used (via the
	siteMapFile node attribute) watch the named file for
	changes. Fixes bug #465693

svn path=/trunk/mcs/; revision=124385
2009-01-24 00:38:03 +00:00
Marek Habersack c3e912b67d 2009-01-23 Marek Habersack <[email protected]>
* HtmlTextWriter.cs: if OnTagRender returns false when called from
	RenderBeginTag, push the tag to the stack regardless, and ignore
	it in DoBeginTag and RenderEndTag. Fixes bug #463634

svn path=/trunk/mcs/; revision=124377
2009-01-23 21:49:12 +00:00
Jonathan Pobst 651d25a066 2009-01-23 Jonathan Pobst <[email protected]>
* ToolStrip.cs: Switch from foreach to for, in case the collection
	somehow changes while enumerating it.

svn path=/trunk/mcs/; revision=124355
2009-01-23 19:06:32 +00:00
Marek Safar 2e74382759 build fix
svn path=/trunk/mcs/; revision=124349
2009-01-23 18:45:55 +00:00
Marek Safar 2058902bc8 2009-01-23 Marek Safar <[email protected]>
* typemanager.cs, generic.cs, parameter.cs, decl.cs, anonymous.cs,
	expression.cs, report.cs, ecore.cs, attribute.cs: Use common 
	GetElementType and HasElementType. IsValueType clean up.


svn path=/trunk/mcs/; revision=124347
2009-01-23 18:16:35 +00:00
Atsushi Eno 1475ad4aa1 2009-01-23 Atsushi Enomoto <[email protected]>
* web.config : added .svc handler.


svn path=/trunk/mono/; revision=124345
2009-01-23 17:56:21 +00:00
Zoltan Varga da64c4fdae 2009-01-23 Zoltan Varga <[email protected]>
* configure.in: Make --enable-parallel-mark=yes the default.

svn path=/trunk/mono/; revision=124341
2009-01-23 17:32:43 +00:00
Mark Probst 873d74fb6c 2009-01-23 Mark Probst <[email protected]>
* mini-ppc.c (mono_arch_context_get_int_reg): Allow access to the
	stack pointer (r1).

svn path=/trunk/mono/; revision=124339
2009-01-23 16:47:13 +00:00
Zoltan Varga 5fd4a06120 2009-01-23 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Treat delegate-invoke wrappers similarly to
	runtime-invoke wrappers, since they are also shared based on signature.

svn path=/trunk/mono/; revision=124337
2009-01-23 16:33:03 +00:00
Marek Habersack 502f34f419 2009-01-23 Marek Habersack <[email protected]>
* BuildManager.cs: use -1 for infinite wait in calls to
	Acquire{Reader,Writer}Lock ()

svn path=/trunk/mcs/; revision=124329
2009-01-23 14:29:07 +00:00
Marek Safar 5888783129 2009-01-23 Marek Safar <[email protected]>
* nullable.cs: Use common EmitCall.
	
	* expression.cs: Emit constraint. for virtual calls only.


svn path=/trunk/mcs/; revision=124312
2009-01-23 11:32:08 +00:00
Marek Safar 82a1631ac4 New test.
svn path=/trunk/mcs/; revision=124309
2009-01-23 10:15:20 +00:00
Marek Safar 499fc8815f 2009-01-23 Marek Safar <[email protected]>
* typemanager.cs, generic.cs, eval.cs, convert.cs, const.cs, 
	expression.cs, statement.cs, rootcontext.cs, ecore.cs, class.cs,
	driver.cs, attribute.cs, enum.cs: Split IsValueType and IsStruct
	checks.


svn path=/trunk/mcs/; revision=124308
2009-01-23 10:15:00 +00:00
Atsushi Eno aa73556f40 2009-01-23 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : async begin method with
          [MessageContract] has 3 parameters, not 1.


svn path=/trunk/mcs/; revision=124303
2009-01-23 09:17:58 +00:00
Mark Probst 996751bb12 2009-01-23 Mark Probst <[email protected]>
* metadata.c (mono_metadata_generic_param_equal): Only compare the
	image if the owner is NULL.  Fixes the AOT failures.

svn path=/trunk/mono/; revision=124301
2009-01-23 09:02:05 +00:00
Atsushi Eno f12730b022 2009-01-23 Atsushi Enomoto <[email protected]>
* ClientBase.cs : added another missing type.


svn path=/trunk/mcs/; revision=124299
2009-01-23 07:30:35 +00:00
Atsushi Eno a830469ea9 2009-01-23 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : similar fix to the previous one,
          on uint16.


svn path=/trunk/mcs/; revision=124294
2009-01-23 07:06:46 +00:00
Atsushi Eno 520fef2952 2009-01-23 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs : fix wrong file reference.


svn path=/trunk/mcs/; revision=124293
2009-01-23 06:50:20 +00:00
Ivan Zlatev 929136cd2c 2009-01-23 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no
	editing control.

svn path=/trunk/mcs/; revision=124279
2009-01-23 01:31:35 +00:00
Ivan Zlatev 5290ba6d08 2009-01-23 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix new row adding/editing in the non-databound
	scenario.

svn path=/trunk/mcs/; revision=124278
2009-01-23 01:31:26 +00:00
Zoltan Varga 95b5c1f78e 2009-01-23 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_load_generic_params): Initialize the 
	MonoGenericParam structure using memset so the image field is initialized
	as well.

svn path=/trunk/mono/; revision=124266
2009-01-22 23:40:20 +00:00
Zoltan Varga c1b14152d3 2009-01-22 Zoltan Varga <[email protected]>
* Stopwatch.cs: Reorder the calculations in Elapsed and ElapsedMilliseconds
	to avoid overflow. Fixes #468570. Patch by Yoni Shalom <[email protected]>.

svn path=/trunk/mcs/; revision=124260
2009-01-22 22:13:31 +00:00
Marek Habersack dfc843bcf1 2009-01-22 Marek Habersack <[email protected]>
* Makefile (SYSTEMCORE_DEP):
	If NO_SYSTEMCORE_DEP is defined System.Web.dll will not be linked
	with System.Core.dll and BuildManager will use ReaderWriterLock
	instead of ReaderWriterLockSlim.

2009-01-22  Marek Habersack  <[email protected]>
	* BuildManager.cs:
	 - if SYSTEMCOR_DEP is undefined use ReaderWriterLock instead of
	 ReaderWriterLockSlim

svn path=/trunk/mcs/; revision=124253
2009-01-22 21:25:42 +00:00
Mark Probst fd76d84761 2009-01-22 Mark Probst <[email protected]>
* mini-exceptions.c (ves_icall_get_frame_info): Fetch the generic
	info from the (correct) context.

2009-01-22  Mark Probst  <[email protected]>

	* generic-stack-traces2.2.cs: Another generic sharing test for
	stack traces.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=124246
2009-01-22 20:47:35 +00:00
Zoltan Varga bb5d515fa9 Fix the build.
svn path=/trunk/mono/; revision=124244
2009-01-22 20:26:02 +00:00
Zoltan Varga 8a0049298a 2009-01-22 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_frame): Remove a stray g_free ().

svn path=/trunk/mono/; revision=124243
2009-01-22 20:15:42 +00:00
Zoltan Varga 17d2fce6a4 2009-01-22 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_frame): New function to unwind through a frame
	using dwarf unwinding info. Not yet used.

svn path=/trunk/mono/; revision=124236
2009-01-22 19:26:40 +00:00
Zoltan Varga 7a964cc476 2009-01-22 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_frame): New function to unwind through a frame
	using dwarf unwinding info. Not yet used.

svn path=/trunk/mono/; revision=124235
2009-01-22 19:24:59 +00:00
Jb Evain bebe8e4ae3 we pass this test
svn path=/trunk/mcs/; revision=124231
2009-01-22 17:34:37 +00:00
Jb Evain aa6bcebd45 update
svn path=/trunk/mcs/; revision=124229
2009-01-22 17:30:47 +00:00
Jb Evain 3a1593065c 2009-01-22 Jb Evain <[email protected]>
* gtest-anontype-05.cs: update according to lastest changes in gmcs
	to match was csc outputs. Also add new cases to check.


svn path=/trunk/mcs/; revision=124228
2009-01-22 17:30:34 +00:00
Jb Evain 1c74b03b71 2009-01-22 Jb Evain <[email protected]>
* anonymous.cs: make anonymous types' ToString implementation
	match what csc outputs.

svn path=/trunk/mcs/; revision=124227
2009-01-22 17:29:50 +00:00
Jb Evain d82eee830b passing those
svn path=/trunk/mcs/; revision=124221
2009-01-22 16:02:01 +00:00
Jb Evain 632d0de0e0 2009-01-22 Jb Evain <[email protected]>
* SortSequenceContext.cs: make sort stable.


svn path=/trunk/mcs/; revision=124220
2009-01-22 16:01:36 +00:00
Atsushi Eno cdff98a470 2009-01-22 Atsushi Enomoto <[email protected]>
* SilverlightClientConfigLoader.cs :
	  removed extraneous code. Handle "*" (wildcard).


svn path=/trunk/mcs/; revision=124219
2009-01-22 15:56:33 +00:00
Atsushi Eno cf8b64fa68 2009-01-22 Atsushi Enomoto <[email protected]>
* XmlXapResolver.cs : fix assembly qualified names,
	  and give detailed errors.
	* XmlResolver.cs : in 2.1 do not resolve relative Uri
	  to absolute.


svn path=/trunk/mcs/; revision=124218
2009-01-22 15:54:19 +00:00
Jb Evain 994549d704 we pass those
svn path=/trunk/mcs/; revision=124217
2009-01-22 15:41:02 +00:00
Jb Evain 99a81c984e 2009-01-22 Jb Evain <[email protected]>
* Enumerable.cs (Sum): check the sum operations for possible overfows.


svn path=/trunk/mcs/; revision=124216
2009-01-22 15:40:38 +00:00
Jb Evain 7190a31e60 we pass those
svn path=/trunk/mcs/; revision=124214
2009-01-22 15:07:51 +00:00
Jb Evain 2c0250d4b4 reduce one level of indentation
svn path=/trunk/mcs/; revision=124213
2009-01-22 15:07:25 +00:00
Jb Evain a560d612bf 2009-01-22 Jb Evain <[email protected]>
* Enumerable.cs (SequenceEqual): make sure we dispose enumerators.


svn path=/trunk/mcs/; revision=124212
2009-01-22 15:05:35 +00:00
Jb Evain f853e0e603 passing those
svn path=/trunk/mcs/; revision=124211
2009-01-22 14:57:54 +00:00
Jb Evain f470193a89 2009-01-22 Jb Evain <[email protected]>
* Enumerable.cs: optimize Last for lists.


svn path=/trunk/mcs/; revision=124210
2009-01-22 14:56:14 +00:00
Marek Habersack bc0513683f set svn:eol-style to native and converted several files to unix line ending
svn path=/trunk/mcs/; revision=124209
2009-01-22 14:52:09 +00:00
Jb Evain 1df086865b add a missing NotWorking
svn path=/trunk/mcs/; revision=124208
2009-01-22 14:50:00 +00:00
Jb Evain 99e45d9f2c add tests
svn path=/trunk/mcs/; revision=124207
2009-01-22 14:45:18 +00:00
Jb Evain 76587acd4d reformat
svn path=/trunk/mcs/; revision=124206
2009-01-22 14:44:19 +00:00
Alan McGovern 5a3d836896 2009-01-22 Alan McGovern <[email protected]>
* KnownTypeCollection.cs : The byte overload doesn't exist in
        Silverlight, so cast the byte to an int instead.



svn path=/trunk/mcs/; revision=124205
2009-01-22 14:42:10 +00:00
Alan McGovern 4969ba3d1c 2009-01-22 Alan McGovern <[email protected]>
* MessageHeaders.cs : List<T>.RemoveAll(Predicate<T>) doesn't
        * exist in Silverlight.
        Rewrite to avoid usage of it.



svn path=/trunk/mcs/; revision=124204
2009-01-22 14:41:30 +00:00
Alan McGovern 1fc87cc196 2009-01-22 Alan McGovern <[email protected]>
* BasicHttpBinding.cs: In silverlight ReaderQuota is immutable and always
        has a default value of ReaderQuota.Max. Therefore no need to call CopyTo.



svn path=/trunk/mcs/; revision=124203
2009-01-22 14:40:43 +00:00
Jb Evain e5e26df53a import the BackLinq tests
svn path=/trunk/mcs/; revision=124202
2009-01-22 14:31:43 +00:00
Atsushi Eno 00fb04d6fd 2009-01-22 Atsushi Enomoto <[email protected]>
* XmlXapResolver.cs : new in 2.1.
	* XmlReaderSettings.cs : use above.

	* net_2_1_raw_System.Xml.dll.sources: added XmlXapResolver.cs.


svn path=/trunk/mcs/; revision=124198
2009-01-22 13:40:32 +00:00
Atsushi Eno cd94cd2e94 2009-01-22 Atsushi Enomoto <[email protected]>
* SilverlightClientConfigLoader.cs : in Silverlight, there is
	  "ServiceReference.ClientConfig" which is used to resolve service
	  endpoint configuration. It is to consume that file.
	* ChannelFactory.cs : use above in SL.
	* ClientBase.cs : rename some misleading param names.

	* net_2_1_raw_System.ServiceModel.dll.sources :
	  added SilverlightClientConfigLoader.cs.


svn path=/trunk/mcs/; revision=124191
2009-01-22 12:21:47 +00:00
Marek Habersack 05e3bfbff1 new BuildManager change logs
svn path=/trunk/mcs/; revision=124189
2009-01-22 11:45:04 +00:00
Marek Habersack 7ddd3ffab2 No longer sets the BuildManager.suppressAutoRestart field, as it was removed. Moved setting of BuildManager.suppressDebugMessages to the Run () method
svn path=/trunk/mcs/; revision=124188
2009-01-22 11:44:41 +00:00
Marek Habersack bf24ce277c Bumped the number of compilation cycles to 10000 from the default 16 so that the tests appdomain isn't restarted - it can break tests
svn path=/trunk/mcs/; revision=124187
2009-01-22 11:44:16 +00:00
Marek Habersack 872c74c20f Added two conditionally compiled methods (when DEVEL is defined) to write messages to a file in a synchronous manner
svn path=/trunk/mcs/; revision=124186
2009-01-22 11:43:57 +00:00
Marek Habersack a6f295ebc2 Removed unused variables
svn path=/trunk/mcs/; revision=124185
2009-01-22 11:43:35 +00:00
Marek Habersack 9e483b3f69 Removed the suppressAutoRestart variable
svn path=/trunk/mcs/; revision=124184
2009-01-22 11:42:48 +00:00
Marek Habersack fadad669cd Added the DEVEL compile define, used for conditional compilation of some development code
svn path=/trunk/mcs/; revision=124183
2009-01-22 11:42:37 +00:00
Marek Habersack 61d6c015ec AssemblyBuilder.Units property is no longer used
svn path=/trunk/mcs/; revision=124182
2009-01-22 11:42:22 +00:00
Marek Habersack a2d825837a System.Web now depends on System.Core - added System.Web to the net_2_0_dirs variable
svn path=/trunk/mcs/; revision=124181
2009-01-22 11:41:59 +00:00
Marek Habersack c7d0b1a773 Removed debugging code
svn path=/trunk/mcs/; revision=124180
2009-01-22 11:41:33 +00:00
Marek Habersack 86b4448d43 2009-01-22 Marek Habersack <[email protected]>
* Makefile (net_2_0_dirs): added System.Web - it now depends on
        System.Core, so it needs to be recompiled one more time after
        System.Core is done.

2009-01-22  Marek Habersack  <[email protected]>

        * System.Web.dll.sources: added
        System.Web.Compilation/BuildManagerCacheItem.cs,
        System.Web.Compilation/BuildManagerDirectoryBuilder.cs,
        System.Web.Compilation/BuildProviderGroup.cs

        * Makefile (SYSTEMCORE_DEP): added. Defines SYSTEMCORE_DEP on the
        mcs command line when System.Core is present.
        Added the DEVEL define, which defines DEVEL on the mcs command
        line. This is used to conditionally compile development helper code in
        System.Web.Util.FileUtils (and possibly other stuff later on)

2009-01-22  Marek Habersack  <[email protected]>

        * XsdBuildProvider.cs: added missing BuildProviderAppliesTo
        attribute.

        * BuildProvider.cs: added new internal virtual method,
        ExtractDependencies() whose purpose is to extract virtual path
        dependencies without compiling the code, if possible.
        
        * TemplateBuildProvider.cs: implemented the new
        ExtractDependencies () method which uses regular expressions to
        extract file dependencies from the source without having to
        compile the file.

        * CompilationException.cs: added a new public property, Results,
        which returns the compilation results.

        * BuildProviderGroup.cs: added. A simple class descending from
        List <BuildProvider> which is used to hold a compilation batch -
        that is a collection of BuildProvider instances.

        * BuildManagerDirectoryBuilder.cs: new class which takes care of
        generating compilation batches for the requested virtual path. A
        set of batches is generated from files found in the same virtual
        directory as the requested virtual path and all of the
        dependencies of those files. All files are grouped in batches
        within which no file depends upon its siblings. An attempt is made
        to sort the batches from the "least dependent" to the "most
        dependent" batches - i.e. the batches which do not depend on other
        batches go to the top.
        Code generating the batches now correctly detects dependency loops
        and throws an exception when one is encountered.
        Batches are represented as instances of a new class -
        BuildProviderGroup.

        * BuildManagerCacheItem.cs: added. Contains all the compilation
        result information needed by BuildManager. See below.

        * BuildManager.cs: complete batch building rewrite:
         - only one build lock is held instead of a set of compilation
           tickets. Only one thread can compile anything at one given
           time.
         - retrieving types from the build cache now uses a slim rw lock,
           so that readers aren't blocked while compilation is in
           progress. Writer lock is acquired only when adding a newly
           compiled type to the build cache and when removing it after its
           dependencies made it invalid.
         - assembly references for each compilation are now collected
           dynamically as the source is being compiled, this removed a lot
           of complexity in dealing with assembles containing conflicting
           types. As a consequence right now there may exist several
           loaded assemblies containing the same type, but only the latest
           of them will be used in new compiles.
         - the thread compiling code can recurse into the Build method
           which causes the recursively referenced code to be compiled
           into a separate, uniquely named, assembly. This deals with all
           recursion loops and dependency problems.
         - automatic app domain restart after a certain number of compiles
           is enabled now.
         - improved compilation error handling. If a compilation error
           occurs, the code attempts to recompile the assembly up to 3
           times, each time removing from the batch the files/virtual
           paths which failed parsing/compilation. If the attempts failed,
           another one is made to compile only the virtual path requested
           by the calling code. Only should that fail a compilation
           exception is thrown. All the compilation errors are written to
           stdout if the application is in the debug mode.
         - changed assembly naming. It now generates assembly names based
           on whether the compilation is recursive and whether the batch
           being compiled contains more than one code unit or
           not.
         - compilation results are now stored in the cache as instances of
           the new BuildManagerCacheItem class, which contains all the
           information required by BuildManager to return types,
           assemblies, dependencies etc.
         - GetReferencedAssemblies now correctly returns only the
           assemblies defined in the .config files.
         - GetVirtualPathDependencies does not need to compile code
           anymore in order to extract virtual path dependencies. New code
           in BuildProvider.ExtractDependencies () takes care of that.
         - a BuildManagerDirectoryBuilder class instance is used to
           generate compilation batches.

        * AssemblyBuilder.cs: added support for keeping track of which
        code unit was generated by which BuildProvider andr which
        BuildProvider produced a given source file. Both changes serve the
        purpose of dealing with compilation errors in BuildManager.

        * ApplicationFileBuildProvider.cs: added missing
        BuildProviderAppliesTo attribute

2009-01-22  Marek Habersack  <[email protected]>

        * FileUtils.cs: added two conditionally compiled methods (they
        require DEVEL to be defined) which output lines to a log file.

2009-01-22  Marek Habersack  <[email protected]>

        * WebTest.cs: Run () sets the internal field
        BuildManager.suppressDebugModeMessages to true.

2009-01-22  Marek Habersack  <[email protected]>

        * Web.mono.config: added numRecompilesBeforeAppRestart attribute
        to the compilation element, set to 100000, to avoid appdomain
        restarts during tests.



svn path=/trunk/mcs/; revision=124179
2009-01-22 11:40:22 +00:00
Atsushi Eno c0ba6dca41 2009-01-22 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs : some code comment.
	* ClientBase.cs : remove some todos.
	* ClientRuntimeChannel.cs : hack some session properties.


svn path=/trunk/mcs/; revision=124168
2009-01-22 05:16:03 +00:00
Atsushi Eno 95704c57e7 2009-01-22 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  for such an element that does not contain schema type but has a
	  type reference, use ImportSchemaType().


svn path=/trunk/mcs/; revision=124167
2009-01-22 05:14:07 +00:00
Atsushi Eno c88cc51658 2009-01-22 Atsushi Enomoto <[email protected]>
* XmlSchemaImporter.cs : hack ImportSchemaType().


svn path=/trunk/mcs/; revision=124164
2009-01-22 04:55:40 +00:00
Geoff Norton 5280a95b2f 2009-01-21 Geoff Norton <[email protected]>
* WebClient_2_1.cs: Make the ManualResetEvent local to the callback
        because a WebClient can be reused causing a wait-handle race here
        allowing a delegate to get collected causing a crash.

svn path=/trunk/mcs/; revision=124161
2009-01-22 04:27:43 +00:00
Zoltan Varga f2b0b5aa1a 2009-01-22 Zoltan Varga <[email protected]>
* mini.c (mini_init): When using xdebug, disable freeing of domains.

svn path=/trunk/mono/; revision=124136
2009-01-22 00:22:53 +00:00
Atsushi Eno 4c25215af2 2009-01-22 Atsushi Enomoto <[email protected]>
* XElement.cs : oops, experimental code remained and caused test
	  failure.


svn path=/trunk/mcs/; revision=124126
2009-01-21 23:20:17 +00:00
Marek Habersack 756c864128 Changelogs for test changes
svn path=/trunk/mcs/; revision=124122
2009-01-21 22:48:43 +00:00
Marek Habersack 0caa6e73fd Disabled tests failing because of nunit 2.4 issue
svn path=/trunk/mcs/; revision=124121
2009-01-21 22:48:32 +00:00
Mike Gorse df783880c0 * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
use them.
  Added UIAValueParamChangedEvent.

svn path=/trunk/mcs/; revision=124116
2009-01-21 22:19:33 +00:00
Mark Probst 0c7dec52df 2009-01-21 Mark Probst <[email protected]>
* mini-ppc.c (mono_arch_delegate_invoke_impl): Return function
	descriptors.

	* mini-trampolines.c (mono_delegate_trampoline): Remove the PPC64
	special case and handle mono_arch_delegate_invoke_impl() returning
	function descriptors.

	* tramp-ppc.c (mono_arch_create_trampoline_code): Delegate
	trampolines return function descriptors, too.

svn path=/trunk/mono/; revision=124114
2009-01-21 22:04:35 +00:00
Carlos Alberto Cortez b669e20d03 2209-01-21 Carlos Alberto Cortez <[email protected]>
* TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
	of trying to set as top node the highest parent of the previous top
	node. Moving to the bottom of the TreeView after a call to CollapseAll
	is exactly what .net does. This should avoid some nasty issue when
	CollapseAll is called and we don't need the vertical scroll bar.


svn path=/trunk/mcs/; revision=124108
2009-01-21 21:20:53 +00:00
Jb Evain e193ddfe63 2009-01-21 Jb Evain <[email protected]>
* System.Net/WebClient_2_1.cs: use the length of the stream
	instead of the ContentLength that is different for gzipped stream.


svn path=/trunk/mcs/; revision=124097
2009-01-21 19:38:51 +00:00
Zoltan Varga ae77b40ba1 2009-01-21 Zoltan Varga <[email protected]>
* method-to-ir.c (handle_alloc): Avoid generic instances in the
	out_of_line optimization.

svn path=/trunk/mono/; revision=124092
2009-01-21 19:32:20 +00:00
Zoltan Varga d4a9631436 Fix the 1.1 build.
svn path=/trunk/mcs/; revision=124075
2009-01-21 18:07:19 +00:00
Rodrigo Kumpera 589c52cf92 2009-01-21 Rodrigo Kumpera <[email protected]>
* appdomain.c (mono_domain_unload): Change the InterlockedIncrement to
	a plain store.

svn path=/trunk/mono/; revision=124068
2009-01-21 17:51:39 +00:00
Zoltan Varga d749a62ad8 2009-01-21 Zoltan Varga <[email protected]>
* class.c (mono_class_setup_vtable_general): In the generic instance
	optimization, set method->slot for abstract virtual methods. Fixes part of
	#467834.

svn path=/trunk/mono/; revision=124065
2009-01-21 17:37:14 +00:00
Mario Carrion 8dce920dfb 2009-01-21 Mario Carrion <[email protected]>
* Form.cs: UIA Support: Internal events added:
        UIAWindowStateChanged and UIATopMostChanged.

svn path=/trunk/mcs/; revision=124064
2009-01-21 17:27:19 +00:00
Martin Baulig b0fd7cc86a 2009-01-21 Martin Baulig <[email protected]>
* mini.h
	(MonoCompile): Added `disable_deadce_vars' to disable removing
	unused variables.

	* mini.c
	(mini_method_compile): Set `cfg->disable_deadce_vars' when running
	inside the debugger.

	* liveness.c (mono_analyze_liveness): Don't remove any unused
	variables if `cfg->disable_deadce_vars' is set.


svn path=/trunk/mono/; revision=124060
2009-01-21 16:48:06 +00:00
Rodrigo Kumpera 1f477817f5 2009-01-21 Rodrigo Kumpera <[email protected]>
* appdomain-unload-callback.cs: New test for the AppDomain::DomainUnload
	deadlock.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=124059
2009-01-21 16:42:22 +00:00
Rodrigo Kumpera 04cea00be1 2009-01-21 Rodrigo Kumpera <[email protected]>
* domain-internals.h: Add new appdomain state MONO_APPDOMAIN_UNLOADING_START
	which signals that the unloading has started but all appdomain services must
	remain operational.

	* appdomain.c (mono_domain_unload): The initial state for unloading now
	is unloading_start and we switch to unloading after the managed call to
	AppDomain::DomainUnload has finished.

	The new unloading state has to be created because managed code in the
	DomainUnload event can depend on things like the threadpool still working.
	The domain must remain fully functional while the event executes.

	This shown as an issue due to Process::WaitForExit, which waits for
	async reads of stdout and stderr to complete. Since those are processed
	in the threadpool the code deadlocks because the DomainUnload callback
	waits for the async read finished event, which should have been set by a
	threadpool job but has been discarded due to the domain been in unload
	state.

svn path=/trunk/mono/; revision=124058
2009-01-21 16:42:13 +00:00
Sandy Armstrong ba01496b51 * Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs: Add
UIACheckChanged, UIARadioCheckChanged, UIAEnabledChanged, and
  UIATextChanged events.

* Managed.Windows.Forms/System.Windows.Forms/Form.cs: Add UIAMenuChanged
  event.

* Managed.Windows.Forms/System.Windows.Forms/Menu.cs:
* Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs: Note which
  internal APIs are being used by UIA.

svn path=/trunk/mcs/; revision=124056
2009-01-21 16:35:29 +00:00
Chris Toshok 6c78bfa32c 2009-01-21 Chris Toshok <[email protected]>
* WebClient_2_1.cs: add 1 method back in, CancelAsync.


svn path=/trunk/mcs/; revision=124052
2009-01-21 16:17:37 +00:00
Neville Gao 084b34b26b Control enabled to support accessibility.
svn path=/trunk/mcs/; revision=124045
2009-01-21 15:35:41 +00:00
Marek Safar 9c5d4fe7d7 2009-01-21 Marek Safar <[email protected]>
* typemanager.cs, ecore.cs, iterator.cs: TypeLookupExpression clean
	up.


svn path=/trunk/mcs/; revision=124029
2009-01-21 12:27:33 +00:00
Mark Probst 47e99edeaf 2009-01-21 Mark Probst <[email protected]>
* method-to-ir.c: Only apply exception constructor optimization if
	the the method actually belongs to an exception class.  Fixes
	#467456.

2009-01-21  Mark Probst  <[email protected]>

	* bug-467456.cs: New test case.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=124028
2009-01-21 12:11:38 +00:00
Atsushi Eno 10fa718746 2009-01-21 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  some refactoring. Process all schemas, including those in WSDLs.


svn path=/trunk/mcs/; revision=124026
2009-01-21 11:19:59 +00:00
Mark Probst 060d976f4c 2009-01-21 Mark Probst <[email protected]>
* metadata.c (mono_metadata_generic_param_equal): Owner as well as
	image must match.

2009-01-21  Mark Probst  <[email protected]>

	* generic-unloading.2.cs, generic-unloading-sub.2.cs: Test case
	for unloading images whose MonoGenericInst's are still in use.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=124022
2009-01-21 10:47:36 +00:00
Atsushi Eno b7fce89f1b 2009-01-21 Atsushi Enomoto <[email protected]>
* PrimitiveTesterTest.cs : disable failing test.

	* DispatchRuntimeTest.cs : disable failing test.


svn path=/trunk/mcs/; revision=124021
2009-01-21 10:29:34 +00:00
Christian Hergert 20e07de5bd 2009-01-21 Christian Hergert <[email protected]>
* TdsComm.cs: optimize Append(byte[],int,byte) for adding data to
	the buffer in the largest size of chunks possible.  also optimize
	other Append overloads to use this rather than lots of Append(byte).


svn path=/trunk/mcs/; revision=124017
2009-01-21 08:37:40 +00:00
Gonzalo Paniagua Javier 8e58dc2e7a fix the 1.1 build
svn path=/trunk/mcs/; revision=124015
2009-01-21 07:50:20 +00:00
Atsushi Eno ca61ba349a revert the previous change.
svn path=/trunk/mcs/; revision=124006
2009-01-21 07:29:19 +00:00
Atsushi Eno 05234c4105 2009-01-21 Atsushi Enomoto <[email protected]>
* Driver.cs : handle relative file path.


svn path=/trunk/mcs/; revision=124003
2009-01-21 07:21:21 +00:00
Atsushi Eno c0973facde moved svcutil from olive.
svn path=/trunk/mcs/; revision=124001
2009-01-21 07:18:55 +00:00
Gonzalo Paniagua Javier cc8331f1e6 2009-01-20 Gonzalo Paniagua Javier <[email protected]>
* TdsComm.cs: no need for the ManualResetEvent or the timeout instance
	variables.


svn path=/trunk/mcs/; revision=123991
2009-01-21 04:38:56 +00:00
Zoltan Varga ec5066c817 2009-01-21 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_delegate_trampoline): Put back the previous
	change inside a #ifdef __mono_ppc64__.

svn path=/trunk/mono/; revision=123989
2009-01-21 04:31:56 +00:00
Zoltan Varga 0a021d362c 2009-01-21 Zoltan Varga <[email protected]>
* aot-compiler.c (compile_method): Remove the previous limitation.

	* method-to-ir.c (method-to-ir.c): Add support for the constrained prefix
	on type variables in AOTed code.

svn path=/trunk/mono/; revision=123987
2009-01-21 03:19:40 +00:00
Zoltan Varga c33d9e9d1d 2009-01-21 Zoltan Varga <[email protected]>
* mono-mmap.c: Applied patch from Koushik Dutta
	([email protected]). Rework the #ifdefs so Android could use the mmap
	implementation.

svn path=/trunk/mono/; revision=123986
2009-01-21 03:15:43 +00:00
Zoltan Varga c82b14ebe7 2009-01-21 Zoltan Varga <[email protected]>
* aot-compiler.c (compile_method): Skip generic methods having type 
	constraints on their generic parameters.

svn path=/trunk/mono/; revision=123983
2009-01-21 02:44:00 +00:00
Zoltan Varga 29e43bf51f 2009-01-21 Zoltan Varga <[email protected]>
* aot-compiler.c (compile_method): Check for methods which cannot be
	encoded inside RGCTX_FETCH patches as well.

svn path=/trunk/mono/; revision=123982
2009-01-21 02:24:45 +00:00
Zoltan Varga eaae73a58f 2009-01-21 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_print_thread_dump): Fix the windows
	build.

svn path=/trunk/mono/; revision=123980
2009-01-21 01:53:56 +00:00
Mark Probst f979a62312 2009-01-21 Mark Probst <[email protected]>
* TypeBuilderTest.cs: Add test for fields in dynamic generic
	classes.

svn path=/trunk/mcs/; revision=123959
2009-01-20 23:17:53 +00:00
Mark Probst 5cfa9cdbef 2009-01-21 Mark Probst <[email protected]>
* reflection.c (resolve_object): For fields, inflate the class and
	then get the field in the inflated class.

svn path=/trunk/mono/; revision=123958
2009-01-20 23:16:31 +00:00
Mark Probst 65eff78553 2009-01-20 Mark Probst <[email protected]>
* Exception.cs: Added a comment explaining the use of trace_ips.

svn path=/trunk/mcs/; revision=123918
2009-01-20 20:18:43 +00:00
Mark Probst 8b8d9fe801 2009-01-20 Mark Probst <[email protected]>
* method-to-ir.c: Force the vtable variable in shared generic code
	for the case that they might show up on a stack trace where they
	are needed.

	* mini-exceptions.c: Save and use generic sharing info as well as
	IP in stack traces to resolve shared generic instantiations.

2009-01-20  Mark Probst  <[email protected]>

	* object-internals.h (struct _MonoException): Added a comment
	explaining the new use of trace_ips.

2009-01-20  Mark Probst  <[email protected]>

	* generic-stack-traces.2.cs: Generic sharing test for stack
	traces.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=123917
2009-01-20 20:15:29 +00:00
Zoltan Varga 324793de30 2009-01-20 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_delegate_trampoline): Revert the change which
	added a mono_get_addr_from_ftnptr () as it breaks the ia64 build.

svn path=/trunk/mono/; revision=123914
2009-01-20 18:55:05 +00:00
Mark Probst ba986b3e1f 2009-01-20 Mark Probst <[email protected]>
* method-to-ir.c: Do generic sharing for array constructors.

2009-01-20  Mark Probst  <[email protected]>

        * generic-sharing.c (inflate_other_data): Inflate array
        methods correctly.

        * loader.c, class-internals.h: Rename search_in_array_class() to
        mono_method_search_in_array_class() and make it non-static.

2009-01-20  Mark Probst  <[email protected]>

        * generic-system-arrays.2.cs: Generic sharing test case for
        arrays.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=123912
2009-01-20 18:44:26 +00:00
Marek Habersack 0da9a3c9f3 2009-01-20 Marek Habersack <[email protected]>
* AssemblyInfo.cs: made internals visible to
	System.Web.Extensions_test_net_2_0.dll

svn path=/trunk/mcs/; revision=123910
2009-01-20 18:32:26 +00:00
Rodrigo Kumpera 9edf8633ce 2009-01-20 Rodrigo Kumpera <[email protected]>
* mini-exceptions.c (mono_print_thread_dump): Add information
	about the thread state using wapi_current_thread_desc.

svn path=/trunk/mono/; revision=123877
2009-01-20 13:02:58 +00:00
Rodrigo Kumpera 8028df0bdb 2009-01-20 Rodrigo Kumpera <[email protected]>
* threads.c: Add wapi_current_thread_desc that produces
	a string representation of the current thread state.

	* threads.h: Export wapi_current_thread_desc.

svn path=/trunk/mono/; revision=123876
2009-01-20 13:02:56 +00:00
Rodrigo Kumpera 32541440bd Forgot to mention the contributor of this patch.
svn path=/trunk/mcs/; revision=123872
2009-01-20 12:11:42 +00:00
Atsushi Eno c982bb5013 2009-01-20 Atsushi Enomoto <[email protected]>
* Expression.cs : give up sortless iterator optimization.
	  Fixed bug #443490.

	* SelectNodesTests.cs : added test for bug #443490.


svn path=/trunk/mcs/; revision=123871
2009-01-20 11:37:44 +00:00
Atsushi Eno 29dd077cdd 2009-01-20 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : in some corner cases an attribute
	  may have null OwnerElement. Fixed bug #458245.

	* SelectNodesTests.cs : added test for bug #458245.


svn path=/trunk/mcs/; revision=123868
2009-01-20 10:46:06 +00:00
Atsushi Eno aa2607300a 2009-01-20 Atsushi Enomoto <[email protected]>
* XmlReaderBinarySupport.cs : do not hang in the middle of reading
	  byte chunk at some node types. Fixed bug #464229.

	* XmlReaderCommonTests.cs : added test for bug #464229.


svn path=/trunk/mcs/; revision=123866
2009-01-20 10:35:44 +00:00
Marek Habersack 2279cf0cf8 2009-01-20 Marek Habersack <[email protected]>
* Substitution.cs: added. Fixes bug #467460

2009-01-20  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added System.Web.UI.WebControls/Substitution.cs

svn path=/trunk/mcs/; revision=123865
2009-01-20 10:04:10 +00:00
Atsushi Eno d90d7d64df 2009-01-20 Atsushi Enomoto <[email protected]>
* XmlDefaultReader.cs : remove bogus overrides that blocks normal
	  Read(). It was a design flaw in .NET.

	* RelaxngReader.cs : fixed wrong text skip and ns/datatypeLibrary
	  stack pop. Fixed bug #463267.

	* RelaxngDatatypeProviderTests.cs : new test, based on bug #463267
	  by Mark Junker.

	* Commons.Xml.Relaxng_test.dll.sources : forgot to add
	  RelaxngDatatypeProviderTests.cs.

	* 463267.rng : new test file.


svn path=/trunk/mcs/; revision=123860
2009-01-20 07:32:52 +00:00
Carlos Alberto Cortez 5f5d083bdf 2009-01-19 Carlos Alberto Cortez <[email protected]>
* TreeView.cs: When handling mouse up event, check whether
	highlighted_node is null or not - usually it should be non-null
	alwaays, since the mouse down handler sets it, but some externa
	operations, such TreeNodeCollection.Clear, could set it to null.
	Fixes #438650.


svn path=/trunk/mcs/; revision=123859
2009-01-20 07:11:06 +00:00
Gonzalo Paniagua Javier 86c70cb777 2009-01-20 Gonzalo Paniagua Javier <[email protected]>
* IPAddressTest.cs: tests for bug #467472.


svn path=/trunk/mcs/; revision=123858
2009-01-20 06:38:05 +00:00
Gonzalo Paniagua Javier 975f926771 2009-01-20 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: handle sign extension for the high byte when using the
	byte[] ctor for an IPv4 address.
	Fixes bug #467472.


svn path=/trunk/mcs/; revision=123856
2009-01-20 06:31:18 +00:00
Zoltan Varga e16103a8fd 2009-01-20 Zoltan Varga <[email protected]>
* test-runner.cs: Avoid closing a stream which is still being written to.

svn path=/trunk/mono/; revision=123855
2009-01-20 06:14:33 +00:00
Atsushi Eno 337dded4ea 2009-01-20 Atsushi Enomoto <[email protected]>
* RelaxngGrammar.cs : fix confused use of datatype provider property.
	  Fixed bug #463264. Based on the patch by Mark Junker.

	* RelaxngDatatypeProviderTests.cs : new test, based on bug #463264
	  by Mark Junker.

	* 463264.rng : new test file.


svn path=/trunk/mcs/; revision=123853
2009-01-20 05:27:35 +00:00
Atsushi Eno 5e3fa39585 2009-01-20 Atsushi Enomoto <[email protected]>
* XElement.cs : iterate all attributes and see if there is
	  applicable ns prefix for current element. Fixed bug #466423.

	* XElementTest.cs : added test for bug #466423.


svn path=/trunk/mcs/; revision=123851
2009-01-20 04:50:13 +00:00
Atsushi Eno cadf8486d9 2009-01-20 Atsushi Enomoto <[email protected]>
* XDocument.cs : fix wrong indentation handling.


svn path=/trunk/mcs/; revision=123850
2009-01-20 04:46:23 +00:00
Zoltan Varga c3c74a2283 2009-01-19 Zoltan Varga <[email protected]>
* metadata.c (inflated_signature_in_image): Call signature_in_image as well.
	Hopefully fixes #458168.

svn path=/trunk/mono/; revision=123842
2009-01-19 23:22:43 +00:00
Christian Hergert 5db8a223a8 2009-01-19 Christian Hergert <[email protected]>
* object.c (mono_raise_exception): Remove call to InterlockedIncrement
	as it is performed elsewhere.

	Code is contributed under MIT/X11 license


svn path=/trunk/mono/; revision=123836
2009-01-19 23:00:30 +00:00
Christian Hergert a1d8b42490 2009-01-19 Christian Hergert <[email protected]>
* QueueManager.cs: Implement requests queued performance counter.
	* HttpRuntime.cs: Implement requests total counter.
	* HttpApplication.cs: Implement requests total counter.


svn path=/trunk/mcs/; revision=123835
2009-01-19 22:35:35 +00:00
Christian Hergert deaf41ba08 2009-01-19 Christian Hergert <[email protected]>
* mono-perfcounters-def.h: Add counters for asp.net requests total and
	requests queued.
	* object.c (mono_raise_exception): Increment the exceptions total
	counter when an exception is thrown.
	* class-internals.h: Add a location for storing the total number of
	asp.net requests served.
	* mono-perfcounters.c: Implement update support for asp.net counters
	from the class libraries. Implement read support for asp.net counters
	and exceptions total counter.


svn path=/trunk/mono/; revision=123834
2009-01-19 22:34:11 +00:00
Gonzalo Paniagua Javier 2be8842ab4 2009-01-19 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: don't throw when there's no ipv6 configuration.


svn path=/trunk/mcs/; revision=123832
2009-01-19 22:25:29 +00:00
Zoltan Varga 1f95bde878 2009-01-19 Zoltan Varga <[email protected]>
* Makefile (check): Add a standard check target.

svn path=/trunk/mcs/; revision=123831
2009-01-19 22:23:34 +00:00
Rodrigo Kumpera 2f110c06eb 2009-01-19 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Tests for the new constructors.

svn path=/trunk/mono/; revision=123827
2009-01-19 19:48:03 +00:00
Rodrigo Kumpera 33312e5401 2009-01-19 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Added OP_EXPAND_*

	* cpu-x86.md: Same.

	* mini-x86.c (mono_arch_output_basic_block): Same.

	* simd-intrinsics.c (simd_intrinsic_emit_setter): Add support for single element constructors.

svn path=/trunk/mono/; revision=123826
2009-01-19 19:47:56 +00:00
Rodrigo Kumpera a38f485284 2009-01-19 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add x86_movd_xreg_membase.

svn path=/trunk/mono/; revision=123825
2009-01-19 19:47:54 +00:00
Rodrigo Kumpera 097cc604c7 2009-01-19 Rodrigo Kumpera <[email protected]>
* Vector*.cs: Add ToString, single element constructors
	and some helper constants.

svn path=/trunk/mcs/; revision=123824
2009-01-19 19:47:35 +00:00
Zoltan Varga f965f48bad 2009-01-19 Zoltan Varga <[email protected]>
* iltests.il.in: Add a test for #467385.

svn path=/trunk/mono/; revision=123813
2009-01-19 16:21:09 +00:00
Zoltan Varga 5620d46ab8 2009-01-19 Zoltan Varga <[email protected]>
* loader.c (search_in_array_class): Call mono_class_setup_methods () before
	accessing klass->methods. Fixes #467385.

svn path=/trunk/mono/; revision=123812
2009-01-19 16:18:25 +00:00
Ivan Zlatev d802dcb425 2009-01-19 Ivan N. Zlatev <[email protected]>
* ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu
	item is disabled.

svn path=/trunk/mcs/; revision=123801
2009-01-19 15:13:28 +00:00
Ivan Zlatev d583c01342 2009-01-19 Ivan N. Zlatev <[email protected]>
* MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
	[Fixes bug #467285]

svn path=/trunk/mcs/; revision=123800
2009-01-19 15:13:24 +00:00
Carlos Alberto Cortez 2501c05951 2009-01-19 Carlos Alberto Cortez <[email protected]>
* MonthCalendar.cs: When handling the selection changes using the
	mouse, don't set SelectionRange if the selection range didn't actually
	change. This matters because, even if we set the range to the same
	previous range, an extra DateChanged event is fired. Just to be clear:
	SelectionRage property doesn't check whether the new value is
	different to the previous one (by ref equals doesn't work here).
	Fixes other bits of #364914.


svn path=/trunk/mcs/; revision=123799
2009-01-19 15:09:59 +00:00
Carlos Alberto Cortez 401e3d3b34 2009-01-19 Carlos Alberto Cortez <[email protected]>
* MonthCalendar.cs: Remove the extra OnDateChanged call when handling
	selection using the keyboard, since we are already firing this event
	when setting SelectionRange. Also don't set SelectionRange if the
	previous and the new value are the same (the property, just as .net
	does, doesn't check whether the previous value and the new one are the
	same). This saves us from firing OnDateChanged event if the selection
	range didn't change actually.
	Fixes the remaining bits of #364914.


svn path=/trunk/mcs/; revision=123798
2009-01-19 14:29:05 +00:00
Bill Holmes 6e8886f889 2009-01-19 Bill Holmes <[email protected]>
* mono-path.c (mono_path_canonicalize): Adding support for UNC
	   paths on Windows.

	Contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=123795
2009-01-19 13:58:19 +00:00
Bill Holmes f0e7628409 2009-01-19 Bill Holmes <[email protected]>
* gmisc-win32.c (g_path_is_absolute):  Adding support for UNC
	  paths on Windows.

	Contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=123794
2009-01-19 13:57:33 +00:00
Marek Habersack 5e95e86db1 2009-01-19 Marek Habersack <[email protected]>
* HttpWebRequest.cs: implemented the UseDefaultCredentials
	property, patch from Florian Maetschke <[email protected]>,
	thanks!

svn path=/trunk/mcs/; revision=123792
2009-01-19 13:22:39 +00:00
Atsushi Eno 7f8ae0d14d 2009-01-19 Atsushi Enomoto <[email protected]>
* ClientBase.cs : implement InvokeAsync(). Not sure if it works yet.


svn path=/trunk/mcs/; revision=123791
2009-01-19 12:27:22 +00:00
Carlos Alberto Cortez d3ede4c6d0 2009-01-19 Carlos Alberto Cortez <[email protected]>
* ListBoxTest.cs: New test for RemoveAt and selection.


svn path=/trunk/mcs/; revision=123788
2009-01-19 12:12:06 +00:00
Carlos Alberto Cortez dd2f1c4c01 2009-01-19 Carlos Alberto Cortez <[email protected]>
* ListBox.cs: When removing an item and the last item is selected,
	remove it from the selection, and if selection mode is One try to
	select the new last item.
	Fixes #465422.


svn path=/trunk/mcs/; revision=123787
2009-01-19 12:09:21 +00:00
Atsushi Eno cddc74d2cd 2009-01-19 Atsushi Enomoto <[email protected]>
* CodeLiteral.cs : use Convert.ChangeType() override that is
          available in 2.1.


svn path=/trunk/mcs/; revision=123783
2009-01-19 11:52:36 +00:00
Jb Evain cd845841a7 delete unused profile
svn path=/trunk/mcs/; revision=123775
2009-01-19 10:31:22 +00:00
Jb Evain 5169767273 2009-01-19 Jb Evain <[email protected]>
* Descriptors/System.ServiceModel.xml
	* Makefile: add new linking profile for wcf.


svn path=/trunk/mcs/; revision=123774
2009-01-19 10:30:34 +00:00
Atsushi Eno 78ca831e99 2009-01-19 Atsushi Enomoto <[email protected]>
* ClientProxyGenerator.cs : fix reflection-based GetConstructor()
          so that it can work in 2.1 profile (.ctor is made internal).

        * CodeModule.cs : use DefineDynamicModule() which is avaiable in 2.1.


svn path=/trunk/mcs/; revision=123773
2009-01-19 09:37:27 +00:00
Zoltan Varga 9b6477bf64 2009-01-19 Zoltan Varga <[email protected]>
* SqliteCommandUnitTests.cs: Fix test ordering issues with the new nunit
	version by marking Create () as [SetUp] instead of [Test].

svn path=/trunk/mcs/; revision=123766
2009-01-19 04:00:56 +00:00
Zoltan Varga 42f5fb517d 2009-01-19 Zoltan Varga <[email protected]>
* SqliteCommandUnitTests.cs: Fix test ordering issues with the new nunit
	version by marking Create () as [SetUp] instead of [Test].

svn path=/trunk/mcs/; revision=123764
2009-01-19 03:50:56 +00:00
Zoltan Varga 0b6ff4a64d 2009-01-18 Zoltan Varga <[email protected]>
* marshal9.cs: Change a test to be compatible with MS.NET.

svn path=/trunk/mono/; revision=123757
2009-01-18 22:54:21 +00:00
Zoltan Varga f0a4967765 2009-01-18 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_custom): Avoid calling MarshalNativeToManaged
	for byval arguments without an [Out] attribute. Fixes #467212.

svn path=/trunk/mono/; revision=123756
2009-01-18 22:53:52 +00:00
Zoltan Varga 14b11f1ecf 2009-01-18 Zoltan Varga <[email protected]>
* attach.c: Applied patch from Koushik Dutta ([email protected]). 
	Fix compilation under android.

svn path=/trunk/mono/; revision=123755
2009-01-18 22:29:54 +00:00
Rodrigo Kumpera a925f3d682 2009-01-18 Rodrigo Kumpera <[email protected]>
* mini.c (mini_thread_cleanup): Don't cleanup TLS storage if the
	thread been cleaned up is not the same currently in execution.

	Fixes appdomain-unload crashes on windows, osx and linux variants
	without the __thread keyword.

svn path=/trunk/mono/; revision=123754
2009-01-18 22:13:25 +00:00
Gert Driesen 8c27be40e5 * OdbcDataReader.cs: Fixed GetBytes with limited length. Added reader
state and argument checks.

svn path=/trunk/mcs/; revision=123751
2009-01-18 21:09:06 +00:00
Gert Driesen 4efbca7c6d * DataReaderTest.cs: Added indexer tests. Added/improved GetBytes
tests.
* IDbCommandTest.cs: Added test for ExecuteReader with CommandText
that is not initialized. Improved ExecuteScalar test.

svn path=/trunk/mcs/; revision=123750
2009-01-18 21:06:07 +00:00
Zoltan Varga 36453ac9b0 2009-01-18 Zoltan Varga <[email protected]>
* sgen-gc.c: Instead of scanning gray objects after all roots have been 
	processed, scan them directly after they are copied, to achieve better locality
	and cache usage.

svn path=/trunk/mono/; revision=123749
2009-01-18 20:54:55 +00:00
Massimiliano Mantione b2aef110a8 mono-profiler-logging.c: bug fixing.
svn path=/trunk/mono/; revision=123748
2009-01-18 20:48:38 +00:00
Gert Driesen 83d1a204fa * OdbcCommand.cs: Do not allow negative CommandTimeout. Reject invalid
value for CommandType and UpdatedRowSource. In Dispose, clear
CommandText (2.0 only) and Parameters. Include method that is being
executed in the exception messages for Connection and CommandText
verification.
* OdbcCommandTest.cs: Added tests for CommandTimeout,
UpdatedRowSource, Dispose and ResetCommandTimeout. Added
ExecuteNonQuery/ExecuteReader/ExecuteScalar tests for a connection
that is not initialized or closed.

svn path=/trunk/mcs/; revision=123742
2009-01-18 17:38:35 +00:00
Zoltan Varga 10cabfadcc 2009-01-18 Zoltan Varga <[email protected]>
* Process.cs: Avoid closing the duplicated process handle in
	ProcessWaitHandle, it is done automatically by the WaitHandle.Dispose ().
	Fixes #464628.

svn path=/trunk/mcs/; revision=123738
2009-01-18 16:00:11 +00:00
Zoltan Varga c3406ea966 2009-01-18 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_flush_icache): Applied patch from Koushik Dutta
	([email protected]). Implement this for android.

svn path=/trunk/mono/; revision=123737
2009-01-18 14:50:39 +00:00
Zoltan Varga 55a3c34478 2009-01-18 Zoltan Varga <[email protected]>
* socket-io.c: Applied patch from Koushik Dutta
	([email protected]). Disable IPV6 when running under android.

svn path=/trunk/mono/; revision=123736
2009-01-18 14:48:45 +00:00
Zoltan Varga 11edc7e634 2009-01-18 Zoltan Varga <[email protected]>
* mono-mmap.c: Applied patch from Koushik Dutta
	([email protected]). Add an #ifdef HAVE_SHM_OPEN.

svn path=/trunk/mono/; revision=123735
2009-01-18 14:47:18 +00:00
Zoltan Varga 53ce924708 2009-01-18 Zoltan Varga <[email protected]>
* io.c (GetDiskFreeSpaceEx): Applied patch from Koushik Dutta
	([email protected]). Disable this on android.

svn path=/trunk/mono/; revision=123734
2009-01-18 14:45:51 +00:00
Zoltan Varga 23e9facf3e 2009-01-18 Zoltan Varga <[email protected]>
* include/private/gcconfig.h: Applied patch from Koushik Dutta
	([email protected]). Define SEARCH_FOR_DATA_START for android.

svn path=/trunk/mono/; revision=123732
2009-01-18 14:44:36 +00:00
Marek Safar 2101a3d1e7 2009-01-18 Marek Safar <[email protected]>
* ReaderWriterLockSlim.cs: Implemented all properties.


svn path=/trunk/mcs/; revision=123729
2009-01-18 13:24:26 +00:00
Zoltan Varga 4a5264b294 2009-01-18 Zoltan Varga <[email protected]>
* helpers.c (mono_disassemble_code): Avoid assembler errors if the id
	begins with a digit.

svn path=/trunk/mono/; revision=123722
2009-01-18 01:10:49 +00:00
Zoltan Varga 02f2bed733 2009-01-18 Zoltan Varga <[email protected]>
* method-to-ir.c: Call mono_gc_get_write_barrier () instead of
	mono_marshal_get_write_barrier ().

svn path=/trunk/mono/; revision=123721
2009-01-18 01:01:48 +00:00
Zoltan Varga cc5877a778 2009-01-18 Zoltan Varga <[email protected]>
* icall.c (ves_icall_InternalExecute): Add write barriers.

	* marshal.c (mono_marshal_get_write_barrier): Remove, this is now done in
	the GC code.

	* sgen-gc.c: Implement write barriers in IL code.

svn path=/trunk/mono/; revision=123720
2009-01-18 01:01:08 +00:00
Zoltan Varga 1d7ced18c5 2009-01-18 Zoltan Varga <[email protected]>
* icall.c (ves_icall_InternalExecute): Add write barriers.

	* marshal.c (mono_marshal_get_write_barrier): Remove, this is now done in
	the GC code.

	* sgen-gc.c: Implement write barriers in IL code.

svn path=/trunk/mono/; revision=123719
2009-01-18 01:00:51 +00:00
Gert Driesen a8a338ba57 Added input param to sp_326182b.
svn path=/trunk/mcs/; revision=123717
2009-01-17 22:40:06 +00:00
Gert Driesen 7ecb22b4dd * SqlCommandBuilderTest.cs: Improved DeriveParameters test.
* SqlCommandTest.cs: Added InputOutput parameter to
StoredProc_ParameterTest.

svn path=/trunk/mcs/; revision=123716
2009-01-17 22:39:14 +00:00
Zoltan Varga f16861ac22 2009-01-17 Zoltan Varga <[email protected]>
* configure.in: Complete the OPROFILE checks.

svn path=/trunk/mono/; revision=123711
2009-01-17 22:10:18 +00:00
Jb Evain d6e04d2576 2009-01-17 Jb Evain <[email protected]>
* AssemblyInfo.cs: use appropriate public key for the NET_2_1 profile.


svn path=/trunk/mcs/; revision=123709
2009-01-17 20:45:20 +00:00
Rodrigo Kumpera 41ac328469 In .:
2009-01-17  Rodrigo Kumpera  <[email protected]>
	* decompose.c (mono_decompose_vtype_opts): Fix the decomposition
	of OP_VCALL_* ops for 8 bytes vtypes on 32 bits archs and platorms
	that pass them on a register pair.

	This affects windows, OSX and FreeBSD. The mono/tests/handleref.exe
	test was crashing due to that.


svn path=/trunk/mono/; revision=123706
2009-01-17 20:15:59 +00:00
Gert Driesen 0a1a4828a1 * SqlParameter.cs: Renamed isDirty to typeChanged; it is now now only
used to indicate whether the type of the parameter has been updated.
Changed signature of 'updated' argument in GetFrameworkValue to ref
to match delegate in Mono.Data.Tds, and convert value if either the
type has been changed or if the 'updated' argument is true (which -
for now - means the value or size changed in TdsMetaParameter).
Various fixes for derived parameters:
- parameter_type 2 means InputOutput parameter, while 3 means Output;
- Only set precision and scale is type is decimal.
- When type has variable size, then also set Size.

svn path=/trunk/mcs/; revision=123705
2009-01-17 20:12:24 +00:00
Gert Driesen 8a05d1a52e * TdsMetaParameter.cs: Modified signature of delegate to also allow
conversion to be triggered by changes in TdsMetaParameter.

svn path=/trunk/mcs/; revision=123704
2009-01-17 20:11:02 +00:00
Geoff Norton ae207cb472 2009-01-17 Geoff Norton <[email protected]>
* image.c: Avoid trying to walk the reference table of dynamic assemblies.

svn path=/trunk/mono/; revision=123699
2009-01-17 19:06:44 +00:00
Geoff Norton c6316751ba 2009-01-17 Geoff Norton <[email protected]>
* image.c: When unloading the image->references table, there can be gaps
        in it.  Ensure that we iterate every entry to avoid leaking assembly references
        when unloading an appdomain.

svn path=/trunk/mono/; revision=123698
2009-01-17 18:43:06 +00:00
Marek Safar a928f1d924 Flush.
svn path=/trunk/mcs/; revision=123692
2009-01-17 16:43:38 +00:00
Marek Safar 555b9e0f75 Update.
svn path=/trunk/mcs/; revision=123691
2009-01-17 16:33:19 +00:00
Marek Safar f92e7c3dc4 2009-01-17 Marek Safar <[email protected]>
* convert.cs, ecore.cs: Explicitly casts type arguments to pass
	verifier checks.


svn path=/trunk/mcs/; revision=123690
2009-01-17 16:32:53 +00:00
Carlos Alberto Cortez d02a5e6cf8 2009-01-16 Carlos Alberto Cortez <[email protected]>
* System.Windows.Forms_test.dll.sources: Add ClipboardTest.cs.


svn path=/trunk/mcs/; revision=123679
2009-01-17 01:35:21 +00:00
Carlos Alberto Cortez efcff32593 * ClipboardTest.cs: Ouch, I am an idiot - the members used in the new
file are 2.0.

2009-01-16  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=123678
2009-01-17 01:34:44 +00:00
Carlos Alberto Cortez 28f89005c5 2009-01-16 Carlos Alberto Cortez <[email protected]>
* ClipboardTest.cs: New tests file.


svn path=/trunk/mcs/; revision=123677
2009-01-17 01:26:47 +00:00
Gert Driesen 416d711c89 Added sp with mix of input and output parameters.
svn path=/trunk/mcs/; revision=123675
2009-01-17 00:46:00 +00:00
Gert Driesen b49af57c79 Improved test for DeriveParameters.
svn path=/trunk/mcs/; revision=123674
2009-01-17 00:45:35 +00:00
Mike Gorse f05d7c0085 * Splitter.cs: Make MaxSize internal so that UIA code can use it.
svn path=/trunk/mcs/; revision=123673
2009-01-17 00:25:52 +00:00
Gert Driesen 42d7ff0754 Use existing sp for testing bug326182.
svn path=/trunk/mcs/; revision=123671
2009-01-16 23:42:44 +00:00
Rodrigo Kumpera e456318ec3 2009-01-16 Rodrigo Kumpera <[email protected]>
* handles.c (_wapi_handle_timedwait_signal_handle): Don't use the
	set_wait_handle/clear_wait_handle machinery for alertable waits in
	case of non-alertable waits.

	Non-alertable waits must continue and wait on the cond as this will
	release the lock. Otherwise this will cause a deadlock as anyone trying
	to pulse the cond will block trying to acquire the said lock because
	the thread in non-alertable wait will be busy looping in WaitForSingleObjectEx
	or similar function, never releasing the lock.

	Thou this fixes quite a few of the hangs introduced by non-pooling alertable
	waits, the long term plan is to verify if all non-alertable waits really need
	to be as such.

svn path=/trunk/mono/; revision=123669
2009-01-16 23:35:13 +00:00
Gert Driesen 0886e7d542 Improve test to also cover specifying value in .ctor.
svn path=/trunk/mcs/; revision=123668
2009-01-16 23:25:28 +00:00
Mario Carrion 9482fb95df 2009-01-16 Mario Carrion <[email protected]>
* ColumnHeader.cs: UIA Support: raising internal event
          UIATextChanged when changing Text.
                

svn path=/trunk/mcs/; revision=123665
2009-01-16 22:42:14 +00:00
Zoltan Varga 3511f3f78d 2009-01-16 Zoltan Varga <[email protected]>
* sgen-gc.c: Add support for allocating a nursery at an aligned address, to
	speed up ptr-in-nursery checks.

svn path=/trunk/mono/; revision=123658
2009-01-16 21:20:51 +00:00
Carlos Alberto Cortez 58d97b923d 2009-01-16 Carlos Alberto Cortez <[email protected]>
* X11Structs.cs:
	* XplatUIX11.cs: Properly encode/decode the unicode strings we
	store/retrieve in the Clipboard. Also, since we try to convert the
	data to different formats, separate the source and the result of
	it, so we can always fallback to the original and don't mix wrong
	conversions.


svn path=/trunk/mcs/; revision=123653
2009-01-16 20:46:48 +00:00
Zoltan Varga 1f8ce1f22a 2009-01-16 Zoltan Varga <[email protected]>
* threads.c (mono_threads_abort_appdomain_threads): Abort threads outside the
	threads_lock () to prevent deadlocks.

svn path=/trunk/mono/; revision=123642
2009-01-16 19:05:22 +00:00
Marek Safar f1ddc0e604 New test.
svn path=/trunk/mcs/; revision=123625
2009-01-16 16:26:27 +00:00
Marek Safar b335b2bec6 2009-01-16 Marek Safar <[email protected]>
* nullable.cs (LiftedBinaryOperator): Check for all possible null
	expressions.


svn path=/trunk/mcs/; revision=123624
2009-01-16 16:26:11 +00:00
Marek Safar 5edec64ee1 New tests.
svn path=/trunk/mcs/; revision=123623
2009-01-16 16:24:26 +00:00
Jonathan Pobst f0619d2614 2009-01-16 Jonathan Pobst <[email protected]>
* FormEventTest.cs: Disable failing test that was enabled in r118455.

svn path=/trunk/mcs/; revision=123621
2009-01-16 16:06:43 +00:00
Gonzalo Paniagua Javier 4181e28735 2009-01-16 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: add directory listing test when the $HOME is
	not /.


svn path=/trunk/mcs/; revision=123616
2009-01-16 15:40:23 +00:00
Gonzalo Paniagua Javier 12ad10aa49 2009-01-16 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: adjust to the correct directory when listing too.
	Fixes bug #466530.


svn path=/trunk/mcs/; revision=123614
2009-01-16 15:38:56 +00:00
Zoltan Varga ce5f40e70a 2009-01-16 Zoltan Varga <[email protected]>
* configure.in: Avoid error messages in the quiet code if libgc/Makefile
	does not exist yet. Fixes #466814.

svn path=/trunk/mono/; revision=123612
2009-01-16 15:29:29 +00:00
Paolo Molaro a3b6429508 Fri Jan 16 15:21:21 CET 2009 Paolo Molaro <[email protected]>
* exceptions-ppc.c: tweaks from malc (OV-Soft) to fix the size of the
	trampoline code. Include ucontext.h only if available.


svn path=/trunk/mono/; revision=123609
2009-01-16 14:23:17 +00:00
Mike Gorse d9026c506d * TextControl.cs: Add UIASelectionChanged event.
svn path=/trunk/mcs/; revision=123576
2009-01-16 03:21:17 +00:00
Zoltan Varga 78238a4c44 2009-01-16 Zoltan Varga <[email protected]>
* mono-hash.c: Change the roots to use write barriers when running with
	SGEN, to avoid scanning all the hash nodes at every minor collection.

svn path=/trunk/mono/; revision=123561
2009-01-16 01:49:51 +00:00
Zoltan Varga 0270ebc18a 2009-01-16 Zoltan Varga <[email protected]>
* sgen-gc.c gc-internal.h: Add a new root type root-with-wbarrier, which
	does not need to be scanned during minor collections, since writes to it
	must use write barriers.

svn path=/trunk/mono/; revision=123560
2009-01-16 01:47:37 +00:00
Atsushi Eno 2571e8fa43 2009-01-16 Atsushi Enomoto <[email protected]>
* DataColumnTest.cs : try a string comparison fix.


svn path=/trunk/mcs/; revision=123557
2009-01-16 00:50:33 +00:00
Ivan Zlatev 8879e55b04 2009-01-16 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Forward the first key events to the editing control.
	[Fixes bug #457307]

svn path=/trunk/mcs/; revision=123555
2009-01-16 00:26:16 +00:00
Rodrigo Kumpera 8ff0d9b502 2009-01-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add pe nt header verification.

svn path=/trunk/mono/; revision=123549
2009-01-15 23:28:24 +00:00
Rodrigo Kumpera d46dc7e2b1 2009-01-15 Rodrigo Kumpera <[email protected]>
* header-tests.md: Add more tests for pe optional header.

svn path=/trunk/mono/; revision=123548
2009-01-15 23:28:23 +00:00
Rodrigo Kumpera d8a6e7dbe9 2009-01-15 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add pe-optional-heaver var.
	Improve debugging messages.

svn path=/trunk/mono/; revision=123547
2009-01-15 23:28:22 +00:00
Marek Safar b21f3d2726 2009-01-15 Marek Safar <[email protected]>
A fix for bug #466634
	* statement.cs: Add reference for nested storey when only this
	is captured.


svn path=/trunk/mcs/; revision=123542
2009-01-15 23:05:43 +00:00
Marek Safar c9626aacb9 set svn:eol-style
svn path=/trunk/mcs/; revision=123521
2009-01-15 19:05:02 +00:00
Marek Safar 9ad202e944 2009-01-15 Marek Safar <[email protected]>
A fix for bug #466474
	* codegen.cs: Emit SecurityPermissionAttribute when -unsafe option
	was specified.


svn path=/trunk/mcs/; revision=123519
2009-01-15 18:47:24 +00:00
Jb Evain 25950eda77 refactoring
svn path=/trunk/mcs/; revision=123508
2009-01-15 17:40:00 +00:00
Jb Evain 61d786b69a small refactoring
svn path=/trunk/mcs/; revision=123505
2009-01-15 17:34:05 +00:00
Jb Evain 0e67f5045c we pass this guy
svn path=/trunk/mcs/; revision=123500
2009-01-15 17:16:19 +00:00
Jb Evain 0e24e93af6 2009-01-15 Jb Evain <[email protected]>
* Lookup.cs: propage the appropriate comparer for the lookup.


svn path=/trunk/mcs/; revision=123499
2009-01-15 17:15:49 +00:00
Jb Evain 2c8b598674 update csproj
svn path=/trunk/mcs/; revision=123497
2009-01-15 16:46:38 +00:00
Jb Evain 446d54ef79 add new tests
svn path=/trunk/mcs/; revision=123496
2009-01-15 16:45:22 +00:00
Jb Evain 2d3249757f 2009-01-15 Jb Evain <[email protected]>
* LookupTest.cs: new tests.


svn path=/trunk/mcs/; revision=123495
2009-01-15 16:44:22 +00:00
Marek Safar 320c0d901f New tests.
svn path=/trunk/mcs/; revision=123491
2009-01-15 15:23:45 +00:00
Marek Safar d86b373564 2009-01-15 Marek Safar <[email protected]>
* iterators.cs, anonymous.cs, expression.cs, statement.cs, ecore.cs:
	Fixed nested stories parent referencing process. Also fixes #463985.


svn path=/trunk/mcs/; revision=123490
2009-01-15 15:23:30 +00:00
Marek Safar f28ef6666c warning.
svn path=/trunk/mcs/; revision=123486
2009-01-15 15:19:13 +00:00
Leszek 'skolima' Ciesielski 09e0a2c27a 2009-01-15 Leszek Ciesielski <[email protected]>
* Uri.cs: Use registered UriParser when a custom schema is passed
	Fixes 464235, but is a bit of a hack
	* UriTest3.cs: test for bug 464235


svn path=/trunk/mcs/; revision=123481
2009-01-15 13:40:56 +00:00
Zoltan Varga d0d735d012 2009-01-15 Zoltan Varga <[email protected]>
* gc.c: Fix a few warnings when using SGEN.

svn path=/trunk/mono/; revision=123469
2009-01-15 10:50:25 +00:00
Gonzalo Paniagua Javier ebca9df905 synch
svn path=/trunk/mcs/; revision=123455
2009-01-15 06:11:13 +00:00
Gonzalo Paniagua Javier 3f8bc3c7ef 2009-01-15 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerRequest.cs: always initialize 'version'.
	* HttpConnection.cs: the socket might already be disconnected when
	shutting down.


svn path=/trunk/mcs/; revision=123453
2009-01-15 06:03:51 +00:00
Gonzalo Paniagua Javier 7c6c3ba73b Updated
svn path=/trunk/mcs/; revision=123451
2009-01-15 05:47:13 +00:00
Gonzalo Paniagua Javier f1c1d40b44 2009-01-14 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: if the buffer has been killed, return -1 for
	its length. Fixes regression in System.Runtime.Remoting.


svn path=/trunk/mcs/; revision=123449
2009-01-15 04:56:16 +00:00
Atsushi Eno f3f961589b 2009-01-15 Atsushi Enomoto <[email protected]>
* JsonReader.cs : consume ',' between items in an array.


svn path=/trunk/mcs/; revision=123446
2009-01-15 02:59:13 +00:00
Gonzalo Paniagua Javier 889720543b 2009-01-14 Gonzalo Paniagua Javier <[email protected]>
* Tds70.cs: fix my mistake in the previous patch.


svn path=/trunk/mcs/; revision=123445
2009-01-15 02:52:28 +00:00
Gonzalo Paniagua Javier 64e17f8723 2009-01-14 Gonzalo Paniagua Javier <[email protected]>
* TdsMetaParameter.cs: set_RawValue now calls set_Value so that
	'isUpdated' is set.


svn path=/trunk/mcs/; revision=123444
2009-01-15 01:06:52 +00:00
Gonzalo Paniagua Javier 8ecea7d987 2009-01-14 Gonzalo Paniagua Javier <[email protected]>
* Tds70.cs: more '@' handling.


svn path=/trunk/mcs/; revision=123443
2009-01-15 01:05:43 +00:00
Rodrigo Kumpera 0a5b74e7bd 2009-01-14 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add pe optional header verification.

svn path=/trunk/mono/; revision=123441
2009-01-15 00:23:40 +00:00
Rodrigo Kumpera 1154ecf3eb 2009-01-14 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Improve debugging.

	* header-tests.md: Add tests for the optional header.

svn path=/trunk/mono/; revision=123440
2009-01-15 00:23:39 +00:00
Rodrigo Kumpera 23b6b7571c 2009-01-14 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Revert decision of making base 16 the default.
	It makes for shorter tests, but it's confusing.

	* header-tests.md: Fix the tests to use an explicit 0x for hexadecimal numbers.

svn path=/trunk/mono/; revision=123439
2009-01-15 00:23:37 +00:00
Rodrigo Kumpera e28c9495e9 2009-01-14 Rodrigo Kumpera <[email protected]>
* header-tests.md: Add tests for characteristics.

svn path=/trunk/mono/; revision=123438
2009-01-15 00:23:36 +00:00
Rodrigo Kumpera 414bd3ce7f 2009-01-14 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Improved debugging and made small cleanup on macro names.

svn path=/trunk/mono/; revision=123437
2009-01-15 00:23:35 +00:00
Zoltan Varga fc005e6fc2 Fix a warning.
svn path=/trunk/mono/; revision=123435
2009-01-15 00:04:29 +00:00
Zoltan Varga 0540e3821b 2009-01-15 Zoltan Varga <[email protected]>
* mono-hash.c: Rewrite the SGEN specific parts to use a user defined
	marker function instead of registering each GC node as a hash root.

svn path=/trunk/mono/; revision=123434
2009-01-15 00:02:45 +00:00
Zoltan Varga a5e4780a0e 2009-01-15 Zoltan Varga <[email protected]>
* sgen-gc.c: Add support for user defined marker functions, used by
	MonoGHashTable to avoid registering a GC root for every hash node.

svn path=/trunk/mono/; revision=123433
2009-01-15 00:01:38 +00:00
Mark Probst 8f59010d9c 2009-01-15 Mark Probst <[email protected]>
* mini.c: mono_domain_lookup_shared_generic() takes an open method
	and doesn't check whether it's sharable, like it was before
	removing the shared generics hash.  This brings IronPython
	performance back to what it was before that change.

svn path=/trunk/mono/; revision=123432
2009-01-15 00:01:30 +00:00
Zoltan Varga 7c53995469 2009-01-14 Zoltan Varga <[email protected]>
* handles-private.h (_wapi_handle_set_signal_state): Set the signalled state
	of the handle while locking the global signal cond mutex.

	* wait.c (WaitForMultipleObjectsEx): Check the signalled state of handles
	inside the critical section before waiting, otherwise we could go to waiting
	even when the handles are already signalled.

svn path=/trunk/mono/; revision=123421
2009-01-14 21:42:29 +00:00
Zoltan Varga 38444bef3b 2009-01-14 Zoltan Varga <[email protected]>
* RegexTrial.cs: Run all tests with the CIL Compiler too.

svn path=/trunk/mcs/; revision=123419
2009-01-14 21:36:01 +00:00
Zoltan Varga ebd4ba561f 2009-01-14 Zoltan Varga <[email protected]>
* RegexBugs.cs: Add a test for #466151.

svn path=/trunk/mcs/; revision=123418
2009-01-14 21:34:46 +00:00
Zoltan Varga 824710f744 2009-01-14 Zoltan Varga <[email protected]>
* CILCompiler.cs: Avoid throwing exceptions for a few more unhandled opcodes.
	Implement the reverse/ignorecase versions of Reference. Fix the reverse
	version of Bitmap. Error out if a Jump opcode jumps outside the current
	pc range. This works around #466151.

svn path=/trunk/mcs/; revision=123417
2009-01-14 21:33:40 +00:00
Gonzalo Paniagua Javier 7b8c919f76 2009-01-14 Gonzalo Paniagua Javier <[email protected]>
* Tds70.cs: send the leading '@' for parameters that do not have one.
	Fixes bug #466071.
	Thanks to William Shallum.


svn path=/trunk/mcs/; revision=123403
2009-01-14 20:12:04 +00:00
Marek Habersack 0f9e03caae 2009-01-14 Marek Habersack <[email protected]>
* AspGenerator.cs: implemented a work around which allows the
	server controls embedded in client tag attributes to be parsed and
	compiled.

svn path=/trunk/mcs/; revision=123397
2009-01-14 19:30:43 +00:00
Andrés G. Aragoneses 3049d29b13 * Managed.Windows.Forms/System.Windows.Forms/Application.cs: Oops,
launch the copied handler of PreRun instead of the global one
  (gendarme would bark otherwise). (Improving r123375)

svn path=/trunk/mcs/; revision=123379
2009-01-14 17:00:49 +00:00
Jb Evain 7248236f72 2009-01-14 Jb Evain <[email protected]>
* AssemblyInfo.cs: fix the public key for the NET_2_1 case.


svn path=/trunk/mcs/; revision=123378
2009-01-14 16:56:11 +00:00
Andrés G. Aragoneses 41342a340b * Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:
* Managed.Windows.Forms/System.Windows.Forms/Application.cs: Move the
  PreRun event fire to the end of the XplatUI static ctor (we don't
  move the PreRun event to this class because its usage would cause the
  call to the static ctor). This way we can get a11y support for
  dialogs that run without App.Run.

svn path=/trunk/mcs/; revision=123375
2009-01-14 16:44:49 +00:00
Sebastien Pouliot 307ea3f97c 2009-01-14 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Xml.dll.sources: Add NamespaceHandling


svn path=/trunk/mcs/; revision=123373
2009-01-14 16:38:18 +00:00
Sebastien Pouliot 25c6f1460f 2009-01-14 Sebastien Pouliot <[email protected]>
* NamespaceHandling.cs: New. Enum for Silverlight 2. Microsoft's 
	System.Xml.Linq.dll (often bundled in XAP files) needs it (or we 
	throw a TypeLoadException).
	* XmlWriterSettings.cs: Add SL2 specific NamespaceHandling property


svn path=/trunk/mcs/; revision=123372
2009-01-14 16:37:56 +00:00
Geoff Norton b44588e16a 2009-01-14 Geoff Norton <[email protected]>
* supportw.c: Use unsigned int instead of uint, as its more portable.
        Fixes compilation issue on Mac OSX.

svn path=/trunk/mono/; revision=123364
2009-01-14 16:04:45 +00:00
Geoff Norton 05aa2e43e2 2009-01-13 Geoff Norton <[email protected]>
* appdomain.c|h: Expose mono_domain_unload to the embedding api so that
        AppDomains created on the native side can be cleaned up on the native side.

svn path=/trunk/mono/; revision=123361
2009-01-14 16:01:07 +00:00
Andrés G. Aragoneses ffd88088da * Managed.Windows.Forms/System.Windows.Forms/ListView.cs: New internal
property to know the inner array's length of the location of items,
  in order to avoid a try-catch strategy for the case when this array
  has not been resized yet (for reference, look at r123288). r: jpobst

svn path=/trunk/mcs/; revision=123360
2009-01-14 15:59:04 +00:00
Mark Probst c00d15edfd 2009-01-14 Mark Probst <[email protected]>
* method-to-ir.c: Handle delegate invocation optimization earlier,
	otherwise it would be handled (much more slowly) by the
	final/sealed optimization.

svn path=/trunk/mono/; revision=123349
2009-01-14 13:21:59 +00:00
Atsushi Eno ae7873c0cd 2009-01-14 Atsushi Enomoto <[email protected]>
* ChannelParameterCollection.cs : implement, rather than NIE.


svn path=/trunk/mcs/; revision=123340
2009-01-14 11:17:55 +00:00
Atsushi Eno 4b450229eb 2009-01-14 Atsushi Enomoto <[email protected]>
* ServerTooBusyException.cs, CommunicationObjectAbortedException.cs,
	  ServiceActivationException.cs : new exception types.

	* System.ServiceModel.dll.sources,
	  net_2_1_raw_System.ServiceModel.dll.sources :
	  added missing exception types (corcompare work).


svn path=/trunk/mcs/; revision=123331
2009-01-14 10:37:34 +00:00
Atsushi Eno 84747843e6 2009-01-14 Atsushi Enomoto <[email protected]>
* ClientBase.cs, ClientRuntimeChannel.cs : added support for
	  interactive channel initializers.

	* ClientBase_InteractiveChannelInitializerTest.cs : new test, for
	  IInteractiveChannelInitializers support in ClientBase<T>.

	* System.ServiceModel_test.dll.sources :
	  added ClientBase_InteractiveChannelInitializerTest.cs.


svn path=/trunk/mcs/; revision=123316
2009-01-14 06:11:09 +00:00
Gonzalo Paniagua Javier ff77592380 re-enable test. Works now.
svn path=/trunk/mcs/; revision=123314
2009-01-14 05:48:45 +00:00
Gonzalo Paniagua Javier c95dfe4d99 2009-01-14 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: create a result from the response when
	*GetResponse() has not been called yet and we have already received
	all the data.
	Fixes bug #464013.


svn path=/trunk/mcs/; revision=123313
2009-01-14 05:47:13 +00:00
Zoltan Varga 4ea5ff3a01 2009-01-14 Zoltan Varga <[email protected]>
* sgen-gc.c: Fix warnings. Optimize copy_object () a bit. Split pinned/
	non-pinned roots into separate hashes to avoid having to traverse them
	in functions which are only interested in one kind.

svn path=/trunk/mono/; revision=123295
2009-01-14 02:46:50 +00:00
Rodrigo Kumpera f376ff81ea 2009-01-13 Rodrigo Kumpera <[email protected]>
* header-tests.md: Add tests for symbol table and number of symbols.

svn path=/trunk/mono/; revision=123285
2009-01-14 00:13:20 +00:00
Rodrigo Kumpera a1f9875b5c 2009-01-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add pe header machine field verification.

svn path=/trunk/mono/; revision=123284
2009-01-14 00:13:05 +00:00
Rodrigo Kumpera f8a931658f 2009-01-13 Rodrigo Kumpera <[email protected]>
* header-tests.md: Add tests for the machine field.

svn path=/trunk/mono/; revision=123283
2009-01-14 00:13:04 +00:00
Rodrigo Kumpera 61fcdda9b7 2009-01-13 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add set-uint effect.

svn path=/trunk/mono/; revision=123282
2009-01-14 00:13:02 +00:00
Rodrigo Kumpera f93dd35a3a 2009-01-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add pe header size verification.

svn path=/trunk/mono/; revision=123281
2009-01-14 00:12:45 +00:00
Rodrigo Kumpera 13d0f7ad4a 2009-01-13 Rodrigo Kumpera <[email protected]>
* header-tests.md: Rename pe-header to pe-signature.
	Add pe-header tests.

svn path=/trunk/mono/; revision=123280
2009-01-14 00:12:43 +00:00
Rodrigo Kumpera daac5dd479 2009-01-13 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Rename pe-header to pe-signature.
	Add support for decimal literals using a '0' prefix.
	Add proper pe-header variable.

svn path=/trunk/mono/; revision=123279
2009-01-14 00:12:41 +00:00
Zoltan Varga 6864a4dd1d 2009-01-14 Zoltan Varga <[email protected]>
* reflection.c (ALLOC_REFENTRY): Don't allocate the ReflectionEntry structures
	using the GC, they don't contain references.

svn path=/trunk/mono/; revision=123277
2009-01-14 00:08:36 +00:00
Zoltan Varga f41f46f80b 2009-01-14 Zoltan Varga <[email protected]>
* domain.c (mono_domain_create): Create ldstr_table using MONO_HASH_KEY_VALUE_GC.

svn path=/trunk/mono/; revision=123276
2009-01-14 00:05:58 +00:00
Dean Brettle 6196e3dad3 ++ System.Web/ChangeLog (working copy)
* HttpApplicationFactory.cs: if there are any *.browser files in
	App_Data/Mono_Machine_Browsers/, use those instead of the default
	machine browser files.  This allows app developers to workaround
	limitations with Mono's default browser files without causing
	incompatibilities with MS's implementation.

++ System.Web.Configuration_2.0/ChangeLog	(working copy)

	* nBrowser/Node.cs: Fixed compatibility bug where <identification> sections were required
	in browser defs.  


svn path=/trunk/mcs/; revision=123263
2009-01-13 21:45:31 +00:00
Zoltan Varga 1c4780b3cc 2009-01-13 Zoltan Varga <[email protected]>
Reapply r122913, this time handling processes by falling back to polling.
	
	* handles.c: Rework the way the global signal stuff is handled: instead of
	allocating a separate mutex/condvar pair for it, allocate a normal handle.
	This way, it can reuse the alertable waiting code, allowing 
	WaitForMultipleObject to work without polling.

svn path=/trunk/mono/; revision=123262
2009-01-13 21:43:23 +00:00
Geoff Norton 3d06fc158d 2009-01-13 Geoff Norton <[email protected]>
* appdomain.c: Ensure that we call mono_context_init for the embedding api
        as well as the managed api.

svn path=/trunk/mono/; revision=123259
2009-01-13 21:32:11 +00:00
Zoltan Varga 55e66658d3 2009-01-13 Zoltan Varga <[email protected]>
* mini.c (SIG_HANDLER_SIGNATURE): Avoid crashes when the current thread or
	domain is not set. Fixes #465864.

svn path=/trunk/mono/; revision=123258
2009-01-13 21:23:51 +00:00
Gonzalo Paniagua Javier 4f7efa726b 2009-01-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: keepAlive is of no use here.
	Fixes bug #465613.


svn path=/trunk/mcs/; revision=123252
2009-01-13 20:51:11 +00:00
Gonzalo Paniagua Javier 538c44650f 2009-01-13 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs: we were not writing the headers for 0-length
	responses.
	* WebConnectionStream.cs: for 204/304 responses with an explicit
	content-length of 0, release the socket only once.
	Fixes bug #465638.


svn path=/trunk/mcs/; revision=123250
2009-01-13 20:32:26 +00:00
Geoff Norton 6f1d7418ae 2009-01-13 Geoff Norton <[email protected]>
* Revert r122913 as it causes problems waiting of processes
	to exit.

svn path=/trunk/mono/; revision=123242
2009-01-13 19:41:58 +00:00
Geoff Norton 2d05b92f47 2009-01-13 Geoff Norton <[email protected]>
* appdomain.h|c: New API for creating a MonoDomain in the embedding api
        with a MonoAppDomain initialized against it.

svn path=/trunk/mono/; revision=123234
2009-01-13 18:49:18 +00:00
Marek Habersack 3fcbf0735a 2009-01-13 Marek Habersack <[email protected]>
* CodeBuilder.cs, RootBuilder.cs, CollectionBuilder.cs: updates
	related to ControlBuilder cleanup.

	* ControlBuilder.cs: code cleanup - no field should be visible
	outside the class unless it's a constant or a read-only field.

2009-01-13  Marek Habersack  <[email protected]>

	* XmlBuilder.cs: updates related to ControlBuilder cleanup.

2009-01-13  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs, AspGenerator.cs, BaseCompiler.cs,
	GlobalAsaxCompiler.cs, PageThemeCompiler.cs: updates related to
	ControlBuilder cleanup.


svn path=/trunk/mcs/; revision=123229
2009-01-13 18:38:18 +00:00
Zoltan Varga 5581c2b390 2009-01-13 Zoltan Varga <[email protected]>
* reflection.c (MOVING_GC_REGISTER): Fix a warning.

svn path=/trunk/mono/; revision=123217
2009-01-13 17:26:30 +00:00
Zoltan Varga c1463eb8ed 2009-01-13 Zoltan Varga <[email protected]>
* reflection.c (mono_image_get_generic_param_info): Use MOVING_GC_REGISTER.

svn path=/trunk/mono/; revision=123215
2009-01-13 17:17:58 +00:00
Andrés G. Aragoneses 7b59a28ce7 * System.Windows.Forms/Application.cs: Simplify UIA initialization,
reducing it from 4 to 1 reflection calls. This requires
  UIAutomationWinforms r123213.

svn path=/trunk/mcs/; revision=123214
2009-01-13 17:17:10 +00:00
Zoltan Varga c89cdd4f85 2009-01-13 Zoltan Varga <[email protected]>
* marshal.c: Avoid setting the exception clauses after a method has been entered 
	into the wrapper caches. Fixes #465700.

	* method-builder.c (mono_mb_set_clauses): New function to set the clauses of the
	method builder.
	(mono_mb_create_method): Set the clauses from the method builder.

svn path=/trunk/mono/; revision=123201
2009-01-13 16:00:59 +00:00
Jb Evain 37111e4f26 in System.Text:
2009-01-13  Jb Evain  <[email protected]>

	* Encoding.cs: when creating a ForwardingEncoder or a
	ForwardingDecoder, don't crash if the Encoding doesn't
	provide an EncoderFallback or a DecoderFallback.

in Test/System.Text:
2009-01-13  Jb Evain  <[email protected]>

	* EncoderTest.cs: Make sure we can get an encoder for a custom
	encoding.
	* DecoderTest.cs: ditto.

svn path=/trunk/mcs/; revision=123196
2009-01-13 15:25:45 +00:00
Stephane Delcroix 2a62f053b0 2009-01-13 Stephane Delcroix <[email protected]>
* Uri.cs: Fix the previous patch for 1.0 profile

svn path=/trunk/mcs/; revision=123186
2009-01-13 10:12:54 +00:00
Gonzalo Paniagua Javier e095efe7f5 2009-01-13 Gonzalo Paniagua Javier <[email protected]>
* Uri.cs: avoid throwing exceptions when checking for the host name
	type.


svn path=/trunk/mcs/; revision=123178
2009-01-13 06:07:09 +00:00
Gonzalo Paniagua Javier 610eb25e12 2009-01-13 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: include sys/socket.h. Fixes compilation on FreeBSD.
	Patch from Makoto Kishimoto.


svn path=/trunk/mono/; revision=123176
2009-01-13 05:34:46 +00:00
Geoff Norton 5fa4e75915 2009-01-12 Geoff Norton <[email protected]>
* ClientBase.cs: Added a few delegates missing from ChannelBase

svn path=/trunk/mcs/; revision=123169
2009-01-13 03:04:36 +00:00
Geoff Norton ad4ff0b5b4 2009-01-12 Geoff Norton <[email protected]>
* WebClient_2.1.cs: SL2 webclient supports BaseAddress.

svn path=/trunk/mcs/; revision=123160
2009-01-13 01:11:03 +00:00
Zoltan Varga e0e4793cf9 2009-01-13 Zoltan Varga <[email protected]>
* sgen-gc.c (mono_gc_make_descr_from_bitmap): Handle large bitmaps by 
	encoding them as ROOT_DESC_COMPLEX.
	(precisely_scan_objects_from): Implement support for ROOT_DESC_COMPLEX.

svn path=/trunk/mono/; revision=123152
2009-01-13 00:05:23 +00:00
Carlos Alberto Cortez 67dd86ec3a 2009-01-12 Carlos Alberto Cortez <[email protected]>
* MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
	handlers and fire the DateSelected event until MouseUp is reached,
	like .net does, instead of firing it for each mouse event.
	Fixes part of #364914.


svn path=/trunk/mcs/; revision=123150
2009-01-12 23:17:40 +00:00
Gonzalo Paniagua Javier 883f7e8388 2009-01-08 Christian Prochnow <[email protected]>
* DriveInfo.cs: Added GetDiskFreeSpaceInternal
	to query drive size and free space.
	Added GetDriveTypeInternal to query type of drive.


svn path=/trunk/mcs/; revision=123148
2009-01-12 23:02:46 +00:00
Gonzalo Paniagua Javier 87accf5e93 2009-01-12 Gonzalo Paniagua Javier <[email protected]>
* mono/metadata/icall-def.h:
	* mono/metadata/icall.c:
	* mono/io-layer/uglify.h:
	* mono/io-layer/io.c:
	* mono/io-layer/types.h:
	* mono/io-layer/io.h:
	* configure.in: implement GetDriveType and GetDiskFreeSpace.

	Patch from Christian Prochnow.


svn path=/trunk/mono/; revision=123147
2009-01-12 23:02:03 +00:00
Zoltan Varga 6437558b0b 2009-01-12 Zoltan Varga <[email protected]>
* sgen-gc.c (scan_from_remsets): Clear the global remset of pointers which
	no longer point to the nursery.

	* sgen-gc.c: Add a few comments/FIXMEs.

svn path=/trunk/mono/; revision=123144
2009-01-12 22:38:09 +00:00
Marek Habersack 0d7e4c54f6 LinePragmas default to true if value is not present
svn path=/trunk/mcs/; revision=123142
2009-01-12 22:29:31 +00:00
Marek Habersack ef3c1e2428 2009-01-12 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: do not generate #line pragmas for
	plain strings. Fixes bug #461214

svn path=/trunk/mcs/; revision=123141
2009-01-12 22:27:08 +00:00
Gonzalo Paniagua Javier b5ac5d886d 2009-01-12 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: test deleting a file.


svn path=/trunk/mcs/; revision=123136
2009-01-12 22:03:32 +00:00
Gonzalo Paniagua Javier 93a5d755a7 2009-01-12 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: now deleting a file works when we're not in the
	root directory.


svn path=/trunk/mcs/; revision=123135
2009-01-12 22:02:18 +00:00
Jb Evain 98a2388cc5 clear warning
svn path=/trunk/mcs/; revision=123125
2009-01-12 20:56:08 +00:00
Bill Holmes 1c7e646819 2009-01-12 Bill Holmes <[email protected]>
* Variant.cs (GetValue):  Handling the NULL IDispatch
	  and IUnknown case.

	Contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=123124
2009-01-12 20:53:13 +00:00
Marek Habersack e31e5f40cc Forgotten ChangeLog
svn path=/trunk/mcs/; revision=123115
2009-01-12 19:45:43 +00:00
Marek Habersack 6e8c180f09 Reverted r123106
svn path=/trunk/mcs/; revision=123113
2009-01-12 19:42:35 +00:00
Mark Probst 39f1f22881 2009-01-12 Mark Probst <[email protected]>
* method-to-ir.c: Don't stop sharing of generic methods with catch
	clauses - we already handle those.

svn path=/trunk/mono/; revision=123112
2009-01-12 19:25:34 +00:00
Jb Evain dccb5600df 2009-01-12 Jb Evain <[email protected]>
* RxInterpreter.cs: set trace_rx to false for NET_2_1.
	* Regex.cs: set old_rx to false for NET_2_1.


svn path=/trunk/mcs/; revision=123110
2009-01-12 19:14:55 +00:00
Zoltan Varga 4bcf98d910 2009-01-12 Zoltan Varga <[email protected]>
* sgen-gc.c: Implement scanning of the alloc_pinned objects.

svn path=/trunk/mono/; revision=123109
2009-01-12 19:13:18 +00:00
Marek Habersack dbd6e55cdc 2009-01-12 Marek Habersack <[email protected]>
* LiteralStringControlBuilder.cs: added. Fixes bug #461214

	* ControlBuilder.cs: added location tracking for literal string
	children. Fixes bug #461214

	* TemplateParser.cs: line pragmas are on by default. Fixes bug
	#460479

2009-01-12  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: the LiteralStringControlBuilder
	class is now used to track the location of the plain strings being
	output to the generated code. Fixes bug #461214

	* AspGenerator.cs: AppendLiteralString is called with the current
	parser location as one of its parameters in FlushText (). Fixes
	bug #461214

2009-01-12  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.UI/LiteralStringControlBuilder.cs


svn path=/trunk/mcs/; revision=123106
2009-01-12 18:53:41 +00:00
Zoltan Varga e6c8678634 2009-01-12 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_synchronized_wrapper): Make the 
	initialization of the various _method variables thread safe. Fixes
	#465377.

svn path=/trunk/mono/; revision=123092
2009-01-12 16:56:00 +00:00
Marek Habersack 5be8f882cb 2009-01-12 Marek Habersack <[email protected]>
* TemplateParser.cs: line pragmas are on by default. Fixes bug
	#460479

svn path=/trunk/mcs/; revision=123090
2009-01-12 16:50:23 +00:00
Mark Probst 306fdb79f3 2009-01-12 Mark Probst <[email protected]>
* mini.c, mini.h: lookup_generic_method() is now
	mono_domain_lookup_shared_generic() and uses the jit_code_hash,
	making the shared_generics_hash obsolete.

2009-01-12  Mark Probst  <[email protected]>

	* domain.c, domain-internals.h: Remove the shared_generics_hash
	and its lookup functions.

svn path=/trunk/mono/; revision=123089
2009-01-12 16:36:42 +00:00
Bill Holmes fcc1a22101 2009-01-12 Bill Holmes <[email protected]>
* socket-io.c:  Fixing the MSVC build.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=123087
2009-01-12 16:12:02 +00:00
Marek Habersack d77458d1fa 2009-01-12 Marek Habersack <[email protected]>
* MembershipUserCollection.cs: CopyTo overloads use store.Values
	as the copy source. Fixes bug #464783. Patch from Christian
	Prochnow <[email protected]>

svn path=/trunk/mcs/; revision=123084
2009-01-12 16:08:21 +00:00
Mark Probst 61262b44a9 2009-01-12 Mark Probst <[email protected]>
* mini-ppc.c, exceptions-ppc.c, cpu-ppc.md, cpu-ppc64.md: Don't
	use the red zone.  Make room on the stack first and then use it,
	not the other way around.

svn path=/trunk/mono/; revision=123078
2009-01-12 15:35:06 +00:00
Rodrigo Kumpera a6e1009956 Fix the changelog
svn path=/trunk/mono/; revision=123066
2009-01-12 14:08:17 +00:00
Rodrigo Kumpera 949d89fcd7 2009-01-12 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add pe header watermark verification.

svn path=/trunk/mono/; revision=123065
2009-01-12 13:58:14 +00:00
Rodrigo Kumpera f29164c549 2009-01-12 Rodrigo Kumpera <[email protected]>
* header-tests.md: Add tests for pe header.

svn path=/trunk/mono/; revision=123064
2009-01-12 13:58:13 +00:00
Rodrigo Kumpera f0310a418b 2009-01-12 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Refactor the file-size into a new
	atom 'variable' which is more extensible and easier
	to use. Added binary add.

svn path=/trunk/mono/; revision=123063
2009-01-12 13:58:12 +00:00
Rodrigo Kumpera b4622c9f61 2009-01-09 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add lfanew verification.

svn path=/trunk/mono/; revision=123062
2009-01-12 13:58:03 +00:00
Rodrigo Kumpera 702f78eb22 2009-01-09 Rodrigo Kumpera <[email protected]>
* header-tests.md: Add tests for lfanew ranges.

svn path=/trunk/mono/; revision=123061
2009-01-12 13:58:02 +00:00
Rodrigo Kumpera 0c7a5ea20d 2009-01-09 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Extended grammar for expressions for
	selectors and effects.
	Added subtraction and file-size expressions.
	Added truncate effect.
	Fixed all warnings under -Wall.

svn path=/trunk/mono/; revision=123060
2009-01-12 13:58:01 +00:00
Rodrigo Kumpera feed03149e 2009-01-09 Rodrigo Kumpera <[email protected]>
* Makefile: New clean-stamps target, more deps fine tunning.

svn path=/trunk/mono/; revision=123059
2009-01-12 13:58:00 +00:00
Rodrigo Kumpera 596d3f85d9 2009-01-09 Rodrigo Kumpera <[email protected]>
* header-tests.md: Add test for the lfanew field.

svn path=/trunk/mono/; revision=123058
2009-01-12 13:57:59 +00:00
Rodrigo Kumpera e66f9af463 2009-01-09 Rodrigo Kumpera <[email protected]>
* gen-md-tests: Add support for absolute uint patching.

svn path=/trunk/mono/; revision=123057
2009-01-12 13:57:58 +00:00
Rodrigo Kumpera ece345a99e 2009-01-09 Rodrigo Kumpera <[email protected]>
* Makefile: Fix generate-stamp deps.

svn path=/trunk/mono/; revision=123056
2009-01-12 13:57:57 +00:00
Rodrigo Kumpera fe08ed2801 2009-01-09 Rodrigo Kumpera <[email protected]>
* Makefile: Add run-test target and fix the generation deps.

svn path=/trunk/mono/; revision=123055
2009-01-12 13:57:55 +00:00
Rodrigo Kumpera 57e2b11047 2009-01-09 Rodrigo Kumpera <[email protected]>
* Makefile: Add check_with_peverify target to make it easier to
	check against MS peverify.

svn path=/trunk/mono/; revision=123054
2009-01-12 13:57:54 +00:00
Rodrigo Kumpera 1d800e224e 2009-01-09 Rodrigo Kumpera <[email protected]>
* Makefile: gen-md-tests now require glib. Fix the build.

svn path=/trunk/mono/; revision=123053
2009-01-12 13:57:53 +00:00
Jb Evain 5579694633 in metadata:
2009-01-12  Jb Evain  <[email protected]>

	* tabldefs.h: rename METHOD_ATTRIBUTE_CHECK_ACCESS_ON_OVERRIDE to
	METHOD_ATTRIBUTE_STRICT to match the ECMA terminology.

in dis:
2009-01-12  Jb Evain  <[email protected]>

	* main.c: update reference to METHOD_ATTRIBUTE_CHECK_ACCESS_ON_OVERRIDE
	with METHOD_ATTRIBUTE_STRICT.

svn path=/trunk/mono/; revision=123050
2009-01-12 13:51:44 +00:00
Zoltan Varga d7cf72ea0d 2009-01-12 Zoltan Varga <[email protected]>
* mini.c (mini_init): Call mono_xdebug_init ().

	* aot-compiler.c (mono_xdebug_init): Make this non-static.

svn path=/trunk/mono/; revision=123041
2009-01-12 12:56:16 +00:00
Zoltan Varga be2d0e4006 2009-01-12 Zoltan Varga <[email protected]>
* mini.c (mini_init): Call mono_xdebug_init ().

	* aot-compiler.c (mono_xdebug_init): Make this non-static.

svn path=/trunk/mono/; revision=123040
2009-01-12 12:56:06 +00:00
Carlos Alberto Cortez 735c87f6b7 2009-01-12 Carlos Alberto Cortez <[email protected]>
* TreeView.cs: When the selection gets canceled using the BeforeSelect
	event, invalidate the previous highlighted_node bounds, to show the
	user that the item was *not* selected.
	Fixes #464191.


svn path=/trunk/mcs/; revision=123024
2009-01-12 09:53:34 +00:00
Carlos Alberto Cortez 023aa32d17 2009-01-11 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
	well as -in DropDown and Simple modes- writing in the textbox should
	try to set the requested item as the top one, but navigating with the
	keyboard and handling mouse selection don't need that behaviour. Also,
	when resetting selected_index handling key press events, reset
	ComboListBox.HighlightIndex. 
	Fixes the remaining bits of #464188.


svn path=/trunk/mcs/; revision=123010
2009-01-12 02:48:11 +00:00
Atsushi Eno d4283ba1c9 2009-01-11 Atsushi Enomoto <[email protected]>
* Makefile : remove wrong NET_3_5.

	* AssemblyInfo.cs : fix wrong key and versions.


svn path=/trunk/mcs/; revision=123009
2009-01-12 01:05:43 +00:00
Ivan Zlatev 237f7b2da3 2009-01-11 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix crashes when shortcut keys are pressed, but
	there are no cells:
	   - CurrentCellAddress should be -1, -1 and not 0, 0.
	   - Be tolerant and fall back to clearing the current cell if either
	   column or row is -1 in MoveCurrentCell.
	   - Misc. more -1 checks.

svn path=/trunk/mcs/; revision=123003
2009-01-11 22:45:42 +00:00
Ivan Zlatev 3b3912d192 2009-01-11 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Preserve the column index. Fixes a regression
	introduced by the data binding position tracking code.

svn path=/trunk/mcs/; revision=123002
2009-01-11 22:45:37 +00:00
Ivan Zlatev d5a9849868 2009-01-11 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: If the bottom of the row matches the client height
	do not regard the row as partially visible. Fixes the weird scrolling
	when there is no scrollbar.

svn path=/trunk/mcs/; revision=123001
2009-01-11 22:45:23 +00:00
Atsushi Eno a316607fb4 initial checkin of system.directoryservices.protocols stub.
I'm not going to implement this assembly, it's just for stub to
make it possible to build some applications that depend on this
assembly. Feel free to implement it.


svn path=/trunk/mcs/; revision=122999
2009-01-11 19:14:34 +00:00
Atsushi Eno a87bb8333d 2009-01-11 Atsushi Enomoto <[email protected]>
* NetworkInformationPermission.cs,
	  NetworkInformationPermissionAttribute.cs : implement some,
	  otherwise it blocks compilation.


svn path=/trunk/mcs/; revision=122998
2009-01-11 19:05:41 +00:00
Zoltan Varga 937cb8d130 2009-01-11 Zoltan Varga <[email protected]>
* TestDriver.cs: Add an --iter argument to run tests multiple times.

svn path=/trunk/mono/; revision=122996
2009-01-11 17:54:27 +00:00
Zoltan Varga a89a85c305 2009-01-11 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_create_trampoline_code_full): Emit debug info for
	trampolines.

	* aot-compiler.c (mono_save_trampoline_xdebug_info): New function to emit
	debug+unwind info for trampolines.

	* mini.c (mono_create_unwind_op): New helper function.

	* unwind.h: Add macros for emitting unwind ops without a MonoCompile.

svn path=/trunk/mono/; revision=122995
2009-01-11 17:53:33 +00:00
Ivan Zlatev e6a6ca08ba 2009-01-11 Ivan N. Zlatev <[email protected]>
* DataGridViewComboBoxCell.cs: Implement/Fix the data binding.

svn path=/trunk/mcs/; revision=122994
2009-01-10 23:49:46 +00:00
Miguel de Icaza ca1561a3f2 Fix another regression, stop breaking the Solaris buidls
svn path=/trunk/mono/; revision=122990
2009-01-10 19:43:47 +00:00
Zoltan Varga 62c2c5ba73 2009-01-10 Zoltan Varga <[email protected]>
* aot-compiler.c: Fix the build.

svn path=/trunk/mono/; revision=122981
2009-01-10 10:14:39 +00:00
Zoltan Varga 5ac66bd4ef 2009-01-10 Zoltan Varga <[email protected]>
* socket-io.c: Fix the build.

	* environment.c: Fix an #ifdef.

svn path=/trunk/mono/; revision=122980
2009-01-10 10:14:08 +00:00
Miguel de Icaza 2e3d8ab7ba Add convenience hook
svn path=/trunk/mono/; revision=122977
2009-01-10 06:45:54 +00:00
Miguel de Icaza 41320c9e45 Add
svn path=/trunk/mono/; revision=122976
2009-01-10 06:17:47 +00:00
Miguel de Icaza 1290624fa3 Add
svn path=/trunk/mono/; revision=122975
2009-01-10 06:15:10 +00:00
Miguel de Icaza 6341baa811 2009-01-09 Miguel de Icaza <[email protected]>
* Add support for `strict' in .method declaration

svn path=/trunk/mcs/; revision=122973
2009-01-10 04:48:19 +00:00
Miguel de Icaza afdf742f4d Add ECMA 2.0 Strict flag for MethodAttributes
svn path=/trunk/mcs/; revision=122972
2009-01-10 04:47:52 +00:00
Miguel de Icaza 501516cdbe Incorporate a few patches from Paolo, slightly modified:
2009-01-09  Miguel de Icaza  <[email protected]>

	* handles.c (_wapi_handle_check_share): On non-Linux systems, do
	not even compile in the code that scans for /proc/fd, and go
	directly to the fallback function.

svn path=/trunk/mono/; revision=122969
2009-01-10 01:18:12 +00:00
Mario Carrion 6499517c07 2008-01-09 Mario Carrion <[email protected]>
* MessageBox.cs: Fixed internal UIAIconRectangle property.


svn path=/trunk/mcs/; revision=122967
2009-01-10 01:12:07 +00:00
Miguel de Icaza 4d32bc6b02 Incorporate a few patches from Paolo:
2009-01-09  Paolo Molaro ([email protected])

	* handles.c: Do not include some header files in platforms that
	lack it.

svn path=/trunk/mono/; revision=122963
2009-01-10 00:50:29 +00:00
Miguel de Icaza d83e32c349 2009-01-09 Miguel de Icaza <[email protected]>
* messages.c: Eliminate a warning.

svn path=/trunk/mono/; revision=122962
2009-01-10 00:39:02 +00:00
Miguel de Icaza 8af9a82942 Incorporate a few patches from Paolo:
2009-01-09  Paolo Molaro ([email protected])

	* error.c: On some platforms that do not define these variables,
	do not use them.

	* security.c, io-private.h: Only include some headers if they
	exist on the system

svn path=/trunk/mono/; revision=122961
2009-01-10 00:36:22 +00:00
Miguel de Icaza 8ee49994e1 2009-01-09 Miguel de Icaza <[email protected]>
* sockets.c, sockets.h: do not import on this header files that
	are only consumed internally in sockets.c.

svn path=/trunk/mono/; revision=122960
2009-01-10 00:20:58 +00:00
Zoltan Varga a27ece8a86 2009-01-09 Zoltan Varga <[email protected]>
* threadpool.c (async_invoke_thread): Handle the wait function returning
	WAIT_IO_COMPLETION as well.
	(async_invoke_io_thread): Ditto.

svn path=/trunk/mono/; revision=122947
2009-01-09 21:04:54 +00:00
Zoltan Varga c4cb621aa7 2009-01-09 Zoltan Varga <[email protected]>
* threads.c (_wapi_thread_apc_pending): Check for thread->wait_handle ==
	INTERRUPTION_REQUESTED_HANDLE too.
	(wapi_interrupt_thread): Rework the comments, the thread is no longer
	required to call QueueUserAPC to make the wait functions return.

svn path=/trunk/mono/; revision=122945
2009-01-09 21:03:10 +00:00
Ivan Zlatev ace9a03b74 2009-01-09 Ivan N. Zlatev <[email protected]>
* DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.

svn path=/trunk/mcs/; revision=122933
2009-01-09 19:46:31 +00:00
Ivan Zlatev 04389482bc 2009-01-09 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Track the Position in the CurrencyManager.

svn path=/trunk/mcs/; revision=122930
2009-01-09 19:03:02 +00:00
Bill Holmes 5c30bf206b 2009-01-09 Bill Holmes <[email protected]>
* threads.c: Fixing the Windows build.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=122918
2009-01-09 16:47:29 +00:00
Zoltan Varga 2a95081f7f 2009-01-09 Zoltan Varga <[email protected]>
* handles.c: Rework the way the global signal stuff is handled: instead of
	allocating a separate mutex/condvar pair for it, allocate a normal handle.
	This way, it can reuse the alertable waiting code, allowing 
	WaitForMultipleObject to work without polling.

svn path=/trunk/mono/; revision=122913
2009-01-09 16:19:49 +00:00
Zoltan Varga 895088cff6 2009-01-09 Zoltan Varga <[email protected]>
* CustomAttributeData.cs (ToString): Applied patch from Leszek Ciesielski
	<[email protected]>. Use DeclaringType.FullName instead of DeclaringType.Name.
	Fixes #464830.

svn path=/trunk/mcs/; revision=122907
2009-01-09 16:00:05 +00:00
Dick Porter 5e0ae0a305 2009-01-09 Dick Porter <[email protected]>
* Socket.cs: Special case 0-length receive requests in the
	BeginAccept overloads that wait for data, so they behave as the
	non-waiting version.  Seems to match MS behaviour, fixes bug
	464201.



svn path=/trunk/mcs/; revision=122904
2009-01-09 15:18:50 +00:00
Ivan Zlatev 1f990cd3e5 2009-01-09 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Implement data-bound new item editing/addition.
	* DataGridViewRowCollection.cs: Make it possible for us to internally
	remove the edit row.
	[Fixes bugs #457107, #457308, #325240]

svn path=/trunk/mcs/; revision=122900
2009-01-09 14:52:57 +00:00
Ivan Zlatev c3343cf17e 2009-01-09 Ivan N. Zlatev <[email protected]>
* CurrencyManager.cs: Even if Position is set to a greater value than the
	list count reset it to position of the last item.

svn path=/trunk/mcs/; revision=122899
2009-01-09 14:52:39 +00:00
Ivan Zlatev f623a8f47b 2009-01-09 Ivan N. Zlatev <[email protected]>
* BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList.
	Fix that in order to make CancelNew to work.

svn path=/trunk/mcs/; revision=122898
2009-01-09 14:52:27 +00:00
Ivan Zlatev 4d36e6eced 2009-01-09 Ivan N. Zlatev <[email protected]>
* BindingSource.cs: When adding a new item try to delegate to the internal
	list first before throwing an exception.

svn path=/trunk/mcs/; revision=122897
2009-01-09 14:52:04 +00:00
Ivan Zlatev 2bff0a751d 2009-01-09 Ivan N. Zlatev <[email protected]>
* BindingList.cs: Add calls InsertItem which raises OnListChanged, so
	don't raise a duplicate OnListChanged in AddNewCore.

svn path=/trunk/mcs/; revision=122896
2009-01-09 14:51:41 +00:00
Marek Habersack 45cccd09d5 2009-01-09 Marek Habersack <[email protected]>
* BaseParser.cs, PageParser.cs, UserControlParser.cs: use
	VirtualPathUtility.GetDirectory instead of UrlUtils.GetDirectory.

svn path=/trunk/mcs/; revision=122893
2009-01-09 14:41:30 +00:00
Marek Habersack 148cc18395 2009-01-09 Marek Habersack <[email protected]>
* HttpContext.cs: RewritePath now treats relative and absolute
	file paths with more care. If a path is of the ~/file.aspx form,
	then the ~/ part is removed and the rest is combined with the base
	virtual path. If the file path is of the ~ or /file.aspx forms,
	then it is combined verbatim with the base virtual path. Fixes bug
	#463964
	Make sure the path returned from HttpRequest.BaseVirtualPath
	contains the trailing slash before combining. Fixes bug #463964

svn path=/trunk/mcs/; revision=122891
2009-01-09 14:38:07 +00:00
Zoltan Varga 6c52585bf2 2009-01-09 Zoltan Varga <[email protected]>
* threads.c (signal_thread_state_change): Call wapi_interrupt_thread () to
	interrupt a wait.
	(mono_thread_execute_interruption): Call wapi_clear_interruption () to enable
	the thread to wait again.

svn path=/trunk/mono/; revision=122890
2009-01-09 14:29:24 +00:00
Zoltan Varga eaed9b6a69 2009-01-09 Zoltan Varga <[email protected]>
* threads.c handles.c threads-internal.h: Implement alertable waits without
	polling.

svn path=/trunk/mono/; revision=122889
2009-01-09 14:28:02 +00:00
Zoltan Varga a31b81a242 2009-01-09 Zoltan Varga <[email protected]>
* configure.in: Check for the existence of the gettext executables.

svn path=/trunk/mono/; revision=122888
2009-01-09 14:23:57 +00:00
Rodrigo Kumpera 7d8caa3547 Add missing changelog entries.
svn path=/trunk/mono/; revision=122886
2009-01-09 14:01:13 +00:00
Rodrigo Kumpera 0ad0431a93 2009-01-09 Rodrigo Kumpera <[email protected]>
* gc.c (mono_gc_init): Fix the comments about deadlock on windows.

svn path=/trunk/mono/; revision=122884
2009-01-09 13:36:31 +00:00
Rodrigo Kumpera 741bf836ea initial verifier
svn path=/trunk/mono/; revision=122883
2009-01-09 13:36:29 +00:00
Rodrigo Kumpera 225f2402eb more stuff
svn path=/trunk/mono/; revision=122882
2009-01-09 13:36:28 +00:00
Rodrigo Kumpera 1c62474e0e more stuff
svn path=/trunk/mono/; revision=122881
2009-01-09 13:36:27 +00:00
Rodrigo Kumpera d29de90f29 Initial version
svn path=/trunk/mono/; revision=122880
2009-01-09 13:36:26 +00:00
Zoltan Varga 8c3ac917d2 2009-01-09 Zoltan Varga <[email protected]>
* Makefile.am: Update dtrace-prelink.sh location.

svn path=/trunk/mono/; revision=122864
2009-01-09 10:01:44 +00:00
Zoltan Varga f634b07d58 2009-01-09 Zoltan Varga <[email protected]>
* Makefile.am: Upgrade dtrace-prelink.sh location.

svn path=/trunk/mono/; revision=122863
2009-01-09 10:01:13 +00:00
Miguel de Icaza 0d95d2bb41 2008-11-15 Jonathan Pryor <[email protected]>
* Documentation/en/**: Flush; changes due to mdoc-update 
	  Reflection->Cecil migration.  Changes include:
	  - Alphabetical ordering of custom attributes (these used to be in

svn path=/trunk/mcs/; revision=122861
2009-01-09 05:55:43 +00:00
Carlos Alberto Cortez 991ac99736 2009-01-09 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: When setting the text and adjusting the top_item, do it
	*only* if the current item is *not* visible already.
	Fixes part of #464188.


svn path=/trunk/mcs/; revision=122860
2009-01-09 04:58:13 +00:00
Geoff Norton d22ea690a8 2009-01-08 Geoff Norton <[email protected]>
* processes.c: Fix the osx version check to properly detect 10.5 v 10.4

svn path=/trunk/mono/; revision=122854
2009-01-09 02:34:45 +00:00
Miguel de Icaza 7a053fd0b7 Add checks for the headers
svn path=/trunk/mono/; revision=122849
2009-01-09 00:38:42 +00:00
Ivan Zlatev 88e79ad347 2009-01-09 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Requesting the CurrencyManager for the first time can
	lead to unexpected OnBindingContextChanged calls and recursive rebinding.
	Fix that.
	[Fixes bug #464493]

svn path=/trunk/mcs/; revision=122848
2009-01-09 00:28:24 +00:00
Marek Habersack 2e5b6c6fee 2009-01-09 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: do not normalize the path in
	FindWebConfig when getting the virtual directory.

svn path=/trunk/mcs/; revision=122844
2009-01-09 00:15:17 +00:00
Miguel de Icaza c54becc50f move dtrace-prelink.sh out of the top dir
svn path=/trunk/mono/; revision=122843
2009-01-08 23:55:46 +00:00
Miguel de Icaza e3ceb6cc7f Add new checks
svn path=/trunk/mono/; revision=122842
2009-01-08 23:55:11 +00:00
Marek Habersack 4a3dce4bcd 2009-01-09 Marek Habersack <[email protected]>
* Cache.cs: System.Threading.Timer.Change takes a long, not an
	int. The maximum value of sliding expiration is 365 days
	(31536000000ms) which fits within the value range of long. The
	previous cast to int might yield negative values in certain
	situations which was the reason for bug #464221. Fixes bug #464221

svn path=/trunk/mcs/; revision=122839
2009-01-08 23:50:52 +00:00
Rodrigo Kumpera a438bc4f15 2009-01-08 Rodrigo Kumpera <[email protected]>
* gc.c (mono_gc_init): Wait for finalizer thread to init on windows as
	well. Otherwise the shutdown deadlock that happens on unix will can happen
	as well.
	If the main thread code finishes too fast it's possible that the finalizer
	thread won't have executed yet, won't record itself as the finalizer thread
	and the shutdown sequence will wait on it forever.

svn path=/trunk/mono/; revision=122838
2009-01-08 23:23:09 +00:00
Rodrigo Kumpera 6b4ebd8967 2009-01-08 Rodrigo Kumpera <[email protected]>
* threads.c (mono_thread_current): Make THREAD_DEBUG work on windows
	with MSVC.

svn path=/trunk/mono/; revision=122837
2009-01-08 23:23:00 +00:00
Bill Holmes 0bfc1378ab 2009-01-08 Bill Holmes <[email protected]>
* mono-dl.c (mono_dl_open): Fix the MSVC build.

	Contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=122833
2009-01-08 21:59:57 +00:00
Miguel de Icaza 158fbfbeb1 2009-01-08 Miguel de Icaza <[email protected]>
* appdomain.c: Initialize the mono_strtod_mutex here, thanks to
	Robert Jordan for pointing this out.

svn path=/trunk/mono/; revision=122825
2009-01-08 20:19:42 +00:00
Miguel de Icaza 6cd099392a 2008-12-19 Miguel de Icaza <[email protected]>
* mono-dl.c (mono_dl_open): Do not crash if the platform does not
	support dlopen.

svn path=/trunk/mono/; revision=122824
2009-01-08 20:18:48 +00:00
Gert Driesen d637e7a52b * HandlerFactoryConfiguration.cs: Allow handlers with non-public
.ctors. Fixes bug #463971 for 1.0 profile.

svn path=/trunk/mcs/; revision=122811
2009-01-08 19:06:55 +00:00
Zoltan Varga 9e4b660cda 2009-01-08 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Fix the check for the mscorlib ldstr 
	optimization. Fixes #464520.

svn path=/trunk/mono/; revision=122804
2009-01-08 18:56:57 +00:00
Brad Taylor 27c811154c 2009-01-08 Brad Taylor <[email protected]>
* ComboBox.cs: Expose a few private fields as internal UIA properties.


svn path=/trunk/mcs/; revision=122796
2009-01-08 17:14:43 +00:00
Bill Holmes 0586098985 2009-01-08 Bill Holmes <[email protected]>
* winconfig.h, src/gfile-posix.c :
	  Fixing the MSVC builds.

	Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=122783
2009-01-08 15:41:49 +00:00
Geoff Norton 829fb90aa7 2009-01-08 Geoff Norton <[email protected]>
* Makefile: Add darwin.make to the make dist target as well

svn path=/trunk/mcs/; revision=122774
2009-01-08 14:58:25 +00:00
Rodrigo Kumpera 41221b3715 2009-01-08 Rodrigo Kumpera <[email protected]>
* signal.c: Don't allow registration of a realtime signal to happen
	if it was already registered outside of Mono.Posix.

svn path=/trunk/mono/; revision=122755
2009-01-08 12:52:49 +00:00
Rodrigo Kumpera 9a07c29204 2009-01-08 Rodrigo Kumpera <[email protected]>
* Documentation/en/*: Updated the documentation	for RT signals.

svn path=/trunk/mcs/; revision=122754
2009-01-08 12:51:07 +00:00
Rodrigo Kumpera 68cd0f50e7 2009-01-08 Rodrigo Kumpera <[email protected]>
* UnixSignalTest.cs: Fix the RealTimeSignum constructor
	tests to take into account the fact that some signals might be
	in used by the runtime. Added a test for multiple registration
	of a rt signal.

svn path=/trunk/mcs/; revision=122753
2009-01-08 12:51:05 +00:00
Rodrigo Kumpera 6b81cc6cc0 2009-01-08 Rodrigo Kumpera <[email protected]>
* UnixSignal.cs: Check if realtime signal install failed with
	EADDRINUSE due to the signal been used by outside of Mono.Posix.

svn path=/trunk/mcs/; revision=122752
2009-01-08 12:51:03 +00:00
Atsushi Eno b9326e77b1 2009-01-08 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadContentAsString() does not reject non-elements.
	  ReadElementContentAsString() rejects non-content nodes.

	* XmlReaderCommonTests.cs : added test for ReadContentAsString()
	  and ReadElementContentAsString() against certain node types.


svn path=/trunk/mcs/; revision=122737
2009-01-08 02:39:23 +00:00
Miguel de Icaza 239350ac12 Fix the mutext name
svn path=/trunk/mono/; revision=122736
2009-01-08 02:27:14 +00:00
Miguel de Icaza 1f631a685c 2009-01-07 Miguel de Icaza <[email protected]>
* src/gfile-posix.c: Move g_get_current_dir, as it is a
        POSIX-esque feature, and some other systems do not have current
        directories. 

        * src/glib.h (G_LOCK_DEFINE, G_LOCK_DEFINE_STATIC): 

        Embedded support from Paolo's work on quack.
        
        * configure.ac: check for strtok_r, langinfo.h and iconv.h
        
        * src/gpath.c (strtok_r): Add a strtok_r implementation if it is
        not available on the target system.


svn path=/trunk/mono/; revision=122735
2009-01-08 02:22:02 +00:00
Miguel de Icaza 5ed7820a38 2009-01-07 Miguel de Icaza <[email protected]>
* icall.c: Wrap calls to mono_strtod in CriticalSection
	invocations when using eglib, to work around #464316.

svn path=/trunk/mono/; revision=122734
2009-01-08 02:17:59 +00:00
Marek Habersack 10e114be23 2009-01-08 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: improve performance of
	FindWebConfig.

svn path=/trunk/mcs/; revision=122730
2009-01-08 00:32:37 +00:00
Mario Carrion 197d53d59b 2009-01-07 Mario Carrion <[email protected]>
* DataGrid.cs: CWL removed.


svn path=/trunk/mcs/; revision=122721
2009-01-07 22:57:18 +00:00
Bill Holmes d7679a302c 2009-01-07 Bill Holmes <[email protected]>
* mini-amd64.c : Adding code to save/restore non-volatile registers
	  on Winx64.

	* exceptions-amd64.c : Adding code to save/restore non-volatile
	  registers on Winx64.

	Contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=122719
2009-01-07 22:34:17 +00:00
Zoltan Varga 9ab993c1d6 2009-01-07 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_flush_icache): Use __GNUC_PREREQ instead of checking
	__GNUC_MINOR__ which can break when the major version changes.

svn path=/trunk/mono/; revision=122702
2009-01-07 20:08:13 +00:00
Zoltan Varga 5c44702768 2009-01-07 Zoltan Varga <[email protected]>
* RxInterpreter.cs: Add support for constant strings in anchors. Fixes
	#464135.

svn path=/trunk/mcs/; revision=122700
2009-01-07 19:48:15 +00:00
Geoff Norton d301307c08 2009-01-07 Geoff Norton <[email protected]>
* Revert the OSX workaround to nunit, as the runtime is fixed now

svn path=/trunk/mcs/; revision=122687
2009-01-07 17:56:07 +00:00
Geoff Norton 75a3b2d391 2009-01-07 Geoff Norton <[email protected]>
* processes.c: Properly implement support for Process.Modules on OSX.
        Fixes OSX on nunit 2.4

svn path=/trunk/mono/; revision=122686
2009-01-07 17:53:26 +00:00
Sebastien Pouliot ab2c9c015d net_2_1_raw_System.dll.sources: Add System/UriTypeConverter.cs to NET_2_1 build.
svn path=/trunk/mcs/; revision=122685
2009-01-07 17:49:31 +00:00
Sebastien Pouliot a2b29a2cc3 2009-01-07 Sebastien Pouliot <[email protected]>
* UriTypeConverter.cs: Customize for NET_2_1 since this type is 
	not part of System.Windows.dll anymore


svn path=/trunk/mcs/; revision=122684
2009-01-07 17:47:56 +00:00
Rodrigo Kumpera 9b8fe4d23d 2009-01-07 Rodrigo Kumpera <[email protected]>
* bug-459094.cs: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122675
2009-01-07 17:06:18 +00:00
Rodrigo Kumpera 4e197d2936 2009-01-07 Rodrigo Kumpera <[email protected]>
* file-io.c (ves_icall_System_IO_MonoIO_GetCurrentDirectory): Double check the
	return value of GetCurrentDirectory to never access unitialized memory.

svn path=/trunk/mono/; revision=122674
2009-01-07 17:06:09 +00:00
Rodrigo Kumpera 40b0f8a4a2 2009-01-07 Rodrigo Kumpera <[email protected]>
* io.c (GetCurrentDirectory): Avoid calling g_get_current_dir straight
	away as it doesn't handle ENAMETOOLONG correctly. As a bonus we avoid
	allocating memory in the common path.

svn path=/trunk/mono/; revision=122673
2009-01-07 17:06:05 +00:00
Rodrigo Kumpera f9f7b65e0c 2009-01-07 Rodrigo Kumpera <[email protected]>
* file-io.c (ves_icall_System_IO_MonoIO_GetCurrentDirectory): Properly check the
	return value of GetCurrentDirectory and expand the buffer if needed.

	Fixes #459094.

svn path=/trunk/mono/; revision=122672
2009-01-07 17:05:56 +00:00
Rodrigo Kumpera e2acdb129a 2009-01-07 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Add tests for usage of the sizeof opcode.

svn path=/trunk/mono/; revision=122671
2009-01-07 17:05:51 +00:00
Bill Holmes a4ea14b948 2009-10-07 Tom Hindle <[email protected]>
* marshal.c (GetIUnknownForObjectInternal, GetIUnknownForObjectInternal) :
	  Adding a call to mono_init_com_types.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=122662
2009-01-07 15:24:05 +00:00
Marek Safar c9643d9e1f Print full name.
svn path=/trunk/mcs/; revision=122659
2009-01-07 13:50:08 +00:00
Marek Habersack e3ec7324e7 2009-01-07 Marek Habersack <[email protected]>
* HttpModulesSection.cs: allow for modules with non-public
	constructors. Fises bug #463971

	* HttpHandlerAction.cs: allow for handlers with non-public
	constructors. Fixes bug #463971

svn path=/trunk/mcs/; revision=122658
2009-01-07 13:47:03 +00:00
Kornél Pál e3893c2888 DefaultWsdlHelpGenerator.aspx: Move <script> at the end of <head> that will make Visual Studio recognize the web service disco reference. Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=122652
2009-01-07 13:13:18 +00:00
Carlos Alberto Cortez 48279fef4d 2009-01-06 Carlos Alberto Cortez <[email protected]>
* RadioButton.cs: When setting Checked, we should first update the
	check state of the current RadioButton, as well as invalidating it,
	and after that actually update the siblings. This is done to match
	.net.
	Fixes the remaining bits of #463028.


svn path=/trunk/mcs/; revision=122648
2009-01-07 12:03:40 +00:00
Atsushi Eno c60ae91aad 2009-01-07 Atsushi Enomoto <[email protected]>
* ClientBase.cs : added ChannelBase class inside.


svn path=/trunk/mcs/; revision=122641
2009-01-07 10:00:11 +00:00
Atsushi Eno 2a4a44bc60 2009-01-07 Astushi Enomoto <[email protected]>
* net_2_1_raw_System.ServiceModel.dll.sources : add OperationContext
	  and OperationContextScope to 2.1 build.

	* OperationContext.cs : changes to include this in net_2_1_raw.


svn path=/trunk/mcs/; revision=122632
2009-01-07 08:23:50 +00:00
Atsushi Eno 7c73195aae 2009-01-07 Atsushi Enomoto <[email protected]>
* ContractDescription.cs : fix by corcompare.


svn path=/trunk/mcs/; revision=122631
2009-01-07 08:11:44 +00:00
Atsushi Eno 38a930b183 2009-01-07 Atsushi Enomoto <[email protected]>
* ClientUtilities/util/Services/DomainManager.cs :
	  quick workaround to fix test runner on OSX, by Geoff Norton.


svn path=/trunk/mcs/; revision=122629
2009-01-07 07:37:39 +00:00
Geoff Norton 067bd1817a 2009-01-07 Geoff Norton <[email protected]>
* SocketTest.cs: Disable some tests on the Mac that rely on socket
        options that are unavailable.

svn path=/trunk/mcs/; revision=122625
2009-01-07 07:04:44 +00:00
Geoff Norton 9f3c95a9d1 2009-01-07 Geoff Norton <[email protected]>
* ApplicationHostTest.cs: Fix a few case-sensitiviy issues.

svn path=/trunk/mcs/; revision=122624
2009-01-07 07:04:19 +00:00
Geoff Norton 9e676d5443 2009-01-07 Geoff Norton <[email protected]>
* Makefile: Respect platform specific test harness exclusions.

svn path=/trunk/mcs/; revision=122623
2009-01-07 07:04:14 +00:00
Geoff Norton f755502872 2009-01-07 Geoff Norton <[email protected]>
* UnixSignalTest.cs: Disable the tests that storm signals on OSX.
        (They wont work)

svn path=/trunk/mcs/; revision=122622
2009-01-07 07:04:10 +00:00
Geoff Norton 4a3ac25e76 2009-01-07 Geoff Norton <[email protected]>
* WindowHandler.cs: Don't attempt to activate a disposed Form.
        Fixes several of the nunit winforms crashes on Mac.

svn path=/trunk/mcs/; revision=122621
2009-01-07 07:04:02 +00:00
Geoff Norton e44fa94000 2009-01-07 Geoff Norton <[email protected]>
* configure.in: Provide platform information to the mcs build tree

svn path=/trunk/mono/; revision=122618
2009-01-07 06:31:28 +00:00
Geoff Norton d466154198 2009-01-07 Geoff Norton <[email protected]>
* socket-io.c: ioctlsocket(FIONREAD) returns the size of the UDP header as well on
        darwin.  Use getsockopt SO_NREAD instead to get the right values for TCP and UDP.
        ai_canonname can be null in some cases on darwin, where the runtime assumes it will
        be the value of the ip buffer.

svn path=/trunk/mono/; revision=122617
2009-01-07 06:30:53 +00:00
Geoff Norton 2efca6fc8f 2009-01-07 Geoff Norton <[email protected]>
* library.make: Allow platform specific exclude tags from the
        test harness suite.
        * darwin.make: Add to the build and add a new NotOnMac test
        category

svn path=/trunk/mcs/; revision=122616
2009-01-07 06:30:51 +00:00
Geoff Norton b568cf173d 009-01-07 Geoff Norton <[email protected]>
* helpers.c:  Allow mono -v -v -v to work on darwin.

svn path=/trunk/mono/; revision=122615
2009-01-07 06:30:47 +00:00
Geoff Norton f57da89f97 2009-01-07 Geoff Norton <[email protected]>
* processes.c: Only use open -W on OSX 10.5+.  Patch from
        Miguel

svn path=/trunk/mono/; revision=122614
2009-01-07 06:30:43 +00:00
Atsushi Eno 865348e6c0 2009-01-07 Atsushi Enomoto <[email protected]>
* RemotingServicesTest.cs : mark failing test as NotWorking, and 
	  Ignore the blocker for other tests.
	  Remoting tests are finally back!


svn path=/trunk/mcs/; revision=122612
2009-01-07 06:03:38 +00:00
Atsushi Eno e2d9a3100f 2009-01-07 Atsushi Enomoto <[email protected]>
* BaseCalls.cs : fully name is sometimes rejected ... ?


svn path=/trunk/mcs/; revision=122611
2009-01-07 06:02:23 +00:00
Atsushi Eno 3ccf089eb7 2009-01-07 Atsushi Enomoto <[email protected]>
* GenericTest.cs : change from NotWorking to Ignore which also fails
	  and blocks further tests under .NET.


svn path=/trunk/mcs/; revision=122610
2009-01-07 05:39:37 +00:00
Atsushi Eno 31e3350fd4 2009-01-07 Atsushi Enomoto <[email protected]>
* HttpBugTests.cs : mark some tests as [Ignore] as they are blocker
	  to other http tests. Make sure to unregister HTTP channel.


svn path=/trunk/mcs/; revision=122609
2009-01-07 05:28:55 +00:00
Rodrigo Kumpera bc22dd9d92 2009-01-07 Rodrigo Kumpera <[email protected]>
* Vector*.cs: Use explicit layout to avoid the runtime
	miscalculating the size of vector types.

svn path=/trunk/mcs/; revision=122607
2009-01-07 04:04:22 +00:00
Atsushi Eno 73025446bc 2009-01-07 Atsushi Enomoto <[email protected]>
* GenericTest.cs, HttpServerChannelTests.cs, ActivationTests.cs,
	  BaseCalls.cs, CrossDomainCalls.cs, HttpBugTests.cs,
	  ContextsTest.cs : explicitly set applicationBasePath to load
	  the test assembly itself. It reduces hundreds of test failures
	  under .NET and upgraded NUnit.
	  Marked some tests as NotWorking (due to nunit upgrade).


svn path=/trunk/mcs/; revision=122606
2009-01-07 03:46:50 +00:00
Atsushi Eno 28ac67adbc 2009-01-07 Atsushi Enomoto <[email protected]>
* CompareInfo.cs : Fixed bug #462957. With empty target string it
	  should always return 0.

	* CompareInfoTest.cs : added test for #462957.


svn path=/trunk/mcs/; revision=122602
2009-01-07 02:43:34 +00:00
Zoltan Varga ecb8d921b7 2009-01-07 Zoltan Varga <[email protected]>
* AsyncTest.cs: Disable these tests, they fail randomly (bug #463999).

svn path=/trunk/mcs/; revision=122599
2009-01-07 01:18:07 +00:00
Gonzalo Paniagua Javier 42f4d6e1d2 2009-01-06 Gonzalo Paniagua Javier <[email protected]>
* TcpClient.cs: use IPv6Any when the family is IPv6.
	Bug #462688 fixed.


svn path=/trunk/mcs/; revision=122598
2009-01-07 01:17:08 +00:00
Rodrigo Kumpera edd0d6cc22 2009-01-06 Rodrigo Kumpera <[email protected]>
* valid_iface_constant_with_parent_implementing_it.il:
	Regression test for #461200.

svn path=/trunk/mono/; revision=122585
2009-01-06 22:05:32 +00:00
Rodrigo Kumpera 6c32bcfd3c 2009-01-06 Rodrigo Kumpera <[email protected]>
* verify.c (mono_class_interface_implements_interface): Verify parents as we can't rely on
	interfaces_packed here.

	Fixes part of #463294.

svn path=/trunk/mono/; revision=122584
2009-01-06 22:05:23 +00:00
Rodrigo Kumpera d8deef1680 2009-01-06 Rodrigo Kumpera <[email protected]>
* valid_array_compat_with_bonds_and_sizes.il:
	* valid_array_compat_with_bounds.il:
	* valid_array_compat_with_sizes.il: Regrression tests for
	#461200.

svn path=/trunk/mono/; revision=122583
2009-01-06 22:05:21 +00:00
Rodrigo Kumpera a7f0733cc4 2009-01-06 Rodrigo Kumpera <[email protected]>
* verify.c (is_array_type_compatible): Ignore bounds and sizes when checking array compatibility.

	Fixes part of #463294.

svn path=/trunk/mono/; revision=122582
2009-01-06 22:05:12 +00:00
Rodrigo Kumpera a6455019b2 2009-01-06 Rodrigo Kumpera <[email protected]>
* valid_ceq_with_boxed_vt.il: Regression test for #461200.

svn path=/trunk/mono/; revision=122580
2009-01-06 22:05:11 +00:00
Rodrigo Kumpera b47ecaf7e8 2009-01-06 Rodrigo Kumpera <[email protected]>
* verify.c (stack_slot_is_complex_type_not_reference_type): Check if the type
	is a boxed complex as well.

	Fixes part of #463294.

svn path=/trunk/mono/; revision=122579
2009-01-06 22:05:02 +00:00
Marek Safar c73b05436e Test enabled
svn path=/trunk/mcs/; revision=122571
2009-01-06 18:07:50 +00:00
Marek Safar 43b5a0ffb0 Report correctly anonymous type primitives
svn path=/trunk/mcs/; revision=122560
2009-01-06 16:24:09 +00:00
Marek Safar 54c57a1163 New test.
svn path=/trunk/mcs/; revision=122559
2009-01-06 16:17:36 +00:00
Marek Safar 11d9343e11 New test, update
svn path=/trunk/mcs/; revision=122558
2009-01-06 16:15:22 +00:00
Marek Safar 2998f84821 2009-01-06 Marek Safar <[email protected]>
* decl.cs, iterators.cs, expression.cs, statement.cs, doc.cs, 
	class.cs, cs-parser.jay, codegen.cs: Clean up destructor
	implementation. Also fixes #463108.


svn path=/trunk/mcs/; revision=122557
2009-01-06 16:15:03 +00:00
Jb Evain 61972b7982 remove code which actually lives in mono-tools/
svn path=/trunk/mcs/; revision=122552
2009-01-06 15:03:39 +00:00
Jb Evain a22e90907a update project files
svn path=/trunk/mcs/; revision=122550
2009-01-06 15:00:37 +00:00
Jb Evain bfe6e902a6 2009-01-06 Jb Evain <[email protected]>
* transform.cs
	* cormissing.xsl
	* mono-api.xsl
	* mono-api-diff.cs:
		remove deprecated code.


svn path=/trunk/mcs/; revision=122549
2009-01-06 15:00:13 +00:00
Jb Evain 55dd582215 2009-01-06 Jb Evain <[email protected]>
* scripts/Makefile.am: don't generate a script for the now
	dead mono-api-diff.


svn path=/trunk/mono/; revision=122547
2009-01-06 14:56:25 +00:00
Jb Evain 0f3040e248 2009-01-06 Jb Evain <[email protected]>
* Makefile: only build mono-api-info, as mono-api-diff and transform
	are not used anymore.


svn path=/trunk/mcs/; revision=122546
2009-01-06 14:51:19 +00:00
Ankit Jain a47f80335e In class/Microsoft.Build.Engine:
* Microsoft.Build.Engine_test.dll.sources: Add TestMessageLogger from
	Ms.Build.Tasks tests.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
	* Project.cs (Build): Honor InitialTargets list.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
	* ProjectTest.cs (TestInitialTargets): New.

svn path=/trunk/mcs/; revision=122545
2009-01-06 14:37:16 +00:00
Jonathan Pryor 518e7393d8 * man/mdoc-update.1: Document -fno-assembly-versions.
svn path=/trunk/mono/; revision=122544
2009-01-06 14:27:55 +00:00
Ankit Jain aeab59ba3a * BuildEngine.cs (BuildProjectFile): Use AddProperty method to specify
the property type also.
* MSBuild.cs (Execute): Parse 'Properties' task param to set global
properties.

svn path=/trunk/mcs/; revision=122542
2009-01-06 13:40:29 +00:00
Rodrigo Kumpera b8919956d8 2009-01-06 Rodrigo Kumpera <[email protected]>
* bug-462592.cs: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122540
2009-01-06 13:05:09 +00:00
Rodrigo Kumpera 15de1ed464 2009-01-06 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_image_get_methodref_token): Add an extra create_typespec parameter to
	control if a methodspec should be created for the generic method definition from external assemblies.
	Caching of methodspec is done using the handleref hash table.

	Fixes #462592.

svn path=/trunk/mono/; revision=122539
2009-01-06 13:04:55 +00:00
Ankit Jain db7bc07fb3 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Project.cs (Build): Correctly handle null targetNames argument.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* EngineTest.cs: Update tests for null targetNames argument to
	project.Build

svn path=/trunk/mcs/; revision=122531
2009-01-06 09:50:15 +00:00
Carlos Alberto Cortez b84054eb29 2009-01-05 Carlos Alberto Cortez <[email protected]>
* RadioButtonTest.cs: New test for Checked property. Also reset
	'event_called' field to keep sanity for other tests.


svn path=/trunk/mcs/; revision=122523
2009-01-06 08:42:08 +00:00
Carlos Alberto Cortez c66dc562ef 2009-01-05 Carlos Alberto Cortez <[email protected]>
* RadioButton.cs: Setting Checked to false should set TabStop to stop
	as well. Also, when we get the focus and no other RadioButton is
	selected in the parent control, we should mark ourselves as Checked.
	Fixes part of #463028.


svn path=/trunk/mcs/; revision=122522
2009-01-06 08:30:11 +00:00
Ankit Jain 5688577cd4 * Engine.cs (LogProjectStarted): Add a null check.
svn path=/trunk/mcs/; revision=122516
2009-01-06 07:27:43 +00:00
Michael Barker fe19960ab7 2009-01-06 Michael Barker <[email protected]>
* Fixed failing message formatter tests and moved
	them to the Mono.Messaging.RabbitMQ namespace


svn path=/trunk/mcs/; revision=122514
2009-01-06 07:04:42 +00:00
Michael Barker 41d8ccc366 2009-01-06 Michael Barker <[email protected]>
* Fixed failing message formatting tests and moved
	them to the Mono.Messaging.RabbitMQ namespace


svn path=/trunk/mcs/; revision=122513
2009-01-06 07:02:55 +00:00
Jonathan Pryor b6ca17f2bd * Makefile: Fix $(the_lib) dependencies so that monodoc.dll is rebuilt
when one of Resources/* is modified.
	* Resources/mdoc-html-utils.xsl: Rework the Requirements block so that
	  it doesn't require //AssemblyInfo or //AssemblyVersion.  This allows
	  `mdoc update -fno-assembly-versions ...`-produced XML to still
	  produce HTML with a Requirements section (skipping the Assembly
	  Versions block but generating the Namespace and Assembly blocks).
	  Change the behavior of //since generation so that instead of
	  printing out a note before the method summary, a Since block is added
	  to the Requirements section, and the Since block contains the
	  //since/@version text.  All this to make Mike Kestner happier. :-)

svn path=/trunk/mcs/; revision=122508
2009-01-06 04:48:02 +00:00
Jonathan Pryor f73677f952 * Makefile: Fix $(PROGRAM) dependencies so that mdoc.exe is rebuilt
when one of the dependent ../monodoc/Resources/* files is changed.

svn path=/trunk/mcs/; revision=122507
2009-01-06 04:44:08 +00:00
Jonathan Pryor ff6b6f569c * Mono.Documentation/mdoc.cs: `mdoc' (no arguments) shouldn't print an
index out of range error.  Fix.
	* Mono.Documentation/monodocer.cs: Rename -fno-member-assembly-info to
	  -fno-assembly-versions, which prevents generation of //AssemblyVersion
	  elements.  This suffers the same warning as -fno-member-assembly-info,
	  so don't use unless you can guarantee that no members will 
	  ever be removed from your public API. :-)
	  Clean up -f handling so that -f:no-assembly-versions will work as
	  expected.

svn path=/trunk/mcs/; revision=122506
2009-01-06 04:12:50 +00:00
Atsushi Eno 9e88e2e21a 2009-01-06 Atsushi Enomoto <[email protected]>
* DateTime.cs : when ".FF..." is specified, allow milliseconds-less
	  time. Fix #444103.

	* DateTimeTest.cs : added test for parsing no-millisecond time
	  with optional millisecond designator.


svn path=/trunk/mcs/; revision=122503
2009-01-06 02:33:11 +00:00
Jonathan Pryor 46c3627654 * Mono.Documentation/monodocer.cs: Add -fno-member-assembly-info,
which remove /Type/Members/Member/AssemblyInfo elements.
	  Requested by Mike Kestner.
	  Warning: this option will break automatic version tracking, so if a
	  member is present in e.g. v1.0 and is removed in e.g. v2.0, 
	  the //Member element will be removed entirely when updating the
	  documentation against the 2.0 assembly.  Use with care.

svn path=/trunk/mcs/; revision=122502
2009-01-06 00:10:45 +00:00
Ankit Jain c2e886ec9b * Makefile (EXTRA_DISTFILES): Add Test/resources/Sample.cs
svn path=/trunk/mcs/; revision=122497
2009-01-05 22:08:28 +00:00
Mario Carrion c5e6d2599c 2009-01-05 Mario Carrion <[email protected]>
* DataGrid.cs: UIA suppport. internal events: 
        UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
        UIASelectionChanged, UIACollectionChanged. Internal properties: 
        UIARowHeight, UIACellsArea, UIACaptionArea, 
        UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
        UIAVScrollBar and UIAHScrollBar.


svn path=/trunk/mcs/; revision=122483
2009-01-05 20:33:09 +00:00
Bill Holmes 8719a72d4a 2009-01-05 Bill Holmes <[email protected]>
* mini-amd64.c (mono_arch_get_vcall_slot) : Handle an additional instruction
	  pattern.

	Contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=122480
2009-01-05 20:04:50 +00:00
Jonathan Pobst 284767c84b 2009-01-05 Jonathan Pobst <[email protected]>
* ToolStripSplitStackLayout.cs: Enable the overflow button if any
	of the buttons are set to Overflow = Always.
	[Fixes bug #463013]

svn path=/trunk/mcs/; revision=122479
2009-01-05 20:02:27 +00:00
Ankit Jain 70b2c61465 * CreateManifestResourceName.cs (Execute): Use full path, also helps
with debugging.

svn path=/trunk/mcs/; revision=122477
2009-01-05 19:23:27 +00:00
Jb Evain ae6856e0a5 2009-01-05 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionHelper.cs
	* Mono.Cecil/DefaultImporter.cs:
		Adjust references's generic parameter count on import.


svn path=/trunk/mcs/; revision=122476
2009-01-05 19:09:43 +00:00
Jb Evain 26ce089b30 remove hard coded constant
svn path=/trunk/mcs/; revision=122471
2009-01-05 17:16:07 +00:00
Jb Evain 9db43523d0 remove completed todo
svn path=/trunk/mcs/; revision=122470
2009-01-05 17:11:47 +00:00
Jb Evain a8ec96f5b2 2009-01-05 Jb Evain <[email protected]>
* mono-api-info.cs: output custom attributes for generic parameters
	as well.


svn path=/trunk/mcs/; revision=122469
2009-01-05 17:03:05 +00:00
Jb Evain 0af863fa42 2009-01-05 Jb Evain <[email protected]>
* mono-api-info.cs: specify an `enumtype` attribute to describe
	enumeration underlyin types.


svn path=/trunk/mcs/; revision=122468
2009-01-05 16:31:20 +00:00
Jb Evain 006bfb901f 2009-01-05 Jb Evain <[email protected]>
* mono-api-info.cs: don't emit empty attributes on properties.


svn path=/trunk/mcs/; revision=122466
2009-01-05 16:20:17 +00:00
Zoltan Varga e61b107614 2009-01-05 Zoltan Varga <[email protected]>
* ExecutionContextTest.cs (Copy_FromThread): Disable this test, it doesn't
	seem to work after the nunit upgrade.

svn path=/trunk/mcs/; revision=122462
2009-01-05 15:03:37 +00:00
Sebastien Pouliot 9f1087f73b 2009-01-05 Sebastien Pouliot <sebastien at ximian.com>
* CodeReader.cs: Do not call VisitVariableDefinitionCollection
	unless LocalVarToken is different from zero.
	* CodeWriter.cs: Use HasVariables and HasExceptionHandlers.
	Write zero, not TokenType.Signature, for LocalVarToken if no 
	variable is defined. That should fix the problem with unsign
	* Mono.Cecil.Cil/MethodBody.cs: Add HasExceptionHandlers, 
	HasVariables and HasScopes to avoid creating empty collections 
	inside Cecil. There is no HasInstruction because there's always
	something if MethodDefinition.HasBody is true (i.e. a MethodBody
	exists). [re-apply r1222198]


svn path=/trunk/mcs/; revision=122458
2009-01-05 13:39:32 +00:00
Marek Safar 75bffee53a 2009-01-05 Marek Safar <[email protected]>
A fix for bug #416109
	* decl.cs: Issue correct CLSAttribute warning location.


svn path=/trunk/mcs/; revision=122456
2009-01-05 13:33:25 +00:00
Zoltan Varga 6b43a1f4f9 2009-01-05 Zoltan Varga <[email protected]>
* pinvoke2.cs: Add another test for generic structures.

svn path=/trunk/mono/; revision=122455
2009-01-05 13:27:26 +00:00
Zoltan Varga f3d87193a7 2009-01-05 Zoltan Varga <[email protected]>
* mini.c (mono_allocate_stack_slots_full2): Use mono_class_from_mono_type
	instead of directly accessing type->data.klass. Fixes #462016.
	(mono_allocate_stack_slots_full): Ditto.

svn path=/trunk/mono/; revision=122452
2009-01-05 13:20:43 +00:00
Rodrigo Kumpera 94a6bf8935 2009-01-05 Rodrigo Kumpera <[email protected]>
* bug-463303.il: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122451
2009-01-05 13:18:11 +00:00
Rodrigo Kumpera e5bc7fa4d4 2009-01-05 Rodrigo Kumpera <[email protected]>
* loader.c (find_method): When searching the interfaces of a class
	check the transitive closure of implemented interfaces.

	Fixes #463303.

svn path=/trunk/mono/; revision=122450
2009-01-05 13:18:02 +00:00
Marek Safar 8fb41ec1bd New test.
svn path=/trunk/mcs/; revision=122447
2009-01-05 12:25:40 +00:00
Marek Safar b854023dfa 2009-01-05 Marek Safar <[email protected]>
A fix for bug #456775
	* attribute.cs: Use attribute owner scope when resolving attribute
	arguments.


svn path=/trunk/mcs/; revision=122444
2009-01-05 12:22:09 +00:00
Federico Di Gregorio 5259cfd553 Added missing property Extend to Mono.Cairo.Pattern
svn path=/trunk/mcs/; revision=122443
2009-01-05 12:14:43 +00:00
Marek Safar e6c057aad4 New test.
svn path=/trunk/mcs/; revision=122440
2009-01-05 11:50:05 +00:00
Marek Safar aa527cd0cc 2009-01-05 Marek Safar <[email protected]>
A fix for bug #457257
	* decl.cs: Fixed incorrect member declaring type comparison.


svn path=/trunk/mcs/; revision=122438
2009-01-05 11:49:44 +00:00
Marek Safar 250dc0d38b 2009-01-05 Marek Safar <[email protected]>
A fix for bug #460896
	* driver.cs: Handle /RES resources as embeddable.


svn path=/trunk/mcs/; revision=122434
2009-01-05 11:28:40 +00:00
Marek Safar f868eefea7 New test.
svn path=/trunk/mcs/; revision=122430
2009-01-05 10:59:04 +00:00
Marek Safar 932ade4a62 Report also related member location.
svn path=/trunk/mcs/; revision=122429
2009-01-05 10:58:53 +00:00
Marek Safar 293a6d72d9 2009-01-05 Marek Safar <[email protected]>
A fix for bug #462515
	* ecore.cs: Report inacessible members upwards.


svn path=/trunk/mcs/; revision=122428
2009-01-05 10:52:55 +00:00
Marek Safar a43348a3d0 New tests.
svn path=/trunk/mcs/; revision=122426
2009-01-05 10:11:48 +00:00
Marek Safar db030c2b10 2009-01-05 Marek Safar <[email protected]>
A fix for bug #463190, #463192
	* decl.cs, namespace.cs: Also import internal extension classes.


svn path=/trunk/mcs/; revision=122425
2009-01-05 10:11:30 +00:00
Zoltan Varga c5de692586 2009-01-05 Zoltan Varga <[email protected]>
* configure.in: Disable sigaltstack on freebsd as it doesn't seem to work.

svn path=/trunk/mono/; revision=122421
2009-01-05 09:09:50 +00:00
Zoltan Varga f38db10bf3 2009-01-05 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_flush_icache): Applied patch from Riku Voipio 
	<[email protected]>. Fix cache flush on kernels without OLDABI compat option.

svn path=/trunk/mono/; revision=122416
2009-01-05 08:58:47 +00:00
Zoltan Varga 288e528fbb 2009-01-05 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_plt): Fix ARM build.

svn path=/trunk/mono/; revision=122415
2009-01-05 08:54:19 +00:00
Zoltan Varga ec85a55cc0 Remove this unused directory.
svn path=/trunk/mono/; revision=122414
2009-01-05 08:48:28 +00:00
Raja R Harinath 2c3d3c3c42 * DataRelationCollection.cs (BinarySerialize): New. Carved out of ...
* DataSet.cs (BinarySerialize): ... this.

svn path=/trunk/mcs/; revision=122412
2009-01-05 07:32:17 +00:00
Raja R Harinath 95fc061ac6 * DataRelationCollection.cs: Sequester NET_2_0 and NET_1_1 specific code into separate parts.
svn path=/trunk/mcs/; revision=122411
2009-01-05 07:31:45 +00:00
Raja R Harinath c5306b4ddc Move DataSet.Tables serialization to DataTableCollection
* DataTableCollection.cs (BinarySerialize_Schema): New.
(BinarySerialize_Data): Likewise.  Carved out of ...
* DataSet.cs (BinarySerialize): ... this.

svn path=/trunk/mcs/; revision=122410
2009-01-05 07:31:20 +00:00
Raja R Harinath 3a1b121b33 * DataTableCollection.cs: Sequester NET_2_0 and NET_1_1 specific code into separate parts.
svn path=/trunk/mcs/; revision=122409
2009-01-05 07:30:49 +00:00
Michael Barker 3777c19321 2009-01-03 Michael Barker <[email protected]>
* AsyncPeekTest.cs:  Added test for handling exceptions aysnchronously.
	* AsyncReceiveTest.cs:  Added test for handling exceptions aysnchronously.
	* MessageQueueBase.cs:  Added support for handling exception asynchronously.


svn path=/trunk/mcs/; revision=122408
2009-01-05 04:39:22 +00:00
Marek Safar 74b04d6218 New test.
svn path=/trunk/mcs/; revision=122401
2009-01-04 21:59:54 +00:00
Marek Safar 48563bebd2 2009-01-04 Marek Safar <[email protected]>
A fix for bug #463415
	* generic.cs: Use right index for RemoveDependentTypes.


svn path=/trunk/mcs/; revision=122400
2009-01-04 21:56:34 +00:00
Gert Driesen 2188d2883c * DataReaderTest.cs: Added tests for GetValue. Improved test
for GetBytes.

svn path=/trunk/mcs/; revision=122399
2009-01-04 21:47:09 +00:00
Gert Driesen a2589359cd * SqlCommandBuilderTest.cs: Improved tests to also check
behavior of RefreshSchema.
* SqlDataReaderTest.cs: Added tests for GetBytes.

svn path=/trunk/mcs/; revision=122398
2009-01-04 21:45:09 +00:00
Gert Driesen 8f11335732 * Tds.cs: Support detecting NULL value when sequentially reading
text/ntext/image column. Fixed typo in exception message in
GetSequentialColumnValue. Support reading zero-length binary data.

svn path=/trunk/mcs/; revision=122397
2009-01-04 21:40:30 +00:00
Gert Driesen e3c0d4579c * SqlDataReader.cs: Added GetSchemaRowDbType overload for
getting sql type of a given column (identified using its
ordinal). Modified GetBytes to throw SqlNullValueException
(2.0 profile) or return 0 (1.0 profile) when reading bytes
sequentially. Added support for non-sequentially reading
text and ntext columns using GetBytes. Modified GetChar
to throw a NotSupportedException to match MS.

svn path=/trunk/mcs/; revision=122396
2009-01-04 21:38:09 +00:00
Gert Driesen e9afd5d74d * SqlCommandBuilder.cs (RefreshSchema): Clear commands.
svn path=/trunk/mcs/; revision=122395
2009-01-04 20:55:09 +00:00
Zoltan Varga 32f61feb2a 2009-01-04 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Optimize this using ins->prev.

svn path=/trunk/mono/; revision=122394
2009-01-04 19:15:25 +00:00
Zoltan Varga 4d98de27e3 2009-01-04 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Fix an assert introduced by the last
	change.

svn path=/trunk/mono/; revision=122392
2009-01-04 18:46:08 +00:00
Carlos Alberto Cortez 7c6019e92c 2009-01-03 Carlos Alberto Cortez <[email protected]>
* BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
	based on whether the binding source is availble or not. Fixes #463008.


svn path=/trunk/mcs/; revision=122388
2009-01-04 02:54:18 +00:00
Zoltan Varga 22c1397215 2009-01-04 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Use branch->inst_true_bb/inst_false_bb
	instead of bblock->out_bb [0]/[1], the two might not be the same. Fixes
	#463357.

	* iltests.il.in: Add a regression test.

svn path=/trunk/mono/; revision=122386
2009-01-04 01:51:55 +00:00
Gert Driesen 5f04e3651c * Tds.cs: Added IsWideType method.
* Tds70.cs: Fixed columnsize for unicode columns. Set precision
and scale for non-decimal/numeric column.
* TdsColumnType.cs: Adds tds names as comment.

svn path=/trunk/mcs/; revision=122385
2009-01-03 23:53:59 +00:00
Gert Driesen a7331a74c3 * DataReaderTest.cs: Added tests for GetChars, GetOrdinal,
GetValue and GetValues. Improved existing tests.
* DbDataReaderTest.cs: Moved GetProviderSpecificValue test
to provider specific tests (as its behavior differs between
Odbc and SqlClient). Removed unused property.

svn path=/trunk/mcs/; revision=122384
2009-01-03 23:33:20 +00:00
Gert Driesen 8a6bd370d1 Save as UTF-8.
svn path=/trunk/mcs/; revision=122383
2009-01-03 23:27:27 +00:00
Gert Driesen 37d01cae34 * SqlCommandBuilderTest.cs: Improve Get*Command tests.
* SqlCommandTest.cs: Fixed warning.
* SqlConnectionTest.cs: Removed unused property.
* SqlDataReaderTest.cs: Enabled GetChars test on 1.0
profile. Added GetValues test. Added and improved
GetSqlValue tests. Improved HasRows and NextResult
tests. Added GetFieldType tests. Added big batch of
schema-related tests.
* SqlParameterTest.cs: Moved disconnected tests to
System.Data test suite. Improved test for bug
#382635. Added test for failed conversion to SQL type.


svn path=/trunk/mcs/; revision=122382
2009-01-03 23:24:47 +00:00
Gert Driesen 1e50a2325f * SqlDataReader.cs: Removed unused dataTypeNames, and
unnecessary initializations. Added missing reader state
and row state checks. Fixed implementation of HasRows.
Modified type of DataType to object on 1.0 profile for
compatibility with .NET 1.x. Do not mark (Big)VarBinary
or ((Big)Binary as long, as unit tests show that IsLong
is for wide (unicode) data types. Fixed type data for
SmallDateTime and SmallMoney data types. Improved support
for bigint data type (using TDS 7.0).

svn path=/trunk/mcs/; revision=122381
2009-01-03 23:07:06 +00:00
Gert Driesen 55a3f19733 * SqlCommand.cs: Moved connection reset before the throw.
Improved exception message.

svn path=/trunk/mcs/; revision=122380
2009-01-03 22:59:29 +00:00
Gert Driesen 9ec8751239 * SqlCommandBuilder.cs: Only set SourceColumn for null check
parameters on the 2.0 profile, and set SourceVersion to
Current on 1.0 profile. Changed accessibility of RefreshSchema
to public, and do not immediately create commands. Removed
CWL.

svn path=/trunk/mcs/; revision=122379
2009-01-03 22:55:09 +00:00
Gert Driesen 7c73fb19d6 * SqlParameterTest.cs: Added .ctor tests. Improved
ParameterType and ResetDbType tests. Added ParameterName,
SourceColumn and Value tests. Partially enable SqlValue
test.

svn path=/trunk/mcs/; revision=122378
2009-01-03 22:48:07 +00:00
Gert Driesen 83cff6650f * SqlParameter.cs: When setting ParameterName or sourceName to
null, use a zero-length string instead. On 1.0 profile, only
infer type from value if value is not null or DBNull. Store
raw value in TdsMetadataParameter, and use delegate to convert
it to framework type (when necessary). Improve implementation
of SqlValue (still needs lots of work).

svn path=/trunk/mcs/; revision=122376
2009-01-03 22:40:34 +00:00
Gert Driesen c01828d449 * TdsMetaParameter.cs: Define delegate for performing conversion for
retrieving value as framework type from SqlParameter. Store both raw
value as converted/resized value to allow us to perform lazy
conversion. Only resize value if value or size were updated. Avoid
double casting in ResizeValue.

svn path=/trunk/mcs/; revision=122375
2009-01-03 22:37:25 +00:00
Rodrigo Kumpera b3cfdad6ca 2009-01-04 Rodrigo Kumpera <[email protected]>
* mini-codegen.c (mono_print_ins_index): Pretty print XPHI and VPHI.

svn path=/trunk/mono/; revision=122365
2009-01-03 14:34:48 +00:00
Rodrigo Kumpera 69063b6128 2009-01-04 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Add a regression test for #462457.

svn path=/trunk/mono/; revision=122364
2009-01-03 14:34:42 +00:00
Rodrigo Kumpera 259b5ab3b7 2009-01-04 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Add a definition of XPHI.

	* mini.h (MONO_IS_PHI): Make is aware of simd instrincs.

	* ssa.c (op_phi_to_move): Handle XPHI.

	* ssa.c (mono_ssa_compute): Generate a XPHI for simd intrinsics instead of VPHI.

	Fixes #462457

svn path=/trunk/mono/; revision=122363
2009-01-03 14:34:37 +00:00
Rodrigo Kumpera 0ef30d3553 2009-01-04 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_emit_rgctx_calli): Fix a warning.

svn path=/trunk/mono/; revision=122362
2009-01-03 14:34:30 +00:00
Gert Driesen 13b9781926 * System.Data_test.dll.sources: Added SqlCommandBuilderTest.cs
and SqlParameterTest.cs.
* DbCommandBuilder.cs (QuoteIdentifier): Throw NotSupportedException.
* DbDataAdapter.cs (Update): Add row causing concurrency violation
to DBConcurrencyException.
* OdbcCommandBuilder.cs (QuoteIdentifier): Escape QuoteSuffix
character(s) in unquoted identifier.
* SqlCommandBuilder.cs: Added missing checks for QuotePrefix and
QuoteSuffix on 2.0 profile, and return a zero-length string if
not set (or set to null) on 1.0 profile. Do not allow the value
of CatalogSeparator and SchemaSeparator to be changed from '.'.
Modified generated SQL to match MS. Added implementation for
QuoteIdenfifier. Modified parameters to match MS.
* SqlParameter.cs (SqlValue): Keep Value in sync.
* DbCommandBuilderTest.cs: Added test for QuoteIdentifier.
* OdbcCommandBuilderTest.cs: Enabled test for QuoteIdentifier.
* SqlCommandBuilderTest.cs: Added tests for CatalogLocation,
CatalogSeparator, ConflictOption, QuoteIdentifier, QuotePrefix,
QuoteSuffix  and SchemaSeparator.
* SqlParameterTest.cs: Moved existing tests from ProviderTests
to increase their visibility. Added tests for type inference.

svn path=/trunk/mcs/; revision=122361
2009-01-03 14:24:15 +00:00
Rodrigo Kumpera dce1fcefb8 2009-01-03 Rodrigo Kumpera <[email protected]>
* bug-400716.cs: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122360
2009-01-03 06:52:13 +00:00
Rodrigo Kumpera 21b3a495ba 2009-01-03 Rodrigo Kumpera <[email protected]>
* class.c (get_implicit_generic_array_interfaces): Improve debugging code.

svn path=/trunk/mono/; revision=122359
2009-01-03 06:51:59 +00:00
Rodrigo Kumpera 980eba904d 2009-01-03 Rodrigo Kumpera <[email protected]>
* class.c (get_implicit_generic_array_interfaces): Extract valuetype
	interfaces calculation to fill_valuetype_array_derived_types.

	* class.c (get_implicit_generic_array_interfaces): Valuetypes need IList /
	ICollection / IEnumerator interfaces for their extra twin type - sbyte for byte
	for example.

	* class.c (get_implicit_generic_array_interfaces): InternalEnumerator gets
	interfaces for valuetypes if needed.

	* class.c (fill_valuetype_array_derived_types): Enums should have interfaces
	for their basetype as well. Types are array expanded if rank is > 0.

	Fixes #400716.

svn path=/trunk/mono/; revision=122358
2009-01-03 06:51:44 +00:00
Ivan Zlatev 4a5cf7e39c 2009-01-03 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: We should return a value even if we are not bound
	to a DataGridView.

svn path=/trunk/mcs/; revision=122357
2009-01-02 22:45:56 +00:00
Sebastien Pouliot 21287d4719 2009-01-02 Sebastien Pouliot <[email protected]>
* TestBitmap.cs: Add test cases for SetResolution


svn path=/trunk/mcs/; revision=122355
2009-01-02 21:31:04 +00:00
Marek Safar 0271d66d02 New test.
svn path=/trunk/mcs/; revision=122349
2009-01-02 18:16:11 +00:00
Marek Safar afb043300c 2009-01-02 Marek Safar <[email protected]>
A fix for bug #463196
	* expression.cs: Fixed enum to null comparison.


svn path=/trunk/mcs/; revision=122348
2009-01-02 18:15:53 +00:00
Marek Safar ea99b465d0 New test.
svn path=/trunk/mcs/; revision=122345
2009-01-02 17:31:33 +00:00
Marek Safar 7d4dbae638 2009-01-02 Marek Safar <[email protected]>
A fix for bug #463121
	* nullable.cs: Fixed nullable user quality operator comparison.


svn path=/trunk/mcs/; revision=122344
2009-01-02 17:29:00 +00:00
Ivan Zlatev 37e85b0abb 2009-01-02 Ivan N. Zlatev <[email protected]>
* CurrencyManager.cs, DataGrid.cs:
	   - Rename CanAddRows to AllowNew. The CurrencyManager has no
	   concept of "rows".
	   - Add two more internal properties AllowRemove and AllowEdit.
	* DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows,
	AllowUserToDeleteRows and cell ReadOnly state to be also checked against the
	CurrencyManager data source.

svn path=/trunk/mcs/; revision=122342
2009-01-02 17:07:52 +00:00
Sebastien Pouliot 29533acdff 2009-01-02 Sebastien Pouliot <[email protected]>
* PenTest.cs: Fix test case not to use a color that is "destroyed" 
	by another unit test. The nunit update changed the order in which 
	the test cases are executed.


svn path=/trunk/mcs/; revision=122341
2009-01-02 16:07:12 +00:00
Marek Safar d8376f8bb9 New test.
svn path=/trunk/mcs/; revision=122339
2009-01-02 15:45:37 +00:00
Marek Safar 0c5a2b9db7 New test.
svn path=/trunk/mcs/; revision=122338
2009-01-02 15:45:24 +00:00
Marek Safar fa2fba4871 2009-01-02 Marek Safar <[email protected]>
A fix for bug #462950
	* class.cs, decl.cs: Use full explicit name when defining automatic
	property backing field.


svn path=/trunk/mcs/; revision=122334
2009-01-02 13:44:23 +00:00
Ivan Zlatev 65b7926385 2009-01-02 Ivan N. Zlatev <[email protected]>
* DataViewManager.cs: Implement all MonoTODO. Fixes the WinForms
	DataBinding unit tests.

svn path=/trunk/mcs/; revision=122333
2009-01-02 13:27:10 +00:00
Marek Safar 3f7889f0c0 New test.
svn path=/trunk/mcs/; revision=122332
2009-01-02 13:02:41 +00:00
Marek Safar b883b24e8a build 1.1 profile fix
svn path=/trunk/mcs/; revision=122330
2009-01-02 12:56:48 +00:00
Marek Safar fb6f19b6cd 2009-01-02 Marek Safar <[email protected]>
A fix for bug #462592
	* pending.cs: Emit type arguments for generic proxy method.


svn path=/trunk/mcs/; revision=122329
2009-01-02 12:54:00 +00:00
Ivan Zlatev df085989dd 2009-01-02 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix crashes caused by assigning negative values to
	ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
	the column/row heights/widths.

svn path=/trunk/mcs/; revision=122325
2009-01-02 12:37:19 +00:00
Ivan Zlatev 46277274ee 2009-01-02 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Non-autogenerated columns that have a data property
	set that exists in the current datasource should be set to be data-bound.

svn path=/trunk/mcs/; revision=122324
2009-01-02 12:18:07 +00:00
Ivan Zlatev 1c01d89753 2009-01-02 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix column sorting for columns containing null
	values. A "null" value is not always "null" (e.g could be String.Empty)
	and thus parsing numeric types throwed an exception for "null" values.

svn path=/trunk/mcs/; revision=122323
2009-01-02 12:17:46 +00:00
Ivan Zlatev 853335fb4a 2009-01-02 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Detach the editing control when the edit is
	finished.

svn path=/trunk/mcs/; revision=122322
2009-01-02 01:01:03 +00:00
Ivan Zlatev 037633822d 2009-01-02 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Multiple fixes to handle last column/row removal
	and cell movement after that instead of throwing exceptions.

svn path=/trunk/mcs/; revision=122321
2009-01-01 23:02:45 +00:00
Ivan Zlatev 209eae257a 2009-01-02 Ivan N. Zlatev <[email protected]>
* DataGridViewCellCollection.cs: When cells are removed the column
	indices become invalid if the cell is not the last one and have to
	be refreshed.

svn path=/trunk/mcs/; revision=122320
2009-01-01 23:02:41 +00:00
Ivan Zlatev b01cafed5b 2009-01-02 Ivan N. Zlatev <[email protected]>
* DataGridViewCellCollection.cs: When cells are removed the column
	indices become invalid if the cell is not the last one and have to
	be refreshed.

svn path=/trunk/mcs/; revision=122319
2009-01-01 23:02:11 +00:00
Ivan Zlatev 3eba80f1e3 2009-01-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Return false in CommitEdit if there was an error.

svn path=/trunk/mcs/; revision=122318
2009-01-01 19:05:39 +00:00
Ivan Zlatev 821933298e 2009-01-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Remove a leftover Console.WriteLine.

svn path=/trunk/mcs/; revision=122317
2009-01-01 18:46:45 +00:00
Ivan Zlatev 151cb10515 2009-01-01 Ivan N. Zlatev <[email protected]>
* DataGridViewRow.cs: Access the indexer of the data manager directly
	instead of the internal list.

svn path=/trunk/mcs/; revision=122316
2009-01-01 18:46:06 +00:00
Ivan Zlatev 016e720dee 2009-01-01 Ivan N. Zlatev <[email protected]>
* DataViewManager.cs: Hookup to the table/relations changed events and
	raise ListChanged events accordingly.

svn path=/trunk/mcs/; revision=122315
2009-01-01 18:46:02 +00:00
Ivan Zlatev 1b00ce0759 2009-01-01 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
	Rewrite the value getting, setting, parsing, formatting logic:
	   - If data-bound value get/set should actually get and set from the
	     data source.
	   - Make proper usage of TypeConverters for value parsing/formatting.
	   - Raise DataError if setting the new value fails.
	   - Get rid off the internal valueType field and get/set the ValueType
	   property instead.
	[Fixes bug #462051]

svn path=/trunk/mcs/; revision=122314
2009-01-01 18:45:34 +00:00
Ivan Zlatev 05ad35f50c 2009-01-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Rewrite the DataBinding layer:
	   - Get rid off all BindingSource/IBindingList/DataSet/DataTable
	   specific code.
	   - Get rid off the per DataSource type column autogeneration code.
	   - Use the CurrencyManager for everything that is DataBinding related.

svn path=/trunk/mcs/; revision=122313
2009-01-01 18:45:20 +00:00
Ivan Zlatev c4a381203c 2009-01-01 Ivan N. Zlatev <[email protected]>
* CurrencyManager.cs: Do not fire duplicate ListChanged events.

svn path=/trunk/mcs/; revision=122312
2009-01-01 18:45:02 +00:00
Ivan Zlatev 471feb65c9 2008-12-31 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewRow.cs: Add a new internal property
	DataManager to fetch the CurrencyManager for the DataGridView and to
	spare this logic for the other components to follow.

svn path=/trunk/mcs/; revision=122311
2009-01-01 18:44:38 +00:00
Ankit Jain 0b9db4baca Improve expression parsing, esp for concat'ing expressions.
In class/Microsoft.Build.Engine:

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

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

	* IReference.cs: New. Interface for Item/Metadata/PropertyReference.
	* ChangeType (ToBuildItemGroup): Add 'split' param.
	Track api changes.
	* Expression.cs (Parse): Add a new overload with a 'split' param.
	* ExpressionCollection.cs (Add): Add new overload for IReference,
	remove the ones for Item/Metadata/PropertyReference.
	(ConvertToArray): Implement correctly.
	(ConvertToString): Track api changes.
	(ConvertToITaskItem): Implement with ConvertToITaskItemArray.
	(ConvertToITaskItemArray): Implement support for concat'ing expressions.
	(AddItemsToArray): New.
	(ConvertToITaskItemArrayFromString): Refactor a bit.
	(ThrowCantConcatError): New.
	* ItemReference.cs: Update.
	* MetadataReference.cs: Update.
	* PropertyReference.cs (ConvertToITaskItemArray): Implement.
	(GetValue): New.
	* BuildPropertyGroup.cs: Track api changes.
	* TaskEngine.cs (PublishOutput): Improve exception message.
	* Project.cs (DoLoad): Improve exception message. Add a null check.

In class/Microsoft.Build.Engine/Test/various:

	* Items.cs: Add tests for expression parsing, mainly for concat'ing
	expressions. Remove "NotWorking" for some tests that are working now.

svn path=/trunk/mcs/; revision=122310
2009-01-01 08:38:13 +00:00
Jonathan Pobst 953f1afb4e fix build
svn path=/trunk/mcs/; revision=122309
2008-12-31 23:47:27 +00:00
Geoff Norton ae4d58d483 2008-12-31 Geoff Norton <[email protected]>
* mini-ppc.c: The prolog size allocated can be too small for darwin
        ppc32 under certain circumstances.  Also fix a small logic bug.

svn path=/trunk/mono/; revision=122306
2008-12-31 18:45:17 +00:00
Mario Carrion a6544cce37 2008-12-31 Mario Carrion <[email protected]>
* MessageBox.cs: UIA support: new properties: UIAMessage, 
        UIAMessageRectangle and UIAIconRectangle.


svn path=/trunk/mcs/; revision=122303
2008-12-31 17:51:24 +00:00
Sandy Armstrong 61ee1261ef * Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs: Add
PopupButtonPanel.PopupButton.PerformClick method and
  DirComboBox.DirComboBoxItem.ToString override for UIA support.

svn path=/trunk/mcs/; revision=122302
2008-12-31 17:45:47 +00:00
Jonathan Pobst c22e62fc6d Fix tests.
svn path=/trunk/mcs/; revision=122298
2008-12-31 16:12:02 +00:00
Gert Driesen 25c01a2252 * app-default.config: Renamed to app-net_1_1.config, and added
providerTests section.
* app-net_2.0.config: Added providerTests section and removed
mono.data section.
* Makefile: Added support for CONNECTION variable and corresponding
PROVIDER_TESTS_CONNECTION environment variable. Always rebuild test
assembly since we have no dependency check for sources in place.
Only add reference to Mono.Data on 1.1 profile. Added reference to
System.Configuration on 2.0 profile.
* sqlserver.config: Merged into app-*.config.
* odbc.config: Merged into app-*.config.
* System.Data.Connected.Tests.dll.sources: Added ConnectionConfig.cs,
EngineConfig.cs, EngineType.cs, ProviderTestsConfigurationHandler.cs
and DbDataReaderTest.cs. Removed OdbcConnectionStringBuilderTest.cs.
* ConnectionConfig.cs:  Holds information on a specific connection and
corresponding engine to test.
* EngineConfig.cs: Holds information on the capabilities and behavior
of an RDBMS engine.
* EngineType.cs: Defines different database engines supported by the
provider tests.
* ConnectionManager.cs: Use DbProviderFactory and DbConnection
on 2.0 profile. Added support for new Connection/Engine configuration.
* ProviderTestsConfigurationHandler.cs: IConfigurationSectionHandler
for the ProviderTests section.
* DataReaderTest.cs: Added tests that were previously part of
SqlClient tests but apply to all families. Improved existing
tests.
* DbDataReaderTest.cs: Added GetProviderSpecificValues error check
 tests.
* IDbCommandTest.cs: Added ExecuteNonQuery tests for empty CommandText.
Added test for bug #462947.
* OdbcCommandBuilderTest.cs: Improved GetDeleteCommand,
GetInsertCommand and GetUpdateCommand tests. Added QuotePrefix,
QuoteSuffix and QuoteIdentifier tests.
* OdbcCommandTest.cs: Improved existing tests. Added
ExecuteNonQuery and Dispose tests.
* OdbcConnectionStringBuilderTest.cs: Moved to System.Data
test suite.
* OdbcDataAdapterTest.cs: Removed extra whitespace.
* OdbcDataReaderTest.cs: Added GetBytes and GetSchemaTable
tests.
* OdbcParameterCollectionTest.cs: Improve existing tests.
* OdbcParameterTest.cs: Added tests for several data types.
* SqlCommandBuilderTest.cs: Improve Get*Command tests.
* SqlCommandTest.cs: Added test for bug #341743. Added test
for connection state after executing invalid SQL. Improved
stored procedure test to check behavior with and without
leading '@' for parameter names. Minor formatting changes.
* SqlConnectionTest.cs: Split up connection string errors
test.
* SqlDataReaderTest.cs: Improved GetInt64Test. Improved and
added GetBytes tests. Added GetSqlValues and HasRows tests.
Added GetSchemaTable test. Improved GetProviderSpecificFieldType
tests.
* SqlParameterTest.cs: Improved ParameterType test. Added
type inferrence tests.
* SqlTransactionTest.cs: Allow not working tests to run on MS.
* MySQL_5.sql: Added numeric and decimal colums with different
precision and scale. Added more rows to binary_family. Added
nchar and nvarchar columns to string_family, and added extra
data. Added time and date columns to datetime_family.
* sqlserver.sql: Added numeric and decimal colums with different
precision and scale. Added timestamp column and more rows to
binary_family. Added nchar and nvarchar columns to string_family,
and added extra data. Added sp_326182 stored procedure.
* sybase.sql: Added more rows to binary_family.

svn path=/trunk/mcs/; revision=122297
2008-12-31 15:35:07 +00:00
Massimiliano Mantione 30bf4c6e4b Updated profiler documentation.
svn path=/trunk/mono/; revision=122288
2008-12-31 11:01:37 +00:00
Massimiliano Mantione 6b4867221e mono-profiler-logging.c: added "save-allocation-caller" option.
svn path=/trunk/mono/; revision=122287
2008-12-31 11:01:33 +00:00
Massimiliano Mantione 6080cb9711 Fixes for the stat profiler.
svn path=/trunk/mono/; revision=122286
2008-12-31 11:01:16 +00:00
Geoff Norton 251408dd57 2008-12-31 Geoff Norton <[email protected]>
* MethodBody.cs: Revert r122198.  This is causing the linker to emit
	a bogus System.Xml.Linq.dll which cannot be unsigned for usage in
	Moonlight.

svn path=/trunk/mcs/; revision=122285
2008-12-31 06:11:00 +00:00
Ivan Zlatev 9d003f271e 2008-12-31 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Do not autogenerate duplicate column for a
	data member that has already problematically been assigned one.
	* DataGridViewTest.cs: Add a test for bug #457305.
	[Fixes bug #457305]

svn path=/trunk/mcs/; revision=122276
2008-12-30 22:53:55 +00:00
Gert Driesen 39a234d167 * SqlConnectionTest.cs: Improve Database test.
svn path=/trunk/mcs/; revision=122270
2008-12-30 21:24:56 +00:00
Gert Driesen ef12b40ca0 * Tds.cs (LoadData): Improve exception message when attempting to
read before the current position.

svn path=/trunk/mcs/; revision=122268
2008-12-30 20:49:59 +00:00
Gert Driesen a95eba9fae * Tds.cs (LoadData): Improve exception message when attempting to
read before the current position. Update the remaining length of the
stream when skipping bytes.

svn path=/trunk/mcs/; revision=122264
2008-12-30 20:10:38 +00:00
Gert Driesen f0571296c3 * DBConcurrencyException.cs: Marked .ctor taking DataRow [] as
internal so we can use it on the 1.0 profile (internally). Implemented
RowCount.
* System.Data_test.dll.sources: Added DBConcurrencyExceptionTest.cs.
* DBConcurrencyExceptionTest.cs: Added .ctor and Row(Count) tests.

svn path=/trunk/mcs/; revision=122263
2008-12-30 19:58:45 +00:00
Ankit Jain e8528ca452 * library.make (TEST_HARNESS_OUTPUT*): Fix /labels switch.
svn path=/trunk/mcs/; revision=122255
2008-12-30 17:42:44 +00:00
Bill Holmes d069259e0c 2008-12-30 Bill Holmes <[email protected]>
* socket-io.h : Changing the signature of
	  ves_icall_System_Net_Sockets_Socket_Accept_internal to pass
	  the blocking state.

	* icall-def.h :  Changing the signature of
	  System.Net.Sockets.Socket.Accept_internal to pass the blocking state.

	* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
	  For Windows only.  Avoid blocking when calling accept by
	  querying for a connection via select.  The loop also queries
	  the thread state every 1000 micro seconds for the thread
	  stop state.  This will avoid the process hanging on shutdown
	  when using a TcpChannel that is never connected to.

	* Socket.cs (Accept_internal) :  Changing the signature to pass
	  the blocking state.
	  
	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=122252
2008-12-30 16:58:15 +00:00
Bill Holmes b5dde2bbdc 2008-12-30 Bill Holmes <[email protected]>
* socket-io.h : Changing the signature of
	  ves_icall_System_Net_Sockets_Socket_Accept_internal to pass
	  the blocking state.

	* icall-def.h :  Changing the signature of
	  System.Net.Sockets.Socket.Accept_internal to pass the blocking state.

	* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
	  For Windows only.  Avoid blocking when calling accept by
	  querying for a connection via select.  The loop also queries
	  the thread state every 1000 micro seconds for the thread
	  stop state.  This will avoid the process hanging on shutdown
	  when using a TcpChannel that is never connected to.

	* Socket.cs (Accept_internal) :  Changing the signature to pass
	  the blocking state.
	  
	Code is contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=122252
2008-12-30 16:58:15 +00:00
Jonathan Pobst 5a8f421b92 2008-12-30 Jonathan Pobst <[email protected]>
* ProfessionalColorTable.cs: Better detection of user's theme.
	[Fixes bug #462766]

2008-12-30  Jonathan Pobst  <[email protected]>

	* IVisualStyle.cs, VisualStylesGtkPlus.cs, VisualStylesNative.cs:
	Add way to get style filename.
	[Fixes bug #462766]

svn path=/trunk/mcs/; revision=122248
2008-12-30 15:57:12 +00:00
Ankit Jain 8f416a1033 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* MetadataReference.cs (BuildItemGroupToITaskItems): Return unique
	metadata values for unqualified references.
	(BuildItemGroupToITaskItemArray): Rename to ..
	(BuildItemGroupToITaskItems): .. this.
	(HasTaskItem): New.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* ProjectTest.cs (TestBatchedMetadataRef[23]): Modify to check for
	multiple items with same metadata value, incase of unqualified metadata
	references.
	Track changes in BatchingTestTask.

In class/Microsoft.Build.Engine/Test/resources:

	* TestTasks.cs (BatchingTestTask): Add specific properties
	for string and string[].

svn path=/trunk/mcs/; revision=122246
2008-12-30 15:49:05 +00:00
Raja R Harinath 9d04c77c25 * ProcessTest.cs: Import System.Threading namespace.
svn path=/trunk/mcs/; revision=122245
2008-12-30 15:00:11 +00:00
Raja R Harinath 8e8a9957e9 * Makefile (TEST_MCS_FLAGS): Reference System.Messaging.dll.
svn path=/trunk/mcs/; revision=122244
2008-12-30 14:59:46 +00:00
Raja R Harinath 6da65c28f2 * CustomSection.cs: Only enable in the 2.0 profile.
svn path=/trunk/mcs/; revision=122243
2008-12-30 14:59:23 +00:00
Raja R Harinath a1cae67e2c Mildly rewrite duplicate-inferring logic.
* Index.cs (IndexDuplicateState): Remove.
(_hasDuplicates): Remove.  Replace by ...
(know_have_duplicates, know_no_duplicates): ... these.

svn path=/trunk/mcs/; revision=122242
2008-12-30 14:58:57 +00:00
Marek Safar 0e6741b0d3 2008-12-30 Marek Safar <[email protected]>
* main.c: Add METHOD_ATTRIBUTE_CHECK_ACCESS_ON_OVERRIDE.


svn path=/trunk/mono/; revision=122241
2008-12-30 14:43:40 +00:00
Marek Safar f4a05477b0 2008-12-30 Marek Safar <[email protected]>
* tabledefs.h: Add METHOD_ATTRIBUTE_CHECK_ACCESS_ON_OVERRIDE.


svn path=/trunk/mono/; revision=122240
2008-12-30 14:42:32 +00:00
Jb Evain c79b7bd209 use the ecma name instead of the SR name for consistency
svn path=/trunk/mcs/; revision=122239
2008-12-30 14:15:40 +00:00
Gert Driesen c5448484ed Set eol-style.
svn path=/trunk/mcs/; revision=122236
2008-12-30 12:08:45 +00:00
Gert Driesen 211924fcc5 * DataTools.cs
* Provider.cs
* ProviderCollection.cs
* ProviderFactory.cs: Fixed line endings.

svn path=/trunk/mcs/; revision=122235
2008-12-30 12:06:34 +00:00
Marek Safar d7a4c6473e New test.
svn path=/trunk/mcs/; revision=122234
2008-12-30 11:41:39 +00:00
Marek Safar 6776d1027c 2008-12-30 Marek Safar <[email protected]>
* expression.cs (As): Mutate all type arguments.


svn path=/trunk/mcs/; revision=122232
2008-12-30 11:41:05 +00:00
Gert Driesen 021e47b486 * SqlXmlTest.cs: Minor improvements to tests. Marked tests as
NotWorking/NotDotNet to fix test failures on MS.

svn path=/trunk/mcs/; revision=122231
2008-12-30 10:29:34 +00:00
Gert Driesen dd1385a13b * DbCommandBuilder.cs: When CatalogSeparator or SchemaSeparator are
not set (or explicitly set to null or empty string), then return
default separator character. Added value check for CatalogLocation and
ConflictOption. Removed regions.
* DbCommandBuilderTest.cs: Added tests for properties.
* OdbcCommandBuilderTest.cs: Added tests for properties.

svn path=/trunk/mcs/; revision=122230
2008-12-30 10:21:41 +00:00
Gert Driesen fe34437ee6 * DbCommandBuilder.cs: Fixed default value for ConflicOption.
* OdbcCommandBuilder.cs: Added test for ConflictOption default value.

svn path=/trunk/mcs/; revision=122227
2008-12-30 05:11:15 +00:00
Gert Driesen b53afee2b9 * OdbcCommandTest.cs: Added test for bug #341743.
* OdbcColumn.cs: Treat OdbcType.Numeric as decimal.
* OdbcConnection.cs: Keep (weak) list of commands to allow us to
dispose them (and free their corresponding statement handles) when
the connection is closed. Fixed bug #341743.
* OdbcCommand.cs: Add internal Unlink method that is invoked when the
OdbcConnection is disposed, and which frees the statement handle.
Modified ExecuteNonQuery helper to take CommandBehavior and rename
freeHandle argument to createReader. Added CommandBehavior argument
to ExecSQL. Added FreeStatement overload that takes an option to not
perform an unlink. Fixes bug #3417434.

svn path=/trunk/mcs/; revision=122226
2008-12-30 04:33:40 +00:00
Gert Driesen b8ff346173 * DbCommandBuilder.cs: Return a zero-length string when QuotePrefix or
QuoteSuffix are not set (or are set to null). Changing QuotePrefix or
QuoteSuffix after a command has been generated should result in an
InvalidOperationException.
* DbConnectionStringBuilder.cs: Added support for ODBC rules. Major
rewrite fixing many compatibility issues, and improving support for
connectionstring formats/characters.
* System.Data_test.dll.sources: Added OdbcCommandBuilderTest.cs,
OdbcConnectionStringBuilderTest.cs and DbCommandBuilderTest.cs.
* libodbc.cs: Add IdentifierQuoteChar to OdbcInfo.
* OdbcCommandBuilder.cs: Return a zero-length string when QuotePrefix
or QuoteSuffix are not set (or are set to null). Changing QuotePrefix
or QuoteSuffix after a command has been generated should result in an
InvalidOperationException. Implemented support for obtaining
character(s) for quoting identifiers from specified connection.
Modified generated SQL to match MS.
* OdbcConnectionStringBuilder.cs: Improved special casing of Driver
and Dsn keywords. Re-use implemenation of DbConnectionStringBuilder.
Improved argument checks to match MS.
* DbCommandBuilderTest.cs: Added tests for QuotePrefix and
QuoteSuffix.
* DbConnectionStringBuilderTest.cs: Added tests for both odbc and
non-odbc rules.
* OdbcCommandBuilderTest.cs: Added tests for QuotePrefix and
QuoteSuffix. Added tests for QuoteIdentifier (some still marked
NotWorking).
* OdbcConnectionStringBuilderTest.cs: Moved from ProviderTests.
Added and improved tests.

svn path=/trunk/mcs/; revision=122225
2008-12-30 03:41:45 +00:00
Gert Driesen 9beafa005e * XmlDataDocumentTest.cs: Change spaces to tabs. Removed CWLs.
Restore original culture on teardown.

svn path=/trunk/mcs/; revision=122224
2008-12-30 02:40:56 +00:00
Gert Driesen 302207194d * SqlDecimalTest.cs
* SqlInt32Test.cs
* SqlCharsTest.cs
* SqlInt16Test.cs
* SqlInt64Test.cs
* SqlDoubleTest.cs: Change spaces to tabs, and remove extra tabs.
Restore original culture on teardown. Removed CWLs.

svn path=/trunk/mcs/; revision=122219
2008-12-30 02:22:07 +00:00
Gert Driesen 5f1f2dedb3 * SqlGuidTest.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=122217
2008-12-30 01:44:43 +00:00
Gert Driesen b951709b43 * SqlStringTest.cs: Change spaces to tabs. Restore original culture
on teardown. Enable commented-out tests. Removed CWLs.

svn path=/trunk/mcs/; revision=122216
2008-12-30 01:41:46 +00:00
Gert Driesen ef3cae998a * BinarySerializationTest.cs: Change culture for culture-sensitive
tests.
* DataColumnTest2.cs: Change culture for culture-sensitive tests.

svn path=/trunk/mcs/; revision=122213
2008-12-30 00:55:01 +00:00
Gert Driesen 3b4f6b131c * DataTableTest.cs: Allow NFIFromBug55978 test to pass when MONO_PATH
is not set.

svn path=/trunk/mcs/; revision=122212
2008-12-30 00:52:51 +00:00
Ivan Zlatev 69fb4f5607 2008-12-30 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: In the case where there are no autogenerated
	columns and the user adds columns problematically we must generate
	the rows after the very first column is added.

svn path=/trunk/mcs/; revision=122211
2008-12-29 23:43:40 +00:00
Gert Driesen 4aa2d9976e * SqlDbType: Added Date and Time (2.0 only).
svn path=/trunk/mcs/; revision=122209
2008-12-29 23:11:19 +00:00
Carlos Alberto Cortez 57718d679b 2008-12-30 Carlos Alberto Cortez <[email protected]>
* DateTimePicker.cs: When increasing/decreasing the value of month
	with ShowUpDown set to true, moving from december to january, and
	moving from january to december should adjust the year to the next and
	the previous year, respectively.
	Fixes the remaining bits of #459674.


svn path=/trunk/mcs/; revision=122208
2008-12-29 22:35:10 +00:00
Ivan Zlatev 4f421d8e06 2008-12-30 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: If a new cell is selected edit mode should be
	immediately enabled only if EditOnEnter is set. Whether the mouse
	or not was used to select the cell is irrelevant.

svn path=/trunk/mcs/; revision=122205
2008-12-29 22:13:02 +00:00
Ivan Zlatev 7f3060c951 2008-12-29 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Remove a bogus ReBind call, which was causing
	recursive rebinding.

svn path=/trunk/mcs/; revision=122204
2008-12-29 21:32:37 +00:00
Sebastien Pouliot ce1f2f3569 2008-12-29 Sebastien Pouliot <[email protected]>
* Mono.Cecil.Cil/MethodBody.cs: Add HasExceptionHandlers, 
	HasVariables and HasScopes to avoid creating empty collections 
	inside Cecil. There is no HasInstruction because there's always
	something if MethodDefinition.HasBody is true (i.e. a MethodBody
	exists). 


svn path=/trunk/mcs/; revision=122198
2008-12-29 18:48:41 +00:00
Sebastien Pouliot c99a1ed6e2 2008-12-29 Sebastien Pouliot <[email protected]>
* Mono.Cecil/MethodReturnType.cs: Override ToString so we can, by
	default, display something useful about the return type.


svn path=/trunk/mcs/; revision=122197
2008-12-29 18:30:35 +00:00
Sebastien Pouliot f21eae3f9d 2008-12-29 Sebastien Pouliot <[email protected]>
* Mono.Cecil/GenericInstanceMethod.cs,
	* Mono.Cecil/GenericInstanceType.cs,
	* Mono.Cecil/IGenericInstance.cs: Introduce HasGenericArguments into
	the interface and implement it inside GenericInstance[Method|Type]


svn path=/trunk/mcs/; revision=122195
2008-12-29 18:11:12 +00:00
Marek Safar 01c0e2287a New tests.
svn path=/trunk/mcs/; revision=122181
2008-12-29 11:28:50 +00:00
Marek Safar 81215536bf 2008-12-29 Marek Safar <[email protected]>
A fix for bug #462622
	* anonymous.cs: Resolve anonymous type GetHashCode in unchecked
	context.


svn path=/trunk/mcs/; revision=122180
2008-12-29 11:24:42 +00:00
Marek Safar b3cea79b0d 2008-12-29 Marek Safar <[email protected]>
A fix for bug #450782
	* ecore.cs: Consider more variables of form V.I to be fixed.


svn path=/trunk/mcs/; revision=122177
2008-12-29 09:33:38 +00:00
Marek Safar a0b6c058ae 2008-12-29 Marek Safar <[email protected]>
A fix for bug #460712
	* typemanager.cs: Core types could be imported.


svn path=/trunk/mcs/; revision=122176
2008-12-29 09:06:44 +00:00
Zoltan Varga efef96d1c6 2008-12-29 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Avoid holding the domain lock
	while loading AOT methods.

svn path=/trunk/mono/; revision=122170
2008-12-29 01:13:20 +00:00
Zoltan Varga 409ad41ab1 2008-12-29 Zoltan Varga <[email protected]>
* mini-exceptions.c: Check jit_tls->class_cast_from instead of class_cast_to
	since only the former is nulled out after a successful cast. This prevents
	crashes with rethrown exceptions when using --debug=casts.

svn path=/trunk/mono/; revision=122168
2008-12-29 00:54:50 +00:00
Marek Safar 7259797d14 New tests.
svn path=/trunk/mcs/; revision=122159
2008-12-28 14:44:29 +00:00
Marek Safar 434a21d3fd New tests.
svn path=/trunk/mcs/; revision=122158
2008-12-28 14:44:13 +00:00
Marek Safar 7f31b76890 2008-12-28 Marek Safar <[email protected]>
A fix for bugs #460847, #460772, #458049, #457339, #447807
	* generic.cs, parameter.cs, lambda.cs, linq.cs, anonymous.cs
	statement.cs, ecore.cs, class.cs, delegate.cs, flowanalysis.cs
	cs-parser.jay, driver.cs: LINQ implementation upgrade to deal with
	user lambdas used inside query clauses.


svn path=/trunk/mcs/; revision=122157
2008-12-28 14:43:49 +00:00
Rodrigo Kumpera dcf618f3b3 2008-12-26 Rodrigo Kumpera <[email protected]>
* class.c (get_implicit_generic_array_interfaces): Extract common
	code to a helper function making it a lot easier on the eyes.

svn path=/trunk/mono/; revision=122135
2008-12-26 19:19:31 +00:00
Rodrigo Kumpera 26fe7e983e 2008-12-26 Rodrigo Kumpera <[email protected]>
* bug-461261.cs: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122134
2008-12-26 19:19:29 +00:00
Rodrigo Kumpera 0667beb57a 2008-12-26 Rodrigo Kumpera <[email protected]>
* class.c (get_implicit_generic_array_interfaces): If the internal
	enumerator is an interface inflate System.Object instead of itself.

	Fixes #461261.

svn path=/trunk/mono/; revision=122133
2008-12-26 19:19:20 +00:00
Miguel de Icaza 1755003275 A bug fix for 459450
2008-12-25  Miguel de Icaza  <[email protected]>

	* ProcessTest.cs: Created a test case from bug 459450.

2008-12-25   Leszek Ciesielski <[email protected]>

	* System.Diagnostics/Process.cs: Raise the
	Process.OutputDataReceived and Process.ErrorDataReceived with null
	arguments at the end.   This is the documented behavior:

	http://msdn.microsoft.com/en-us/library/system.diagnostics.datareceivedeventargs.data.aspx

	And CruiseControl.NET depended on this.   Bug #459450.
	
	* Microsoft.CSharp/CSharpCodeCompiler.cs: Fix the code, as it
	depened on the previous broken behavior.



svn path=/trunk/mcs/; revision=122125
2008-12-25 17:44:52 +00:00
Marek Habersack a3e3e7976c 2008-12-24 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: A better version of the previous
        GetSection fix. Right now the method searches for directories
        containing web.config and uses them, if found, to open the web
        configuration. If no web.config is found, web configuration is
        opened for the root application directory.

        * WebConfigurationHost.cs: made GetWebConfigFileName internal
        static, so that code can be reused from WebConfigurationManager.

svn path=/trunk/mcs/; revision=122124
2008-12-25 13:02:15 +00:00
Gonzalo Paniagua Javier 79db1be679 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122122
2008-12-25 07:47:35 +00:00
Gonzalo Paniagua Javier 55bbc22620 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122121
2008-12-25 07:46:26 +00:00
Gonzalo Paniagua Javier e674886d4f Use IndexOf (char)
svn path=/trunk/mcs/; revision=122120
2008-12-25 07:43:17 +00:00
Gonzalo Paniagua Javier 67646a07f7 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122119
2008-12-25 07:41:04 +00:00
Gonzalo Paniagua Javier c79405a7c0 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122118
2008-12-25 07:38:51 +00:00
Gonzalo Paniagua Javier 1c4e0f0d57 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122117
2008-12-25 07:38:03 +00:00
Gonzalo Paniagua Javier e2694df215 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122116
2008-12-25 07:36:22 +00:00
Gonzalo Paniagua Javier 13c92404cb Use IndexOf (char)
svn path=/trunk/mcs/; revision=122115
2008-12-25 07:34:53 +00:00
Gonzalo Paniagua Javier 8f6c586c5d Use IndexOf (char)
svn path=/trunk/mcs/; revision=122114
2008-12-25 07:34:03 +00:00
Gonzalo Paniagua Javier 9d6b54ea13 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122113
2008-12-25 07:33:10 +00:00
Gonzalo Paniagua Javier ea54f5bafc 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* SqlProfileProvider.cs: use IndexOf (char).


svn path=/trunk/mcs/; revision=122112
2008-12-25 07:31:44 +00:00
Gonzalo Paniagua Javier 9b30b21a09 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* ServerVariablesCollection.cs: use IndexOf (char).


svn path=/trunk/mcs/; revision=122111
2008-12-25 07:30:09 +00:00
Gonzalo Paniagua Javier 1aa7e69351 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs: use IndexOf (char).


svn path=/trunk/mcs/; revision=122110
2008-12-25 07:28:29 +00:00
Gonzalo Paniagua Javier d35d703d77 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: use Replace (char, char).


svn path=/trunk/mcs/; revision=122109
2008-12-25 07:27:33 +00:00
Gonzalo Paniagua Javier 4568b14260 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* SqlRoleProvider.cs:
	* SqlMembershipProvider.cs: use IndexOf (char) instead of
	IndexOf (string).


svn path=/trunk/mcs/; revision=122108
2008-12-25 07:26:26 +00:00
Carlos Alberto Cortez fbe1859674 2008-12-24 Carlos Alberto Cortez <[email protected]>
* DateTimePicker.cs: Handle the "MMMM" month format.
	Fixes #459674.


svn path=/trunk/mcs/; revision=122102
2008-12-24 22:04:24 +00:00
Mark Probst 9a68332928 2008-12-24 Mark Probst <[email protected]>
* mini.h: New macro for checking whether a method is final,
	i.e. whether the method or its class is marked final.

	* method-to-ir.c: Use the new macro for all final-checks
	consistently.  Fixes the crash in the System.ServiceModel tests.

2008-12-24  Mark Probst  <[email protected]>

	* generic-sealed-virtual.2.cs: Test case for final generic
	methods.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122086
2008-12-24 11:00:35 +00:00
Michael Barker c6d287407d 2008-12-22 Michael Barker <[email protected]>
* RabbitMQMessageQueue.cs:  Changed to extend MessageQueueBase to make use
	of default asynchronous Receive/Peek methods.

2008-12-20  Michael Barker  <[email protected]>

	* AsyncReceiveTest.cs:  New, tests for Asynchronous Receive methods.
	* AsyncPeekTest.cs:  New, tests for Asynchronous Peek methods.
	* MessageQueueEnumeratorTest.cs:  Removed unecesary logging.


svn path=/trunk/mcs/; revision=122085
2008-12-24 09:57:54 +00:00
Michael Barker 64bdc81e0f 2008-12-21 Michael Barker <[email protected]>
* MessageQueueBase.cs:  Added optional base class that provide async
	messaging support.
	* CompletedEventArgs.cs:  Added for events on async methods.
	* CompletedEventHandler.cs:  Added for events on async methods.
	* IMessageQueue.cs:  Added method and event signatures for async messaging.
	* MessagingProviderLocator.cs:  Added constant for InfiniteTimeout.
	* QueueReference.cs:  Remove unecessary logging.


svn path=/trunk/mcs/; revision=122084
2008-12-24 09:55:54 +00:00
Michael Barker 537b9a706c 2008-12-24 Michael Barker <[email protected]>
* Mono.Messaging.dll.sources, added delegate
	type definitions, MessageQueueBase.cs and event
	argument definitions.


svn path=/trunk/mcs/; revision=122083
2008-12-24 09:54:59 +00:00
Michael Barker b88147e95f 2008-12-20 Michael Barker <[email protected]>
* MessageQueue.cs:  Added implementation for async methods: BeginReceive,
	BeginPeek, EndReceive and EndPeek.  Set up event handlers to propagate
	Asycn ReceiveCompleted/PeekCompleted events to System.Messaging API users.


svn path=/trunk/mcs/; revision=122082
2008-12-24 09:50:16 +00:00
Rodrigo Kumpera fce55312d8 I removed some changelog notes while merging locally
svn path=/trunk/mono/; revision=122073
2008-12-24 04:55:15 +00:00
Rodrigo Kumpera cac90acc5e 2008-12-24 Rodrigo Kumpera <[email protected]>
* bug-461941.cs: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122071
2008-12-24 04:51:39 +00:00
Rodrigo Kumpera 937d54b1b3 2008-12-24 Rodrigo Kumpera <[email protected]>
* object.c (mono_runtime_invoke_array): Don't assert with
	byref nullable types.

	* marshal.c (mono_marshal_get_runtime_invoke): To handle
	byref nullables we unbox the object and store it on the
	stack.
	We can't use the boxed object since it is the T of Nullable<T>
	and the boxed representation of a nullable it's underlying type
	or null.
	We could cheat and create a boxed nullable and use the same
	machinery of other byref VTs but this feels like a hack and
	using the stack has the bonus of reducing heap pressure.

	Fixes #461941.

svn path=/trunk/mono/; revision=122070
2008-12-24 04:51:28 +00:00
Marek Habersack 386eddf501 2008-12-24 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: watch for changes to web.config also
	in the subdirectories.

svn path=/trunk/mcs/; revision=122069
2008-12-24 02:15:59 +00:00
Sebastien Pouliot e29ace8e98 2008-12-23 Sebastien Pouliot <[email protected]>
* GDIPlusTest.cs: Add MeasureCharacterRanges test cases around bug
	#449971 and add a few delta for FP comparison.
	* TestGraphics.cs: Add a few delta for FP comparison.


svn path=/trunk/mcs/; revision=122060
2008-12-23 21:11:13 +00:00
Sebastien Pouliot bf17ee5e26 2008-12-23 Sebastien Pouliot <[email protected]>
* GraphicsPathTest.cs, LinearGradientBrushTest.cs, TestMatrix.cs:
	Add delta when comparing floating point values since there can be
	small differences between different platforms.


svn path=/trunk/mcs/; revision=122052
2008-12-23 20:10:57 +00:00
Sebastien Pouliot 09586b8537 2008-12-23 Sebastien Pouliot <[email protected]>
* SoftwarePublisherCertificateTest.cs: Update test syntax to nunit
	2.2. Test more cases like base64, unicode base64 and PEM base64.


svn path=/trunk/mcs/; revision=122049
2008-12-23 18:54:46 +00:00
Sebastien Pouliot 39f3ea1c62 2008-12-23 Sebastien Pouliot <[email protected]>
* SoftwarePublisherCertificate.cs: Support PKCS7 files that with 
	PEM headers around the base64 content.
	[Fix bug #457658]


svn path=/trunk/mcs/; revision=122048
2008-12-23 18:53:29 +00:00
Ivan Zlatev 9b182d74ce 2008-12-23 Ivan N. Zlatev <[email protected]>
* DataGridView.cs:
	   - Make ReBind private and refactor various calls to call ReBind
	   instead of ClearBinding/DoBinding
	   - Rebind when the column collection changes
	* DataGridViewColumnCollection.cs:
	   - Leave the rebinding on change to be handled by the DataGridView.

svn path=/trunk/mcs/; revision=122047
2008-12-23 18:03:18 +00:00
Jonathan Pobst 4367ec98f3 2008-12-23 Jonathan Pobst <[email protected]>
* DataGridView.cs: Add a ReBind convenience method.
	* DataGridViewColumnCollection.cs: Rebind when a column is added.
	[Fixes bug #462019]

2008-12-23  Jonathan Pobst  <[email protected]>

	* DataGridViewDataBindingTest.cs: Add test for bug #462019.

svn path=/trunk/mcs/; revision=122045
2008-12-23 17:46:19 +00:00
Sebastien Pouliot e540bfd0e7 2008-12-23 Sebastien Pouliot <[email protected]>
* IsolatedStorageFileTest.cs: Add test case when null values are used
	in GetStore. Fix bug #430932


svn path=/trunk/mcs/; revision=122042
2008-12-23 16:22:20 +00:00
Sebastien Pouliot 0931e7ed5e 2008-12-23 Sebastien Pouliot <[email protected]>
* IsolatedStorageFile.cs: Use Url as the default evidence type when
	null is supplied.
	[Fix bug #430932]


svn path=/trunk/mcs/; revision=122041
2008-12-23 16:17:51 +00:00
Mark Probst e1dc681f38 2008-12-23 Mark Probst <[email protected]>
* mini-exceptions.c (get_exception_catch_class): Corrected another
	overly strict assertion.

2008-12-23  Mark Probst  <[email protected]>

	* bug-461198.2.cs: New generic sharing test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122037
2008-12-23 15:07:07 +00:00
Rodrigo Kumpera 738dd06814 2008-12-23 Rodrigo Kumpera <[email protected]>
* bug-461867.cs: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122036
2008-12-23 14:36:43 +00:00
Rodrigo Kumpera ccad309cf0 2008-12-23 Rodrigo Kumpera <[email protected]>
* marshal.c (mono_marshal_emit_managed_wrapper): Handle char
	return value.

	Fixes #461867.

svn path=/trunk/mono/; revision=122035
2008-12-23 14:36:34 +00:00
Mark Probst eea0ffc634 2008-12-23 Mark Probst <[email protected]>
* mini-ppc.c (mono_arch_build_imt_thunk): Save and restore r11.
	Clobbering it is not allowed because the caller might use it as
	the vtable register in the interface call.

svn path=/trunk/mono/; revision=122034
2008-12-23 12:03:45 +00:00
Neville Gao 0b323e63a2 SplitContainer enabled to support accessibility.
svn path=/trunk/mcs/; revision=122032
2008-12-23 08:18:33 +00:00
Marek Habersack ce8461d813 2008-12-23 Marek Habersack <[email protected]>
* NunitWeb/Makefile (NunitWeb.dll): added NunitWeb/CustomSection.cs

	* NunitWebResources/CustomSectionEmptyCollection.aspx: added

2008-12-23  Marek Habersack  <[email protected]>

	* WebConfigurationManagerTest.cs: added new test.

2008-12-23  Marek Habersack  <[email protected]>

	* CustomSection.cs: added. Implementation of custom configuration
	elements for WebConfigurationManager tests.

2008-12-23  Marek Habersack  <[email protected]>

	* Web.mono.config: added CustomTags section definition, used in
	WebConfiguratioManager tests.

2008-12-23  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: GetSection should call
	OpenWebConfiguration using the actual directory path, not a file
	path. If it fails to do so, System.Configuration may treat the
	top-level Web.config file as a child one which, in turn, in
	certain circumstances will lead to duplicate keys inserted in
	collections.

2008-12-23  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added Test/mainsoft/NunitWebResources/CustomSectionEmptyCollection.aspx

	* System.Web_test.dll.sources: added mainsoft/NunitWeb/NunitWeb/CustomSection.cs

svn path=/trunk/mcs/; revision=122024
2008-12-23 02:42:50 +00:00
Marek Habersack 831e44e3c0 Fix the build
svn path=/trunk/mcs/; revision=122020
2008-12-22 23:57:49 +00:00
Gonzalo Paniagua Javier 1606b07040 2008-12-22 Gonzalo Paniagua Javier <[email protected]>
* ResourceManager.cs: cache negative results too.


svn path=/trunk/mcs/; revision=122017
2008-12-22 22:39:27 +00:00
Jonathan Pobst 8b6093a0f7 2008-12-22 Jonathan Pobst <[email protected]>
* ToolStripMenuItem.cs: Guard against an NRE.
	[Fixes bug #457110]

svn path=/trunk/mcs/; revision=122013
2008-12-22 21:49:36 +00:00
Veerapuram Varadhan 440b695312 * SqlXmlTest.cs: Available only in 2.0 and above
svn path=/trunk/mcs/; revision=122007
2008-12-22 20:48:01 +00:00
Gonzalo Paniagua Javier ea9d02d719 2008-12-22 Gonzalo Paniagua Javier <[email protected]>
* Configuration.cs: don't try to open the file if we know it does not
	exist. Also, don't hide the actual exception in case there's a problem
	opening the configuration file.


svn path=/trunk/mcs/; revision=122004
2008-12-22 20:31:49 +00:00
Mario Carrion cfdf7c8f9b 2008-12-22 Mario Carrion <[email protected]>
* System.Windows.Forms/Control.cs: AccessibleXXXX properties
          don't return AccessibleObject.XXXX, instead a local referece is
          returned.
        * Test/System.Windows.Forms/ControlTest.cs:
          CreatedAccessibilityTest enabled, testing handle creation and
          custom accessibility implementation.


svn path=/trunk/mcs/; revision=122002
2008-12-22 20:26:14 +00:00
Ivan Zlatev 3993c9ddeb 2008-12-22 Ivan N. Zlatev <[email protected]>
* ReferenceConverter.cs: Implemented.
	* ReferenceConverterTest.cs: Added.
	[Fixes bug #381435]

svn path=/trunk/mcs/; revision=121997
2008-12-22 19:17:58 +00:00
Jonathan Pryor 40ceb42b8a * Documentation/en/**/*.xml: s/NDesk.Options/Mono.Options/g (How'd I
miss this earlier?).

svn path=/trunk/mcs/; revision=121996
2008-12-22 18:46:07 +00:00
Ankit Jain 336e41a9ea * TestMessageLogger.cs: Emit debug messages to stderr.
* CreateCSharpManifestResourceNameTest.cs: Likewise.
Revert last patch, don't emit to stderr, monobuild emits
the log contents now.

svn path=/trunk/mcs/; revision=121992
2008-12-22 17:35:40 +00:00
Ankit Jain ef514b38d4 * TestMessageLogger.cs: Emit debug messages to stderr.
* CreateCSharpManifestResourceNameTest.cs: Likewise.

svn path=/trunk/mcs/; revision=121988
2008-12-22 15:49:06 +00:00
Ankit Jain 5f2e91b931 * System.Data_test.dll.sources: Fix typo in SqlXmlTest.cs
svn path=/trunk/mcs/; revision=121986
2008-12-22 13:49:54 +00:00
Ankit Jain 0803644c7d * TestMessageLogger.cs: Listen for errors and warnings also.
* CreateCSharpManifestResourceNameTest.cs: Emit helpful info when tests
fail.

svn path=/trunk/mcs/; revision=121985
2008-12-22 13:22:02 +00:00
Neville Gao 5f84e436ad Added internal properties to support accessibility.
svn path=/trunk/mcs/; revision=121975
2008-12-22 02:40:04 +00:00
Veerapuram Varadhan 9276aac973 New SqlXmlTests
svn path=/trunk/mcs/; revision=121958
2008-12-21 03:36:34 +00:00
Veerapuram Varadhan a80d9ff2de Added new SqlXmlTest
svn path=/trunk/mcs/; revision=121957
2008-12-21 03:35:52 +00:00
Veerapuram Varadhan 0f66ecebd5 * SqlXml.cs (CreateReader): Better use
ConformanceLevel.Fragment while creating the reader as column
        values are not really Xml documents.  Also, throw
        SqlNullValueException when data is null.
        (.ctor): Take good care of empty XmlReaders.


svn path=/trunk/mcs/; revision=121956
2008-12-21 03:29:26 +00:00
Gonzalo Paniagua Javier 366a8838ab 2008-12-20 Gonzalo Paniagua Javier <[email protected]>
* SqlParameter.cs: I removed these 2 lines I added 2 patches ago in
	the previous patch...



svn path=/trunk/mcs/; revision=121937
2008-12-20 20:47:47 +00:00
Miguel de Icaza b1acc47db5 2008-10-04 Robert Jordan <[email protected]>
* ServerIdentity.cs (DisposeServerObject):
	Notify TrackingServices about server's disconnection.

svn path=/trunk/mcs/; revision=121934
2008-12-20 19:18:55 +00:00
Miguel de Icaza 5814e17325 Apply patch for 436775 from Jeroen Asselman + test case
svn path=/trunk/mcs/; revision=121932
2008-12-20 19:13:54 +00:00
Miguel de Icaza 67c2ea5d54 Some API updates
svn path=/trunk/mcs/; revision=121931
2008-12-20 18:57:23 +00:00
Gonzalo Paniagua Javier cd744f7acb 2008-12-20 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: use the new internal method in Socket to avoid having to
	throw exceptions when there's a timeout.


svn path=/trunk/mcs/; revision=121924
2008-12-20 10:53:59 +00:00
Gonzalo Paniagua Javier 09dd5ff790 2008-12-20 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: add a new ReceiveFrom_nocheck that does not throw an
	exception in case of error.


svn path=/trunk/mcs/; revision=121923
2008-12-20 10:52:59 +00:00
Gonzalo Paniagua Javier b12fef3814 2008-12-20 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: if Blocking is set, translate a WouldBlock into a
	TimedOut.


svn path=/trunk/mcs/; revision=121922
2008-12-20 10:04:01 +00:00
Gonzalo Paniagua Javier e9347b2c23 2008-12-20 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: avoid throwing when parsing a subnet.


svn path=/trunk/mcs/; revision=121921
2008-12-20 09:37:22 +00:00
Gonzalo Paniagua Javier 1bced9acdb 2008-12-20 Gonzalo Paniagua Javier <[email protected]>
* SqlConnection.cs: close the connection on error.


svn path=/trunk/mcs/; revision=121920
2008-12-20 08:53:16 +00:00
Miguel de Icaza 7cf4a8d941 Add a handful of 3.5 methods
svn path=/trunk/mcs/; revision=121919
2008-12-20 07:46:21 +00:00
Miguel de Icaza 5125d6dc2e Add
svn path=/trunk/mcs/; revision=121918
2008-12-20 07:26:29 +00:00
Miguel de Icaza 81b4c6c9dd 2008-12-20 Miguel de Icaza <[email protected]>
* FileStream.cs: Found while debugging webcompare, we should add
	Obsoletes to the FileStream constructors that take IntPtrs.

svn path=/trunk/mcs/; revision=121916
2008-12-20 07:13:13 +00:00
Mario Carrion 531ad8912c 2008-12-19 Mario Carrion <[email protected]>
* Control.cs: Reverted r121561.


svn path=/trunk/mcs/; revision=121913
2008-12-20 04:58:33 +00:00
Mario Carrion cefa30e963 2008-12-19 Mario Carrion <[email protected]>
* ControlTest.cs: Reverted r121558: Removed
          AccessibilityPropertiesTest.

svn path=/trunk/mcs/; revision=121912
2008-12-20 04:56:14 +00:00
Jonathan Pryor b0313b64f9 * signal.c: Improve error checking within Mono_Posix_FromRealTimeSignum.
svn path=/trunk/mono/; revision=121910
2008-12-20 03:19:18 +00:00
Marek Habersack 14f0503b18 2008-12-20 Marek Habersack <[email protected]>
* HttpResponse.cs: the code in TransmitFile (VirtualFile, bool)
	was an abomination - dear children, don't do this at home (never,
	ever, allocate a buffer to load entire file). I will wear a brown
	paper bag every 2nd Sunday in the next 6 months for writing the
	old version of this code.
	New code optimizes the write when DefaultVirtualFile is used (as
	it refers to a physical file on disk) and reads/writes other
	virtual files in chunks.

svn path=/trunk/mcs/; revision=121909
2008-12-20 03:13:33 +00:00
Mark Probst 5baf18d4cf 2008-12-19 Mark Probst <[email protected]>
* ppc/ppc-codegen.h: Fixed the argument order for lwzu in
	ppc_load_reg_update.

svn path=/trunk/mono/; revision=121883
2008-12-19 19:46:04 +00:00
Andrés G. Aragoneses 68c910542a * Managed.Windows.Forms/System.Windows.Forms/X11DesktopColors.cs: Since
r121873 we don't need gtk a11y checks here, it has been moved to the
  bridge.

svn path=/trunk/mcs/; revision=121875
2008-12-19 17:47:57 +00:00
Jb Evain d20fb6a97e add sl2sdk assemblies
svn path=/trunk/mcs/; revision=121854
2008-12-19 15:23:54 +00:00
Bill Holmes c06f0da95f 2008-12-19 Bill Holmes <[email protected]>
* Environment.cs (GetEnvironmentVariable) :  Avoiding an nre if
	  the variable is not set.

	* Environment.cs (SetEnvironmentVariable) : Adding a call to
	  internalBroadcastSettingChange to notify Windows that an environment
	  variable has changed.

	* icall-def.h : Adding an internal call definition for
	  System.Environment.internalBroadcastSettingChange.

	* icall.c : Adding a Windows only implementation to broadcast a
	  WM_SETTINGCHANGE when an environment variable has changed.

	Contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=121853
2008-12-19 15:23:44 +00:00
Bill Holmes af7801a43b 2008-12-19 Bill Holmes <[email protected]>
* Environment.cs (GetEnvironmentVariable) :  Avoiding an nre if
	  the variable is not set.

	* Environment.cs (SetEnvironmentVariable) : Adding a call to
	  internalBroadcastSettingChange to notify Windows that an environment
	  variable has changed.

	* icall-def.h : Adding an internal call definition for
	  System.Environment.internalBroadcastSettingChange.

	* icall.c : Adding a Windows only implementation to broadcast a
	  WM_SETTINGCHANGE when an environment variable has changed.

	Contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=121853
2008-12-19 15:23:44 +00:00
Jonathan Pryor 848c445e8e * map.h: Flush.
* signal.c: Add Mono_Posix_SIGRTMIN(), Mono_Posix_SIGRTMAX(),
	  Mono_Posix_FromRealTimeSignum().
	  Patch thanks to [email protected].

svn path=/trunk/mono/; revision=121852
2008-12-19 15:23:37 +00:00
Jonathan Pryor 04279e46ee * Mono.Posix.dll.sources: Add Mono.Unix.Native/RealTimeSignum.cs.
* Mono.Posix_test.dll.sources: Add 
	  Mono.Unix.Native/RealTimeSignumTest.cs.
	* Mono.Unix/UnixSignal.cs: Allow RealTimeSignums to be used in addition
	  to Signum, so that real time signals can be used.  Patch thanks to 
	  [email protected].
	* Mono.Unix.Native/NativeConvert.cs: Add FromRealTimeSignum(), 
	  ToRealTimeSignum().  Patch thanks to [email protected].
	* Mono.Unix.Native/RealTimeSignum.cs: Added; structure which represents a real-time
	  signal, a value V such that V >= SIGRTMIN and V <= SIGRTMAX.
	  Patch thanks to [email protected].
	* Mono.Unix.Native/Stdlib.cs: Add SetSignalAction() and raise() 
	  overloads which accept a RealTimeSignum instance.
	  Patch thanks to [email protected].
	* Test/Mono.Unix/UnixSignalTest.cs: Add tests for RealTimeSignum 
	  constructors, .RealTimeSignum and .IsRealTimeSignal properties.
	  Patch thanks to [email protected].
	* Test/Mono.Unix.Native/RealTimeSignumTest.cs: Added; unit tests for 
	  RealTimeSignum.  Patch thanks to [email protected].

svn path=/trunk/mcs/; revision=121851
2008-12-19 15:23:31 +00:00
Bill Holmes 7bb260dfeb 2008-12-19 Bill Holmes <[email protected]>
* processes.c (get_module_name) : adjust size for unicode characters.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=121850
2008-12-19 15:16:53 +00:00
Marek Safar a57ea8054f Set svn:eol-style
svn path=/trunk/mcs/; revision=121849
2008-12-19 15:02:59 +00:00
Rolf Bjarne Kvinge 3c666ed033 2008-12-19 Rolf Bjarne Kvinge <[email protected]>
* net_2_1_raw_System.dll.sources: Added IEditableObject.cs


svn path=/trunk/mcs/; revision=121843
2008-12-19 14:32:31 +00:00
Mark Probst 0ae6385382 2008-12-19 Mark Probst <[email protected]>
* mini-exceptions.c (get_exception_catch_class): Corrected an
	overly strict assertion.

2008-12-19  Mark Probst  <[email protected]>

	* class.c, class-internals.h: Made
	mono_class_has_parent_and_ignore_generics() non-static.

2008-12-19  Mark Probst  <[email protected]>

	* bug-459285.2.cs: New generic sharing test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=121841
2008-12-19 13:18:06 +00:00
Atsushi Eno 27e2330f5b 2008-12-19 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : namespace lookup failed for non-atomic
	  string in 1.1 profile. Fixed 1.0 part of #379139.


svn path=/trunk/mcs/; revision=121834
2008-12-19 08:18:02 +00:00
Atsushi Eno f50d8f786c 2008-12-18 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : remove unused file.


svn path=/trunk/mcs/; revision=121833
2008-12-19 05:49:37 +00:00
Atsushi Eno 752b91ca2e 2008-12-18 Atsushi Enomoto <[email protected]>
* BasicProfileChecker.cs : /definitions/message/part could omit
	  name attribute and it should not cause null key error.


svn path=/trunk/mcs/; revision=121828
2008-12-19 03:57:03 +00:00
Marek Habersack 01e2b61f4b 2008-12-19 Marek Habersack <[email protected]>
* SettingsMappingManager.cs: make sure _runningOnWindows is set
	correctly on MacOS/X.


svn path=/trunk/mcs/; revision=121819
2008-12-18 23:39:25 +00:00
Marek Safar 154b6ffbb0 New test.
svn path=/trunk/mcs/; revision=121811
2008-12-18 22:04:54 +00:00
Marek Safar efd2133654 2008-12-18 Marek Safar <[email protected]>
A fix for bug #460229
	* cs-tokenizer.cs: Ignore wrongly placed BOM markers.


svn path=/trunk/mcs/; revision=121810
2008-12-18 22:02:33 +00:00
Brad Taylor e8afe669db 2008-12-18 Brad Taylor <[email protected]>
* DateTimePicker.cs: Add a few UIA specific events, and a couple
	internal methods useful for UIA.


svn path=/trunk/mcs/; revision=121803
2008-12-18 19:47:32 +00:00
Mark Mason 54ea1fcb15 2008-12-18 Mark Mason <[email protected]>
* method-to-ir.c: use SIZEOF_REGISTER instead of SIZEOF_VOID_P or sizeof(gpointer) when appropriate.

        * mini.h: Move typedef to mgreg_t up above include of mini-arch.h

        * local-propogation.c: use SIZEOF_REGISTER instead of SIZEOF_VOID_P when appropriate

        * cpu-mips.md: correct lengths for certain long_ opcodes.

        * mini-mips.h: Only emulate long operations when SIZEOF_REGISTER==4. Add missing func decl.

        * mini-mips.c: Add support for more long operations. Fix issues with stack frame layout for n32 (still not perfect yet). Add mips_emit_load_const().

Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=121800
2008-12-18 19:07:47 +00:00
Marek Safar 13a1ecedef New tests.
svn path=/trunk/mcs/; revision=121799
2008-12-18 19:01:46 +00:00
Marek Safar bfa7bdf029 2008-12-18 Marek Safar <[email protected]>
A fix for bug #459952
	* decl.cs, namespace.cs: Use common CheckAccessLevel.


svn path=/trunk/mcs/; revision=121798
2008-12-18 19:00:44 +00:00
Jonathan Pobst de9b5b4ef5 fix 1.1 build
svn path=/trunk/mcs/; revision=121796
2008-12-18 18:41:27 +00:00
Paolo Molaro b7351f6008 A stupid test case requires a badimage exception.
svn path=/trunk/mono/; revision=121795
2008-12-18 18:29:41 +00:00
Paolo Molaro d219aff86f Thu Dec 18 16:35:22 CET 2008 Paolo Molaro <[email protected]>
* image.c: deal with the mmap failing when loading an image.


svn path=/trunk/mono/; revision=121785
2008-12-18 15:36:25 +00:00
Jb Evain 6643efbf01 2008-12-18 Jb Evain <[email protected]>
* String.cs: the Compare methods that were specific to SL2 are now
	also in .net 2/3.5 sp1.


svn path=/trunk/mcs/; revision=121783
2008-12-18 15:34:59 +00:00
Mario Carrion c0aab7be56 2008-12-18 Mario Carrion <[email protected]>
* ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
        [Fixes Bug #455752]


svn path=/trunk/mcs/; revision=121780
2008-12-18 14:51:03 +00:00
Marek Safar 24608a1121 New test.
svn path=/trunk/mcs/; revision=121777
2008-12-18 13:21:56 +00:00
Marek Safar d30ba7f6d4 2008-12-18 Marek Safar <[email protected]>
A fix for bug #459630
	* convert.cs: Enum to valuetype conversion is not allowed.


svn path=/trunk/mcs/; revision=121776
2008-12-18 13:21:39 +00:00
Marek Safar 17d6609519 2008-12-18 Marek Safar <[email protected]>
A fix for bug #457087
	* generic.cs: Don't crash when constraint comes from type
	declaration.


svn path=/trunk/mcs/; revision=121768
2008-12-18 10:56:34 +00:00
Gonzalo Paniagua Javier 6add7b40ad 2008-12-18 Gonzalo Paniagua Javier <[email protected]>
* ResourceManager.cs: avoid duplication of keys if more than one
	thread is creating the ResourceSet.


svn path=/trunk/mcs/; revision=121766
2008-12-18 06:31:36 +00:00
Marek Habersack b62e106bbd 2008-12-18 Marek Habersack <[email protected]>
* ControlBuilder.cs: BindingContainerType returns typeof (Page)
	only when the current object is a RootBuilder and it's been
	created for a page parser. Otherwise it returns typeof
	(Control). Fixes bug #45630

svn path=/trunk/mcs/; revision=121752
2008-12-18 01:18:50 +00:00
Chris Toshok 716e5127cc Mono.Moonlight.dll is dead. Long live System.Windows.dll.
svn path=/trunk/mcs/; revision=121750
2008-12-18 00:35:43 +00:00
Veerapuram Varadhan 175f56c90f * OciDefineHandle.cs (GetValue): Use connection's environment
handle instead of Parent handle.


svn path=/trunk/mcs/; revision=121735
2008-12-17 23:13:03 +00:00
Jb Evain 8b390a4462 2008-12-17 Jb Evain <[email protected]>
* ExpressionTransformer.cs: fix VisitList.


svn path=/trunk/mcs/; revision=121732
2008-12-17 22:54:50 +00:00
Mike Gorse 144972aaf4 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
item's Focused property is set.

svn path=/trunk/mcs/; revision=121731
2008-12-17 22:41:44 +00:00
Geoff Norton fdb529e029 2008-12-17 Geoff Norton <[email protected]>
* threadpool.c: Ensure that the io_queue_lock is initialized
        in all circumstances, as we always attempt to cleanup against it.

svn path=/trunk/mono/; revision=121725
2008-12-17 20:11:13 +00:00
Ankit Jain 45ca9cf99e * BuildTask.cs (Execute): PublishOutput only if task runs successfully.
svn path=/trunk/mcs/; revision=121723
2008-12-17 19:20:58 +00:00
Ankit Jain a2e02fe22e * Sample.cs: Remove execute perm.
svn path=/trunk/mcs/; revision=121721
2008-12-17 19:08:17 +00:00
Ankit Jain a0ad111bd4 * Sample.cs: Required for CreateCSharpManifestResourceName tests.
svn path=/trunk/mcs/; revision=121720
2008-12-17 19:04:34 +00:00
Ankit Jain 8249ff7365 * Copy.cs: Always overwrite destination files.
svn path=/trunk/mcs/; revision=121719
2008-12-17 18:32:59 +00:00
Ankit Jain e7d9a1f92e * GenerateResource.cs (Execute): Items in 'OutputResources' correspond to
items in 'Sources', handle correctly.

svn path=/trunk/mcs/; revision=121717
2008-12-17 18:15:02 +00:00
Miguel de Icaza ae53d27b35 2008-12-17 Miguel de Icaza <[email protected]>
* icall.c (ves_icall_System_Environment_get_Platform): For
	compatibility reasons for existing client code we will keep
	returning 4 for a while.   

	For how long will depend on the documentation being updated, and
	for us to give client code a chance to be updated.

	This reverts the original decison on #433108 since we did not
	catch roughly 33 instances of the broken code in our own source
	code base, we did not catch failures on the buildbots, and QA did
	not bring this as a problem.

	Only today I found some customer's code breaking due to our own
	class libraries not being fully updated and tracked it down to
	this change.  I am reverting it because if we could not even get
	our story straight in our own code base, how can we hope that our
	end user code be fixed?

	As of this morning, our Wiki page that documents how to detect
	Unix had not been fixed.    

svn path=/trunk/mono/; revision=121714
2008-12-17 18:08:43 +00:00
Sandy Armstrong 6887d1e447 * Managed.Windows.Forms/System.Windows.Forms/TreeView.cs:
* Managed.Windows.Forms/System.Windows.Forms/TreeNode.cs:
* Managed.Windows.Forms/System.Windows.Forms/TreeNodeCollection.cs: Add
  events for UIA support: UIACheckBoxesChanged, UIALabelEditChanged,
  UIANodeTextChanged, and UIACollectionChanged.

svn path=/trunk/mcs/; revision=121712
2008-12-17 18:02:06 +00:00
Miguel de Icaza 8e07acf772 Multiple files:
Deals with the extension to Environment.OSVersion.Platform that might return a new
value MacOSX (6) on .NET
 

svn path=/trunk/mcs/; revision=121711
2008-12-17 17:56:25 +00:00
Jonathan Pobst 52ebdf367e 2008-12-17 Bill Holmes <[email protected]>
* ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
	  SubItemStyle member field. 

	Contributed under MIT/X11 license.

2008-12-17  Jonathan Pobst  <[email protected]>

	* ListViewItemTest.cs: Add test for empty constructor.

svn path=/trunk/mcs/; revision=121709
2008-12-17 17:47:17 +00:00
Ankit Jain 0893112b16 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* MetadataReference.cs (ConvertToITaskItemArray): In case of batching,
	only one instance of unique metadata value is required.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* ProjectTest.cs (TestBatchedMetadataRef1): Modify to check for multiple
	items with same metadata value.

svn path=/trunk/mcs/; revision=121708
2008-12-17 17:11:28 +00:00
Jb Evain dee331ec14 more tests
svn path=/trunk/mcs/; revision=121706
2008-12-17 16:39:04 +00:00
Jb Evain 09be3088ea fix properly
svn path=/trunk/mcs/; revision=121704
2008-12-17 16:31:59 +00:00
Jb Evain a0f6f1823c 2008-12-17 Jb Evain <[email protected]>
* HashSetTest.cs: add test for CopyTo.


svn path=/trunk/mcs/; revision=121701
2008-12-17 16:14:55 +00:00
Jb Evain b61f0a3393 2008-12-17 Jb Evain <[email protected]>
* HashSet.cs (CopyTo): fix logic.


svn path=/trunk/mcs/; revision=121700
2008-12-17 16:11:39 +00:00
Jb Evain e9920d7649 update scripts
svn path=/trunk/mcs/; revision=121696
2008-12-17 16:00:18 +00:00
Jb Evain aa07e642cd inline variable
svn path=/trunk/mcs/; revision=121693
2008-12-17 15:55:02 +00:00
Mark Mason 50426d9016 2008-12-17 Mark Mason <[email protected]>
* exceptions-mips.c (mono_arch_find_jit_info): decode sd instructions as well when looking for registers.
        
Contributed under the MIT X11 license.


svn path=/trunk/mono/; revision=121689
2008-12-17 14:59:30 +00:00
Mark Mason b102271595 2008-12-17 Mark Mason <[email protected]>
* mini-mips.c (mono_arch_output_basic_block): OP_JUMP_TABLE stores patch type in inst_c1, not inst_i1.

Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=121688
2008-12-17 14:44:47 +00:00
Jb Evain 3e30d7dcef revert accidental changes
svn path=/trunk/mcs/; revision=121670
2008-12-17 10:19:00 +00:00
Jb Evain 836d3ed6ab 2008-12-17 Jb Evain <[email protected]>
* mono-api-info.cs: don't add Finalizers to the api definition.


svn path=/trunk/mcs/; revision=121669
2008-12-17 09:56:14 +00:00
Jb Evain 6a4b5476a8 update projects as well
svn path=/trunk/mcs/; revision=121668
2008-12-17 09:54:51 +00:00
Jb Evain 486a7c8c55 update
svn path=/trunk/mcs/; revision=121667
2008-12-17 09:43:57 +00:00
Gonzalo Paniagua Javier a5ba5c6943 2008-12-17 Gonzalo Paniagua Javier <[email protected]>
* ResourceManager.cs: cache ResourceSets instead of loading them from
	their assembly every time they are needed.


svn path=/trunk/mcs/; revision=121664
2008-12-17 08:21:55 +00:00
Carlos Alberto Cortez fc60f16260 2008-12-16 Carlos Alberto Cortez <[email protected]>
* ListBox.cs: In MultiColumn mode don't use top_index to calculate the
	y coord, since it's useless in this case, and we need to rely only on
	the number of rows and ItemHeight to compute this value.
	Fixes part of #257471.


svn path=/trunk/mcs/; revision=121656
2008-12-17 00:49:28 +00:00
Rodrigo Kumpera fcd223112e 2008-12-16 Rodrigo Kumpera <[email protected]>
* branch-opts.c (remove_block_if_useless): Even if BB0 falls through, don't add a br to the
	next basic block.

svn path=/trunk/mono/; revision=121643
2008-12-16 22:56:50 +00:00
Jb Evain 3a01c99f95 add utility function
svn path=/trunk/mcs/; revision=121642
2008-12-16 22:36:13 +00:00
Jb Evain 05b586ffda 2008-12-16 Jb Evain <[email protected]>
* Mono.Cecil.Signatures/SignatureReader.cs: fix reading of wrong
	modifiers.


svn path=/trunk/mcs/; revision=121641
2008-12-16 22:21:31 +00:00
Marek Habersack 55a73972c1 2008-12-16 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: IsDefinitionAllowed should treat
	configPath == "~" as the root application path.

svn path=/trunk/mcs/; revision=121636
2008-12-16 22:00:56 +00:00
Marek Habersack 3dc556df2b 2008-12-16 Marek Habersack <[email protected]>
* data/system.web.extensions.design_1.0.pc.in: added

        * data/Makefile.am (EXTRA_DIST): added
        system.web.extensions.design_1.0.pc.in. Also added to
        pkgconfig_DATA

        * configure.in: added data/system.web.extensions_1.0.pc to
        AC_OUTPUT


svn path=/trunk/mono/; revision=121629
2008-12-16 21:05:48 +00:00
Mike Gorse e206858bed * StatusBar.cs: Send OnUIACollectionChanged in Remove().
svn path=/trunk/mcs/; revision=121627
2008-12-16 20:16:41 +00:00
Jonathan Pobst 7b896c3324 Change exit code to number of tests failed instead of hardcoded zero.
svn path=/trunk/mono/; revision=121623
2008-12-16 19:10:00 +00:00
Marek Habersack d077112f1c 2008-12-16 Marek Habersack <[email protected]>
* StaticFileHandler.cs: use HttpRuntime.RunningOnWindows instead
	of checking the platform directly.

svn path=/trunk/mcs/; revision=121621
2008-12-16 19:00:27 +00:00
Mark Mason 69f4721484 2008-12-16 Mark Mason <[email protected]>
* mini.h: Allow MonoInst 'p' field to alias with the low-order bits of the 'const_val' fields correctly on big-endian systems when SIZEOF_VOID_P < SIZEOF_REGISTER

        * ir-emit.h: Change SIZEOF_VOID_P to SIZEOF_REGISTER, init instruction through inst_c* fields instead of inst_p* fields in case sizeof(inst_p) < sizeof(inst_c)
        
Contributed under the MIT X11 license.


svn path=/trunk/mono/; revision=121620
2008-12-16 19:00:18 +00:00
Jb Evain 7aafecbce7 fix the build
svn path=/trunk/mcs/; revision=121617
2008-12-16 17:34:30 +00:00
Bill Holmes f2b4666f0d 2008-12-16 Bill Holmes <[email protected]>
* winconfig.h : Defining the SIZEOF_REGISTER variable for the MSVC builds.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=121616
2008-12-16 17:26:54 +00:00
Jb Evain cbca93c817 in tools/linker:
2008-12-16  Jb Evain  <[email protected]>

	* Makefile: build monolinker.exe in the profile directory instead of
	the current one.

in tools/tuner and tools/moon:
2008-12-16  Jb Evain  <[email protected]>

	* Makefile: use the monolinker.exe from the profile directory.

svn path=/trunk/mcs/; revision=121613
2008-12-16 16:47:10 +00:00
Gonzalo Paniagua Javier 8c8c3c6bec 2008-12-16 Gonzalo Paniagua Javier <[email protected]>
* SqlParameter.cs: don't allocate error strings until the error
	actually happens. Compare types instead of strings. Use a Hashtable
	for type mappings.


svn path=/trunk/mcs/; revision=121605
2008-12-16 15:43:29 +00:00
Gonzalo Paniagua Javier f6cebfc567 revert
svn path=/trunk/mcs/; revision=121599
2008-12-16 14:56:21 +00:00
Zoltan Varga c944c40564 2008-12-16 Zoltan Varga <[email protected]>
* metadata.c (inflated_method_in_image): Add a workaround for #458168.

svn path=/trunk/mono/; revision=121596
2008-12-16 14:18:00 +00:00
Marek Safar ed77b47938 New tests.
svn path=/trunk/mcs/; revision=121595
2008-12-16 13:57:50 +00:00
Marek Safar 044b9533f5 2008-12-16 Marek Safar <[email protected]>
A fix for bug #459221
	* anonymous.cs, statement.cs: Delay only captured this
	initialization.


svn path=/trunk/mcs/; revision=121594
2008-12-16 13:57:23 +00:00
Mark Mason bb2738e57f 2008-12-15 Mark Mason <[email protected]>
* trace.c (mono_trace_enter_method): correctly handle arguments smaller than the stack slot size on big endian systems.
        
Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=121579
2008-12-16 07:55:45 +00:00
Zoltan Varga 40160081e0 2008-12-16 Zoltan Varga <[email protected]>
* class.c (mono_class_get_fields): Handle loading errors.

svn path=/trunk/mono/; revision=121570
2008-12-16 02:07:07 +00:00
Mario Carrion fc01ba8fb5 2008-12-15 Mario Carrion <[email protected]>
* Control.cs: Accessibility properties instantiate AccessibilityObject when needed.
  [Fixes Bug #459223]
 

svn path=/trunk/mcs/; revision=121561
2008-12-15 22:49:50 +00:00
Mario Carrion e79550a23b 2008-12-15 Mario Carrion <[email protected]>
* ControlTest.cs: New test added: AccessibilityPropertiesTest to test
  accessibility properties: AccessibleName, AccessibleDescription,
  AccessibleDefaultActionDescription and AccessibleRole.
  [Test for bug #459223]


svn path=/trunk/mcs/; revision=121558
2008-12-15 22:39:30 +00:00
Marek Habersack 5e46d16102 2008-12-15 Marek Habersack <[email protected]>
* data/Makefile.am (EXTRA_DIST): added
	system.web.extensions_1.0.pc.in. Also added to pkgconfig_DATA

	* data/system.web.extensions_1.0.pc.in: added. This file serves
	the purpose of making MonoDevelop see the 1.0 version of the
	System.Web.Extensions assembly in the project references
	editor. This will also make legacy 2.0 ASP.NET apps not fail when
	they reference the 1.0 version of the assembly in their project
	files.

	* configure.in: added data/system.web.extensions_1.0.pc to AC_OUTPUT

svn path=/trunk/mono/; revision=121557
2008-12-15 22:36:35 +00:00
Marek Habersack 0195fb4796 Reverting r121536
svn path=/trunk/mcs/; revision=121552
2008-12-15 21:42:52 +00:00
Marek Habersack 7742230a75 2008-12-15 Marek Habersack <[email protected]>
* Configuration.cs: do not reset empty sections - it results in
	the elements from the parent sections being re-added to the
	current section with their default values which, in turn, can lead
	to duplicate keys being added to the collections in some cases.

svn path=/trunk/mcs/; revision=121536
2008-12-15 19:16:27 +00:00
Brad Taylor 5ab18f8344 2008-12-15 Brad Taylor <[email protected]>
* ToolStripItem.cs: Add a UIA specific event for listening for when a
	ToolStripItem becomes selected or deselected.


svn path=/trunk/mcs/; revision=121534
2008-12-15 19:02:41 +00:00
Atsushi Eno e6f0a2c814 2008-12-15 Atsushi Enomoto <[email protected]>
* import-subst-dbr-base.xsd, import-subst-dbr-ext.xsd :
	  new test files.


svn path=/trunk/mcs/; revision=121510
2008-12-15 10:49:12 +00:00
Atsushi Eno 3bfb4f73d0 2008-12-15 Atsushi Enomoto <[email protected]>
* XmlSchema.cs, XmlSchemaSet.cs : move substitutionGroup processing
	  from validation phase to post-subset-collection phase. It caused
	  inconsistent substitutionGroup processing among import and
	  schemaSet.Schemas(). Fixed possible XBRL schema processing.

	* XmlSchemaSetTests.cs : added test for Compile() after "duplicating"
	  call to Add() for such schemas that also have xs:import of the
	  same schema that causes errors on processing substitutionGroup.


svn path=/trunk/mcs/; revision=121509
2008-12-15 10:39:00 +00:00
Carlos Alberto Cortez 8a5366d7af 2008-12-15 Carlos Alberto Cortez <[email protected]>
* MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
	.net does. Use the date in the point of the mouse move coords as the
	new range as well, if the left button of the mouse is being pressed.
	Fixes #364914.


svn path=/trunk/mcs/; revision=121507
2008-12-15 09:36:58 +00:00
Zoltan Varga 50b69f1f41 2008-12-14 Zoltan Varga <[email protected]>
* liveness.c (mono_analyze_liveness): Avoid eliminating the 'this' var in
	gshared code. Fixes #458947.

	* generics.cs: Add a test.

svn path=/trunk/mono/; revision=121496
2008-12-14 09:44:51 +00:00
Mark Mason d9b4e32e77 2008-12-12 Mark Mason <[email protected]>
* method-to-ir.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER
        * where needed.
        
        * mini-mips.c: first pass n32 code generation.

        * mini-mips.h: datatypes and defines for n32 support.

        * exceptions-mips.c: first pass n32 code generation.
        
        * tramp-mips.c: first pass n32 code generation.
        
        * cpu-mips.md: add long_ opcodes.
        

Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=121489
2008-12-13 06:58:32 +00:00
Mark Mason abf32a5d46 2008-12-12 Mark Mason <[email protected]>
* mips/mips-codegen.h: Changes to support n32.
        
Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=121488
2008-12-13 06:54:25 +00:00
Mark Mason d2410e14c3 2008-12-12 Mark Mason <[email protected]>
* liveness.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where
        * needed.

        * cfold.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where
        * needed.
        
        * local-propogation.c: replace SIZEOF_VOID_P with
        * SIZEOF_REGISTER where needed.
        
        * regalloc2.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where
        * needed.

        * mini.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where
        * needed.

        * mini-codegen.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER
        * where needed.

        * ssa.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where
        * needed.

        * decompose.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where
        * needed.

        * helpers.c: for mips/n32, don't pass -mips32 to objdump

Some of the simpler changes of SIZEOF_VOID_P to SIZEOF_REGISTER. Tested
on mips/o32, mips/n32 and x86.

Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=121487
2008-12-13 06:48:38 +00:00
Gonzalo Paniagua Javier c8ebfe25f1 2008-12-12 Gonzalo Paniagua Javier <[email protected]>
* SqlParameter.cs: use the underlying type when inferring the type for
	enumerations.


svn path=/trunk/mcs/; revision=121485
2008-12-13 01:51:41 +00:00
Mark Mason 0e692ee65a 2008-12-12 Mark Mason <[email protected]>
* metadata.c (mono_type_stack_size_internal): If SIZEOF_REGISTER > SIZEOF_VOID_P then use SIZEOF_REGISTER as the size and alignment of the stack slots.
        
Contributed under the MIT X11 license

svn path=/trunk/mono/; revision=121482
2008-12-13 00:09:56 +00:00
Gonzalo Paniagua Javier 4450b294ad 2008-12-12 Gonzalo Paniagua Javier <[email protected]>
* mono-perfcounters.c: avoid warning.


svn path=/trunk/mono/; revision=121472
2008-12-12 22:19:07 +00:00
Zoltan Varga 376cc60900 2008-12-12 Zoltan Varga <[email protected]>
* mini-arm.c tramp-arm.c: Fix calls to mono_arch_flush_icache.

svn path=/trunk/mono/; revision=121457
2008-12-12 19:49:41 +00:00
Andrés G. Aragoneses f4f53439b5 * driver.c: Sync --help-trace with man page (EXPR,EXPR).
svn path=/trunk/mono/; revision=121456
2008-12-12 19:31:11 +00:00
Rodrigo Kumpera 1aa1ddb0e8 2008-12-12 Rodrigo Kumpera <[email protected]>
* bug-389886-sre-generic-interface-instances.cs: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=121455
2008-12-12 19:30:07 +00:00
Rodrigo Kumpera 65b615bb75 2008-12-12 Rodrigo Kumpera <[email protected]>
* reflection.c (ensure_runtime_vtable): Work on generic instances and
	make sure all interfaces have MonoClass::interface_id set.

	* reflection.c (ensure_generic_class_runtime_vtable): Ensure the
	method table is property set.

svn path=/trunk/mono/; revision=121454
2008-12-12 19:29:56 +00:00
Rodrigo Kumpera a20dc160c0 2008-12-12 Rodrigo Kumpera <[email protected]>
* class.c: New function mono_class_setup_interface_id that setup
	MonoClass::interface_id if needed.

	* class-internals.h: Export new function.

svn path=/trunk/mono/; revision=121453
2008-12-12 19:29:46 +00:00
Rodrigo Kumpera cdbafe6f46 2008-12-12 Rodrigo Kumpera <[email protected]>
* class.c: Add code to sanity check the vtable after setup_vtable_general
	has done it's work.

svn path=/trunk/mono/; revision=121452
2008-12-12 19:29:37 +00:00
Mark Probst db9d50eab1 2008-12-12 Mark Probst <[email protected]>
* mini-porting.txt: Added some details about function descriptors
	and emulated opcodes.

svn path=/trunk/mono/; revision=121451
2008-12-12 19:23:58 +00:00
Mark Probst e64c47c513 2008-12-12 Mark Probst <[email protected]>
* mini-ppc.h, exceptions-ppc.c, tramp-ppc.c: Create function
	descriptors for helper functions directly in front of the code.

svn path=/trunk/mono/; revision=121450
2008-12-12 19:22:38 +00:00
Raja R Harinath 2305953036 * rules.make (topdir): Don't use $(shell ...).
Reported by Jonathan Chambers.

svn path=/trunk/mcs/; revision=121446
2008-12-12 18:39:50 +00:00
Ankit Jain f1f4f4e872 In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks_test.dll.sources: Added
	CreateCSharpManifestResourceNameTest.cs

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* CreateManifestResourceName.cs: Implement.
	* CreateCSharpManifestResourceName.cs: Implement.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* CreateCSharpManifestResourceNameTest.cs: New.

In tools/xbuild:

	* Microsoft.CSharp.targets: Add CreateCSharpManifestResourceName task.

svn path=/trunk/mcs/; revision=121439
2008-12-12 16:43:56 +00:00
Massimiliano Mantione 421ca18148 Proper remember already opened ELF files, and ensure that the index in the statistical hits never trips over and becomes negative.
svn path=/trunk/mono/; revision=121422
2008-12-12 15:14:25 +00:00
Massimiliano Mantione 13023ece07 Added defaults to command line options.
svn path=/trunk/mono/; revision=121421
2008-12-12 15:14:21 +00:00
Carlos Alberto Cortez 924f146859 2008-12-12 Carlos Alberto Cortez <[email protected]>
* MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
	MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
	effectively repaint the control.
	Fixes the remaining bits of #417961.


svn path=/trunk/mcs/; revision=121416
2008-12-12 11:51:39 +00:00
Carlos Alberto Cortez 34a9a9d395 2008-12-12 Carlos Alberto Cortez <[email protected]>
* MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
	range to contain only dates within the new possible range.
	Fixes part of #417961.


svn path=/trunk/mcs/; revision=121414
2008-12-12 11:09:57 +00:00
Marek Safar 97b571aeb0 New tests.
svn path=/trunk/mcs/; revision=121410
2008-12-12 10:10:56 +00:00
Marek Safar 0ee2a642c9 2008-12-12 Marek Safar <[email protected]>
A fix for bug #457489
	* anonymous.cs, statement.cs: Split anonymous storey instantiation
	and initialization to capture scope initializers correctly.


svn path=/trunk/mcs/; revision=121409
2008-12-12 10:10:39 +00:00
Dean Brettle af9585a7b3 Changes approved via private email from Marek Habersack <[email protected]> on 2008-10-05.
In System.Web.Configuration_2.0:
2008-12-12  Owen Brady <[email protected]>
	* nBrowser/File.cs, nBrowser/Identification.cs, nBrowser/Node.cs, nBrowser/NodeTypes.cs,
	nBrowser/Result.cs, nBrowser/Build.cs, nBrowser/Exception.cs, CapabilitiesBuild.cs, 
	CapabilitiesResult.cs: Updated Copyright information to include updated contact information.
	
	* nBrowser/Build.cs: Removed LoadDefaultEmbeddedResource function, the embeded resource
	it is referring too was never included in Mono. And was designed for a free standing 
	browser identification libary.

	* nBrowser/Exception.cs: Removed Compile Attributes and related comments which were left
	in from the original free standing browser libary.
	
	* CapabilitiesBuild.cs: Removed Header Checksum related coding since it is not required
	for the Mono implementation.

	* CapabilitiesResult.cs: Updated Copyright information to include updated contact information. 
	Removed functions which were designed to make use of features of a embeded browser file which
	is not present in Mono.
	
	* CapabilitiesChecksum.cs, RandomRoboBotKeywords.txt: Deleted

In .:
2008-12-12  Dean Brettle  <[email protected]>

	* System.Web.dll.sources: deleted
	System.Web.Configuration_2.0/CapabilitiesChecksum.cs
	
	* Makefile (RESOURCE_FILES_2): deleted
	System.Web.Configuration_2.0/RandomRoboBotKeywords.txt


svn path=/trunk/mcs/; revision=121408
2008-12-12 09:43:04 +00:00
Rolf Bjarne Kvinge f6ba3af08c 2008-12-12 Rolf Bjarne Kvinge <[email protected]>
* Makefile.am, vbnc.1: Remove vbnc.1. It's living in the
	  mono-basic module now.


svn path=/trunk/mono/; revision=121406
2008-12-12 08:51:43 +00:00
Gonzalo Paniagua Javier 9bb2a850c3 2008-12-11 Gonzalo Paniagua Javier <[email protected]>
* icall.c: make Assembly.GetExecutingAssembly work properly when
	reflection is used to invoke the method.
	Bug #321781 fixed.


svn path=/trunk/mono/; revision=121352
2008-12-11 21:06:47 +00:00
Mark Mason ff4e3d1919 2008-12-11 Mark Mason <[email protected]>
* configure.in: introduce SIZEOF_REGISTER - usually ==SIZEOF_VOID_P, except on mips/n32
        
Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=121295
2008-12-11 15:24:49 +00:00
Mark Probst e7b134c70a 2008-12-11 Mark Probst <[email protected]>
* metadata/generic-sharing.c: Look for constraints in all type
	arguments, not just the first one.

2008-12-11  Mark Probst  <[email protected]>

	* method-to-ir.c: Removed an unnecessary assertion.

2008-12-11  Mark Probst  <[email protected]>

	* generic-marshalbyref.2.cs: Test for calls to marshal-by-ref
	objects.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=121292
2008-12-11 14:55:41 +00:00
Marek Habersack c3abcb4e51 2008-12-11 Marek Habersack <[email protected]>
* MasterPageParser.cs: check if masterType is null before using it
	in AddDirective.

svn path=/trunk/mcs/; revision=121287
2008-12-11 11:51:44 +00:00
Carlos Alberto Cortez 515d6cb7b6 2008-12-11 Carlos Alberto Cortez <[email protected]>
* MaskedTextBoxTest.cs: New test for the Text property.
	By Andrus Moor (kobruleht2 at hot.ee).


svn path=/trunk/mcs/; revision=121286
2008-12-11 11:40:54 +00:00
Carlos Alberto Cortez 0b8e547235 2008-12-11 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
	length of the text, but the end position, so we need to substract 1 to
	have a valid value. Also, in the same InputText method, don't use
	SelectionLength as the length of the text, since the selected text
	could actually be empty, but we need to set the value anyway.
	Fixes #457370.


svn path=/trunk/mcs/; revision=121285
2008-12-11 11:37:57 +00:00
Marek Safar e33c28c55d New test.
svn path=/trunk/mcs/; revision=121284
2008-12-11 11:13:00 +00:00
Marek Safar 10888f00ca 2008-12-11 Marek Safar <[email protected]>
* generic.cs, parameter.cs, expression.cs, statement.cs, doc.cs:
	ParameterReference refactoring.


svn path=/trunk/mcs/; revision=121283
2008-12-11 11:12:24 +00:00
Gonzalo Paniagua Javier 28771e5482 2008-12-11 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: close the socket in SendPrivileged. Use Buffer.BlockCopy
	instead of Array.Copy. Return IPStatus.Unknown instead of throwing an
	exception for unknown status codes received.


svn path=/trunk/mcs/; revision=121278
2008-12-11 08:46:45 +00:00
Gonzalo Paniagua Javier 070f6cbea3 2008-12-10 Gonzalo Paniagua Javier <[email protected]>
* XmlSerializer.cs: updated to work with shadowcopy fixes.


svn path=/trunk/mcs/; revision=121275
2008-12-11 04:19:05 +00:00
Gonzalo Paniagua Javier 240ed61c59 2008-12-10 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: return the correct CodeBase for an Assembly instance
	that was loaded from the shadow-copy directories.
	Bug #458190 fixed.


svn path=/trunk/mono/; revision=121273
2008-12-11 04:15:11 +00:00
Marek Habersack 8b9adb2940 2008-12-11 Marek Habersack <[email protected]>
* TemplateParser.cs: in the 2.0 profile when a custom control is
	registered, do not compile it right away but store the tag name in
	a registry to be compiled at a later stage.

2008-12-11  Marek Habersack  <[email protected]>

	* BaseCompiler.cs: added a new method, InitializeType, to be
	overriden in child classes when any class initialization needs to
	be performed before methods, constructors and fields are created.

	* TemplateControlCompiler.cs: if the parser has any custom
	controls registered, compile them here - in the InitializeType
	method.

svn path=/trunk/mcs/; revision=121262
2008-12-10 23:45:04 +00:00
Zoltan Varga 38347253d3 Remove some obsolete FIXMEs.
svn path=/trunk/mono/; revision=121247
2008-12-10 20:12:22 +00:00
Zoltan Varga c653648d7d 2008-12-10 Zoltan Varga <[email protected]>
* method-to-ir.c: Merge SGEN changes from the old JIT.

svn path=/trunk/mono/; revision=121246
2008-12-10 20:11:49 +00:00
Zoltan Varga 4d165c78f9 2008-12-10 Zoltan Varga <[email protected]>
* sgen-gc.c (build_nursery_fragments): Clear nursery_next/nursery_frag_real_end.

	* sgen-gc.c (check_object): New debugging helper function.

	* object.c: Fix calls to mono_value_copy_array ().

svn path=/trunk/mono/; revision=121245
2008-12-10 20:10:10 +00:00
Rodrigo Kumpera 6273173f80 2008-12-08 Rodrigo Kumpera <[email protected]>
* bug445361.il: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=121239
2008-12-10 19:08:44 +00:00
Rodrigo Kumpera efa6899a2f 2008-12-10 Rodrigo Kumpera <[email protected]>
class.c (mono_class_setup_fields): It working on an inflated class
	first check if the generic definition did init with success.

	Fixes #445361.

svn path=/trunk/mono/; revision=121238
2008-12-10 19:08:24 +00:00
Rodrigo Kumpera ea16a5b22f 2008-12-10 Rodrigo Kumpera <[email protected]>
pedump.c (main): Fix a warning.

svn path=/trunk/mono/; revision=121237
2008-12-10 19:08:15 +00:00
Bill Holmes dd31461bb3 2008-12-10 Bill Holmes <[email protected]>
* Variant.cs (SetValue):   Changing the behavior for COM object in
	  VARIANTs to match MS.  Also adding support for BStrWrapper,
	  UnknownWrapper, and DispatchWrapper.

	Contributed under MIT/X11 license.

svn path=/trunk/mcs/; revision=121235
2008-12-10 18:51:31 +00:00
Bill Holmes bba001feca 2008-12-10 Bill Holmes <[email protected]>
* object-internals.h : Adding a definition for
	  MonoReflectionComVisibleAttribute.

	* marshal.c (cominterop_com_visible) :  Method added to check the
	  ComVisible attribute of a class.

	* marshal.c (cominterop_raise_hr_exception, cominterop_get_interface) :
	  cominterop_raise_hr_exception added to consolidate common code
	  to raise hr exceptions.

	* marshal.c (cominterop_can_support_dispatch) :  Method added to determine
	  if a managed class should support IDispatch.

	* marshal.c
	  (cominterop_get_idispatch_for_objec, cominterop_ccw_queryinterfacet) :
	  Added additional checks for managed object when getting
	  an IDispatch interface.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=121234
2008-12-10 18:49:01 +00:00
Rodrigo Kumpera ca11dd337d Revert the last changes in encoding.
svn path=/trunk/mono/; revision=121231
2008-12-10 18:35:24 +00:00
Rodrigo Kumpera 8c57ca933f 2008-12-10 Rodrigo Kumpera <[email protected]>
pedump.c (main): Handle mono_get_method () returning NULL.

svn path=/trunk/mono/; revision=121229
2008-12-10 18:13:39 +00:00
Zoltan Varga 141c8b45f0 2008-12-10 Zoltan Varga <[email protected]>
* driver.c (compile_all_methods_thread_main): Handle failure of
	mono_get_method ().

svn path=/trunk/mono/; revision=121227
2008-12-10 18:06:32 +00:00
Jb Evain 2bb55790a8 update project to vs2008
svn path=/trunk/mcs/; revision=121225
2008-12-10 18:04:09 +00:00
Carlos Alberto Cortez a35baed5bc 2008-12-10 Carlos Alberto Cortez <[email protected]>
* TextBox.cs: Don't do any auto complete task if the custom source is
	null or empty. Also avoid duplication of code.
	Fixes #457743.


svn path=/trunk/mcs/; revision=121208
2008-12-10 11:33:16 +00:00
Mark Probst f4bd084438 2008-12-10 Mark Probst <[email protected]>
* mini-ppc.c: Merged with mini-ppc64.c.

	* mini-ppc.h: Define PPC_MINIMAL_PARAM_AREA_SIZE on all targets.

	* Makefile.am: Use the same sources for PPC and PPC64.

	* mini-ppc64.c: Removed.

2008-12-10  Mark Probst  <[email protected]>

	* ppc/ppc-codegen.h: A few new macros for the final PPC/PPC64
	merge.

svn path=/trunk/mono/; revision=121203
2008-12-10 09:33:57 +00:00
Gonzalo Paniagua Javier 8995c8cb80 2008-12-09 Gonzalo Paniagua Javier <[email protected]>
* XhtmlTextWriter.cs: don't recreate the Hashtables every time, but
	Clone the defaults.


svn path=/trunk/mcs/; revision=121197
2008-12-10 07:11:20 +00:00
Atsushi Eno 34dc14eacf 2008-12-10 Atsushi Enomoto <[email protected]>
* Makefile : remove sys.messaging from CENTUM_TESTS. It has never
	  been supported, and now, it's heavily developed.


svn path=/trunk/mcs/; revision=121185
2008-12-10 02:24:12 +00:00
Atsushi Eno 6022ea7d1d fix float test that has wrong value (exposed by nunit24).
svn path=/trunk/mcs/; revision=121183
2008-12-10 02:20:44 +00:00
Atsushi Eno f463d48ab1 2008-12-10 Atsushi Enomoto <[email protected]>
* TestGraphics.cs, GDIPlusTest.cs : fix tests wrt rounding that
	  were failing on .NET too (exposed by nunit24).

	* LinearGradientBrushTest.cs, GraphicsPathTest.cs,
	  TestMatrix.cs : fix tests wrt rounding that were failing on .NET
	  too (exposed by nunit24).


svn path=/trunk/mcs/; revision=121182
2008-12-10 02:06:14 +00:00
Marek Habersack d0135f374d 2008-12-10 Marek Habersack <[email protected]>
* MasterPageParser.cs: do not compile anything while
	parsing. MasterType virtual path is not compiled, but stored for
	later. It is compiled when the MasterType property is requested
	from within MasterPageCompiler.

	* PageParser.cs: do not compile anything while
	parsing. MasterPageFile, MasterType and PreviousPageType virtual
	paths aren't compiled but checked for existence and stored for
	later. Actual compilation happens when the MasterType and
	PreviousPageType are requested from within PageCompiler.

	* BaseParser.cs: added a new helper method, ThrowParseFileNotFound.

2008-12-10  Marek Habersack  <[email protected]>

	* ParseException.cs: made serializable.

	* PageCompiler.cs: CreateStronglyTypedProperty calls
	AddReferencedAssembly to add type's assembly to the unit's
	references after the typed property has been created.

	* BaseCompiler.cs: added a new helper method,
	AddReferencedAssembly to be used whenever an assembly location
	needs to be added to the compilation unit's list after the parsing
	is done (e.g. when processing PreviousPageType or MasterPageType
	properties in PageParser)

2008-12-10  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/MissingMasterFile.aspx

	* System.Web_test.dll.sources: added System.Web.UI/PageParserTest.cs

2008-12-10  Marek Habersack  <[email protected]>

	* NunitWebResources/MissingMasterFile.aspx: added

2008-12-10  Marek Habersack  <[email protected]>

	* PageParserTest.cs: added



svn path=/trunk/mcs/; revision=121181
2008-12-10 02:03:35 +00:00
Atsushi Eno 7a7f3b5b1b 2008-12-10 Atsushi Enomoto <[email protected]>
* BinaryReaderTest.cs : fix tests that are also failing under .NET
	  (Exposed by nunit24).


svn path=/trunk/mcs/; revision=121179
2008-12-10 00:53:33 +00:00
Atsushi Eno 6ad1e3db0f 2008-12-10 Atsushi Enomoto <[email protected]>
* library.make : enable FIXTURE and TESTNAME on run-test-ondotnet.


svn path=/trunk/mcs/; revision=121178
2008-12-10 00:42:43 +00:00
Rodrigo Kumpera 7efa26ff42 2008-12-09 Rodrigo Kumpera <[email protected]>
* branch-opts.c (remove_block_if_useless): Extract fall through detection
	code to mono_bb_is_fall_through.

	* branch-opts.c (mono_remove_critical_edges): Same.

svn path=/trunk/mono/; revision=121176
2008-12-09 23:38:47 +00:00
Rodrigo Kumpera 2ce185ed2c 2008-12-09 Rodrigo Kumpera <[email protected]>
* ssa.c (fold_ins): branch opt can kill dummy switch ops so we can't
	expect that an OP_BR_REG will be there.

svn path=/trunk/mono/; revision=121175
2008-12-09 23:38:40 +00:00
Rodrigo Kumpera 99e07d1218 2008-12-08 Rodrigo Kumpera <[email protected]>
* bug457574.il: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=121174
2008-12-09 23:38:38 +00:00
Rodrigo Kumpera d7b29d8816 2008-12-09 Rodrigo Kumpera <[email protected]>
* branch-opts.c (remove_block_if_useless): Use MONO_IS_BRANCH_OP instead of checking
	for the many branch ops. The original check miss OP_BR_REG.

	Fixes #457574.

svn path=/trunk/mono/; revision=121173
2008-12-09 23:38:32 +00:00
Christian Hergert 79be0ac6d8 2008-12-09 Christian Hergert <[email protected]>
* System/Test/System.Diagnostics/CounterCreationDataTest.cs: Test to verify CounterHelp defaults to String.Empty.
	* System/System.Diagnostics/CounterCreationData.cs: Default CounterHelp to String.Empty.


svn path=/trunk/mcs/; revision=121172
2008-12-09 23:32:18 +00:00
Ivan Zlatev a20f1a558b 2008-12-09 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Refresh column sizes when new rows are added.
	[Fixes bug #457050]

svn path=/trunk/mcs/; revision=121169
2008-12-09 22:31:22 +00:00
Mark Mason 37d25133d8 2008-12-09 Mark Mason <[email protected]>
* mini-mips.h mini-mips.c exceptions-mips.c tramp-mips.c: first round of changes necessary to eventually support n32.


svn path=/trunk/mono/; revision=121160
2008-12-09 20:49:27 +00:00
Zoltan Varga b3e43b1739 2008-12-09 Zoltan Varga <[email protected]>
* aot-runtime.c (load_method): Avoid calling decode_exception_debug_info
	while holding the aot lock.

svn path=/trunk/mono/; revision=121150
2008-12-09 20:11:00 +00:00
Carlos Alberto Cortez 440b3466de 2008-12-09 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When parsing the contents of a rtf file, don't call
	Split to create a line - we are already doing this, by _adding_ a new
	one when rtf_cursor_x is 0 (this field gets this value just after we
	receive the newline param as true). This avoids having a proportional number
	of empty lines in the end of the rich text box.
	Fixes #396664.


svn path=/trunk/mcs/; revision=121149
2008-12-09 19:57:18 +00:00
Carlos Alberto Cortez 2aec849b78 2008-12-09 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When saving the contents as a plain text, don't add
	a new line for every Line structure, since the data in Document
	already contains the new line characters. This avoids duplicated new
	lines using the Save methods.
	Fixes #445618.


svn path=/trunk/mcs/; revision=121147
2008-12-09 19:50:34 +00:00
Zoltan Varga a3538a4660 2008-12-09 Zoltan Varga <[email protected]>
* marshal.h: Fix a warning.

svn path=/trunk/mono/; revision=121146
2008-12-09 19:39:07 +00:00
Sandy Armstrong aebf6cb2b2 * Managed.Windows.Forms/System.Windows.Forms/TreeView.cs: Expose
ScrollBars as internal properties, for use by UIA framework.  Fixes
  bug #457678.

svn path=/trunk/mcs/; revision=121134
2008-12-09 18:35:46 +00:00
Mark Mason 3ef907f52b 2008-12-09 Mark Mason <[email protected]>
* mini-mips.c (mono_arch_output_basic_block): use mfc1/lwc1 instead of mfc1d/ldc1
        
Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=121129
2008-12-09 18:09:30 +00:00
Bill Holmes 10740c1d36 2008-12-09 Bill Holmes <[email protected]>
* marshal.c : Adding cominterop_release_all_rcws to release all
	  runtime callable wrappers held by the runtime.

	* marshal.h : Adding deceleration  for cominterop_release_all_rcws.

	* mini.c (mini_cleanup) : Adding a call to cominterop_release_all_rcws 
	  to release all runtime callable wrappers held by the runtime.
	  
	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=121114
2008-12-09 16:54:45 +00:00
Bill Holmes ddb610f599 2008-12-09 Bill Holmes <[email protected]>
* tramp-amd64.c (mono_arch_create_trampoline_code_full) : Increase the code size for
	  for Winx64.

	Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=121112
2008-12-09 16:43:34 +00:00
Bill Holmes be97decf3b 2008-12-09 Bill Holmes <[email protected]>
* libmono.vcproj : Adding unwind.c to the project.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=121108
2008-12-09 16:37:46 +00:00
Zoltan Varga 01d76da9d7 2008-12-09 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_exception_debug_info): Acquire the domain
	lock when calling mono_domain_alloc (). Hopefully fixes #415608.

svn path=/trunk/mono/; revision=121103
2008-12-09 16:05:17 +00:00
Mark Mason 5fb3b99ec1 2008-12-09 Mark Mason <[email protected]>
* cpu-mips.md: fix ckfinite length

        * mini-mips.c: at least recognize n32 ABI when used (not yet supported)
        (mono_arch_lowering_pass): cleanup, rearrange for clarity
        (mono_arch_output_basic_block): implement OP_CKFINITE, add more asserts

Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=121099
2008-12-09 15:09:41 +00:00
Zoltan Varga 0cfb605201 2008-12-09 Zoltan Varga <[email protected]>
* metadata.c (mono_image_alloc_lock): New helper function.
	(mono_image_alloc0_lock): Ditto.

	* metadata.c: Use the alloc_lock () helper functions for allocating
	memory from the image mempool.

svn path=/trunk/mono/; revision=121097
2008-12-09 14:45:15 +00:00
Atsushi Eno a9c2b070ba 2008-12-09 Atsushi Enomoto <[email protected]>
* BasicProfileChecker.cs : reimplemented R2305 that turned out to
	  be wrong on fixing bug #443095 (fixed).

	* 443095.wsdl, WebServicesInteroperabilityTest.cs : added
	  new test for R2305 checker.


svn path=/trunk/mcs/; revision=121095
2008-12-09 13:47:07 +00:00
Atsushi Eno 42e6fd4373 2008-12-09 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : skip text validation under xs:any.
	  Fixed part of bug #449512.

	* XmlSchemaValidator.cs : skip text validation under xs:any.

	* XmlValidatingReaderTests.cs : added test for validating mixed
	  element under xs:any.


svn path=/trunk/mcs/; revision=121093
2008-12-09 11:19:20 +00:00
Atsushi Eno b505253fe7 2008-12-09 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : Fixed bug #450797, patch by Jonathan
	  Anderson. Preserve whitespace-only text in xsl:text.

	* XslTransformTests.cs : test for bug #450797 by Jonathan Anderson.


svn path=/trunk/mcs/; revision=121083
2008-12-09 08:20:24 +00:00
Atsushi Eno 0b09797b9f 2008-12-09 Atsushi Enomoto <[email protected]>
* Iterator.cs : DescendantIterator.Clone() was not cloning current
	  node in new code. Fixed bug #456103.

	* XPathNavigatorTests.cs : added test fo bug #456103.


svn path=/trunk/mcs/; revision=121080
2008-12-09 08:12:07 +00:00
Mark Mason 6de15b9278 2008-12-08 Mark Mason <[email protected]>
* exceptions-mips.c (mono_arch_find_jit_info): init new_ctx with ctx, dont' call setup_context.

Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=121078
2008-12-09 07:43:28 +00:00
Geoff Norton 497beae773 2008-12-08 Geoff Norton <[email protected]>
* tramp-amd64.c: r120895 stores RAX, so we need to increase the window
        size by 8 bytes as well.

svn path=/trunk/mono/; revision=121076
2008-12-09 03:18:11 +00:00
Atsushi Eno 17f70b50dc 2008-12-09 Atsushi Enomoto <[email protected]>
* Makefile: those paths are all wrong!


svn path=/trunk/mcs/; revision=121074
2008-12-09 02:51:11 +00:00
Atsushi Eno df5f85183a 2008-12-09 Atsushi Enomoto <[email protected]>
* Makefile: huh, more messy sources.


svn path=/trunk/mcs/; revision=121073
2008-12-09 02:13:32 +00:00
Atsushi Eno de056ffc99 2008-12-09 Atsushi Enomoto <[email protected]>
* Makefile : sigh, there was missing extension.


svn path=/trunk/mcs/; revision=121067
2008-12-09 00:44:06 +00:00
Marek Habersack 3f8a41d803 2008-12-09 Marek Habersack <[email protected]>
* HttpServerUtility.cs: when Execute finishes, clear
	Request.QueryStringRaw. Backport of r121010 by Vladimir Krasnov.

svn path=/trunk/mcs/; revision=121064
2008-12-08 23:44:04 +00:00
Rodrigo Kumpera 9e8bdb7534 2008-12-08 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Fix method names for Vector16b.

svn path=/trunk/mono/; revision=121061
2008-12-08 22:25:21 +00:00
Rodrigo Kumpera a04ccaa5de 2008-12-08 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Fix method names for Vector16sb.

svn path=/trunk/mono/; revision=121060
2008-12-08 22:25:09 +00:00
Rodrigo Kumpera 591e349dad 2008-12-08 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Fix method names for Vector8us.

svn path=/trunk/mono/; revision=121059
2008-12-08 22:24:54 +00:00
Rodrigo Kumpera 2bd20ae1bd 2008-12-08 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Fix method names for Vector8s.

svn path=/trunk/mono/; revision=121058
2008-12-08 22:24:39 +00:00
Rodrigo Kumpera a57c2c3ac7 2008-12-08 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Fix method names for Vector4ui.

svn path=/trunk/mono/; revision=121057
2008-12-08 22:24:27 +00:00
Rodrigo Kumpera ce04fbb9f2 2008-12-08 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Fix method names for Vector2l.

svn path=/trunk/mono/; revision=121056
2008-12-08 22:23:49 +00:00
Rodrigo Kumpera 51eb2233ed 2008-12-08 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Fix method names for Vector2d.

svn path=/trunk/mono/; revision=121055
2008-12-08 22:23:36 +00:00
Rodrigo Kumpera c6718084ce 2008-12-08 Rodrigo Kumpera <[email protected]>
* VectorOperations.cs: Move methods from Vector16b.

	* Vector16b.cs: Same.

svn path=/trunk/mcs/; revision=121054
2008-12-08 22:23:01 +00:00
Rodrigo Kumpera 0dc9c192e7 2008-12-08 Rodrigo Kumpera <[email protected]>
* VectorOperations.cs: Move methods from Vector16sb.

	* Vector16sb.cs: Same.

svn path=/trunk/mcs/; revision=121053
2008-12-08 22:22:57 +00:00
Rodrigo Kumpera 7df323d06f 2008-12-08 Rodrigo Kumpera <[email protected]>
* VectorOperations.cs: Move methods from Vector8us.

	* Vector8us.cs: Same.

svn path=/trunk/mcs/; revision=121052
2008-12-08 22:22:55 +00:00
Rodrigo Kumpera 00d9a6839a 2008-12-08 Rodrigo Kumpera <[email protected]>
* VectorOperations.cs: Move methods from Vector8s.

	* Vector8s.cs: Same.

svn path=/trunk/mcs/; revision=121051
2008-12-08 22:22:52 +00:00
Rodrigo Kumpera 592829d4c8 2008-12-08 Rodrigo Kumpera <[email protected]>
* VectorOperations.cs: Move methods from Vector4ui.

	* Vector4ui.cs: Same.

svn path=/trunk/mcs/; revision=121050
2008-12-08 22:22:49 +00:00
Rodrigo Kumpera a5f44eac11 2008-12-08 Rodrigo Kumpera <[email protected]>
* VectorOperations.cs: Move methods from Vector4i.

	* Vector4i.cs: Same.

svn path=/trunk/mcs/; revision=121049
2008-12-08 22:22:47 +00:00
Rodrigo Kumpera 2ab258d709 2008-12-08 Rodrigo Kumpera <[email protected]>
* VectorOperations.cs: Move methods from Vector2ul.

	* Vector2ul.cs: Same.

svn path=/trunk/mcs/; revision=121048
2008-12-08 22:22:44 +00:00
Rodrigo Kumpera 6970a0af5d 2008-12-08 Rodrigo Kumpera <[email protected]>
* VectorOperations.cs: Move methods from Vector2l.

	* Vector2l.cs: Same.

svn path=/trunk/mcs/; revision=121047
2008-12-08 22:22:42 +00:00
Rodrigo Kumpera c50f40f70c 2008-12-08 Rodrigo Kumpera <[email protected]>
* VectorOperations.cs: Move methods from Vector2d.

	* Vector2d.cs: Same.

svn path=/trunk/mcs/; revision=121046
2008-12-08 22:22:39 +00:00
Atsushi Eno edeabcbed7 2008-12-08 Atsushi Enomoto <[email protected]>
* Makefile : I find SUBDIRS almost dumb. another attempt.


svn path=/trunk/mcs/; revision=121039
2008-12-08 21:32:16 +00:00
Atsushi Eno 304593865d 2008-12-08 Atsushi Enomoto <[email protected]>
* Makefile : revert previous one and retry before I revert everything.


svn path=/trunk/mcs/; revision=121035
2008-12-08 20:43:31 +00:00
Jb Evain 61d899c516 update csprojs
svn path=/trunk/mcs/; revision=121024
2008-12-08 19:25:47 +00:00
Jb Evain c19495f913 2008-12-08 Jb Evain <[email protected]>
* Util.cs
	* WellFormedXmlWriter.cs
	* mono-api-diff.cs
	* AssemblyResolver.cs
	* mono-api-info.cs: normalize namespaces.


svn path=/trunk/mcs/; revision=121023
2008-12-08 19:25:14 +00:00
Jb Evain c37b11b09d 2008-12-08 Jb Evain <[email protected]>
* Metadata.cs
	* CecilMetadata.cs
	* CompareContext.cs
	* MasterMetadata.cs
	* Masterinfo.cs
	* Comparison.cs: add the gui-compare backend as source for now.


svn path=/trunk/mcs/; revision=121022
2008-12-08 19:24:27 +00:00
Ivan Zlatev fab0d70320 2008-12-08 Ivan N. Zlatev <[email protected]>
* DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
	where datasource is null.
	[Fixes exception reported in bug 441240]

svn path=/trunk/mcs/; revision=121016
2008-12-08 18:06:58 +00:00
Rodrigo Kumpera ed1f9a6a3d 2008-12-08 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (mono_emit_simd_intrinsics): Add support for intrinsics
	that are extension methods.

svn path=/trunk/mono/; revision=121015
2008-12-08 17:42:39 +00:00
Rodrigo Kumpera ad95c44d3b 2008-12-08 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Fix method names for Vector4f.

svn path=/trunk/mono/; revision=121014
2008-12-08 17:42:32 +00:00
Rodrigo Kumpera f926647f0e 2008-12-08 Rodrigo Kumpera <[email protected]>
* Mono.Simd.dll.sources: Added VectorOperations.cs

2008-12-08  Rodrigo Kumpera  <[email protected]>

	* VectorOperations.cs: New file with extension methods
	for Vector*. Added methods from Vector4f.

	* Vector4f.cs: Remove methods that are now in
	VectorOperations.

svn path=/trunk/mcs/; revision=121013
2008-12-08 17:18:01 +00:00
Kornél Pál 1e01aed171 mono-time.c (mono_100ns_ticks, PLATFORM_WIN32): Use GetSystemTimeAsFileTime with ULARGE_INTEGER that is more efficient.
svn path=/trunk/mono/; revision=121012
2008-12-08 17:09:57 +00:00
Jonathan Pryor 093543f1e7 * mono-file-formats.source, mono-tools.source: Place these under the
new "Commands and Files" node, and remove nay intermediate nodes.

svn path=/trunk/mono/; revision=121007
2008-12-08 15:36:32 +00:00
Jonathan Pryor 57ebdbc852 * docs/monodoc.xml: Rename the "File Formats" node to "Commands and
Files", so that ~all man pages can be under the same node.
	* docs/lang-csharp.source: Since C# is the only current language, move
	  the child nodes "up" a node so we have "Languages/C# Compiler Error
	  Reference" and "Languages/C# Language Specification" nodes.

svn path=/trunk/mcs/; revision=121005
2008-12-08 15:34:54 +00:00
Atsushi Eno 1ee7c03251 2008-12-08 Atsushi Enomoto <[email protected]>
* Makefile, src/client/Makefile : another attempt to fix build.


svn path=/trunk/mcs/; revision=121004
2008-12-08 15:32:47 +00:00
Zoltan Varga bcce8a84df Check in changes missed earlier:
* unwind.c: New file, move the unwind info encoding functions here from
	aot-compiler.c, so they could be used at runtime too.

svn path=/trunk/mono/; revision=121001
2008-12-08 15:11:47 +00:00
Zoltan Varga 03843aee11 2008-12-08 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_print_thread_dump): Mark threadpool threads
	as such. Fixes #456669.

svn path=/trunk/mono/; revision=120999
2008-12-08 15:01:10 +00:00
Zoltan Varga 66151bd74a 2008-12-08 Zoltan Varga <[email protected]>
* SQLite3.cs: Avoid IntPtr.ToInt32 () to convert between IntPtr's and integers
	since it is not 64 bit safe. Fixes #457038.

svn path=/trunk/mcs/; revision=120995
2008-12-08 14:48:58 +00:00
Rodrigo Kumpera dc5cdd5928 2008-12-08 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_from_generic_parameter): Document it's
	locking behavior. Fix double checked locking here, we stored in
	param->pklass a partially initialized MonoClass and no membar was used.

svn path=/trunk/mono/; revision=120993
2008-12-08 13:12:14 +00:00
Atsushi Eno 1054c297bb 2008-12-08 Atsushi Enomoto <[email protected]>
* Makefile : it was wrong fix.


svn path=/trunk/mcs/; revision=120990
2008-12-08 12:08:01 +00:00
Marek Habersack 2cc422baec 2008-12-08 Marek Habersack <[email protected]>
* NunitWebResources/ValidPropertyBind5.aspx: added

	* NunitWebResources/ReadWritePropertyControl.ascx: added a
	writable string property.

2008-12-08  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added another valid Bind
	expression test.

2008-12-08  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: use the correct regex match group
	index in SanitizeBindCall (), fixes bug #457011



svn path=/trunk/mcs/; revision=120988
2008-12-08 12:03:43 +00:00
Atsushi Eno 6f0da38936 2008-12-08 Atsushi Enomoto <[email protected]>
* Makefile : add docs/specs directory, to workaround build breakage.


svn path=/trunk/mcs/; revision=120987
2008-12-08 12:03:07 +00:00
Atsushi Eno 499811522b 2008-12-08 Atsushi Enomoto <[email protected]>
* Makefile : actually RabbitMQ.Client is under wrong build practice :(


svn path=/trunk/mcs/; revision=120986
2008-12-08 11:12:07 +00:00
Ivan Zlatev b55f4ec257 2008-12-08 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: EndEdit validation fixes.

svn path=/trunk/mcs/; revision=120984
2008-12-08 08:37:52 +00:00
Ivan Zlatev 81c4adaca7 2008-12-08 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: This is the cool patch that adds support for
	actually updating the data in the databinding backend after editing.
	With bonus firing and handling the DataError event.

svn path=/trunk/mcs/; revision=120982
2008-12-08 07:19:41 +00:00
Atsushi Eno 4e5e61cf50 2008-12-08 Atsushi Enomoto <[email protected]>
* Makefile : add new sys.messaging implementation.


svn path=/trunk/mcs/; revision=120981
2008-12-08 07:11:19 +00:00
Atsushi Eno 41ca39c136 oops, forgot to apply the patch here in bug #457089 by Michael Barker.
svn path=/branches/messaging-2008/mcs/; revision=120980
2008-12-08 07:06:43 +00:00
Carlos Alberto Cortez 83dc4b9b72 2008-12-08 Carlos Alberto Cortez <[email protected]>
* Line.cs: When calculating the text tags's Shift value, store it as
	pixels instead of points. This way we can actually handle different
	fonts in the same RichTextBox, as well as the right size of the caret.
	Fixes part of #351938.


svn path=/trunk/mcs/; revision=120979
2008-12-08 06:58:33 +00:00
Atsushi Eno 3331634f37 importing messaging-2008 branch to trunk [continued]
svn path=/trunk/mcs/; revision=120978
2008-12-08 06:22:55 +00:00
Atsushi Eno 6f5a0b5554 importing messaging-2008 branch to trunk, going on.
svn path=/trunk/mcs/; revision=120977
2008-12-08 06:21:50 +00:00
Atsushi Eno a5e40870bd importing messaging-2008 branch to trunk.
svn path=/trunk/mcs/; revision=120976
2008-12-08 06:20:48 +00:00
Ivan Zlatev 3cff5a230b 2008-12-08 Ivan N. Zlatev <[email protected]>
* DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
	casted to CheckState.

svn path=/trunk/mcs/; revision=120974
2008-12-08 05:25:43 +00:00
Ivan Zlatev b57f2d4de4 2008-12-08 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
	to not depend on the item being clicked.

svn path=/trunk/mcs/; revision=120972
2008-12-08 02:22:46 +00:00
Ivan Zlatev 72c37e5c82 2008-12-08 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
	longer throws a NotImplementedException.

svn path=/trunk/mcs/; revision=120971
2008-12-08 02:22:24 +00:00
Ivan Zlatev 2a17b9e675 2008-12-08 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Set EditingControlFormattedValue when preparing an
	IDataGridViewEditingControl for editing.

svn path=/trunk/mcs/; revision=120970
2008-12-08 02:22:07 +00:00
Ivan Zlatev 65ca939735 2008-12-08 Ivan N. Zlatev <[email protected]>
* DataGridViewComboBoxCell.cs: Implement data binding support.

svn path=/trunk/mcs/; revision=120969
2008-12-08 02:21:51 +00:00
Ivan Zlatev a3c9899e64 2008-12-08 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Use the CurrencyManager to update the data source
	binding position instead of casting the data sourcde to BindingSource.
	This enables position updating for other type of data sources.

svn path=/trunk/mcs/; revision=120968
2008-12-08 02:21:33 +00:00
Ivan Zlatev aebb0a18c2 2008-12-08 Ivan N. Zlatev <[email protected]>
* ComboBox.cs: Update the SelectedIndex before updating the Text
	in OnDisplayMemberChanged.

svn path=/trunk/mcs/; revision=120967
2008-12-08 02:21:17 +00:00
Ivan Zlatev a2346e1df0 2008-12-07 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix our support for IDataGridViewEditingControl.
	[Fixes bug #457112]

svn path=/trunk/mcs/; revision=120963
2008-12-07 18:14:27 +00:00
Mark Mason b5558f8114 2008-12-07 Mark Mason <[email protected]>
* mini-mips.c (mono_arch_emit_call): narrow float arguments when passing as args.

Contributed under the MIT X11 license.


svn path=/trunk/mono/; revision=120962
2008-12-07 17:52:16 +00:00
Mark Mason ee492cf8d1 2008-12-07 Mark Mason <[email protected]>
* mini-mips.c (mono_arch_lowering_pass): don't handle OP_ICONV_TO_R* or OP_R*CONST
        (mono_arch_emit_setret): use OP_MIPS_CVTSD to return SP floats
        (mono_arch_output_basic_block): simplify FP load/store, handle OP_MIPS_FBLT_UN
        (mips_adjust_stackframe): handle FP spills
                
        * mini-ops.h: add mips_mtc1_s2
        
        * cpu-mips.md: add mips_mtc1_s2

Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=120961
2008-12-07 17:35:26 +00:00
Zoltan Varga 6051b53493 2008-12-07 Zoltan Varga <[email protected]>
* unwind.c: New file, move the unwind info encoding functions here from
	aot-compiler.c, so they could be used at runtime too.

svn path=/trunk/mono/; revision=120960
2008-12-07 17:18:43 +00:00
Zoltan Varga aff4472754 2008-12-07 Zoltan Varga <[email protected]>
* stack-overflow.cs (foo): Prevent the large local variable from being
	optimized away.

svn path=/trunk/mono/; revision=120958
2008-12-07 13:18:55 +00:00
Atsushi Eno 56f2a5eee8 Apply RabbitMQ support patch by Michael Barker, on bug #457089.
svn path=/branches/messaging-2008/mcs/; revision=120957
2008-12-07 09:55:03 +00:00
Jonathan Pryor 0145582d47 * Mono.Documentation/monodocer.cs: Remove "exception" from DocsNodeOrder
so that <exception/> elements aren't grouped together.  This causes
	  `make doc-update` to result in ~0 changes in ../../class/corlib.
	  Change the sorting of --exceptions-generated <exception/> nodes so
	  that namespaces are taken into consideration, thus "properly"
	  grouping types by namespaces, as I'd usually expect...

svn path=/trunk/mcs/; revision=120951
2008-12-07 01:00:28 +00:00
Ivan Zlatev fbcfbdec5e 2008-12-06 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Sorting fixes:
	   - Be strict when sorting is enabled.
	   - If there is a data source delegate the sorting request.

svn path=/trunk/mcs/; revision=120948
2008-12-06 21:47:23 +00:00
Ivan Zlatev 887c4c0469 2008-12-06 Ivan N. Zlatev <[email protected]>
* Binding.cs: When converting the data also try with the destination
	type typeconverter. This indirectly adds support for Nullable types
	in our databinding layer.

svn path=/trunk/mcs/; revision=120947
2008-12-06 16:36:06 +00:00
Ivan Zlatev e074114716 2008-12-06 Ivan N. Zlatev <[email protected]>
* TypeDescriptor.cs: Added support for NullableConverter.
	* TypeDescriptorTests.cs: Added a test for the NullableConverter support.

svn path=/trunk/mcs/; revision=120946
2008-12-06 16:35:57 +00:00
Ivan Zlatev bd41dbef49 2008-12-06 Ivan N. Zlatev <[email protected]>
* NullableConverter.cs: Implemented.
	* NullableConverterTest.cs: Added.
	* System_test.dll.sources: Addded NullableConverterTest.cs

svn path=/trunk/mcs/; revision=120945
2008-12-06 16:35:51 +00:00
Ivan Zlatev d62fed8031 2008-12-06 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: When cell editing is finished focus back the
	DataGridView. Fixes keyboard navigation post-editing.

svn path=/trunk/mcs/; revision=120944
2008-12-06 16:35:32 +00:00
Ivan Zlatev e0e0608e20 2008-12-06 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix the cell editing by delaying the currentCell
	setting to after EndEdit is called for the old cell.

svn path=/trunk/mcs/; revision=120943
2008-12-06 16:35:11 +00:00
Ivan Zlatev a8ee93c604 2008-12-06 Ivan N. Zlatev <[email protected]>
* BindingSourceTest.cs: ListChanged_DataSourceSet passes now.

svn path=/trunk/mcs/; revision=120935
2008-12-06 02:16:23 +00:00
Ivan Zlatev 0e79c51cb0 2008-12-06 Ivan N. Zlatev <[email protected]>
* ListSortDescriptionCollection.cs: Add the items supplied in the
	ctor to the internal list.

svn path=/trunk/mcs/; revision=120934
2008-12-06 02:15:44 +00:00
Miguel de Icaza 3f4241e20b Some doc work
svn path=/trunk/mono/; revision=120933
2008-12-06 02:06:28 +00:00
Miguel de Icaza 2c2d177003 Update
svn path=/trunk/mono/; revision=120932
2008-12-06 02:06:12 +00:00
Ivan Zlatev 3bdf4eb9ff 2008-12-06 Ivan N. Zlatev <[email protected]>
* BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
	* BindingSourceTest.cs: ListChanged_DataSourceSet passes now.

svn path=/trunk/mcs/; revision=120931
2008-12-06 01:44:22 +00:00
Ivan Zlatev 45beae88a1 2008-12-06 Ivan N. Zlatev <[email protected]>
* XplatUIX11.cs: Send WM_HELP only to the focused window.

svn path=/trunk/mcs/; revision=120929
2008-12-06 01:05:09 +00:00
Ivan Zlatev d48f2cf7d0 2008-12-05 Ivan N. Zlatev <[email protected]>
* CurrencyManager.cs: Fix exceptions when resetting the data source
	for the same time (e.g. in ComboBox):
	   - Do not set the list position if we are still transferring data
	   - When resetting the list firstly push the data then update the
	   binding.
	* Binding.cs: Check BindingManager.Position == -1 instead of
	BindingManager.Current == null in order to avoid unexpected
	exceptions.

svn path=/trunk/mcs/; revision=120924
2008-12-06 00:14:20 +00:00
Mark Mason 81ffa51614 2008-12-05 Mark Mason <[email protected]>
* mini-mips.c (mono_arch_lowering_pass): handle OP_IMUL_IMM as well
        (mono_arch_output_basic_block): fix OP_LOCALLOC code generation

Contributed under the MIT X11 license.


svn path=/trunk/mono/; revision=120921
2008-12-06 00:02:59 +00:00
Rodrigo Kumpera e47e73e5db 2008-12-05 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Tests for operator == and != on  Vector8us and Vector16b.

svn path=/trunk/mono/; revision=120917
2008-12-05 23:36:13 +00:00
Rodrigo Kumpera 4bdf683b71 2008-12-05 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c: Add support for operator == and != to Vector8(u)s and Vector16(s)b.

svn path=/trunk/mono/; revision=120916
2008-12-05 23:36:06 +00:00
Mark Mason 9948901659 2008-12-05 Mark Mason <[email protected]>
* mini-mips.c: cleanup warnings
        (mono_arch_lowering_pass): handle OP_LOCALLOC_IMM
        (mips_adjust_stackframe): handle case of taking the address of
stack locals
        
Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=120910
2008-12-05 22:34:49 +00:00
Zoltan Varga 4c82bf0092 2008-12-05 Zoltan Varga <[email protected]>
* aot-compiler.c: Implement a few functions missing from the asm writer.
	(emit_method_code): Only write symbols for methods when using the bin
	writer, since the assembler can't deal with the characters in our method
	names.

svn path=/trunk/mono/; revision=120905
2008-12-05 22:18:26 +00:00
Rodrigo Kumpera 5af4aeb352 2008-12-05 Rodrigo Kumpera <[email protected]>
* Vector16(s)b.cs: Add operator == and !=.

svn path=/trunk/mcs/; revision=120904
2008-12-05 22:17:26 +00:00
Rodrigo Kumpera b8c2704593 2008-12-05 Rodrigo Kumpera <[email protected]>
* Vector8(u)s.cs: Add operator == and !=.

svn path=/trunk/mcs/; revision=120903
2008-12-05 22:17:25 +00:00
Zoltan Varga 0ce1f110a5 2008-12-05 Zoltan Varga <[email protected]>
* aot-compiler.c (is_plt_patch): ICALL_ADDR is also a plt patch.

svn path=/trunk/mono/; revision=120898
2008-12-05 21:34:00 +00:00
Zoltan Varga c80273cfd1 2008-12-05 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Transform aotconst+calli into a direct
	call.

svn path=/trunk/mono/; revision=120897
2008-12-05 21:33:24 +00:00
Zoltan Varga 06242aa07f 2008-12-05 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_create_trampoline_code_full): Rework the code
	a bit to also restore %rax.

svn path=/trunk/mono/; revision=120895
2008-12-05 21:26:55 +00:00
Mark Probst 9dd0a3bcbd 2008-12-05 Mark Probst <[email protected]>
* mini-ppc.c: Some simple merges from mini-ppc64.c.

2008-12-05  Mark Probst  <[email protected]>

	* ppc/ppc-codegen.h: ppc_load_func must use ppc_load_sequence.
	Added ppc_compare_log.

svn path=/trunk/mono/; revision=120890
2008-12-05 20:57:02 +00:00
Brad Taylor 0bb308c65e 2008-12-05 Brad Taylor <[email protected]>
* MonthCalendar.cs: Add UIA specific events so that we can know when
	the selection changes, and when MaxSelectedCount changes.


svn path=/trunk/mcs/; revision=120889
2008-12-05 20:57:02 +00:00
Marek Habersack 8ba2d696e7 2008-12-05 Marek Habersack <[email protected]>
* configure.in: check whether round (3) and rint (3) are present
	in the C library.

2008-12-05  Marek Habersack  <[email protected]>

	* sysmath.c (ves_icall_System_Math_Round2): if round (3) and rint
	(3) functions are present in the C library use them to do the
	job. If they are absent, make sure that the sum of int_part and
	dec_part is rounded before returning. This is necessary due to the
	division of dec_part by the power of 10 before the final addition
	is performed - if the result is not rounded in some cases it will
	yield invalid results.

svn path=/trunk/mono/; revision=120880
2008-12-05 20:24:56 +00:00
Ivan Zlatev 3b096078b8 2008-12-05 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
	used for anything.

svn path=/trunk/mcs/; revision=120874
2008-12-05 19:59:33 +00:00
Zoltan Varga 7f01a91c6b 2008-12-05 Zoltan Varga <[email protected]>
* ssa.c (mono_ssa_compute): Only add an implicit reference at start for
	arguments.

svn path=/trunk/mono/; revision=120869
2008-12-05 19:34:16 +00:00
Marek Habersack 8f1762b9d4 2008-12-05 Marek Habersack <[email protected]>
* BuildManager.cs: attempt to enter the compilation critical
	section with a timeout up to 3 times before giving up. This avoids
	deadlocks in situations where there are two virtual directores
	each containing user controls referencing user controls from the
	other directory.

svn path=/trunk/mcs/; revision=120861
2008-12-05 18:12:51 +00:00
Gonzalo Paniagua Javier e7a00a5cb8 fix warning
svn path=/trunk/mcs/; revision=120856
2008-12-05 17:19:23 +00:00
Gonzalo Paniagua Javier 3dd94da2d2 2008-12-05 Gonzalo Paniagua Javier <[email protected]>
* Tds70.cs: support parameter names with or without a leading '@'.


svn path=/trunk/mcs/; revision=120854
2008-12-05 17:17:54 +00:00
Mark Probst 0137c67aad 2008-12-05 Mark Probst <[email protected]>
* exceptions-ppc.c: Merged with exceptions-ppc64.c.

	* mini-ppc.c, mini-ppc.h: Remove PPC_STACK_ALIGNMENT and use
	MONO_ARCH_FRAME_ALIGNMENT.  Struct for PPC64 function descriptors.

	* exceptions-ppc64.c: Removed.

	* Makefile.am: Use exceptions-ppc.c instead of exceptions-ppc64.c.

svn path=/trunk/mono/; revision=120853
2008-12-05 16:45:12 +00:00
Mark Probst 82976b01a5 2008-12-05 Mark Probst <[email protected]>
* tramp-ppc.c, mini-ppc.c, mini-ppc.h: Merged tramp-ppc.c with
	tramp-ppc64.c.

	* Makefile.am: Use tramp-ppc.c instead of tramp-ppc64.c.

	* tramp-ppc64.c: Removed.

2008-12-05  Mark Probst  <[email protected]>

	* ppc/ppc-codegen.h: Added ppc_load_func for PPC32.  Added
	ppc_load/store_multiple_regs and ppc_compare_reg_imm.

svn path=/trunk/mono/; revision=120852
2008-12-05 16:42:24 +00:00
Ivan Zlatev 7f5d5f40a5 2008-12-05 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix scrolling and selection of cells/rows prior
	to the control being drawn for the first time by:
	   - Implement DisplayedRowsCount to not rely on the control being
	   already painted. Also added support for the partial row flag.
	   - Fix scrolling to take into account partial rows and scroll to
	   them.
	[Fixes bug #456527]

svn path=/trunk/mcs/; revision=120851
2008-12-05 16:28:28 +00:00
Zoltan Varga d8793297c5 2008-12-05 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_instances): Skip non-generic classes in
	the TYPESPEC table.

svn path=/trunk/mono/; revision=120849
2008-12-05 16:26:12 +00:00
Ivan Zlatev 54e80f79c0 2008-12-05 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Do not reset the CurrentCell when the handle is
	created if the user has already set it.

svn path=/trunk/mcs/; revision=120847
2008-12-05 16:10:50 +00:00
Ivan Zlatev f5f0f98d65 2008-12-05 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix CurrentCell to actually select the cell.

svn path=/trunk/mcs/; revision=120846
2008-12-05 16:05:27 +00:00
Jonathan Pryor 2e1b21b7d6 * Mono.Documentation/monodocer.cs, Mono.Documentation/monodocs2html.cs:
Reorder parameters to be in sorted order, so `mdoc help COMMAND` 
	  parameters are sorted.
	* Mono.Documentation/monodocer.cs: Remove try/catch in
	  MDocUpdater.Run(MDocUpdaterOptions), so that any generated exceptions
	  will be handled within mdoc itself (thus allowing the normal 
	  "See `mdoc help' for more information." message).  Improve some
	  error messages so they're more useful.

svn path=/trunk/mcs/; revision=120842
2008-12-05 15:34:32 +00:00
Jonathan Pryor a9d5a79af3 * man/mdoc-update.1: Document new parameters such as --exceptions.
svn path=/trunk/mono/; revision=120841
2008-12-05 15:23:20 +00:00
Mark Probst d131d38712 2008-12-05 Mark Probst <[email protected]>
* mini-ppc.h: Merged mini-ppc64.h with mini-ppc.h.

	* exceptions-ppc64.c, tramp-ppc64.c, mini-arch.h, Makefile.am: Use
	mini-ppc.h instead of mini-ppc64.h.

	* mini-ppc64.h: Removed.

svn path=/trunk/mono/; revision=120840
2008-12-05 15:07:32 +00:00
Mark Mason 50ae304d5c 2008-12-04 Mark Mason <[email protected]>
* mini-mips.c: introduce USE_LDC_SDC: use ldc1/sdc1 to load/store doubles, disabled by default
        
        * mini-mips.c (mono_arch_emit_outarg_vt): fix offset calculation for memcpy in structure passing.

Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=120838
2008-12-05 15:03:40 +00:00
Mark Probst 489b741f5d 2008-12-05 Mark Probst <[email protected]>
* mini-ppc64.c, mini-ppc64.h, exceptions-ppc64.c, tramp-ppc64.c:
	Removed FIRST/LAST_[GF]REG macros, to make merging PPC64 with PPC
	code easier.

svn path=/trunk/mono/; revision=120834
2008-12-05 14:33:41 +00:00
Jb Evain b67c6b889a 2008-12-05 Jb Evain <[email protected]>
* tuner/Mono.Tuner/RemoveSerialization.cs
	* tuner/Mono.Tuner/PrintStatus.cs
	* tuner/Mono.Tuner/AdjustVisibility.cs
	* tuner/Mono.Tuner/InjectAttributes.cs
	* tuner/Mono.Tuner/CheckVisibility.cs:
		do not tune the assemblies that the linker doesn't
		consider for actual linking.


svn path=/trunk/mcs/; revision=120832
2008-12-05 14:20:05 +00:00
Rodrigo Kumpera b281333460 2008-12-05 Rodrigo Kumpera <[email protected]>
* Vector4f.cs: Add operator == and !=.

svn path=/trunk/mcs/; revision=120831
2008-12-05 12:51:45 +00:00
Rodrigo Kumpera 68ff300627 2008-12-05 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Tests for operator == and != on Vector4f.

svn path=/trunk/mono/; revision=120830
2008-12-05 12:51:40 +00:00
Rodrigo Kumpera 94769e5f3b 2008-12-05 Rodrigo Kumpera <[email protected]>
* Documentation/en/Mono.Simd/Vector*.xml: Removed references to
	ExtractByteMask.

svn path=/trunk/mcs/; revision=120829
2008-12-05 12:51:44 +00:00
Rodrigo Kumpera 59b73bf585 2008-12-05 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (simd_intrinsic_emit_equality): Adapt to support Vector4f.

	* simd-intrinsics.c: Kill useless enum.

svn path=/trunk/mono/; revision=120828
2008-12-05 12:51:34 +00:00
Marek Habersack 51f5087bf2 2008-12-05 Marek Habersack <[email protected]>
* JsonSerializer.cs: StringBuilder extension methods aren't used
	anymore, changed to calls to static methods in
	StringBuilderExtensions.

	* StringBuilderExtensions.cs: cannot use extension methods here
	because this file is also used in the version 1.0 build which
	doesn't reference System.Core

svn path=/trunk/mcs/; revision=120823
2008-12-05 11:43:42 +00:00
Marek Habersack 7cdce5b191 2008-12-05 Marek Habersack <[email protected]>
* Makefile (LIB_MCS_FLAGS): do not reference System.Core

svn path=/trunk/mcs/; revision=120822
2008-12-05 11:00:56 +00:00
Mark Mason 113d284738 2008-12-04 Mark Mason <[email protected]>
* cpu-mips.md: add long_conv_to_ovf_i4_2
        * mini-mips.c: update/add various _OVF_ opcodes to fix test failures

Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=120819
2008-12-05 07:00:23 +00:00
Mark Mason 26bd8e7d28 2008-12-04 Mark Mason <[email protected]>
* mini-mips.c: ifdef protect automatic promotions of R4 to R8.
        
        * mini-mips.c (mono_arch_emit_setret): handle R4 case with FCONV_TO_R4 instead of FMOVE

Contributed under the MIT X11 license.


svn path=/trunk/mono/; revision=120803
2008-12-05 02:01:15 +00:00
Mark Mason 28284a82ae 2008-12-04 Mark Mason <[email protected]>
* mini-mips.c (mono_arch_output_basic_block): fix codegen for OP_OR_IMM/OP_IOR_IMM


svn path=/trunk/mono/; revision=120800
2008-12-05 01:21:29 +00:00
Jonathan Pryor 8b88d7509a * Makefile: Specify --exceptions=all in mdoc-update invocations.
* exceptions.cs: Add support for documenting a *subset* of all
	  possible exceptions.  Subsets include: the member itself, the member
	  and methods it calls that are in the same assembly, and all possible
	  methods across all assemblies.
	* monodocer.cs: Allow --exceptions to take a SOURCES argument, to
	  control which location sources will be searched for exceptions.

svn path=/trunk/mcs/; revision=120798
2008-12-05 01:07:32 +00:00
Rodrigo Kumpera c6c29ff831 2008-12-04 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Add tests for new methods.

svn path=/trunk/mono/; revision=120789
2008-12-04 23:12:57 +00:00
Rodrigo Kumpera 4eae2155fa 2008-12-04 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c: Add support for operator == and !=
	on Vector4(u)i.

	* simd-methods.h: Add SN_op_Inequality and SN_op_Equality.

svn path=/trunk/mono/; revision=120788
2008-12-04 23:12:52 +00:00
Rodrigo Kumpera c0465df28b 2008-12-04 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c: Remove ExtractByteMask intrinsics.

svn path=/trunk/mono/; revision=120787
2008-12-04 23:12:47 +00:00
Rodrigo Kumpera 8373b5d156 2008-12-04 Rodrigo Kumpera <[email protected]>
* Vector4(u)i.cs: Add operator == and !=.

svn path=/trunk/mcs/; revision=120775
2008-12-04 22:28:28 +00:00
Rodrigo Kumpera 672655a428 2008-12-04 Rodrigo Kumpera <[email protected]>
* Vector2/4/8*.cs: Remove ExtractByteMask.

svn path=/trunk/mcs/; revision=120774
2008-12-04 22:28:27 +00:00
Zoltan Varga b4acd57b24 2008-12-04 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Add pinvoke wrappers.

	* mini.c (mono_resolve_patch_target): Allow pinvoke methods in 
	MONO_PATCH_INFO_ICALL_ADDR.

svn path=/trunk/mono/; revision=120756
2008-12-04 20:58:43 +00:00
Zoltan Varga 4579966b8a 2008-12-04 Zoltan Varga <[email protected]>
* aot-runtime.c (MonoAotFileInfo): Correct order of fields.

svn path=/trunk/mono/; revision=120754
2008-12-04 20:57:40 +00:00
Zoltan Varga d4a9d2a0d4 2008-12-04 Zoltan Varga <[email protected]>
* aot-compiler.c: Resurrect full-aot support.

svn path=/trunk/mono/; revision=120753
2008-12-04 20:56:54 +00:00
Zoltan Varga 2db1f19e1b 2008-12-04 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_emit_native_wrapper): Add AOT support for pinvoke
	wrappers by emitting the function address using a CEE_MONO_ICALL_ADDR 
	instruction instead of a pointer constant.

svn path=/trunk/mono/; revision=120749
2008-12-04 20:46:42 +00:00
Mark Mason 42a3dfaee0 2008-12-04 Mark Mason <[email protected]>
* mini-mips.c (mono_arch_lowering_pass): handle OP_COMPARE and OP_ICOMPARE
        
Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=120745
2008-12-04 20:02:43 +00:00
Mark Mason e2c264df53 Minor typo in last commit.
Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=120733
2008-12-04 18:39:07 +00:00
Mark Mason 0777d78c2a 2008-12-04 Mark Mason <[email protected]>
* mini-mips.c (mono_arch_output_basic_block): fix OP_IREM_UN code generation
        


svn path=/trunk/mono/; revision=120732
2008-12-04 18:35:48 +00:00
Bill Holmes 4d109d7346 2008-12-04 Bill Holmes <[email protected]>
* mono.sln : Removing monoburg from the solution.

	* libmono.vcproj : Removing files deleted from svn.

	* mono.def : Removing mono_burg* exports that no longer exist.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=120725
2008-12-04 16:40:21 +00:00
Jb Evain ee6dcbb6d4 2008-12-04 Jb Evain <[email protected]>
* Remove CorCompare.exe sources.

svn path=/trunk/mcs/; revision=120706
2008-12-04 15:17:40 +00:00
Jb Evain e2e0c6afa6 2008-12-04 Jb Evain <[email protected]>
* Makefile: don't build CorCompare.exe anymore as it's not even
	used.


svn path=/trunk/mcs/; revision=120703
2008-12-04 15:08:29 +00:00
Jb Evain 0e901d7a09 cleanup
svn path=/trunk/mcs/; revision=120702
2008-12-04 15:00:35 +00:00
Jb Evain 10d8c42c15 2008-12-04 Jb Evain <[email protected]>
* mono-api-diff.cs: update mono-api-diff wrt to the format changes.


svn path=/trunk/mcs/; revision=120699
2008-12-04 14:06:11 +00:00
Mark Probst febc772aaa 2008-12-04 Mark Probst <[email protected]>
* configure.in: Disabling the sibling call optimization doesn't
	work, so we're using -mminimal-toc.

svn path=/trunk/mono/; revision=120697
2008-12-04 13:59:46 +00:00
Jb Evain 7c7a04f2da remove svn:executable
svn path=/trunk/mcs/; revision=120689
2008-12-04 13:35:55 +00:00
Miguel de Icaza 1a241fbdec Indentation
svn path=/trunk/mono/; revision=120653
2008-12-04 00:58:08 +00:00
Mark Probst a9c3f74105 2008-12-03 Mark Probst <[email protected]>
* configure.in: Disable sibling call optimization on PPC64 as it
	seems to trip up GCC on the build bot.

svn path=/trunk/mono/; revision=120643
2008-12-03 21:22:41 +00:00
Gert Driesen 8537b6d658 * NoParamsInvoker.cs:
* HttpApplicationFactory.cs: Fixed support for static eventhandlers.

svn path=/trunk/mcs/; revision=120623
2008-12-03 18:29:27 +00:00
Rodrigo Kumpera 98621fce88 2008-12-03 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Fix tests to work under ppc.
	Remove tests for methods that will be removed.

svn path=/trunk/mono/; revision=120620
2008-12-03 18:05:41 +00:00
Zoltan Varga 3d6c196ca6 2008-12-03 Zoltan Varga <[email protected]>
* loader.c (mono_method_get_header): Do most of the work outside the
	loader lock, to avoid assembly load hook deadlocks.

	* metadata.c (mono_metadata_parse_mh_full): Use finer-grained locking.
	(mono_metadata_parse_type_full): Ditto.

svn path=/trunk/mono/; revision=120611
2008-12-03 16:11:32 +00:00
Marek Safar 7521a9c795 New test.
svn path=/trunk/mcs/; revision=120609
2008-12-03 15:43:00 +00:00
Marek Safar de7ab4b8b1 2008-12-03 Marek Safar <[email protected]>
* typemanager.cs, namespace.cs, driver.cs: Allow ExtensionAttribute
	to be imported from any assembly.


svn path=/trunk/mcs/; revision=120608
2008-12-03 15:42:45 +00:00
Gonzalo Paniagua Javier ee9a2c680c 2008-12-03 Gonzalo Paniagua Javier <[email protected]>
* UdpClientTest.cs: test closing a UDP socket while receiving.


svn path=/trunk/mcs/; revision=120603
2008-12-03 15:34:37 +00:00
Gonzalo Paniagua Javier 40ffe194c8 2008-12-03 Gonzalo Paniagua Javier <[email protected]>
* UdpClient.cs: don't Poll() in Receive(), the call to ReceiveFrom
	will block anyway. Fixes bug #455894.


svn path=/trunk/mcs/; revision=120601
2008-12-03 15:33:16 +00:00
Marek Safar 07e26f59c5 2008-12-03 Marek Safar <[email protected]>
* parameter.cs, lambda.cs, linq.cs, iterators.cs, anonymous.cs
	statement.cs, class.cs, cs-parser.jay: Removed duplicate parameters
	storage from anonymous method and lambda expression


svn path=/trunk/mcs/; revision=120594
2008-12-03 14:12:12 +00:00
Marek Habersack 5715d2bd45 2008-12-02 Marek Habersack <[email protected]>
* System.Data.DataSetExtensions_test.dll.sources: added
        System.Data/DataRowExtensionsTest.cs

2008-12-02  Marek Habersack  <[email protected]>

        * DataRowExtensionsTest.cs: added

2008-12-02  Marek Habersack  <[email protected]>

        * DataRowExtensions.cs: when Field <T> is specialized on a
        nullable type (either a reference or an instance of Nullable <T>)
        do not throw exception for column value being DBNull but return
        null instead.

svn path=/trunk/mcs/; revision=120592
2008-12-03 13:54:57 +00:00
Marek Habersack 60f6913978 2008-12-03 Marek Habersack <[email protected]>
* System.Web_test.dll.sources: added System.Web.UI/DataBinderTest.cs

2008-12-03  Marek Habersack  <[email protected]>

	* DataBinderTest.cs: added

2008-12-03  Marek Habersack  <[email protected]>

	* DataBinder.cs: clean up Eval for good this time.
	GetIndexedPropertyValue should throw an exception when a string
	indexer expression is used and the container is an IList.

svn path=/trunk/mcs/; revision=120590
2008-12-03 13:33:05 +00:00
Mark Probst 0383d831a3 2008-12-03 Mark Probst <[email protected]>
* method-to-ir.c (mono_method_to_ir): Handle ldtoken of an open
	generic type (via a typedef or typeref) correctly.

2008-12-03  Mark Probst  <[email protected]>

	* generic-typedef.2.cs: New test for ldtoken of open generic
	types.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=120589
2008-12-03 13:20:28 +00:00
Gonzalo Paniagua Javier 20e96bae9a 2008-12-02 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: make sure we don't return null in Title.


svn path=/trunk/mcs/; revision=120550
2008-12-03 00:06:23 +00:00
Gonzalo Paniagua Javier f31d48405a 2008-12-02 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: reset to the next character in a partial match in case
	of failure. Fixes bug #314688.

svn path=/trunk/mcs/; revision=120549
2008-12-02 23:53:50 +00:00
Marek Habersack cdbbfc4146 2008-12-03 Marek Habersack <[email protected]>
* machine.config: rename serviceModelHostingEnvironment to
	serviceHostingEnvironment.

svn path=/trunk/mono/; revision=120545
2008-12-02 23:13:08 +00:00
Zoltan Varga 413408b499 2008-12-03 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_magic_trampoline): Add some debugging code to help
	diagnose an assertion failure.

svn path=/trunk/mono/; revision=120543
2008-12-02 23:03:26 +00:00
Rodrigo Kumpera 8357a19324 2008-12-02 Rodrigo Kumpera <[email protected]>
* mempool.c (mono_backtrace): Take the number of allocated bytes as argument.
	Make the stack depth fixed. Ensure proper argument passing to the backtrace
	funtions. Finally, use a lock to produce well ordered output.

	The lock looks silly, as all calls to the corlib mempool should be guarded
	with the loader lock, but for some reason this fact doesn't help.

	* mempool.c (mono_mempool_alloc0): Add support for TRACE_ALLOCATIONS.

svn path=/trunk/mono/; revision=120519
2008-12-02 19:15:10 +00:00
Rodrigo Kumpera 73c3dbca93 2008-12-02 Rodrigo Kumpera <[email protected]>
* mono-property-hash.c (mono_property_hash_destroy): Release
	the root hashtable as well.

svn path=/trunk/mono/; revision=120518
2008-12-02 19:15:07 +00:00
Marek Safar 4b309832eb New test.
svn path=/trunk/mcs/; revision=120511
2008-12-02 17:59:28 +00:00
Marek Safar 40db5067e9 Show full name
svn path=/trunk/mcs/; revision=120510
2008-12-02 17:58:37 +00:00
Jonathan Pobst 8b14d22ee8 2008-12-02 Jonathan Pobst <[email protected]>
* PaintEventArgsTest.cs: Tests were failing due to being dependent
	on the order in which the tests were running, which changed when we
	did nunit 2.2->2.4.  Modified tests to not use global Graphics contexts,
	and to dispose the Graphics like they were relying on the
	GraphicsDispose () test to do.

svn path=/trunk/mcs/; revision=120504
2008-12-02 17:30:39 +00:00
Jonathan Pryor e5a2452f4e * Makefile: Add --exceptions to mdoc update invocations to test
<exception/> generation.
	* mdoc.exe.sources: Add Mono.Documentation/exceptions.cs to the build.
	* Mono.Documentation/exceptions.cs: Added; searches through the
	  callgraph of an IMemberReference, recording which exception types
	  are created (and where they're created from).
	* Mono.Documentation/monodocer.cs: Generate <exception/> elements.
	* Test/DocTest-v1.cs: Modify some methods so that exceptions are
	  emitted (thus testing <exception/> generation).
	* Test/DocTest-v2.patch: Update (so patch(1) doesn't complain).
	* Test/en.expected.importecmadoc/System/Array.xml,
	  Test/en.expected.importecmadoc/System/Environment.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest.Generic/GenericBase`1.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest/DocAttribute.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest/DocValueType.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest/UseLists.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest/Widget.xml,
	  Test/en.expected.importslashdoc/System/Array.xml,
	  Test/en.expected.importslashdoc/System/Environment.xml,
	  Test/en.expected.since/Mono.DocTest.Generic/GenericBase`1.xml,
	  Test/en.expected.since/Mono.DocTest/DocAttribute.xml,
	  Test/en.expected.since/Mono.DocTest/DocValueType.xml,
	  Test/en.expected.since/Mono.DocTest/UseLists.xml,
	  Test/en.expected.since/Mono.DocTest/Widget.xml,
	  Test/en.expected.since/System/Array.xml,
	  Test/en.expected.since/System/Environment.xml,
	  Test/en.expected/Mono.DocTest.Generic/GenericBase`1.xml,
	  Test/en.expected/Mono.DocTest/DocAttribute.xml,
	  Test/en.expected/Mono.DocTest/DocValueType.xml,
	  Test/en.expected/Mono.DocTest/UseLists.xml,
	  Test/en.expected/Mono.DocTest/Widget.xml,
	  Test/en.expected/System/Array.xml,
	  Test/en.expected/System/Environment.xml,
	  Test/html.expected/Mono.DocTest.Generic/GenericBase`1.html,
	  Test/html.expected/Mono.DocTest/DocAttribute.html,
	  Test/html.expected/Mono.DocTest/DocValueType.html,
	  Test/html.expected/Mono.DocTest/UseLists.html,
	  Test/html.expected/Mono.DocTest/Widget.html,
	  Test/html.expected/System/Array.html,
	  Test/html.expected/System/Environment.html,
	  Test/msxdoc-expected.importslashdoc.xml: Flush; adds <exception/>
	  elements (and/or HTML-rendered output of <exception/> elements).

svn path=/trunk/mcs/; revision=120501
2008-12-02 16:59:33 +00:00
Mark Probst f947c6d78c 2008-12-02 Mark Probst <[email protected]>
* socket-io.c: 64 bit big-endian fixes.

svn path=/trunk/mono/; revision=120498
2008-12-02 16:27:47 +00:00
Marek Safar f1f810e35b 2008-12-02 Marek Safar <[email protected]>
* ReaderWriterLockSlim.cs: Initial merge.


svn path=/trunk/mcs/; revision=120496
2008-12-02 16:25:32 +00:00
Mark Probst 9de218a921 2008-12-02 Mark Probst <[email protected]>
* tramp-ppc64.c (mono_arch_create_rgctx_lazy_fetch_trampoline):
	Fix trampoline size.

	* mini-ppc64.c, mini-ppc64.h, cpu-ppc64.md: A few floating point
	conversion opcodes are implemented natively instead via emulation.

2008-12-02  Mark Probst  <[email protected]>

	* ppc/ppc-codegen.h: Opcodes for floating point conversions from
	64 bit integers.

	Code submitted by [email protected] at
	https://bugzilla.novell.com/show_bug.cgi?id=324134 under the
	X11/MIT license.

svn path=/trunk/mono/; revision=120492
2008-12-02 16:03:45 +00:00
Marek Habersack 42d4ec2ad5 2008-12-02 Marek Habersack <[email protected]>
* DataBinder.cs: when Eval attempts to find Items [] in the
	container, catch and ignore all exceptions - the null returned
	from GetPropertyValue may be a legitimate return value.

svn path=/trunk/mcs/; revision=120485
2008-12-02 14:28:05 +00:00
Jonathan Pryor 32eb8b721f * docs/Makefile: Build additional directories (Npgsql,
System.Configuration.Install, System.Design, System.Runtime.Remoting,
	  System.Runtime.Serialization.Formatters.Soap); shorten entries.

svn path=/trunk/mcs/; revision=120483
2008-12-02 14:15:07 +00:00
Jb Evain da733bb41d remove unecessary path entry
svn path=/trunk/mcs/; revision=120475
2008-12-02 11:37:10 +00:00
Jb Evain b96419fdc5 add missing targets
svn path=/trunk/mcs/; revision=120472
2008-12-02 10:21:29 +00:00
Jb Evain d52e84edaf fix the build, hopefully
svn path=/trunk/mcs/; revision=120469
2008-12-02 09:49:02 +00:00
Jb Evain 32e650674f remove unecessary target
svn path=/trunk/mcs/; revision=120467
2008-12-02 09:45:56 +00:00
Jb Evain 5d0928b3e8 cleanup trailing /
svn path=/trunk/mcs/; revision=120466
2008-12-02 09:45:34 +00:00
Mark Mason 3ceaeae2cf 2008-12-01 Mark Mason <[email protected]>
* cpu-mips.md: remove mips_xori

        * mini-ops.h:  remove mips_xori

        * mini-mips.h: replace OP_MIPS_XORI with OP_IXOR

        * mini-mips.c (mono_arch_decompose_long_opts): Add ladd_imm, lsub, lsub_imm, lneg, lsub_ovf, lsub_ovf_un.
        
        * mini-mips.c (mono_arch_lowering_pass, mono_arch_output_basic_block): fix IXOR handling

Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=120465
2008-12-02 09:22:13 +00:00
Carlos Alberto Cortez 46dc4e2efe 2008-12-01 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
	text and then let the underneath users of IDataObject interpret and
	parse by themselves. 
	Fixes #439251.


svn path=/trunk/mcs/; revision=120461
2008-12-02 06:20:41 +00:00
Mark Mason 861ff7af7f 2008-12-01 Mark Mason <[email protected]>
* cpu-mips.md: fix instruction lengths.

        * mini-mips.h: define MONO_ARCH_NO_IOV_CHECK

        * mini-mips.c: move most instruction rewriting into decompose_ops. Implement conditional branches and exceptions. Fix jump table patch handling. Implement add/sub OVF.

        * mini-ops.h: fix slti / sltiu op profiles.

Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=120443
2008-12-02 01:31:55 +00:00
Marek Habersack a928b55352 2008-12-02 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWeb/NunitWeb/Resources/Web.mono.config.1.1

2008-12-02  Marek Habersack  <[email protected]>

	* WebTest.cs: for 1.1, copy the Web.mono.config.1.1 resource

2008-12-02  Marek Habersack  <[email protected]>

	* Web.config: added ASP.NET AJAX 1.0 configuration entries
	* Web.config.1.1: copied from the last revision before the above
	changes, so that 1.1 tests don't fail.
	* Web.mono.config.1.1: copied from revision before the AJAX
	changes below, so that 1.1 tests don't fail.



svn path=/trunk/mcs/; revision=120442
2008-12-02 01:31:10 +00:00
Martin Baulig a2d68ee221 2008-12-02 Martin Baulig <[email protected]>
* method-to-ir.c (mono_method_to_ir): Disable debugging
	information for the init locals block to make the debugger stop
	after all locals have been initalized.


svn path=/trunk/mono/; revision=120438
2008-12-02 01:15:11 +00:00
Marek Habersack c257964940 2008-12-02 Marek Habersack <[email protected]>
* StateManagedCollection.cs: adding an item to the collection does
	not call SetDirty as an item is added, thus not affecting the
	indexes of its predecessors. Fixes bug #443100
	Insert doesn't call SetDirtyObject as all objects are made dirty
	in SetDirty which is called from here. Same applies to this [int]
	indexer.

svn path=/trunk/mcs/; revision=120436
2008-12-02 01:07:39 +00:00
Miguel de Icaza 6970bc3360 Add initial implementation of ReaderWriterLockSlim, it is missing support for recursive locks, and support for flagging errors
svn path=/trunk/mcs/; revision=120435
2008-12-02 00:55:07 +00:00
Jb Evain a981b0624f in mcs/tools/tuner:
2008-12-01  Jb Evain  <[email protected]>

	* Makefile: move tuning logic inside ../moon. We now simply build
	the tuner as a simple library.

in mcs/tools/moon:
2008-12-01  Jb Evain  <[email protected]>

	* Makefile: re-use the tuning logic that previously was defined
	in mcs/tools/tuner. We're now building the net_2_1 tuned libraries
	from here exclusively.

in mcs/tools:
2008-12-01  Jb Evain  <[email protected]>

	* Makefile: build the tuner library during the net_1_1 profile. The
	tuning of the net_2_1 assemblies now takes place in moon.

svn path=/trunk/mcs/; revision=120432
2008-12-02 00:47:17 +00:00
Martin Baulig 7643ddbd6f 2008-12-02 Martin Baulig <[email protected]>
* mini.c (mini_method_compile): Disable MONO_OPT_DEADCE when
	running inside the debugger.


svn path=/trunk/mono/; revision=120419
2008-12-01 23:40:06 +00:00
Rodrigo Kumpera 910b6a0284 2008-12-01 Rodrigo Kumpera <[email protected]>
* main.c (get_uninitialized_data_type): Make crappy static analyzers happy.

svn path=/trunk/mono/; revision=120414
2008-12-01 23:24:58 +00:00
Ivan Zlatev 5a6a235667 2008-12-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix my previous commit to actually update what it
	was supposed to.

svn path=/trunk/mcs/; revision=120412
2008-12-01 23:16:07 +00:00
Jb Evain f4a1cc6980 2008-12-02 Jb Evain <[email protected]>
* Mono.Linker/AssemblyResolver.cs (AreSame(TypeReference,TypeReference):
	fix the case where we compare two GenericInstanceType of the same
	element type with different generic arguments.


svn path=/trunk/mcs/; revision=120410
2008-12-01 23:10:10 +00:00
Zoltan Varga 6590d946ef 2008-12-01 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Only run local deadce if MONO_OPT_DEADCE
	is enabled.

	* method-to-ir.c (mono_method_to_ir): Fix invalid code generated by the 
	alu->alu imm optimization which only shows if deadce is disabled.

svn path=/trunk/mono/; revision=120407
2008-12-01 22:52:12 +00:00
Ivan Zlatev e9f1d1cb88 2008-12-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Ensure that when a row is removed the all the
	current row/column/cell get updated. Fixes multiple exceptions.

svn path=/trunk/mcs/; revision=120406
2008-12-01 22:40:33 +00:00
Zoltan Varga a7fb90a58a Fix the non-ELF build.
svn path=/trunk/mono/; revision=120405
2008-12-01 22:24:21 +00:00
Ivan Zlatev 46ede809e6 2008-12-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix scrolling to the current cell when key navigation
	is used.
	[Fixes bug #443560]

svn path=/trunk/mcs/; revision=120404
2008-12-01 22:23:55 +00:00
Zoltan Varga 0d8fedc9b2 2008-12-01 Zoltan Varga <[email protected]>
* aot-compiler.c: Rename the function names for the binary and asm writers
	so they can coexist in the same process. Rework the xdebug code to use the
	asm writer. This avoids the need to call into the runtime to dump the
	debugging info. Add more debugging info for types.

svn path=/trunk/mono/; revision=120394
2008-12-01 21:48:30 +00:00
Zoltan Varga 9a3ec56f5b 2008-12-01 Zoltan Varga <[email protected]>
* mini-<ARCH>.h: Kill MONO_ARCH_HAVE_NORMALIZE_OPCODES define.

svn path=/trunk/mono/; revision=120393
2008-12-01 21:46:35 +00:00
Zoltan Varga f0920d03ed 2008-12-01 Zoltan Varga <[email protected]>
* genmdesc.c genmdesc.pl mini.h: Don't put the CEE_ opcodes into the
	cpu description tables, they can't occur in cpu-<ARCH>.md.

svn path=/trunk/mono/; revision=120391
2008-12-01 21:44:33 +00:00
Zoltan Varga 46d6ca807d 2008-12-01 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Set the type of the value pushed on
	the stack in CEE_LDFLDA. Fixes #450542.

	* generics.cs: Add a new test.

svn path=/trunk/mono/; revision=120389
2008-12-01 21:27:52 +00:00
Rodrigo Kumpera b6849ec36e 2008-12-01 Rodrigo Kumpera <[email protected]>
* unverifiable_boxed_type_not_compatible_with_string.il:
	* unverifiable_boxed_type_not_compatible_with_valuetype.il:
	* unverifiable_ret_with_boxed_value_on_stack.il: Regression tests
	for #448560.

svn path=/trunk/mono/; revision=120386
2008-12-01 20:57:35 +00:00
Rodrigo Kumpera dae3deaca6 2008-12-01 Rodrigo Kumpera <[email protected]>
* verify.c (is_compatible_boxed_valuetype): Rewrite function to work properly with
	targets that require strict compatibility between the types.

	* verify.c (verify_stack_type_compatibility_full): Boxed values are not compatible
	to unboxed types. All cases that this is true are checked by is_compatible_boxed_valuetype.
	Kill the strict argument and create a new one valuetype_must_be_boxed.

	* verify.c (verify_delegate_compatibility): Use verify_stack_type_compatibility_full to
	state that all valuetypes must be boxed.

	Fixes #448560.

svn path=/trunk/mono/; revision=120385
2008-12-01 20:57:26 +00:00
Ivan Zlatev c914ac372c 2008-12-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
	* DataGridViewCell.cs: Set the cell as selected prior to setting the
	new state.
	[Fixes issue 1 in bug #443560]

svn path=/trunk/mcs/; revision=120379
2008-12-01 19:55:38 +00:00
Marek Habersack 9fb8f0992b 2008-12-01 Marek Habersack <[email protected]>
* NunitWebResources/ContentPlaceHolderInTemplate.master: added

	* NunitWebResources/ContentPlaceHolderInTemplate.aspx: added

2008-12-01  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/ContentPlaceHolderInTemplate.aspx
	Test/mainsoft/NunitWebResources/ContentPlaceHolderInTemplate.master 
	(TEST_MCS_FLAGS): added reference to System.Web.Extensions

2008-12-01  Marek Habersack  <[email protected]>

	* Web.mono.config: added ASP.NET AJAX 1.0 configuration entries

2008-12-01  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: Added test for bug #449970

svn path=/trunk/mcs/; revision=120376
2008-12-01 19:33:35 +00:00
Ivan Zlatev 1b63b1625e 2008-12-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Invalidate after the current row/column seletion
	changes.
	[Fixes bug #438434]

svn path=/trunk/mcs/; revision=120374
2008-12-01 19:21:54 +00:00
Mark Mason deeb3b4ed8 2008-12-01 Mark Mason <[email protected]>
* mini-ops.h: updated MIPS opcodes
        * mini-mips.c: decompose long opts
        * mini-mips.h: decompose long opts

Contributed under the MIT X11 license.


svn path=/trunk/mono/; revision=120372
2008-12-01 18:39:43 +00:00
Massimiliano Mantione 3ba2e27788 Added a replay of the whole call stack at the beginning of each event block.
svn path=/trunk/mono/; revision=120369
2008-12-01 18:23:43 +00:00
Ivan Zlatev 06176693ee 2008-12-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Refresh the data if the data list is reset, etc.

svn path=/trunk/mcs/; revision=120365
2008-12-01 17:05:48 +00:00
Kornél Pál 3b2b8116a1 CrossAppDomainChannel.cs: Make _ContextID an object that fixes bug #422491.
svn path=/trunk/mcs/; revision=120355
2008-12-01 14:52:19 +00:00
Marek Habersack 5d39b8a41c 2008-12-01 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: instead of adding ContentPlaceHolder
	instances to the ContentPlaceHolders collection when the
	placeholder is instantiated in the control build method, collect
	the ids and store them in ContentPlaceHolders inside the
	constructor. Fixes bug #449970
	For each content placeholder generate a public virtual property
	named "Template_PLACEHOLDERID", this is compatible with what .NET
	does.

	* BaseCompiler.cs: added new virtual method,
	AddStatementsToConstructor, which is called just before
	CreateConstructor returns.

2008-12-01  Marek Habersack  <[email protected]>

	* MasterPage.cs: use List <string> for ContentPlaceHolders instead
	of ArrayList.
	CreateMasterPage now directly accesses the ContentPlaceHolders as
	it is now a list of strings



svn path=/trunk/mcs/; revision=120353
2008-12-01 14:45:16 +00:00
Sebastien Pouliot 6030a76713 2008-12-01 Sebastien Pouliot <[email protected]>
* Mono.Cecil.Signatures/CustomAttrib.cs: Define reusable Empty 
	arrays for both FixedArg and NamedArg.
	* Mono.Cecil.Signatures/SignatureReader.cs: Avoid creating empty
	ParameterDefinitionCollection on constructors. Use the new Empty
	arrays when possible.


svn path=/trunk/mcs/; revision=120348
2008-12-01 12:45:52 +00:00
Sebastien Pouliot 8043f3fbe2 2008-12-01 Sebastien Pouliot <[email protected]>
* Mono.Cecil/MethodReference.cs: Make HasParameters virtual
	* Mono.Cecil/MethodSpecification.cs: Override HasParameters to make 
	sure we're tracking the same object as the Parameters property does.
	* Mono.Cecil/PropertyDefinition.cs: Implement HasParameters based on
	the GetMethod, SetMethod or its own parameter collection.
	* Mono.Cecil/PropertyReference.cs: Add abstract HasParameters property


svn path=/trunk/mcs/; revision=120347
2008-12-01 12:44:56 +00:00
Marek Habersack b830b7548b 2008-12-01 Marek Habersack <[email protected]>
* Style.cs: WriteStyleAttributes must not use the fontinfo field
	directly, it has to be done via the Font property. Fixes bug
	#449793

svn path=/trunk/mcs/; revision=120345
2008-12-01 12:34:45 +00:00
Marek Safar 4482e2e73e 2008-12-01 Marek Safar <[email protected]>
A fix for bug #448560
	* expression.cs (As): Box any generic type arguments to be
	verifiable.


svn path=/trunk/mcs/; revision=120342
2008-12-01 11:50:48 +00:00
Marek Safar 6abdd722aa 2008-12-01 Marek Safar <[email protected]>
A fix for bug #448560
	* expression.cs (As): Box any generic type arguments to be
	verifiable.


svn path=/trunk/mcs/; revision=120341
2008-12-01 11:50:34 +00:00
Ivan Zlatev dddab7a48f 2008-12-01 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Handle datasource state changes:
	   - IBindingList - list changes
	   - BindingSource - list changed and datasource changes

svn path=/trunk/mcs/; revision=120324
2008-12-01 01:53:58 +00:00
Ivan Zlatev a5fdc186b2 2008-11-30 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Select the first cell when databound.
	Visually select when CurrentCell is set.

svn path=/trunk/mcs/; revision=120312
2008-11-30 22:52:53 +00:00
Ivan Zlatev 8427d9b2a8 2008-11-30 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Set the current cell before raising CellClick.

svn path=/trunk/mcs/; revision=120311
2008-11-30 22:49:28 +00:00
Ivan Zlatev 18eb8d7f8a 2008-11-30 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
	CellLeave events as this is already done in SetCurrentCellAddressCore.

svn path=/trunk/mcs/; revision=120310
2008-11-30 22:43:06 +00:00
Ivan Zlatev c8cb6f6596 2008-11-30 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Set the minimum size for the columns to be the
	width of their header, so that the columns don't get squashed
	all together.

svn path=/trunk/mcs/; revision=120306
2008-11-30 20:16:29 +00:00
Ivan Zlatev 636ba82300 2008-11-30 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: After the data is bound PerformLayout, so that
	the columns get autosized.

svn path=/trunk/mcs/; revision=120305
2008-11-30 20:05:38 +00:00
Ivan Zlatev 14f1c5d14f 2008-11-30 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Move all currentCell setting code into
	one central place - SetCurrentCellAddressCore. That way the
	current cell is properly updated when programatically set.
	Fire RowEnter/Leave events.

svn path=/trunk/mcs/; revision=120304
2008-11-30 19:10:55 +00:00
Ivan Zlatev ef0bffb3b7 2008-11-30 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Update the CurrencyManager.Position, so that
	when a BindingSource is used BindingSource.Current will be correct.

svn path=/trunk/mcs/; revision=120303
2008-11-30 18:33:03 +00:00
Ivan Zlatev 4315333a76 2008-11-30 Ivan N. Zlatev <[email protected]>
* GroupBoxRenderer.cs: Fix when VisualStyles disabled:
	   - No caption text is drawn because Color.Empty is used.
	   - Fix top and height off by 1.

svn path=/trunk/mcs/; revision=120302
2008-11-30 17:52:26 +00:00
Ivan Zlatev d49c87f004 2008-11-30 Ivan N. Zlatev <[email protected]>
* DataGridViewRow.cs: Implement DataBoundItem.

svn path=/trunk/mcs/; revision=120300
2008-11-30 17:05:08 +00:00
Jordi Mas i Hernandez 074fb31a23 2008-11-30 Jordi Mas i Hernandez <[email protected]>
* Mono.Cairo/ImageSurface.cs: Fixes ImageSurface constructor signature.
        Data param should not be ref since the data is not modified.


svn path=/trunk/mcs/; revision=120299
2008-11-30 16:13:29 +00:00
Ivan Zlatev 6ec5051b4a 2008-11-30 Ivan N. Zlatev <[email protected]>
* BindingSource.cs: Return null for Current if there is no data present.

svn path=/trunk/mcs/; revision=120298
2008-11-30 12:28:00 +00:00
Mark Mason 2aa7aa1593 2008-11-29 Mark Mason <[email protected]>
* cpu-mips.md: fix length on int_rem_un
        * mini-mips.c (mips_stackframe_adjust): fix insertion of spillvars region in MIPS stackframes.

Contributed under the MIT X11 license.


svn path=/trunk/mono/; revision=120297
2008-11-30 05:16:46 +00:00
Carlos Alberto Cortez 237741b77d 2008-11-29 Carlos Alberto Cortez <[email protected]>
* MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
	menus using the arrow keys. Also when handling the left arrow key, don't 
	assign the current menu to the parent one, if the parent is null.
	Fixes #446392.


svn path=/trunk/mcs/; revision=120294
2008-11-30 02:48:56 +00:00
Miguel de Icaza 54616d8862 2008-11-25 Atsushi Enomoto <[email protected]>
* Makefile : update old nunit options that break upgrade to 2.4.

2008-11-03 Gonzalo Paniagua Javier <[email protected]>

svn path=/trunk/mcs/; revision=120282
2008-11-29 20:25:30 +00:00
Gonzalo Paniagua Javier ec5069a12d 2008-11-29 Gonzalo Paniagua Javier <[email protected]>
* IPAddressCollection.cs: added an internal method to make the
	collection read-only.
	* IPInterfaceProperties.cs: read DNS client configuration from
	/etc/resolv.conf.
	* NetworkInterface.cs: dummy Speed property for linux.

	Bug #450211 fixed.


svn path=/trunk/mcs/; revision=120281
2008-11-29 19:09:46 +00:00
Raja R Harinath 1e2b80a716 Add tripwire for implicit conversion bugs
* ecore.cs (MethodGroupExpr.Error_ArgumentCountWrong): New helper
for CS1501 error.
(MethodGroupExpr.OverloadResolve): Add sanity check between
IsApplicable and VerifyArgumentsCompat.
(VerifyArgumentsCompat): Report CS1501 where appropriate.

svn path=/trunk/mcs/; revision=120280
2008-11-29 18:49:45 +00:00
Zoltan Varga 6b3c2d6ae1 2008-11-29 Zoltan Varga <[email protected]>
* mini.h aot-runtime.c: Fix building with DISABLE_AOT.

svn path=/trunk/mono/; revision=120273
2008-11-29 16:53:03 +00:00
Zoltan Varga deb861d1e5 2008-11-29 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_print_ins_index): Handle OP_VOIDCALL_MEMBASE.

svn path=/trunk/mono/; revision=120272
2008-11-29 13:30:27 +00:00
Raja R Harinath 455d5ba431 Fix build break in System.Data_test
* convert.cs (ImplicitConversionExists): Move NullLiteral conversions ...
(ImplicitStandardConversionExists): ... here.

svn path=/trunk/mcs/; revision=120271
2008-11-29 12:55:40 +00:00
Raja R Harinath a9d2ef6022 update known issues
svn path=/trunk/mcs/; revision=120270
2008-11-29 12:55:20 +00:00
Kornél Pál e22a12b541 coree.c (MonoFixupExe): Use sizeof(IMAGE_BASE_RELOCATION) instead of IMAGE_SIZEOF_BASE_RELOCATION as newer Vista SDKs no longer define the latter.
svn path=/trunk/mono/; revision=120268
2008-11-29 10:02:20 +00:00
Miguel de Icaza 86cf5249c4 2008-11-28 Miguel De Icaza <[email protected]>
* TermInfoDriver.cs: Also register a mapping to make verase be the
	backspace key.  Funny thing: verase was fetched from the termios,
	but it was *never* actually used in this file.

	VSUSP and VINTR are likewise ignored.   Must ponder this.

	This makes the backspace key in MacOS work on interactive
	applications.

svn path=/trunk/mcs/; revision=120261
2008-11-29 00:13:21 +00:00
Martin Baulig 985aa7faaa 2008-11-29 Martin Baulig <[email protected]>
* mini-exceptions.c (mono_handle_native_sigsegv): Check
	mono_debug_using_mono_debugger() in addition to the
	`no_gdb_backtrace' flag in the `MonoDebugOptions'.


svn path=/trunk/mono/; revision=120260
2008-11-28 23:34:14 +00:00
Mark Mason 8302a701fc 2008-11-28 Mark Mason <[email protected]>
* mini-ops.h: updated more MIPS opcodes
        * mini-mips.c: FP compare/branch working again, clean up last of  CEE_ -> OP_ mappings
        * cpu-mips.md: Added MIPS versions of new FP compare/branch opcodes.

Contributed under the MIT X11 license.
        

svn path=/trunk/mono/; revision=120259
2008-11-28 23:11:32 +00:00
Stephane Delcroix 1b7df68fe8 fix another typo
svn path=/trunk/mono/; revision=120258
2008-11-28 20:54:58 +00:00
Stephane Delcroix 930e4c543a remove the c:/cygwin reference that slipped in
svn path=/trunk/mono/; revision=120257
2008-11-28 20:38:47 +00:00
Rodrigo Kumpera 86ea706950 2008-11-28 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_fields): Don't copy MonoType::attrs as
	the inflate_generic_type machinery should handle it.

	This avoids a crash when the field's flags is zero and it's type is
	a primitive.
	What happens is	that mono_metadata_parse_type_full will see that opt_attrs
	is zero and will return one of the cached built-in primitive types. Since
	those types live in read-only memory, the code that copies it crashes.

svn path=/trunk/mono/; revision=120256
2008-11-28 20:23:29 +00:00
Mark Probst 8bff8102bd 2008-11-28 Mark Probst <[email protected]>
* mini-ppc64.c: Patch the RGCTX fetch trampoline correctly.

svn path=/trunk/mono/; revision=120255
2008-11-28 20:16:59 +00:00
Mark Mason 45508b1049 2008-11-28 Mark Mason <[email protected]>
* mini-mips.c (mono_arch_emit_call): adding missing conversion to fp single when passing in integer arg register.
        * mini-mips.c (mips_adjust_stackframe): compensate for spill-down logic.
        * mini-ops.h: correct selected mips opcode entries
        
Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=120249
2008-11-28 19:16:28 +00:00
Mark Probst 96f3330680 2008-11-28 Mark Probst <[email protected]>
* mini-ppc64.c, mini-ppc64.h: Enable generalized IMT thunks and
	make them work.

2008-11-28  Mark Probst  <[email protected]>

	* object.c: Don't put function descriptors into generalized IMT
	thunks.

2008-11-28  Mark Probst  <[email protected]>

	* ppc/ppc-codegen.h: #define for the maximum length of a load
	sequence.

svn path=/trunk/mono/; revision=120248
2008-11-28 19:06:34 +00:00
Mark Probst 77f956e899 2008-11-28 Mark Probst <[email protected]>
* mini-ppc64.h, tramp-ppc64.c: Make generic code sharing work.

2008-11-28  Mark Probst  <[email protected]>

	* class.c: Enable generic code sharing on PPC64.

svn path=/trunk/mono/; revision=120247
2008-11-28 18:13:19 +00:00
Mark Mason 4b0a94f464 Changelog from last commit. Sorry ;)
Contributed under the MIT X11 license

svn path=/trunk/mono/; revision=120246
2008-11-28 17:55:39 +00:00
Mark Mason db58bd2568 * method-to-ir.c, mini-trampolines.c: protect IMG code with #ifdef MONO_ARCH_HAVE_IMT to fix compile errors.
* mini-mips.c: Fixup stackframe assignments after allocation of spillvars.
        * mini-mips.h: disable IMT
        * tramp-mips.c (mono_arch_get_vcall_slot): fix offset extraction

Contributed under the MIT X11 license

svn path=/trunk/mono/; revision=120245
2008-11-28 17:53:10 +00:00
Mark Probst 4036b16f0c 2008-11-28 Mark Probst <[email protected]>
* mini-ppc64.c, mini-ppc64.h: Don't emulate long ops.

svn path=/trunk/mono/; revision=120243
2008-11-28 15:57:38 +00:00
Marek Safar 9c6083df22 New test.
svn path=/trunk/mcs/; revision=120242
2008-11-28 15:55:34 +00:00
Marek Safar a74562a497 2008-11-28 Marek Safar <[email protected]>
* literal.cs: Emit correctly explicit null to nullable cast.


svn path=/trunk/mcs/; revision=120241
2008-11-28 15:54:16 +00:00
Marek Safar b17c76e5b1 New test.
svn path=/trunk/mcs/; revision=120240
2008-11-28 15:41:33 +00:00
Marek Safar c147a6ee2b 2008-11-28 Marek Safar <[email protected]>
* ecore.cs, generics.cs: Fixed crash when type arguments fail to
	resolve.


svn path=/trunk/mcs/; revision=120239
2008-11-28 15:41:04 +00:00
Rodrigo Kumpera 2ee4c7658c 2008-11-28 Rodrigo Kumpera <[email protected]>
* ArrayExtensions.cs (IsAligned): Add a sensible default
	implementation that will give results similar to the instrinsic version.

svn path=/trunk/mcs/; revision=120234
2008-11-28 13:47:38 +00:00
Rodrigo Kumpera 288ea4dbd5 2008-11-27 Rodrigo Kumpera <[email protected]>
* ArrayExtensions.cs: Add aligned Get/SetVector variants for
	all vector types.

svn path=/trunk/mcs/; revision=120233
2008-11-28 13:47:37 +00:00
Mark Probst ff899e7ab0 2008-11-28 Mark Probst <[email protected]>
* mini-ppc64.c, exceptions-ppc64.c: Several fixes.

svn path=/trunk/mono/; revision=120230
2008-11-28 12:31:59 +00:00
Marek Safar 8de7fb7443 New test.
svn path=/trunk/mcs/; revision=120227
2008-11-28 11:40:18 +00:00
Marek Safar 427e8c8f7c 2008-11-28 Marek Safar <[email protected]>
A fix for bug #449005
	* convert.cs, nullable.cs: Use only one implicit nullable
	conversion.


svn path=/trunk/mcs/; revision=120225
2008-11-28 11:34:41 +00:00
Atsushi Eno ed67562a8c 2008-11-28 Atsushi Enomoto <[email protected]>
* Makefile : ugh, ok another dist pain.


svn path=/trunk/mcs/; revision=120209
2008-11-28 07:22:50 +00:00
Atsushi Eno 1d3665ad8d 2008-11-28 Atsushi Enomoto <[email protected]>
* nunit-summary.xsl : copied from nunit resource (summary.xslt)
	* library.make : put transformation result from TestResult-*.xml
	  into TestResult-*.log as we used to do.


svn path=/trunk/mcs/; revision=120207
2008-11-28 04:51:18 +00:00
Zoltan Varga 6d46757c3d 2008-11-28 Zoltan Varga <[email protected]>
* method-to-ir.c (handle_isinst): Use PCONST instead of ICONST for
	consistency.

svn path=/trunk/mono/; revision=120206
2008-11-28 04:10:36 +00:00
Zoltan Varga 9f15eab568 Fix the build.
svn path=/trunk/mono/; revision=120205
2008-11-28 02:55:17 +00:00
Atsushi Eno db2e65b36c 2008-11-28 Atsushi Enomoto <[email protected]>
* data/mono-nunit.pc.in : add new 2.4.8 files.


svn path=/trunk/mono/; revision=120204
2008-11-28 02:30:07 +00:00
Atsushi Eno 94864efc89 2008-11-28 Atsushi Enomoto <[email protected]>
* Makefile : add NUNIT_RESOURCE_FILES to dist.


svn path=/trunk/mcs/; revision=120201
2008-11-28 01:47:23 +00:00
Marek Habersack f2494e1db0 2008-11-28 Marek Habersack <[email protected]>
* DataBinder.cs: do the proper thing in Eval when a non-indexed
	property is requested on an object and not found. In that case try
	to use the Items property.

svn path=/trunk/mcs/; revision=120199
2008-11-28 01:43:09 +00:00
Marek Habersack 77e1c19287 2008-11-28 Marek Habersack <[email protected]>
* library.make (TESTNAME_ARG): added support for the nunit-console -run
	parameter, so that individual tests can be ran.

svn path=/trunk/mcs/; revision=120198
2008-11-28 01:34:59 +00:00
Marek Habersack 0782151f37 2008-11-28 Marek Habersack <[email protected]>
* library.make (FIXTURE_ARG): /parameter:value syntax is not
	supported in nunit 2.4

svn path=/trunk/mcs/; revision=120196
2008-11-28 01:30:56 +00:00
Marek Habersack c8b474f72c 2008-11-28 Marek Habersack <[email protected]>
* ListView.cs: use the _correct_ operator when checking whether
	selected item index is within the data keys range.

svn path=/trunk/mcs/; revision=120194
2008-11-28 00:45:54 +00:00
Rodrigo Kumpera 6defb66363 2008-11-27 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (emit_array_extension_intrinsics): Add support
	for Set/GetVector aligned versions.

svn path=/trunk/mono/; revision=120187
2008-11-27 21:35:45 +00:00
Rodrigo Kumpera 6d82df7378 2008-11-27 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Add tests for Get/SetVector.

svn path=/trunk/mono/; revision=120183
2008-11-27 20:25:36 +00:00
Rodrigo Kumpera 08cc81ee34 2008-11-27 Rodrigo Kumpera <[email protected]>
* ArrayExtensions.cs: Add Get/SetVector variants for
	all vector types.

	* ArrayExtensions.cs: Add IsAligned query method to check
	is an index of a given array is property aligned for simd.

svn path=/trunk/mcs/; revision=120175
2008-11-27 19:59:49 +00:00
Mark Probst c52996a838 2008-11-27 Mark Probst <[email protected]>
* mempool.c, mempool-internals.h: Added g_slist_append_mempool()
	from mini/mini.c.

	* generic-sharing.c: Allocate the method template slists from the
	image mempool so it doesn't leak.

2008-11-27  Mark Probst  <[email protected]>

	* mini.c: Removed g_slist_append_mempool().  Now in
	metadata/mempool.c.

svn path=/trunk/mono/; revision=120174
2008-11-27 19:26:00 +00:00
Sebastien Pouliot d07a33dde5 2008-11-27 Sebastien Pouliot <[email protected]>
* FileInfo.cs: Change ToString (in 2.1) not to return the full path
	of the filename (since it's not SecurityCritical).


svn path=/trunk/mcs/; revision=120172
2008-11-27 18:57:42 +00:00
Rodrigo Kumpera 35aabf95f2 2008-11-27 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (mono_emit_vector_ldelema): Extract the element
	size properly and make the bounds check optional.

	* simd-intrinsics.c (emit_array_extension_intrinsics): Add support
	for SetVector and IsAligned.

svn path=/trunk/mono/; revision=120167
2008-11-27 17:04:35 +00:00
Rodrigo Kumpera 5e23b0096e 2008-11-27 Rodrigo Kumpera <[email protected]>
* class.c (generic_array_methods): Release the linked list.

svn path=/trunk/mono/; revision=120166
2008-11-27 17:04:26 +00:00
Marek Habersack c217a2d9e1 2008-11-27 Marek Habersack <[email protected]>
* ListView.cs: fixes in DoUpdate and DoDelete - check must be made
	that the requested item index is _smaller_ than the number of
	keys, not _bigger_.
	Enable using the lambda expression in CreateItemsInGroups - the
	gmcs bug preventing that was fixed.

svn path=/trunk/mcs/; revision=120165
2008-11-27 16:27:17 +00:00
Mark Probst 0f5df744cc 2008-11-27 Mark Probst <[email protected]>
* marshal.c (mono_string_builder_to_utf8): Fixed a wrong
	invocation to g_utf16_to_utf8().

svn path=/trunk/mono/; revision=120164
2008-11-27 16:05:55 +00:00
Marek Safar 48041bb4a5 Updated.
svn path=/trunk/mcs/; revision=120163
2008-11-27 15:38:27 +00:00
Marek Safar cc48ca280b 2008-11-27 Marek Safar <[email protected]>
* convert.cs, literal.cs: More Convert cleanup is needed.


svn path=/trunk/mcs/; revision=120162
2008-11-27 15:38:13 +00:00
Zoltan Varga 251de1af9f 2008-11-27 Zoltan Varga <[email protected]>
* mini.c: Remove unused mono_normalize_opcodes () function.

svn path=/trunk/mono/; revision=120161
2008-11-27 15:24:36 +00:00
Jb Evain 3a33327fd2 2008-11-27 Jb Evain <[email protected]>
* Mono.Cecil/ExternTypeCollection.cs: don't attach types as they
	are already attached to the current module.

svn path=/trunk/mcs/; revision=120159
2008-11-27 14:49:07 +00:00
Marek Safar 4ec93ad15d New test.
svn path=/trunk/mcs/; revision=120142
2008-11-27 12:06:53 +00:00
Marek Safar 68b9af6016 2008-11-27 Marek Safar <[email protected]>
* decl.cs, class.cs: Fixed misleading error message.


svn path=/trunk/mcs/; revision=120141
2008-11-27 12:06:36 +00:00
Marek Safar 2ba417e961 New test.
svn path=/trunk/mcs/; revision=120140
2008-11-27 12:02:55 +00:00
Atsushi Eno d7cb70d48f 2008-11-27 Atsushi Enomoto <[email protected]>
* Makefile: here is another nunit24 option breakage.


svn path=/trunk/mcs/; revision=120138
2008-11-27 08:45:05 +00:00
Atsushi Eno b8d49fc161 2008-11-26 Atsushi Enomoto <[email protected]>
* library.make : another nunit20 to kill :(


svn path=/trunk/mcs/; revision=120137
2008-11-27 07:16:03 +00:00
Ankit Jain bfff5fdea3 In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* AssignCulture.cs (Execute): Emit "Culture" metadata also.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* AssignCultureTest.cs: Add tests for "Culture" metadata.

svn path=/trunk/mcs/; revision=120131
2008-11-27 05:45:37 +00:00
Atsushi Eno 417bcadf75 2008-11-26 Atsushi Enomoto <[email protected]>
* docs/Makefile: remove nunit docs that do not exist (and I don't
	  think such docs for private mono use should be provided).


svn path=/trunk/mcs/; revision=120104
2008-11-27 00:17:20 +00:00
Atsushi Eno b18c06c92b 2008-11-26 Atsushi Enomoto <[email protected]>
* Makefile : I happened to remove errors and docs which
          used to be broken.


svn path=/trunk/mcs/; revision=120102
2008-11-26 23:08:53 +00:00
Marek Safar 2e26ea4377 2008-11-26 Marek Safar <[email protected]>
A fix for bug #449005
	* nullable.cs (EmitEquality): Disable optimization for user operator
	operands.


svn path=/trunk/mcs/; revision=120091
2008-11-26 18:47:09 +00:00
Mark Probst c8b8531f0e 2008-11-26 Mark Probst <[email protected]>
* method-to-ir.c (mini_emit_inst_for_method): Small fix: we're
	using the new atomic add ops now.

	* mini-ppc64.c, mini-ppc64.h, cpu-ppc64.md: Implemented atomic
	add.

svn path=/trunk/mono/; revision=120075
2008-11-26 14:56:37 +00:00
Mark Probst 1012549408 2008-11-26 Mark Probst <[email protected]>
* vararg2.cs: Forgot to add at last commit.

svn path=/trunk/mono/; revision=120074
2008-11-26 14:23:36 +00:00
Mark Probst 85c7998c25 2008-11-26 Mark Probst <[email protected]>
* icall.c (mono_ArgIterator_IntGetNextArg): Handle sub-word sized
	arguments on big endian archs.

2008-11-26  Mark Probst  <[email protected]>

	* vararg2.cs: Test for sub-word sized variable arguments.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=120073
2008-11-26 13:54:03 +00:00
Mark Probst 0558951764 2008-11-26 Mark Probst <[email protected]>
* mini-ppc64.c: Several fixes.

svn path=/trunk/mono/; revision=120072
2008-11-26 13:42:46 +00:00
Mark Mason 6f3262d098 Added jump_table. Eliminate compare-imm instructions during instruction
lowering. Remove dead code.


svn path=/trunk/mono/; revision=120061
2008-11-26 07:23:10 +00:00
Mark Mason 62e4c2203f Initial upgrade of the MIPS port to the new IR.
The port compiles (tested under Debian Linux), and almost correctly
compiles and executes an empty c# program ;).

Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=120058
2008-11-26 06:40:11 +00:00
Mark Mason 2188b18224 Corrected a handfull of MIPS opcode entries.
Contributed under the MIT X11 license.

svn path=/trunk/mono/; revision=120057
2008-11-26 06:36:46 +00:00
Gonzalo Paniagua Javier a107f07886 2008-11-26 Gonzalo Paniagua Javier <[email protected]>
* DomainManager.cs: avoid the annoying %temp% directories.


svn path=/trunk/mcs/; revision=120056
2008-11-26 06:09:30 +00:00
Atsushi Eno 7f3021212d 2005-11-26 Atsushi Enomoto <[email protected]>
* App.config, nunit-console.exe.config,
	  nunit-console.exe.config.net_2_0,
	  nunit-console.exe.config.net_3_5 : remove extra trace listener.


svn path=/trunk/mcs/; revision=120054
2008-11-26 05:31:36 +00:00
Atsushi Eno 6edb954c64 2005-11-26 Atsushi Enomoto <[email protected]>
* CommonAssemblyInfo.cs : why is it required in extra-distfiles?


svn path=/trunk/mcs/; revision=120053
2008-11-26 05:20:35 +00:00
Gonzalo Paniagua Javier 37dbe04047 2008-11-25 Gonzalo Paniagua Javier <[email protected]>
* reflection.c: (_mono_reflection_parse_type) skip leading spaces in
	the type name (test added in corlib).


svn path=/trunk/mono/; revision=120052
2008-11-26 04:10:31 +00:00
Gonzalo Paniagua Javier 046904a774 2008-11-25 Gonzalo Paniagua Javier <[email protected]>
* TypeTest.cs: new test for Type.GetType.


svn path=/trunk/mcs/; revision=120051
2008-11-26 04:08:53 +00:00
Atsushi Eno ffa193a7a0 2005-11-25 Atsushi Enomoto <[email protected]>
* ConsoleClient/nunit-console-exe/nunit-console.exe.config.net_3_5 :
	  missing.


svn path=/trunk/mcs/; revision=120048
2008-11-26 03:19:51 +00:00
Gonzalo Paniagua Javier e9adf966df 2008-11-25 Gonzalo Paniagua Javier <[email protected]>
* HttpContext.cs: MS does not throw. They just return null.


svn path=/trunk/mcs/; revision=120047
2008-11-26 02:56:03 +00:00
Atsushi Eno 2e67c438b3 2005-11-25 Atsushi Enomoto <[email protected]>
* ConsoleClient/nunit-console-exe/Makefile : more :(


svn path=/trunk/mcs/; revision=120046
2008-11-26 02:44:34 +00:00
Atsushi Eno b3671b6a95 2005-11-25 Atsushi Enomoto <[email protected]>
* ConsoleClient/nunit-console/Makefile : here this time :(


svn path=/trunk/mcs/; revision=120042
2008-11-26 02:08:27 +00:00
Atsushi Eno 64035589f3 2005-11-25 Atsushi Enomoto <[email protected]>
* NUnitCore/interfaces/Makefile: another one bites the dust :(


svn path=/trunk/mcs/; revision=120038
2008-11-26 01:39:02 +00:00
Atsushi Eno 57bee69973 2005-11-25 Atsushi Enomoto <[email protected]>
* Makefile, NUnitExtensions/docs :
	  well, just remove those extra empty stuff.


svn path=/trunk/mcs/; revision=120037
2008-11-26 01:15:39 +00:00
Atsushi Eno dad9f9a97b 2005-11-25 Atsushi Enomoto <[email protected]>
* Makefile : more fix extra distfiles (whitespace in filename).


svn path=/trunk/mcs/; revision=120034
2008-11-26 00:45:20 +00:00
Atsushi Eno 394f2c34e7 2005-11-25 Atsushi Enomoto <[email protected]>
* Makefile : remove nonexistent distfiles.


svn path=/trunk/mcs/; revision=120033
2008-11-25 23:56:57 +00:00
Mark Mason 1569f559b9 MIPS to use ELF writer
Contributed under the MIT X11 license.


svn path=/trunk/mono/; revision=120028
2008-11-25 23:20:50 +00:00
Atsushi Eno 9d6a4d809a 2008-11-25 Atsushi Enomoto <[email protected]>
* Makefile : replace nunit20 with nunit24.


svn path=/trunk/mcs/; revision=120015
2008-11-25 22:09:40 +00:00
Atsushi Eno bf5668ad1b 2005-11-25 Atsushi Enomoto <[email protected]>
* import NUnit 2.4.8 to replace with fresh version.


svn path=/trunk/mcs/; revision=120009
2008-11-25 21:41:19 +00:00
Atsushi Eno aa46835403 update nunit options that break upgrade to 2.4.
svn path=/trunk/mcs/; revision=120008
2008-11-25 21:36:44 +00:00
Mark Mason b4b7485a4a Remove MIPS-specific assert.
This commit is licensed under the MIT X11 license.


svn path=/trunk/mono/; revision=120005
2008-11-25 21:22:35 +00:00
Jb Evain 107bf622d4 only install the net_1_1 version of Cecil.Mdb
svn path=/trunk/mcs/; revision=119988
2008-11-25 18:33:37 +00:00
Jb Evain 42be74453c only install the net_1_1 version of Cecil
svn path=/trunk/mcs/; revision=119987
2008-11-25 18:30:04 +00:00
Jb Evain 9d940e0c94 update
svn path=/trunk/mcs/; revision=119985
2008-11-25 18:25:50 +00:00
Jb Evain 5fd6352b63 2008-11-25 Atsushi Enomoto <[email protected]>
Jb Evain  <[email protected]>

	* WellFormedXmlWriter.cs : new file to escape invalid XML
	  characters.
	* mono-api-info.cs mono-api-diff.cs : don't use XmlTextWriter
	  directly when you don't know what you are going to write.
	  escape invalid characters as \xXX or \uUUUU.

svn path=/trunk/mcs/; revision=119984
2008-11-25 18:25:00 +00:00
Geoff Norton 082e8d2122 2008-11-25 Geoff Norton <[email protected]>
* SynchronizationContext.cs: A temporary horrible hack to SyncContext
        to hard-wire all calls back to the main thread (moonlight-only) so that
        we can use our unit test harness.  This will be fixed for 2.1 when we
        implement Dispatcher properly.

svn path=/trunk/mcs/; revision=119981
2008-11-25 18:04:25 +00:00
Marek Safar cc1de9552b New test.
svn path=/trunk/mcs/; revision=119968
2008-11-25 16:30:18 +00:00
Marek Safar 536e1247e3 2008-11-25 Marek Safar <[email protected]>
A fix for bug #447027
	* anonymous.cs (HoistedVariable): Cache also outer access to deal
	with context variables stored as expression instances.


svn path=/trunk/mcs/; revision=119966
2008-11-25 16:29:43 +00:00
Marek Safar 11247a11be fixes build
svn path=/trunk/mcs/; revision=119958
2008-11-25 15:23:04 +00:00
Marek Safar 0a75e81d90 New tests.
svn path=/trunk/mcs/; revision=119955
2008-11-25 15:01:35 +00:00
Marek Safar def6935cac 2008-11-25 Marek Safar <[email protected]>
A fix for bug #447027
	* delegate.cs: Fixed delegate VerifyMethod logic.


svn path=/trunk/mcs/; revision=119954
2008-11-25 15:01:13 +00:00
Gonzalo Paniagua Javier 326e9d58bb 2008-11-25 Gonzalo Paniagua Javier <[email protected]>
* pedump.c: initialize perf. counters. Fixes a segv.


svn path=/trunk/mono/; revision=119949
2008-11-25 13:40:44 +00:00
Everaldo Canuto f748530414 2008-11-24 Everaldo Canuto <[email protected]>
* PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
	#413501.

2008-11-24  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=119948
2008-11-25 13:27:02 +00:00
Carlos Alberto Cortez c364286f30 2008-11-24 Carlos Alberto Cortez <[email protected]>
* Scrollbar.cs:
	* ScrollableControl.cs: Simplify the code to manually set the size of
	the thum area, avoiding duplication of code, and also preserving the
	right value for different code paths - this can happen when size
	changes are made to the scrollbar after setting LargeChange, Maximum
	or related properties for the ScrollBar.


svn path=/trunk/mcs/; revision=119941
2008-11-25 10:50:56 +00:00
Atsushi Eno 622852656f 2008-11-25 Atsushi Enomoto <[email protected]>
* DbDataRecord.cs : it is abstract, so create different impl. class.
	* DbEnumerator.cs : use above.


svn path=/trunk/mcs/; revision=119940
2008-11-25 10:32:45 +00:00
Rolf Bjarne Kvinge 2f64787ac1 2008-11-25 Rolf Bjarne Kvinge <[email protected]>
* Consts.cs.in: Update Silverlight's FxFileVersion to final
	  version number of Silverlight 2.



svn path=/trunk/mcs/; revision=119934
2008-11-25 08:56:26 +00:00
Carlos Alberto Cortez aff6d9eae7 2008-11-24 Carlos Alberto Cortez <[email protected]>
* ScrollableControl.cs: When scrolling, don't invalidate the entire
	area, and call to XplatUIX11.ScrollWindow instead. This is exactly
	what .Net does: copy the visible area, and only invalidate the part of
	the area that wasn't visible before scrolling.
	Fixes #441738.


svn path=/trunk/mcs/; revision=119930
2008-11-25 08:39:32 +00:00
Martin Baulig 0e83a75234 2008-11-25 Martin Baulig <[email protected]>
* mono-debug-debugger.c
	(mono_debugger_runtime_invoke): Return the exception object if an
	exception was thrown.  Visual Studio displays the exception object
	in the locals window.


svn path=/trunk/mono/; revision=119899
2008-11-25 01:18:18 +00:00
Marek Habersack fa32fdf482 2008-11-25 Marek Habersack <[email protected]>
* System.Web.dll.sources: added
	System.Web.Compilation/AspComponent.cs

2008-11-25  Marek Habersack  <[email protected]>

	* RootBuilder.cs: use new API in AspComponentFoundry to retrieve
	registered control type.

	* TemplateControlParser.cs: AddControlImports () removed. Its
	functionality is now implemented in ControlBuilder.AddChild in a
	more elegant, fine grained and correct way.

	* TemplateParser.cs: replaced some "" with String.Empty

	* ControlBuilder.cs: AddChild now adds an import for child's
	namespace if the control being added has been registered in the
	web.config file. Possible fix for #447896 and #447898

	* PageParser.cs, MasterPageParser.cs: do not call
	AddControlImports, it no longer exists.

2008-11-25  Marek Habersack  <[email protected]>

	* AspComponentFoundry.cs: GetComponentType methods replaced with
	GetComponent returning an instance of AspComponent which fully
	describes the registered item. Components are cached, indexed by
	full tag name.

	* AspComponent.cs: added

svn path=/trunk/mcs/; revision=119893
2008-11-25 00:51:21 +00:00
Mark Probst 6230e5a966 2008-11-25 Mark Probst <[email protected]>
* mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c, cpu-ppc64.md: Several
	fixes.  PPC64 now passes most of the runtime regressions.

svn path=/trunk/mono/; revision=119882
2008-11-25 00:08:23 +00:00
Mark Probst c2a66d8e7b 2008-11-24 Mark Probst <[email protected]>
* mini-trampolines.c (mono_delegate_trampoline): Don't return a
	ftnptr.

svn path=/trunk/mono/; revision=119878
2008-11-25 00:04:13 +00:00
Mark Probst 4b375b3dc7 2008-11-24 Mark Probst <[email protected]>
* marshal.c (mono_type_native_stack_size): MONO_TYPE_I and
	MONO_TYPE_U are sizeof (gpointer), too.

svn path=/trunk/mono/; revision=119864
2008-11-24 23:58:58 +00:00
Geoff Norton cf717d5b88 2008-11-24 Geoff Norton <[email protected]>
* gdipFunctions.cs: Ensure that System.Drawing works on the mac as
	well as unix.

svn path=/trunk/mcs/; revision=119827
2008-11-24 18:43:20 +00:00
Jonathan Pobst fe22878032 2008-11-24 Jonathan Pobst <[email protected]>
* DataGridView.cs: Listen for a DataTable's TableCleared event so we
	can clear ourselves when it is raised, we don't have a newrowindex
	if we don't have any columns.
	* DataGridViewRowCollection.cs: Ensure we always delete all the rows,
	re-index after each delete so the NewRow will have the correct index.
	[Fixes bug #448005]

2008-11-24  Jonathan Pobst  <[email protected]>

	* DataGridViewDataBindingTest.cs: Flush and add test for bug #448005.
	* DataGridViewRowCollectionTest.cs: Add test for bug #448005.

svn path=/trunk/mcs/; revision=119826
2008-11-24 18:31:48 +00:00
Zoltan Varga 465edee5d2 2008-11-24 Zoltan Varga <[email protected]>
* freebsd-elf_common.h (struct): Use uint32_t instead of 
	u_int32_t to fix the build on opensolaris.

svn path=/trunk/mono/; revision=119815
2008-11-24 17:06:02 +00:00
Zoltan Varga 73fedb43aa Fix a warning.
svn path=/trunk/mono/; revision=119812
2008-11-24 17:03:56 +00:00
Jb Evain 9106ace6a3 2008-11-24 Jb Evain <[email protected]>
* Mono.Linker.Steps/ResolveFromAssemblyStep.cs
	* Mono.Linker.Steps/ResolveFromXmlStep.cs
	* Mono.Linker.Steps/MarkStep.cs:
		generalize the use of the new Has* pattern in Cecil
		to avoid unecessary allocations. Also cache delegates.


svn path=/trunk/mcs/; revision=119809
2008-11-24 16:54:09 +00:00
Marek Safar 9db13fe254 New test.
svn path=/trunk/mcs/; revision=119808
2008-11-24 16:53:25 +00:00
Marek Safar 109bb0350b 2008-11-24 Marek Safar <[email protected]>
* ecore.cs, delegate.cs: MethodGroup expressions can be applicable
	but not verifiable.


svn path=/trunk/mcs/; revision=119807
2008-11-24 16:46:29 +00:00
Jonathan Pobst 66e28ff9b2 2008-11-23 Jonathan Pobst <[email protected]>
* FormTest.cs: Add test for bug #447873.

svn path=/trunk/mcs/; revision=119805
2008-11-24 16:39:40 +00:00
Jonathan Pobst 0105966a30 2008-11-24 Jonathan Pobst <[email protected]>
* Form.cs: Don't change min/max size if it is empty.
	[Fixes bug #447873]

svn path=/trunk/mcs/; revision=119803
2008-11-24 16:36:15 +00:00
Zoltan Varga e861589d82 2008-11-24 Zoltan Varga <[email protected]>
* regalloc2.c: Distinguish between use/def positions. Optimize the creation of
	volatile intervals a bit.

svn path=/trunk/mono/; revision=119802
2008-11-24 16:35:03 +00:00
Marek Habersack d77edd67d5 2008-11-24 Marek Habersack <[email protected]>
* HttpRuntime.cs: take PlatformID.MacOSX into account when
	determining whether we're running on Windows or not. Possible fix
	for #447874

svn path=/trunk/mcs/; revision=119800
2008-11-24 16:22:00 +00:00
Mark Probst 3340ac9839 2008-11-24 Mark Probst <[email protected]>
* marshal.c (mono_type_native_stack_size): Fixed size and
	alignment for reference types.

svn path=/trunk/mono/; revision=119793
2008-11-24 14:16:34 +00:00
Mark Probst 7b11e26367 2008-11-24 Mark Probst <[email protected]>
* basic-long.cs: New test case.

svn path=/trunk/mono/; revision=119789
2008-11-24 12:32:19 +00:00
Carlos Alberto Cortez 5d5713d61d 2008-11-23 Carlos Alberto Cortez <[email protected]>
* ScrollBar.cs:
	* ScrollableControl.cs: When the manual thumb size is used, the
	maximum allowed value should depend on that thumb size, instead of
	LargeChange (using the maximum - LargeChange + 1 value). But
	LargeChange should be used normally when incrementing/decrementing.
	Fixes the remaining part of #441546.


svn path=/trunk/mcs/; revision=119787
2008-11-24 11:22:01 +00:00
Zoltan Varga e08e623c47 2008-11-23 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Disable globalra for large methods for 
	now.

	* regalloc2.c (order_moves): Add fp support.

svn path=/trunk/mono/; revision=119765
2008-11-23 21:25:02 +00:00
Zoltan Varga 9e83815c85 2008-11-23 Zoltan Varga <[email protected]>
* branch-opts.c (mono_remove_critical_edges): Split non-critical edges whose
	source bblock ends with an OP_BR_REG.

	* ratests.cs: Add a new test.

svn path=/trunk/mono/; revision=119755
2008-11-23 18:59:11 +00:00
Mark Probst 9c1f7024ed 2008-11-23 Mark Probst <[email protected]>
* mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c: Disable generic code
	sharing.  PPC64 now passes generics.exe.

2008-11-23  Mark Probst  <[email protected]>

	* class.c (mono_class_generic_sharing_enabled): Disable generic
	code sharing for PPC64.

svn path=/trunk/mono/; revision=119754
2008-11-23 16:58:58 +00:00
Mark Probst eed20eb173 2008-11-23 Mark Probst <[email protected]>
* mini-ppc64.c: Several fixes.  PPC64 now runs iltests.exe.

svn path=/trunk/mono/; revision=119750
2008-11-23 15:58:26 +00:00
Zoltan Varga 8cad504080 2008-11-23 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_find_jit_info): Avoid reading uninitialized
	memory when mono_jit_info_table_find () can't find the method in the
	LMF case.

svn path=/trunk/mono/; revision=119749
2008-11-23 15:47:00 +00:00
Andreia Gaita 56cb2f124d * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
until an about:blank has been loaded (according to spec). Fix
ScrollbarsEnabled to set when a document is loaded (since we use js
for it). Fix url so it reflects the current loading document and not
the previous one. Send StatusChanged events.

2008-11-23  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=119747
2008-11-23 15:21:42 +00:00
Andreia Gaita 4b9fd5fbdc * Mono.Mozilla/Callback.cs: Catch redirecting and update url accordingly.
Ignore OnLocationChanged, it's not always called, use OnStateChange instead.

2008-11-23  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=119746
2008-11-23 15:21:31 +00:00
Andreia Gaita 1f907e954a * Mono.Mozilla/WebBrowser.cs: Do delayed resizing, when the resize happens
before a window is created. Fix the window getter so it gets the top content
window if no window is focused.

2008-11-23  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=119745
2008-11-23 15:21:19 +00:00
Gert Driesen 5c6aaadcd4 Removed svn:executable.
svn path=/trunk/mcs/; revision=119744
2008-11-23 13:48:15 +00:00
Zoltan Varga 55b7f98b57 2008-11-23 Zoltan Varga <[email protected]>
* aot-compiler.c(mono_save_xdebug_info): Emit complete debug info for
	AOTed code too.

svn path=/trunk/mono/; revision=119743
2008-11-23 13:48:01 +00:00
Gert Driesen 24b2e4b4e9 * test-695.cs:
* test-695-2-lib.cs:
* test-695-3.lib.cs: Added test for bug #432423.
* AssemblyBuilder.cs: When assembly is strongnamed, then explicitly
set PublicKey flag. Do not allow AssemblyFlagsAttribute to overwrite
flags value, and ignore PublicKey flag if assembly is not strongnamed.
Fixes bug #432423.

svn path=/trunk/mcs/; revision=119742
2008-11-23 13:24:39 +00:00
Zoltan Varga ca96f824be 2008-11-23 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Make this work with the assembly
	writer too.

svn path=/trunk/mono/; revision=119741
2008-11-23 12:52:12 +00:00
Andreia Gaita ea1fe66f84 * Mono.Mozilla/Callback.cs: Send NS_BINDING_ABORTED code for a cancelled request.
* Mono.Mozilla/interfaces/nsIRequest.cs: Fix status type
[Fixes #445498]

2008-11-23  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=119740
2008-11-23 10:45:56 +00:00
Andreia Gaita 4224baf510 * Mono.Mozilla/WebBrowser.cs: create the browser window when the control gets
activated so focus works properly

2008-11-23  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=119739
2008-11-23 10:12:17 +00:00
Andreia Gaita bc39654058 * Application.cs: If a message comes in for an embedded control
(like webbrowser) when we're capturing the keyboard, release the
capture and continue.
[fixes #429462]

2008-11-23  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=119738
2008-11-23 10:11:54 +00:00
Atsushi Eno 9b1f37438a 2008-11-23 Atsushi Enomoto <[email protected]>
* DataContractAttribute.cs : remove MonoTODO.


svn path=/trunk/mcs/; revision=119736
2008-11-23 07:11:22 +00:00
Atsushi Eno b97d68da36 2008-11-23 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, XmlFormatterSerializer.cs,
	  XmlFormatterDeserializer.cs, DataContractAttribute.cs,
	  CollectionDataContractAttribute.cs, KnownTypeCollection.cs :
	  support IsReference (new in 3.5 SP1).

	* XmlObjectSerializerTest.cs : added test for IsReference = true.


svn path=/trunk/mcs/; revision=119734
2008-11-23 06:41:06 +00:00
Andreia Gaita f69e6db55f * Mono.Mozilla/Callback.cs,
Mono.Mozilla/DOM/DocumentEncoder.cs,
  Mono.Mozilla/DOM/HTMLElement.cs,
  Mono.Mozilla/WebBrowser.cs,
  Mono.Mozilla/interfaces/nsIServiceManager.cs:
  Fix ContentStream for xulrunner 1.8.
  Fix Document and Uri setting when loading new pages

2008-11-23  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=119733
2008-11-23 06:19:16 +00:00
Andreia Gaita c41f0d4a6d * Mono.Mozilla/Base.cs, Mono.Mozilla/WebBrowser.cs: Separate initialization
in 3 stages so events can be registered before the window is actually created.
The creation of the window is now done only when a user requests something
from the binding (like opening a window, or rendering content)

2008-11-23  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=119732
2008-11-23 06:02:44 +00:00
Atsushi Eno 6f1b46e6b7 2008-11-23 Atsushi Enomoto <[email protected]>
* DataContractSerializer.cs : remove extra type validity check.


svn path=/trunk/mcs/; revision=119731
2008-11-23 04:45:01 +00:00
Atsushi Eno 628a182954 2008-11-23 Atsushi Enomoto <[email protected]>
* System.Runtime.Serialization_test.dll.soruces :
	  remove ALL Mainsoft serialization tests that completely fail under
	  .NET and reduce 107 test failures out of 113.
	  They are English (language) dependent.


svn path=/trunk/mcs/; revision=119730
2008-11-23 04:37:37 +00:00
Atsushi Eno fd1941cfd8 2008-11-23 Atsushi Enomoto <[email protected]>
* XmlFormatterSerializer.cs : one object could not be serialized
	  twice in non-circular situation.


svn path=/trunk/mcs/; revision=119729
2008-11-23 04:23:38 +00:00
Mark Probst 33f5db3786 2008-11-23 Mark Probst <[email protected]>
* mini-ppc64.c, mini-ppc64.h, exceptions-ppc64.c, cpu-ppc64.md:
	Several fixes.  PPC64 now runs exceptions.exe and
	devirtualization.exe.

svn path=/trunk/mono/; revision=119727
2008-11-23 00:57:19 +00:00
Sebastien Pouliot 99f58bb300 2008-11-22 Sebastien Pouliot <[email protected]>
* Mono.Cecil/GenericParameter.cs,
	* Mono.Cecil/ICustomAttributeProvider.cs,
	* Mono.Cecil/CallSite.cs,
	* Mono.Cecil/IMethodSignature.cs,
	* Mono.Cecil/FunctionPointerType.cs,
	* Mono.Cecil/FieldDefinition.cs,
	* Mono.Cecil/TypeReference.cs,
	* Mono.Cecil/GenericInstanceMethod.cs,
	* Mono.Cecil/IHasSecurity.cs,
	* Mono.Cecil/MethodReturnType.cs,
	* Mono.Cecil/AssemblyDefinition.cs,
	* Mono.Cecil/TypeDefinition.cs,
	* Mono.Cecil/MethodDefinition.cs,
	* Mono.Cecil/EventDefinition.cs,
	* Mono.Cecil/ModuleDefinition.cs,
	* Mono.Cecil/MethodReference.cs,
	* Mono.Cecil/ReflectionWriter.cs,
	* Mono.Cecil/ParameterDefinition.cs,
	* Mono.Cecil/PropertyDefinition.cs,
	* Mono.Cecil/IGenericParameterProvider.cs:
		Add boolean Has{x} properties so Cecil consumers are able
		to avoid the lazy allocations that would be made for an 
		empty {x}. Use the Has{x} properties inside Cecil (some 
		cases might be missing).


svn path=/trunk/mcs/; revision=119724
2008-11-22 23:44:24 +00:00
Ankit Jain 38aa768ea1 In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks_test.dll.sources: Added AssignCultureTest.cs

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* AssignCulture.cs (Execute): Implement.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* AssignCultureTest.cs: New.

In tools/xbuild:

	* xbuild/Microsoft.Common.tasks: Add AssignCulture task.

svn path=/trunk/mcs/; revision=119722
2008-11-22 19:12:58 +00:00
Mark Probst a44aaf814c 2008-11-22 Mark Probst <[email protected]>
* mini-ppc64.c, tramp-ppc64.c: Small fixes.  PPC64 now runs
	arrays.exe and basic-math.exe.

svn path=/trunk/mono/; revision=119721
2008-11-22 18:37:31 +00:00
Mark Probst 31c600cc46 2008-11-22 Mark Probst <[email protected]>
* mini-ppc64.c, mini-ppc64.h, exceptions-ppc64.c, tramp-ppc64.c,
	cpu-ppc64.md: Several fixes.  PPC64 now runs objects.exe.

svn path=/trunk/mono/; revision=119704
2008-11-22 14:25:44 +00:00
Ankit Jain 0912ac9173 In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks_test.dll.sources: Added AssignTargetPathTest.cs

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* AssignTargetPath.cs (Execute): Implement.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* AssignTargetPathTest.cs: New.

svn path=/trunk/mcs/; revision=119703
2008-11-22 12:26:23 +00:00
Gonzalo Paniagua Javier 56484a4ff6 2008-11-22 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationManager.cs: fix nullref.


svn path=/trunk/mcs/; revision=119699
2008-11-22 05:34:02 +00:00
Andreia Gaita 1b6965574a * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2008-11-22  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=119694
2008-11-22 01:49:54 +00:00
Andreia Gaita edff59e8ba * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2008-11-21  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=119687
2008-11-21 23:51:12 +00:00
Carlos Alberto Cortez e5fa333c1c 2008-11-21 Carlos Alberto Cortez <[email protected]>
* ScrollBar.cs:
	* ScrollableControl.cs: Set manually the thumb size for the
	ScrollableControl scrollbars, so any further changes to the underneath
	scrollbars respect the original size.
	Fixes part of #441546.


svn path=/trunk/mcs/; revision=119686
2008-11-21 23:25:23 +00:00
Rodrigo Kumpera b110eb05c5 2008-11-21 Rodrigo Kumpera <[email protected]>
* Makefile: Add reference to System.Core so we can
	define extension methods.

	* Mono.Simd.dll.sources: Add Mono.Simd/ArrayExtensions.cs.

2008-11-21  Rodrigo Kumpera  <[email protected]>

	* ArrayExtensions.cs: New type exposing extension
	methods to primitive arrays to load/store Vectors
	from.

svn path=/trunk/mcs/; revision=119685
2008-11-21 23:08:04 +00:00
Rodrigo Kumpera db89b7a27f 2008-11-21 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c: Add support ArrayExtension intrinsics.

svn path=/trunk/mono/; revision=119684
2008-11-21 23:07:16 +00:00
Rodrigo Kumpera 329fa3c22b 2008-11-21 Rodrigo Kumpera <[email protected]>
* method-to-ir.c: Move bounds checking macros to ir-emit.h

	* ir-emit.h: Move macros from method-to-ir.c to here.

svn path=/trunk/mono/; revision=119683
2008-11-21 23:07:09 +00:00
Rodrigo Kumpera b4d7918eec 2008-11-21 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Correct the long simd ops to use LREG.

svn path=/trunk/mono/; revision=119682
2008-11-21 23:07:03 +00:00
Zoltan Varga cd22235d54 2008-11-21 Zoltan Varga <[email protected]>
* mini-ops.h: Correct the dreg type of OP_LOADI8_MEMBASE.

svn path=/trunk/mono/; revision=119675
2008-11-21 21:44:38 +00:00
Marek Habersack a77d9eca19 2008-11-21 Marek Habersack <[email protected]>
* CompilationException.cs: made serializable.

	* TemplateControlCompiler.cs: make the Bind regex stricter.
	When creating Eval expression from Bind, replace single quotes
	with double quotes. Fixes bug #447597
	When processing Bind expressions and the regex doesn't match,
	throw an exception.

2008-11-21  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/InvalidPropertyBind1.aspx
	Test/mainsoft/NunitWebResources/InvalidPropertyBind2.aspx
	Test/mainsoft/NunitWebResources/InvalidPropertyBind3.aspx
	Test/mainsoft/NunitWebResources/InvalidPropertyBind4.aspx
	Test/mainsoft/NunitWebResources/ValidPropertyBind1.aspx
	Test/mainsoft/NunitWebResources/ValidPropertyBind2.aspx
	Test/mainsoft/NunitWebResources/ValidPropertyBind3.aspx
	Test/mainsoft/NunitWebResources/ValidPropertyBind4.aspx
	Test/mainsoft/NunitWebResources/ReadWritePropertyControl.ascx

	* Test/tools/web.config: disabled batch compilation and enabled
	debugging.

2008-11-21  Marek Habersack  <[email protected]>

	* HttpParseException.cs, HtmlizedException.cs: added
	deserialization constructor.

2008-11-21  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added simple data source for
	Bind tests.
	Added 8 tests for valid and invalid Bind expressions.

2008-11-21  Marek Habersack  <[email protected]>

	* Web.config, Web.mono.config: disabled batch compilation.

2008-11-21  Marek Habersack  <[email protected]>

	* NunitWebResources/WebLogin.config,
	NunitWebResources/WebControl.config: disabled batch compilation.

	* NunitWebResources/WebMapping.config: enabled debugging and
	disabled batch compilation.

	* NunitWebResources/InvalidPropertyBind1.aspx,
	NunitWebResources/InvalidPropertyBind2.aspx,
	NunitWebResources/InvalidPropertyBind3.aspx,
	NunitWebResources/InvalidPropertyBind4.aspx,
	NunitWebResources/ValidPropertyBind1.aspx,
	NunitWebResources/ValidPropertyBind2.aspx,
	NunitWebResources/ValidPropertyBind3.aspx,
	NunitWebResources/ValidPropertyBind4.aspx,
	NunitWebResources/ReadWritePropertyControl.ascx: added

	* MainsoftWebApp20/Web.config: disabled batch compilation

2008-11-21  Marek Habersack  <[email protected]>

	* Web.config: disabled batch compilation



svn path=/trunk/mcs/; revision=119673
2008-11-21 21:35:55 +00:00
Jb Evain 11b95e32d4 2008-11-21 Jb Evain <[email protected]>
* scripts/Makefile.am: use only one mono-api-info pointing to the cecil one
	which is mscorlib agnostic.


svn path=/trunk/mono/; revision=119671
2008-11-21 20:47:51 +00:00
Ankit Jain 363b18904a In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* ExpressionCollection.cs (ConvertToITaskItemArray): Add support for
	MetadataReference.
	* MetadataReference.cs (ConvertToITaskItemArray): New.
	* Project.cs (GetAllItemGroups): New.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* ProjectTest.cs (TestBatchedMetadataRef*): New tests for metadata
	references.

In class/Microsoft.Build.Engine/Test/resources:

	* TestTasks.cs (BatchingTestTask): New.

svn path=/trunk/mcs/; revision=119668
2008-11-21 20:27:57 +00:00
Zoltan Varga d5d70c3b96 2008-11-21 Zoltan Varga <[email protected]>
* mini-ops.h: Correct the dreg type of a few long opcodes.

svn path=/trunk/mono/; revision=119666
2008-11-21 19:55:28 +00:00
Rodrigo Kumpera b026b13960 2008-11-21 Rodrigo Kumpera <[email protected]>
* Vector*.cs: Use 4 bytes operations for bitwise ops (& | ^)
	as it can cause problems on some archs.

svn path=/trunk/mcs/; revision=119662
2008-11-21 19:32:04 +00:00
Marek Habersack a2bad5bd17 2008-11-21 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: make the Bind regex stricter.
	When creating Eval expression from Bind, replace single quotes
	with double quotes. Fixes bug #447597
	When processing Bind expressions and the regex doesn't match,
	throw an exception.

2008-11-21  Marek Habersack  <[email protected]>

	* ControlBuilder.cs: in BindingContainerType if builder is a
	RootBuilder and no naming container is found, return typeof
	(Page). In the TemplateBuilder case return cb.ControlType, not
	this.ControlType.

svn path=/trunk/mcs/; revision=119661
2008-11-21 19:27:51 +00:00
Marek Safar e548aa5280 Remove obsolete code
svn path=/trunk/mcs/; revision=119657
2008-11-21 18:43:43 +00:00
Jb Evain d97cbb6e5f add vs project files
svn path=/trunk/mcs/; revision=119651
2008-11-21 17:47:03 +00:00
Marek Safar 2e22387098 2008-11-21 Marek Safar <[email protected]>
* typemanager.cs, decl.cs, anonymous.cs, class.cs, enum.cs: Rewrote
	member type resolve to follow normal flow, instead of random
	property access.


svn path=/trunk/mcs/; revision=119647
2008-11-21 17:41:34 +00:00
Geoff Norton 0d96765d3b 2008-11-21 Geoff Norton <[email protected]>
* XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
        PlatformID.MacOSX now exists.

svn path=/trunk/mcs/; revision=119637
2008-11-21 17:05:13 +00:00
Marek Safar 22e410aaeb 2008-11-21 Marek Safar <[email protected]>
* iterators.cs (GetEnumeratorStatement): Re-use already resolved
	type.


svn path=/trunk/mcs/; revision=119635
2008-11-21 17:03:38 +00:00
Jb Evain d5dd533448 2008-11-21 Jb Evain <[email protected]>
* Makefile: build corcompare only during net_2_0 now.


svn path=/trunk/mcs/; revision=119626
2008-11-21 16:32:01 +00:00
Jb Evain 1e726553a5 2008-11-21 Jb Evain <[email protected]>
*.*: update to the cecil/corcompare version.


svn path=/trunk/mcs/; revision=119625
2008-11-21 16:31:33 +00:00
Rodrigo Kumpera 4148b0a572 2008-11-21 Rodrigo Kumpera <[email protected]>
* icall.c (mono_method_get_equivalent_method): Make sure
	method->klass->methods is inited before looping over it.

svn path=/trunk/mono/; revision=119611
2008-11-21 14:00:20 +00:00
Marek Safar 3fecd56895 Flush
svn path=/trunk/mcs/; revision=119608
2008-11-21 13:03:43 +00:00
Marek Safar 74e0e50b0a 2008-11-21 Marek Safar <[email protected]>
* const.cs: Emit decimal array constant as literal.


svn path=/trunk/mcs/; revision=119607
2008-11-21 13:01:36 +00:00
Zoltan Varga b85934ab38 2008-11-21 Zoltan Varga <[email protected]>
* mini-amd64.h: Applied patch from Mihai Chelaru <[email protected]>.
	Add netbsd support.

svn path=/trunk/mono/; revision=119606
2008-11-21 12:51:01 +00:00
Zoltan Varga 479056d2d2 2008-11-21 Zoltan Varga <[email protected]>
* atomic.h: Applied patch from Mihai Chelaru <[email protected]>. Add
	netbsd support.

svn path=/trunk/mono/; revision=119605
2008-11-21 12:49:20 +00:00
Zoltan Varga dcadb89406 2008-11-21 Zoltan Varga <[email protected]>
* configure.in: Only enable AOT on linux. Fixes #447265.

svn path=/trunk/mono/; revision=119604
2008-11-21 12:45:09 +00:00
Paolo Molaro 0124aa33f9 Fri Nov 21 12:52:23 CET 2008 Paolo Molaro <[email protected]>
* mini-ppc.c: remove negative stack references in epilog
	for platforms that don't support the red zone.


svn path=/trunk/mono/; revision=119603
2008-11-21 12:23:03 +00:00
Mark Probst 2729d2e8d9 2008-11-21 Mark Probst <[email protected]>
* mini-ppc64.h, cpu-ppc64.md: Fixed caller/callee saved floating
	point regs.  Now PPC64 passes basic-calls.exe.

svn path=/trunk/mono/; revision=119602
2008-11-21 11:54:55 +00:00
Rolf Bjarne Kvinge b0a37e0bf5 2008-11-21 Rolf Bjarne Kvinge <[email protected]>
* TypeConverter_2_1.cs: fix method signatures to match SL2 api.



svn path=/trunk/mcs/; revision=119590
2008-11-21 09:44:22 +00:00
Andreia Gaita 0605c47f81 * System.Drawing/Image.cs: On win32, when cloning images initialized from
resources, also clone the underlying stream, since it needs to stay
  around for the life of the image (gdi doesn't clone the underlying
  stream when cloning images, so when the gc disposes the original, it
  will also dispose the stream, which invalidates the clone).

* System.Drawing/Bitmap.cs: Save the underlying stream when creating bitmaps from a
  clone under win32

* System.Drawing.Imaging/Metafile.cs: Save the underlying stream when creating from a
  clone under win32

  [fixes #438886]

2008-11-21  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=119580
2008-11-21 05:39:11 +00:00
Gonzalo Paniagua Javier 884e641b80 grammar
svn path=/trunk/mcs/; revision=119578
2008-11-21 05:32:13 +00:00
Gonzalo Paniagua Javier 26a9f38203 2008-11-20 Gonzalo Paniagua Javier <[email protected]>
* object.c: when calling ExecuteAssembly in a newly created domain,
	the configuration file and application base are already set up.
	Bug #446353 take 2 fixed.


svn path=/trunk/mono/; revision=119575
2008-11-21 04:41:00 +00:00
Ankit Jain 9bbb8df364 Fix GenerateResource task.
* GenerateResource.cs (Execute): Use for loop instead of manually
using enumerators.

svn path=/trunk/mcs/; revision=119572
2008-11-21 03:34:57 +00:00
Ankit Jain 54c1042e92 In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CreateItemTest.cs (CheckBuildItem): Make public.
* TestMessageLogger.cs:
* TaskBatchingTests.cs: Fix file mode.

svn path=/trunk/mcs/; revision=119571
2008-11-21 03:24:00 +00:00
Ankit Jain 70e34156f1 Added support for batching.
svn path=/trunk/mcs/; revision=119570
2008-11-21 02:40:13 +00:00
Rodrigo Kumpera 3e0cc6ed8d 2008-11-20 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Add tests for accessors of Vector2l.

svn path=/trunk/mono/; revision=119564
2008-11-21 00:49:31 +00:00
Rodrigo Kumpera 69d64688ed 2008-11-20 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Added OP_INSERTX_I8_SLOW,.

	* mini-x86.c (mono_arch_decompose_long_opts): Decompose OP_INSERTX_I8_SLOW.

	* simd-intrinsics.c: Add support for Vector2l and Vector2ul.

svn path=/trunk/mono/; revision=119563
2008-11-21 00:49:19 +00:00
Mark Probst 6139610310 2008-11-21 Mark Probst <[email protected]>
* mini-ppc64.c, mini-ppc64.h, cpu-ppc64.md: Several fixes.  Now
	PPC64 passes basic-long.exe.

2008-11-21  Mark Probst  <[email protected]>

	* ppc/ppc-codegen.h: Make ppc_is_[u]imm16() work with 64 bit
	values.

svn path=/trunk/mono/; revision=119560
2008-11-21 00:21:53 +00:00
Rodrigo Kumpera 9f6d40ae06 2008-11-20 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Add tests for accessors of Vector2d.

svn path=/trunk/mono/; revision=119551
2008-11-20 23:45:09 +00:00
Rodrigo Kumpera 980b2305e3 2008-11-20 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Added OP_INSERTX_R8_SLOW,.

	* cpu-x86.md: Same.

	* mini-x86.c (mono_arch_output_basic_block): Same.

	* simd-intrinsics.c (simd_intrinsic_emit_setter): Add support for Vector2d.

svn path=/trunk/mono/; revision=119550
2008-11-20 23:45:01 +00:00
Rodrigo Kumpera 6f1d4b8fd3 2008-11-20 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add X86_SSE_MOVHPD_REG_MEMBASE and renamed MOVS to MOVSD.

svn path=/trunk/mono/; revision=119549
2008-11-20 23:45:00 +00:00
Rodrigo Kumpera f7f71bf0d4 2008-11-20 Rodrigo Kumpera <[email protected]>
* mono.1: Document env vars MONO_XDEBUG and MONO_VERBOSE_METHOD.

svn path=/trunk/mono/; revision=119548
2008-11-20 23:44:58 +00:00
Rodrigo Kumpera 39cf3f7551 2008-11-20 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Add tests for accessors of Vector4f.

svn path=/trunk/mono/; revision=119547
2008-11-20 23:44:54 +00:00
Rodrigo Kumpera 3ba0cc4190 2008-11-20 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Added OP_INSERTX_R4_SLOW,.

	* cpu-x86.md: Same.

	* mini-x86.c (mono_arch_output_basic_block): Same.

	* simd-intrinsics.c (simd_intrinsic_emit_setter): Add support for Vector4f.

svn path=/trunk/mono/; revision=119546
2008-11-20 23:44:46 +00:00
Rodrigo Kumpera 10b74b62ce 2008-11-20 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add X86_SSE_MOVS_ reg/membase variants.

	* x86/x86-codegen.h: Add x86_sse_alu_pd_reg_membase_imm.

	* x86/x86-codegen.h: Sort the x86_sse_alu_* macros decently.

svn path=/trunk/mono/; revision=119545
2008-11-20 23:44:44 +00:00
Gonzalo Paniagua Javier b3db36863a 2008-11-20 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: the time for the arguments of 'ping' is in seconds. Don't
	read the output of running the command, since we trust the return
	code.


svn path=/trunk/mcs/; revision=119534
2008-11-20 23:15:54 +00:00
Mark Probst 339a1bbe36 2008-11-20 Mark Probst <[email protected]>
* decompose.c: Decompose carry and overflow add on PPC64 like on
	other 64 bit archs.  Don't decompose sub at all on PPC64.

	* mini-ppc64.c, exceptions-ppc64.c, tramp-ppc64.c, cpu-ppc64.md:
	Several fixes and new opcodes.  Now PPC64 runs (but doesn't pass)
	basic-long.exe.

2008-11-20  Mark Probst  <[email protected]>

	* ppc/ppc-codegen.h: Use ppc_load_reg instead of ppc_ld in
	ppc_load_func to fix the 2 bit shift.

svn path=/trunk/mono/; revision=119516
2008-11-20 21:36:13 +00:00
Mark Probst 365b59583e 2008-11-20 Mark Probst <[email protected]>
* ppc/ppc-codegen.h: 64 bit division opcodes.

	Code submitted by [email protected] at
	https://bugzilla.novell.com/show_bug.cgi?id=324134 under the
	X11/MIT license.

svn path=/trunk/mono/; revision=119515
2008-11-20 21:27:36 +00:00
Gonzalo Paniagua Javier c1bea6f31d 2008-11-20 Gonzalo Paniagua Javier <[email protected]>
* machine.config: in 2.0, there's no <connectionManagement> section
	here. Bug #445991 fixed.


svn path=/trunk/mono/; revision=119512
2008-11-20 21:03:23 +00:00
Gonzalo Paniagua Javier adcaff89cc 2008-11-20 Gonzalo Paniagua Javier <[email protected]>
* PerformanceCounter.cs: add 2 workarounds for known problems. I will
	add the corresponding test cases later.


svn path=/trunk/mcs/; revision=119506
2008-11-20 20:40:55 +00:00
Gonzalo Paniagua Javier 75883dc733 2008-11-20 Gonzalo Paniagua Javier <[email protected]>
* ConfigHelper.cs: allow xmlns attribute.


svn path=/trunk/mcs/; revision=119505
2008-11-20 20:36:45 +00:00
Jonathan Pobst 956495e7c3 2008-11-20 Jonathan Pobst <[email protected]>
* TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
	Having something internal abstract isn't very nice for people who want
	to inherit from this class.

svn path=/trunk/mcs/; revision=119502
2008-11-20 20:26:22 +00:00
Marek Habersack 1c98a1360e 2008-11-20 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	System.Web.ClientServices and System.Web.ClientServices.Providers
	Sorted contents for easier reading and modification.

2008-11-20  Marek Habersack  <[email protected]>

	* ClientFormsAuthenticationCredentials.cs,
	ClientFormsAuthenticationMembershipProvider.cs,
	ClientRoleProvider.cs, ClientSettingsProvider.cs,
	ClientWindowsAuthenticationMembershipProvider.cs,
	IClientFormsAuthenticationCredentialsProvider.cs,
	SettingsSavedEventArgs.cs, UserValidatedEventArgs.cs: added (stubs

2008-11-20  Marek Habersack  <[email protected]>

	* ClientFormsIdentity.cs, ClientRolePrincipal.cs,
	ConnectivityStatus.cs: added (stubs)

svn path=/trunk/mcs/; revision=119490
2008-11-20 18:53:57 +00:00
Jonathan Pryor b0cb686594 * Makefile.am (sources_DATA): Add mono-file-formats.source,
mono-tools.source.

svn path=/trunk/mono/; revision=119483
2008-11-20 18:15:31 +00:00
Rodrigo Kumpera 8e5043c115 2008-11-20 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Add tests for accessors of Vector4i and Vector4ui.

svn path=/trunk/mono/; revision=119479
2008-11-20 17:51:23 +00:00
Rodrigo Kumpera b19037c33b 2008-11-20 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Added OP_INSERTX_I4_SLOW,.

	* cpu-x86.md: Same.

	* mini-x86.c (mono_arch_output_basic_block): Same.

	* simd-intrinsics.c (simd_intrinsic_emit_setter): Add support for Vector4i and Vector4ui.

svn path=/trunk/mono/; revision=119478
2008-11-20 17:51:16 +00:00
Rodrigo Kumpera 1bced5598e 2008-11-20 Rodrigo Kumpera <[email protected]>
* cpu-x86.md: Use reasonable sizes for extractx_u2 and insertx_u1_slow.

svn path=/trunk/mono/; revision=119477
2008-11-20 17:51:11 +00:00
Rodrigo Kumpera 807bcad172 2008-11-20 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c: Enable setters for Vector16sb.

svn path=/trunk/mono/; revision=119476
2008-11-20 17:51:05 +00:00
Jonathan Pobst e2628e6080 2008-11-20 Jonathan Pobst <[email protected]>
* ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
	invalid value.  Just return null for the Image, and use the ImageList's
	ImageSize for calculations.

2008-11-20  Jonathan Pobst  <[email protected]>

	* ToolStripItemTest.cs: Add test to ensure we don't crash when
	ImageIndex refers to a non-existant index.

svn path=/trunk/mcs/; revision=119468
2008-11-20 17:03:50 +00:00
Marek Safar ecf3753e74 Update after CurrentBlock optimization
svn path=/trunk/mcs/; revision=119453
2008-11-20 16:07:49 +00:00
Marek Safar 179a692721 2008-11-20 Marek Safar <[email protected]>
* iterators.cs, ecore.cs: Removed CurrentBlock statement.


svn path=/trunk/mcs/; revision=119451
2008-11-20 16:07:10 +00:00
Jonathan Pobst b8513623b0 2008-11-20 Jonathan Pobst <[email protected]>
* ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
	through DroppedDown so the proper events get called and state gets reset.
	[Fixes bug #446805]

svn path=/trunk/mcs/; revision=119450
2008-11-20 16:06:34 +00:00
Zoltan Varga 4bfbee26e1 2008-11-20 Zoltan Varga <[email protected]>
* arm/Makefile.am (libmonoarch_arm_la_SOURCES): Don't build tramp.c, it is only
	used by the interpreter.

svn path=/trunk/mono/; revision=119444
2008-11-20 14:28:51 +00:00
Rodrigo Kumpera 4daab55662 2008-11-20 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Added OP_EXTRACTX_U2, OP_INSERTX_U1_SLOW.

	* cpu-x86.md: Same.

	* mini-x86.c (mono_arch_output_basic_block): Same.

	* simd-intrinsics.c (simd_intrinsic_emit_setter): Add support for Vector16b.

svn path=/trunk/mono/; revision=119442
2008-11-20 14:12:06 +00:00
Rodrigo Kumpera bdfb20e1fb 2008-11-20 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add PEXTR B/W/D.

svn path=/trunk/mono/; revision=119441
2008-11-20 14:12:04 +00:00
Jb Evain c3cbc503b9 2008-11-20 Jb Evain <[email protected]>
* AssemblyInfo.cs: sign using winfx.pub on NET_2_1.


svn path=/trunk/mcs/; revision=119440
2008-11-20 14:09:16 +00:00
Jb Evain 85e2d21ceb 2008-11-20 Jb Evain <[email protected]>
* Assembly/AssemblyInfo.cs: sign with winfx.pub on NET_2_1.


svn path=/trunk/mcs/; revision=119439
2008-11-20 14:08:51 +00:00
Jb Evain f52faa0c63 plop
svn path=/trunk/mcs/; revision=119438
2008-11-20 13:17:17 +00:00
Jb Evain 9dc09d9cf8 2008-11-20 Jb Evain <[email protected]>
* Makefile: simplify Makefile and tune System.Xml.Linq.


svn path=/trunk/mcs/; revision=119436
2008-11-20 13:15:41 +00:00
Jb Evain 6b11580fe2 2008-11-20 Jb Evain <[email protected]>
* Makefile: add System.Xml.Linq to the net_2_1 build.


svn path=/trunk/mcs/; revision=119435
2008-11-20 13:11:12 +00:00
Jb Evain 0058cfe975 2008-11-20 Jb Evain <[email protected]>
* Enumerable.cs (Any): optimize if we're operating on an ICollection.


svn path=/trunk/mcs/; revision=119433
2008-11-20 12:57:59 +00:00
Jb Evain eda8d0a80e add System.Xml.Linq api descriptor
svn path=/trunk/mcs/; revision=119432
2008-11-20 12:41:50 +00:00
Jb Evain 6691b3d437 in .:
2008-11-19  Jb Evain  <[email protected]>

	* net_2_1_raw_System.Xml.Linq.dll.sources: added
	* Makefile: add support to build System.Xml.Linq on net_2_1.

in System.Xml.Linq:
2008-11-19  Jb Evain  <[email protected]>

	* XNodeReader: build on NET_2_1.


svn path=/trunk/mcs/; revision=119431
2008-11-20 12:34:49 +00:00
Jb Evain 3be8af87b7 2008-11-20 Jb Evain <[email protected]>
* TypeConverter_2_1.cs: update to SL2 api.


svn path=/trunk/mcs/; revision=119430
2008-11-20 12:12:59 +00:00
Miguel de Icaza 74b9439949 Add DataConverter tests
svn path=/trunk/mcs/; revision=119422
2008-11-20 07:20:24 +00:00
Raja R Harinath f76dcea883 Remove unnecessary rebuilds of the html directory
* docs.make (monoapi.zip): Make slightly more unforgiving, by
using '&&' instead of ';' to sequence commands.
(mono-tools.zip, mono-file-formats.zip): Likewise.
* Makefile.am (monoapi.zip, mono-tools.zip, mono-fileformats.zip):
Likewise.
(convert.exe): Don't depend on Makefile.am or docs.make.

svn path=/trunk/mono/; revision=119413
2008-11-20 03:45:37 +00:00
Marek Habersack b28c8ab425 2008-11-20 Marek Habersack <[email protected]>
* ListView.cs: implemented the EditItem property.
	Use ConvertEmptyStringToNull in ExtractItemValues.

2008-11-20  Marek Habersack  <[email protected]>

	* ListViewTest.cs: added tests for several properties.

svn path=/trunk/mcs/; revision=119405
2008-11-20 02:09:18 +00:00
Zoltan Varga bf24c8634c 2008-11-20 Zoltan Varga <[email protected]>
* pinvoke2.cs: Add a test for passing/receiving generic struct instances.

svn path=/trunk/mono/; revision=119398
2008-11-20 00:17:26 +00:00
Zoltan Varga 786a32f90e 2008-11-20 Zoltan Varga <[email protected]>
* marshal.c: Add support for MONO_TYPE_GENERICINST to some functions.
	Fixes #444715. Fix a warning.

svn path=/trunk/mono/; revision=119397
2008-11-20 00:16:49 +00:00
Zoltan Varga 9c3b1a0aed 2008-11-20 Zoltan Varga <[email protected]>
* stackframes-async.2.cs: Add a test for #444383.

svn path=/trunk/mono/; revision=119395
2008-11-19 23:53:37 +00:00
Zoltan Varga e0c7630433 2008-11-20 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_find_jit_info): Avoid reading random
	values from the LMF. Fixes #444383.

svn path=/trunk/mono/; revision=119394
2008-11-19 23:53:10 +00:00
Zoltan Varga c11df0a74a 2008-11-20 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Add locking.

svn path=/trunk/mono/; revision=119393
2008-11-19 23:46:38 +00:00
Rodrigo Kumpera 5d0f0446a4 2008-11-19 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c: Implement setter for Vector8us.

svn path=/trunk/mono/; revision=119382
2008-11-19 21:50:14 +00:00
Jonathan Pryor 6abd0aa9a9 * Mono.Documentation/monodocer.cs: Add the assembly's directory to
Cecil's BaseAssemblyResolver search list so that assemblies in the
	  same directory as the assembly we're processing can be found.
	  Allows mono-tools/gendarme to be built with a Cecil-using mdoc.

svn path=/trunk/mcs/; revision=119380
2008-11-19 21:45:58 +00:00
Gonzalo Paniagua Javier 464ff6edc4 2008-11-19 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationManager.cs: don't keep configuration sections for
	files that don't exist on disk.
	Bug #443569 fixed.


svn path=/trunk/mcs/; revision=119378
2008-11-19 21:31:17 +00:00
Marek Habersack 66c1953e77 2008-11-19 Marek Habersack <[email protected]>
* ListView.cs: added paremeter checks to AddControlToContainer.
	CreateInsertItem must instantiate the template and call raise the
	ItemCreated event.
	Added parameter checks to FindPlaceholder

2008-11-19  Marek Habersack  <[email protected]>

	* AssemblyInfo.cs: made System.Web.Extensions_test_net_2_0 a
	friend assembly.

2008-11-19  Marek Habersack  <[email protected]>

	* EventRecorder.cs: class is now serializable.

	* ListViewTest.cs: use system.web Mainsoft test framework.
	ListViewPoker is now able to record events.
	Added wrappers for ListView protected methods to ListViewPoker,
	Added two simple test ITemplate classes.
	Added tests for initial values.
	Added tests for all the methods which can be tested in a simple
	way, without using a real asp.net page.
	Added test for the Edit functionality.

2008-11-19  Marek Habersack  <[email protected]>

	* CountryCollection.cs, Country.cs: added

2008-11-19  Marek Habersack  <[email protected]>

	* ListViewTest.aspx, ListViewSort.aspx, Web.mono.config: added

2008-11-19  Marek Habersack  <[email protected]>

	* Makefile (NUNIT_RESOURCE_FILES): added

	* System.Web.Extensions_test.dll.sources: added the system.web
	Mainsoft test suite files.
	Added new test files.

svn path=/trunk/mcs/; revision=119375
2008-11-19 21:13:22 +00:00
Zoltan Varga 4fd35391d4 2008-11-19 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Emit correct location info
	for dead variables.

svn path=/trunk/mono/; revision=119367
2008-11-19 20:05:08 +00:00
Raja R Harinath 149e984c82 Fix srcdir != builddir, and add idiom for multi-output commands
* docs.make (monoapi.zip): Handle the case where 'monoapi.tree'
exists but 'monoapi.zip' doesn't.  IOW, we should rebuild
monoapi.zip with 'rm monoapi.zip; make'.
(mono-tools.zip, mono-file-formats.zip): Likewise.
* Makefile.am (monoapi.zip, mono-tools.zip, mono-fileformats.zip): Likewise.
(monoapi.tree): Don't use $< in an explicit rule.
(mono-tools.tree, mono-file-formats.tree): Likewise.

svn path=/trunk/mono/; revision=119361
2008-11-19 18:37:59 +00:00
Andreia Gaita 45ecca53d6 * Mono.Mozilla/DOM/Node.cs, Mono.Mozilla/DOM/Window.cs: Fix comparison operators
2008-11-19  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=119360
2008-11-19 18:30:01 +00:00
Marek Safar 877c5a3592 2008-11-19 Marek Safar <[email protected]>
* eval.cs, location.cs, driver.cs (Location.SourceFiles): Turned
	into real property (saves 8 MB for corlib compilation).


svn path=/trunk/mcs/; revision=119359
2008-11-19 18:20:11 +00:00
Marek Safar ad0be82b5b 2008-11-19 Marek Safar <[email protected]>
* MonoSymbolWriter.cs, MonoSymbolTable.cs: Change always boxed
	value type LineNumberEntry to class. It saves 19MB for corlib
	compilation.


svn path=/trunk/mcs/; revision=119357
2008-11-19 18:16:47 +00:00
Paolo Molaro 83a91ac81f Wed Nov 19 18:27:41 CET 2008 Paolo Molaro <[email protected]>
* mini-ppc.c: remove references to the red zone in the prolog
	(for systems that don't support it).


svn path=/trunk/mono/; revision=119352
2008-11-19 17:37:17 +00:00
Jb Evain 3f5524d8ed 2008-11-19 Jb Evain <[email protected]>
* Expression.cs: protect against open generic methods.


svn path=/trunk/mcs/; revision=119350
2008-11-19 17:29:25 +00:00
Marek Safar 409ebb6a2e 2008-11-19 Marek Safar <[email protected]>
* generic.cs, lambda.cs, linq.cs, iterators.cs, anonymous.cs,
	nullable.cs, expression.cs, statement.cs, ecore.cs, cs-parser.jay
	generic-mcs.cs: Small cleanup of TypeArguments.


svn path=/trunk/mcs/; revision=119324
2008-11-19 16:09:41 +00:00
Mark Probst 7e3a122d8c 2008-11-19 Mark Probst <[email protected]>
* cpu-ppc64.md: Fixed a few instruction lengths.

	* mini-ppc64.c: Don't emit SETLRET.  Now PPC64 passes
	basic-float.exe.

svn path=/trunk/mono/; revision=119314
2008-11-19 15:09:00 +00:00
Jonathan Pryor 27af1b9fa4 * configure.in: Remove mono/monoburg/Makefile; fixes the build.
svn path=/trunk/mono/; revision=119309
2008-11-19 14:26:32 +00:00
Mark Probst 06a59583cc 2008-11-19 Mark Probst <[email protected]>
* mini-ppc64.c, cpu-ppc64.md: Fixed some opcodes.  PPC64 passes
	basic.exe now.

svn path=/trunk/mono/; revision=119308
2008-11-19 14:25:46 +00:00
Jonathan Pryor b084e26b24 * Makefile.am (EXTRA_DIST): Add mono-file-formats{.config,.source} and
mono-tools{.config,.source} (fixes the build).

svn path=/trunk/mono/; revision=119303
2008-11-19 13:08:15 +00:00
Paolo Molaro f98867baa3 Remove monoburg, it's not used anymore.
svn path=/trunk/mono/; revision=119292
2008-11-19 11:22:57 +00:00
Paolo Molaro de019ebc2e Header checks.
svn path=/trunk/mono/; revision=119291
2008-11-19 11:04:11 +00:00
Gonzalo Paniagua Javier 35d2dfcde9 ignore test by now
svn path=/trunk/mcs/; revision=119281
2008-11-19 08:49:13 +00:00
Gonzalo Paniagua Javier cdac72488f 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* ControlBuilder.cs: make sure the binding container container is a
	naming container.


svn path=/trunk/mcs/; revision=119269
2008-11-19 04:06:46 +00:00
Gonzalo Paniagua Javier 23ca4274f8 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: write the full path of the assembly to the .ini file
	created when "shadow-copying"
	Bug #446353 fixed.


svn path=/trunk/mono/; revision=119267
2008-11-19 03:50:18 +00:00
Zoltan Varga 256272ab8e 2008-11-19 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Add more parameter types.

svn path=/trunk/mono/; revision=119261
2008-11-19 02:41:25 +00:00
Jonathan Pryor 217ddc29c4 * docs.make, Makefile.am: Build mono-file-formats{.tree,.zip},
mono-tool{.tree,.zip} files.
	* mono-file-formats.config, mono-tools.config: Alter paths to man
	  pages so that they're valid for building from mono/docs.
	* monoapi.make: Rename to docs.make.

svn path=/trunk/mono/; revision=119255
2008-11-19 02:18:40 +00:00
Jonathan Pryor 7840dd3023 * docs/Makefile: Don't build mono-file-formats.*, mono-tools.*
* docs/mono-file-formats.config, docs/mono-file-formats.source, 
	  docs/mono-tools.config, docs/mono-tools.source: Removed (now located 
	  in mono/docs).

svn path=/trunk/mcs/; revision=119254
2008-11-19 02:13:43 +00:00
Jonathan Pryor ea2c548643 Moving man-page using docs into mono/docs...
svn path=/trunk/mono/; revision=119251
2008-11-19 01:25:37 +00:00
Marek Habersack 49df583968 2008-11-18 Marek Habersack <[email protected]>
* ControlBuilder.cs: make sure no control implementing the
	INonBindingContainer can be returned from BindingContainerType.

svn path=/trunk/mcs/; revision=119233
2008-11-18 22:18:41 +00:00
Rodrigo Kumpera 097fe4acd6 2008-11-18 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Added OP_INSERT_I2.

	* cpu-x86.md: Same.

	* mini-x86.c (mono_arch_output_basic_block): Same.

	* simd-intrinsics.c: Implement setter for Vector8s.

	* simd-methods.h: Add the names of get setters of Vector8s.

svn path=/trunk/mono/; revision=119230
2008-11-18 21:57:00 +00:00
Rodrigo Kumpera 6f500fe1a6 2008-11-18 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add PINSR B/W/D.

svn path=/trunk/mono/; revision=119229
2008-11-18 21:56:58 +00:00
Rodrigo Kumpera c33a1d0d27 2008-11-17 Rodrigo Kumpera <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Use movsd instead of monvups
	in OP_EXTRACT_R8 to avoid possible stack corruption.

svn path=/trunk/mono/; revision=119228
2008-11-18 21:56:50 +00:00
Rodrigo Kumpera 1acd98d873 2008-11-17 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Fix comment about the version of PCMPGTQ.

	* x86/x86-codegen.h: Add movsd constant and x86_sse_alu_sd_membase_reg
	macro.

svn path=/trunk/mono/; revision=119227
2008-11-18 21:56:49 +00:00
Gonzalo Paniagua Javier eb75e457af 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* HttpListener2Test.cs: make sure we dispose the listener.


svn path=/trunk/mcs/; revision=119226
2008-11-18 21:52:27 +00:00
Gonzalo Paniagua Javier 370451c2fe 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs: remove CWL. When reusing, BeginReadRequest might
	throw if the client closes.
	* HttpListenerResponse.cs: close the connection for 1.0 clients.


svn path=/trunk/mcs/; revision=119225
2008-11-18 21:50:44 +00:00
Marek Habersack 54d3e76f8f 2008-11-18 Marek Habersack <[email protected]>
* ListViewContainer.cs: added

	* ListView.cs: 
	Align group with empty items if there are no more data items.
	Each group is contained within ListViewContainer.
	Calculate the number of groups correctly.

2008-11-18  Marek Habersack  <[email protected]>

	* System.Web.Extensions.dll.sources: added
	./System.Web.UI.WebControls/ListViewTableCell.cs
	Added ./System.Web.Query.Dynamic/DynamicClass.cs and
	./System.Web.Query.Dynamic/ParseException.cs	
	Added ./System.Web.UI.WebControls/ListViewContainer.cs

svn path=/trunk/mcs/; revision=119223
2008-11-18 21:40:18 +00:00
Zoltan Varga 0d3a50fcb6 2008-11-18 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Add support for parameters.

svn path=/trunk/mono/; revision=119215
2008-11-18 21:06:13 +00:00
Zoltan Varga 062aa6f421 2008-11-18 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Add support for parameters.

svn path=/trunk/mono/; revision=119214
2008-11-18 21:06:00 +00:00
Zoltan Varga 3a1e0f9d8c 2008-11-18 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Add preliminary support for
	parameters.

svn path=/trunk/mono/; revision=119202
2008-11-18 18:52:50 +00:00
Zoltan Varga b52210a31f 2008-11-18 Zoltan Varga <[email protected]>
* freebsd-dwarf.h: Add dwarf.h header file from freebsd.

svn path=/trunk/mono/; revision=119200
2008-11-18 18:50:10 +00:00
Marek Safar 59bb49a6e3 Flush
svn path=/trunk/mcs/; revision=119198
2008-11-18 18:38:26 +00:00
Raja R Harinath 54a3992ed3 Fix #420862
In class/System.Data/System.Data:
	* XmlConstants.cs (QnUnsignedShort): Rename from QnUsigned short
	and fix the value too.
	* XmlSchemaWriter.cs (XmlQualifiedName): Update to changes.

In class/System.Data/Test/System.Data:
	* DataSetTest.cs (Bug420862): New test.

svn path=/trunk/mcs/; revision=119197
2008-11-18 18:27:40 +00:00
Raja R Harinath 5cef7ae484 A micro-optimization of 'make dist'
* library.make (TEST_FILES): Notice filenames with ../ in the test
sources file, and handle them in a way suitable for the 'make
dist' handling of such files.

svn path=/trunk/mcs/; revision=119196
2008-11-18 18:27:20 +00:00
Gonzalo Paniagua Javier 295e584514 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* cache.cs: avoid infinite loop.


svn path=/trunk/mcs/; revision=119193
2008-11-18 17:46:59 +00:00
Marek Habersack 8479d831ee 2008-11-18 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: 
	Added ./System.Web.Query.Dynamic/DynamicClass.cs and
	./System.Web.Query.Dynamic/ParseException.cs

2008-11-18  Marek Habersack  <[email protected]>

	* DynamicClass.cs: added

	* ParseException.cs: added

svn path=/trunk/mcs/; revision=119168
2008-11-18 16:06:47 +00:00
Zoltan Varga 0acf4f91eb 2008-11-18 Zoltan Varga <[email protected]>
* unwind.h (MonoUnwindOp): Change the 'val' to a signed type.

svn path=/trunk/mono/; revision=119165
2008-11-18 16:01:48 +00:00
Jonathan Pobst 5dfc64881e 2008-11-18 Jonathan Pobst <[email protected]>
* DataGridViewColumnCollection.cs: Make sure we re-index the columns after
	the collection is modified.

2008-11-18  Jonathan Pobst  <[email protected]>

	* DataGridViewColumnCollectionTest.cs: Add test to ensure we re-index
	columns after modifying the collection.

svn path=/trunk/mcs/; revision=119164
2008-11-18 15:41:35 +00:00
Mark Probst 6f3d92f6aa 2008-11-18 Mark Probst <[email protected]>
* ppc/ppc-codegen.h: Macro for nop added.

2008-11-18  Mark Probst  <[email protected]>

	* mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c, cpu-ppc64.md: Changes
	for PPC64.  An empty program runs now.

svn path=/trunk/mono/; revision=119162
2008-11-18 15:32:41 +00:00
Mark Probst 9fab860718 2008-11-18 Mark Probst <[email protected]>
* atomic.h: InterlockedExchangePointer and
	InterlockedCompareExchangePointer for PPC64.

	Code submitted by [email protected] at
	https://bugzilla.novell.com/show_bug.cgi?id=324134 under the
	X11/MIT license.

svn path=/trunk/mono/; revision=119161
2008-11-18 15:16:26 +00:00
Zoltan Varga 05e3c101d7 2008-11-18 Zoltan Varga <[email protected]>
* aot-compiler.c mini.c mini.h: Add a JIT debugging mode modelled after
	a similar mode in Kaffe: When the the MONO_XDEBUG env var is set, debugging
	info for JITted code is emitted into a shared library, loadable into gdb.

svn path=/trunk/mono/; revision=119160
2008-11-18 15:05:15 +00:00
Mark Probst 41ad8cd9ec 2008-11-18 Mark Probst <[email protected]>
* Makefile.am: Changes to build PPC64.

	* mini-arch.h: Include mini-ppc64.h on PPC64.

svn path=/trunk/mono/; revision=119158
2008-11-18 14:23:05 +00:00
Mark Probst da06fe46a8 2008-11-18 Mark Probst <[email protected]>
* include/private/gc_locks.h (test_and_set): The PPC64 case is
	wrong, as it operates on 64 bit values, not on 32 bit ones as the
	function requires.  The PPC32 case is sufficient.

svn path=/trunk/mono/; revision=119156
2008-11-18 14:12:54 +00:00
Marek Safar 4101f5a686 New test.
svn path=/trunk/mcs/; revision=119154
2008-11-18 14:03:53 +00:00
Marek Safar 8df00333e5 2008-11-18 Marek Safar <[email protected]>
* generic.cs, iterators.cs, anonymous.cs, nullable.cs, ecore.cs,
	expression.cs, namespace.cs, generic-mcs.cs, class.cs: Small cleanup
	of ConstructedType expression, renamed to GenericTypeExpr.


svn path=/trunk/mcs/; revision=119153
2008-11-18 14:03:06 +00:00
Mark Probst 9da56a3e60 2008-11-18 Mark Probst <[email protected]>
* mini-ppc64.c, mini-ppc64.h, cpu-ppc64.md: Updated with changes
	in PPC code up to r119147.

svn path=/trunk/mono/; revision=119148
2008-11-18 13:38:59 +00:00
Mark Probst e5bc94a02b 2008-11-18 Mark Probst <[email protected]>
* mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c, exceptions-ppc64.c,
	cpu-ppc64.md: Changes for PPC64.

	Based on code submitted by [email protected] at
	https://bugzilla.novell.com/show_bug.cgi?id=324134 under the
	X11/MIT license.

svn path=/trunk/mono/; revision=119145
2008-11-18 11:33:26 +00:00
Mark Probst 6d83b2bfc1 2008-11-18 Mark Probst <[email protected]>
* mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c, exceptions-ppc64.c,
	cpu-ppc64.md: Copied from the corresponding PPC files from
	r118846.

svn path=/trunk/mono/; revision=119144
2008-11-18 11:22:25 +00:00
Zoltan Varga 655a6f94a1 Hopefully fix the sparc build.
svn path=/trunk/mono/; revision=119143
2008-11-18 11:20:36 +00:00
Zoltan Varga 2c0710f22f 2008-11-18 Zoltan Varga <[email protected]>
* debug-helpers.c (mono_method_full_name): Stringify wrapper types even
	if signature==FALSE.

svn path=/trunk/mono/; revision=119142
2008-11-18 11:17:30 +00:00
Mark Probst c1136e08b3 2008-11-18 Mark Probst <[email protected]>
* ppc/ppc-codegen.h: PPC64 code generation macros.

	Based on code submitted by [email protected] at
	https://bugzilla.novell.com/show_bug.cgi?id=324134 under the
	X11/MIT license.

svn path=/trunk/mono/; revision=119141
2008-11-18 10:25:11 +00:00
Mark Probst 5893e1ad00 2008-11-18 Mark Probst <[email protected]>
* ppc/ppc-codegen.h: A few fixes and additions.

	Based on code submitted by [email protected] at
	https://bugzilla.novell.com/show_bug.cgi?id=324134 under the
	X11/MIT license.

svn path=/trunk/mono/; revision=119140
2008-11-18 10:17:36 +00:00
Gonzalo Paniagua Javier 9bf26ae78e 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* ControlBuilder.cs: find the correct naming container even inside
	user controls. A corner case of bug #445889.


svn path=/trunk/mcs/; revision=119130
2008-11-18 07:16:13 +00:00
Gonzalo Paniagua Javier a0a36f7fd1 revert. found a better fix
svn path=/trunk/mcs/; revision=119129
2008-11-18 07:13:50 +00:00
Gonzalo Paniagua Javier 0f5347e0e0 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: a corner case of the previous bug.


svn path=/trunk/mcs/; revision=119128
2008-11-18 06:33:06 +00:00
Gonzalo Paniagua Javier 11c6d9c570 2008-11-17 Gonzalo Paniagua Javier <[email protected]>
* AspTokenizer.cs: if there's a newline between the opening server tag
	and any other special character, treat the block as a code-render
	block.
	Bug #445889 fixed.


svn path=/trunk/mcs/; revision=119126
2008-11-18 04:14:41 +00:00
Marek Habersack bfa1034dd0 2008-11-18 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	./System.Web.UI.WebControls/ListViewTableCell.cs

2008-11-18  Marek Habersack  <[email protected]>

	* ListView.cs: implemented grouping support. With this ListView is
	feature complete.
	Refactored grouped/non-grouped rendering common code into separate
	methods.
	FindPlaceholder now looks for the placeholder recursively.
	Implemented forgotten UpdateItem method.

	* ListViewTableCell.cs: added

svn path=/trunk/mcs/; revision=119125
2008-11-18 03:17:44 +00:00
Miguel de Icaza 8bf52d0e97 2008-11-17 Chris Howie <[email protected]>
* DataConverter.cs: Fix alignment for strings when the
	natural-alignment parameter is used '!'.   

	Disables CLS errors when not compiling with the CLS flag.
	
	Fixes #445867

svn path=/trunk/mcs/; revision=119122
2008-11-18 01:05:32 +00:00
Scott Thomas f4164d2fbd 2008-11-18 Scott Peterson <[email protected]>
These changes are made under the MIT/X11 license

	* mini-ops.h: Added OP_ROUND.

	* cpu-x86.md: Added round.

	* mini-x86.c: Added support for intrinsicing Math.Round 
(double).

	* basic-math.cs: Added test_0_round to test rounding.


svn path=/trunk/mono/; revision=119105
2008-11-17 22:48:43 +00:00
Bill Holmes f53e3f4d3d 2008-11-17 Bill Holmes <[email protected]>
* aot-compiler.c : Fix the Winx64 build.

	Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=119094
2008-11-17 22:12:52 +00:00
Gonzalo Paniagua Javier e36b6625b9 2008-11-17 Gonzalo Paniagua Javier <[email protected]>
* SmtpClient.cs: remove unused variable and obsolete comment.


svn path=/trunk/mcs/; revision=119084
2008-11-17 19:47:45 +00:00
Bill Holmes a99118d3e9 2008-11-17 Bill Holmes <[email protected]>
* marshal.h : Fix the cygwin build.
	   marshal.c:12442: undefined reference to `_IID_IMarshal'
	  
	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=119081
2008-11-17 19:01:42 +00:00
Rodrigo Kumpera 43b32870b2 2008-11-17 Rodrigo Kumpera <[email protected]>
* FieldInfoTest.cs: Test FieldInfo::GetValue on a constant of an open
	generic type.

svn path=/trunk/mcs/; revision=119077
2008-11-17 18:51:40 +00:00
Rodrigo Kumpera 4365f6a42a 2008-11-17 Rodrigo Kumpera <[email protected]>
* MonoField.cs (GetValue): Don't check for open generic types if the field
	is a constant.

svn path=/trunk/mcs/; revision=119076
2008-11-17 18:51:04 +00:00
Andreia Gaita cfec84e086 * Makefile: Remove uneeded win32-specific hack
2008-11-17  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=119067
2008-11-17 18:15:09 +00:00
Jonathan Pobst 44140b335c 2008-11-17 Jonathan Pobst <[email protected]>
* DomainUpDown.cs: Remove string cache and reflection optimizations.  They
	aren't always correct, and fixing them for every case is not worth the
	negligible benefit they provide.
	[Fixes bug #445713]

svn path=/trunk/mcs/; revision=119066
2008-11-17 18:13:44 +00:00
Bill Holmes c88bc80def 2008-11-17 Bill Holmes <[email protected]>
* marshal.h : cominterop_ccw_getfreethreadedmarshaler added to return the
	  free threaded marshaler when QueryInterface is called on a COM callable
	  wrapper requesting the IMarshal interface.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=119064
2008-11-17 17:52:48 +00:00
Jonathan Pobst 455f276972 2008-11-17 Jonathan Pobst <[email protected]>
* DataGridView.cs: We should never add actual cells to the RowTemplate.
	Internally, use RowTemplateFull to give us a new row with cells.
	* DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
	* DataGridViewRowCollection.cs: Use RowTemplateFull.

2008-11-17  Jonathan Pobst  <[email protected]>

	* DataGridViewTest.cs: Add a test showing how RowTemplate works.

svn path=/trunk/mcs/; revision=119060
2008-11-17 17:06:24 +00:00
Rodrigo Kumpera f65d973bbe 2008-11-17 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Added OP_EXTRACT_R8/I8.

	* cpu-x86.md: Added extract_r8.

	* mini-x86.c (mono_arch_output_basic_block): Emmit OP_EXTRACT_R8.

	* mini-x86.c: Added mono_arch_decompose_long_opts to break OP_EXTRACT_I8 into
	a couple of OP_EXTRACT_I4.

	* mini-x86.h: Define MONO_ARCH_HAVE_DECOMPOSE_LONG_OPTS if simd is enabled.

	* simd-intrinsics.c: Implement getters for Vector2l/2ul/2d.

svn path=/trunk/mono/; revision=119058
2008-11-17 17:00:24 +00:00
Rodrigo Kumpera 5d3c626e02 2008-11-17 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add X86_SSE_MOVHPD_MEMBASE_REG constant
	and x86_sse_alu_pd_membase_reg/x86_sse_alu_membase_reg macros.

svn path=/trunk/mono/; revision=119057
2008-11-17 17:00:22 +00:00
Marek Safar 97a6417beb Flush
svn path=/trunk/mcs/; revision=119041
2008-11-17 15:52:16 +00:00
Marek Safar 7e2affff74 2008-11-17 Marek Safar <[email protected]>
A test for bug #445303


svn path=/trunk/mcs/; revision=119039
2008-11-17 15:39:31 +00:00
Marek Safar 24d243e221 2008-11-17 Marek Safar <[email protected]>
A fix for bug #445303
	* location.cs (IsConditionalDefined): Handle undefined global
	defines.


svn path=/trunk/mcs/; revision=119038
2008-11-17 15:38:57 +00:00
Gonzalo Paniagua Javier 9f5425dccb 2008-11-17 Gonzalo Paniagua Javier <[email protected]>
* HttpListener2Test.cs: (CreateNS) set a default read/write timeout
	of 5s.


svn path=/trunk/mcs/; revision=119033
2008-11-17 15:30:53 +00:00
Marek Safar 02cb858f5c 2008-11-17 Marek Safar <[email protected]>
A test for bug #444678


svn path=/trunk/mcs/; revision=119029
2008-11-17 14:46:26 +00:00
Marek Safar 32d9369295 2008-11-17 Marek Safar <[email protected]>
A fix for bug #444678
	* expression.cs (TryReduceConstant): Always create new constant
	instance.


svn path=/trunk/mcs/; revision=119027
2008-11-17 14:44:17 +00:00
Rodrigo Kumpera e78284f810 2008-11-17 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (vector2l_intrinsics): CompareGreaterThan requires sse 4.2
	and not 4.1.

svn path=/trunk/mono/; revision=119024
2008-11-17 14:15:59 +00:00
Rodrigo Kumpera 4574d539be 2008-11-17 Rodrigo Kumpera <[email protected]>
* Vector2l.cs (CompareGreaterThan): This method requires sse 4.2
	and 4.1.

svn path=/trunk/mcs/; revision=119023
2008-11-17 14:16:03 +00:00
Rodrigo Kumpera d80567d3f1 2008-11-17 Rodrigo Kumpera <[email protected]>
* SimdRuntime.cs (MethodAccelerationMode): Add MethodInfo
	overload.

svn path=/trunk/mcs/; revision=119022
2008-11-17 14:16:02 +00:00
Carlos Alberto Cortez f4ba3a50a9 2008-11-17 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: Forms without borders should be able to change its
	size - specially they should be able to be maximized, adding the
	respective MotifFunctions.Resize bit when setting window properties as
	well as *not* marking the Hwnd as size fixed.
	Fixes #444347.


svn path=/trunk/mcs/; revision=119020
2008-11-17 13:53:59 +00:00
Marek Safar 3a3b8bec96 2008-11-17 Marek Safar <[email protected]>
A test for bug #444673
	

svn path=/trunk/mcs/; revision=119015
2008-11-17 13:18:40 +00:00
Marek Safar f0b012b9d1 2008-11-17 Marek Safar <[email protected]>
A fix for bug #444673
	* ecore.cs: Ignore open generic types when used as generic type
	instance fields.


svn path=/trunk/mcs/; revision=119014
2008-11-17 13:18:20 +00:00
Zoltan Varga 2b456aad3b 2008-11-17 Zoltan Varga <[email protected]>
* method-to-ir.c (handle_delegate_ctor): Emit the address of the delegate
	trampoline as an AOT const of the proper type instead of MONO_PATCH_INFO_ABS.

	* mini.c (mono_codegen): Remove the handling of delegate trampolines, they
	are not needed any more.

svn path=/trunk/mono/; revision=119013
2008-11-17 13:14:49 +00:00
Marek Safar 0b06cbeb3e New test.
svn path=/trunk/mcs/; revision=119012
2008-11-17 13:00:32 +00:00
Marek Safar d5c5bcab1c 2008-11-17 Marek Safar <[email protected]>
A fix for bug #445458
	* expression.cs, cs-parser.jay: Don't crash when an expression
	statement is null.


svn path=/trunk/mcs/; revision=119011
2008-11-17 13:00:15 +00:00
Zoltan Varga 7b39f71478 2008-11-17 Zoltan Varga <[email protected]>
* mini.h: Remove the unused INS_LIST macros.

svn path=/trunk/mono/; revision=119010
2008-11-17 12:48:44 +00:00
Zoltan Varga 7a9554ec70 2008-11-17 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Remove a disable globalra case which is no
	longer needed.

svn path=/trunk/mono/; revision=119009
2008-11-17 12:42:08 +00:00
Raja R Harinath 9d0c64bbfd Avoid allocating empty arrays.
* Index.cs (empty): New empty array constant.
(Reset): Initialize '_array' to 'empty'.
(RebuildIndex): Don't allocate array if it will be empty.
(FindAllIndexes): Use 'empty' instead of 'new int [0]'.

svn path=/trunk/mcs/; revision=119008
2008-11-17 12:30:45 +00:00
Raja R Harinath 7b06496296 Simplify using some invariants
* Index.cs: Remove use of Array and Size properties by taking
advantage of the invariant that _array is never null.
(EnsureArray): Remove.
(Array): Remove.

svn path=/trunk/mcs/; revision=119007
2008-11-17 12:30:27 +00:00
Raja R Harinath 9ab60f6e52 * RecordCache.cs: Reduce some extraneous nesting.
svn path=/trunk/mcs/; revision=119006
2008-11-17 12:30:09 +00:00
Raja R Harinath 34779ceef2 formatting fixes
svn path=/trunk/mcs/; revision=119005
2008-11-17 12:29:51 +00:00
Marek Safar 64bd90745f 2008-11-17 Marek Safar <[email protected]>
A test for bug #445464


svn path=/trunk/mcs/; revision=119004
2008-11-17 12:25:39 +00:00
Marek Safar 378726603c 2008-11-17 Marek Safar <[email protected]>
A fix for bug #445464
	* expression.cs, cs-parser.jay: Fixed typeof of non-generic type
	inside unbound type.


svn path=/trunk/mcs/; revision=119003
2008-11-17 12:25:21 +00:00
Zoltan Varga 83f2e016f6 Hopefully fix the PPC build.
svn path=/trunk/mono/; revision=118996
2008-11-17 12:05:36 +00:00
Zoltan Varga 3fe9891052 2008-11-17 Zoltan Varga <[email protected]>
* *.h *.c: Remove duplicate MonoInst emission macros, use the ones in
	ir-emit.h.

svn path=/trunk/mono/; revision=118986
2008-11-17 02:28:19 +00:00
Raja R Harinath 5a73c25671 update known-issues-smcs
svn path=/trunk/mcs/; revision=118984
2008-11-17 02:16:51 +00:00
Zoltan Varga d0e63e6351 2008-11-17 Zoltan Varga <[email protected]>
* regalloc.h *.c: Remove references to mono_regstate_next_int (), use
	mono_alloc_ireg () instead.

svn path=/trunk/mono/; revision=118983
2008-11-17 02:15:07 +00:00
Zoltan Varga c2c3e4f19e 2008-11-17 Zoltan Varga <[email protected]>
* mini-<ARCH>.c: Include ir-emit.h. Remove duplicate MonoInst emission
	macros.

svn path=/trunk/mono/; revision=118982
2008-11-17 01:07:28 +00:00
Zoltan Varga aaebee7696 Fix ia64 build.
svn path=/trunk/mono/; revision=118981
2008-11-17 01:03:39 +00:00
Zoltan Varga f4cf64075f 2008-11-17 Zoltan Varga <[email protected]>
* mini-amd64.c (emit_load_volatile_arguments): Removed, not needed
	on amd64.

svn path=/trunk/mono/; revision=118980
2008-11-17 01:01:47 +00:00
Zoltan Varga 65a5574248 2008-11-17 Zoltan Varga <[email protected]>
* aot-runtime.c (load_aot_module): Disable AOT when running under
	CAS.

svn path=/trunk/mono/; revision=118979
2008-11-17 00:55:30 +00:00
Zoltan Varga 921d7e52fe 2008-11-17 Zoltan Varga <[email protected]>
* mini-amd64.h: Change the monitor fastpath defines to check for
	!PLATFORM_WIN32 so they work on *bsd too.

svn path=/trunk/mono/; revision=118977
2008-11-17 00:33:58 +00:00
Zoltan Varga ce02e4bd47 2008-11-17 Zoltan Varga <[email protected]>
* mini.h mini.c mini-hhpa.c: Remove more unused code.

svn path=/trunk/mono/; revision=118976
2008-11-17 00:30:48 +00:00
Zoltan Varga b64daa93b3 2008-11-17 Zoltan Varga <[email protected]>
* mini-s390.c mini-s390x.c: Remove !cfg->new_ir code.

	* mini.h (MonoCompile): Remove new_ir flag.

svn path=/trunk/mono/; revision=118975
2008-11-17 00:22:57 +00:00
Zoltan Varga a6704a645a 2008-11-17 Zoltan Varga <[email protected]>
* regalloc.h regalloc.c: Remove unused code.

svn path=/trunk/mono/; revision=118974
2008-11-17 00:17:02 +00:00
Zoltan Varga 55d1b116d5 2008-11-17 Zoltan Varga <[email protected]>
* cpu-*.md: Remove more unused opcodes.

svn path=/trunk/mono/; revision=118970
2008-11-16 23:58:09 +00:00
Zoltan Varga 683873d463 2008-11-17 Zoltan Varga <[email protected]>
* simple-cee-ops.h simple-mini-ops.h: Removed.

svn path=/trunk/mono/; revision=118969
2008-11-16 23:55:10 +00:00
Zoltan Varga 1fc30721db 2008-11-17 Zoltan Varga <[email protected]>
* simple-cee-ops.h simple-mini-ops.h: Removed.

	* mini-ops.h *.c cpu-<ARCH>.md: Remove more unused opcodes.

svn path=/trunk/mono/; revision=118968
2008-11-16 23:54:42 +00:00
Zoltan Varga 21efb70919 2008-11-17 Zoltan Varga <[email protected]>
* aliasing.h: Removed.

	* *.c: Remove references to aliasing.h and inssel.h.

	* mini.c: Remove additional unused functions.

	* mini-ops.h cpu-*.md: Remove unused opcodes.

svn path=/trunk/mono/; revision=118967
2008-11-16 23:30:53 +00:00
Zoltan Varga 0a34521fdb 2008-11-16 Zoltan Varga <[email protected]>
Remove the old JIT code.

	* inssel*.brg: Removed.

	* ssa.c abcremoval.c aliasing.c: Removed.

	* ssa2.c: Renamed to ssa.c.

	* abcremoval2.c: Renamed to abcremoval.c.

	* *.c: Removed all !cfg->new_ir code.

	* mini-<ARCH>.c: Removed mono_arch_call_opcode (), 
	mono_arch_emit_this_vret_args (), and mono_arch_get_inst_for_method ().

	* mini.c: Removed the old mono_method_to_ir () and all the code used by it.

svn path=/trunk/mono/; revision=118965
2008-11-16 22:53:12 +00:00
Jonathan Pryor 80e6bf91dd * Mono.Documentation/dump.cs: Rewrite to be a MDocCommand subclass.
* Mono.Documentation/mdoc.cs: Add dump-tree command which can be used
	  to dump the contents of assemble-generated .tree files.
	* mdoc.exe.sources: Add Mono.Documentation/dump.cs to the build.

svn path=/trunk/mcs/; revision=118963
2008-11-16 19:35:46 +00:00
Sebastien Pouliot cec3766271 Mono.Cecil/TypeDefinition.cs (IsValueType): Inline the call to IsEnum and remove the double null check being done.
svn path=/trunk/mcs/; revision=118962
2008-11-16 18:35:56 +00:00
Zoltan Varga f20976daca Fix the x86 build.
svn path=/trunk/mono/; revision=118957
2008-11-16 11:20:38 +00:00
Jonathan Pryor cad1d3deca * Documentation/en/**: Flush; changes due to mdoc-update
Reflection->Cecil migration.  Changes include:
	  - Alphabetical ordering of custom attributes (these used to be in
	    Reflection order, and Cecil uses a different ordering, so just
	    sort them now).
	  - Closer documentation mapping to source code (e.g. `class Foo :
	    ICollection<Bar>, IEnumerable<Bar>` now adds IEnumerable<Bar> as
	    an interface).
	  - Some method have been removed (presumably because the source was
	    altered since the last time `make doc-update` was run).

svn path=/trunk/mcs/; revision=118950
2008-11-16 02:14:36 +00:00
Jonathan Pryor 4761676084 * Mono.Documentation/monodocer.cs: Properties on interfaces shouldn't
have `abstract' on them.
	* Test/DocTest-v1.cs: Add a property to an interface to check above.
	* Test/en.expected.importslashdoc/Mono.DocTest/Widget+IMenuItem.xml,
	  Test/en.expected.since/Mono.DocTest/Widget+IMenuItem.xml,
	  Test/en.expected/Mono.DocTest/Widget+IMenuItem.xml,
	  Test/html.expected/Mono.DocTest/Widget+IMenuItem.html,
	  Test/msxdoc-expected.importslashdoc.xml: Flush.

svn path=/trunk/mcs/; revision=118949
2008-11-16 02:02:59 +00:00
Jonathan Pryor 2e5f321bfd * Mono.Documentation/monodocer.cs: Fix regressions found from
`make doc-update` in corlib:
	  - Ensure that custom attributes are sorted (they weren't before,
	    resulting in spurious differences between Reflection & Cecil
	    output).
	  - CecilExtensions.GetMethod() should return null if the method can't
	    be found.
	  - DocUtils.IsDelegate() should ensure that the delegate type isn't
	    abstract (otherwise it dies on System.MulticastDelegate, which is
	    an abstract type lacking an "Invoke" method).
	  - Properly count generic argument counts for nested types (fixes IOE
	    from S.C.G.Dictionary`2.KeyCollection.Enumerator).
	* Test/DocTest-v1.cs: Add doubly-nested class under a generic class to
	  simulate S.C.G.Dictionary`2.KeyCollection.Enumerator behavior.
	* Test/en.expected.importslashdoc/index.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest.Generic/GenericBase`1+NestedCollection+Enumerator.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest.Generic/GenericBase`1+NestedCollection.xml,
	  Test/en.expected.since/index.xml,
	  Test/en.expected.since/Mono.DocTest.Generic/GenericBase`1+NestedCollection+Enumerator.xml,
	  Test/en.expected.since/Mono.DocTest.Generic/GenericBase`1+NestedCollection.xml,
	  Test/en.expected/index.xml,
	  Test/en.expected/Mono.DocTest.Generic/GenericBase`1+NestedCollection+Enumerator.xml,
	  Test/en.expected/Mono.DocTest.Generic/GenericBase`1+NestedCollection.xml,
	  Test/html.expected/index.html,
	  Test/html.expected/Mono.DocTest.Generic/GenericBase`1+NestedCollection+Enumerator.html,
	  Test/html.expected/Mono.DocTest.Generic/GenericBase`1+NestedCollection.html,
	  Test/html.expected/Mono.DocTest.Generic/index.html,
	  Test/msxdoc-expected.importslashdoc.xml: Flush (new types/changes
	  from DocTest-v1.cs changes).

svn path=/trunk/mcs/; revision=118948
2008-11-16 01:43:24 +00:00
Zoltan Varga b133dcdb6f 2008-11-16 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Emit most of the non-table data in a structure
	to simplify the code and cut back on the number of global symbols in the AOT
	file.

svn path=/trunk/mono/; revision=118947
2008-11-16 00:06:00 +00:00
Zoltan Varga 788f4eabec 2008-11-16 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Get rid of the unused plt_jump_table.

svn path=/trunk/mono/; revision=118946
2008-11-15 23:24:23 +00:00
Zoltan Varga 6f95e6fe81 2008-11-15 Zoltan Varga <[email protected]>
* aot-runtime.c aot-compiler.c: Unify the plt_jump_table/plt_info tables
	with the got/got_info tables.

	* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=118945
2008-11-15 22:54:49 +00:00
Zoltan Varga 038b2d38eb 2008-11-15 Zoltan Varga <[email protected]>
* unwind.h: New file, contains definitions for stack unwinding.

	* mini.c (mono_emit_unwind_op): New helper function to append an unwind op
	to cfg->unwind_ops.
	
	* aot-compiler.c: Generalize the emitting of unwind information to use the
	information in cfg->unwind_ops.

	* mini-amd64.c (mono_arch_emit_prolog): Emit unwind info.

svn path=/trunk/mono/; revision=118943
2008-11-15 20:36:23 +00:00
Zoltan Varga ce63fc1b8f 2008-11-15 Zoltan Varga <[email protected]>
* unwind.h: New file, contains definitions for stack unwinding.

	* mini.c (mono_emit_unwind_op): New helper function to append an unwind op
	to cfg->unwind_ops.
	
	* aot-compiler.c: Generalize the emitting of unwind information to use the
	information in cfg->unwind_ops.

	* mini-amd64.c (mono_arch_emit_prolog): Emit unwind info.

svn path=/trunk/mono/; revision=118942
2008-11-15 20:36:11 +00:00
Zoltan Varga be02440528 2008-11-15 Zoltan Varga <[email protected]>
* unwind.h: New file, contains definitions for stack unwinding.

	* mini.c (mono_emit_unwind_op): New helper function to append an unwind op
	to cfg->unwind_ops.
	
	* aot-compiler.c: Generalize the emitting of unwind information to use the
	information in cfg->unwind_ops.

	* mini-amd64.c (mono_arch_emit_prolog): Emit unwind info.

svn path=/trunk/mono/; revision=118941
2008-11-15 20:35:59 +00:00
Kornél Pál b855d161ac Convert.cs: Removed useless check from ToChar (ushort).
svn path=/trunk/mcs/; revision=118940
2008-11-15 18:53:24 +00:00
Gonzalo Paniagua Javier 6814304afb 2008-11-15 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationManager.cs: the config file name is arbitrary.
	(Standalone test t46)


svn path=/trunk/mcs/; revision=118939
2008-11-15 18:12:19 +00:00
Gonzalo Paniagua Javier a5ceae5e8f typo
svn path=/trunk/mcs/; revision=118938
2008-11-15 18:03:36 +00:00
Zoltan Varga 9a9fd1991c Remove a debug printf.
svn path=/trunk/mono/; revision=118937
2008-11-15 17:19:49 +00:00
Zoltan Varga fa918fff34 2008-11-15 Zoltan Varga <[email protected]>
* aot-compiler.c: Emit dwarf unwind information so gdb can unwind through
	AOT method frames. Enable writing symbols for methods by default.

svn path=/trunk/mono/; revision=118936
2008-11-15 17:19:08 +00:00
Paolo Molaro 39bba2e750 Build fix.
svn path=/trunk/mono/; revision=118928
2008-11-15 14:03:15 +00:00
Gert Driesen 2dcef460e7 * SettingPropertyValue.cs: Do not return null for zero-length String
value.

svn path=/trunk/mcs/; revision=118927
2008-11-15 13:41:35 +00:00
Andreas Färber 36e9b1ba17 2008-11-15 Andreas Faerber <[email protected]>
* ppc/test.c: Add support for Mac OS X.

	This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=118924
2008-11-15 10:59:47 +00:00
Marek Habersack 3486292d5a 2008-11-15 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	System.Web.UI.WebControls/DataPagerCommandEventArgs.cs

2008-11-15  Marek Habersack  <[email protected]>

	* ListViewInsertEventArgs.cs: implemented the Values property.

	* ListView.cs: CreateChildControls uses the Items collection to
	store the created items.
	InsertNewItem triggers page validation if necessary.
	Part of InsertNewItem code refactored to DoInsert.
	Implemented handling of the Insert and Select commands.

	* TemplatePagerField.cs: implemented all the code.

	* DataPager.cs: CreatePagerFields now adds the new pager field
	control before creating data pagers in it and before binding to
	data. This avoids situation in which the field is parentless.
	FindPageableItemContainer now properly finds the container if it's
	placed directly in the Page.
	{Load,Save}ViewState don't use a Pair anymore, object array is
	used for compatibility with MS.NET

	* NumericPagerField.cs, NextPreviousPagerField.cs,
	DataPagerFieldCommandEventArgs.cs: minor refactoring

	* ListViewSelectEventArgs.cs: implemented all the code.

	* ListViewInsertedEventArgs.cs: Values allocates the dictionary on
	demand now.
	Initialize all the properties in constructor

	* DataPagerCommandEventArgs.cs: added

	* DataPagerField.cs: implemented IsTrackingViewState

	* DataPagerFieldItem.cs: implements the INonBindingContainer
	interface.

svn path=/trunk/mcs/; revision=118918
2008-11-15 04:00:05 +00:00
Marek Habersack cd9089259b 2008-11-15 Marek Habersack <[email protected]>
* ContentPlaceHolder.cs, Content.cs, FormViewPagerRow.cs,
	ChangePassword.cs, DetailsViewPagerRow.cs: implements
	INonBindingContainer interface.

	* Wizard.cs: implement INonBindingContainer interface for several
	private/internal classes.

2008-11-15  Marek Habersack  <[email protected]>

	* INonBindingContainer.cs: added

	* Control.cs: BindingContainer now checks if a control implements
	INonBindingContainer interface in addition to the
	BINDING_CONTAINER mask check.

	* UserControl.cs: implements INonBindingContainer

	* ControlBuilder.cs: use the new INonBindingContainer interface to
	determine the binding container type in the BindingContainerType
	property. If TemplateBuilder's ContainerType implements that
	interface, the NamingContainer is queried for the binding
	container type. If ContainerType is null, we return our own
	ControlType (if we're TemplateBuilder)

2008-11-15  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added System.Web.UI/INonBindingContainer.cs

svn path=/trunk/mcs/; revision=118917
2008-11-15 03:40:24 +00:00
Jonathan Pryor abf4c31c91 * Makefile: Use Mono.Cecil from class/lib/net_1_1, not net_2_0.
svn path=/trunk/mcs/; revision=118903
2008-11-15 00:00:02 +00:00
Jb Evain 945584788a use a the proper profile where cecil is built
svn path=/trunk/mcs/; revision=118901
2008-11-14 23:41:59 +00:00
Rodrigo Kumpera dd0e3db2f0 2008-11-14 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (simd_intrinsic_emit_getter): Generalize this code
	and make it work with vectors of element sizes 1, 2 and 4.

	* simd-intrinsics.c: Enable getter for all vectors with element size
	1, 2 or 4.

	* simd-methods.h: Add the names of other getters.

	* mini-ops.h: Added OP_EXTRACT_I2/U2/I1/U1.

	* cpu-x86.md: Same.

	* mini-x86.c: Same.

svn path=/trunk/mono/; revision=118899
2008-11-14 23:17:18 +00:00
Jonathan Pryor 85fcae40b7 * Makefile: Don't build monodocer1.exe, and add Mono.Cecil.dll to the
list of assembly references for mdoc.exe.
	* Mono.Documentation/monodocer.cs: Migrate from System.Reflection to
	  Mono.Cecil.  This was done for two reasons:
	  1. mscorlib.dll: Reflection can load only one mscorlib.dll into an
	     AppDomain, which must be the same mscorlib.dll as the runtime
	     version.  Thus, in order to run monodocer on mscorlib.dll v1.1,
	     monodocer must be a .NET 1.1 application, and to document
	     mscorlib.dll v2.0, monodocer must be a .net 2.0 app.
	  1.a I don't think it's feasable to drop support for 
	     mscorlib.dll v1.1.
	  1.b This has been previously handled (so far) with conditional 
	     compilation, but the conditional compilation is painful to
	     maintain, and prevents use of LINQ in ongoing development.
	  1.c .NET 4.0 will be coming out "soon" (within 2 years?), and it's
	     possible that mono will maintain the same limitation, thus
	     necessitating having *three* different monodocer programs to
	     document mscorlib.dll for v1.1, v2.0, and v4.0.  Yech.
	  2. Future directions: It would be nice to parse method/property IL
	     bodies to determine which exceptions can be generated, thus
	     generating <exception cref="..."/> stubs.  Even with empty stubs,
	     I belive this would be useful within e.g. MonoDevelop to know
	     which exceptions a method is able to generate.
	     This cannot be done (at present) with System.Reflection, and
	     would require Mono.Cecil.
	  Downsides: mdoc now depends upon Mono.Cecil, which is API-unstable.
	  This will likely also complicate execution under .NET, as Mono.Cecil
	  would need to be XCOPY deployed into mdoc.exe's directory.
	* Test/DocTest-v1.cs: Add additional tests for Custom Attribute
	  generation.
	* Test/en.expected.importslashdoc/Mono.DocTest.Generic/Func`2.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest.Generic/MyList`2.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest/DocAttribute.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest/Widget+Direction.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest/Widget.xml,
	  Test/en.expected.since/Mono.DocTest.Generic/Func`2.xml,
	  Test/en.expected.since/Mono.DocTest.Generic/MyList`2.xml,
	  Test/en.expected.since/Mono.DocTest/DocAttribute.xml,
	  Test/en.expected.since/Mono.DocTest/Widget+Direction.xml,
	  Test/en.expected.since/Mono.DocTest/Widget.xml,
	  Test/en.expected/Mono.DocTest.Generic/Func`2.xml,
	  Test/en.expected/Mono.DocTest.Generic/MyList`2.xml,
	  Test/en.expected/Mono.DocTest/DocAttribute.xml,
	  Test/en.expected/Mono.DocTest/Widget+Direction.xml,
	  Test/en.expected/Mono.DocTest/Widget.xml,
	  Test/html.expected/Mono.DocTest.Generic/Func`2.html,
	  Test/html.expected/Mono.DocTest.Generic/MyList`2.html,
	  Test/html.expected/Mono.DocTest/DocAttribute.html,
	  Test/html.expected/Mono.DocTest/Widget+Direction.html,
	  Test/html.expected/Mono.DocTest/Widget.html,
	  Test/msxdoc-expected.importslashdoc.xml: Flush -- updated output due
	  to new custom attributes, better implemented interface detection --
	  care of the Mono.Cecil migration -- etc.

svn path=/trunk/mcs/; revision=118892
2008-11-14 21:24:54 +00:00
Zoltan Varga de8a6328ad Turn off AOT on the 2.0 profile as it causes hangs in System tests.
svn path=/trunk/mcs/; revision=118890
2008-11-14 21:12:50 +00:00
Zoltan Varga 6e65e5da25 2008-11-14 Zoltan Varga <[email protected]>
* domain-internals.h (MonoDomain): Update MONO_DOMAIN_LAST_GC_TRACKED.

svn path=/trunk/mono/; revision=118880
2008-11-14 19:07:19 +00:00
Zoltan Varga 2211e38f66 2008-11-14 Zoltan Varga <[email protected]>
* reflection.c (mono_type_get_object): Special case the very common
	void type.

	* domain-internals.h (struct _MonoDomain): Add 'typeof_void' field to
	hold typeof(void).

svn path=/trunk/mono/; revision=118879
2008-11-14 18:54:47 +00:00
Gonzalo Paniagua Javier e75ce1dcee 2008-11-14 Gonzalo Paniagua Javier <[email protected]>
* cache.cs:
	* Regex.cs: honor CacheSize value.


svn path=/trunk/mcs/; revision=118878
2008-11-14 18:51:42 +00:00
Jb Evain 02bd0e71ec 2008-11-14 Jb Evain <[email protected]>
* driver.cs: ignore empty -nowarn argument such as
	the one in -nowarn:12,13,,.


svn path=/trunk/mcs/; revision=118873
2008-11-14 17:05:50 +00:00
Andreas Färber e086e9c196 2008-11-14 Andreas Faerber <[email protected]>
* Makefile.am (ENABLE_DTRACE): Re-add dtrace -h flag.
	Fixes #445074.

	This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=118867
2008-11-14 16:27:37 +00:00
Zoltan Varga 36eb7ede02 Reenable AOT, it wasn't enabled on the x86 buildbot anyway.
svn path=/trunk/mcs/; revision=118861
2008-11-14 15:07:43 +00:00
Paolo Molaro 2f7223021c Fri Nov 14 15:54:18 CET 2008 Paolo Molaro <[email protected]>
* mini-ppc.h: portability fix.


svn path=/trunk/mono/; revision=118860
2008-11-14 14:57:07 +00:00
Paolo Molaro a182519fb1 Fri Nov 14 15:39:50 CET 2008 Paolo Molaro <[email protected]>
* mini-ppc.h, mini-ppc.c: avoid using the red zone as some kernels are
	buggy and will overwrite it.


svn path=/trunk/mono/; revision=118858
2008-11-14 14:42:42 +00:00
Jb Evain b0af16a835 2008-11-14 Jb Evain <[email protected]>
* Mono.Cecil/ParameterAttributes.cs: add Retval and Lcid.
	* Mono.Cecil/ParameterDefinition.cs: add Is* property accordingly.


svn path=/trunk/mcs/; revision=118852
2008-11-14 13:51:26 +00:00
Zoltan Varga a0733a2b85 Disable AOT to see if that fixes the failures on the buildbot.
svn path=/trunk/mcs/; revision=118847
2008-11-14 13:18:27 +00:00
Zoltan Varga 2e4f22ac80 2008-11-14 Zoltan Varga <[email protected]>
* aot-compiler.c: Add functionality to emit local symbols to the elf writer.
	Use it to emit local symbols for all methods so AOTed methods show up with
	their full name in gdb/valgrind output.

svn path=/trunk/mono/; revision=118845
2008-11-14 12:04:45 +00:00
Paolo Molaro 90e5915a14 Fri Nov 14 12:56:27 CET 2008 Paolo Molaro <[email protected]>
* mini-ppc.c: portability fixes.


svn path=/trunk/mono/; revision=118844
2008-11-14 11:59:03 +00:00
Zoltan Varga a7c31abecf 2008-11-14 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_magic_trampoline): Move the patching of plt
	entries out of the if (!generic_shared...) code so it is always done.
	(mono_class_init_trampoline): Do the patching when running under valgrind
	too, newer versions of valgrind have no problems with it.

svn path=/trunk/mono/; revision=118843
2008-11-14 11:54:17 +00:00
Jb Evain 89b0dc7b11 2008-11-14 Jb Evain <[email protected]>
* DictionaryTest.cs: add tests for #444778.


svn path=/trunk/mcs/; revision=118842
2008-11-14 11:47:36 +00:00
Jb Evain 667f5dbe39 2008-11-14 Jb Evain <[email protected]>
* Dictionary.cs (ICollection.CopyTo): fix the different possible
	copying cases depending on the actual type of destination array,
	be it an array of KeyValuePair, DictionaryEntry, or object.
	Fixes #444778.


svn path=/trunk/mcs/; revision=118841
2008-11-14 11:47:11 +00:00
Jb Evain 0338541bbc 2008-11-14 Jb Evain <[email protected]>
* DictionaryTest.cs: add tests for bug #444768.


svn path=/trunk/mcs/; revision=118839
2008-11-14 10:36:55 +00:00
Jb Evain 1330c66bc1 2008-11-14 Jb Evain <[email protected]>
* Dictionary.cs: fix ICollection<KeyValuePair<T>>.Remove and .Contains
	to not only check if the key exists but if the associated value is the
	good one as well. Fixes #444768.


svn path=/trunk/mcs/; revision=118838
2008-11-14 10:36:28 +00:00
Andreas Färber 8ee32b3fd3 2008-11-14 Andreas Faerber <[email protected]>
* configure.in: Add preprocessor defines for ppc(64).
	Suggested by Paolo and Mark.

	This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=118836
2008-11-14 09:37:41 +00:00
Gonzalo Paniagua Javier c95c7e38b5 2008-11-14 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: use javascript instead of
	HttpWebRequest to avoid a deadlock if the web service uses Session.
	Bug #444343 fixed.


svn path=/trunk/mono/; revision=118833
2008-11-14 06:30:46 +00:00
Marek Habersack 4f2fbd7c2b 2008-11-14 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: If BindingDirection of the parent 
        template builder is OneWay in
	RegisterBindingInfo, do not throw an exception but simply do not
	register the binding.

svn path=/trunk/mcs/; revision=118813
2008-11-14 02:08:45 +00:00
Marek Habersack 3b49c0ba8b 2008-11-14 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: treat Eval and Bind expressions as
	verbatim code. The only difference between the two is that in the
	latter case Bind is replaced with Eval in the output code. Fixes
	bug #444725

2008-11-14  Marek Habersack  <[email protected]>

	* DataBinder.cs: if Eval doesn't find the indicated property, try
	to find an indexer property on the object and use the expression
	value as its parameter. Fixes #444725

svn path=/trunk/mcs/; revision=118799
2008-11-14 00:41:03 +00:00
Gonzalo Paniagua Javier 96679ba6ec 2008-11-13 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: the upload test now passes with the MS
	runtime. Added another test for download.


svn path=/trunk/mcs/; revision=118784
2008-11-13 22:56:58 +00:00
Gonzalo Paniagua Javier 9e7ecafa95 2008-11-13 Gonzalo Paniagua Javier <[email protected]>
* FtpDataStream.cs: use the socket for reading until the end of a
	stream that wasn't read entirely. Remove unused ManualResetEvent.
	* FtpWebRequest.cs: set the file_name when downloading. Update the
	response status after every SendCommand. Send a "OPTS utf8 on" as MS
	does (the control cnc reader should do something with UTF8)


svn path=/trunk/mcs/; revision=118783
2008-11-13 22:55:54 +00:00
Rodrigo Kumpera f59b806643 2008-11-13 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c: Add getter support for Vector4i and Vector4ui.

svn path=/trunk/mono/; revision=118780
2008-11-13 22:51:28 +00:00
Rodrigo Kumpera f198c583b3 2008-11-13 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Remove not used macro x86_pshufd_reg_reg.

svn path=/trunk/mono/; revision=118779
2008-11-13 22:51:27 +00:00
Rodrigo Kumpera 6134247f74 2008-11-13 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Kill diplicated ops OP_SHUFLEPS.

	* cpu-x86.md: Same.

	* mini-x86.c: Same.

	* simd-intrinsics.c: Same.

svn path=/trunk/mono/; revision=118778
2008-11-13 22:51:20 +00:00
Zoltan Varga 3d51420c11 2008-11-13 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_writeout): Rework this to make it easier to add
	further sections.

svn path=/trunk/mono/; revision=118773
2008-11-13 22:04:34 +00:00
Gert Driesen 5bf5128a72 * RegexBugs.cs: added test for bug #443841.
svn path=/trunk/mcs/; revision=118761
2008-11-13 20:20:00 +00:00
Gonzalo Paniagua Javier 8a9f05d723 fix the build
svn path=/trunk/mcs/; revision=118736
2008-11-13 17:24:00 +00:00
Zoltan Varga b9e2040044 2008-11-13 Zoltan Varga <[email protected]>
* RxInterpreter.cs: Fix pc computation in various opcodes. Fixes #443841.

svn path=/trunk/mcs/; revision=118729
2008-11-13 17:13:43 +00:00
Mark Probst e35b99107f 2008-11-13 Mark Probst <[email protected]>
* mini-ppc.c, cpu-ppc.md: Reserve space for the parameter area in
	filters.

2008-11-13  Mark Probst  <[email protected]>

	* filter-stack.cs: Test whether method calls with large arguments
	work in filter clauses.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=118728
2008-11-13 17:11:16 +00:00
Veerapuram Varadhan 004f5ad90c Reset the connection on timeout exception before reusing it
svn path=/trunk/mcs/; revision=118727
2008-11-13 17:01:23 +00:00
Bill Holmes 1af07ffa81 2008-11-13 Bill Holmes <[email protected]>
* process.h : Adding method declaration for
	  ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.

	* process.c : Adding implementation for
	  ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.

	* icall-def.h : Registering ICALL Processs.WaitForInputIdle_internal
	  to ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.

	* wait.h : Adding method declaration for WaitForInputIdle.

	* wait.c : Adding implementation for WaitForInputIdle.

	* Process.cs : Adding an implementation for WaitForInputIdle
	  to call the an internal call.  The internal call is only
	  implemented properly on Windows.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=118724
2008-11-13 16:03:48 +00:00
Bill Holmes 18e193acd5 2008-11-13 Bill Holmes <[email protected]>
* process.h : Adding method declaration for
	  ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.

	* process.c : Adding implementation for
	  ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.

	* icall-def.h : Registering ICALL Processs.WaitForInputIdle_internal
	  to ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.

	* wait.h : Adding method declaration for WaitForInputIdle.

	* wait.c : Adding implementation for WaitForInputIdle.

	* Process.cs : Adding an implementation for WaitForInputIdle
	  to call the an internal call.  The internal call is only
	  implemented properly on Windows.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=118724
2008-11-13 16:03:48 +00:00
Rodrigo Kumpera 0376e060c8 2008-11-13 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c: Enable constructor intrinsics for all types.

svn path=/trunk/mono/; revision=118723
2008-11-13 15:52:29 +00:00
Miguel de Icaza 374766ec06 Typo
svn path=/trunk/mcs/; revision=118722
2008-11-13 15:41:22 +00:00
Marek Safar c26fdd6d4f 2008-11-13 Marek Safar <[email protected]>
A test for bug #444271


svn path=/trunk/mcs/; revision=118719
2008-11-13 15:24:26 +00:00
Marek Safar b4918ddf71 2008-11-13 Marek Safar <[email protected]>
A fix for bug #444271
	* anonymous.cs: Rescan parent storeys when best candidate was
	undone.


svn path=/trunk/mcs/; revision=118718
2008-11-13 15:23:58 +00:00
Rodrigo Kumpera 3d19857d09 2008-11-13 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (simd_intrinsic_emit_ctor): Generalize this method
	to work with more Vector types.

svn path=/trunk/mono/; revision=118716
2008-11-13 15:13:17 +00:00
Rodrigo Kumpera 37f96c055c 2008-11-13 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (simd_intrinsic_emit_ctor): If the target is already a pointer
	store the elemens directly instead of using and intermediate.

svn path=/trunk/mono/; revision=118715
2008-11-13 15:13:12 +00:00
Zoltan Varga ea04fd1725 2008-11-13 Zoltan Varga <[email protected]>
* mini-amd64.c (emit_call_body): Avoid aligning call sites in AOTed code.

svn path=/trunk/mono/; revision=118714
2008-11-13 14:19:41 +00:00
Zoltan Varga 892e7d2c3c 2008-11-13 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_create_trampoline_code): Rework the return sequence
	to preserve %eax for aot plt trampolines.

svn path=/trunk/mono/; revision=118713
2008-11-13 14:12:59 +00:00
Jonathan Pryor 861d3479e6 * Test/html.expected/**: Update
//meta[@http-equiv='Content-Type']/@content attribute value (changed
	  due to yesterday's defaulttemplate.xsl fix).

svn path=/trunk/mcs/; revision=118712
2008-11-13 14:07:46 +00:00
Zoltan Varga 6af2212e2d 2008-11-13 Zoltan Varga <[email protected]>
* Makefile (AOT_IN_PROFILES): Disable AOT for the 2.0 profile as it actually
	slows down the build.

svn path=/trunk/mcs/; revision=118711
2008-11-13 13:12:13 +00:00
Atsushi Eno e30d02ad83 merge XPath optimization branch. About 15% faster/less memory use so
far.


svn path=/trunk/mcs/; revision=118710
2008-11-13 13:05:44 +00:00
Marek Safar e2a08e4a61 Add --verify-all
svn path=/trunk/mcs/; revision=118709
2008-11-13 10:07:54 +00:00
Marek Safar 7ed4dc2256 New test
svn path=/trunk/mcs/; revision=118707
2008-11-13 10:04:46 +00:00
Marek Safar 9e084b6eac 2008-11-13 Marek Safar <[email protected]>
* generic.cs, expression.cs, ecore.cs, cs-parser.jay: Removed
	useless UnboundTypeExpression.
	
	* attribute.cs: Do check obsolete attribute on generic types.


svn path=/trunk/mcs/; revision=118706
2008-11-13 10:04:25 +00:00
Veerapuram Varadhan 51b5824c10 Use reset flag bit instead of executing sp_reset_connection and related
changes.

svn path=/trunk/mcs/; revision=118704
2008-11-13 09:16:42 +00:00
Paolo Molaro f275ccd9e9 Fix for mingw.
svn path=/trunk/mono/; revision=118702
2008-11-13 08:04:39 +00:00
Paolo Molaro bfe8d7def8 More headers checks.
svn path=/trunk/mono/; revision=118701
2008-11-13 07:49:51 +00:00
Gonzalo Paniagua Javier 0b00587d8a 2008-11-12 Gonzalo Paniagua Javier <[email protected]>
* SocketTest.cs: added test case based on the one in bug
	#443346.


svn path=/trunk/mcs/; revision=118697
2008-11-13 03:48:52 +00:00
Gonzalo Paniagua Javier c25ee5d95b 2008-11-12 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: mark the socket as not connected when there is a pending
	error or exception about to be thrown.
	Bug #443346 fixed.


svn path=/trunk/mcs/; revision=118696
2008-11-13 03:47:23 +00:00
Zoltan Varga 3d33747dea 2008-11-13 Zoltan Varga <[email protected]>
* aot-compiler.c (compile_method): Don't skip synchronized methods.
	(encode_method_ref): Flag synchronized methods so they won't go through
	the AOT trampoline.

svn path=/trunk/mono/; revision=118692
2008-11-13 02:17:41 +00:00
Zoltan Varga 79c39e12df 2008-11-13 Zoltan Varga <[email protected]>
* aot-compiler.c: Additional work to support AOTing synchronized methods/
	wrappers.

svn path=/trunk/mono/; revision=118689
2008-11-13 01:52:32 +00:00
Andreia Gaita 12f8844959 * Mono.Mozilla/Callback.cs, Mono.WebBrowser/DOM/EventArgs.cs: strong
typing for node event arguments

2008-11-13  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=118688
2008-11-13 01:48:33 +00:00
Marek Habersack b55db8ee75 2008-11-13 Marek Habersack <[email protected]>
* ListView.cs: implemented support for Edit, Update and Delete.
	Implemented ExtractItemValues.

	* ListViewDataItem.cs, ListViewItem.cs: implemented OnBubbleEvent.

	* ListViewDeletedEventArgs.cs, ListViewUpdateEventArgs.cs,
	ListViewEditEventArgs.cs, ListViewCancelEventArgs.cs,
	ListViewDeleteEventArgs.cs, ListViewUpdatedEventArgs.cs:
	implemented all the properties and methods.

	* HelperExtensions.cs: added

svn path=/trunk/mcs/; revision=118686
2008-11-13 01:39:03 +00:00
Andreia Gaita 653b49ae0e * Mono.WebBrowser/IWebBrowser.cs, Mono.Mozilla/WebBrowser.cs: Support
script execution directly in the browser object

2008-11-13  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=118685
2008-11-13 01:38:55 +00:00
Andreia Gaita e63a98b311 * Mono.Mozilla/DOM/Node.cs, Mono.Mozilla/DOM/Window.cs: Fix equality
operators

2008-11-13  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=118684
2008-11-13 01:35:56 +00:00
Marek Habersack eb9632d1c7 2008-11-13 Marek Habersack <[email protected]>
* Control.cs: added ability to reset child names to a specific
	value, not only to 0.

svn path=/trunk/mcs/; revision=118683
2008-11-13 01:31:59 +00:00
Zoltan Varga a5e0c76522 2008-11-13 Zoltan Varga <[email protected]>
* cpu-ia64.md (jmp): Increase max length.

svn path=/trunk/mono/; revision=118677
2008-11-13 00:04:24 +00:00
Gonzalo Paniagua Javier 2ad45d1b6b 2008-11-12 Gonzalo Paniagua Javier <[email protected]>
* UnixSignalTest.cs: use WaitAny + 30s timeout.


svn path=/trunk/mcs/; revision=118668
2008-11-12 23:18:09 +00:00
Rodrigo Kumpera 0993530d98 2008-11-12 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Remove OP_PUSH_R4 and OP_LOADX_STACK.

	* cpu-x86.md: Same.

	* mini-x86.c: Same.

	* mini.h (struct MonoCompile): Add simd_ctor_var to be used as storage
	for simd ctor values.

	* simd-intrinsics.c (simd_intrinsic_emit_ctor): Use simd_ctor_var for the constructor
	instead of directly pushing the values on stack. This saves about 15 bytes of generated code.

svn path=/trunk/mono/; revision=118659
2008-11-12 21:58:51 +00:00
Gonzalo Paniagua Javier d0ff095df5 Close() was missing in a bunch of tests
svn path=/trunk/mcs/; revision=118657
2008-11-12 21:47:40 +00:00
Gonzalo Paniagua Javier 9e17fdcd7f 2008-11-12 Gonzalo Paniagua Javier <[email protected]>
* HttpListener2Test.cs: Fixed Test7.


svn path=/trunk/mcs/; revision=118655
2008-11-12 21:38:54 +00:00
Jb Evain 4dbeef6fea adjust
svn path=/trunk/mcs/; revision=118650
2008-11-12 21:17:01 +00:00
Jb Evain d2e0a09257 2008-11-12 Jb Evain <[email protected]>
* IComponent.cs
	* ComponentCollection.cs
	* PropertyDescriptor.cs: adjust api for NET_2_1.


svn path=/trunk/mcs/; revision=118649
2008-11-12 21:16:43 +00:00
Zoltan Varga 5f35b84f0e 2008-11-12 Zoltan Varga <[email protected]>
* Makefile: Enable AOT for the 2.0 profile too.

svn path=/trunk/mcs/; revision=118644
2008-11-12 20:51:24 +00:00
Zoltan Varga d9896ac3ce 2008-11-12 Zoltan Varga <[email protected]>
* aot-runtime.c (load_method): Avoid calling runtime_class_init () for
	open generic classes.

svn path=/trunk/mono/; revision=118642
2008-11-12 20:49:55 +00:00
Gonzalo Paniagua Javier 28ea8bc9fc line not needed. might cause exception when writing
svn path=/trunk/mcs/; revision=118634
2008-11-12 20:12:06 +00:00
Jonathan Pobst 4fe3e5a9a7 2008-11-12 Jonathan Pobst <[email protected]>
* DataGridViewCellStyle.cs: Allow SelectionBackColor to have
	an alpha value.
	[Fixes bug #444348]

svn path=/trunk/mcs/; revision=118633
2008-11-12 20:09:34 +00:00
Zoltan Varga 8b424ee24b 2008-11-12 Zoltan Varga <[email protected]>
* Makefile: Enable AOT for the 1.1 profile.

svn path=/trunk/mcs/; revision=118625
2008-11-12 19:08:35 +00:00
Zoltan Varga 1539b7ca12 2008-11-12 Zoltan Varga <[email protected]>
* library.make: AOT the library after compilation if the AOT_IN_PROFILES
	variable is defined and it contains the current profile.

svn path=/trunk/mcs/; revision=118624
2008-11-12 19:07:58 +00:00
Zoltan Varga 408da0ace3 2008-11-12 Zoltan Varga <[email protected]>
* configure.in: Add an ENABLE_AOT variable to config.make, currently only
	enabled for AMD64.

svn path=/trunk/mono/; revision=118623
2008-11-12 19:06:06 +00:00
Zoltan Varga d6e3b63a76 2008-11-12 Zoltan Varga <[email protected]>
* aot-compiler.c: Enable the ELF writer on ELF platforms.

svn path=/trunk/mono/; revision=118622
2008-11-12 19:04:57 +00:00
Zoltan Varga 475458b53a 2008-11-12 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Revert the last change to the
	box+brtrue optimization since it causes test failures on x86.

svn path=/trunk/mono/; revision=118619
2008-11-12 18:43:40 +00:00
Andreia Gaita 995c3c986c * Mono.WebBrowser.dll.sources, Mono.WebBrowser2K5.csproj,
Mono.Mozilla/interfaces/nsIURIContentListener.cs,
  Mono.Mozilla/DOM/ContentListener.cs: New class added to listen for
  load requests and handle content types
* Mono.WebBrowser/IWebBrowser.cs, Mono.Mozilla/WebBrowser.cs: New
  NavigationRequested event to catch load requests

2008-11-12  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=118617
2008-11-12 17:59:59 +00:00
Rodrigo Kumpera 7c97777976 2008-11-12 Rodrigo Kumpera <[email protected]>
* simd-methods.h: Rename SubWithSaturation, ArithmeticRightShift and
	LogicalRightShift.

	* simd-instrincs.c: Same.

	* basic-simd.cs: Same.

svn path=/trunk/mono/; revision=118609
2008-11-12 16:43:35 +00:00
Rodrigo Kumpera e33b5841e2 2008-11-12 Rodrigo Kumpera <[email protected]>
* Vector*.cs: Renamed ShiftRightLogic to LogicalRightShift and
	ShiftRightArithmetic to ArithmeticRightShift.

2008-11-12  Rodrigo Kumpera  <[email protected]>

	* Documentation/en/Mono.Simd/Vector*.xml: Renamed ShiftRightLogic
	to LogicalRightShift and ShiftRightArithmetic to ArithmeticRightShift.

svn path=/trunk/mcs/; revision=118608
2008-11-12 16:42:01 +00:00
Rodrigo Kumpera 1d74ce36fb 2008-11-12 Rodrigo Kumpera <[email protected]>
* Documentation/en/Mono.Simd/Vector*.xml: Renamed SubWithSaturation
	to SubtractWithSaturation.

2008-11-12  Rodrigo Kumpera  <[email protected]>

	* Vector*.cs: Renamed SubWithSaturation	to SubtractWithSaturation.

svn path=/trunk/mcs/; revision=118607
2008-11-12 16:41:59 +00:00
Zoltan Varga d53d136156 2008-11-12 Zoltan Varga <[email protected]>
* ratests.cs: Add more tests.

	* regalloc2.c (add_spill_code): Handle more corner cases.

svn path=/trunk/mono/; revision=118606
2008-11-12 16:40:14 +00:00
Jonathan Pryor 582392753a * Resources/defaulttemplate.xsl: Update /html/head/meta/@content value
so that IE7 properly recognizes the file as UTF-8 encoded.
	  Fixes #444009.

svn path=/trunk/mcs/; revision=118604
2008-11-12 15:48:15 +00:00
Cedric Vivier f1fe8add89 2008-11-12 Cedric Vivier <[email protected]>
* Vector*.cs: Add indexer to all Vector types to get/set an individual component's value.
	* Documentation/en/Mono.Simd/Vector*.xml: Added Member entry for indexer (Component).

svn path=/trunk/mcs/; revision=118603
2008-11-12 14:52:01 +00:00
Jb Evain a7a743a0a8 fix for real
svn path=/trunk/mcs/; revision=118602
2008-11-12 14:43:20 +00:00
Jb Evain 8d6cf8224b 2008-11-12 Jb Evain <[email protected]>
* Mono.Cecil.Signatures/SignatureReader.cs: properly construct
	TypeReferences when reading them from custom attributes data.


svn path=/trunk/mcs/; revision=118599
2008-11-12 14:15:40 +00:00
Marek Safar fa09d0a269 New test + disabled 2 problematic
svn path=/trunk/mcs/; revision=118597
2008-11-12 14:06:22 +00:00
Marek Safar 11a37bd52c 2008-11-12 Marek Safar <[email protected]>
A fix for bugs #425680, #400139
	* ecore.cs, expression.cs: Trying to do some almost_matched_members
	refactoring.


svn path=/trunk/mcs/; revision=118595
2008-11-12 14:05:33 +00:00
Cedric Vivier be30ba8656 2008-11-12 Cedric Vivier <[email protected]>
* Vector*.cs: Optimize non-accelerated bitwise-operations (| & ^).

svn path=/trunk/mcs/; revision=118582
2008-11-12 07:17:54 +00:00
Atsushi Eno cc59158ec3 2008-11-11 Atsushi Enomoto <[email protected]>
Fix for bug 439943.
        * SettingValueElement.cs : do not write value element twice.
        * CustomizableFileSettingsProvider.cs : create "value" element
          instead of a document fragment so that the output from
          SettingValueElement could become consistent.
          Null binary value caused crash. Set appropriate
          SerializedValue for each serialization type.
        * SettingsPropertyValue.cs : output only when the value is
          non-null.


svn path=/trunk/mcs/; revision=118565
2008-11-12 00:11:45 +00:00
Rodrigo Kumpera c8cb92719e 2008-11-11 Rodrigo Kumpera <[email protected]>
* ModuleTest.cs : Add test for ResolveMethod with a methodspec
	token.

svn path=/trunk/mcs/; revision=118543
2008-11-11 20:14:55 +00:00
Rodrigo Kumpera 3eb4b6e746 2008-11-11 Rodrigo Kumpera <[email protected]>
* Module.cs (ResolveMethod): Use internal method
	GetMethodFromHandleNoGenericCheck to avoid the generic type
	limitation of GetMethodFromHandle.

	Fixes #443763.

svn path=/trunk/mcs/; revision=118542
2008-11-11 20:14:53 +00:00
Gert Driesen 573643b6fc * SqlCommandTest.cs: Added (SMALL)MONEY rounding tests.
svn path=/trunk/mcs/; revision=118536
2008-11-11 19:22:02 +00:00
Zoltan Varga b4f555ef61 2008-11-11 Zoltan Varga <[email protected]>
* regalloc2.c (INS_POS_INTERVAL): Decrease this to 8 to avoid overflows.
	(update_liveness): Avoid holes in the liveness ranges of hregs if they are
	both the source an destination of an instruction.

svn path=/trunk/mono/; revision=118532
2008-11-11 18:55:15 +00:00
Paolo Molaro 3a255db596 Tue Nov 11 19:30:50 CET 2008 Paolo Molaro <[email protected]>
* jit-icalls.c, local-propagation.c, mini.c, ssa.c, ssapre.c, trace.c,
	wapihandles.c: more portability changes.


svn path=/trunk/mono/; revision=118531
2008-11-11 18:34:09 +00:00
Gert Driesen 79f260901c * SqlCommandTest.cs: Added tests for bug #428139. Added test for
SMALLMONEY overflows. Added workaround for Assert.AreEqual bug in 
NUnit v2.2.0. 

svn path=/trunk/mcs/; revision=118529
2008-11-11 18:20:27 +00:00
Paolo Molaro aeb0dce63f Added more header checks.
svn path=/trunk/mono/; revision=118528
2008-11-11 18:19:59 +00:00
Gert Driesen bd52fa8d9c * Tds70.cs: Support writing negative (small)money values. Added
overflow check for smallmoney values. Fixes bug #428139.
* Tds.cs: Fixed reading negative (small)money values.

svn path=/trunk/mcs/; revision=118527
2008-11-11 18:18:53 +00:00
Paolo Molaro e387ff0164 Tue Nov 11 18:56:33 CET 2008 Paolo Molaro <[email protected]>
* aot-compiler.c, aliasing.c, abcremoval.c: portability changes.
	* mini.c mini.h, aot-runtime.c: the aot segfault-handling code is not
	safe to execute in a signal handler and the kernel provides better
	the info in /proc/self/smaps. Avoid the assert on sigaction during
	cleanup.


svn path=/trunk/mono/; revision=118526
2008-11-11 18:02:04 +00:00
Jb Evain 46cadcc60e 2008-11-11 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionReader.cs (AddTypeRef):
	protect against invalid token.


svn path=/trunk/mcs/; revision=118515
2008-11-11 17:00:40 +00:00
Andrés G. Aragoneses d099955328 * Application.cs: After UIA assembly is successfully loaded,
dump any exception that happens on initialization to stderr.

svn path=/trunk/mcs/; revision=118513
2008-11-11 16:43:12 +00:00
Gonzalo Paniagua Javier a9497316ff 2008-11-11 Gonzalo Paniagua Javier <[email protected]>
* RegexBugs.cs: test from bug 432172.


svn path=/trunk/mcs/; revision=118512
2008-11-11 16:42:18 +00:00
Jonathan Pobst 1d0025f5ee 2008-11-11 Jonathan Pobst <[email protected]>
* DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
	* DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
	AutoSizeColumnModeChanged.
	[Fixes bug #443609]

svn path=/trunk/mcs/; revision=118511
2008-11-11 16:37:41 +00:00
Jonathan Pobst 70b1cbf2dd 2008-11-11 Jonathan Pobst <[email protected]>
* DataGridViewRowCollection.cs: Guard against the user deleting the
	NewRow.  Add an internal delete so we can still delete it.
	* DataGridView.cs: Use the new internal delete when deleting the NewRow.
	[Fixes bug #442181]

2008-11-01  Jonathan Pobst  <[email protected]>

	* DataGridViewRowCollectionTest.cs: Add some tests for bug #442181.

svn path=/trunk/mcs/; revision=118509
2008-11-11 16:13:00 +00:00
Jonathan Chambers 97ae56ee0f 2008-11-11 Jonathan Chambers <[email protected]>
* Items.cs: Use Path.DirectorySeparatorChar instead of
        hardcoded '/' to fix test on Windows.


svn path=/trunk/mcs/; revision=118502
2008-11-11 14:28:50 +00:00
Jonathan Chambers e3a3d1dbfc 2008-11-11 Jonathan Chambers <[email protected]>
* DeleteTest.cs: Added tests for Delete task.


svn path=/trunk/mcs/; revision=118501
2008-11-11 14:02:17 +00:00
Sebastien Pouliot 7802fb2616 2008-11-11 Sebastien Pouliot <[email protected]>
* Mono.Cecil.Mdb/MdbFactory.cs: Wrap any MonoSymbolFileException
	into a FormatException since callers can't catch the former (at least
	not without catching Exception).


svn path=/trunk/mcs/; revision=118500
2008-11-11 13:28:22 +00:00
Sebastien Pouliot 1de0505071 2008-11-11 Sebastien Pouliot <[email protected]>
* */Makefile.am: Dont compile with --security as this fails under 
	Win32 and this is *not* what we want to test here anyway


svn path=/trunk/mono/; revision=118499
2008-11-11 13:22:02 +00:00
Jb Evain a6b6157148 2008-11-11 Jb Evain <[email protected]>
* Mono.Cecil.Cil/CodeWriter.cs: fix writing of catch handlers
	of a generic exception type.


svn path=/trunk/mcs/; revision=118495
2008-11-11 12:43:19 +00:00
Zoltan Varga 0c98fba8d5 2008-11-11 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): In the box+brtrue optimization, only
	do the bblock linking hack if it is actually needed.

svn path=/trunk/mono/; revision=118490
2008-11-11 11:34:38 +00:00
Zoltan Varga fef52c9500 2008-11-11 Zoltan Varga <[email protected]>
* Makefile.am (patch-libtool): New helper target to patch libtool to speed
	up linking.

svn path=/trunk/mono/; revision=118489
2008-11-11 11:30:34 +00:00
Zoltan Varga c610303187 Remove an outdated comment.
svn path=/trunk/mono/; revision=118488
2008-11-11 11:29:49 +00:00
Zoltan Varga 62cf3b7672 2008-11-11 Zoltan Varga <[email protected]>
* liveness.c (ENABLE_LIVENESS2): Reenable this for 64 bit archs as the
	crash problem is fixed.

svn path=/trunk/mono/; revision=118487
2008-11-11 11:29:20 +00:00
Zoltan Varga 385d319a4b 2008-11-11 Zoltan Varga <[email protected]>
* branch-opts.c (mono_remove_critical_edges): Link up newly added
	bblocks.

	* mini.c (mini_method_compile): Compute unreachable bblocks properly even
	for catch clauses.
	(mini_method_compile): Set the starting value of next_vreg to 
	MAX_IREGS + MAX_FREGS when using globalra.

	* method-to-ir.c (mono_method_to_ir2): Mark bblocks starting
	filter clauses with BB_EXCEPTION_HANDLER.

svn path=/trunk/mono/; revision=118486
2008-11-11 11:27:43 +00:00
Zoltan Varga c935db2360 2008-11-11 Zoltan Varga <[email protected]>
* CILCompiler.cs: Implement Reference opcode.

svn path=/trunk/mcs/; revision=118484
2008-11-11 11:16:33 +00:00
Atsushi Eno 570e1fcd6b fix for inherited default namespace in compact syntax.
svn path=/trunk/mcs/; revision=118483
2008-11-11 11:06:01 +00:00
Marek Safar 302d178ea2 New test + update
svn path=/trunk/mcs/; revision=118482
2008-11-11 10:50:35 +00:00
Marek Safar 07cae9b141 2008-11-11 Marek Safar <[email protected]>
A fix for bug #435747
	* assign.cs, expression.cs: Cleanup New assignment to emit correcly
	compound value types assignment. Few micro optimizations added.


svn path=/trunk/mcs/; revision=118481
2008-11-11 10:50:20 +00:00
Marek Safar f1f00a4aab Fixing windows build
svn path=/trunk/mcs/; revision=118478
2008-11-11 10:36:50 +00:00
Marek Safar dd2125e664 New test.
svn path=/trunk/mcs/; revision=118476
2008-11-11 10:23:00 +00:00
Andreia Gaita 62bb96dd8e * Test/System.Windows.Forms/TestHelper.cs: Inconsistent eol fixes and
eol-style

svn path=/trunk/mcs/; revision=118456
2008-11-11 03:31:17 +00:00
Andreia Gaita 7d070dbda2 * Test/System.Windows.Forms/FocusTest.cs,
Test/System.Windows.Forms/FormTest.cs,
  Test/System.Windows.Forms/FormEventTest.cs: Enable tests that
  depend on synchronous WM_ACTIVATE messages and are now working with
  the latest message fixes

2008-11-11  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=118455
2008-11-11 03:23:33 +00:00
Rodrigo Kumpera 5ffa6a8168 2008-11-11 Rodrigo Kumpera <[email protected]>
* Documentation/en/Mono.Simd/SimdRuntime.xml: Fixed some typos.
	Added example.

svn path=/trunk/mcs/; revision=118452
2008-11-11 02:46:53 +00:00
Rodrigo Kumpera c9d5f9e81e 2008-11-11 Rodrigo Kumpera <[email protected]>
* ConstructorOnTypeBuilderInstTest.cs: Add test for
	MetadataToken under compilation context.

svn path=/trunk/mcs/; revision=118451
2008-11-11 02:31:34 +00:00
Rodrigo Kumpera a97a8770a8 2008-11-11 Rodrigo Kumpera <[email protected]>
* ConstructorOnTypeBuilderInst.cs (MetadataToken): Make this property
	work under compiler context. Same hack as the one applied to
	MethodOnTypeBuilderInst.

	Fixes #442610.

svn path=/trunk/mcs/; revision=118450
2008-11-11 02:31:32 +00:00
Zoltan Varga 9cf7ad0494 2008-11-11 Zoltan Varga <[email protected]>
* configure.in: Bump version to 2.3.

svn path=/trunk/mono/; revision=118445
2008-11-11 00:20:16 +00:00
Atsushi Eno 571a0e148c 2008-10-27 Atsushi Enomoto <[email protected]>
Patch by Michael Barker:
	a patch that adds support for passing all of the Message
	properties via RabbitMQ (as per version 1.1 of System.Messaging).
	This includes Recoverable (supporting persistence) and Priority (which
	would support priority based delivery if RabbitMQ supported it) as
	well as state and argument checking.


svn path=/branches/messaging-2008/mcs/; revision=117134
2008-10-27 10:10:13 +00:00
Atsushi Eno 6abd64b916 add missing files (see bug #432471).
svn path=/branches/messaging-2008/mcs/; revision=116496
2008-10-20 08:06:16 +00:00
Atsushi Eno 7b8ca08adf import AMQP/Rabbit based implementation by Michael Barker (see r116493).
svn path=/branches/messaging-2008/mcs/; revision=116494
2008-10-20 07:49:40 +00:00
Atsushi Eno 7966931ae7 import RabbitMQ.Client (see bug #432471 and
http://lists.ximian.com/pipermail/mono-devel-list/2008-October/029498.html).


svn path=/branches/messaging-2008/mcs/; revision=116493
2008-10-20 07:31:10 +00:00
3733 changed files with 286402 additions and 123913 deletions

No files matched your search

+166
View File
@@ -1,3 +1,169 @@
2009-02-07 Gonzalo Paniagua Javier <[email protected]>
* configure.in: include stdio so that NULL is defined when checking
for ifreq.
2009-02-06 Miguel De Icaza <[email protected]>
* Disable parallel marking on OSX as it hangs during collections
in the bootstrap stage of Mono.
As we find more platforms that hang, we should disable it there as
well.
2009-02-03 Miguel de Icaza <[email protected]>
* configure.in (PLATFORM_NO_SYMLINKS): New define that replaces
PLATFORM_WIN32.
2009-02-02 Rodrigo Kumpera <[email protected]>
* configure.in: Add --with-mcs-docs to make it possible to disable building of documentation under mcs.
2009-01-29 Zoltan Varga <[email protected]>
* configure.in: Remove -Wcast-align from the warning list, it leads to a lot of
useless warnings which can only be fixed by casting a pointer to (void*).
2009-01-29 Miguel de Icaza <[email protected]>
* configure.in: Add a couple of new AM conditionals for POSIX and
DARWIN, these are used to conditionally include some files in
mono/mini.
2009-01-27 Jb Evain <[email protected]>
* configure.in: bump Mono's version to 2.5 now that 2.4
has been branched.
2009-01-25 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Handle ARM as well.
2009-01-23 Zoltan Varga <[email protected]>
* configure.in: Make --enable-parallel-mark=yes the default.
2009-01-17 Zoltan Varga <[email protected]>
* configure.in: Complete the OPROFILE checks.
2009-01-16 Zoltan Varga <[email protected]>
* configure.in: Avoid error messages in the quiet code if libgc/Makefile
does not exist yet. Fixes #466814.
2009-01-09 Zoltan Varga <[email protected]>
* configure.in: Check for the existence of the gettext executables.
2008-01-08 Christian Prochnow <[email protected]>
* configure.in: Check for sys/statfs.h and sys/mount.h
2009-01-07 Geoff Norton <[email protected]>
* configure.in: Provide platform information to the mcs build tree
2009-01-06 Jb Evain <[email protected]>
* scripts/Makefile.am: don't generate a script for the now
dead mono-api-diff.
2008-12-05 Jonathan Pryor <[email protected]>
* man/mdoc-update.1: Document -fno-assembly-versions.
2009-01-05 Zoltan Varga <[email protected]>
* configure.in: Disable sigaltstack on freebsd as it doesn't seem to work.
2008-12-16 Marek Habersack <[email protected]>
* data/system.web.extensions.design_1.0.pc.in: added
* data/Makefile.am (EXTRA_DIST): added
system.web.extensions.design_1.0.pc.in. Also added to
pkgconfig_DATA
* configure.in: added data/system.web.extensions_1.0.pc to
AC_OUTPUT
2008-12-16 Bill Holmes <[email protected]>
* winconfig.h : Defining the SIZEOF_REGISTER variable for the MSVC builds.
Code is contributed under MIT/X11 license.
2008-12-15 Marek Habersack <[email protected]>
* data/Makefile.am (EXTRA_DIST): added
system.web.extensions_1.0.pc.in. Also added to pkgconfig_DATA
* data/system.web.extensions_1.0.pc.in: added. This file serves
the purpose of making MonoDevelop see the 1.0 version of the
System.Web.Extensions assembly in the project references
editor. This will also make legacy 2.0 ASP.NET apps not fail when
they reference the 1.0 version of the assembly in their project
files.
* configure.in: added data/system.web.extensions_1.0.pc to AC_OUTPUT
2008-12-11 Mark Mason <[email protected]>
* configure.in: introduce SIZEOF_REGISTER - usually ==SIZEOF_VOID_P, except on mips/n32
2008-12-05 Marek Habersack <[email protected]>
* configure.in: check whether round (3) and rint (3) are present
in the C library.
2008-12-05 Jonathan Pryor <[email protected]>
* man/mdoc-update.1: Document new parameters such as --exceptions.
2008-12-04 Mark Probst <[email protected]>
* configure.in: Disabling the sibling call optimization doesn't
work, so we're using -mminimal-toc.
2008-12-03 Mark Probst <[email protected]>
* configure.in: Disable sibling call optimization on PPC64 as it
seems to trip up GCC on the build bot.
2008-11-28 Atsushi Enomoto <[email protected]>
* data/mono-nunit.pc.in : add new 2.4.8 files.
2008-11-21 Jb Evain <[email protected]>
* scripts/Makefile.am: use only one mono-api-info pointing to the cecil one
which is mscorlib agnostic.
2008-11-21 Zoltan Varga <[email protected]>
* configure.in: Only enable AOT on linux. Fixes #447265.
2008-11-19 Jonathan Pryor <[email protected]>
* configure.in: Remove mono/monoburg/Makefile; fixes the build.
2008-11-14 Andreas Färber <[email protected]>
* configure.in: Add preprocessor defines for ppc(64).
Suggested by Paolo and Mark.
Contributed under MIT/X11 license.
2008-11-12 Zoltan Varga <[email protected]>
* configure.in: Add an ENABLE_AOT variable to config.make, currently only
enabled for AMD64.
2008-11-11 Zoltan Varga <[email protected]>
* configure.in: Bump version to 2.3.
Mon Nov 10 17:37:08 CET 2008 Paolo Molaro <[email protected]>
+2 -2
View File
@@ -37,8 +37,8 @@ For comments, corrections and updates, please contact [email protected]
We consider non-LGPL use instances where you use this on an
embedded system where the end user is not able to upgrade the
Moonlight installation or distribution that is part of your
product (Section 6 and 7), you would have to obtain a
Mono VM or Moonlight installation or distribution that is part
of your product (Section 6 and 7), you would have to obtain a
commercial license from Novell (consider software burned into
a ROM, systems where end users would not be able to upgrade,
an embedded console, a game console that imposes limitations
+1 -1
View File
@@ -7,7 +7,7 @@ SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runt
## 'tools' is not normally built
DIST_SUBDIRS = po libgc $(eglib_dir) mono ikvm-native support data runtime scripts man samples web tools msvc docs
EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in dtrace-prelink.sh build-mingw32.sh LICENSE mkinstalldirs
EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LICENSE mkinstalldirs
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
+1 -1
View File
@@ -23,7 +23,7 @@ if test x$GCC != xyes; then
fi
case $host in
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*)
pic_options='-fPIC'
;;
i?86-apple-darwin*)
+110 -27
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.1)
AM_INIT_AUTOMAKE(mono,2.5)
AM_MAINTAINER_MODE
API_VER=1.0
@@ -64,10 +64,13 @@ need_link_unlink=no
AC_MSG_CHECKING([host platform characteristics])
libgc_threads=no
has_dtrace=no
parallel_mark=yes
case "$host" in
*-*-mingw*|*-*-cygwin*)
platform_win32=yes
AC_DEFINE(PLATFORM_WIN32,1,[Platform 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"
# So libgc configure gets -mno-cygwin
@@ -97,6 +100,7 @@ case "$host" in
libdl="-ldl"
libgc_threads=pthreads
with_sigaltstack=no
use_sigposix=yes
;;
*-*-*freebsd*)
platform_win32=no
@@ -119,15 +123,17 @@ case "$host" in
AC_DEFINE(PTHREAD_POINTER_ID, 1, [pthread is a pointer])
libdl=
libgc_threads=pthreads
with_sigaltstack=yes
# This doesn't seem to work as of 7.0 on amd64
with_sigaltstack=no
# TLS is only partially implemented on -CURRENT (compiler support
# but NOT library support)
#
with_tls=pthread
use_sigposix=yes
;;
*-*-*openbsd*)
platform_win32=no
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS"
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS -DPLATFORM_BSD"
libmono_cflags="-D_THREAD_SAFE"
LDFLAGS="$LDFLAGS -pthread"
libmono_ldflags="-pthread"
@@ -135,6 +141,7 @@ case "$host" in
AC_DEFINE(PTHREAD_POINTER_ID)
libdl=
libgc_threads=pthreads
use_sigposix=yes
;;
*-*-linux*)
platform_win32=no
@@ -143,9 +150,11 @@ case "$host" in
libmono_ldflags="-lpthread"
libdl="-ldl"
libgc_threads=pthreads
AOT_SUPPORTED="yes"
use_sigposix=yes
;;
*-*-hpux*)
platform_win32=no
platform_win32=no
CPPFLAGS="$CPPFLAGS -DGC_HPUX_THREADS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT"
# +ESdbgasm only valid on bundled cc on RISC
# silently ignored for ia64
@@ -161,6 +170,7 @@ case "$host" in
libmono_ldflags="-lpthread"
libgc_threads=pthreads
need_link_unlink=yes
use_sigposix=yes
;;
*-*-solaris*)
platform_win32=no
@@ -171,9 +181,12 @@ case "$host" in
# This doesn't seem to work on solaris/x86, but the configure test runs
with_tls=pthread
has_dtrace=yes
use_sigposix=yes
;;
*-*-darwin*)
parallel_mark="Disabled_Currently_Hangs_On_MacOSX"
platform_win32=no
platform_darwin=yes
CPPFLAGS="$CPPFLAGS -no-cpp-precomp -D_THREAD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP"
CPPFLAGS="$CPPFLAGS -DGetCurrentProcess=MonoGetCurrentProcess -DGetCurrentThread=MonoGetCurrentThread -DCreateEvent=MonoCreateEvent"
libmono_cflags="-D_THREAD_SAFE"
@@ -204,6 +217,8 @@ fi
AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
AM_CONDITIONAL(PLATFORM_LINUX, echo x$target_os | grep -q linux)
AM_CONDITIONAL(PLATFORM_DARWIN, test x$platform_darwin = xyes)
AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes)
AC_CHECK_TOOL(CC, gcc, gcc)
AC_PROG_CC
@@ -265,7 +280,7 @@ 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)
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_HEADER(zlib.h, [have_zlib=yes], [have_zlib=no])
if test x$have_zlib = xyes; then
@@ -319,7 +334,7 @@ AC_CHECK_SIZEOF(void *, 4)
WARN=''
if test x"$GCC" = xyes; then
WARN='-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings'
WARN='-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings'
# The runtime code does not respect ANSI C strict aliasing rules
CFLAGS="$CFLAGS -fno-strict-aliasing"
@@ -390,6 +405,14 @@ fi
# we do not configure the full gettext, as we consume it dynamically from C#
AM_PO_SUBDIRS
if test "x$USE_NLS" = "xyes"; then
AC_CHECK_PROG(HAVE_MSGFMT, msgfmt,yes,no)
if test "x$HAVE_MSGFMT" = "xno"; then
AC_MSG_ERROR([msgfmt not found. You need to install the 'gettext' package, or pass --enable-nls=no to configure.])
fi
fi
AC_ARG_WITH([libgdiplus],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to NO)],
[], [with_libgdiplus=installed])
@@ -629,7 +652,7 @@ AC_TRY_COMPILE([], [
AC_MSG_RESULT(no)
])
AC_ARG_ENABLE(parallel-mark, [ --enable-parallel-mark Enables GC Parallel Marking])
AC_ARG_ENABLE(parallel-mark, [ --enable-parallel-mark Enables GC Parallel Marking], enable_parallel_mark=$enableval, enable_parallel_mark=$parallel_mark)
if test x$enable_parallel_mark = xyes; then
libgc_configure_args="$libgc_configure_args --enable-parallel-mark"
fi
@@ -1350,6 +1373,7 @@ if test x$platform_win32 = xno; then
AC_CHECK_HEADERS(net/if.h)
AC_MSG_CHECKING(for ifreq)
AC_TRY_COMPILE([
#include <stdio.h>
#include <sys/ioctl.h>
#include <net/if.h>
], [
@@ -1404,9 +1428,12 @@ if test x$platform_win32 = xno; then
AC_CHECK_HEADERS(sys/extattr.h)
AC_CHECK_HEADERS(sys/sendfile.h)
AC_CHECK_HEADERS(sys/statvfs.h)
AC_CHECK_HEADERS(sys/statfs.h)
AC_CHECK_HEADERS(sys/vfstab.h)
AC_CHECK_HEADERS(sys/xattr.h)
AC_CHECK_HEADERS(sys/mman.h)
AC_CHECK_HEADERS(sys/param.h)
AC_CHECK_HEADERS(sys/mount.h)
AC_CHECK_FUNCS(getdomainname)
AC_CHECK_FUNCS(setdomainname)
AC_CHECK_FUNCS(fgetgrent)
@@ -1582,6 +1609,9 @@ if test "x$ac_cv_truncl" != "xyes"; then
AC_CHECK_LIB(sunmath, aintl, [ AC_DEFINE(HAVE_AINTL, 1, [Has the 'aintl' function]) LIBS="$LIBS -lsunmath"])
fi
AC_CHECK_FUNCS(round)
AC_CHECK_FUNCS(rint)
dnl ****************************
dnl *** Look for /dev/random ***
dnl ****************************
@@ -1744,6 +1774,8 @@ SQLITE="libsqlite.so.0"
SQLITE3="libsqlite3.so.0"
X11="libX11.so"
sizeof_register="SIZEOF_VOID_P"
jit_wanted=false
interp_wanted=false
case "$host" in
@@ -1757,6 +1789,20 @@ case "$host" in
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
jit_wanted=true
AC_MSG_CHECKING(for mips n32)
AC_TRY_COMPILE([], [
void main () {
#if _MIPS_SIM != _ABIN32
#error Not mips n32
#endif
}
],[
AC_MSG_RESULT(yes)
sizeof_register=8
],[
AC_MSG_RESULT(no)
])
;;
i*86-*-*)
TARGET=X86;
@@ -1865,8 +1911,11 @@ case "$host" in
powerpc-*-sysv* | powerpc-*-darwin* | powerpc-*-netbsd* )
if test "x$ac_cv_sizeof_void_p" = "x8"; then
TARGET=POWERPC64;
CPPFLAGS="$CPPFLAGS -D__mono_ppc__ -D__mono_ppc64__"
CFLAGS="$CFLAGS -mminimal-toc"
else
TARGET=POWERPC;
CPPFLAGS="$CPPFLAGS -D__mono_ppc__"
fi
AC_DEFINE(MONO_ARCH_REGPARMS,1,[Architecture uses registers for Parameters])
arch_target=ppc;
@@ -1909,6 +1958,14 @@ case "$host" in
;;
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
AC_DEFINE(SIZEOF_REGISTER,8,[size of machine integer registers])
else
AC_DEFINE(SIZEOF_REGISTER,SIZEOF_VOID_P,[size of machine integer registers])
fi
if test "x$have_visibility_hidden" = "xyes"; then
AC_DEFINE(HAVE_VISIBILITY_HIDDEN, 1, [Support for the visibility ("hidden") attribute])
fi
@@ -2105,12 +2162,16 @@ AC_ARG_WITH(moonlight,[ --with-moonlight=yes,no If you want to build the Moonl
])
OPROFILE=no
AC_ARG_WITH(oprofile,[ --with-oprofile=no,<path> 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=yes
OPROFILE_CFLAGS="-I$with_oprofile/include"
OPROFILE_LIBS=
AC_DEFINE(HAVE_OPROFILE,1,[Have oprofile support])
oprofile_include=$with_oprofile/include
if test ! -f $oprofile_include/opagent.h; then
AC_MSG_ERROR([oprofile include file not found at $oprofile_include/opagent.h])
fi
OPROFILE=yes
OPROFILE_CFLAGS="-I$oprofile_include"
OPROFILE_LIBS="-L$with_oprofile/lib/oprofile -lopagent"
AC_DEFINE(HAVE_OPROFILE,1,[Have oprofile support])
fi
])
@@ -2122,6 +2183,14 @@ AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each
fi
])
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)],[
if test x$with_mcs_docs != xyes; then
DISABLE_MCS_DOCS=yes
fi
])
AM_CONDITIONAL(HAVE_OPROFILE, test x$OPROFILE = xyes)
AC_SUBST(OPROFILE_CFLAGS)
AC_SUBST(OPROFILE_LIBS)
@@ -2261,7 +2330,7 @@ AC_CONFIG_COMMANDS([runtime/etc/mono/2.0/Browsers/Compat.browser],
],[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 $srcdir/scripts/patch-quiet.sh $i; done], [shell=$SHELL])
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])
fi
@@ -2299,7 +2368,6 @@ mono/tests/cas/inheritance/Makefile
mono/tests/cas/linkdemand/Makefile
mono/tests/cas/threads/Makefile
mono/benchmark/Makefile
mono/monoburg/Makefile
mono/monograph/Makefile
mono/io-layer/Makefile
mono/mini/Makefile
@@ -2325,6 +2393,8 @@ 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
samples/Makefile
support/Makefile
data/config
@@ -2387,6 +2457,14 @@ fi
echo "MONO_VERSION = $myver" >> $srcdir/$mcsdir/build/config.make
fi
if test x$platform_darwin = xyes; then
echo "PLATFORM = darwin" >> $srcdir/$mcsdir/build/config.make
fi
if test x$TARGET = xAMD64 -a x$platform_win32 = xno -a "x$AOT_SUPPORTED" = "xyes"; then
echo "ENABLE_AOT = 1" >> $srcdir/$mcsdir/build/config.make
fi
# if we have an olive folder, override the default settings
if test -d $olivedir; then
@@ -2404,6 +2482,10 @@ fi
fi
fi
fi
if test x$DISABLE_MCS_DOCS = xyes; then
echo "DISABLE_MCS_DOCS = yes" >> $srcdir/$mcsdir/build/config.make
fi
)
libgdiplus_msg=${libgdiplus_loc:-assumed to be installed}
@@ -2412,23 +2494,24 @@ echo "
mcs source: $mcs_topdir
olive source: $olive_topdir
GC: $gc
TLS: $with_tls
SIGALTSTACK: $with_sigaltstack
Engine: $jit_status
2.0 Beta: $PREVIEW
2.1 Alpha: $MOONLIGHT
JNI support: $jdk_headers_found
libgdiplus: $libgdiplus_msg
zlib: $zlib_msg
oprofile: $OPROFILE
BigArrays: $enable_big_arrays
DTrace: $enable_dtrace
GC: $gc
TLS: $with_tls
SIGALTSTACK: $with_sigaltstack
Engine: $jit_status
2.0 Beta: $PREVIEW
2.1 Alpha: $MOONLIGHT
JNI support: $jdk_headers_found
libgdiplus: $libgdiplus_msg
zlib: $zlib_msg
oprofile: $OPROFILE
BigArrays: $enable_big_arrays
DTrace: $enable_dtrace
Parallel Mark: $enable_parallel_mark
$disabled
"
if test x$with_static_mono = xno -a "x$platform_win32" != "xyes"; then
AC_MSG_WARN(Turning off static Mono is a risk, you might run into unexepcted bugs)
AC_MSG_WARN(Turning off static Mono is a risk, you might run into unexpected bugs)
fi
if test x$gc = xsgen; then
+8 -4
View File
@@ -7,21 +7,25 @@ EXTRA_DIST = \
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-lineeditor.pc.in
mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
dtrace-prelink.sh
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
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
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
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
endif
else
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.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
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
mono_DATA = config \
browscap.ini
File renamed without changes.
+22
View File
@@ -0,0 +1,22 @@
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
+181
View File
@@ -0,0 +1,181 @@
#
# 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.Type ("guint64"))) == 0:
return "null"
obj = self.val.cast (gdb.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 ())
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"
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.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):
self.val = val
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 ()
return (field.name, self.obj [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:
return {}.__iter__ ()
try:
obj = self.val.cast (gdb.Type ("MonoObject").pointer ()).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))
return self._iterator(obj.cast (gdb_type))
except:
return {}.__iter__ ()
def to_string(self):
if int(self.val.cast (gdb.Type ("guint64"))) == 0:
return "null"
try:
obj = self.val.cast (gdb.Type ("MonoObject").pointer ()).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.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.Type ("guint64"))
def register_csharp_printers(obj):
"Register C# pretty-printers with objfile Obj."
if obj == None:
obj = gdb
obj.pretty_printers['object'] = ObjectPrinter
obj.pretty_printers['string'] = StringPrinter
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 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 ()
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)))
+20
View File
@@ -0,0 +1,20 @@
# Loaded by mono-gdb.py
# FIXME: According to gdb docs, this is called _before_ anything is printed
# Got broken by this patch:
# http://sourceware.org/ml/gdb-patches/2008-09/msg00193.html
# FIXME: This seems to cause crashes inside gdb
#define hook-stop
# python mono_support.stop_hook ()
#end
define hook-backtrace
python mono_support.stop_hook ()
end
define hook-run
python mono_support.run_hook ()
end
define xdb
python mono_support.stop_hook ()
end
+1 -1
View File
@@ -6,4 +6,4 @@ libdir=${exec_prefix}/lib
Name: Mono NUnit
Description: Mono's version of NUnit
Version: @VERSION@
Libs: -r:${libdir}/mono/1.0/nunit.core.dll -r:${libdir}/mono/1.0/nunit.framework.dll -r:${libdir}/mono/1.0/nunit.util.dll
Libs: -r:${libdir}/mono/1.0/nunit.core.dll -r:${libdir}/mono/1.0/nunit.core.interfaces.dll -r:${libdir}/mono/1.0/nunit.core.extensions.dll -r:${libdir}/mono/1.0/nunit.framework.dll -r:${libdir}/mono/1.0/nunit.framework.extensions.dll -r:${libdir}/mono/1.0/nunit.mocks.dll -r:${libdir}/mono/1.0/nunit.util.dll -r:${libdir}/mono/1.0/nunit-console-runner.dll
+27
View File
@@ -1,3 +1,30 @@
2009-01-23 Atsushi Enomoto <[email protected]>
* web.config : added .svc handler.
2009-01-07 Kornél Pál <[email protected]>
* DefaultWsdlHelpGenerator.aspx: Move <script> at the end of <head> that
will make Visual Studio recognize the web service disco reference.
Contributed under MIT/X11 license.
2008-12-03 Marek Habersack <[email protected]>
* machine.config: rename serviceModelHostingEnvironment to
serviceHostingEnvironment.
2008-11-20 Gonzalo Paniagua Javier <[email protected]>
* machine.config: in 2.0, there's no <connectionManagement> section
here. Bug #445991 fixed.
2008-11-14 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: use javascript instead of
HttpWebRequest to avoid a deadlock if the web service uses Session.
Bug #444343 fixed.
2008-10-09 Gonzalo Paniagua Javier <[email protected]>
* web.config: default values for httpRuntime are different in 2.0
+92 -64
View File
@@ -329,21 +329,31 @@ class NoCheckCertificatePolicy : ICertificatePolicy {
}
}
string GetTestResult ()
{
if (!HasFormResult) return null;
string GetOrPost ()
{
return (CurrentOperationProtocols.IndexOf ("HttpGet") >= 0) ? "GET" : "POST";
}
string GetQS ()
{
bool fill = false;
string qs = "";
for (int n=0; n<Request.QueryString.Count; n++)
{
NameValueCollection query_string = Request.QueryString;
for (int n = 0; n < query_string.Count; n++) {
if (fill) {
if (qs != "") qs += "&";
qs += Request.QueryString.GetKey(n) + "=" + Server.UrlEncode (Request.QueryString [n]);
qs += query_string.GetKey(n) + "=" + Server.UrlEncode (query_string [n]);
}
if (Request.QueryString.GetKey(n) == "ext") fill = true;
if (query_string.GetKey(n) == "ext") fill = true;
}
return qs;
}
string GetTestResultUrl ()
{
if (!HasFormResult) return "";
string location = null;
ServiceDescription desc = descriptions [0];
Service service = desc.Services[0];
@@ -358,59 +368,7 @@ string GetTestResult ()
if (location == null)
return "Could not locate web service";
try
{
string url = location + "/" + CurrentOperationName;
Uri uri = new Uri (url);
WebRequest req;
if (CurrentOperationProtocols.IndexOf ("HttpGet") < 0) {
req = WebRequest.Create (url);
req.Method="POST";
if (!String.IsNullOrEmpty (qs)) {
req.ContentType = "application/x-www-form-urlencoded";
byte [] postBuffer = Encoding.UTF8.GetBytes (qs);
req.ContentLength = postBuffer.Length;
using (Stream requestStream = req.GetRequestStream())
requestStream.Write (postBuffer, 0, postBuffer.Length);
}
}
else
req = WebRequest.Create (url + "?" + qs);
if (url.StartsWith ("https:"))
ServicePointManager.CertificatePolicy = new NoCheckCertificatePolicy ();
HttpCookieCollection cookies = Request.Cookies;
int last = cookies.Count;
if (last > 0) {
CookieContainer container = new CookieContainer ();
for (int i = 0; i < last; i++) {
HttpCookie hcookie = cookies [i];
Cookie cookie = new Cookie (hcookie.Name, hcookie.Value, hcookie.Path, hcookie.Domain);
container.Add (uri, cookie);
}
((HttpWebRequest) req).CookieContainer = container;
}
WebResponse resp = req.GetResponse();
StreamReader sr = new StreamReader (resp.GetResponseStream());
string s = sr.ReadToEnd ();
sr.Close ();
return "<div class='code-xml'>" + ColorizeXml(WrapText(s,CodeTextColumns)) + "</div>";
}
catch (Exception ex)
{
string res = "<b style='color:red'>" + ex.Message + "</b>";
WebException wex = ex as WebException;
if (wex != null)
{
WebResponse resp = wex.Response;
if (resp != null) {
StreamReader sr = new StreamReader (resp.GetResponseStream());
string s = sr.ReadToEnd ();
sr.Close ();
res += "<div class='code-xml'>" + ColorizeXml(WrapText(s,CodeTextColumns)) + "</div>";
}
}
return res;
}
return location + "/" + CurrentOperationName;
}
string GenerateOperationMessages (string protocol, bool generateInput)
@@ -1590,7 +1548,73 @@ public class HtmlSampleGenerator: SampleGenerator
A:hover { color: blue }
</style>
<script>
<script language="javascript" type="text/javascript">
var req;
function getXML (command, url, qs) {
if (url == "" || url.substring (0, 4) != "http")
return;
var post_data = null;
req = getReq ();
req.onreadystatechange = stateChange;
if (command == "GET") {
url = url + "?" + qs;
} else {
post_data = qs;
}
req.open (command, url, true);
if (command == "POST")
req.setRequestHeader ("Content-Type", "application/x-www-form-urlencoded");
req.send (post_data);
}
function stateChange () {
if (req.readyState == 4) {
var node = document.getElementById("testresult_div");
var text = "";
if (req.status == 200) {
node.innerHTML = "<div class='code-xml'>" + formatXml (req.responseText) + "</div>";
} else {
var ht = "<b style='color: red'>" + formatXml (req.status + " - " + req.statusText) + "</b>";
if (req.responseText != "")
ht = ht + "\n<div class='code-xml'>" + formatXml (req.responseText) + "</div>";
node.innerHTML = ht;
}
}
}
function formatXml (text)
{
var re = / /g;
text = text.replace (re, "&nbsp;");
re = /\t/g;
text = text.replace (re, "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
re = /\<\s*(\/?)\s*(.*?)\s*(\/?)\s*\>/g;
text = text.replace (re,"{blue:&lt;$1}{maroon:$2}{blue:$3&gt;}");
re = /{(\w*):(.*?)}/g;
text = text.replace (re,"<span style='color:$1'>$2</span>");
re = /"(.*?)"/g;
text = text.replace (re,"\"<span style='color:purple'>$1</span>\"");
re = /\r\n|\r|\n/g;
text = text.replace (re, "<br/>");
return text;
}
function getReq () {
if (window.XMLHttpRequest) {
return new XMLHttpRequest(); // Firefox, Safari, ...
} else if (window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP");
}
}
function clearForm ()
{
document.getElementById("testFormResult").style.display="none";
@@ -1747,7 +1771,11 @@ This service does not contain any public web method.
</form>
<div id="testFormResult" style="display:<%= (HasFormResult?"block":"none") %>">
The web service returned the following result:<br/><br/>
<div class="codePanel"><%=GetTestResult()%></div>
<div class="codePanel" id="testresult_div">
</div>
<script language="javascript">
getXML ("<%= GetOrPost () %>", "<%= GetTestResultUrl () %>", "<%= GetQS () %>");
</script>
</div>
<% } else {%>
The test form is not available for this operation because it has parameters with a complex structure.
+1 -4
View File
@@ -81,7 +81,7 @@
<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="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceModelHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, 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" />
@@ -102,9 +102,6 @@
</configProtectedData>
<system.net>
<connectionManagement>
<add address="*" maxconnection="2" />
</connectionManagement>
<authenticationModules>
<add type="System.Net.BasicClient, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.DigestClient, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+3 -2
View File
@@ -37,8 +37,9 @@
<add verb="*" path="*.vbproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.licx" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.dll" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.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="*.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=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpHandlers>
@@ -0,0 +1,4 @@
Name: System.Web.Extensions.Design
Description: System.Web.Extensions.Design ASP.NET 2.0 add-on
Version: 1.0.61025.0
Libs: -r:@prefix@/lib/mono/gac/System.Web.Extensions.Design/1.0.61025.0__31bf3856ad364e35/System.Web.Extensions.Design.dll
+4
View File
@@ -0,0 +1,4 @@
Name: System.Web.Extensions
Description: System.Web.Extensions ASP.NET 2.0 add-on
Version: 1.0.61025.0
Libs: -r:@prefix@/lib/mono/gac/System.Web.Extensions/1.0.61025.0__31bf3856ad364e35/System.Web.Extensions.dll
+69
View File
@@ -1,3 +1,72 @@
2009-02-12 Zoltan Varga <[email protected]>
* Makefile.am (EXTRA_DIST): Remove removed files.
* README: Point to the documentation on the wiki.
* call-sites.txt: Remove this, its contents is in jit-trampolines.
* memory-management.txt thread-safety.txt aot-compiler.txt jit-regalloc
exception-handling.txt: Remove documents which are now on the wiki.
2009-02-11 Rodrigo Kumpera <[email protected]>
* thread-safety.txt: Improve the docs about image lock.
2009-02-11 Rodrigo Kumpera <[email protected]>
* thread-safety.txt: Document the new image lock.
2008-12-12 Mark Probst <[email protected]>
* mini-porting.txt: Added some details about function descriptors
and emulated opcodes.
2008-12-08 Jonathan Pryor <[email protected]>
* mono-file-formats.source, mono-tools.source: Place these under the
new "Commands and Files" node, and remove nay intermediate nodes.
2008-11-20 Jonathan Pryor <[email protected]>
* Makefile.am (sources_DATA): Add mono-file-formats.source,
mono-tools.source.
2008-11-20 Raja R Harinath <[email protected]>
Remove unnecessary rebuilds of the html directory
* docs.make (monoapi.zip): Make slightly more unforgiving, by
using '&&' instead of ';' to sequence commands.
(mono-tools.zip, mono-file-formats.zip): Likewise.
* Makefile.am (monoapi.zip, mono-tools.zip, mono-fileformats.zip):
Likewise.
(convert.exe): Don't depend on Makefile.am or docs.make.
2008-11-19 Raja R Harinath <[email protected]>
Fix srcdir != builddir, and add idiom for multi-output commands
* docs.make (monoapi.zip): Handle the case where 'monoapi.tree'
exists but 'monoapi.zip' doesn't. IOW, we should rebuild
monoapi.zip with 'rm monoapi.zip; make'.
(mono-tools.zip, mono-file-formats.zip): Likewise.
* Makefile.am (monoapi.zip, mono-tools.zip, mono-fileformats.zip):
Likewise.
(monoapi.tree): Don't use $< in an explicit rule.
(mono-tools.tree, mono-file-formats.tree): Likewise.
2008-11-18 Jonathan Pryor <[email protected]>
* Makefile.am (EXTRA_DIST): Add mono-file-formats{.config,.source} and
mono-tools{.config,.source} (fixes the build).
2008-11-18 Jonathan Pryor <[email protected]>
* docs.make, Makefile.am: Build mono-file-formats{.tree,.zip},
mono-tool{.tree,.zip} files.
* mono-file-formats.config, mono-tools.config: Alter paths to man
pages so that they're valid for building from mono/docs.
* monoapi.make: Rename to docs.make.
2008-11-01 Raja R Harinath <[email protected]>
* Makefile.am: Clean up for srcdir != builddir.
+26 -10
View File
@@ -1,16 +1,19 @@
sourcesdir = $(prefix)/lib/monodoc/sources
sources_DATA = \
mono-file-formats.source \
mono-tools.source \
monoapi.source \
$(ASSEMBLED_DOCS)
ASSEMBLED_DOCS = \
mono-file-formats.tree mono-file-formats.zip \
mono-tools.tree mono-tools.zip \
monoapi.tree monoapi.zip
EXTRA_DIST = \
abc-removal.txt \
AgilityPack.dll \
aot-compiler.txt \
api-style.css \
assembly-bundle \
check-exports \
@@ -18,9 +21,9 @@ EXTRA_DIST = \
convert.cs \
current-api \
deploy \
docs.make \
documented \
embedded-api \
exception-handling.txt \
exceptions \
exdoc \
file-share-modes \
@@ -31,7 +34,6 @@ EXTRA_DIST = \
internal-calls \
ir-desc \
jit-imt \
jit-regalloc \
jit-thoughts \
jit-trampolines \
local-regalloc.txt \
@@ -39,8 +41,11 @@ EXTRA_DIST = \
mini-doc.txt \
mini-porting.txt \
mono-api-metadata.html \
mono-file-formats.config\
mono-file-formats.source\
mono_handle_d \
monoapi.make \
mono-tools.config \
mono-tools.source \
monoapi.source \
new-regalloc \
object-layout \
@@ -55,7 +60,6 @@ EXTRA_DIST = \
ssapre.txt \
stack-alignment \
stack-overflow.txt \
thread-safety.txt \
threading \
toc.xml \
TODO \
@@ -73,9 +77,21 @@ clean-local:
-rm -f $(srcdir)/deploy/* $(srcdir)/convert.exe*
-cd $(srcdir) && rm -f $(ASSEMBLED_DOCS)
monoapi.tree monoapi.zip: monoapi.make Makefile.am toc.xml $(srcdir)/deploy/.stamp
cp $(srcdir)/api-style.css $(srcdir)/deploy/
cd $(srcdir) && $(MAKE) -f monoapi.make topdir=$(mcs_topdir_from_srcdir) assemble
monoapi.zip: monoapi.tree
@test -f $@ || { rm -f $(srcdir)/monoapi.tree && $(MAKE) monoapi.tree; }
monoapi.tree: docs.make Makefile.am toc.xml $(srcdir)/deploy/.stamp
cd $(srcdir) && cp api-style.css deploy
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
mono-tools.zip: mono-tools.tree
@test -f $@ || { rm -f $(srcdir)/mono-tools.tree && $(MAKE) mono-tools.tree; }
mono-tools.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
mono-file-formats.zip: mono-file-formats.tree
@test -f $@ || { rm -f $(srcdir)/mono-file-formats.tree && $(MAKE) mono-file-formats.tree; }
mono-file-formats.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
$(srcdir)/deploy/.stamp: convert.exe Makefile.am
$(mkdir_p) $(srcdir)/html
@@ -85,6 +101,6 @@ $(srcdir)/deploy/.stamp: convert.exe Makefile.am
extract: $(srcdir)/deploy/.stamp
convert.exe: monoapi.make convert.cs Makefile.am
cd $(srcdir) && $(MAKE) -f monoapi.make topdir=$(mcs_topdir_from_srcdir) convert.exe
convert.exe: convert.cs AgilityPack.dll
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) convert.exe
+6
View File
@@ -1,3 +1,9 @@
Documentation is now maintained on the mono wiki:
http://www.mono-project.com/Mono:Runtime:Documentation
Older documents or documents which were not yet migrated to the wiki are kept here.
* Scripts to maintain the Mono VM internal API
Layout
-393
View File
@@ -1,393 +0,0 @@
Mono Ahead Of Time Compiler
===========================
The Ahead of Time compilation feature in Mono allows Mono to
precompile assemblies to minimize JIT time, reduce memory
usage at runtime and increase the code sharing across multiple
running Mono application.
To precompile an assembly use the following command:
mono --aot -O=all assembly.exe
The `--aot' flag instructs Mono to ahead-of-time compile your
assembly, while the -O=all flag instructs Mono to use all the
available optimizations.
* Caching metadata
------------------
Besides code, the AOT file also contains cached metadata information which allows
the runtime to avoid certain computations at runtime, like the computation of
generic vtables. This reduces both startup time, and memory usage. It is possible
to create an AOT image which contains only this cached information and no code by
using the 'metadata-only' option during compilation:
mono --aot=metadata-only assembly.exe
This works even on platforms where AOT is not normally supported.
* Position Independent Code
---------------------------
On x86 and x86-64 the code generated by Ahead-of-Time compiled
images is position-independent code. This allows the same
precompiled image to be reused across multiple applications
without having different copies: this is the same way in which
ELF shared libraries work: the code produced can be relocated
to any address.
The implementation of Position Independent Code had a
performance impact on Ahead-of-Time compiled images but
compiler bootstraps are still faster than JIT-compiled images,
specially with all the new optimizations provided by the Mono
engine.
* How to support Position Independent Code in new Mono Ports
------------------------------------------------------------
Generated native code needs to reference various runtime
structures/functions whose address is only known at run
time. JITted code can simple embed the address into the native
code, but AOT code needs to do an indirection. This
indirection is done through a table called the Global Offset
Table (GOT), which is similar to the GOT table in the Elf
spec. When the runtime saves the AOT image, it saves some
information for each method describing the GOT table entries
used by that method. When loading a method from an AOT image,
the runtime will fill out the GOT entries needed by the
method.
* Computing the address of the GOT
Methods which need to access the GOT first need to compute its
address. On the x86 it is done by code like this:
call <IP + 5>
pop ebx
add <OFFSET TO GOT>, ebx
<save got addr to a register>
The variable representing the got is stored in
cfg->got_var. It is allways allocated to a global register to
prevent some problems with branches + basic blocks.
* Referencing GOT entries
Any time the native code needs to access some other runtime
structure/function (i.e. any time the backend calls
mono_add_patch_info ()), the code pointed by the patch needs
to load the value from the got. For example, instead of:
call <ABSOLUTE ADDR>
it needs to do:
call *<OFFSET>(<GOT REG>)
Here, the <OFFSET> can be 0, it will be fixed up by the AOT compiler.
For more examples on the changes required, see
svn diff -r 37739:38213 mini-x86.c
* The Program Linkage Table
As in ELF, calls made from AOT code do not go through the GOT. Instead, a direct call is
made to an entry in the Program Linkage Table (PLT). This is based on the fact that on
most architectures, call instructions use a displacement instead of an absolute address, so
they are already position independent. An PLT entry is usually a jump instruction, which
initially points to some trampoline code which transfers control to the AOT loader, which
will compile the called method, and patch the PLT entry so that further calls are made
directly to the called method.
If the called method is in the same assembly, and does not need initialization (i.e. it
doesn't have GOT slots etc), then the call is made directly, bypassing the PLT.
* Implementation
----------------
** The Precompiled File Format
-----------------------------
We use the native object format of the platform. That way it
is possible to reuse existing tools like objdump and the
dynamic loader. All we need is a working assembler, i.e. we
write out a text file which is then passed to gas (the gnu
assembler) to generate the object file.
The precompiled image is stored in a file next to the original
assembly that is precompiled with the native extension for a shared
library (on Linux its ".so" to the generated file).
For example: basic.exe -> basic.exe.so; corlib.dll -> corlib.dll.so
To avoid symbol lookup overhead and to save space, some things like the
compiled code of the individual methods are not identified by specific symbols
like method_code_1234. Instead, they are stored in one big array and the
offsets inside this array are stored in another array, requiring just two
symbols. The offsets array is usually named 'FOO_offsets', where FOO is the
array the offsets refer to, like 'methods', and 'method_offsets'.
Generating code using an assembler and linker has some disadvantages:
- it requires GNU binutils or an equivalent package to be installed on the
machine running the aot compilation.
- it is slow.
There is some support in the aot compiler for directly emitting elf files, but
its not complete (yet).
The following things are saved in the object file and can be
looked up using the equivalent to dlsym:
mono_assembly_guid
A copy of the assembly GUID.
mono_aot_version
The format of the AOT file format.
mono_aot_opt_flags
The optimizations flags used to build this
precompiled image.
method_infos
Contains additional information needed by the runtime for using the
precompiled method, like the GOT entries it uses.
method_info_offsets
Maps method indexes to offsets in the method_infos array.
mono_icall_table
A table that lists all the internal calls
references by the precompiled image.
mono_image_table
A list of assemblies referenced by this AOT
module.
methods
The precompiled code itself.
method_offsets
Maps method indexes to offsets in the methods array.
ex_info
Contains information about methods which is rarely used during normal execution,
like exception and debug info.
ex_info_offsets
Maps method indexes to offsets in the ex_info array.
class_info
Contains precomputed metadata used to speed up various runtime functions.
class_info_offsets
Maps class indexes to offsets in the class_info array.
class_name_table
A hash table mapping class names to class indexes. Used to speed up
mono_class_from_name ().
plt
The Program Linkage Table
plt_info
Contains information needed to find the method belonging to a given PLT entry.
** Source file structure
-----------------------------
The AOT infrastructure is split into two files, aot-compiler.c and
aot-runtime.c. aot-compiler.c contains the AOT compiler which is invoked by
--aot, while aot-runtime.c contains the runtime support needed for loading
code and other things from the aot files.
** Compilation process
----------------------------
AOT compilation consists of the following stages:
- collecting the methods to be compiled.
- compiling them using the JIT.
- emitting the JITted code and other information into an assembly file (.s).
- assembling the file using the system assembler.
- linking the resulting object file into a shared library using the system
linker.
** Handling compiled code
----------------------------
Each method is identified by a method index. For normal methods, this is
equivalent to its index in the METHOD metadata table. For runtime generated
methods (wrappers), it is an arbitrary number.
Compiled code is created by invoking the JIT, requesting it to created AOT
code instead of normal code. This is done by the compile_method () function.
The output of the JIT is compiled code and a set of patches (relocations). Each
relocation specifies an offset inside the compiled code, and a runtime object
whose address is accessed at that offset.
Patches are described by a MonoJumpInfo structure. From the perspective
of the AOT compiler, there are two kinds of patches:
- calls, which require an entry in the PLT table.
- everything else, which require an entry in the GOT table.
How patches is handled is described in the next section.
After all the method are compiled, they are emitted into the output file into
a byte array called 'methods', The emission
is done by the emit_method_code () and emit_and_reloc_code () functions. Each
piece of compiled code is identified by the local symbol .Lm_<method index>.
While compiled code is emitted, all the locations which have an associated patch
are rewritten using a platform specific process so the final generated code will
refer to the plt and got entries belonging to the patches.
The compiled code array
can be accessed using the 'methods' global symbol.
** Handling patches
----------------------------
Before a piece of AOTed code can be used, the GOT entries used by it must be
filled out with the addresses of runtime objects. Those objects are identified
by MonoJumpInfo structures. These stuctures are saved in a serialized form in
the AOT file, so the AOT loader can deconstruct them. The serialization is done
by the encode_patch () function, while the deserialization is done by the
decode_patch_info () function.
Every method has an associated method info blob inside the 'method_info' byte
array in the AOT file. This contains all the information required to load the
method at runtime:
- the first got entry used by the method.
- the number of got entries used by the method.
- the serialized patch info for the got entries.
Some patches, like vtables, icalls are very common, so instead of emitting their
info every time they are used by a method, we emit the info only once into a
byte array named 'got_info', and only emit an index into this array for every
access.
** The Procedure Linkage Table (PLT)
------------------------------------
Our PLT is similar to the elf PLT, it is used to handle calls between methods.
If method A needs to call method B, then an entry is allocated in the PLT for
method B, and A calls that entry instead of B directly. This is useful because
in some cases the runtime needs to do some processing the first time B is
called.
There are two cases:
- if B is in another assembly, then it needs to be looked up, then JITted or the
corresponding AOT code needs to be found.
- if B is in the same assembly, but has got slots, then the got slots need to be
initialized.
If none of these cases is true, then the PLT is not used, and the call is made
directly to the native code of the target method.
A PLT entry is usually implemented by a jump though a jump table, where the
jump table entries are initially filled up with the address of a trampoline so
the runtime can get control, and after the native code of the called method is
created/found, the jump table entry is changed to point to the native code.
All PLT entries also embed a integer offset after the jump which indexes into
the 'plt_info' table, which stores the information required to find the called
method. The PLT is emitted by the emit_plt () function.
** Exception/Debug info
----------------------------
Each compiled method has some additional info generated by the JIT, usable
for debugging (IL offset-native offset maps) and exception handling
(saved registers, native offsets of try/catch clauses). Since this info is
rarely needed, it is saved into a separate byte array called 'ex_info'.
** Cached metadata
---------------------------
When the runtime loads a class, it needs to compute a variety of information
which is not readily available in the metadata, like the instance size,
vtable, whenever the class has a finalizer/type initializer etc. Computing this
information requires a lot of time, causes the loading of lots of metadata,
and it usually involves the creation of many runtime data structures
(MonoMethod/MonoMethodSignature etc), which are long living, and usually persist
for the lifetime of the app. To avoid this, we compute the required information
at aot compilation time, and save it into the aot image, into an array called
'class_info'. The runtime can query this information using the
mono_aot_get_cached_class_info () function, and if the information is available,
it can avoid computing it.
** Full AOT mode
-------------------------
Some platforms like the iphone prohibit JITted code, using technical and/or
legal means. This is a significant problem for the mono runtime, since it
generates a lot of code dynamically, using either the JIT or more low-level
code generation macros. To solve this, the AOT compiler is able to function in
full-aot or aot-only mode, where it generates and saves all the neccesary code
in the aot image, so at runtime, no code needs to be generated.
There are two kinds of code which needs to be considered:
- wrapper methods, that is methods whose IL is generated dynamically by the
runtime. They are handled by generating them in the add_wrappers () function,
then emitting them the same way as the 'normal' methods. The only problem is
that these methods do not have a methoddef token, so we need a separate table
in the aot image ('wrapper_info') to find their method index.
- trampolines and other small hand generated pieces of code. They are handled
in an ad-hoc way in the emit_trampolines () function.
* Performance considerations
----------------------------
Using AOT code is a trade-off which might lead to higher or
slower performance, depending on a lot of circumstances. Some
of these are:
- AOT code needs to be loaded from disk before being used, so
cold startup of an application using AOT code MIGHT be
slower than using JITed code. Warm startup (when the code is
already in the machines cache) should be faster. Also,
JITing code takes time, and the JIT compiler also need to
load additional metadata for the method from the disk, so
startup can be faster even in the cold startup case.
- AOT code is usually compiled with all optimizations turned
on, while JITted code is usually compiled with default
optimizations, so the generated code in the AOT case should
be faster.
- JITted code can directly access runtime data structures and
helper functions, while AOT code needs to go through an
indirection (the GOT) to access them, so it will be slower
and somewhat bigger as well.
- When JITting code, the JIT compiler needs to load a lot of
metadata about methods and types into memory.
- JITted code has better locality, meaning that if A method
calls B, then the native code for A and B is usually quite
close in memory, leading to better cache behaviour thus
improved performance. In contrast, the native code of
methods inside the AOT file is in a somewhat random order.
* Future Work
-------------
- Currently, when an AOT module is loaded, all of its
dependent assemblies are also loaded eagerly, and these
assemblies need to be exactly the same as the ones loaded
when the AOT module was created ('hard binding'). Non-hard
binding should be allowed.
- On x86, the generated code uses call 0, pop REG, add
GOTOFFSET, REG to materialize the GOT address. Newer
versions of gcc use a separate function to do this, maybe we
need to do the same.
- Currently, we get vtable addresses from the GOT. Another
solution would be to store the data from the vtables in the
.bss section, so accessing them would involve less
indirection.
-27
View File
@@ -1,27 +0,0 @@
Call Sites
Extracted from emails from Paolo Molaro
There are 3 basic different kinds of call sites:
1) normal calls:
call relative_displacement
2) virtual calls:
call *positive_offset(%register)
3) interface calls:
mov constant, %imt_register
call *negative_offset(%register)
The above is what happens on x86 and amd64, with different values of
%imt_register for each arch (this register is a constant, but it could
change with different mono builds, it should be likely one of
constants the runtime comunicates to the debugger). %register can
change depending on the callsite based on the register allocator
choices. Note that the constant for the interface calls won't
necessarily be a MonoMethod address: this could change in the future
to a simple number.
In all the 3 cases the JIT trampolines will need to inspect the call
site, but only in the first case the call site will be changed.
+29
View File
@@ -0,0 +1,29 @@
thisdir = docs
SUBDIRS =
include $(topdir)/build/rules.make
ASSEMBLED_DOCS = \
mono-file-formats.tree mono-file-formats.zip \
mono-tools.tree mono-tools.zip \
monoapi.tree monoapi.zip
convert.exe: convert.cs AgilityPack.dll
$(CSCOMPILE) -out:$@ $< -r:AgilityPack.dll
monoapi.zip: monoapi.tree
@test -f $@ || { rm -f $< && $(MAKE) $<; }
monoapi.tree: toc.xml docs.make
$(MDOC) assemble -o monoapi -f hb $<
mono-tools.zip: mono-tools.tree
@test -f $@ || { rm -f $< && $(MAKE) $<; }
mono-tools.tree: mono-tools.config docs.make
$(MDOC) assemble -o mono-tools -f man $<
mono-file-formats.zip: mono-file-formats.tree
@test -f $@ || { rm -f $< && $(MAKE) $<; }
mono-file-formats.tree: mono-file-formats.config docs.make
$(MDOC) assemble -o mono-file-formats -f man $<
.doc-stamp:
-330
View File
@@ -1,330 +0,0 @@
Exception Handling In the Mono Runtime
--------------------------------------
* Introduction
--------------
There are many types of exceptions which the runtime needs to
handle. These are:
- exceptions thrown from managed code using the 'throw' or 'rethrow' CIL
instructions.
- exceptions thrown by some IL instructions like InvalidCastException thrown
by the 'castclass' CIL instruction.
- exceptions thrown by runtime code
- synchronous signals received while in managed code
- synchronous signals received while in native code
- asynchronous signals
Since exception handling is very arch dependent, parts of the
exception handling code reside in the arch specific
exceptions-<ARCH>.c files. The architecture independent parts
are in mini-exceptions.c. The different exception types listed
above are generated in different parts of the runtime, but
ultimately, they all end up in the mono_handle_exception ()
function in mini-exceptions.c.
* Exceptions throw programmatically from managed code
-----------------------------------------------------
These exceptions are thrown from managed code using 'throw' or
'rethrow' CIL instructions. The JIT compiler will translate
them to a call to a helper function called
'mono_arch_throw/rethrow_exception'.
These helper functions do not exist at compile time, they are
created dynamically at run time by the code in the
exceptions-<ARCH>.c files.
They perform various stack manipulation magic, then call a
helper function usually named throw_exception (), which does
further processing in C code, then calls
mono_handle_exception() to do the rest.
* Exceptions thrown implicitly from managed code
------------------------------------------------
These exceptions are thrown by some IL instructions when
something goes wrong. When the JIT needs to throw such an
exception, it emits a forward conditional branch and remembers
its position, along with the exception which needs to be
emitted. This is usually done in macros named
EMIT_COND_SYSTEM_EXCEPTION in the mini-<ARCH>.c files.
After the machine code for the method is emitted, the JIT
calls the arch dependent mono_arch_emit_exceptions () function
which will add the exception throwing code to the end of the
method, and patches up the previous forward branches so they
will point to this code.
This has the advantage that the rarely-executed exception
throwing code is kept separate from the method body, leading
to better icache performance.
The exception throwing code braches to the dynamically
generated mono_arch_throw_corlib_exception helper function,
which will create the proper exception object, does some stack
manipulation, then calls throw_exception ().
* Exceptions thrown by runtime code
-----------------------------------
These exceptions are usually thrown by the implementations of
InternalCalls (icalls). First an appropriate exception object
is created with the help of various helper functions in
metadata/exception.c, which has a separate helper function for
allocating each kind of exception object used by the runtime
code. Then the mono_raise_exception () function is called to
actually throw the exception. That function never returns.
An example:
if (something_is_wrong)
mono_raise_exception (mono_get_exception_index_out_of_range ());
mono_raise_exception () simply passes the exception to the JIT
side through an API, where it will be received by helper
created by mono_arch_throw_exception (). From now on, it is
treated as an exception thrown from managed code.
* Synchronous signals
---------------------
For performance reasons, the runtime does not do same checks
required by the CLI spec. Instead, it relies on the CPU to do
them. The two main checks which are omitted are null-pointer
checks, and arithmetic checks. When a null pointer is
dereferenced by JITted code, the CPU will notify the kernel
through an interrupt, and the kernel will send a SIGSEGV
signal to the process. The runtime installs a signal handler
for SIGSEGV, which is sigsegv_signal_handler () in mini.c. The
signal handler creates the appropriate exception object and
calls mono_handle_exception () with it. Arithmetic exceptions
like division by zero are handled similarly.
* Synchronous signals in native code
------------------------------------
Receiving a signal such as SIGSEGV while in native code means
something very bad has happened. Because of this, the runtime
will abort after trying to print a managed plus a native stack
trace. The logic is in the mono_handle_native_sigsegv ()
function.
Note that there are two kinds of native code which can be the
source of the signal:
- code inside the runtime
- code inside a native library loaded by an application, ie. libgtk+
* Stack overflow checking
-------------------------
Stack overflow exceptions need special handling. When a thread
overflows its stack, the kernel sends it a normal SIGSEGV
signal, but the signal handler tries to execute on the same as
the thread leading to a further SIGSEGV which will terminate
the thread. A solution is to use an alternative signal stack
supported by UNIX operating systems through the sigaltstack
(2) system call. When a thread starts up, the runtime will
install an altstack using the mono_setup_altstack () function
in mini-exceptions.c. When a SIGSEGV is received, the signal
handler checks whenever the fault address is near the bottom
of the threads normal stack. If it is, a
StackOverflowException is created instead of a
NullPointerException. This exception is handled like any other
exception, with some minor differences.
There are two reasons why sigaltstack is disabled by default:
* The main problem with sigaltstack() is that the stack
employed by it is not visible to the GC and it is possible
that the GC will miss it.
* Working sigaltstack support is very much os/kernel/libc
dependent, so it is disabled by default.
* Asynchronous signals
----------------------
Async signals are used by the runtime to notify a thread that
it needs to change its state somehow. Currently, it is used
for implementing thread abort/suspend/resume.
Handling async signals correctly is a very hard problem,
since the receiving thread can be in basically any state upon
receipt of the signal. It can execute managed code, native
code, it can hold various managed/native locks, or it can be
in a process of acquiring them, it can be starting up,
shutting down etc. Most of the C APIs used by the runtime are
not asynch-signal safe, meaning it is not safe to call them
from an async signal handler. In particular, the pthread
locking functions are not async-safe, so if a signal handler
interrupted code which was in the process of acquiring a lock,
and the signal handler tries to acquire a lock, the thread
will deadlock. Unfortunately, the current signal handling
code does acquire locks, so sometimes it does deadlock.
When receiving an async signal, the signal handler first tries
to determine whenever the thread was executing managed code
when it was interrupted. If it did, then it is safe to
interrupt it, so a ThreadAbortException is constructed and
thrown. If the thread was executing native code, then it is
generally not safe to interrupt it. In this case, the runtime
sets a flag then returns from the signal handler. That flag is
checked every time the runtime returns from native code to
managed code, and the exception is thrown then. Also, a
platform specific mechanism is used to cause the thread to
interrupt any blocking operation it might be doing.
The async signal handler is in sigusr1_signal_handler () in
mini.c, while the logic which determines whenever an exception
is safe to be thrown is in mono_thread_request_interruption
().
* Stack unwinding during exception handling
-------------------------------------------
The execution state of a thread during exception handling is
stored in an arch-specific structure called MonoContext. This
structure contains the values of all the CPU registers
relevant during exception handling, which usually means:
- IP (instruction pointer)
- SP (stack pointer)
- FP (frame pointer)
- callee saved registers
Callee saved registers are the registers which are required by
any procedure to be saved/restored before/after using
them. They are usually defined by each platforms ABI
(Application Binary Interface). For example, on x86, they are
EBX, ESI and EDI.
The code which calls mono_handle_exception () is required to
construct the initial MonoContext. How this is done depends on
the caller. For exceptions thrown from managed code, the
mono_arch_throw_exception helper function saves the values of
the required registers and passes them to throw_exception (),
which will save them in the MonoContext structure. For
exceptions thrown from signal handlers, the MonoContext
stucture is initialized from the signal info received from the
kernel.
During exception handling, the runtime needs to 'unwind' the
stack, i.e. given the state of the thread at a stack frame,
construct the state at its callers. Since this is platform
specific, it is done by a platform specific function called
mono_arch_find_jit_info ().
Two kinds of stack frames need handling:
- Managed frames are easier. The JIT will store some
information about each managed method, like which
callee-saved registers it uses. Based on this information,
mono_arch_find_jit_info () can find the values of the
registers on the thread stack, and restore them.
- Native frames are problematic, since we have no information
about how to unwind through them. Some compilers generate
unwind information for code, some don't. Also, there is no
general purpose library to obtain and decode this unwind
information. So the runtime uses a different solution. When
managed code needs to call into native code, it does through
a managed->native wrapper function, which is generated by
the JIT. This function is responsible for saving the machine
state into a per-thread structure called MonoLMF (Last
Managed Frame). These LMF structures are stored on the
threads stack, and are linked together using one of their
fields. When the unwinder encounters a native frame, it
simply pops one entry of the LMF 'stack', and uses it to
restore the frame state to the moment before control passed
to native code. In effect, all successive native frames are
skipped together.
Problems/future work
--------------------
1. Async signal safety
----------------------
The current async signal handling code is not async safe, so
it can and does deadlock in practice. It needs to be rewritten
to avoid taking locks at least until it can determine that it
was interrupting managed code.
Another problem is the managed stack frame unwinding code. It
blindly assumes that if the IP points into a managed frame,
then all the callee saved registers + the stack pointer are
saved on the stack. This is not true if the thread was
interrupted while executing the method prolog/epilog.
2. Raising exceptions from native code
--------------------------------------
Currently, exceptions are raised by calling
mono_raise_exception () in the middle of runtime code. This
has two problems:
- No cleanup is done, ie. if the caller of the function which
throws an exception has taken locks, or allocated memory,
that is not cleaned up. For this reason, it is only safe to
call mono_raise_exception () 'very close' to managed code,
ie. in the icall functions themselves.
- To allow mono_raise_exception () to unwind through native
code, we need to save the LMF structures which can add a lot
of overhead even in the common case when no exception is
thrown. So this is not zero-cost exception handling.
An alternative might be to use a JNI style
set-pending-exception API. Runtime code could call
mono_set_pending_exception (), then return to its caller with
an error indication allowing the caller to clean up. When
execution returns to managed code, then managed->native
wrapper could check whenever there is a pending exception and
throw it if neccesary. Since we already check for pending
thread interruption, this would have no overhead, allowing us
to drop the LMF saving/restoring code, or significant parts of
it.
4. libunwind
------------
There is an OSS project called libunwind which is a standalone
stack unwinding library. It is currently in development, but
it is used by default by gcc on ia64 for its stack
unwinding. The mono runtime also uses it on ia64. It has
several advantages in relation to our current unwinding code:
- it has a platform independent API, i.e. the same unwinding
code can be used on multiple platforms.
- it can generate unwind tables which are correct at every
instruction, i.e. can be used for unwinding from async
signals.
- given sufficient unwind info generated by a C compiler, it
can unwind through C code.
- most of its API is async-safe
- it implements the gcc C++ exception handling API, so in
theory it can be used to implement mixed-language exception
handling (i.e. C++ exception caught in mono, mono exception
caught in C++).
- it is MIT licensed
The biggest problem with libuwind is its platform support. ia64 support is
complete/well tested, while support for other platforms is missing/incomplete.
http://www.hpl.hp.com/research/linux/libunwind/
-283
View File
@@ -1,283 +0,0 @@
Register Allocation
===================
The current JIT implementation uses a tree matcher to generate code. We use a
simple algorithm to allocate registers in trees, and limit the number of used
temporary register to 4 when evaluating trees. So we can use 2 registers for
global register allocation.
Register Allocation for Trees
=============================
We always evaluate trees from left to right. When there are no more registers
available we need to spill values to memory. Here is the simplified algorithm.
gboolean
tree_allocate_regs (tree, exclude_reg)
{
if (!tree_allocate_regs (tree->left, -1))
return FALSE;
if (!tree_allocate_regs (tree->right, -1)) {
tree->left->spilled == TRUE;
free_used_regs (tree->left);
if (!tree_allocate_regs (tree->right, tree->left->reg))
return FALSE;
}
free_used_regs (tree->left);
free_used_regs (tree->right);
/* try to allocate a register (reg != exclude_reg) */
if ((tree->reg = next_free_reg (exclude_reg)) != -1)
return TRUE;
return FALSE;
}
The emit routing actually spills the registers:
tree_emit (tree)
{
tree_emit (tree->left);
if (tree->left->spilled)
save_reg (tree->left->reg);
tree_emit (tree->right);
if (tree->left->spilled)
restore_reg (tree->left->reg);
emit_code (tree);
}
Global Register Allocation
==========================
TODO.
Local Register Allocation
=========================
This section describes the cross-platform local register allocator which is
in the file mini-codegen.c.
The input to the allocator is a basic block which contains linear IL, ie.
instructions of the form:
DEST <- SRC1 OP SRC2
where DEST, SRC1, and SRC2 are virtual registers (vregs). The job of the
allocator is to assign hard or physical registers (hregs) to each virtual
registers so the vreg references in the instructions can be replaced with their
assigned hreg, allowing machine code to be generated later.
The allocator needs information about the number and types of arguments of
instructions. It takes this information from the machine description files. It
also needs arch specific information, like the number and type of the hard
registers. It gets this information from arch-specific macros.
Currently, the vregs and hregs are partitioned into two classes: integer and
floating point.
The allocator consists of two phases: In the first phase, a forward pass is
made over the instructions, collecting liveness information for vregs. In the
second phase, a backward pass is made over the instructions, assigning
registers. This backward mode of operation makes understanding the allocator
somewhat difficult to understand, but leads to better code in most cases.
Allocator state
===============
The state of the allocator is stored in two arrays: iassign and isymbolic.
iassign maps vregs to hregs, while isymbolic is the opposite.
For a vreg, iassign [vreg] can contain the following values:
* -1 vreg has no assigned hreg
* hreg index (>= 0) vreg is assigned to the given hreg. This means
later instructions (which we have already
processed due to the backward direction) expect
the value of vreg to be found in hreg.
* spill slot index (< -1) vreg is spilled to the given spill slot. This
means later instructions expect the value of
vreg to be found on the stack in the given
spill slot.
Also, the allocator keeps track of which hregs are free and which are used.
This information is stored in a bitmask called ifree_mask.
There is a similar set of data structures for floating point registers.
Spilling
========
When an allocator needs a free hreg, but all of them are assigned, it needs to
free up one of them. It does this by spilling the contents of the vreg which
is currently assigned to the selected hreg. Since later instructions expect
the vreg to be found in the selected hreg, the allocator emits a spill-load
instruction to load the value from the spill slot into the hreg after the
currently processed instruction. When the vreg which is spilled is a
destination in an instruction, the allocator will emit a spill-store to store
the value into the spill slot.
Fixed registers
===============
Some architectures, notably x86/amd64 require that the arguments/results of
some instructions be assigned to specific hregs. An example is the shift
opcodes on x86, where the second argument must be in ECX. The allocator
has support for this. It tries to allocate the vreg to the required hreg. If
thats not possible, then it will emit compensation code which moves values to
the correct registers before/after the instruction.
Fixed registers are mainly used on x86, but they are useful on more regular
architectures on well, for example to model that after a call instruction, the
return of the call is in a specific register.
A special case of fixed registers is two address architectures, like the x86,
where the instructions place their results into their first argument. This is
modelled in the allocator by allocating SRC1 and DEST to the same hreg.
Global registers
================
Some variables might already be allocated to hardware registers during the
global allocation phase. In this case, SRC1, SRC2 and DEST might already be
a hardware register. The allocator needs to do nothing in this case, except
when the architecture uses fixed registers, in which case it needs to emit
compensation code.
Register pairs
==============
64 bit arithmetic on 32 bit machines requires instructions whose arguments are
not registers, but register pairs. The allocator has support for this, both
for freely allocatable register pairs, and for register pairs which are
constrained to specific hregs (EDX:EAX on x86).
Floating point stack
====================
The x86 architecture uses a floating point register stack instead of a set of
fp registers. The allocator supports this by keeping track of the height of the
fp stack, and spilling/loading values from the stack as neccesary.
Calls
=====
Calls need special handling for two reasons: first, they will clobber all
caller-save registers, meaning their contents will need to be spilled. Also,
some architectures pass arguments in registers. The registers used for
passing arguments are usually the same as the ones used for local allocation,
so the allocator needs to handle them specially. This is done as follows:
the MonoInst for the call instruction contains a map mapping vregs which
contain the argument values to hregs where the argument needs to be placed,
like this (on amd64):
R33 -> RDI
R34 -> RSI
...
When the allocator processes the call instruction, it allocates the vregs
in the map to their associated hregs. So the call instruction is processed as
if having a variable number of arguments which fixed register assignments.
An example:
R33 <- 1
R34 <- 2
call
When the call instruction is processed, R33 is assigned to RDI, and R34 is
assigned to RSI. Later, when the two assignment instructions are processed,
R33 and R34 are already assigned to a hreg, so they are replaced with the
associated hreg leading to the following final code:
RDI <- 1
RSI <- 1
call
Machine description files
=========================
A typical entry in the machine description files looks like this:
shl: dest:i src1:i src2:s clob:1 len:2
The allocator is only interested in the dest,src1,src2 and clob fields.
It understands the following values for the dest, src1, src2 fields:
i - integer register
f - fp register
b - base register (same as i, but the instruction does not modify the reg)
m - fp register, even if an fp stack is used (no fp stack tracking)
It understands the following values for the clob field:
1 - sreg1 needs to be the same as dreg
c - instruction clobbers the caller-save registers
Beside these values, an architecture can define additional values (like the 's'
in the example). The allocator depends on a set of arch-specific macros to
convert these values to information it needs during allocation.
Arch specific macros
====================
These macros usually receive a value from the machine description file (like
the 's' in the example). The examples below are for x86.
/*
* A bitmask selecting the caller-save registers (these are used for local
* allocation).
*/
#define MONO_ARCH_CALLEE_REGS X86_CALLEE_REGS
/*
* A bitmask selecting the callee-saved registers (these are usually used for
* global allocation).
*/
#define MONO_ARCH_CALLEE_SAVED_REGS X86_CALLER_REGS
/* Same for the floating point registers */
#define MONO_ARCH_CALLEE_FREGS 0
#define MONO_ARCH_CALLEE_SAVED_FREGS 0
/* Whenever the target uses a floating point stack */
#define MONO_ARCH_USE_FPSTACK TRUE
/* The size of the floating point stack */
#define MONO_ARCH_FPSTACK_SIZE 6
/*
* Given a descriptor value from the machine description file, return the fixed
* hard reg corresponding to that value.
*/
#define MONO_ARCH_INST_FIXED_REG(desc) ((desc == 's') ? X86_ECX : ((desc == 'a') ? X86_EAX : ((desc == 'd') ? X86_EDX : ((desc == 'y') ? X86_EAX : ((desc == 'l') ? X86_EAX : -1)))))
/*
* A bitmask selecting the hregs which can be used for allocating sreg2 for
* a given instruction.
*/
#define MONO_ARCH_INST_SREG2_MASK(ins) (((ins [MONO_INST_CLOB] == 'a') || (ins [MONO_INST_CLOB] == 'd')) ? (1 << X86_EDX) : 0)
/*
* Given a descriptor value, return whenever it denotes a register pair.
*/
#define MONO_ARCH_INST_IS_REGPAIR(desc) (desc == 'l' || desc == 'L')
/*
* Given a descriptor value, and the first register of a regpair, return a
* bitmask selecting the hregs which can be used for allocating the second
* register of the regpair.
*/
#define MONO_ARCH_INST_REGPAIR_REG2(desc,hreg1) (desc == 'l' ? X86_EDX : -1)
-32
View File
@@ -1,32 +0,0 @@
Metadata memory management
--------------------------
Most metadata structures have a lifetime which is equal to the MonoImage where they are
loaded from. These structures should be allocated from the memory pool of the
corresponding MonoImage. The memory pool is protected by the loader lock.
Examples of metadata structures in this category:
- MonoClass
- MonoMethod
- MonoType
Memory owned by these structures should be allocated from the image mempool as well.
Examples include: klass->methods, klass->fields, method->signature etc.
Generics complicates things. A generic class could have many instantinations where the
generic arguments are from different assemblies. Where should we allocate memory for
instantinations ? We can allocate from the mempool of the image which contains the
generic type definition, but that would mean that the instantinations would remain in
memory even after the assemblies containing their type arguments are unloaded, leading
to a memory leak. Therefore, we do the following:
- data structures representing the generic definitions are allocated from the image
mempool as usual. These include:
- generic class definition (MonoGenericClass->container_class)
- generic method definitions
- type parameters (MonoGenericParam)
- data structures representing inflated classes/images are allocated from the heap. These
structures are kept in a cache, indexed by type arguments of the instantinations. When
an assembly is unloaded, this cache is searched and all instantinations referencing
types from the assembly are freed. This is done by mono_metadata_clean_for_image ()
in metadata.c. The structures handled this way include:
- MonoGenericClass
- MonoGenericInst
- inflated MonoMethods
+59 -6
View File
@@ -417,12 +417,19 @@
* 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:
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:
The suggested order for working through these tests is the
following:
- basic.exe
- basic-long.exe
- basic-float.exe
@@ -473,6 +480,52 @@
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.
+5
View File
@@ -0,0 +1,5 @@
<?xml version="1.0"?>
<manpages>
<manpage name="mdoc(5)" page="../man/mdoc.5" />
<manpage name="mono-config(5)" page="../man/mono-config.5" />
</manpages>
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<monodoc>
<source provider="man" basefile="mono-file-formats" path="man"/>
</monodoc>
+55
View File
@@ -0,0 +1,55 @@
<?xml version="1.0"?>
<manpages>
<manpage name="al(1)" page="../man/al.1" />
<manpage name="caspol(1)" page="../man/caspol.1" />
<manpage name="cert2spc(1)" page="../man/cert2spc.1" />
<manpage name="certmgr(1)" page="../man/certmgr.1" />
<manpage name="chktrust(1)" page="../man/chktrust.1" />
<manpage name="cilc(1)" page="../man/cilc.1" />
<manpage name="disco(1)" page="../man/disco.1" />
<manpage name="dtd2xsd(1)" page="../man/dtd2xsd.1" />
<manpage name="gacutil(1)" page="../man/gacutil.1" />
<manpage name="genxs(1)" page="../man/genxs.1" />
<manpage name="httpcfg(1)" page="../man/httpcfg.1" />
<manpage name="ilasm(1)" page="../man/ilasm.1" />
<manpage name="macpack(1)" page="../man/macpack.1" />
<manpage name="makecert(1)" page="../man/makecert.1" />
<manpage name="mconfig(1)" page="../man/mconfig.1" />
<manpage name="mcs(1)" page="../man/mcs.1" />
<manpage name="mdassembler(1)" page="../man/mdassembler.1" />
<manpage name="mdcs2ecma(1)" page="../man/mdcs2ecma.1" />
<manpage name="mdnormalizer(1)" page="../man/mdnormalizer.1" />
<manpage name="mdoc(1)" page="../man/mdoc.1" />
<manpage name="mdoc-assemble(1)" page="../man/mdoc-assemble.1" />
<manpage name="mdoc-export-html(1)" page="../man/mdoc-export-html.1" />
<manpage name="mdoc-export-msxdoc(1)" page="../man/mdoc-export-msxdoc.1" />
<manpage name="mdoc-update(1)" page="../man/mdoc-update.1" />
<manpage name="mdoc-validate(1)" page="../man/mdoc-validate.1" />
<manpage name="mdvalidator(1)" page="../man/mdvalidator.1" />
<manpage name="mkbundle(1)" page="../man/mkbundle.1" />
<manpage name="mono(1)" page="../man/mono.1" />
<manpage name="mono-service(1)" page="../man/mono-service.1" />
<manpage name="mono-shlib-cop(1)" page="../man/mono-shlib-cop.1" />
<manpage name="monodocer(1)" page="../man/monodocer.1" />
<manpage name="monodocs2html(1)" page="../man/monodocs2html.1" />
<manpage name="monolinker(1)" page="../man/monolinker.1" />
<manpage name="monop(1)" page="../man/monop.1" />
<manpage name="monostyle(1)" page="../man/monostyle.1" />
<manpage name="mono-xmltool(1)" page="../man/mono-xmltool.1" />
<manpage name="mozroots(1)" page="../man/mozroots.1" />
<manpage name="oldmono(1)" page="../man/oldmono.1" />
<manpage name="permview(1)" page="../man/permview.1" />
<manpage name="prj2make(1)" page="../man/prj2make.1" />
<manpage name="resgen(1)" page="../man/resgen.1" />
<manpage name="secutil(1)" page="../man/secutil.1" />
<manpage name="setreg(1)" page="../man/setreg.1" />
<manpage name="sgen(1)" page="../man/sgen.1" />
<manpage name="signcode(1)" page="../man/signcode.1" />
<manpage name="sn(1)" page="../man/sn.1" />
<manpage name="soapsuds(1)" page="../man/soapsuds.1" />
<manpage name="sqlsharp(1)" page="../man/sqlsharp.1" />
<manpage name="vbnc(1)" page="../man/vbnc.1" />
<manpage name="wsdl(1)" page="../man/wsdl.1" />
<manpage name="wsdl2(1)" page="../man/wsdl2.1" />
<manpage name="xsd(1)" page="../man/xsd.1" />
</manpages>
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<monodoc>
<source provider="man" basefile="mono-tools" path="man"/>
</monodoc>
-12
View File
@@ -1,12 +0,0 @@
thisdir = docs
SUBDIRS =
include $(topdir)/build/rules.make
assemble: toc.xml
$(MDOC) assemble -o monoapi -f hb toc.xml
convert.exe: convert.cs AgilityPack.dll
$(CSCOMPILE) -out:$@ $< -r:AgilityPack.dll
.doc-stamp:
+2 -1
View File
@@ -23,7 +23,8 @@ typedef struct {
@API_IDX@
</div>
<a name="cil_assembly_load"/>
<h3>Assembly Loading</h3>
<h4><a name="api:mono_assembly_open">mono_assembly_open</a></h4>
+4 -2
View File
@@ -1,7 +1,8 @@
<h2>Image Manipulation</h2>
<p>Images are the component of assemblies that actually hold
the CIL code in the extended PE/COFF file.
the CIL code and <a href="mono-api-metadata.html">metadata</a>
in the extended PE/COFF file.
<h3>Synopsis</h3>
@@ -23,7 +24,8 @@ typedef enum {
<p>Images are the actual elements in the runtime that contain
the actual code being executed.
<a name="cil_image_open"/>
<h3>Opening and closing MonoImages</h3>
<h4><a name="api:mono_image_open">mono_image_open</a></h4>
+656 -53
View File
@@ -1,47 +1,650 @@
<h3>Metadata Loader Locking</h3>
<h1>Metadata Reading</h1>
<p>The locking functions here are used by code in class.c and
metadata.c to lock access to the shared hashtables inside the
MonoImage
<p>The Metadata API gives developers low-level access to the
information encoded in CLI modules: type and
methods definitions encoded in metadata as well as access to
the CIL code and embedded resources.
<p>Managed developers access this information using either the
System.Reflection API or a library
like <a href="http://www.mono-project.com/Cecil">Cecil</a>.
<p>To start using the Metadata API it is necessary
to <a href="mono-api-assembly.html#cil_assembly_load">open an
assembly</a> or a CIL image (a .dll or .exe file) using one of
the
<a href="mono-api-image.html#cil_image_open">CIL image
opening</a> API calls.
<h2>Metadata Heaps</h2>
<p>ECMA CLI images contain four heaps that store different
kinds of information, these are:
<ul>
<li>GUID heap (called #GUID) contains 128-bit GUIDs,
you can get pointer to a GUID value by
calling <a href="#api:mono_metadata_guid_heap">mono_metadata_guid_heap</a>.
<li>User string heap (called #US), it contains user
visible strings, you can fetch a string from this heap
by calling
<a href="#api:mono_metadata_user_string">mono_metadata_user_string</a>.
<li>Blob heap (called #blob), it contains binary
blobs of data, you can get a blob
by <a href="#api:mono_metadata_blob_heap">mono_metadata_blob_heap</a>.
You can determine the size of the blob using
the <a href="#api:mono_metadata_decode_blob_size">mono_metadata_decode_blob_size</a>.
<h4><a name="api:mono_loader_lock">mono_loader_lock</a></h4>
<h4><a name="api:mono_loader_unlock">mono_loader_unlock</a></h4>
</ul>
<h3>Metadata access API</h3>
<p>The ECMA file format also has an extra section called the
"#~" stream, this stream is the one that holds the metadata
tables. There is a high-level API to get access to the
contents of this API, described in the
section <a href="#metadata-tables">Metadata Tables</a>.
<h4><a name="api:mono_metadata_guid_heap">mono_metadata_guid_heap</a></h4>
<h4><a name="api:mono_metadata_string_heap">mono_metadata_string_heap</a></h4>
<h4><a name="api:mono_metadata_blob_heap">mono_metadata_blob_heap</a></h4>
<h4><a name="api:mono_metadata_user_string">mono_metadata_user_string</a></h4>
<h4><a name="api:mono_metadata_decode_blob_size">mono_metadata_decode_blob_size</a></h4>
<a name="metadata-tables"/>
<h2>Metadata Tables</h2>
<p>Metadata is encoded in a number of tables included on every
CIL image. These tables contain type definitions, member
definitions and so on, these constants are defined in the ECMA 335
specification Partition II section 22. The following table
shows the C constants defined in the Mono runtime and how they
map to the equivalent ECMA CLI metadata table:
<center>
<table border=1>
<thead>
<td>
<b>ECMA CLI Table Name</b>
</td>
<td>
<b>C Constant Name</b>
</td>
<td>
<b>Table Schema (Array Size + Columns Constants)</b>
</td>
</thead>
<td>Assembly</td><td>MONO_TABLE_ASSEMBLY</td><td>
Array size:
MONO_ASSEMBLY_SIZE
<ul>
<li>MONO_ASSEMBLY_HASH_ALG
<li>MONO_ASSEMBLY_MAJOR_VERSION
<li>MONO_ASSEMBLY_MINOR_VERSION
<li>MONO_ASSEMBLY_BUILD_NUMBER
<li>MONO_ASSEMBLY_REV_NUMBER
<li>MONO_ASSEMBLY_FLAGS
<li>MONO_ASSEMBLY_PUBLIC_KEY
<li>MONO_ASSEMBLY_NAME
<li>MONO_ASSEMBLY_CULTURE
</ul>
</td>
</tr>
<td>AssemblyOS</td><td>MONO_TABLE_ASSEMBLYOS</td><td>
Array size:
MONO_ASSEMBLYOS_SIZE
<ul>
<li>MONO_ASSEMBLYOS_PLATFORM
<li>MONO_ASSEMBLYOS_MAJOR_VERSION
<li>MONO_ASSEMBLYOS_MINOR_VERSION
</ul>
</td>
</tr>
<td>AssemblyProcessor</td><td>MONO_TABLE_ASSEMBLYPROCESSOR</td><td>Array
size: MONO_ASSEMBLYPROCESSOR_SIZE
<ul>
<li>MONO_ASSEMBLY_PROCESSOR
</ul>
</td>
</tr>
<td>AssemblyRef</td><td>MONO_TABLE_ASSEMBLYREF</td><td>
Array size:
MONO_ASSEMBLYREF_SIZE
<ul>
<li>MONO_ASSEMBLYREF_MAJOR_VERSION
<li>MONO_ASSEMBLYREF_MINOR_VERSION
<li>MONO_ASSEMBLYREF_BUILD_NUMBER
<li>MONO_ASSEMBLYREF_REV_NUMBER
<li>MONO_ASSEMBLYREF_FLAGS
<li>MONO_ASSEMBLYREF_PUBLIC_KEY
<li>MONO_ASSEMBLYREF_NAME
<li>MONO_ASSEMBLYREF_CULTURE
<li>MONO_ASSEMBLYREF_HASH_VALUE
</ul>
</td>
</tr>
<td>AssemblyRefProcessor</td><td>MONO_TABLE_ASSEMBLYREFPROCESSOR</td><td>Array
size: MONO_ASSEMBLYREFPROC_SIZE
<ul>
<li>MONO_ASSEMBLYREFPROC_PROCESSOR
<li>MONO_ASSEMBLYREFPROC_ASSEMBLYREF
</ul>
</td>
</tr>
<td>AssemblyRefOS</td><td>MONO_TABLE_ASSEMBLYREFOS</td><td>
Array size:
<li>MONO_ASSEMBLYREFOS_SIZE
<ul>
<li>MONO_ASSEMBLYREFOS_PLATFORM
<li>MONO_ASSEMBLYREFOS_MAJOR_VERSION
<li>MONO_ASSEMBLYREFOS_MINOR_VERSION
<li>MONO_ASSEMBLYREFOS_ASSEMBLYREF
</ul>
</td>
</tr>
<td>ClassLayout</td><td>MONO_TABLE_CLASSLAYOUT</td><td>
Array size:
MONO_CLASSLAYOUT_SIZE
<ul>
<li>MONO_CLASS_LAYOUT_PACKING_SIZE
<li>MONO_CLASS_LAYOUT_CLASS_SIZE
<li>MONO_CLASS_LAYOUT_PARENT
</ul>
</td>
</tr>
<td>Constant</td><td>MONO_TABLE_CONSTANT</td><td>
Array size:
MONO_CONSTANT_SIZE
<ul>
<li>MONO_CONSTANT_TYPE
<li>MONO_CONSTANT_PADDING
<li>MONO_CONSTANT_PARENT
<li>MONO_CONSTANT_VALUE
</ul>
</td>
</tr>
<td>CustomAttribute</td><td>MONO_TABLE_CUSTOMATTRIBUTE</td><td>
Array size:
MONO_CUSTOM_ATTR_SIZE
<ul>
<li>MONO_CUSTOM_ATTR_PARENT
<li>MONO_CUSTOM_ATTR_TYPE
<li>MONO_CUSTOM_ATTR_VALUE
</ul>
</td>
</tr>
<td>DeclSecurity</td><td>MONO_TABLE_DECLSECURITY</td><td>
Array size:
MONO_DECL_SECURITY_SIZE
<ul>
<li>MONO_DECL_SECURITY_ACTION
<li>MONO_DECL_SECURITY_PARENT
<li>MONO_DECL_SECURITY_PERMISSIONSET
</ul>
</td>
</tr>
<td>EventMap</td><td>MONO_TABLE_EVENTMAP</td><td>
Array size:
MONO_EVENT_MAP_SIZE
<ul>
<li>MONO_EVENT_MAP_PARENT
<li>MONO_EVENT_MAP_EVENTLIST
</ul>
</td>
</tr>
<td>EventPtr</td><td>MONO_TABLE_EVENT_POINTER</td><td>
Array size:
MONO_EVENT_POINTER_SIZE
<ul>
<li>MONO_EVENT_POINTER_EVENT
</ul>
</td>
</tr>
<td>Event</td><td>MONO_TABLE_EVENT</td><td>
Array size: MONO_EVENT_SIZE
<ul>
<li>MONO_EVENT_FLAGS
<li>MONO_EVENT_NAME
<li>MONO_EVENT_TYPE
</ul>
</td>
</tr>
<td>ExportedType</td><td>MONO_TABLE_EXPORTEDTYPE</td><td>
Array size:
MONO_EXPORTEDTYPE_SIZE
<ul>
<li>MONO_EXP_TYPE_FLAGS
<li>MONO_EXP_TYPE_TYPEDEF
<li>MONO_EXP_TYPE_NAME
<li>MONO_EXP_TYPE_NAMESPACE
<li>MONO_EXP_TYPE_IMPLEMENTATION
</ul>
</td>
</tr>
<td>Field</td><td>MONO_TABLE_FIELD</td><td>
Array size: MONO_FIELD_SIZE
<ul>
<li>MONO_FIELD_FLAGS
<li>MONO_FIELD_NAME
<li>MONO_FIELD_SIGNATURE
</ul>
</td>
</tr>
<td>FieldLayoutt</td><td>MONO_TABLE_FIELDLAYOUT</td><td>
Array size:
MONO_FIELDLAYOUT_SIZE
<ul>
<li>MONO_FIELD_LAYOUT_OFFSET
<li>MONO_FIELD_LAYOUT_FIELD
</ul>
</td>
</tr>
<td>FieldMarshal</td><td>MONO_TABLE_FIELDMARSHAL</td><td>
Array size:
MONO_FIELD_MARSHAL_SIZE
<ul>
<li>MONO_FIELD_MARSHAL_PARENT
<li>MONO_FIELD_MARSHAL_NATIVE_TYPE
</ul>
</td>
</tr>
<td>FieldPtr</td><td>MONO_TABLE_FIELD_POINTER</td><td>
Array size:
MONO_FIELD_POINTER_SIZE
<ul>
<li>MONO_FIELD_POINTER_FIELD
</ul>
</td>
</tr>
<td>FieldRVA</td><td>MONO_TABLE_FIELDRVA</td><td>
Array size:
MONO_FIELDRVA_SIZE
<ul>
<li>MONO_FIELD_RVA_RVA
<li>MONO_FIELD_RVA_FIELD
</ul>
</td>
</tr>
<td>File</td><td>MONO_TABLE_FILE</td><td>
Array size: MONO_FILE_SIZE
<ul>
<li>MONO_FILE_FLAGS
<li>MONO_FILE_NAME
<li>MONO_FILE_HASH_VALUE
</ul>
</td>
</tr>
<td>GenericParam</td><td>MONO_TABLE_GENERICPARAM</td><td>
Array size:
MONO_GENERICPARAM_SIZE
<ul>
<li>MONO_GENERICPARAM_NUMBER
<li>MONO_GENERICPARAM_FLAGS
<li>MONO_GENERICPARAM_OWNER
<li>MONO_GENERICPARAM_NAME
</ul>
</td>
</tr>
<td>GenericParamConstraint</td><td>MONO_TABLE_GENERICPARAMCONSTRAINT</td><td>Array
size: MONO_GENERICPARAMCONSTRAINT_SIZE
<ul>
<li>MONO_GENPARCONSTRAINT_GENERICPAR
<li>MONO_GENPARCONSTRAINT_CONSTRAINT
</ul>
</td>
<tr>
<td>ImplMap</td><td>MONO_TABLE_IMPLMAP</td><td>
Array size:
MONO_IMPLMAP_SIZE
<ul>
<li>MONO_IMPLMAP_FLAGS
<li>MONO_IMPLMAP_MEMBER
<li>MONO_IMPLMAP_NAME
<li>MONO_IMPLMAP_SCOPE
</ul>
</td>
</tr>
<td>InterfaceImpl</td><td>MONO_TABLE_INTERFACEIMPL</td><td>
Array size:
<li>MONO_INTERFACEIMPL_SIZE
<ul>
<li>MONO_INTERFACEIMPL_CLASS
<li>MONO_INTERFACEIMPL_INTERFACE
</ul>
</td>
</tr>
<td>ManifestResource</td><td>MONO_TABLE_MANIFESTRESOURCE</td><td>Array
size: MONO_MANIFESTRESOURCE_SIZE
<ul>
<li>MONO_MANIFEST_OFFSET
<li>MONO_MANIFEST_FLAGS
<li>MONO_MANIFEST_NAME
<li>MONO_MANIFEST_IMPLEMENTATION
</ul>
</td>
</tr>
<tr>
<td>MemberRef</td><td>MONO_TABLE_MEMBERREF</td><td>
Array size:
MONO_MEMBERREF_SIZE
<ul>
<li>MONO_MEMBERREF_CLASS
<li>MONO_MEMBERREF_NAME
<li>MONO_MEMBERREF_SIGNATURE
</ul>
</td>
</tr>
<td>MethodImpl</td><td>MONO_TABLE_METHODIMPL</td><td>
Array size:
MONO_METHODIMPL_SIZE
<ul>
<li>MONO_METHODIMPL_CLASS
<li>MONO_METHODIMPL_BODY
<li>MONO_METHODIMPL_DECLARATION
</ul>
</td>
</tr>
<td>MethodSpec</td><td>MONO_TABLE_METHODSPEC</td><td>
Array size:
MONO_METHODSPEC_SIZE
<ul>
<li>MONO_METHODSPEC_METHOD
<li>MONO_METHODSPEC_SIGNATURE
</ul>
</td>
</tr>
<tr>
<td>MethodSemantics</td><td>MONO_TABLE_METHODSEMANTICS</td><td>Array
size: MONO_METHOD_SEMA_SIZE
<ul>
<li>MONO_METHOD_SEMA_SEMANTICS
<li>MONO_METHOD_SEMA_METHOD
<li>MONO_METHOD_SEMA_ASSOCIATION
</ul>
</td>
</tr>
<td>Moduleref</td><td>MONO_TABLE_MODULEREF</td><td>
Array size:
MONO_MODULEREF_SIZE
<ul>
<li>MONO_MODULEREF_NAME
</ul>
</td>
</tr>
<tr>
<td>Module</td><td>MONO_TABLE_MODULE</td><td>
Array size:
MONO_MODULE_SIZE
<br>
Columns:
<ul>
<li>MONO_MODULE_GENERATION
<li>MONO_MODULE_NAME
<li>MONO_MODULE_MVID
<li>MONO_MODULE_ENC
<li>MONO_MODULE_ENCBASE
</ul>
</td>
</tr>
<td>TypeRef</td><td>MONO_TABLE_TYPEREF</td><td>
Array size:
MONO_TYPEREF_SIZE
<ul>
<li>MONO_TYPEREF_SCOPE
<li>MONO_TYPEREF_NAME
<li>MONO_TYPEREF_NAMESPACE
</ul>
</td>
</tr>
<tr>
<td>MethodPtr</td><td>MONO_TABLE_METHOD_POINTER</td><td>
Array size:
MONO_METHOD_POINTER_SIZE
<ul>
<li>MONO_METHOD_POINTER_METHOD
</ul>
</td>
</tr>
<td>Method</td><td>MONO_TABLE_METHOD</td><td>
Array size:
MONO_METHOD_SIZE
<ul>
<li>MONO_METHOD_RVA
<li>MONO_METHOD_IMPLFLAGS
<li>MONO_METHOD_FLAGS
<li>MONO_METHOD_NAME
<li>MONO_METHOD_SIGNATURE
<li>MONO_METHOD_PARAMLIST
</ul>
</td>
</tr>
<tr>
<td>NestedClass</td><td>MONO_TABLE_NESTEDCLASS</td><td>
Array size:
MONO_NESTEDCLASS_SIZE
<ul>
<li>MONO_NESTED_CLASS_NESTED
<li>MONO_NESTED_CLASS_ENCLOSING
</ul>
</td>
</tr>
<tr>
<td>ParamPtr</td><td>MONO_TABLE_PARAM_POINTER</td><td>
Array size:
MONO_PARAM_POINTER_SIZE
<ul>
<li>MONO_PARAM_POINTER_PARAM
</ul>
</td>
</tr>
<td>Param</td><td>MONO_TABLE_PARAM</td><td>
Array size: MONO_PARAM_SIZE
<ul>
<li>MONO_PARAM_FLAGS
<li>MONO_PARAM_SEQUENCE
<li>MONO_PARAM_NAME
</ul>
</td>
</tr>
<td>PropertyMap</td><td>MONO_TABLE_PROPERTYMAP</td><td>
Array size:
MONO_PROPERTY_MAP_SIZE
<ul>
<li>MONO_PROPERTY_MAP_PARENT
<li>MONO_PROPERTY_MAP_PROPERTY_LIST
</ul>
</td>
</tr>
<td>PropertyPtr</td><td>MONO_TABLE_PROPERTY_POINTER</td><td>Array
size: MONO_PROPERTY_POINTER_SIZE
<ul>
<li>MONO_PROPERTY_POINTER_PROPERTY
</ul>
</td>
</tr>
<td>Property</td><td>MONO_TABLE_PROPERTY</td><td>
Array size:
MONO_PROPERTY_SIZE
<ul>
<li>MONO_PROPERTY_FLAGS
<li>MONO_PROPERTY_NAME
<li>MONO_PROPERTY_TYPE
</ul>
</td>
</tr>
<tr>
<td>StandaloneSig</td><td>MONO_TABLE_STANDALONESIG</td><td>
Array size:
<li>MONO_STAND_ALONE_SIGNATURE_SIZE
<ul>
<li>MONO_STAND_ALONE_SIGNATURE
</ul>
</td>
</tr>
<tr>
<td>TypeDef</td><td>MONO_TABLE_TYPEDEF</td><td>
Array size:
MONO_TYPEDEF_SIZE
<ul>
<li>MONO_TYPEDEF_FLAGS
<li>MONO_TYPEDEF_NAME
<li>MONO_TYPEDEF_NAMESPACE
<li>MONO_TYPEDEF_EXTENDS
<li>MONO_TYPEDEF_FIELD_LIST
<li>MONO_TYPEDEF_METHOD_LIST
</ul>
</td>
</tr>
<tr>
<td>TypeSpec</td><td>MONO_TABLE_TYPESPEC</td><td>
Array size:
MONO_TYPESPEC_SIZE
<ul>
<li>MONO_TYPESPEC_SIGNATURE
</ul>
</td>
</tr>
</table>
</center>
<p>Each table can contain zero or more rows, you must call the
<a href="#api:mono_metadata_table_rows">mono_metadata_table_rows</a>
to obtain the number of rows in a table, and then you can
extract individual row values by using
the <a href="#api:mono_metadata_decode_row">mono_metadata_decode_row</a>
or
the <a href="#api:mono_metadata_decode_row_col">mono_metadata_decode_row_col</a>.
When decoding rows you must provide an guint32 array large
enough to hold as many columns as the table contains.
<p>The metadata tables are stored in the MonoImage, you obtain
a pointer to the MonoTableInfo by calling
the <a href="#api:mono_image_get_table_info">mono_image_get_table_info</a>
and then you can scan those tables, for example:
<pre class="prettyprint">
/*
* Dumps a few fields from the AssemblyRef table
*/
void DumpAssemblyRefs (MonoImage *image)
{
/* Get a pointer to the AssemblyRef metadata table */
MonoTableInfo *t = mono_image_get_table_info (image, MONO_TABLE_ASSEMBLYREF);
/* Fetch the number of rows available in the table */
int rows = mono_table_info_get_rows (t);
int i;
/* For each row, print some of its values */
for (i = 0; i &lt; rows; i++){
/* Space where we extract one row from the metadata table */
guint32 cols [MONO_ASSEMBLYREF_SIZE];
/* Extract the row into the array cols */
mono_metadata_decode_row (t, i, cols, MONO_ASSEMBLYREF_SIZE);
fprintf (output, "%d: Version=%d.%d.%d.%d\n\tName=%s\n", i + 1,
cols [MONO_ASSEMBLYREF_MAJOR_VERSION],
cols [MONO_ASSEMBLYREF_MINOR_VERSION],
cols [MONO_ASSEMBLYREF_BUILD_NUMBER],
cols [MONO_ASSEMBLYREF_REV_NUMBER],
mono_metadata_string_heap (image, cols [MONO_ASSEMBLYREF_NAME]));
}
}
</pre>
<p>The above program shows the following output when ran on
the C# compiler:
<pre>
1: Version=1.0.5000.0
Name=mscorlib
2: Version=1.0.5000.0
Name=System
3: Version=1.0.5000.0
Name=System.Xml
</pre>
<p>
<h3>Metadata Tables API</h3>
<p>These are the APIs for dealing with tables:
<h4><a name="api:mono_image_get_table_info">mono_image_get_table_info</a></h4>
<h4><a name="api:mono_image_get_table_rows">mono_image_get_table_rows</a></h4>
<h4><a name="api:mono_metadata_get_table">mono_metadata_get_table</a></h4>
<h4><a name="api:mono_meta_table_name">mono_meta_table_name</a></h4>
<h4><a name="api:mono_metadata_decode_row_col">mono_metadata_decode_row_col</a></h4>
<h4><a name="api:mono_metadata_decode_row">mono_metadata_decode_row</a></h4>
<h4><a name="api:mono_metadata_compute_size">mono_metadata_compute_size</a></h4>
<h4><a name="api:mono_metadata_custom_attrs_from_index">mono_metadata_custom_attrs_from_index</a></h4>
<h4><a name="api:mono_metadata_decode_signed_value">mono_metadata_decode_signed_value</a></h4>
<h4><a name="api:mono_metadata_decode_value">mono_metadata_decode_value</a></h4>
<h4><a name="api:mono_metadata_encode_value">mono_metadata_encode_value</a></h4>
<h2>Metadata access API</h2>
<p>This is the low-level API for accessing the metadata
images.
<h4><a name="api:mono_cli_rva_image_map">mono_cli_rva_image_map</a></h4>
<h4><a name="api:mono_pe_file_open">mono_pe_file_open</a></h4>
<h4><a name="api:mono_meta_table_name">mono_meta_table_name</a></h4>
<h4><a name="api:mono_metadata_blob_heap">mono_metadata_blob_heap</a></h4>
<h4><a name="api:mono_metadata_compute_size">mono_metadata_compute_size</a></h4>
<h4><a name="api:mono_metadata_custom_attrs_from_index">mono_metadata_custom_attrs_from_index</a></h4>
<h4><a name="api:mono_metadata_decode_blob_size">mono_metadata_decode_blob_size</a></h4>
<h4><a name="api:mono_metadata_decode_row_col">mono_metadata_decode_row_col</a></h4>
<h4><a name="api:mono_metadata_decode_row">mono_metadata_decode_row</a></h4>
<h4><a name="api:mono_metadata_decode_signed_value">mono_metadata_decode_signed_value</a></h4>
<h4><a name="api:mono_metadata_decode_value">mono_metadata_decode_value</a></h4>
<h4><a name="api:mono_metadata_encode_value">mono_metadata_encode_value</a></h4>
<h4><a name="api:mono_metadata_events_from_typedef">mono_metadata_events_from_typedef</a></h4>
<h4><a name="api:mono_metadata_field_info">mono_metadata_field_info</a></h4>
<h4><a name="api:mono_metadata_free_array">mono_metadata_free_array</a></h4>
<h4><a name="api:mono_metadata_free_marshal_spec">mono_metadata_free_marshal_spec</a></h4>
<h4><a name="api:mono_metadata_free_mh">mono_metadata_free_mh</a></h4>
<h4><a name="api:mono_metadata_free_type">mono_metadata_free_type</a></h4>
<h4><a name="api:mono_metadata_generic_inst_equal">mono_metadata_generic_inst_equal</a></h4>
<h4><a name="api:mono_metadata_generic_inst_hash">mono_metadata_generic_inst_hash</a></h4>
<h4><a name="api:mono_metadata_generic_inst_is_valuetype">mono_metadata_generic_inst_is_valuetype</a></h4>
<h4><a name="api:mono_metadata_generic_method_equal">mono_metadata_generic_method_equal</a></h4>
<h4><a name="api:mono_metadata_get_constant_index">mono_metadata_get_constant_index</a></h4>
<h4><a name="api:mono_metadata_get_marshal_info">mono_metadata_get_marshal_info</a></h4>
<h4><a name="api:mono_metadata_get_table">mono_metadata_get_table</a></h4>
<h4><a name="api:mono_metadata_guid_heap">mono_metadata_guid_heap</a></h4>
<h4><a name="api:mono_metadata_implmap_from_method">mono_metadata_implmap_from_method</a></h4>
<h4><a name="api:mono_metadata_interfaces_from_typedef_full">mono_metadata_interfaces_from_typedef_full</a></h4>
<h4><a name="api:mono_metadata_interfaces_from_typedef">mono_metadata_interfaces_from_typedef</a></h4>
<h4><a name="api:mono_metadata_load_generic_params">mono_metadata_load_generic_params</a></h4>
<h4><a name="api:mono_metadata_locate">mono_metadata_locate</a></h4>
<h4><a name="api:mono_metadata_locate_token">mono_metadata_locate_token</a></h4>
<h4><a name="api:mono_metadata_methods_from_event">mono_metadata_methods_from_event</a></h4>
@@ -49,8 +652,17 @@
<h4><a name="api:mono_metadata_nested_in_typedef">mono_metadata_nested_in_typedef</a></h4>
<h4><a name="api:mono_metadata_nesting_typedef">mono_metadata_nesting_typedef</a></h4>
<h4><a name="api:mono_metadata_packing_from_typedef">mono_metadata_packing_from_typedef</a></h4>
<h4><a name="api:mono_metadata_parse_array_full">mono_metadata_parse_array_full</a></h4>
<h4><a name="api:mono_metadata_parse_array">mono_metadata_parse_array</a></h4>
<h4><a name="api:mono_metadata_properties_from_typedef">mono_metadata_properties_from_typedef</a></h4>
<h4><a name="api:mono_metadata_token_from_dor">mono_metadata_token_from_dor</a></h4>
<h4><a name="api:mono_metadata_typedef_from_field">mono_metadata_typedef_from_field</a></h4>
<h4><a name="api:mono_metadata_typedef_from_method">mono_metadata_typedef_from_method</a></h4>
<h4><a name="api:mono_metadata_type_equal">mono_metadata_type_equal</a></h4>
<h4><a name="api:mono_metadata_type_hash">mono_metadata_type_hash</a></h4>
<h4><a name="api:mono_metadata_declsec_from_index">mono_metadata_declsec_from_index</a></h4>
<h4><a name="api:mono_metadata_free_method_signature">mono_metadata_free_method_signature</a></h4>
<h3>Retrieving Objects from Tokens</h3>
<h4><a name="api:mono_metadata_parse_custom_mod">mono_metadata_parse_custom_mod</a></h4>
<h4><a name="api:mono_metadata_parse_field_type">mono_metadata_parse_field_type</a></h4>
<h4><a name="api:mono_metadata_parse_marshal_spec">mono_metadata_parse_marshal_spec</a></h4>
@@ -64,25 +676,29 @@
<h4><a name="api:mono_metadata_parse_typedef_or_ref">mono_metadata_parse_typedef_or_ref</a></h4>
<h4><a name="api:mono_metadata_parse_type_full">mono_metadata_parse_type_full</a></h4>
<h4><a name="api:mono_metadata_parse_type">mono_metadata_parse_type</a></h4>
<h4><a name="api:mono_metadata_properties_from_typedef">mono_metadata_properties_from_typedef</a></h4>
<h4><a name="api:mono_metadata_string_heap">mono_metadata_string_heap</a></h4>
<h4><a name="api:mono_metadata_token_from_dor">mono_metadata_token_from_dor</a></h4>
<h4><a name="api:mono_metadata_typedef_from_field">mono_metadata_typedef_from_field</a></h4>
<h4><a name="api:mono_metadata_typedef_from_method">mono_metadata_typedef_from_method</a></h4>
<h4><a name="api:mono_metadata_type_equal">mono_metadata_type_equal</a></h4>
<h4><a name="api:mono_metadata_type_hash">mono_metadata_type_hash</a></h4>
<h4><a name="api:mono_metadata_user_string">mono_metadata_user_string</a></h4>
<h4><a name="api:mono_metadata_declsec_from_index">mono_metadata_declsec_from_index</a></h4>
<h4><a name="api:mono_metadata_free_method_signature">mono_metadata_free_method_signature</a></h4>
<h3>Generics Support</h3>
<h2>Metadata Loader Locking</h2>
<p>The locking functions here are used by code in class.c and
metadata.c to lock access to the shared hashtables inside the
MonoImage.
<h4><a name="api:mono_loader_lock">mono_loader_lock</a></h4>
<h4><a name="api:mono_loader_unlock">mono_loader_unlock</a></h4>
<h2>Generics Support</h2>
<h4><a name="api:mono_metadata_generic_class_is_valuetype">mono_metadata_generic_class_is_valuetype</a></h4>
<h4><a name="api:mono_metadata_has_generic_params">mono_metadata_has_generic_params</a></h4>
<h4><a name="api:mono_metadata_inflate_generic_inst">mono_metadata_inflate_generic_inst</a></h4>
<h4><a name="api:mono_metadata_parse_generic_inst">mono_metadata_parse_generic_inst</a></h4>
<h4><a name="api:mono_metadata_generic_inst_equal">mono_metadata_generic_inst_equal</a></h4>
<h4><a name="api:mono_metadata_generic_inst_hash">mono_metadata_generic_inst_hash</a></h4>
<h4><a name="api:mono_metadata_load_generic_params">mono_metadata_load_generic_params</a></h4>
<h4><a name="api:mono_metadata_generic_inst_is_valuetype">mono_metadata_generic_inst_is_valuetype</a></h4>
<h4><a name="api:mono_metadata_generic_method_equal">mono_metadata_generic_method_equal</a></h4>
<h3>Tokens</h3>
<h2>Tokens</h2>
<h4><a name="api:mono_ldtoken">mono_ldtoken</a></h4>
<h4><a name="api:mono_lookup_dynamic_token">mono_lookup_dynamic_token</a></h4>
@@ -90,25 +706,12 @@
<h4><a name="api:mono_exception_from_token">mono_exception_from_token</a></h4>
<h4><a name="api:mono_create_jit_trampoline_from_token">mono_create_jit_trampoline_from_token</a></h4>
<h3>Working with signatures</h3>
<h4><a name="api:mono_signature_explicit_this">mono_signature_explicit_this</a></h4>
<h4><a name="api:mono_signature_get_call_conv">mono_signature_get_call_conv</a></h4>
<h4><a name="api:mono_signature_get_desc">mono_signature_get_desc</a></h4>
<h4><a name="api:mono_signature_get_param_count">mono_signature_get_param_count</a></h4>
<h4><a name="api:mono_signature_get_params">mono_signature_get_params</a></h4>
<h4><a name="api:mono_signature_get_return_type">mono_signature_get_return_type</a></h4>
<h4><a name="api:mono_signature_hash">mono_signature_hash</a></h4>
<h4><a name="api:mono_signature_is_instance">mono_signature_is_instance</a></h4>
<h4><a name="api:mono_signature_vararg_start">mono_signature_vararg_start</a></h4>
<h3>OpCodes</h3>
<h2>OpCodes</h2>
<h4><a name="api:mono_opcode_name">mono_opcode_name</a></h4>
<h4><a name="api:mono_opcode_value">mono_opcode_value</a></h4>
<h3>Metadata Loading Errors</h3>
<h2>Metadata Loading Errors</h2>
<p>The routines in this section are used to cope with errors
during metadata loading. Errors in metadata handling can
+13 -1
View File
@@ -54,9 +54,21 @@ mono_runtime_invoke (method, obj, args, &amp;exception);
<h4><a name="api:mono_method_has_marshal_info">mono_method_has_marshal_info</a></h4>
<h4><a name="api:mono_method_return_message_restore">mono_method_return_message_restore</a></h4>
<h4><a name="api:mono_method_same_domain">mono_method_same_domain</a></h4>
<h4><a name="api:mono_method_signature">mono_method_signature</a></h4>
<h4><a name="api:mono_method_verify">mono_method_verify</a></h4>
<h3>Method Signatures</h3>
<h4><a name="api:mono_method_signature">mono_method_signature</a></h4>
<h4><a name="api:mono_signature_explicit_this">mono_signature_explicit_this</a></h4>
<h4><a name="api:mono_signature_get_call_conv">mono_signature_get_call_conv</a></h4>
<h4><a name="api:mono_signature_get_desc">mono_signature_get_desc</a></h4>
<h4><a name="api:mono_signature_get_param_count">mono_signature_get_param_count</a></h4>
<h4><a name="api:mono_signature_get_params">mono_signature_get_params</a></h4>
<h4><a name="api:mono_signature_get_return_type">mono_signature_get_return_type</a></h4>
<h4><a name="api:mono_signature_hash">mono_signature_hash</a></h4>
<h4><a name="api:mono_signature_is_instance">mono_signature_is_instance</a></h4>
<h4><a name="api:mono_signature_vararg_start">mono_signature_vararg_start</a></h4>
<h3>Methods Header Operations</h3>
<h4><a name="api:mono_method_get_header">mono_method_get_header</a></h4>
-113
View File
@@ -1,113 +0,0 @@
1. Thread safety of metadata structures
----------------------------------------
1.1 Synchronization of read-only data
-------------------------------------
Read-only data is data which is not modified after creation, like the
actual binary metadata in the metadata tables.
There are three kinds of threads with regards to read-only data:
- readers
- the creator of the data
- the destroyer of the data
Most threads are readers.
- synchronization between readers is not neccesary
- synchronization between the writers is done using locks.
- synchronization between the readers and the creator is done by not exposing
the data to readers before it is fully constructed.
- synchronization between the readers and the destroyer: TBD.
1.2 Deadlock prevention plan
----------------------------
Hold locks for the shortest time possible. Avoid calling functions inside
locks which might obtain global locks (i.e. locks known outside this module).
1.3 Locks
----------
1.3.1 Simple locks
------------------
There are a lot of global data structures which can be protected by a 'simple' lock. Simple means:
- the lock protects only this data structure or it only protects the data structures in a given C module.
An example would be the appdomains list in domain.c
- the lock is only held for a short amount of time, and no other lock is acquired inside this simple lock. Thus there is
no possibility of deadlock.
1.3.2 The class loader lock
---------------------------
This locks is held by the class loading routines in class.c and loader.c. It
protects the various caches inside MonoImage which are used by these modules.
1.3.3 The domain lock
---------------------
Each appdomain has a lock which protects the per-domain data structures.
1.3.4 The locking hierarchy
---------------------------
It is useful to model locks by a locking hierarchy, which is a relation between locks, which is reflexive, transitive,
and antisymmetric, in other words, a lattice. If a thread wants to acquire a lock B, while already holding A, it can only
do it if A < B. If all threads work this way, then no deadlocks can occur.
Our locking hierarchy so far looks like this:
<DOMAIN LOCK>
\
<CLASS LOADER LOCK>
\ \
<SIMPLE LOCK 1> <SIMPLE LOCK 2>
1.4 Notes
----------
Some common scenarios:
- if a function needs to access a data structure, then it should lock it itself, and do not count on its caller locking it.
So for example, the image->class_cache hash table would be locked by mono_class_get().
- there are lots of places where a runtime data structure is created and stored in a cache. In these places, care must be
taken to avoid multiple threads creating the same runtime structure, for example, two threads might call mono_class_get ()
with the same class name. There are two choices here:
<enter mutex>
<check that item is created>
if (created) {
<leave mutex>
return item
}
<create item>
<store it in cache>
<leave mutex>
This is the easiest solution, but it requires holding the lock for the whole time which might create a scalability problem, and could also lead to deadlock.
<enter mutex>
<check that item is created>
<leave mutex>
if (created) {
return item
}
<create item>
<enter mutex>
<check that item is created>
if (created) {
/* Another thread already created and stored the same item */
<free our item>
<leave mutex>
return orig item
}
else {
<store item in cache>
<leave mutex>
return item
}
This solution does not present scalability problems, but the created item might be hard to destroy (like a MonoClass).
- lazy initialization of hashtables etc. is not thread safe
+35
View File
@@ -1,3 +1,38 @@
2009-02-05 Miguel de Icaza <[email protected]>
* src/gstr.c: Add g_strnfill
* src/glib.h: Add g_list_previous
2009-01-19 Bill Holmes <[email protected]>
* gmisc-win32.c (g_path_is_absolute): Adding support for UNC
paths on Windows.
Contributed under MIT/X11 license.
2009-01-08 Bill Holmes <[email protected]>
* winconfig.h, src/gfile-posix.c :
Fixing the MSVC builds.
Contributed under MIT/X11 license.
2009-01-07 Miguel de Icaza <[email protected]>
* src/gfile-posix.c: Move g_get_current_dir, as it is a
POSIX-esque feature, and some other systems do not have current
directories.
* src/glib.h (G_LOCK_DEFINE, G_LOCK_DEFINE_STATIC):
Embedded support from Paolo's work on quack.
* configure.ac: check for strtok_r, langinfo.h and iconv.h
* src/gpath.c (strtok_r): Add a strtok_r implementation if it is
not available on the target system.
2008-11-05 Bill Holmes <[email protected]>
* src/gutf8.c, src/unicode-data.h, src/gunicode.c :
+3 -3
View File
@@ -2,7 +2,7 @@ AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(eglib,0.2)
AM_INIT_AUTOMAKE(eglib,0.3)
AM_MAINTAINER_MODE
AC_PROG_CC
@@ -55,7 +55,7 @@ AM_CONDITIONAL(PLATFORM_WIN32, test x$OS = xWIN32)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(void *)
AC_CHECK_FUNCS(strndup strlcpy getpwent_r)
AC_CHECK_FUNCS(strndup strlcpy getpwent_r strtok_r)
AC_CHECK_LIB(iconv, libiconv_open, LIBS="$LIBS -liconv")
old_ldflags="${LDFLAGS}"
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
@@ -64,7 +64,7 @@ if test $found_export_dynamic = no; then
LDFLAGS="${old_ldflags}"
fi
AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h)
AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h)
if test $ac_cv_sizeof_void_p != $ac_cv_sizeof_int; then
GPOINTER_TO_INT="((gint)(long) (ptr))"
+1
View File
@@ -39,6 +39,7 @@ libeglib_la_SOURCES = \
gmarkup.c \
gutf8.c \
gunicode.c \
unicode-data.h \
$(os_files)
libeglib_la_CFLAGS = -Wall -D_FORTIFY_SOURCE=2
+21
View File
@@ -35,6 +35,7 @@
#include <sys/types.h>
#ifdef _MSC_VER
#include <direct.h>
int mkstemp (char *tmp_template);
#endif
@@ -144,3 +145,23 @@ g_file_open_tmp (const gchar *tmpl, gchar **name_used, GError **error)
}
return fd;
}
gchar *
g_get_current_dir (void)
{
int s = 32;
char *buffer = NULL, *r;
gboolean fail;
do {
buffer = g_realloc (buffer, s);
r = getcwd (buffer, s);
fail = (r == NULL && errno == ERANGE);
if (fail) {
s <<= 1;
}
} while (fail);
return r;
}
+6 -2
View File
@@ -234,6 +234,7 @@ gchar *g_strjoinv (const gchar *separator, gchar **str_array);
gchar *g_strchug (gchar *str);
gchar *g_strchomp (gchar *str);
void g_strdown (gchar *string);
gchar *g_strnfill (gsize length, gchar fill_char);
gchar *g_strdelimit (gchar *string, const gchar *delimiters, gchar new_delimiter);
gchar *g_strescape (const gchar *source, const gchar *exceptions);
@@ -366,6 +367,7 @@ struct _GList {
};
#define g_list_next(list) ((list) ? (((GList *) (list))->next) : NULL)
#define g_list_previous(list) ((list) ? (((GList *) (list))->prev) : NULL)
GList *g_list_alloc (void);
GList *g_list_append (GList *list,
@@ -832,13 +834,15 @@ glong g_utf8_strlen (const gchar *str, gssize max);
#define g_thread_supported() TRUE
#define g_thread_init(x) G_STMT_START { if (x != NULL) { g_error ("No vtable supported in g_thread_init"); } } G_STMT_END
#define G_LOCK_DEFINE(name)
#define G_LOCK_DEFINE_STATIC(name)
#define G_LOCK_DEFINE(name) int name;
#define G_LOCK_DEFINE_STATIC(name) static int name;
#define G_LOCK_EXTERN(name)
#define G_LOCK(name)
#define G_TRYLOCK(name)
#define G_UNLOCK(name)
#define GUINT16_SWAP_LE_BE_CONSTANT(x) ((((guint16) x) >> 8) | ((((guint16) x) << 8)))
#define GUINT16_SWAP_LE_BE(x) ((guint16) (((guint16) x) >> 8) | ((((guint16)(x)) & 0xff) << 8))
#define GUINT32_SWAP_LE_BE(x) ((guint32) \
( (((guint32) (x)) << 24)| \
+34 -6
View File
@@ -40,6 +40,7 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <stdio.h>
#include <ctype.h>
#include <glib.h>
#define set_error(msg, ...) do { if (error != NULL) *error = g_error_new (GINT_TO_POINTER (1), 1, msg, __VA_ARGS__); } while (0);
@@ -99,10 +100,37 @@ g_markup_parse_context_free (GMarkupParseContext *context)
g_free (context);
}
static gboolean
my_isspace (char c)
{
if (c == ' ' || c == '\t' || c == '\r' || c == '\n' || c == '\v')
return TRUE;
return FALSE;
}
static gboolean
my_isalnum (char c)
{
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
return TRUE;
if (c >= '0' && c <= '9')
return TRUE;
return FALSE;
}
static gboolean
my_isalpha (char c)
{
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
return TRUE;
return FALSE;
}
static const char *
skip_space (const char *p, const char *end)
{
for (; p < end && isspace (*p); p++)
for (; p < end && my_isspace (*p); p++)
;
return p;
}
@@ -138,7 +166,7 @@ parse_name (const char *p, const char *end, char **value)
const char *start = p;
int l;
for (; p < end && isalnum (*p); p++)
for (; p < end && my_isalnum (*p); p++)
;
if (p == end)
return end;
@@ -268,7 +296,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
int full_stop = 0, l;
gchar **names = NULL, **values = NULL;
for (; p < end && isspace (*p); p++)
for (; p < end && my_isspace (*p); p++)
;
if (p == end){
set_error ("%s", "Unfinished element");
@@ -281,12 +309,12 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
break;
}
if (!(isascii (*p) && isalpha (*p))){
if (!my_isalpha (*p)){
set_error ("%s", "Expected an element name");
goto fail;
}
for (++p; p < end && (isalnum (*p) || (*p == '.')); p++)
for (++p; p < end && (my_isalnum (*p) || (*p == '.')); p++)
;
if (p == end){
set_error ("%s", "Expected an element");
@@ -294,7 +322,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
}
element_end = p;
for (; p < end && isspace (*p); p++)
for (; p < end && my_isspace (*p); p++)
;
if (p == end){
set_error ("%s", "Unfinished element");
+10 -5
View File
@@ -93,11 +93,16 @@ g_path_is_absolute (const char *filename)
{
g_return_val_if_fail (filename != NULL, FALSE);
if (filename[0] != '\0' && filename[1] != '\0' && filename[1] == ':' &&
filename[2] != '\0' && (filename[2] == '\\' || filename[2] == '/'))
return TRUE;
else
return FALSE;
if (filename[0] != '\0' && filename[1] != '\0')
if (filename[1] == ':' && filename[2] != '\0' &&
(filename[2] == '\\' || filename[2] == '/'))
return TRUE;
/* UNC paths */
else if (filename[0] == '\\' && filename[1] == '\\' &&
filename[2] != '\0')
return TRUE;
return FALSE;
}
const gchar *
+59 -21
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;
@@ -131,6 +134,60 @@ g_path_get_basename (const char *filename)
return g_strdup (&r[1]);
}
#ifndef HAVE_STRTOK_R
// This is from BSD's strtok_r
char *
strtok_r(char *s, const char *delim, char **last)
{
char *spanp;
int c, sc;
char *tok;
if (s == NULL && (s = *last) == NULL)
return NULL;
/*
* Skip (span) leading delimiters (s += strspn(s, delim), sort of).
*/
cont:
c = *s++;
for (spanp = (char *)delim; (sc = *spanp++) != 0; ){
if (c == sc)
goto cont;
}
if (c == 0){ /* no non-delimiter characters */
*last = NULL;
return NULL;
}
tok = s - 1;
/*
* Scan token (scan for delimiters: s += strcspn(s, delim), sort of).
* Note that delim must have one NUL; we stop if we see that, too.
*/
for (;;){
c = *s++;
spanp = (char *)delim;
do {
if ((sc = *spanp++) == c) {
if (c == 0)
s = NULL;
else {
char *w = s - 1;
*w = '\0';
}
*last = s;
return tok;
}
}
while (sc != 0);
}
/* NOTREACHED */
}
#endif
gchar *
g_find_program_in_path (const gchar *program)
{
@@ -163,25 +220,6 @@ g_find_program_in_path (const gchar *program)
return NULL;
}
gchar *
g_get_current_dir (void)
{
int s = 32;
char *buffer = NULL, *r;
gboolean fail;
do {
buffer = g_realloc (buffer, s);
r = getcwd (buffer, s);
fail = (r == NULL && errno == ERANGE);
if (fail) {
s <<= 1;
}
} while (fail);
return r;
}
static char *name;
void
+11 -2
View File
@@ -826,6 +826,15 @@ g_ascii_xdigit_value (gchar c)
(c - 'A' + 10))));
}
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;
ret [length] = 0;
return ret;
}
+10 -1
View File
@@ -33,6 +33,7 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include <config.h>
#include <stdio.h>
#include <glib.h>
#include <unicode-data.h>
@@ -44,9 +45,13 @@
typedef int iconv_t;
#else
#ifdef HAVE_LANGINFO_H
#include <langinfo.h>
#endif
#ifdef HAVE_ICONV_H
#include <iconv.h>
#endif
#endif
static char *my_charset;
static gboolean is_utf8;
@@ -200,7 +205,7 @@ g_convert (const gchar *str, gssize len,
{
char *result = NULL;
#ifdef G_OS_WIN32
#else
#elif HAVE_ICONV_H
iconv_t convertor;
char *buffer, *output;
const char *strptr = (const char *) str;
@@ -295,7 +300,11 @@ g_get_charset (G_CONST_RETURN char **charset)
is_utf8 = FALSE;
#else
if (my_charset == NULL){
#if HAVE_LANGINFO_H
my_charset = g_strdup (nl_langinfo (CODESET));
#else
my_charset = g_strdup ("UTF-8");
#endif
is_utf8 = strcmp (my_charset, "UTF-8") == 0;
}
+1 -1
View File
@@ -238,7 +238,7 @@ gint main(gint argc, gchar **argv)
string_array_free(tests_to_run);
}
return 0;
return global_tests - global_passed;
}
+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},
+2
View File
@@ -72,3 +72,5 @@
/* Version number of package */
#define VERSION "0.1"
#define HAVE_STRTOK_R 1
+1 -1
View File
@@ -28,7 +28,7 @@
#include <malloc.h>
#define ALLOCA _alloca
#else
#if defined(__FreeBSD__) || defined(__NetBSD__)
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#include <stdlib.h>
#else
#include <alloca.h>
+11
View File
@@ -1,3 +1,14 @@
2009-01-18 Zoltan Varga <[email protected]>
* include/private/gcconfig.h: Applied patch from Koushik Dutta
([email protected]). Define SEARCH_FOR_DATA_START for android.
2008-11-18 Mark Probst <[email protected]>
* include/private/gc_locks.h (test_and_set): The PPC64 case is
wrong, as it operates on 64 bit values, not on 32 bit ones as the
function requires. The PPC32 case is sufficient.
2008-09-29 Geoff Norton <[email protected]>
* include/private/gcconfig.h: Make Darwin/ARM use mmap() instead of
-20
View File
@@ -155,25 +155,6 @@
# define GC_TEST_AND_SET_DEFINED
# endif
# if defined(POWERPC)
# if CPP_WORDSZ == 64
inline static int GC_test_and_set(volatile unsigned int *addr) {
unsigned long oldval;
unsigned long temp = 1; /* locked value */
__asm__ __volatile__(
"1:\tldarx %0,0,%3\n" /* load and reserve */
"\tcmpdi %0, 0\n" /* if load is */
"\tbne 2f\n" /* non-zero, return already set */
"\tstdcx. %2,0,%1\n" /* else store conditional */
"\tbne- 1b\n" /* retry if lost reservation */
"\tsync\n" /* import barrier */
"2:\t\n" /* oldval is zero if we set */
: "=&r"(oldval), "=p"(addr)
: "r"(temp), "1"(addr)
: "cr0","memory");
return (int)oldval;
}
# else
inline static int GC_test_and_set(volatile unsigned int *addr) {
int oldval;
int temp = 1; /* locked value */
@@ -191,7 +172,6 @@
: "cr0","memory");
return oldval;
}
# endif
# define GC_TEST_AND_SET_DEFINED
inline static void GC_clear(volatile unsigned int *addr) {
__asm__ __volatile__("lwsync" : : : "memory");
+2
View File
@@ -1868,6 +1868,8 @@
# include <features.h>
# if defined(__GLIBC__) && __GLIBC__ >= 2
# define SEARCH_FOR_DATA_START
# elif defined(PLATFORM_ANDROID)
# define SEARCH_FOR_DATA_START
# else
extern char **__environ;
# define DATASTART ((ptr_t)(&__environ))
+15
View File
@@ -1,3 +1,18 @@
2008-12-31 Massimiliano Mantione <[email protected]>
* mono.1: Updated the profiler documentation, removing the "ts"
option (it does not exist anymore) and explaining the defaults for
allocation and heap profiling.
2008-12-12 Rolf Bjarne Kvinge <[email protected]>
* Makefile.am, vbnc.1: Remove vbnc.1. It's living in the
mono-basic module now.
2008-11-20 Rodrigo Kumpera <[email protected]>
* mono.1: Document env vars MONO_XDEBUG and MONO_VERBOSE_METHOD.
2008-10-18 Jonathan Pryor <[email protected]>
* Makefile.am (man_MANS): Remove unpackaged files.
-1
View File
@@ -48,7 +48,6 @@ man_MANS = \
sn.1 \
soapsuds.1 \
sqlsharp.1 \
vbnc.1 \
wsdl.1 \
xsd.1
+124
View File
@@ -51,6 +51,121 @@ are no \fI//AssemblyVersion\fR elements for a given \fI<Type>\fR or
\fI<Member/>\fR, then the \fI<Type>\fR will be renamed and/or the
\fI<Member/>\fR will be removed.
.TP
\fB\-\-exceptions\fR[=\fISOURCES\fR]
EXPERIMENTAL. This is not 100% reliable, but is intended to serve as an aid
for documentation writers.
.Sp
Inspect member bodies to determine what exceptions can be generated from the
member.
.Sp
\fISOURCES\fR is an optional comma-separated list of the following sources
that should be searched for exceptions:
.Sp
.nf
all Find exceptions created in the member itself,
references to members in the same assembly,
and references to members in dependent
assemblies.
asm Find exceptions created in the member itself and
references to members within the same assembly
as the member.
depasm Find exceptions created in the member itself and
references to members within dependent
assemblies.
.fi
.Sp
If \fISOURCES\fR isn't provided (the default), then only exceptions created
within the member itself will be documented.
.Sp
LIMITATIONS: Exception searching is currently implemented by looking for the
exception types that are explicitly created based on the known compile-time
types. This has the following limitations:
.RS
.ne 8
.TP
.B *
This will not find exceptions which are implicit to the IL, such as
NullReferenceException and IndexOutOfRangeException.
.TP
.B *
This will find exceptions which are \fInot\fR thrown, e.g.
.nf
public void CreateAnException ()
{
Exception e = new Exception ();
}
.fi
.TP
.B *
This will not "follow" delegate and interface calls:
.nf
public void UsesDelegates ()
{
Func<int, int> a = x => {throw new Exception ();};
a (4);
}
.fi
The function \fIUsesDelegates()\fR won't have any exceptions documented.
.TP
.B *
This will find exceptions which "cannot happen", such as
ArgumentNullExceptions for arguments which are "known" to be non-null:
.nf
public void A ()
{
B ("this parameter isn't null");
}
public void B (string s)
{
if (s == null)
throw new ArgumentNullException ("s");
}
.fi
For the above, if \fB--exceptions=asm\fR is provided then \fIA()\fR will be
documented as throwing an ArgumentNullException, which cannot happen.
.ne
.RE
.TP
\fB\-f\fR=\fIFLAG\fR
Specify a flag to alter behavior. Valid flags include:
.RS
.ne 8
.TP
.B no-assembly-versions
See the \fB-fno-assembly-versions\fR documentation, below.
.ne
.RE
.TP
\fB\-fno-assembly-versions\fR
Do not generate \fI/Type/AssemblyInfo/AssemblyVersion\fR and
\fI/Type/Members/Member/AssemblyInfo\fR elements.
.Sp
This is useful to prevent "churn" during updates. Normally, if a type or
member hasn't changed but the assembly version has changed, then all types and
members will be updated to include a new \fI//AssemblyVersion\fR element, thus
increasing the amount of changes that need review before committing (assuming
all changes are actually reviewed before commit).
.Sp
WARNING: This \fIwill\fR interact badly with the \fB--delete\fR option, as
\fB--delete\fR uses the \fI//AssemblyVersion\fR elements to track version
changes. Thus, if you have a member which is present in an early assembly
version and is removed in a subsequent assembly version, such as
\fISystem.Text.UTF8Encoding.GetBytes(string)\fR (which is present in .NET 1.0
but not in .NET 2.0), then the member will be removed when the
\fB--delete -fno-assembly-versions\fR options are specified, the member was
present in an earlier version of the assembly, and the current version of the
assembly does not contain the member.
.Sp
Consequently, this option should \fIonly\fR be specified if types and members
will \fInever\fR be removed from an assembly.
.TP
\fB\-i\fR, \fB\-\-import\fR=\fIFILE\fR
Import documentation found within \fIFILE\fR.
.Sp
@@ -60,6 +175,15 @@ Import documentation found within \fIFILE\fR.
Place the generated stubs into \fIDIRECTORY\fR.
.Sp
When updating documentation, \fIDIRECTORY\fR is also the source directory.
.TP
\fB\-\-since\fR=\fIVERSION\fR
When \fIupdating\fR documentation for an assembly, if a type or member is
encountered which didn't exist in the previous version of the assembly a
\fB<since version="\fR\fIVERSION\fR\fB"/>\fR element will be inserted.
.TP
\fB\-\-type\fR=\fITYPE\fR
Only update documentation for the type \fITYPE\fR.
.TP
.B \-h, \-?, \-\-help
Display a help message and exit.
.SH SEE ALSO
+70 -25
View File
@@ -548,7 +548,7 @@ repository.
.PP
This profiler is activated passing the \fB--profile=logging\fR option to
the mono runtime, and is controlled attaching further options, like
\fB--profile=logging:stat\fR for doing statistical profiling (multiple
\fB--profile=logging:statistical\fR for doing statistical profiling (multiple
options are separated by commas).
.PP
As a quick primer, here are a few examples of the most common usage modes:
@@ -557,32 +557,70 @@ To write the resulting data to "mydata.mprof" (defaults to statistical
profiling):
.nf
mono --profile=logging:o=mydata.mprof program.exe
mono --profile=logging:output=mydata.mprof program.exe
.fi
.PP
To perform statistical profiling, inspecting call chains up to depth 8:
.nf
mono --profile=logging:s=8 program.exe
mono --profile=logging:statistical=8 program.exe
.fi
.PP
To profile allocations with caller method attribution:
To profile allocations (by default the call stack will be analized for
each allocation, producing detailed caller method attribution infornation):
.nf
mono --profile=logging:a,ts program.exe
mono --profile=logging:allocations program.exe
.fi
.PP
To profile garbage collection activity (collection time and objects freed
at each collection):
To profile garbage collection activity at a high level (collection time and objects freed
at each collection for each class are reported, but heap snapshots are not saved to disk):
.nf
mono --profile=logging:g,as program.exe
mono --profile=logging:allocations-summary program.exe
.fi
.PP
To perform heap profiling taking heap snapshots:
.nf
mono --profile=logging:heap=all program.exe
mono --profile=logging:heap=<signal> program.exe
.fi
If "all" is specified, a heap snapshot is taken at each collection.
If, instead, a signal name or number is given (one of SIGUSR1, SIGUSR2 and
SIGPROF, remembering that SIGPROF is not compatible with the statistical
profiler), a garbage collection is forced and a snapshot is taken every
time the signal is received.
Heap profiling also enables full allocation profiling (with call stacks),
and each allocation can be related to its corresponding object in the
snapshots, enabling investigations like "find all objects of a given class
allocated by a given method and still live at a given collection, and then
find all objects referencing them".
.PP
Then you would need to invoke the decoder \fImprof-decoder(1)\fR
on the output file to see the profiling results.
on the output file to see the profiling results, or to examine heap
snapshots and allocations in detail \fImprof-heap-viewer(1)\fR.
.PP
These are all the available oprions, organized by category:
The operating modes described above are the default ones, and are sufficient
to use the profiler.
.PP
To further customize the profiler behavior there are more options, described
below.
These options can be individually enabled and disabled prefixing them with
an (optional) '+' character or a '-' character.
For instance, the "allocations" option by default records also the full call
stack at each allocation.
If only the caller is wanted, one should use "allocations,-save-allocation-stack",
or to disable call tracking completely (making the profiler less intrusive)
"allocations,-save-allocation-caller,-save-allocation-stack".
In practice the "allocation" option by default behaves like
"allocations,save-allocation-caller,save-allocation-stack", but the user can
tune this to his needs.
.PP
These are all the available options, organized by category:
.PP
\fBExecution profiling modes\fR
.RS
@@ -604,11 +642,6 @@ This can be a time consuming operation.
\fIjit\fR, \fIj\fR
Collect information about time spent by the JIT engine compiling
methods.
.TP
\fItrack-stack\fR, \fIts\fR
Track the execution stack. By itself this option does nothing, but it
enables more detailed reporting in other options (because the profiler
will use the stack data).
.ne
.RE
.PP
@@ -618,18 +651,20 @@ will use the stack data).
.TP
\fIallocations\fR, \fIalloc\fR or \fIa\fR
Collect information about each allocation (object class and size).
If combined with the "ts" option, for each allocation the profiler will
also show the responsible method (and also correctly dintinguish allocations
performed during JIT time).
These information are also available when combining the "a" and "c" options,
but since "c" is much more intrusive "ts" should be preferred.
By default this also implies "+save-allocation-caller" and
"+save-allocation-stack".
.TP
\fIsave-allocation-caller\fR, \fIsac\fR
Save the direct caller of each allocation. The profiler filters out wrapper
methods, and also recognizes if the allocation has been performed by the
runtime while jitting a method.
.TP
\fIsave-allocation-stack\fR, \fIsas\fR
Save the execution stack at each allocation. While the "ts" option saves the
direct caller, this one records the whole stack trace. Note that for technical
reasons the decoder will correctly ignore wrapper methods only using the data
saved by the "ts" option (the stack traces still contain all the wrappers).
Anyway the "ts" and "sas" options can be combined, and the decoder will
Save the full managed execution stack at each allocation.
While the "sac" option saves the direct caller, this one records the whole
stack trace.
Note that in the call stack the wrapper methods are not filtered out.
Anyway the "sac" and "sas" options can be combined, and the decoder will
attribute the allocation to the correct method even if the wrapper is at the
top of the stack trace.
.TP
@@ -1364,6 +1399,16 @@ No generic code sharing will be performed.
.Sp
Generic code sharing by default only applies to collections. The
Mono JIT by default turns this on.
.TP
\fBMONO_XDEBUG\fR
When the the MONO_XDEBUG env var is set, debugging info for JITted
code is emitted into a shared library, loadable into gdb. This enables,
for example, to see managed frame names on gdb backtraces.
.TP
\fBMONO_VERBOSE_METHOD\fR
Enables the maximum JIT verbosity for the specified method. This is
very helpfull to diagnose a miscompilation problems of a specific
method.
.SH VALGRIND
If you want to use Valgrind, you will find the file `mono.supp'
useful, it contains the suppressions for the GC which trigger
-162
View File
@@ -1,162 +0,0 @@
.TH vbnc 1 "21 February 2006"
.SH NAME
vbnc \- Mono Visual Basic Compiler.
.SH SYNOPSIS
.B vbnc
[option] [source-files]
.SH DESCRIPTION
.PP
.I (vbnc)
is a CIL compiler for the VisualBasic.NET language.
.PP
Applications developed on Windows with vbc can execute on Mono and applications
compiled with 'vbnc' can be executed on .NET runtime.
.PP
The Mono Visual Basic compiler accepts the same options as
the Microsoft VB.NET compiler. Those options can start with a slash or a
dash (/checked is the same as -checked).
.PP
Visual Basic.NET source files normally ends with a ".vb" extension.
Compilation of VB.NET source code requires all the files that make
up a library, module or executable to be provided on the command line.
There is no support for partial compilation. To achieve the benefits
of partial compilation, you should compile programs into their own
assemblies, and later reference them with the "-r" flag.
.PP
The Mono Basic compiler generates images (.exe files) that contain
CIL byte code that can be executed by any system that implements a Common
Language Infrastructure virtual machine such as the Microsoft .NET
runtime engine on Windows or the Mono runtime engine on Unix systems.
Executables are not bound to a specific CPU or operating system.
.PP
The Mono Basic compiler by default only references these assemblies:
mscorlib.dll, Microsoft.VisualBasic.dll, System.dll and System.Xml.dll.
If you want to reference extra libraries you must manually specify
them using the the -r: command line option.
.PP
.SH OPTIONS
.TP
.I \-addmodule:MODULE1[,MODULE2]
Includes the specified modules in the resulting assembly.
.TP
.I -codepage:ID
Specifies the code page used to process the input files from the
point it is specified on. By default files will be processed in the
current code page. The compiler will also automatically detect
Unicode/UTF8 files that have an embedded byte mark at the beginning.
.TP
Other popular encodings are 28591 (Latin1), 1252 (iso-8859-1) and 65001 (UTF-8).
.TP
.I \-define:SYMLIST, -d:SYMLIST
Defines the symbol listed by the semi-colon separeted list SYMLIST
SYMBOL. This can be tested in the source code by the pre-processor,
or can be used by methods that have been tagged with the Conditional
attribute.
.TP
.I \-debug:AMOUNT
Specify the amount of debugging information to emit. Possible values for
AMOUNT are "full" and "pdbonly".
.TP
.I \-imports:import-list
Declare global Imports for listed namespaces.
.TP
.I \-ignorewarn:XXXX
Ignores warning number XXXX.
.TP
.I -lib:PATHLIST, -libpath:PATHLIST
Each path specified in the comma-separated list will direct the
compiler to look for libraries in that specified path.
.TP
.I \-main:CLASS
Tells the compiler which CLASS or MODULE contains the entry point. Useful when
you are compiling several classes with a Main method.
.TP
.I \-nologo
Suppress printing copyright information on startup.
.TP
.I \-nostdlib, -nostdlib+
Use this flag if you want to compile the core library. This makes the
compiler load its internal types from the assembly being compiled.
.TP
.I \-noconfig, \-noconfig+
Disables the default compiler configuration to be loaded. The
compiler by default has references to the system assemblies.
.TP
.I \-nowarn
Makes the compiler ignore warnings.
.TP
.I \-optioncompare:binary, \-optioncompare:text
Select between binary and text string comparisons. The default is binary
string comparisons.
.TP
.I \-optionexplicit[+|-]
Require explicit declaration of variables
.TP
.I \-optionstrict[+|-]
Enforce strict language semantics
.TP
.I \-out:FNAME, -o FNAME
Names the output file to be generated.
.TP
.I -q -quiet
Commands the compiler to show only error messages for syntax-related errors
and warnings.
.TP
.I -resource:RESOURCE[,ID]
Embeds to the given resource file. The optional ID can be used to
give a different name to the resource. If not specified, the resource
name will be the file name.
.TP
.I -linkresource:RESOURCE[,ID]
Links to the specified RESOURCE. The optional ID can be used to give
a name to the linked resource.
.TP
.I -r:ASSEMBLY1[,ASSEMBLY2], \-r ASSEMBLY1[,ASSEMBLY2]
Reference the named assemblies. Use this to use classes from the named
assembly in your program. The assembly will be loaded from either the
system directory where all the assemblies live, or from the path
explicitly given with the -L option.
.PP
You can also use a semicolon to separate the assemblies instead of a
comma.
.TP
.I \-removeintchecks[+|-]
Remove integer checks. Default off.
.TP
.I \-rootnamespace:namespace
Specifies the root namespace for all type declarations
.TP
.I \-target:KIND, \-t:KIND
Used to specify the desired target. The possible values are: exe
(plain executable), winexe (Windows.Forms executable), library
(component libraries) and module (partial library).
.TP
.I \-utf8output[+|-]
Emit compiler output in UTF8 character encoding. Currently ignored.
.TP
.I \-\-version
Shows the compiler version.
.TP
.I \-warnaserror, \-warnaserror+
Treat warnings as errors.
.SH STABILITY
As of early 2007, the Mono Visual Basic compiler is still considered preview
software. The compiler is almost feature-complete (targeting the Microsoft
Visual Basic 8 compiler), only lacking support for the 'My' namespace.
Frequent crashes are still occuring, especially with incorrect code.
.PP
.SH AUTHORS
See the ChangeLog for authors
.PP
.SH LICENSE
The Mono Visual Basic compiler is released under the terms of the GNU LGPL.
Alternative licenses are available from Novell.
.PP
.SH SEE ALSO
mcs(1), mono(1), mint(1), sn(1)
.PP
.SH BUGS
To report bugs in the compiler, you can file bug reports in our
bug tracking system: http://bugzilla.ximian.com.
.SH MAILING LIST
The Mono Basic Mailing List is available at: [email protected]
+55
View File
@@ -1,3 +1,58 @@
2009-02-03 Rodrigo Kumpera <[email protected]>
* docs/Makefile: Fix install-local and uninstall-local if
DISABLE_MCS_DOCS is defined.
2009-02-02 Rodrigo Kumpera <[email protected]>
* docs/Makefile: Don't build build-documentation if DISABLE_MCS_DOCS
is defined.
2009-01-31 Rodrigo Kumpera <[email protected]>
* docs/Makefile: use -f with rm on the clean target so
rm doesn't complain about missing files.
2008-12-10 Atsushi Enomoto <[email protected]>
* Makefile : remove sys.messaging from CENTUM_TESTS. It has never
been supported, and now, it's heavily developed.
2008-12-08 Jonathan Pryor <[email protected]>
* docs/monodoc.xml: Rename the "File Formats" node to "Commands and
Files", so that ~all man pages can be under the same node.
* docs/lang-csharp.source: Since C# is the only current language, move
the child nodes "up" a node so we have "Languages/C# Compiler Error
Reference" and "Languages/C# Language Specification" nodes.
2008-12-02 Jonathan Pryor <[email protected]>
* docs/Makefile: Build additional directories (Npgsql,
System.Configuration.Install, System.Design, System.Runtime.Remoting,
System.Runtime.Serialization.Formatters.Soap); shorten entries.
2008-11-26 Atsushi Enomoto <[email protected]>
* docs/Makefile: remove nunit docs that do not exist (and I don't
think such docs for private mono use should be provided).
2008-11-26 Atsushi Enomoto <[email protected]>
* Makefile : I happened to remove errors and docs which
used to be broken.
2008-11-25 Atsushi Enomoto <[email protected]>
* Makefile : replace nunit20 with nunit24.
2008-11-18 Jonathan Pryor <[email protected]>
* docs/Makefile: Don't build mono-file-formats.*, mono-tools.*
* docs/mono-file-formats.config, docs/mono-file-formats.source,
docs/mono-tools.config, docs/mono-tools.source: Removed (now located
in mono/docs).
2008-11-02 Jonathan Pryor <[email protected]>
* docs/Makefile (MONO_DIRS): Add Mono.Simd.
+2 -3
View File
@@ -1,11 +1,11 @@
thisdir := .
SUBDIRS := build jay mcs class nunit20 ilasm tools tests errors docs
SUBDIRS := build jay mcs class nunit24 ilasm tools tests errors docs
basic_SUBDIRS := build jay mcs class
net_1_1_bootstrap_SUBDIRS := build jay mcs class ilasm tools
net_2_0_bootstrap_SUBDIRS := build jay mcs class ilasm tools
net_2_0_SUBDIRS := build jay mcs class nunit20 ilasm tools tests errors docs
net_2_0_SUBDIRS := build jay mcs class nunit24 ilasm tools tests errors docs
net_2_1_bootstrap_SUBDIRS := build mcs class
net_2_1_raw_SUBDIRS := build mcs class tools
net_2_1_SUBDIRS := tools tests errors
@@ -24,7 +24,6 @@ centum_tests := \
class/System.Design \
class/System.DirectoryServices \
class/System.Drawing \
class/System.Messaging \
class/System.Runtime.Remoting \
class/System.Runtime.Serialization.Formatters.Soap \
class/System.Security \
+60
View File
@@ -1,3 +1,63 @@
2009-01-08 Geoff Norton <[email protected]>
* Makefile: Add darwin.make to the make dist target as well
2009-01-07 Geoff Norton <[email protected]>
* library.make: Allow platform specific exclude tags from the
test harness suite.
* darwin.make: Add to the build and add a new NotOnMac test
category
2008-12-30 Ankit Jain <[email protected]>
* library.make (TEST_HARNESS_OUTPUT*): Fix /labels switch.
2008-12-12 Raja R Harinath <[email protected]>
* rules.make (topdir): Don't use $(shell ...).
Reported by Jonathan Chambers.
2008-12-10 Atsushi Enomoto <[email protected]>
* library.make : enable FIXTURE and TESTNAME on run-test-ondotnet.
2008-11-28 Atsushi Enomoto <[email protected]>
* Makefile : ugh, ok another dist pain.
2008-11-28 Atsushi Enomoto <[email protected]>
* nunit-summary.xsl : copied from nunit resource (summary.xslt)
* library.make : put transformation result from TestResult-*.xml
into TestResult-*.log as we used to do.
2008-11-28 Marek Habersack <[email protected]>
* library.make (FIXTURE_ARG): /parameter:value syntax is not
supported in nunit 2.4
(TESTNAME_ARG): added support for the nunit-console -run
parameter, so that individual tests can be ran.
2008-11-26 Atsushi Enomoto <[email protected]>
* library.make : another nunit20 to kill :(
2008-11-25 Atsushi Enomoto <[email protected]>
* library.make : update nunit options that break upgrade to 2.4.
2008-11-18 Raja R Harinath <[email protected]>
* library.make (TEST_FILES): Notice filenames with ../ in the test
sources file, and handle them in a way suitable for the 'make
dist' handling of such files.
2008-11-12 Zoltan Varga <[email protected]>
* library.make: AOT the library after compilation if the AOT_IN_PROFILES
variable is defined and it contains the current profile.
2008-10-18 Jonathan Pryor <[email protected]>
* rules.make (dist-default): Distribute the Documentation directory,
+2 -1
View File
@@ -14,7 +14,7 @@ common/Consts.cs: common/Consts.cs.in $(wildcard config.make)
test -n '$(MONO_VERSION)'
sed -e 's,@''MONO_VERSION@,$(MONO_VERSION),' $< > $@
PLATFORMS = linux win32
PLATFORMS = darwin linux win32
PROFILES = \
basic \
net_1_1_bootstrap \
@@ -41,6 +41,7 @@ DISTFILES = \
corcompare-api.xsl \
executable.make \
library.make \
nunit-summary.xsl \
rules.make \
$(COMMON_SRCS:%=common/%) \
$(PLATFORMS:%=platforms/%.make) $(PROFILES:%=profiles/%.make)
+5
View File
@@ -1,3 +1,8 @@
2008-11-25 Rolf Bjarne Kvinge <[email protected]>
* Consts.cs.in: Update Silverlight's FxFileVersion to final
version number of Silverlight 2.
2008-08-20 Jb Evain <[email protected]>
* Consts.cs.in: add NET_3_0 case for wcf.
+1 -1
View File
@@ -66,7 +66,7 @@ internal
// Versions of .NET Framework for SilverLight
public const string FxVersion = "2.0.5.0";
public const string VsVersion = "9.0.0.0"; // TODO:
public const string FxFileVersion = "2.0.30226.2";
public const string FxFileVersion = "2.0.31005.0";
public const string VsFileVersion = "9.0.50727.42"; // TODO:
#elif NET_2_0 || BOOTSTRAP_NET_2_0
// Versions of .NET Framework 2.0 RTM
+26 -15
View File
@@ -49,7 +49,7 @@ the_libdir = $(topdir)/class/$(lib_dir)/$(PROFILE)/
the_lib = $(the_libdir)$(LIBRARY_NAME)
the_pdb = $(the_lib:.dll=.pdb)
the_mdb = $(the_lib).mdb
library_CLEAN_FILES += $(makefrag) $(the_lib) $(the_pdb) $(the_mdb)
library_CLEAN_FILES += $(makefrag) $(the_lib) $(the_lib).so $(the_pdb) $(the_mdb)
ifdef LIBRARY_NEEDS_POSTPROCESSING
build_libdir = fixup/$(PROFILE)/
@@ -174,7 +174,7 @@ ifndef NO_TEST
$(test_nunit_dep): $(topdir)/build/deps/nunit-$(PROFILE).stamp
@if test -f $@; then :; else rm -f $<; $(MAKE) $<; fi
$(topdir)/build/deps/nunit-$(PROFILE).stamp:
cd ${topdir}/nunit20 && $(MAKE)
cd ${topdir}/nunit24 && $(MAKE)
echo "stamp" >$@
library_CLEAN_FILES += $(topdir)/build/deps/nunit-$(PROFILE).stamp
endif
@@ -195,34 +195,38 @@ test-local: $(test_assemblies)
run-test-local: run-test-lib
run-test-ondotnet-local: run-test-ondotnet-lib
TEST_HARNESS_EXCLUDES = /exclude:NotWorking,ValueAdd,CAS,InetAccess
TEST_HARNESS_EXCLUDES_ONDOTNET = /exclude:NotDotNet,CAS
TEST_HARNESS_EXCLUDES = -exclude=$(PLATFORM_TEST_HARNESS_EXCLUDES)NotWorking,ValueAdd,CAS,InetAccess
TEST_HARNESS_EXCLUDES_ONDOTNET = /exclude:$(PLATFORM_TEST_HARNESS_EXCLUDES)NotDotNet,CAS
ifdef TEST_HARNESS_VERBOSE
TEST_HARNESS_OUTPUT = /labels
TEST_HARNESS_OUTPUT_ONDOTNET = /labels
TEST_HARNESS_OUTPUT = -labels
TEST_HARNESS_OUTPUT_ONDOTNET = -labels
TEST_HARNESS_POSTPROC = :
TEST_HARNESS_POSTPROC_ONDOTNET = :
else
TEST_HARNESS_OUTPUT = /output:TestResult-$(PROFILE).log
TEST_HARNESS_OUTPUT_ONDOTNET = /output:TestResult-ondotnet-$(PROFILE).log
TEST_HARNESS_POSTPROC = (echo ''; cat TestResult-$(PROFILE).log) | sed '1,/^Tests run: /d'
TEST_HARNESS_POSTPROC_ONDOTNET = (echo ''; cat TestResult-ondotnet-$(PROFILE).log) | sed '1,/^Tests run: /d'
TEST_HARNESS_OUTPUT = -output=TestResult-$(PROFILE).log
TEST_HARNESS_OUTPUT_ONDOTNET = -output=TestResult-ondotnet-$(PROFILE).log
TEST_HARNESS_POSTPROC = (echo ''; cat TestResult-$(PROFILE).log) | sed '1,/^Tests run: /d'; xsltproc $(topdir)/build/nunit-summary.xsl TestResult-$(PROFILE).xml >> TestResult-$(PROFILE).log
TEST_HARNESS_POSTPROC_ONDOTNET = (echo ''; cat TestResult-ondotnet-$(PROFILE).log) | sed '1,/^Tests run: /d'; xsltproc $(topdir)/build/nunit-summary.xsl TestResult-ondotnet-$(PROFILE).xml >> TestResult-ondotnet-$(PROFILE).log
endif
ifdef FIXTURE
FIXTURE_ARG = /fixture:MonoTests.$(FIXTURE)
FIXTURE_ARG = -fixture=MonoTests.$(FIXTURE)
endif
ifdef TESTNAME
TESTNAME_ARG = -run=MonoTests.$(TESTNAME)
endif
## FIXME: i18n problem in the 'sed' command below
run-test-lib: test-local
ok=:; \
MONO_REGISTRY_PATH="$(HOME)/.mono/registry" $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(TEST_HARNESS) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) $(TEST_HARNESS_EXCLUDES) $(TEST_HARNESS_OUTPUT) /xml:TestResult-$(PROFILE).xml $(test_assemblies) $(FIXTURE_ARG) || ok=false; \
MONO_REGISTRY_PATH="$(HOME)/.mono/registry" $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(TEST_HARNESS) $(test_assemblies) -noshadow $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) $(TEST_HARNESS_EXCLUDES) $(TEST_HARNESS_OUTPUT) -xml=TestResult-$(PROFILE).xml $(FIXTURE_ARG) $(TESTNAME_ARG)|| ok=false; \
$(TEST_HARNESS_POSTPROC) ; $$ok
run-test-ondotnet-lib: test-local
ok=:; \
$(TEST_HARNESS) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_ONDOTNET_FLAGS) $(TEST_HARNESS_EXCLUDES_ONDOTNET) $(TEST_HARNESS_OUTPUT_ONDOTNET) /xml:TestResult-ondotnet-$(PROFILE).xml $(test_assemblies) || ok=false; \
$(TEST_HARNESS) $(test_assemblies) -noshadow $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_ONDOTNET_FLAGS) $(TEST_HARNESS_EXCLUDES_ONDOTNET) $(TEST_HARNESS_OUTPUT_ONDOTNET) -xml=TestResult-ondotnet-$(PROFILE).xml $(FIXTURE_ARG) $(TESTNAME_ARG) || ok=false; \
$(TEST_HARNESS_POSTPROC_ONDOTNET) ; $$ok
endif
@@ -231,11 +235,11 @@ DISTFILES = $(wildcard *$(LIBRARY)*.sources) $(EXTRA_DISTFILES)
TEST_FILES =
ifdef HAVE_CS_TESTS
TEST_FILES += `sed -e '/^$$/d' -e 's,^,Test/,' $(test_sourcefile)`
TEST_FILES += `sed -e '/^$$/d' -e 's,^../,,' -et -e 's,^,Test/,' $(test_sourcefile)`
DISTFILES += $(test_sourcefile)
endif
ifdef HAVE_VB_TESTS
TEST_FILES += `sed -e '/^$$/d' -e 's,^,Test/,' $(btest_sourcefile)`
TEST_FILES += `sed -e '/^$$/d' -e 's,^../,,' -et -e 's,^,Test/,' $(btest_sourcefile)`
DISTFILES += $(btest_sourcefile)
endif
@@ -293,6 +297,8 @@ BUILT_SOURCES_cmdline = `echo $(BUILT_SOURCES) | $(PLATFORM_CHANGE_SEPARATOR_CMD
endif
endif
Q_AOT=$(if $(V),,@echo "AOT [$(PROFILE)] $(notdir $(@))";)
# The library
$(the_lib): $(the_libdir)/.stamp
@@ -308,6 +314,11 @@ else
$(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) -target:library -out:$@ $(BUILT_SOURCES_cmdline) @$(response)
$(SN) $(SNFLAGS) $@ $(LIBRARY_SNK)
endif
ifdef ENABLE_AOT
ifneq (,$(filter $(AOT_IN_PROFILES), $(PROFILE)))
$(Q_AOT) MONO_PATH=$(the_libdir) $(RUNTIME) --aot=bind-to-runtime-version $@ > $(PROFILE)_aot.log 2>&1
endif
endif
$(makefrag): $(sourcefile)
@echo Creating $@ ...
+48
View File
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='text'/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="test-results">
<xsl:text>Tests run: </xsl:text>
<xsl:value-of select="@total"/>
<xsl:text>, Failures: </xsl:text>
<xsl:value-of select="@failures"/>
<xsl:text>, Not run: </xsl:text>
<xsl:value-of select="@not-run"/>
<xsl:text>, Time: </xsl:text>
<xsl:value-of select="test-suite/@time"/>
<xsl:text> seconds
</xsl:text>
<xsl:text>
</xsl:text>
<xsl:if test="//test-suite[failure]"><xsl:text>Test Fixture SetUp Failures:
</xsl:text></xsl:if>
<xsl:apply-templates select="//test-suite[failure]"/>
<xsl:if test="//test-case[failure]"><xsl:text>Test Case Failures:
</xsl:text></xsl:if>
<xsl:apply-templates select="//test-case[failure]"/>
<xsl:if test="//test-case[@executed='False']"><xsl:text>Tests not run:
</xsl:text></xsl:if>
<xsl:apply-templates select="//test-case[@executed='False']"/>
<xsl:text disable-output-escaping='yes'>&#xD;&#xA;</xsl:text>
</xsl:template>
<xsl:template match="test-case|test-suite">
<xsl:value-of select="position()"/><xsl:text>) </xsl:text>
<xsl:value-of select="@name"/>
<xsl:text> : </xsl:text>
<xsl:value-of select="child::node()/message"/>
<xsl:text disable-output-escaping='yes'>&#xD;&#xA;</xsl:text>
<xsl:if test="failure">
<xsl:value-of select="failure/stack-trace"/>
<xsl:text>
</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
+38
View File
@@ -0,0 +1,38 @@
# -*- makefile -*-
#
# Platform-specific makefile rules. This one's for linux.
#
PLATFORM_DEBUG_FLAGS = -debug
PLATFORM_MCS_FLAGS = -optimize
PLATFORM_RUNTIME = $(RUNTIME)
PLATFORM_CORLIB = mscorlib.dll
PLATFORM_TEST_HARNESS_EXCLUDES = NotOnMac,
EXTERNAL_MCS = mcs
EXTERNAL_MBAS = mbas
EXTERNAL_RUNTIME = mono
RESGEN = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN)
#ILDISASM = monodis
ILDISASM = false
PLATFORM_PATH_SEPARATOR = :
# Define this if this ever will work on Linux
# PLATFORM_MAKE_CORLIB_CMP = yes
# This is for changing / to \ on windows
PLATFORM_CHANGE_SEPARATOR_CMD = cat
hidden_prefix = .
hidden_suffix =
platform-check:
@:
# I tried this but apparently Make's version strings aren't that
# ... consistent between releases. Whatever.
#
# @if ! $(MAKE) --version |grep '^GNU Make version 3' 1>/dev/null 2>&1 ; then \
# echo "*** You need to build MCS with GNU make. Try \`gmake'" ; \
# exit 1 ; \
# fi
+1
View File
@@ -7,6 +7,7 @@ PLATFORM_DEBUG_FLAGS = -debug
PLATFORM_MCS_FLAGS = -optimize
PLATFORM_RUNTIME = $(RUNTIME)
PLATFORM_CORLIB = mscorlib.dll
PLATFORM_TEST_HARNESS_EXCLUDES =
EXTERNAL_MCS = mcs
EXTERNAL_MBAS = mbas
+1
View File
@@ -7,6 +7,7 @@ PLATFORM_DEBUG_FLAGS = /debug+ /debug:full
PLATFORM_MCS_FLAGS = /nologo /optimize
PLATFORM_RUNTIME =
PLATFORM_CORLIB = mscorlib.dll
PLATFORM_TEST_HARNESS_EXCLUDES =
EXTERNAL_MCS = mcs
EXTERNAL_MBAS = vbc.exe
+9 -4
View File
@@ -7,11 +7,16 @@
# If you need to edit this file, that's a bug; email
# [email protected] about it.
# Some more variables. The leading period in the sed expression prevents
# thisdir = . from being changed into '..' for the toplevel directory.
empty :=
space := $(empty) $(empty)
dots := $(shell echo $(thisdir) |sed -e 's,[^./][^/]*,..,g')
topdir := $(dots)
# given $(thisdir), we compute the path to the top directory
#
# split_path = $(filter-out .,$(subst /,$(space),$(1)))
# make_path = ./$(subst $(space),/,$(1))
# dotdottify = $(patsubst %,..,$(1))
# topdir = $(call make_path,$(call dotdottify,$(call split_path,$(thisdir))))
topdir := ./$(subst $(space),/,$(patsubst %,..,$(filter-out .,$(subst /,$(space),$(thisdir)))))
VERSION = 0.93
+22
View File
@@ -1,3 +1,25 @@
2009-01-22 Marek Habersack <[email protected]>
* Makefile (net_2_0_dirs): added System.Web - it now depends on
System.Core, so it needs to be recompiled one more time after
System.Core is done.
2008-12-08 Atsushi Enomoto <[email protected]>
* Makefile : revert previous one and retry before I revert everything.
2008-12-08 Atsushi Enomoto <[email protected]>
* Makefile : actually RabbitMQ.Client is under wrong build practice :(
2008-12-08 Atsushi Enomoto <[email protected]>
* Makefile : add new sys.messaging implementation.
2008-11-20 Jb Evain <[email protected]>
* Makefile: add System.Xml.Linq to the net_2_1 build.
2008-11-05 Marek Habersack <[email protected]>
* Makefile (net_2_0_dirs): Npgsql requires .NET 2.0+ now.
+9
View File
@@ -1,3 +1,12 @@
2009-01-20 Atsushi Enomoto <[email protected]>
* Commons.Xml.Relaxng_test.dll.sources : forgot to add
RelaxngDatatypeProviderTests.cs.
2008-11-11 Atsushi Enomoto <[email protected]>
* Makefile: what a messy EXTRA_DISTFILES.
2007-04-18 Atsushi Enomoto <[email protected]>
* Makefile (EXTRA_DISTFILES) :
@@ -1,3 +1,8 @@
2008-11-11 Atsushi Enomoto <[email protected]>
* RncParser.jay : handle inherited default namespace as expected.
This should fix HTML5 compact syntax grammar.
2007-12-27 Atsushi Enomoto <[email protected]>
* RncParser.jay, RncTokenizer.cs : some changes to fill element
@@ -56,12 +56,17 @@ namespace Commons.Xml.Relaxng.Rnc
public static RelaxngPattern ParseRnc (TextReader reader, XmlNameTable nameTable, string baseUri)
{
return new RncParser (nameTable).Parse (reader, baseUri);
return ParseRnc (reader, nameTable, baseUri, null);
}
public static RelaxngPattern ParseRnc (TextReader reader, XmlNameTable nameTable, string baseUri, string defaultNamespace)
{
return new RncParser (nameTable).Parse (reader, baseUri, defaultNamespace);
}
XmlNamespaceManager nsmgr;
XmlNamespaceManager dtnsmgr;
string defaultNamespace = String.Empty;
string defaultNamespace;
static int yacc_verbose_flag;
RncTokenizer tokenizer;
@@ -89,9 +94,6 @@ namespace Commons.Xml.Relaxng.Rnc
}
// note that this is different notion than that of xmlns.
public string DefaultNamespace {
get { return defaultNamespace; }
}
public RelaxngPattern Parse (TextReader source)
{
@@ -100,6 +102,14 @@ namespace Commons.Xml.Relaxng.Rnc
public RelaxngPattern Parse (TextReader source, string baseUri)
{
return Parse (source, baseUri, null);
}
public RelaxngPattern Parse (TextReader source, string baseUri, string defaultNamespace)
{
this.defaultNamespace = defaultNamespace;
if (defaultNamespace != null && defaultNamespace.Length != 0)
nsmgr.AddNamespace (String.Empty, defaultNamespace);
try {
if (Environment.GetEnvironmentVariable ("MONO_RELAXNG_COMPACT_DEBUG") == "yes")
debug = new yydebug.yyDebugSimple ();
@@ -151,7 +161,7 @@ namespace Commons.Xml.Relaxng.Rnc
RelaxngName name = nc as RelaxngName;
if (name != null) {
if (name.Namespace == null)
name.Namespace = this.DefaultNamespace;
name.Namespace = defaultNamespace;
return;
}
RelaxngNameChoice choice = nc as RelaxngNameChoice;
@@ -272,6 +282,7 @@ Decl /* returns null */
// TODO: constraints
string ns = (string) $4;
defaultNamespace = ns;
nsmgr.AddNamespace (String.Empty, ns);
$$ = null;
}
| KeywordDefault KeywordNamespace NamespacePrefix Equal NamespaceURILiteral
@@ -280,6 +291,7 @@ Decl /* returns null */
string prefix = (string) $3;
string ns = (string) $5;
defaultNamespace = ns;
nsmgr.AddNamespace (String.Empty, ns);
nsmgr.AddNamespace (prefix, ns);
$$ = null;
}
@@ -314,7 +326,7 @@ NamespaceURILiteral /* returns string */
}
| KeywordInherit
{
$$ = (string) $1;
$$ = defaultNamespace;
}
;
@@ -332,8 +344,8 @@ TopLevelBody /* returns RelaxngPattern */
{
RelaxngGrammar g = new RelaxngGrammar ();
FillLocation (g);
if (nsmgr.DefaultNamespace != String.Empty)
g.DefaultNamespace = nsmgr.DefaultNamespace;
if (defaultNamespace != null)
g.DefaultNamespace = defaultNamespace;
RelaxngGrammarContentList list = (RelaxngGrammarContentList) $1;
FillGrammarContent (list, g.Starts, g.Defines, g.Divs, g.Includes);
$$ = g;
@@ -452,11 +464,11 @@ AnyURILiteral /* returns string */
;
OptInherit /* returns string */
/* FIXME: It is not handled properly. */
/* The empty value will be handled at Compile() time. */
: /* empty */
{
// MakeNsAttribute (LookupDefault (environment));
$$ = nsmgr.DefaultNamespace;
$$ = defaultNamespace;
}
| KeywordInherit Equal IdentifierOrKeyword
{
@@ -1,3 +1,23 @@
2009-02-17 Atsushi Enomoto <[email protected]>
* XsdDatatypeProvider.cs : workaround .NET/Mono Regex bug that
does not handle \p{Latin-1Supplement} to work with OOXML grammar.
2009-01-20 Atsushi Enomoto <[email protected]>
* RelaxngReader.cs : fixed wrong text skip and ns/datatypeLibrary
stack pop. Fixed bug #463267.
2009-01-20 Atsushi Enomoto <[email protected]>
* RelaxngGrammar.cs : fix confused use of datatype provider property.
Fixed bug #463264. Based on the patch by Mark Junker.
2008-11-11 Atsushi Enomoto <[email protected]>
* RelaxngPattern.cs : handle inherited default namespace in compact
syntax as expected.
2008-08-25 Atsushi Enomoto <[email protected]>
* RelaxngPattern.cs : unlike "include" element, "external" element
@@ -56,8 +56,6 @@ namespace Commons.Xml.Relaxng
RelaxngGrammarContentList includes = new RelaxngGrammarContentList ();
RelaxngGrammarContentList divs = new RelaxngGrammarContentList ();
RelaxngDatatypeProvider provider;
// compiled fields.
RdpPattern startPattern;
@@ -114,8 +112,8 @@ namespace Commons.Xml.Relaxng
}
internal RelaxngDatatypeProvider Provider {
get { return parentGrammar != null ? parentGrammar.Provider : provider; }
set { provider = value; }
get { return (base.DataProvider == null) ? (parentGrammar != null ? parentGrammar.Provider : base.DataProvider) : base.DataProvider; }
set { base.DataProvider = value; }
}
public override RelaxngPatternType PatternType {
@@ -83,7 +83,7 @@ namespace Commons.Xml.Relaxng
RelaxngGrammar g = null;
try {
if (grammar.IsSourceCompactSyntax) {
return RncParser.ParseRnc (new StreamReader ((Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream))), null, BaseUri);
return RncParser.ParseRnc (new StreamReader ((Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream))), null, BaseUri, nsContext);
} else {
xtr = new XmlTextReader (uri.AbsoluteUri, (Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream)));
RelaxngReader r = new RelaxngReader (xtr, nsContext, grammar.Resolver);
@@ -343,15 +343,16 @@ namespace Commons.Xml.Relaxng
if (BaseUri != null && BaseUri != String.Empty)
baseUri = new Uri (BaseUri);
} catch (UriFormatException) {
if (Path.IsPathRooted (BaseUri))
if (File.Exists (BaseUri))
baseUri = new Uri (Path.GetFullPath (BaseUri));
}
Uri uri = grammar.Resolver.ResolveUri (baseUri, Href);
RelaxngGrammar g = ReadExternalResource (grammar, uri, ns) as RelaxngGrammar;
RelaxngGrammar g = ReadExternalResource (grammar, uri, (ns != null && ns.Length != 0) || !grammar.IsSourceCompactSyntax ? ns : grammar.DefaultNamespace) as RelaxngGrammar;
if (g == null)
throw new RelaxngException (this, "Included syntax must start with \"grammar\" element.");
g.DataProvider = grammar.Provider;
g.IsSourceCompactSyntax = grammar.IsSourceCompactSyntax;
// process recursive inclusions.
foreach (RelaxngInclude inc in g.Includes)
@@ -60,6 +60,7 @@ namespace Commons.Xml.Relaxng
Stack nsStack = new Stack ();
Stack datatypeLibraryStack = new Stack ();
XmlResolver resolver;
bool skipExternal = true;
// ArrayList annotationNamespaces = new ArrayList ();
// ctor
@@ -120,13 +121,14 @@ namespace Commons.Xml.Relaxng
bool skipRead = false;
bool b = false;
bool loop = true;
if (IsEmptyElement) { // this should be done here
MoveToElement ();
if (IsEmptyElement || NodeType == XmlNodeType.EndElement) { // this should be done here
nsStack.Pop ();
datatypeLibraryStack.Pop ();
}
do {
if (!skipRead)
Reader.Read ();
b = Reader.Read ();
else
skipRead = false;
switch (NodeType) {
@@ -143,7 +145,10 @@ namespace Commons.Xml.Relaxng
else
loop = false;
break;
default:
case XmlNodeType.Element:
case XmlNodeType.EndElement:
if (!skipExternal)
goto default;
if (NamespaceURI != RelaxngGrammar.NamespaceURI) {
Reader.Skip ();
skipRead = true;
@@ -151,6 +156,9 @@ namespace Commons.Xml.Relaxng
else
loop = false;
break;
default:
loop = false;
break;
}
} while (!Reader.EOF && loop);
@@ -181,11 +189,6 @@ namespace Commons.Xml.Relaxng
else
datatypeLibraryStack.Push (DatatypeLibrary);
break;
case XmlNodeType.EndElement:
nsStack.Pop ();
datatypeLibraryStack.Pop ();
break;
}
return b;
@@ -957,5 +960,13 @@ namespace Commons.Xml.Relaxng
FillLocation (na);
return na;
}
public override string ReadString ()
{
skipExternal = false;
string s = base.ReadString ();
skipExternal = true;
return s;
}
}
}
@@ -138,6 +138,7 @@ namespace Commons.Xml.Relaxng.XmlSchema
r.BaseTypeName = new XmlQualifiedName (primitive.Name, ns);
foreach (RelaxngParam p in parameters) {
XmlSchemaFacet f = null;
string value = p.Value;
switch (p.Name) {
case "maxExclusive":
f = new XmlSchemaMaxExclusiveFacet ();
@@ -153,6 +154,9 @@ namespace Commons.Xml.Relaxng.XmlSchema
break;
case "pattern":
f = new XmlSchemaPatternFacet ();
// .NET/Mono Regex has a bug that it does not support "IsLatin-1Supplement"
// (it somehow breaks at '-').
value = value.Replace ("\\p{IsLatin-1Supplement}", "[\\x80-\\xFF]");
break;
case "whiteSpace":
f = new XmlSchemaWhiteSpaceFacet ();
@@ -175,7 +179,7 @@ namespace Commons.Xml.Relaxng.XmlSchema
default:
throw new RelaxngException (String.Format ("XML Schema facet {0} is not recognized or not supported.", p.Name));
}
f.Value = p.Value;
f.Value = value;
r.Facets.Add (f);
}
@@ -1,4 +1,5 @@
RdpPatternTests.cs
RelaxngDatatypeProviderTests.cs
RelaxngReaderTests.cs
RelaxngValidatingReaderTests.cs
XsdDatatypeTests.cs
@@ -1,3 +1,8 @@
2009-01-20 Atsushi Enomoto <[email protected]>
* XmlDefaultReader.cs : remove bogus overrides that blocks normal
Read(). It was a design flaw in .NET.
2004-06-25 Atsushi Enomoto <[email protected]>
* XmlDefaultReader.cs : Added novell's license (avoid confusion).
@@ -211,6 +211,7 @@ namespace Commons.Xml
return Reader.Read ();
}
/*
public override string ReadString ()
{
return reader.ReadString ();
@@ -225,6 +226,7 @@ namespace Commons.Xml
{
return reader.ReadOuterXml ();
}
*/
public override string LookupNamespace (string prefix)
{
+4 -12
View File
@@ -14,18 +14,10 @@ EXTRA_DISTFILES = \
Commons.Xml.Relaxng.Rnc/RncParser.jay \
Test/ChangeLog \
Test/XmlFiles/ChangeLog \
Test/XmlFiles/SimpleElementPattern1.xml \
Test/XmlFiles/SimpleElementPattern1.rng \
Test/XmlFiles/SimpleElementPattern2.xml \
Test/XmlFiles/SimpleElementPattern2.rng \
Test/XmlFiles/team.xml \
Test/XmlFiles/team.rng \
Test/XmlFiles/relaxng.rng \
Test/XmlFiles/relaxng.rnc \
Test/XmlFiles/atom.rnc \
Test/XmlFiles/schemas-xmlsoap-or-ws-2005-05-identity.rnc \
Test/XmlFiles/nvdl.nvdl \
Test/XmlFiles/nvdl.rng \
$(wildcard Test/XmlFiles/*.rng) \
$(wildcard Test/XmlFiles/*.rnc) \
$(wildcard Test/XmlFiles/*.nvdl) \
$(wildcard Test/XmlFiles/*.xml) \
$(wildcard Test/standalone_tests/*.cs) \
$(RESOURCE_FILES)
@@ -1,3 +1,17 @@
2009-01-20 Atsushi Enomoto <[email protected]>
* RelaxngDatatypeProviderTests.cs : new test, based on bug #463267
by Mark Junker.
2009-01-20 Atsushi Enomoto <[email protected]>
* RelaxngDatatypeProviderTests.cs : new test, based on bug #463264
by Mark Junker.
2008-11-11 Atsushi Enomoto <[email protected]>
* RncTests.cs : added InheritDefaultNamespace().
2007-12-14 Atsushi Enomoto <[email protected]>
* RelaxngReaderTests.cs : added test for bug #347945.
@@ -0,0 +1,98 @@
//
// RelaxngDatatypeProviderTest.cs
//
// Authors:
// Atsushi Enomoto <[email protected]>
//
using System;
using System.IO;
using System.Xml;
using Commons.Xml.Relaxng;
using Commons.Xml.Relaxng.XmlSchema;
using NUnit.Framework;
namespace MonoTests.Commons.Xml.Relaxng
{
[TestFixture]
public class RelaxngDatatypeProviderTests
{
[Test]
public void CustomTypeProvider ()
{
var datatypeLibrary = SetupMyDataProvider ();
XmlDocument xml = new XmlDocument ();
xml.LoadXml ("<root> <v1>mytype</v1> <v2>1</v2> </root>");
XmlDocument schemaXml = ReadDoc ("Test/XmlFiles/463264.rng");
XmlReader reader = new RelaxngValidatingReader (new XmlNodeReader (xml), new XmlNodeReader (schemaXml), datatypeLibrary);
while (reader.Read ())
;
}
[Test]
public void Bug463267 ()
{
var datatypeLibrary = SetupMyDataProvider ();
XmlDocument xml = new XmlDocument ();
xml.LoadXml ("<root> <v2>1</v2> <v1>mytype</v1> </root>");
XmlDocument schemaXml = ReadDoc ("Test/XmlFiles/463267.rng");
XmlReader reader = new RelaxngValidatingReader (new XmlNodeReader (xml), new XmlNodeReader (schemaXml), datatypeLibrary);
while (reader.Read ())
;
}
RelaxngDatatypeProvider SetupMyDataProvider ()
{
var datatypeLibrary = new RelaxngMergedProvider ();
datatypeLibrary [MyRngTypeProvider.Namespace] = new MyRngTypeProvider();
datatypeLibrary ["http://www.w3.org/2001/XMLSchema-datatypes"] = XsdDatatypeProvider.Instance;
datatypeLibrary [System.Xml.Schema.XmlSchema.Namespace] = XsdDatatypeProvider.Instance;
datatypeLibrary [String.Empty] = RelaxngMergedProvider.DefaultProvider [string.Empty];
return datatypeLibrary;
}
XmlDocument ReadDoc (string s)
{
var d = new XmlDocument ();
d.Load (s);
return d;
}
}
class MyRngTypeProvider : RelaxngDatatypeProvider
{
public static readonly string Namespace = "http://tempuri.org/mytypes";
public override RelaxngDatatype GetDatatype(string name, string ns, RelaxngParamList parameters)
{
switch (name)
{
case "mytype":
return new MyType();
}
return null;
}
}
class MyType : RelaxngDatatype
{
public override string Name {
get { return "mytype"; }
}
public override string NamespaceURI {
get { return MyRngTypeProvider.Namespace; }
}
public override object Parse (string text, System.Xml.XmlReader reader)
{
return text;
}
public override bool IsValid (string text, System.Xml.XmlReader reader)
{
return ((string) Parse (text, reader)) == "mytype";
}
}
}
+24 -4
View File
@@ -20,18 +20,24 @@ namespace MonoTests.Commons.Xml.Relaxng
[TestFixture]
public class RncTests
{
void Compile (string file)
RelaxngPattern Compile (string file)
{
using (StreamReader sr = new StreamReader (file)) {
Compile (sr);
return Compile (sr, file);
}
}
void Compile (TextReader reader)
RelaxngPattern Compile (TextReader reader)
{
return Compile (reader, null);
}
RelaxngPattern Compile (TextReader reader, string baseUri)
{
RncParser parser = new RncParser (new NameTable ());
RelaxngPattern g = parser.Parse (reader);
RelaxngPattern g = parser.Parse (reader, baseUri);
g.Compile ();
return g;
}
[Test]
@@ -75,5 +81,19 @@ start = mine";
{
Compile (new StringReader ("element foo { \"\\x{10FFFF}\" }"));
}
[Test]
public void InheritDefaultNamespace ()
{
RelaxngPattern g = Compile ("Test/XmlFiles/include-default-namespace.rnc");
XmlReader xtr = new XmlTextReader ("Test/XmlFiles/include-default-namespace.xml");
RelaxngValidatingReader r = new RelaxngValidatingReader (xtr, g);
try {
while (!r.EOF)
r.Read ();
} finally {
r.Close ();
}
}
}
}
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<element name="root">
<element name="v1">
<data type="mytype" datatypeLibrary="http://tempuri.org/mytypes" />
</element>
<element name="v2">
<data type="int" />
</element>
</element>
</start>
</grammar>
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://tempuri.org/mytypes">
<start>
<element name="root">
<element name="v2">
<data type="int" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<param name="minExclusive">0</param>
<param name="maxExclusive">10</param>
</data>
</element>
<element name="v1">
<data type="mytype" />
</element>
</element>
</start>
</grammar>
@@ -1,3 +1,17 @@
2009-01-20 Atsushi Enomoto <[email protected]>
* 463267.rng : new test file.
2009-01-20 Atsushi Enomoto <[email protected]>
* 463264.rng : new test file.
2008-11-11 Atsushi Enomoto <[email protected]>
* include-default-namespace.rnc,
include-default-namespace-included.rnc,
include-default-namespace.xml : new test files.
2007-04-18 Atsushi Enomoto <[email protected]>
* schemas-xmlsoap-or-ws-2005-05-identity.rnc : new test schema.
@@ -0,0 +1,5 @@
grammar {
start = root
root = element root { empty }
}
@@ -0,0 +1,4 @@
default namespace = "urn:foo"
include "include-default-namespace-included.rnc"
@@ -0,0 +1 @@
<root xmlns="urn:foo" />
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!-- RELAX NG for RELAX NG -->
<!-- $Id: relaxng.rng,v 1.1 2004/03/17 19:27:34 atsushi Exp $ -->
<!-- $Id$ -->
<grammar datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
ns="http://relaxng.org/ns/structure/1.0"
xmlns="http://relaxng.org/ns/structure/1.0">
+5
View File
@@ -77,7 +77,10 @@ common_dirs := \
Novell.Directory.Ldap \
Mono.Security.Win32 \
System.DirectoryServices \
RabbitMQ.Client \
Mono.Messaging \
System.Messaging \
Mono.Messaging.RabbitMQ \
System.ServiceProcess \
System.Drawing.Design \
System.Design \
@@ -103,6 +106,7 @@ net_2_0_dirs := \
System.Xml.Linq \
System.Data.DataSetExtensions \
System.Data.Linq \
System.Web \
System.Web.Abstractions \
System.Web.Routing \
System.Web.Extensions_1.0 \
@@ -127,6 +131,7 @@ net_2_1_dirs := \
System.Net \
System.XML \
System.Core \
System.Xml.Linq \
System.Runtime.Serialization \
System.ServiceModel \
System.ServiceModel.Web
+16 -3
View File
@@ -1,3 +1,16 @@
2009-01-16 Carlos Alberto Cortez <[email protected]>
* System.Windows.Forms_test.dll.sources: Add ClipboardTest.cs.
2008-11-27 Atsushi Enomoto <[email protected]>
* Makefile: here is another nunit24 option breakage.
2008-11-11 Andrés G. Aragoneses <[email protected]>
* Application.cs: After UIA assembly is successfully loaded,
dump any exception that happens on initialization to stderr.
2008-11-08 Andreia Gaita <[email protected]>
* SWF2k5-tests.csproj: Fix the previous ChangeLog entry (bad merge). Update
@@ -845,7 +858,7 @@
* resources/, System.Windows.Forms.dll.resources, Makefile:
Add user-home Tango icon in various sizes.
2006-09-05 Kornél Pál <[email protected]>
2006-09-05 KornAcl PA!l <[email protected]>
* Makefile: Removed CODEPAGE as now UTF-8 is the default.
@@ -1008,7 +1021,7 @@
* System.Windows.Forms_test.dll.sources: Added System.Resources/CultureTest.cs
2005-11-12 Pedro Martínez Juliá <[email protected]>
2005-11-12 Pedro MartA-nez JuliA! <[email protected]>
* System.Windows.Forms_test.dll.sources: Added DataGridViewElementTest.cs
DataGridViewBandTest.cs DataGridViewCellTest.cs
@@ -1056,7 +1069,7 @@
* System.Windows.Forms_test.dll.sources : Added Common.cs
2005-09-27 Kornél Pál <[email protected]>
2005-09-27 KornAcl PA!l <[email protected]>
* Makefile: Replaced /codepage with CODEPAGE.
+3 -9
View File
@@ -106,18 +106,12 @@ TEST_MCS_FLAGS = /r:System.Data.dll /r:System.Drawing.dll \
-resource:Test/resources/32x32.ico,32x32.ico \
-nowarn:618,612
SWF.csproj: System.Windows.Forms.dll.sources System.Windows.Forms.dll.resources build-csproj
./build-csproj
SWF2k5.csproj: System.Windows.Forms.dll.sources System.Windows.Forms.dll.resources build-csproj2k5
./build-csproj2k5
include ../../build/library.make
TEST_HARNESS_EXCLUDES = /exclude:Interactive,NotWorking,ValueAdd,CAS,InetAccess
TEST_HARNESS_EXCLUDES_ONDOTNET = /exclude:Interactive,NotDotNet,CAS
TEST_HARNESS_EXCLUDES = -exclude=Interactive,NotWorking,ValueAdd,CAS,InetAccess
TEST_HARNESS_EXCLUDES_ONDOTNET = -exclude=Interactive,NotDotNet,CAS
$(the_lib): $(RESOURCES) SWF.csproj SWF2k5.csproj
$(the_lib): $(RESOURCES)
$(RESX_RESOURCES): %.resources: %.resx
$(RESGEN) $< || cp $@.prebuilt $@
@@ -1,3 +1,8 @@
2009-01-07 Geoff Norton <[email protected]>
* WindowHandler.cs: Don't attempt to activate a disposed Form.
Fixes several of the nunit winforms crashes on Mac.
2008-08-14 Geoff Norton <[email protected]>
* WindowHandler.cs: Revert the change which didn't set ActiveWindow
@@ -119,7 +119,7 @@ namespace System.Windows.Forms.CarbonInternal {
Control c = Control.FromHandle (hwnd.client_window);
if (c != null) {
Form form = c.FindForm ();
if (form != null) {
if (form != null && !form.IsDisposed) {
Driver.SendMessage (form.Handle, Msg.WM_ACTIVATE, (IntPtr) WindowActiveFlags.WA_ACTIVE, IntPtr.Zero);
XplatUICarbon.ActiveWindow = hwnd.client_window;
}
Loaded 100 of 3733 files, more files were not shown because too many files have changed in this diff. Show more