Compare commits

...
4306 Commits
Author SHA1 Message Date
Zoltan Varga 51a238609c Revert "Merge branch 'master-2.6' into mt-1.0-master"
This reverts commit f5302c64d9074f8250bb7e372a5faa3ba515767d, reversing
changes made to a04667db95c879584ec3a83d902ea61c1584ec27.

svn path=/tags/monotouch-1-0/mono/; revision=143559
2009-10-06 20:25:22 +00:00
Zoltan Varga d6e27776a9 Merge branch 'master-2.6' into mt-1.0-master
svn path=/tags/monotouch-1-0/mono/; revision=143557
2009-10-06 20:20:06 +00:00
Geoff Norton d0774b2d66 fix thebuild on monotouch
svn path=/trunk/mcs/; revision=141692
2009-09-10 20:30:02 +00:00
Sebastien Pouliot f0a462d9db 2009-09-10 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Fix default_platform_check so it can run
	the runtime coreclr tests (without an infinite recursion when
	throwing an exception).


svn path=/trunk/mono/; revision=141690
2009-09-10 20:04:33 +00:00
Geoff Norton 1d2a85ca3b fix Personal on monotouch
svn path=/trunk/mcs/; revision=141688
2009-09-10 18:39:44 +00:00
Andrés G. Aragoneses 12933a1dcc * linker/Mono.Linker.Steps/MarkStep.cs: Make IgnoreScope() virtual to
prevent marking custom attributes of foreign assemblies in a derived
step in the tuner. ( r: jb )

* tuner/Mono.Tuner/MoonlightA11yApiMarker.cs: Don't mark attributes of
non-a11y assemblies.

svn path=/trunk/mcs/; revision=141687
2009-09-10 18:16:49 +00:00
Rodrigo Kumpera 7d4c5b5dc8 2009-09-10 Rodrigo Kumpera <[email protected]>
* verify.c: Look for recursive valuetypes only against the
	type been initialized as this is a lot simpler and works.

svn path=/trunk/mono/; revision=141686
2009-09-10 16:20:34 +00:00
Rodrigo Kumpera 1d4db12621 2009-09-10 Rodrigo Kumpera <[email protected]>
* verify.c: Ensure that fields are properly loaded before
	checking them.

svn path=/trunk/mono/; revision=141685
2009-09-10 16:20:13 +00:00
Ankit Jain d80e1ad5d0 * AssemblyResolver.cs: Move the SearchLogger to be a list of
strings, so that it can be emitted with correct indentation.
(SearchLogger): Remove.
(LogSearchMessage): New.
(LogSearchLoggerMessages): New.
* ResolveAssemblyReference.cs: Track api changes.

svn path=/trunk/mcs/; revision=141684
2009-09-10 14:52:41 +00:00
Ankit Jain f0ea14902b * TaskLoggingHelper.cs (FormatString): Use the unformatted string
even if the args array was empty.

svn path=/trunk/mcs/; revision=141683
2009-09-10 14:52:11 +00:00
Bill Holmes f12f30eb08 2009-09-10 Bill Holmes <[email protected]>
* object.c (mono_object_get_virtual_method) : Call
	  mono_cominterop_get_invoke if the object is a COM object.

	* mini-trampolines.c (mono_delegate_trampoline) : Call
	  mono_cominterop_get_invoke if the delegate target object
	  is a COM object.

	* cominterop.cs : Adding a test for invoking delegates that
	  target COM methods.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=141680
2009-09-10 14:07:35 +00:00
Ivan Zlatev e15dd9b4fd 2009-09-10 Ivan N. Zlatev <[email protected]>
* DocumentDesigner.cs: Changing the ISelectionService at run time was a
	bad idea, so wrap it inside the extended UISelectionService instead.

svn path=/trunk/mcs/; revision=141679
2009-09-10 14:03:55 +00:00
Ivan Zlatev 041c3c5ee4 2009-09-10 Ivan N. Zlatev <[email protected]>
* DesignSurface.cs: Provide the default implementation of the
	ISelectionService in the DesignSurface service container.
	* DocumentDesigner.cs: If there is already a ISelectionService registered
	in the ServiceContainer but it's not an IUISelectionService (WinForms
	specific) then replace it with one.
	[Fixes bug #538037]

svn path=/trunk/mcs/; revision=141677
2009-09-10 13:35:22 +00:00
Marek Habersack 7db9098b2e 2009-09-10 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/WebPages/ListView_DynamicControl_05.aspx
	Test/WebPages/ListView_DynamicControl_05.aspx.cs
	Test/WebPages/ListView_DynamicControl_06.aspx
	Test/WebPages/ListView_DynamicControl_06.aspx.cs
	Test/WebPages/ListView_DynamicControl_07.aspx
	Test/WebPages/ListView_DynamicControl_07.aspx.cs
	Test/WebPages/ListView_DynamicControl_08.aspx
	Test/WebPages/ListView_DynamicControl_08.aspx.cs

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

	* DynamicControl.cs: implemented several properties.
	Added code for ResolveColumn method, called from OnInit

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

	* DynamicControlTest.cs: added seveal tests for DataField and UIHint

svn path=/trunk/mcs/; revision=141651
2009-09-10 00:04:37 +00:00
Veerapuram Varadhan 08c6647da5 2009-09-10 Veerapuram Varadhan <[email protected]>
** Fixes #510176
	* DataView.cs (OnRowChanged/OnRowDeleted): Raise appropriate events iff
	view is affected. This silence of the numerous Add/Change events that were
	getting raised from DataView.
	(ToTable): Use appropriate index to generated DataTable in case of
	RowFilter / Sort conditions.

	* DataRow.cs (AcceptChanges/RejectChanges): Raise appropriate Changing events

svn path=/trunk/mcs/; revision=141649
2009-09-09 22:39:47 +00:00
Veerapuram Varadhan 1c5588c2d8 Broken test fix
svn path=/trunk/mcs/; revision=141648
2009-09-09 22:39:24 +00:00
Veerapuram Varadhan b1e0716ffa Fixes tests related to #510176
svn path=/trunk/mcs/; revision=141647
2009-09-09 22:39:03 +00:00
Veerapuram Varadhan ea202868f0 Fix for #510176
svn path=/trunk/mcs/; revision=141646
2009-09-09 22:38:40 +00:00
Veerapuram Varadhan 625d7a4da3 Fix for #510176
svn path=/trunk/mcs/; revision=141645
2009-09-09 22:37:28 +00:00
Rodrigo Kumpera 41fa085c51 2009-09-09 Rodrigo Kumpera <[email protected]>
* badrt-recursive-struct.il: New test for structs with bad layout.

svn path=/trunk/mono/; revision=141643
2009-09-09 20:57:01 +00:00
Rodrigo Kumpera ab73e3a5a8 2009-09-09 Rodrigo Kumpera <[email protected]>
* verify.c: Check for recursive valuetype definitions.

svn path=/trunk/mono/; revision=141642
2009-09-09 20:56:49 +00:00
Geoff Norton 4d21b100ac Fix Mono.Security on MONOTOUCH
svn path=/trunk/mcs/; revision=141634
2009-09-09 20:06:57 +00:00
Andrés G. Aragoneses d8be2fc4fe * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Rather use the
OutputDirectory provided on the command line, and redirect some
progress info or errors to the console.

* tuner/Mono.Tuner/MoonlightA11yUsageInspectionStep.cs: Remove
unnecessary step.

svn path=/trunk/mcs/; revision=141633
2009-09-09 20:04:57 +00:00
Marek Habersack aa7314ad76 2009-09-09 Marek Habersack <[email protected]>
* RouteTest.cs: added two tests for empty and null route URLs (bug
	#537751)

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

	* Route.cs: when Url is set to null, create a parser for empty
	string. Fixes bug #537751

	* PatternParser.cs: Parse allows for null/empty URLs. Fixes bug
	#537751

svn path=/trunk/mcs/; revision=141630
2009-09-09 19:49:50 +00:00
Jonathan Pryor eae23c0130 * Mono.Documentation/monodocs2html.cs: Fix behavior when multiple
source directories are provided, e.g. 'mdoc export-html -o o a b c'
	  with docs located in directories a, b, and c.  Previously this would
	  be equivalent to running aginst a, b, and c separately, resulting in
	  o/index.html being continually overwritten (and thus not showing ALL
	  available types).
	* Resources/stylesheet.xsl: Make $Index a parameter (as monodocs2html
	  will create an in-memory index containing all types from all
	  specified directories), and various changes to cope with $Index no
	  longer being a file.  Better support files in the global namespace.
	* Test/html.expected/NoNamespace.html: Fix assembly link.

svn path=/trunk/mcs/; revision=141629
2009-09-09 19:38:57 +00:00
Jonathan Pryor 5d66a7c092 * Mono.Documentation/ManifestResourceResolver.cs: Allow it to lookup
files located in multiple directories.  Needed so that 'mdoc
	  export-html' can properly deal with multiple source directories.

svn path=/trunk/mcs/; revision=141628
2009-09-09 19:34:51 +00:00
Ankit Jain ce8957f93b In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* BuildItem.cs (Evaluate): Metadata from "Include" should be,
	preserved, so use ConvertTo ITaskItem, rather than string.
	Ensure that the new items have the metadata from references _in_
	Include, and the metadata of _this_ builditem.
	* DirectoryScanner.cs (Includes): Change to a array of ITaskItem.
	(MatchedFilenames): Rename to ..
	(MatchedItems): .. this, and change type of array of ITaskItem.
	Ensure that metadata of items in Includes are retained in the
	final matched items.

	* BuildItemGroup.cs (ConvertoToITaskItemArray): Add 'separator'
	param. If separator is present, then just return a "Join'ed"
	string as the single task item.
	* ItemReference.cs: Track api changes.

	* BuildProperty.cs (ConvertToITaskItemArray): Split the value,
	as we need separate task items.

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

	* Items.cs (TestItems2a):
	(TestInheritedMetadataFromItemRefs):
	(TestInheritedMetadataFromItemRefs2):
	(TestMetadataFromItemReferences): New.

svn path=/trunk/mcs/; revision=141627
2009-09-09 19:34:01 +00:00
Stephen Shaw 85fe819f71 Oops, forgot the package line
svn path=/trunk/mono/; revision=141625
2009-09-09 17:08:17 +00:00
Geoff Norton 8bc6de5cc8 fix monotouch build
svn path=/trunk/mcs/; revision=141623
2009-09-09 16:35:01 +00:00
Marek Safar 8001335bb0 2009-09-09 Marek Safar <[email protected]>
* eval.cs, report.cs: Use Console.Out for all eval error or warning
	output.


svn path=/trunk/mcs/; revision=141622
2009-09-09 16:17:35 +00:00
Marek Safar 2f111012af New test.
svn path=/trunk/mcs/; revision=141620
2009-09-09 15:48:28 +00:00
Marek Safar 8780658a14 2009-09-09 Marek Safar <[email protected]>
A fix for bug #518707
	* expression.cs (Is): Optimize only generic parameter type
	expression probing value type generic parameter.


svn path=/trunk/mcs/; revision=141619
2009-09-09 15:46:13 +00:00
Stephen Shaw af2a667660 Added mono-winfxcore for the new windowsbase.dll
svn path=/trunk/mono/; revision=141617
2009-09-09 15:37:55 +00:00
Marek Safar 19ca80083b New test.
svn path=/trunk/mcs/; revision=141616
2009-09-09 15:37:22 +00:00
Jb Evain 288e614ea4 bring Mono Security to monotouch
svn path=/trunk/mcs/; revision=141615
2009-09-09 15:34:58 +00:00
Andrés G. Aragoneses 0f78c16383 * linker/Mono.Linker.Steps/MarkStep.cs: Visibility changes needed by
the need of some new tuner step to redefine or call some methods.

* tuner/Mono.Tuner.csproj:
* tuner/Mono.Tuner.dll.sources: Add new step MoonlightA11yApiMarker.

* tuner/Mono.Tuner/MoonlightA11yApiMarker.cs:
* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Use a new
marker step to only mark API used, not mark recursively.

* tuner/Mono.Tuner/MoonlightA11yUsageInspectionStep.cs: Use the new
marker step.

* tuner/Makefile: Adding reference to System, as we need it for
System.Text.RegularExpressions.

r: jb

svn path=/trunk/mcs/; revision=141614
2009-09-09 15:00:07 +00:00
Ivan Zlatev 56a55f7302 2009-09-09 Ivan N. Zlatev <[email protected]>
* ParentControlDesigner.cs, ControlDesigner.cs, UISelectionService.cs,
	IUISelectionService.cs: Support IToolboxService control creation via
	point-(resize)-click.
	[Fixes part of bug #537604]

svn path=/trunk/mcs/; revision=141612
2009-09-09 14:35:50 +00:00
Gonzalo Paniagua Javier ce69cb7d8a Fixing the cygwin build: the saga continues
svn path=/trunk/mono/; revision=141610
2009-09-09 14:24:05 +00:00
Sebastien Pouliot 04ec436d09 2009-09-09 Sebastien Pouliot <[email protected]>
* SecurityManager.cs, SecurityManager_2_1.cs: Replace existing
	throw methods (for coreclr) with a single one.


svn path=/trunk/mcs/; revision=141608
2009-09-09 14:10:10 +00:00
Sebastien Pouliot f724ab946c 2009-09-09 Sebastien Pouliot <[email protected]>
* method-to-ir.c: For CoreCLR throw a SecurityException if an 
	internal call is defined outside platform code. Reduce code 
	duplication with existing [Method|Field]AccessException


svn path=/trunk/mono/; revision=141607
2009-09-09 14:10:03 +00:00
Marek Safar 25152a7cbb 2009-09-08 Marek Safar <[email protected]>
A fix for bug #532571
	* ecore.cs: Check for simple name type arguments used with
	non-generic type.


svn path=/trunk/mcs/; revision=141606
2009-09-09 13:21:58 +00:00
Gonzalo Paniagua Javier 2aecb29e61 2009-09-09 Gonzalo Paniagua Javier <[email protected]>
* zconf.h:
	* Makefile.am: attempt to fix the windows GCC build.


svn path=/trunk/mono/; revision=141562
2009-09-09 04:11:09 +00:00
Rodrigo Kumpera e197f25388 2009-09-08 Rodrigo Kumpera <[email protected]>
* mini-x86.c (mono_arch_emit_call): Don't reduce stack usage by 4
	if the return value is a small struct passed on regs.

svn path=/trunk/mono/; revision=141552
2009-09-09 00:20:19 +00:00
Zoltan Varga 8772d07477 2009-09-09 Zoltan Varga <[email protected]>
* cpu-arm.md mini-arm.c: Remove unused opcodes.

	* mini-codegen.c: Enable the cpu description validation for arm.

svn path=/trunk/mono/; revision=141551
2009-09-09 00:05:57 +00:00
Jonathan Chambers 87ecd50c9b 2009-09-08 Jonathan Chambers <[email protected]>
* libtest.vcproj: Add toplevel include directory for config.h.


svn path=/trunk/mono/; revision=141543
2009-09-08 20:44:48 +00:00
Marek Safar e177c78c7d New tests.
svn path=/trunk/mcs/; revision=141540
2009-09-08 19:29:20 +00:00
Marek Safar bf242cd0b1 Wrong bug number.
svn path=/trunk/mcs/; revision=141539
2009-09-08 19:29:06 +00:00
Marek Safar 2b81b78d9f 2009-09-08 Marek Safar <[email protected]>
A fix for bug #537402
	* generic.cs (CheckConstraint): Don't use buildin types to check for
	parameterless constructor.


svn path=/trunk/mcs/; revision=141538
2009-09-08 19:28:09 +00:00
Rodrigo Kumpera db6e232304 2009-09-08 Rodrigo Kumpera <[email protected]>
* iface4.cs: Add one more check.

svn path=/trunk/mono/; revision=141536
2009-09-08 18:09:42 +00:00
Rodrigo Kumpera 6909a2ef0c 2009-09-08 Rodrigo Kumpera <[email protected]>
Use inheritance-aware interface offsets. Inherited types use the same offsets
	of their parents. This reduce offset duplication in case more than one type in
	the inheritance tree explicitly implements the same interface.

	This also removes a source of vtable bubbles found in #532409. An abstract type
	isn't required to provide abstract methods to all interfaces it implements, which
	resulted in a bubble with the previous scheme as the child would get a non-full
	vtable from its parent. We fail all concrete types with vtable bubbles, so this
	should be fixed.

	This change causes an increase of 1.7% in vtable memory usage for IronPython pystone but
	it's expected to not cause any significant increase beyond that.

	* class.c (setup_interface_offsets): Compute super class iface offsets
	first to force sharing.

	* class.c: Add VTABLE_SELECTOR macro to the vtable debug macros to help
	dumping only the relevant ones.

	* class.c (mono_class_setup_vtable_general): Give newslot, non final, virtual
	methods a new slot regardless if they belong to an interface or not. This allows
	an inherited type to override the iface method separately from the class one.

svn path=/trunk/mono/; revision=141535
2009-09-08 18:09:30 +00:00
Marek Safar 822e926aef New test.
svn path=/trunk/mcs/; revision=141533
2009-09-08 16:49:18 +00:00
Marek Safar 3b5fd164e4 2009-09-08 Marek Safar <[email protected]>
A fix for bug #537402
	* generic.cs (CheckConstraint): Correctly inflate generic type
	arguments when checking generic method. 


svn path=/trunk/mcs/; revision=141532
2009-09-08 16:48:53 +00:00
Carlos Alberto Cortez 584e5a3169 2009-09-08 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When processing rtf, don't add a new line if we
	already have one for that position. This way we avoid overriding by
	mistake our lines when copying/pasting.
	Fixes #513030.


svn path=/trunk/mcs/; revision=141531
2009-09-08 15:45:11 +00:00
Raja R Harinath ce41ff407f Check in up-to-date version of RegexTest.cs. Somehow the previous
checkin got an untested preliminary version

svn path=/trunk/mcs/; revision=141530
2009-09-08 15:12:38 +00:00
Jonathan Chambers 39cf318897 2009-09-08 Jonathan Chambers <[email protected]>
* cominterop.cs libtest.c: Add support to run tests
        on all x86 and amd64 platforms.


svn path=/trunk/mono/; revision=141527
2009-09-08 14:45:17 +00:00
Jonathan Pobst cc73e26443 - Fix System tests build. (There were two tests named Split_InvalidCount.)
svn path=/trunk/mcs/; revision=141525
2009-09-08 14:26:08 +00:00
Zoltan Varga 1e05ed1089 2009-09-08 Zoltan Varga <[email protected]>
* basic-calls.cs: Move the test_0_float_load_and_store_with_big_offset ()
	test which depends on structs to objects.cs.

svn path=/trunk/mono/; revision=141524
2009-09-08 14:24:54 +00:00
Zoltan Varga 39aff18888 2009-09-08 Zoltan Varga <[email protected]>
* basic-calls.cs: Remove calls to Console.WriteLine and throws, since those
	require object model related stuff working.

svn path=/trunk/mono/; revision=141523
2009-09-08 14:21:25 +00:00
Marek Safar c98a5a360a New test.
svn path=/trunk/mcs/; revision=141522
2009-09-08 14:13:47 +00:00
Marek Safar 161aa266f5 New test.
svn path=/trunk/mcs/; revision=141521
2009-09-08 14:12:59 +00:00
Marek Safar bd657aa7c6 2009-09-08 Marek Safar <[email protected]>
A fix for bug #536463
	* decl.cs (AddToContainer): Don't report collision between explicit
	and parameterless non-explicit members.


svn path=/trunk/mcs/; revision=141520
2009-09-08 14:12:29 +00:00
Marek Habersack f5031440f5 2009-09-08 Marek Habersack <[email protected]>
* ListView.cs: if total row count has been retrieved from the
	view, don't reset it to the number of items returned from the data
	source. Fixes bug #535701

svn path=/trunk/mcs/; revision=141509
2009-09-08 11:48:49 +00:00
Marek Safar 15b28f2d57 2009-09-08 Marek Safar <[email protected]>
* eval.cs: Reset more static stuff.


svn path=/trunk/mcs/; revision=141506
2009-09-08 11:38:53 +00:00
Marek Habersack 88561032dc 2009-09-08 Marek Habersack <[email protected]>
* ProfileParser.cs: GetProfileGroupType creates type name with
	"ProfileGroup" prefix instead of "ProfileCommon". Fixes bug
	#535655

	* ProfileBase.cs: typo fix - renamed CreateSettingsPropery to
	CreateSettingsProperty

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

	* AppCodeCompiler.cs: HaveCustomProfile returns true for profiles
	which don't contain top-level properties. Fixes bug #535655

svn path=/trunk/mcs/; revision=141504
2009-09-08 11:25:09 +00:00
Ankit Jain e7323cf64f * ToolTask.cs (LogEventsFromTextOutput): Log message even if its not
identified as an error or a warning.

svn path=/trunk/mcs/; revision=141500
2009-09-08 10:29:05 +00:00
Ankit Jain db3961e173 In class/Microsoft.Build.Engine/Test/various:
* Items.cs (TestItems5):
	(TestItems6): Remove 'NotWorking' attribute.

In class/Microsoft.Build.Utilities/Mono.XBuild.Utilities:

	* ReservedNameUtils.cs (RelativeDir): Add a trailing \ .

svn path=/trunk/mcs/; revision=141499
2009-09-08 10:28:51 +00:00
Geoff Norton dd5c475d20 disable this optimization on monotouch
svn path=/trunk/mcs/; revision=141479
2009-09-08 01:30:59 +00:00
Zoltan Varga 838867a133 2009-09-08 Zoltan Varga <[email protected]>
* cpu-x86.md mini-x86.c: Remove more unused opcodes.

	* mini-ops.h: Fix OP_BIGMUL instruction descriptions.

svn path=/trunk/mono/; revision=141478
2009-09-08 01:11:50 +00:00
Zoltan Varga a5adb1be30 2009-09-08 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Enable this for mips.

svn path=/trunk/mono/; revision=141477
2009-09-08 01:03:47 +00:00
Zoltan Varga 2fe16426e8 2009-09-08 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Validate the cpu description
	against the instruction metadata in mini-ops.h. amd64 only for now.

	* mini-ops.h: Fix some instruction descriptions.

	* mini-ops.h mini-x86.c mini-amd64.c cpu-<ARCH>.md: Remove some
	unused instructions.

svn path=/trunk/mono/; revision=141476
2009-09-08 01:03:39 +00:00
Marek Habersack fe05e952a4 2009-09-08 Marek Habersack <[email protected]>
* BuildManager.cs: added IsPrecompiled internal property.

	* AppResourcesCompiler.cs: load precompiled site local and global
	resource assemblies from static constructor. Fixes bugs #536138
	and #536143

svn path=/trunk/mcs/; revision=141474
2009-09-08 00:13:00 +00:00
Marek Habersack 93d477f370 2009-09-08 Marek Habersack <[email protected]>
* UrlRoutingModule.cs: store original request path in
	PostResolveRequestCache and restore it in
	PostMapRequestHandler. Fixes bug #537089

svn path=/trunk/mcs/; revision=141471
2009-09-07 22:22:18 +00:00
Marek Safar 48f1977613 2009-09-07 Marek Safar <[email protected]>
* repl.cs: Disabled Report.Stderr hacking.


svn path=/trunk/mcs/; revision=141470
2009-09-07 21:00:00 +00:00
Marek Safar b7b3f9326e Fixes pre 2.0 bootstrap
svn path=/trunk/mcs/; revision=141469
2009-09-07 20:43:55 +00:00
Marek Safar 76f02b09cd Fixes build
svn path=/trunk/mcs/; revision=141468
2009-09-07 20:33:27 +00:00
Miguel de Icaza dd585d5c22 Dist this one as well
svn path=/trunk/mcs/; revision=141467
2009-09-07 20:13:00 +00:00
Marek Safar a7aa5476c3 Check the test results.
svn path=/trunk/mcs/; revision=141463
2009-09-07 17:43:34 +00:00
Marek Safar f23f7a9bc1 New tests.
svn path=/trunk/mcs/; revision=141462
2009-09-07 17:35:48 +00:00
Marek Safar 9ee905ee00 2009-09-07 Marek Safar <[email protected]>
A fix for bug #324625
	* expression.cs, ecore.cs: Create nested generic type expression
	using declaring and not current type.


svn path=/trunk/mcs/; revision=141461
2009-09-07 17:31:56 +00:00
Carlos Alberto Cortez 83fec915d3 2009-09-07 Carlos Alberto Cortez <[email protected]>
* TextControl.cs: When inserting new lines, look for the end of file
	char, and remove chars after it. This is unlikely to happeng either
	loading a file, pasting text or pressing a char, but can happen using
	the TextBox.Text property.
	Fixes #535884.


svn path=/trunk/mcs/; revision=141460
2009-09-07 17:16:00 +00:00
Raja R Harinath 2d8031df3c regex: A few more null and bounds checks
* Regex.cs (Escape, Unescape): Add null checks.
(validate_options): Add ECMAScript option checks.
(Replace, Split): Add a few bounds checks.

svn path=/trunk/mcs/; revision=141459
2009-09-07 17:14:37 +00:00
Raja R Harinath e8d4a97211 Add some null checks and bounds checks.
* Regex.cs (default_startat): New.  Replaces the fragment
'RightToLeft ?  input.Length : 0' with a null-safe variant.
(Replace) <string variant>: Add null checks for argument strings.
(Split): Likewise.
(.ctor): Likewise.  Validate regex options partially.
(Match): Add null check on string arguments, and bounds checks for
offset and length arguments.

svn path=/trunk/mcs/; revision=141457
2009-09-07 16:25:50 +00:00
Marek Safar 904d1b71f3 Better description.
svn path=/trunk/mcs/; revision=141442
2009-09-07 15:40:45 +00:00
Marek Safar 5a3d0c9d65 2009-09-07 Marek Safar <[email protected]>
* *.cs: Changed Report class to accept various ouput printers and
	be an instance class.


svn path=/trunk/mcs/; revision=141436
2009-09-07 15:14:31 +00:00
Miguel de Icaza 634f8b6149 Add WindowsBase to the build
svn path=/trunk/mcs/; revision=141433
2009-09-07 15:01:09 +00:00
Miguel de Icaza 020b3147b3 Copy
svn path=/trunk/mcs/; revision=141432
2009-09-07 14:59:40 +00:00
Zoltan Varga b1aee1fa7a 2009-09-07 Zoltan Varga <[email protected]>
* Makefile.am (runtest): Disable aot on some tests which contain loading
	errors.

svn path=/trunk/mono/; revision=141427
2009-09-07 13:11:23 +00:00
Marek Safar 3e5203dd72 New test.
svn path=/trunk/mcs/; revision=141426
2009-09-07 13:04:32 +00:00
Marek Habersack dfcef08918 2009-09-07 Marek Habersack <[email protected]>
* HttpContext.cs: when creating local resource provider, pass the
	current file's virtual path to CreateLocalResourceProvider. Fixes
	bug #536757

svn path=/trunk/mcs/; revision=141424
2009-09-07 11:57:20 +00:00
Marek Habersack 2c3659caa0 Minor adjustment
svn path=/trunk/mcs/; revision=141422
2009-09-07 11:19:10 +00:00
Marek Habersack 04bfff9c53 2009-09-07 Marek Habersack <[email protected]>
* HostingEnvironment.cs: MapPath checks if HttpContext.Request
	actually exists before using it.

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

	* XmlSiteMapProviderTest.cs: added

	* StaticSiteMapProviderTest.cs: added test for FindSiteMapNode

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

	* XmlSiteMapProvider.cs: do not allow the provider to be
	intialized more than once.
	Initialize throws if it finds unknown attributes in the
	'attributes' collection.
	AddNode checks its arguments and throws if they are null or aren't
	from the same provider.
	FindStartingNode throws exceptions in several erroneous situations
	now.
	Added private method GetConfigDocument which performs several
	checks on the source .sitemap file and throws exceptions if it
	finds any errors.
	BuildSiteMap clears provider state before building the map.
	BuildSiteMapRecursive correctly deals with custom providers. Fixes
	bug #465696
	FindSiteMapNode maps url before searching. Fixes bug #465696

	* VirtualPathUtility.cs: Combine a bit more efficient

	* StaticSiteMapProvider.cs: FindSiteMap node checks if rawUrl is
	relative to application root and if yes, makes it absolute.
	MapUrl converts both rooted and not rooted urls to absolute.

	* SiteMapProvider.cs: check if HttpContext.Request exists before
	using it in FindSiteMapnode

	* SiteMap.cs: Providers collection must be read-only.

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

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWeb/NunitWeb/Resources/sub_map_01.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_01.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_02.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_03.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_04.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_05.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_06.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_07.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_08.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_09.sitemap

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

	* Tests/TestSiteMapProvider.cs: added

svn path=/trunk/mcs/; revision=141420
2009-09-07 11:07:43 +00:00
Atsushi Eno 110967e4e9 2009-09-07 Atsushi Enomoto <[email protected]>
* Makefile: add some WCF assemblies to centum_tests.


svn path=/trunk/mcs/; revision=141418
2009-09-07 10:48:14 +00:00
Atsushi Eno 328cda0652 2009-09-07 Atsushi Enomoto <[email protected]>
* X509CertificateClaimSetTest.cs : mark as Ignore (not working on
	  .NET either).


svn path=/trunk/mcs/; revision=141417
2009-09-07 10:45:50 +00:00
Atsushi Eno 5606e78b5a 2009-09-07 Atsushi Enomoto <[email protected]>
* XmlObjectSerializerTest.cs : fix (here too) bad serialization-
	  compatibility-dependent test.


svn path=/trunk/mcs/; revision=141415
2009-09-07 10:40:07 +00:00
Atsushi Eno a7fb224ef8 2009-09-07 Atsushi Enomoto <[email protected]>
* XmlObjectSerializerTest.cs : fixed wrong EOLs that resulted in
	  failure in .NET.
	* XsdDataContractExporterTest.cs : fix test that failed on .NET,
	  and marked as NotWorking (no proceeding wsdl work yet).


svn path=/trunk/mcs/; revision=141414
2009-09-07 10:23:37 +00:00
Atsushi Eno f7306fc799 2009-09-07 Atsushi Enomoto <[email protected]>
* DataContractJsonSerializerTest.cs : fix non-datacontract
	  serialization test. It depended on IPAddress field internals
	  (runtime serialization incompatibility).


svn path=/trunk/mcs/; revision=141412
2009-09-07 09:47:23 +00:00
Atsushi Eno 559e9dc912 2009-09-07 Atsushi Enomoto <[email protected]>
* JsonReaderWriterFactory.cs : check null stream (fix test failure).


svn path=/trunk/mcs/; revision=141411
2009-09-07 09:46:09 +00:00
Atsushi Eno 1eb212f5cf 2008-09-07 Atsushi Enomoto <[email protected]>
* UriTemplate.cs, UriTemplateMatch.cs : add support for wildcard.

	* UriTemplateTest.cs : add test for wildcard.


svn path=/trunk/mcs/; revision=141410
2009-09-07 08:58:58 +00:00
Atsushi Eno d8cd2bea1a 2008-09-07 Atsushi Enomoto <[email protected]>
* UriTemplate.cs : implement IsEquivalentTo().
	* UriTemplateEquivalenceComparer.cs : implement.

	* UriTemplateEquivalenceComparerTest.cs : new test.

	* System.ServiceModel.Web_test.dll.sources :
	  added UriTemplateEquivalenceComparerTest.cs.


svn path=/trunk/mcs/; revision=141409
2009-09-07 08:21:16 +00:00
Atsushi Eno 401f5e15eb 2008-09-07 Atsushi Enomoto <[email protected]>
* UriTemplate.cs : add BindByName() overloads with Dictionary.


svn path=/trunk/mcs/; revision=141408
2009-09-07 08:09:13 +00:00
Ivan Zlatev a2bb9365be 2009-09-07 Ivan N. Zlatev <[email protected]>
* DesignSurface.cs: Don't be so strict and allow for the users
	to get the View even if the DesignSurface wasn't properly initialized
	with a DesignerLoader. MS compatibility.
	[Fixes bug #537131]

svn path=/trunk/mcs/; revision=141406
2009-09-07 08:01:33 +00:00
Atsushi Eno bc0a1d8633 2008-09-07 Atsushi Enomoto <[email protected]>
* UriTemplate.cs : implemented Defaults and IgnoreTrailingSlash.

	* UriTemplateTest.cs :
	  added tests for IgnoreTrailingSlash and Defaults.


svn path=/trunk/mcs/; revision=141405
2009-09-07 07:57:48 +00:00
Atsushi Eno 0ff985bc0f 2009-09-07 Atsushi Enomoto <[email protected]>
* net_2_1_System.Runtime.Serialization.dll.sources : ditto.


svn path=/trunk/mcs/; revision=141404
2009-09-07 07:42:53 +00:00
Atsushi Eno f469ce8ab5 2009-09-07 Atsushi Enomoto <[email protected]>
* UriTemplateTest.cs : fixed a couple of tests to match 3.5 SP1
	  behavior.

	* UriTemplate.cs : Fixed a couple of parse/match behavior to match
	  3.5 SP1 (except for Defaults which misses implementation).


svn path=/trunk/mcs/; revision=141403
2009-09-07 07:03:15 +00:00
Atsushi Eno 39fa97993e 2009-09-07 Atsushi Enomoto <[email protected]>
* Rss20FeedFormatter.cs, CategoriesDocument.cs,
	  AtomPub10ServiceDocumentFormatter_1.cs,
	  AtomPub10CategoriesDocumentFormatter.cs,
	  AtomPub10ServiceDocumentFormatter.cs : a couple of corcompare fixes.


svn path=/trunk/mcs/; revision=141401
2009-09-07 04:55:14 +00:00
Atsushi Eno 47b9f23413 forgot to add.
svn path=/trunk/mcs/; revision=141400
2009-09-07 04:08:09 +00:00
Atsushi Eno 92c7eb6170 2009-09-07 Atsushi Enomoto <[email protected]>
* System.Runtime.Serialization.dll.sources :
	  added IgnoreDataMemberAttribute.cs.

	* IgnoreDataMemberAttribute.cs : add missing type.
	* SerializationMap.cs : support above.

	* XmlObjectSerializerTest.cs : add test for [IgnoreDataMember].


svn path=/trunk/mcs/; revision=141399
2009-09-07 04:06:00 +00:00
Miguel de Icaza 5e52dab0a6 Put WindowsBase on mcs/class for System.IO.Packaging
svn path=/trunk/mcs/; revision=141398
2009-09-06 23:19:06 +00:00
Carlos Alberto Cortez 34cacce63c 2009-09-06 Carlos Alberto Cortez <[email protected]>
* Line.cs: In DeleteCharacters, cache line.Length for every tag, since
	tag.Start changes will modify it indirectly and then we would end up
	with wrong values.
	Fixes #512521.


svn path=/trunk/mcs/; revision=141397
2009-09-06 17:20:10 +00:00
Zoltan Varga b2710fc7c0 2009-09-06 Zoltan Varga <[email protected]>
* exceptions.cs: Add a new test.

svn path=/trunk/mono/; revision=141396
2009-09-06 14:59:29 +00:00
Zoltan Varga 106d16bcbf 2009-09-06 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Add a few more missing casts,
	skip empty phi opcodes.

svn path=/trunk/mono/; revision=141395
2009-09-06 14:58:34 +00:00
Atsushi Eno f5d6d3167b 2009-09-06 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : default action name is prepended
	  "urn:", and on the other hand do not add extra '/' in such case.

	* HttpRequestChannel.cs : Fix message version member comparison.
	  Double-quote SOAPAction. Remove extra Exception.
	* HttpReplyChannel.cs : ditto for version comparison. Unquote above.
	* HttpRequestContext.cs : when addressing is None, remove action
	  from the message.


svn path=/trunk/mcs/; revision=141394
2009-09-06 10:32:38 +00:00
Atsushi Eno 0ed29e41ae 2009-09-06 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : end method lookup should be
	  done against the type that defines begin method.

	* ClientProxyGenerator.cs : it missed end method argument on
	  generating end method proxy.


svn path=/trunk/mcs/; revision=141393
2009-09-06 02:34:53 +00:00
Rodrigo Kumpera ededb3f370 2009-09-06 Rodrigo Kumpera <[email protected]>
* ConstructorOnTypeBuilderInst.cs (GetParameters): Make it work for
	finished types.

svn path=/trunk/mcs/; revision=141392
2009-09-06 02:22:31 +00:00
Rodrigo Kumpera 5fe7758edc 2009-09-05 Rodrigo Kumpera <[email protected]>
* mini-x86.c (needs_stack_frame): OSX requires full frames to keep proper alignment.

svn path=/trunk/mono/; revision=141391
2009-09-06 02:14:31 +00:00
Zoltan Varga be40792ee2 2009-09-06 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Handle unsigned volatile variables
	correctly by zero extending after loads. Skip methods containing calls
	to the monitor enter/exit trampolines.

svn path=/trunk/mono/; revision=141390
2009-09-06 02:06:29 +00:00
Zoltan Varga a4ac9a6c8a 2009-09-06 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_create_trampoline_code): Align the stack
	when calling mono_thread_force_interruption_checkpoint ().

svn path=/trunk/mono/; revision=141389
2009-09-05 23:48:59 +00:00
Zoltan Varga e85ae56868 2009-09-06 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Disable llvm when AOT compiling.

	* tramp-amd64.c (mono_arch_patch_callsite): Add support for 32 bit ->
	64 bit thunks.
	(mono_arch_nullify_class_init_trampoline): Read 'buf' instead of 'code'.

	* mini-llvm.c (mono_llvm_emit_method): Add a few missing conversions so a
	bootstrap could run.

svn path=/trunk/mono/; revision=141388
2009-09-05 23:46:46 +00:00
Zoltan Varga 8550c4ebfb 2009-09-05 Zoltan Varga <[email protected]>
* handles.c (_wapi_handle_real_new): Call _wapi_process_reap () when running
	out of shared handes. Fixes #536776.

svn path=/trunk/mono/; revision=141381
2009-09-05 18:22:35 +00:00
Zoltan Varga d37904d534 2009-09-05 Zoltan Varga <[email protected]>
* process-stress.cs: New stress test for spawning processes.

svn path=/trunk/mono/; revision=141380
2009-09-05 18:22:29 +00:00
Zoltan Varga c6557b0196 2009-09-05 Zoltan Varga <[email protected]>
* processes.c (CreateProcess): Return false and set the error to
	ERROR_OUTOFMEMORY when a process handle cannot be created.
	(ShellExecuteEx): Propagate an ERROR_OUTOFMEMORY error code. Fixes part of
	#536776.

svn path=/trunk/mono/; revision=141379
2009-09-05 17:22:42 +00:00
Zoltan Varga 1217d6467c 2009-09-05 Zoltan Varga <[email protected]>
* MemoryMappedFileTest.cs: Add a minimal test for CreateViewAccessor ().

svn path=/trunk/mcs/; revision=141377
2009-09-04 22:31:10 +00:00
Zoltan Varga 08351b9b95 2009-09-05 Zoltan Varga <[email protected]>
* MemoryMappedViewAccessor.cs: New net 4.0 class.

	* MemoryMappedViewStream.cs: Move the mmap code to MemoryMappedFile.cs,
	so it can be used by ViewAccessor as well.

svn path=/trunk/mcs/; revision=141375
2009-09-04 22:22:58 +00:00
Zoltan Varga ec2ab25c33 2009-09-04 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add System.IO/UnmanagedMemoryAccessor.cs.

svn path=/trunk/mcs/; revision=141374
2009-09-04 21:50:07 +00:00
Zoltan Varga bc4360c4a2 2009-09-04 Zoltan Varga <[email protected]>
* UnmanagedMemoryAccessor.cs: New net 4.0 class.

svn path=/trunk/mcs/; revision=141373
2009-09-04 21:50:00 +00:00
Zoltan Varga 13de10e2f0 2009-09-04 Zoltan Varga <[email protected]>
* SafeBuffer.cs: Mark specific methods as non-cls compliant instead of
	the whole class.

svn path=/trunk/mcs/; revision=141372
2009-09-04 21:49:51 +00:00
Marek Habersack 652d412e1a 2009-09-04 Marek Habersack <[email protected]>
* HttpRuntime.cs: retrieve real Mono version from the runtime and
	store it in the MonoVersion internal static property.

svn path=/trunk/mcs/; revision=141370
2009-09-04 21:38:17 +00:00
Zoltan Varga 5db9a777e9 2009-09-04 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add System.Runtime.InteropServices/SafeBuffer.cs.

svn path=/trunk/mcs/; revision=141369
2009-09-04 21:28:31 +00:00
Zoltan Varga e1fe3ded9a 2009-09-04 Zoltan Varga <[email protected]>
* SafeBuffer.cs: New net 4.0 class.

svn path=/trunk/mcs/; revision=141368
2009-09-04 21:28:17 +00:00
Zoltan Varga be635b5bc5 2009-09-04 Zoltan Varga <[email protected]>
* mini.c (mini_init): Set callbacks.get_runtime_build_info ().

svn path=/trunk/mono/; revision=141367
2009-09-04 21:23:36 +00:00
Zoltan Varga 5a5c799625 2009-09-04 Zoltan Varga <[email protected]>
* object-internals.h (MonoRuntimeCallbacks): Add a 'get_runtime_build_info' callback.

	* object.c (mono_get_runtime_callbacks): New helper function to return
	the runtime callbacks.

	* icall.c (ves_icall_Mono_Runtime_GetDisplayName): Use the result of
	mono_get_runtime_build_info () as the display name.

svn path=/trunk/mono/; revision=141366
2009-09-04 21:23:29 +00:00
Jonathan Pryor 51fe9f0e89 * Makefile: Also rsync dblinq2007/examples sources.
* build/DbLinq.Sqlite_test_mono_strict.dll.sources: Added; .sources
	  file to build build/DbLinq.Sqlite_test_mono_strict.dll, the
	  "end-to-end" unit tests for SQLite using Mono.Data.Sqlite.
	* build/Makefile: Added; builds all "end-to-end" unit tests.
	* examples/**/*: Sync with DbLinq r1217; includes sources needed for
	  end-to-end tests located in 'build'.

svn path=/trunk/mcs/; revision=141365
2009-09-04 20:50:26 +00:00
Gonzalo Paniagua Javier 20b5cffa2c 2009-09-04 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: make the Sleep() alertable to prevent delays exiting
	applications that take less than 2s to execute.
	Bug #524984 fixed.


svn path=/trunk/mono/; revision=141363
2009-09-04 20:35:29 +00:00
Miguel de Icaza b4e9a7677e 2009-09-04 Miguel de Icaza <[email protected]>
* TermInfoDriver.cs: Handle a few more key combinations.

svn path=/trunk/mcs/; revision=141360
2009-09-04 19:13:17 +00:00
Gonzalo Paniagua Javier 3d39a08751 2009-09-04 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: if the request has already finished reading, don't
	throw ObjectDisposedException here, just return as if nothing
	happened. Fixes bug #312968.


svn path=/trunk/mcs/; revision=141346
2009-09-04 17:35:08 +00:00
Jonathan Pryor 263d129a2d * src/**/*: Sync with DbLinq r1217. This removes a slew of
FieldAccessExceptions when running the DbLinq unit tests.

svn path=/trunk/mcs/; revision=141344
2009-09-04 17:22:41 +00:00
Geoff Norton fe30a24e6f dont crash is config is null
svn path=/trunk/mcs/; revision=141343
2009-09-04 17:21:45 +00:00
Marek Habersack 0ab036c732 2009-09-04 Marek Habersack <[email protected]>
* HttpRuntime.cs: detect (and parse if possible) real Mono version
	and make it available via internal, static property
	MonoVersion. MonoVersionParsed property tells whether
	Mono.Runtime.GetDisplayName returned string in a format we
	understood.

	* HttpException.cs: report real Mono version when backtrace is
	displayed.

svn path=/trunk/mcs/; revision=141339
2009-09-04 16:05:39 +00:00
Gonzalo Paniagua Javier fa81a173d1 Avoid nullref in 2.0 too
svn path=/trunk/mcs/; revision=141334
2009-09-04 15:15:05 +00:00
Marek Safar 170a1b14ad New test.
svn path=/trunk/mcs/; revision=141332
2009-09-04 15:00:02 +00:00
Marek Safar c7adf50fba 2009-09-04 Marek Safar <[email protected]>
* statement.cs, ecore.cs: Removed error reporting from emit code.


svn path=/trunk/mcs/; revision=141331
2009-09-04 14:59:38 +00:00
Atsushi Eno 006af1c9f7 2009-09-04 Atsushi Enomoto <[email protected]>
* OperationInvokerHandler.cs, ReplyHandler.cs :
	  - Eliminate ReplyHandler use. What is does is simple reply, while
	    it brings inconsistency between sync and async models.
	    What reply handler used to do are now integrated.
	  - Support ErrorHandlers and InputSessionShutdownHandlers.
	    Actually ErrorHandlers were processed at wrong place and they
	    weren't called where they are expected.
	* InputOrReplyRequestProcessor.cs : hence eliminated ReplyHandler.
	* BaseRequestProcessor.cs : add FIXME notes on ErrorHandlers.


svn path=/trunk/mcs/; revision=141326
2009-09-04 13:51:22 +00:00
Atsushi Eno 5091bf6144 2009-09-04 Atsushi Enomoto <[email protected]>
* OutgoingWebResponseContext.cs : add missing methods.


svn path=/trunk/mcs/; revision=141317
2009-09-04 10:43:30 +00:00
Marek Safar 416ccd996d New test.
svn path=/trunk/mcs/; revision=141316
2009-09-04 10:42:13 +00:00
Marek Safar d74a720acf 2009-09-04 Marek Safar <[email protected]>
* cs-parser.jay, parameter.cs: Moved parser check out of constructor


svn path=/trunk/mcs/; revision=141315
2009-09-04 10:42:01 +00:00
Atsushi Eno db820aa7c6 2009-09-04 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : remove obsoleted method.


svn path=/trunk/mcs/; revision=141314
2009-09-04 10:41:45 +00:00
Atsushi Eno 47dfe0a55e 2009-09-04 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : URI trailing '/' can be added only when the
	  relative URI is non-empty. Do not make http://host/foo.svc as
	  http://host/foo.svc/ , it's not a directory.

	* SvcHttpHandler.cs : set Uri property based on baseAddresses and
	  path, to pick those endpoints that are added at custom factories.


svn path=/trunk/mcs/; revision=141307
2009-09-04 09:55:04 +00:00
Atsushi Eno c30926c3e5 2009-09-04 Atsushi Enomoto <[email protected]>
* ServiceHostBaseTest.cs : a few more base address test.
	  Remove NotWorking marks.


svn path=/trunk/mcs/; revision=141305
2009-09-04 09:06:47 +00:00
Atsushi Eno de6fa7f549 2009-09-04 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : add AddBaseAddress(). BaseAddresses must be
	  non-null.

	* ServiceHostBaseTest.cs : added test for AddBaseAddress().


svn path=/trunk/mcs/; revision=141301
2009-09-04 08:44:18 +00:00
Atsushi Eno 62776aadf3 2009-09-04 Atsushi Enomoto <[email protected]>
* WebScriptServiceHostFactory.cs : endpoints are automatically added
	  and if they are added through configuration, it is an error
	  (as documented).


svn path=/trunk/mcs/; revision=141294
2009-09-04 07:45:49 +00:00
Marek Safar 2d848214ff 2009-09-03 Marek Safar <[email protected]>
* anonymous.cs, expression.cs, statement.cs, cs-parser.jay: Moved
	parser checks out of constructors.


svn path=/trunk/mcs/; revision=141280
2009-09-03 19:06:26 +00:00
Ivan Zlatev 773a04f646 2009-09-03 Ivan N. Zlatev <[email protected]>
* DataColumnPropertyDescriptor.cs, DataView.cs: Not browsable if Hidden.
	[Fixes the second part of bug #536547]

svn path=/trunk/mcs/; revision=141272
2009-09-03 18:00:48 +00:00
Zoltan Varga 5d27ffb730 2009-09-03 Zoltan Varga <[email protected]>
* pinvoke3.cs libtest.c: Add a test for #481559.

svn path=/trunk/mono/; revision=141269
2009-09-03 17:56:32 +00:00
Zoltan Varga 648947e9b3 2009-09-03 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_array): Call conv.ovf.i on the array parameter
	argument, since NEWARR expects a native int. Fixes #481559.

svn path=/trunk/mono/; revision=141268
2009-09-03 17:56:25 +00:00
Rodrigo Kumpera 58d8264003 2009-09-03 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_MonoMethod_GetDllImportAttribute): Guard
	against broken SRE methods.

svn path=/trunk/mono/; revision=141267
2009-09-03 17:48:48 +00:00
Rodrigo Kumpera 0958de52eb 2009-09-03 Rodrigo Kumpera <[email protected]>
* class.c (mono_type_get_full): Don't call mono_metadata_free_type on
	a NULL variable. Abort early on failure.

svn path=/trunk/mono/; revision=141266
2009-09-03 17:48:38 +00:00
Rodrigo Kumpera 700c5631f4 2009-09-03 Rodrigo Kumpera <[email protected]>
* class.c (can_access_type): Fail visibility test for non nested
	types with nested visibility.

svn path=/trunk/mono/; revision=141265
2009-09-03 17:48:27 +00:00
Ivan Zlatev d21eec3902 2009-09-03 Ivan N. Zlatev <[email protected]>
* BindingSource.cs: Implement support for chained data sources.
	* ListBindingHelper.cs: Add support for ICurrencyManagerProvider and
	clean up.
	[Fixes part of bug #536547]

svn path=/trunk/mcs/; revision=141261
2009-09-03 16:32:22 +00:00
Zoltan Varga 2ae8ced866 2009-09-03 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass the start
	of the method to
	mono_breakpoint_clean_code () when using LLVM as the prologues generated by
	LLVM might be very short.

svn path=/trunk/mono/; revision=141260
2009-09-03 16:14:27 +00:00
Zoltan Varga f0c42c5d66 2009-09-03 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass the start
	of the method to
	mono_breakpoint_clean_code () when using LLVM as the prologues generated by
	LLVM might be very short.

svn path=/trunk/mono/; revision=141259
2009-09-03 16:14:20 +00:00
Gonzalo Paniagua Javier cf9aa23358 typo
svn path=/trunk/mono/; revision=141254
2009-09-03 15:07:06 +00:00
Gonzalo Paniagua Javier caf2328cd4 We need the g_free symbol in the library
svn path=/trunk/mono/; revision=141253
2009-09-03 15:06:28 +00:00
Zoltan Varga 03149b1138 2009-09-03 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Maintain stack alignment
	in OP_THROW/RETHROW.

	* exceptions-x86.c: Rewrite the throw trampolines so they maintain stack
	alignment on osx.

svn path=/trunk/mono/; revision=141250
2009-09-03 14:46:13 +00:00
Gonzalo Paniagua Javier 110b77b72f Fix the VS build. Part 2/2
svn path=/trunk/mono/; revision=141249
2009-09-03 14:42:17 +00:00
Gonzalo Paniagua Javier 8ce0fe0d78 Fix the MSVC build. Part 1/2.
svn path=/trunk/mono/; revision=141248
2009-09-03 14:41:31 +00:00
Marek Habersack a0c36b84a2 Compilation fix: typo
svn path=/trunk/mcs/; revision=141245
2009-09-03 13:13:38 +00:00
Jb Evain 37693dfb5e 2009-09-03 Jb Evain <[email protected]>
* ExpressionTest_Constant.cs: add test to emit dbnull constants.


svn path=/trunk/mcs/; revision=141242
2009-09-03 12:10:36 +00:00
Jb Evain 245ad0e086 2009-09-03 Jb Evain <[email protected]>
* ConstantExpression.cs (Emit): add support to emit DBNull values.


svn path=/trunk/mcs/; revision=141241
2009-09-03 12:10:09 +00:00
Jb Evain 6e5d9d672f 2009-09-03 Jb Evain <[email protected]>
* ExpressionTest_Constant.cs: add test to emit DateTime constants.


svn path=/trunk/mcs/; revision=141239
2009-09-03 12:00:59 +00:00
Jb Evain 332e5b400d 2009-09-03 Jb Evain <[email protected]>
* ConstantExpression.cs (Emit): add support for emitting
	DateTime constants.


svn path=/trunk/mcs/; revision=141238
2009-09-03 12:00:32 +00:00
Atsushi Eno abe7c5c6c5 2009-09-03 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : move DispatcherBuilder out from ServiceHostBase.


svn path=/trunk/mcs/; revision=141236
2009-09-03 11:34:45 +00:00
Atsushi Eno 0a17ae4318 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : apply configuration, and if there is still no
	  endpoint, then add default one.


svn path=/trunk/mcs/; revision=141230
2009-09-03 11:08:35 +00:00
Atsushi Eno 62f6587d9b 2009-09-03 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : on service contract lookup, do not always
	  expect contract name to match type name.
	* ServiceHost.cs : remove extra local var.


svn path=/trunk/mcs/; revision=141229
2009-09-03 10:51:59 +00:00
Atsushi Eno e5518a68ff 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : another URL to make relative.


svn path=/trunk/mcs/; revision=141227
2009-09-03 10:49:35 +00:00
Atsushi Eno b7389dd966 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs : some GetHandler changes.
	* SvcHttpHandler.cs : significant changes on receiver structure. Now
	  ProcessRequest() stores pending requests (this might be extraneous,
	  but maybe useful when it implements async handler). Also removed
	  reply_channel field as it may become to handle multiple requests.
	* HttpChannelListener.cs : bind to corresponding SvcHttpHandler.
	* AspNetReplyChannel.cs : make it receive requests like
	  HttpReplyChannel (for HttpListener) to make them consistent.


svn path=/trunk/mcs/; revision=141224
2009-09-03 10:13:08 +00:00
Zoltan Varga 6444df1d96 Fix the build.
svn path=/trunk/mono/; revision=141221
2009-09-03 09:57:55 +00:00
Marek Habersack d0c210841f 2009-09-03 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: SanitizeResourceName uses VB/C# rules
	to attempt to create valid identifiers from resource
	names. Identifier is also escaped by the CodeDOM provider before
	returning. Possible fix for bug #536364

svn path=/trunk/mcs/; revision=141220
2009-09-03 09:57:31 +00:00
Atsushi Eno 96409c115e 2009-09-03 Atsushi Enomoto <[email protected]>
* AspNetRequestContext.cs, HttpRequestContext.cs :
	  fix NRE on HttpListenerContext for AspNetRequestContext (mismatch)
	  by splitting HttpListener-based context out from common code base.


svn path=/trunk/mcs/; revision=141219
2009-09-03 09:52:07 +00:00
Atsushi Eno c5387b6791 2009-09-03 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : fix wrong listenUri argument in
	  AddServiceEndpoint() call chain.


svn path=/trunk/mcs/; revision=141218
2009-09-03 09:48:56 +00:00
Atsushi Eno 5ce2b80051 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : use baseAddresses in ServiceHost and make URIs
	  relative or absolute. new Uri ("/foobar") doesn't work on non-unix
	  environment.


svn path=/trunk/mcs/; revision=141206
2009-09-03 06:13:18 +00:00
Miguel de Icaza b72d1ba23c 2009-08-11 Jérémie Laval <[email protected]>
* corlib.dll.sources: Update with moved files.
	* corlib_test.dll.source: Updated with moved files.

2009-07-31  Jérémie Laval  <[email protected]>

svn path=/trunk/mcs/; revision=141190
2009-09-03 00:11:57 +00:00
Zoltan Varga dd8991817c 2009-09-03 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_get_vcall_slot): Pass the start of the method to
	mono_breakpoint_clean_code () when using LLVM as the prologues generated by
	LLVM might be very short.

svn path=/trunk/mono/; revision=141189
2009-09-02 23:50:56 +00:00
Rodrigo Kumpera dcdc2c4a43 2009-09-02 Rodrigo Kumpera <[email protected]>
* icall.c, icall-def.h: Remove some dead code from early SRE changes.

svn path=/trunk/mono/; revision=141185
2009-09-02 22:56:13 +00:00
Rodrigo Kumpera ce0a590a58 2009-09-02 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_fields): Remove duplicated local variable
	named gklass.
	Rename gklass to gtd to reflect the fact that it points to the generic
	type definition.
	Remove the duplicated call to mono_class_setup_fields on gtd and move
	the error check to the beginning.

svn path=/trunk/mono/; revision=141184
2009-09-02 22:56:02 +00:00
Rodrigo Kumpera 1eb1c2e4d0 2009-09-02 Rodrigo Kumpera <[email protected]>
* time.c (Mono_Posix_Syscall_nanosleep): Avoid referencing unitialized
	memory.

svn path=/trunk/mono/; revision=141183
2009-09-02 22:55:53 +00:00
Rodrigo Kumpera 79436b9aa4 2009-09-02 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Test for #536243.

svn path=/trunk/mcs/; revision=141177
2009-09-02 20:50:08 +00:00
Rodrigo Kumpera 91af725545 2009-09-02 Rodrigo Kumpera <[email protected]>
* ILGenerator.cs (label_fixup): Check for unmarked labels.
	Fixes #536243.

svn path=/trunk/mcs/; revision=141176
2009-09-02 20:49:48 +00:00
Jonathan Pryor a49f30b844 * src/**/*: Sync with DbLinq r1215. This fixes the
../../tools/sqlmetal build.

svn path=/trunk/mcs/; revision=141172
2009-09-02 19:42:28 +00:00
Sebastien Pouliot ef34f0d0f7 2009-09-02 Sebastien Pouliot <[email protected]>
* assembly.c (parse_public_key): Avoid allocating (and not 
	freeing) the public key array when it's not requested by the 
	caller.
	* threads.c (mono_thread_manage, mono_thread_create_internal, 
	ves_icall_System_Threading_Thread_Thread_internal): Free 
	allocated memory on error.


svn path=/trunk/mono/; revision=141170
2009-09-02 19:11:12 +00:00
Rodrigo Kumpera be94fda9b5 2009-09-02 Rodrigo Kumpera <[email protected]>
* marshal.c (mono_array_to_lparray): Do DISABLE_COM properly.
	Remove cruft of the previous patch.

svn path=/trunk/mono/; revision=141169
2009-09-02 19:03:45 +00:00
Miguel de Icaza a2bf1947c6 Update comment
svn path=/trunk/mono/; revision=141167
2009-09-02 18:45:48 +00:00
Rodrigo Kumpera 46d2aae827 2009-09-02 Rodrigo Kumpera <[email protected]>
* mono-sha1.c: Update documentation.

svn path=/trunk/mono/; revision=141163
2009-09-02 18:13:44 +00:00
Rodrigo Kumpera 694d240b8f 2009-09-02 Rodrigo Kumpera <[email protected]>
* mono-md5.c: Update documentation.

svn path=/trunk/mono/; revision=141162
2009-09-02 18:09:00 +00:00
Sebastien Pouliot 9c55633c10 2009-09-02 Sebastien Pouliot <[email protected]>
* mono-dl.c (mono_dl_open): Don't leak module if name is NULL
	* mono-md5.c (mono_md5_get_digest_from_file): Close 'fp' even on
	success (just like we do for sha1)


svn path=/trunk/mono/; revision=141161
2009-09-02 18:07:11 +00:00
Jonathan Pryor cc5ca17ec0 * src/**/*: Sync with DbLinq r1214. This integrates several
performance patches from Zoltan Varga, and adds a
	  DataContextSubclass(string) constructor to sqlmetal output.

svn path=/trunk/mcs/; revision=141160
2009-09-02 17:56:50 +00:00
Jb Evain 724ec894de 2009-09-02 Jb Evain <[email protected]>
* Makefile: include System.Json in monotouch.


svn path=/trunk/mcs/; revision=141140
2009-09-02 16:04:02 +00:00
Marek Safar 7c698bbdd2 2009-09-02 Marek Safar <[email protected]>
* expression.cs, statement.cs, ecore.cs: Use common Report.Error.


svn path=/trunk/mcs/; revision=141138
2009-09-02 15:50:55 +00:00
Marek Safar 9d924d7a09 New test.
svn path=/trunk/mcs/; revision=141130
2009-09-02 12:56:15 +00:00
Marek Safar dbd7b32c4e 2009-09-02 Marek Safar <[email protected]>
A fix for bug #535448
	* anonymous.cs, class.cs: Copy return label between all contexts.


svn path=/trunk/mcs/; revision=141129
2009-09-02 12:56:00 +00:00
Atsushi Eno d75a16d629 2009-09-02 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs : make use of BuildManager aid. Now it
	  loads types from system assemblies appropriately.


svn path=/trunk/mcs/; revision=141128
2009-09-02 12:48:01 +00:00
Atsushi Eno f8705002b6 2009-09-02 Atsushi Enomoto <[email protected]>
* WebMessageFormatter.cs : it was not returning value with correct
	  wrapper name/namespace. Fix interop with .NET client.


svn path=/trunk/mcs/; revision=141121
2009-09-02 11:41:43 +00:00
Atsushi Eno fb98aedb8e 2009-09-02 Atsushi Enomoto <[email protected]>
* WebMessageEncodingBindingElement.cs : implement GetProperty<T>().


svn path=/trunk/mcs/; revision=141119
2009-09-02 11:16:45 +00:00
Atsushi Eno b231dcede6 2009-09-02 Atsushi Enomoto <[email protected]>
* WebMessageFormatter.cs : Made the same prohibition for dispatch
	  formatters too. Support WebMessageBodyStyle on dispatcher side too.


svn path=/trunk/mcs/; revision=141117
2009-09-02 11:04:52 +00:00
Marek Safar 1f073e845f New test.
svn path=/trunk/mcs/; revision=141116
2009-09-02 10:53:05 +00:00
Marek Safar 77ebd5438d 2009-09-02 Marek Safar <[email protected]>
A fix for bug #535395
	* namespace.cs: Resolve context can be null.


svn path=/trunk/mcs/; revision=141115
2009-09-02 10:52:53 +00:00
Atsushi Eno d64b10b0c7 2009-09-02 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : now message formatters are pairs of request/
	  reply formatters.

	* WebMessageFormatter.cs : override some serialization methods as
	  prohibited.

	* WebHttpBehaviorTest.cs : some message formatters tests.


svn path=/trunk/mcs/; revision=141112
2009-09-02 10:35:08 +00:00
Atsushi Eno b98bb73fa6 2009-09-02 Atsushi Enomoto <[email protected]>
* BaseMessagesFormatter.cs :
	  implement XmlBodyWriter.OnCreateBufferedCopy().

	* XmlReaderBodyWriter.cs : implement OnCreateBufferedCopy()
	  for XmlReader input.


svn path=/trunk/mcs/; revision=141111
2009-09-02 10:18:38 +00:00
Atsushi Eno f3bae627cb 2009-09-02 Atsushi Enomoto <[email protected]>
* HttpRequestMessageProperty.cs : fix default values.

	* HttpRequestMessagePropertyTest.cs : new test.

	* System.ServiceModel_test.dll.sources:
	  add HttpRequestMessagePropertyTest.cs


svn path=/trunk/mcs/; revision=141110
2009-09-02 10:16:21 +00:00
Atsushi Eno 36942bc07b 2009-09-02 Atsushi Enomoto <[email protected]>
* WebHttpDispatchOperationSelector.cs : use common extension method.
	* WebMessageFormatter.cs : support WebMessageBodyStyle(.Wrapped*).
	  Cache serializers.


svn path=/trunk/mcs/; revision=141102
2009-09-02 08:53:30 +00:00
Atsushi Eno 0504367a09 2009-09-02 Atsushi Enomoto <[email protected]>
* Makefile : use System.Core.


svn path=/trunk/mcs/; revision=141101
2009-09-02 08:48:19 +00:00
Atsushi Eno 2f38d535fb 2009-09-02 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : BodyStyle is operation specific.


svn path=/trunk/mcs/; revision=141100
2009-09-02 08:47:23 +00:00
Atsushi Eno ec2607604c 2009-09-02 Atsushi Enomoto <[email protected]>
* JsonQueryStringConverterTest.cs : comment out one cosmetic case
	  that is not working under .NET.


svn path=/trunk/mcs/; revision=141099
2009-09-02 08:44:31 +00:00
Gonzalo Paniagua Javier 9a4968ac21 2009-09-01 Gonzalo Paniagua Javier <[email protected]>
* DB2CLIWrapper.cs: changed libname to 'db2'. Use 'int' instead of
	'IntPtr' for most of the SQL handles. Only SQLPOINTER is 64 bits in
	64-bit machines.


svn path=/trunk/mcs/; revision=141088
2009-09-01 21:48:31 +00:00
Rodrigo Kumpera 848de93c3a 2009-09-01 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: New test for method abstract + final.
	Tests #534175.

svn path=/trunk/mono/; revision=141081
2009-09-01 21:04:16 +00:00
Rodrigo Kumpera 17b00a3521 2009-09-01 Rodrigo Kumpera <[email protected]>
* Makefile: Fix makefile.

svn path=/trunk/mono/; revision=141080
2009-09-01 21:04:08 +00:00
Rodrigo Kumpera e39778a144 2009-09-01 Rodrigo Kumpera <[email protected]>
* assembly-with-fields.cs: New test source.

	* Makefile: Add test source

svn path=/trunk/mono/; revision=141079
2009-09-01 21:04:00 +00:00
Rodrigo Kumpera 56f68f3b83 2009-09-01 Rodrigo Kumpera <[email protected]>
* cli-global-props-tests.md: Add test for field table.

svn path=/trunk/mono/; revision=141078
2009-09-01 21:03:52 +00:00
Rodrigo Kumpera ecf792389c 2009-09-01 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add suppport for badrt mode for metadata
	tests that require runtime type initialization.

	* Makefile: Add support for badrt.

svn path=/trunk/mono/; revision=141077
2009-09-01 21:03:42 +00:00
Rodrigo Kumpera c33e8218e2 2009-09-01 Rodrigo Kumpera <[email protected]>
* verify.c (verify_class_fields): Check for duplicate fields.

svn path=/trunk/mono/; revision=141076
2009-09-01 21:03:33 +00:00
Rodrigo Kumpera 4c6ac342d0 2009-09-01 Rodrigo Kumpera <[email protected]>
* cli-global-props-tests.md: Add test for typeref table.

	* cli-tables-tests.md: Disable test that pass under MS.

svn path=/trunk/mono/; revision=141075
2009-09-01 21:03:25 +00:00
Rodrigo Kumpera 4c0e461857 2009-09-01 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the typeref table for duplicates.

svn path=/trunk/mono/; revision=141074
2009-09-01 21:03:15 +00:00
Rodrigo Kumpera 0a65b85bfb 2009-09-01 Rodrigo Kumpera <[email protected]>
This reverts r140936 and properly handles interfaces with static methods. The
	right fix is to ensure vtables without bubles which is an easier to verify
	constraint. We should avoid such special cases as of the reverted patch as those
	only make the runtime more brittle.

	* class.c (mono_class_setup_vtable_general): Revert previous change that handle
	static methods on interfaces.

	* class.c (setup_interface_offsets): Use the number of virtual methods when
	calculating interface offsets instead of the number of methods. This way we
	avoid bubles on the layout.

svn path=/trunk/mono/; revision=141073
2009-09-01 21:03:05 +00:00
Geoff Norton d15c42f4ae Revert "2009-08-20 Geoff Norton <[email protected]>"
This reverts commit c33ce01c93fcd9c03021dcd9613cdc8000d84330.

svn path=/trunk/mcs/; revision=141071
2009-09-01 20:39:54 +00:00
Zoltan Varga e9ab9f7e13 2009-09-01 Zoltan Varga <[email protected]>
* exceptions-x86.c (throw_exception): Fix the previous change by substracting
	the alignment for the value of sp.

svn path=/trunk/mono/; revision=141069
2009-09-01 20:32:01 +00:00
Andrew Jorgensen 9aa407e3d0 add spec file for monkeywrench
svn path=/trunk/mono/; revision=141065
2009-09-01 19:28:15 +00:00
Marek Habersack 33b856ff2b 2009-09-01 Marek Habersack <[email protected]>
* ListView.cs: LoadControlState must call OnTotalRowCountAvailable
	after restoring the state, so that all parties subscribed to that
	event are given chance to react accordingly.
	SetPageProperties should use values stored in
	PagePropertiesChangingEventArgs arguments after handler returns.

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

	* ObjectDataSourceView.cs: ExecuteSelect must call
	QueryTotalRowCount after executing the select method (that's what
	.NET does)

svn path=/trunk/mcs/; revision=141062
2009-09-01 19:24:40 +00:00
Atsushi Eno 59c349171c 2009-09-01 Atsushi Enomoto <[email protected]>
* MustUnderstandBehavior.cs : fix build.


svn path=/trunk/mcs/; revision=141046
2009-09-01 13:42:08 +00:00
Atsushi Eno bdc9b8e0aa 2009-09-01 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : on validation, check wrapped parameter style.


svn path=/trunk/mcs/; revision=141044
2009-09-01 13:11:17 +00:00
Atsushi Eno a77b1d8ee6 2009-09-01 Atsushi Enomoto <[email protected]>
* ChannelFactory_1.cs : validate behaviors.


svn path=/trunk/mcs/; revision=141043
2009-09-01 13:09:00 +00:00
Atsushi Eno bb799df7b9 2009-09-01 Atsushi Enomoto <[email protected]>
* ClientCredentials.cs, ClientViaBehavior.cs,
	  MustUnderstandBehavior.cs : implement most of the methods.


svn path=/trunk/mcs/; revision=141042
2009-09-01 13:08:32 +00:00
Atsushi Eno 51c7fba575 2009-09-01 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : add Extensions.


svn path=/trunk/mcs/; revision=141036
2009-09-01 12:28:44 +00:00
Gonzalo Paniagua Javier 3ef6d027f0 typo
svn path=/trunk/mcs/; revision=141028
2009-09-01 10:49:34 +00:00
Carlos Alberto Cortez 59622e0c61 2009-09-01 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When saving the text to a file using SaveFile use
	Environment.NewLine to separate the lines. This way we should be
	saving the files according to the system.
	Fixes the remaining part of #511515.


svn path=/trunk/mcs/; revision=141027
2009-09-01 10:45:44 +00:00
Ankit Jain d1f158bfd2 Fix bug #534965.
* Project.cs (BuildTarget): Move caching of target outputs to ..
* Target.cs: .. here. Move LogTargetSkipped also here.
Ensure that caching happens for target dependencies also.

svn path=/trunk/mcs/; revision=141025
2009-09-01 10:16:10 +00:00
Raja R Harinath 10b2528ab7 Fix #533572
* Uri.cs (ParseNoExceptions): Don't look for '@' in absolute unix paths.

2009-09-01  Andres Aragoneses  <[email protected]>
	* UriTest.cs: New tests from #533572.

svn path=/trunk/mcs/; revision=141020
2009-09-01 09:54:56 +00:00
Atsushi Eno e0606b9a87 2009-09-01 Atsushi Enomoto <[email protected]>
* WebOperationContext.cs : Current is automatically created (even
	  without WebHttpBehavior or WebChannelFactory).
	* IncomingWebRequestContext.cs, IncomingWebResponseContext.cs:
	  WebOperationContext could be created regardless of whether it is
	  request or not. So do not premise incoming members existence.

	* WebOperationContextTest.cs : new test.
	* WebInvokeAttributeTest.cs : new test, not working.

	* System.ServiceModel.Web_test.dll.sources :
	  added WebOperationContextTest.cs.


svn path=/trunk/mcs/; revision=141005
2009-09-01 07:07:30 +00:00
Geoff Norton 0a3231a8f0 2009-09-01 Geoff Norton <[email protected]>
* mini.c (mono_get_lmf_addr): Fix jit_thread_attach for native to
        managed wrappers in full aot.

svn path=/trunk/mono/; revision=141001
2009-09-01 04:28:29 +00:00
Ankit Jain 0ff805a946 * ResolveAssemblyReference.cs (ResolveReference): targetFrameworkDirectories
can be null.

svn path=/trunk/mcs/; revision=141000
2009-09-01 04:04:29 +00:00
Ankit Jain 7642269ac1 * DirectoryScanner.cs (Scan): Ignore empty entries in includes and
excludes.

svn path=/trunk/mcs/; revision=140999
2009-09-01 04:04:11 +00:00
Ankit Jain 64b342c4e8 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Expression.cs (ParseOptions): New enum. Replace the bool params
	of exression.Parse with this. Add option to control expansion of
	metadata references.
	(CopyToExpressionCollection): Track api changes.

	Update all expr.Parse calls to use the new enum.
	* BuildItem.cs, BuildProperty.cs, BuildTask.cs, Import.cs,
	Target.cs, TargetBatchingImpl.cs, UsingTask.cs: Track api changes.

	* BatchingImplBase.cs: Track api changes. Allow metadata refs
	in task attributes.
	* ConditionFactorExpression.cs: Allow metadata refs in conditions.
	* ItemReference.cs: Allow metadata in transforms.
	* TaskEngine.cs: Allow metadata refs.

	* MetadataReference.cs (.ctor): Add a 'original string' param.

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

	* TaskBatchingTest.cs: Add new tests for metadata refs found
	in places other than task attributes.

svn path=/trunk/mcs/; revision=140998
2009-09-01 04:00:38 +00:00
Zoltan Varga 4f8958f6d6 2009-09-01 Zoltan Varga <[email protected]>
* processes.c (EnumProcessModules): Applied patch from Romain Tartière
	([email protected]). Fix this on freebsd/OSX. Fixes #533893.

svn path=/trunk/mono/; revision=140994
2009-09-01 00:15:08 +00:00
Zoltan Varga 676026a3b3 2009-08-31 Zoltan Varga <[email protected]>
* exceptions-x86.c (get_throw_exception): Align the stack on osx.

svn path=/trunk/mono/; revision=140989
2009-08-31 20:56:59 +00:00
Michael Barker 2ac3ad3afb 2009-08-31 Michael Barker <[email protected]>
* Updated to version 1.6 of the RabbitMQ libraries

svn path=/trunk/mcs/; revision=140984
2009-08-31 18:18:17 +00:00
Carlos Alberto Cortez f4113d61f5 2009-08-31 Carlos Alberto Cortez <[email protected]>
* RichText.cs: Remove some unix new line characters and use
	Environment.NewLine. Fixes part of #511515.


svn path=/trunk/mcs/; revision=140983
2009-08-31 17:42:41 +00:00
Rodrigo Kumpera 82b4a5cf13 2009-08-31 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_metadata_header): Some very smart
	obfuscators like to add extra stream headers. Ignore them.

svn path=/trunk/mono/; revision=140963
2009-08-31 13:33:01 +00:00
Atsushi Eno 7a217b8104 2009-08-31 Atsushi Enomoto <[email protected]>
* HttpChannelFactory.cs, HttpRequestChannel.cs,
	  ChannelFactoryBase.cs : fix to previous one; allow null Via uri.
	  Check ManualAddressing value and reject address-missing ones.


svn path=/trunk/mcs/; revision=140962
2009-08-31 12:26:49 +00:00
Atsushi Eno 59fceba19b 2009-08-31 Atsushi Enomoto <[email protected]>
* HttpChannelFactory.cs : reject URI mismatch cases when required.

	* HttpTransportBindingElementTest.cs : test for URI mismatch case.


svn path=/trunk/mcs/; revision=140960
2009-08-31 12:10:33 +00:00
Gonzalo Paniagua Javier 84558bda8f fix
svn path=/trunk/mcs/; revision=140953
2009-08-31 10:10:11 +00:00
Gonzalo Paniagua Javier 91749a356c PAtch by Adam Wendt
svn path=/trunk/mcs/; revision=140952
2009-08-31 09:47:49 +00:00
Gonzalo Paniagua Javier f272f2d0a7 2009-08-31 Gonzalo Paniagua Javier <[email protected]>
* CustomizableFileSettingsProvider.cs: reset the property value
	instead of using the DefaultValue.
	* SettingsPropertyValue.cs: new Reset() method.
	* ApplicationSettingsBase.cs: Reset happens in Reload().
	Patch by Andrew Kurochka that fixes bug #532180.


svn path=/trunk/mcs/; revision=140950
2009-08-31 09:20:07 +00:00
Jb Evain bd9b888867 2009-08-30 Jb Evain <[email protected]>
* IsolatedStorageFileEnumerator.cs
	* MoonIsolatedStorageFileStream.cs
	* MoonIsolatedStorageFile.cs
	* MoonIsolatedStorage.cs
	* IsolatedStorageScope.cs
	* IsolatedStorageFileStream.cs
	* IsolatedStorage.cs
	* IsolatedStorageFile.cs:
		Use the traditional net_2_0 version of isolated storage
		for MonoTouch.


svn path=/trunk/mcs/; revision=140937
2009-08-30 16:24:36 +00:00
Zoltan Varga 1005b51150 2009-08-30 Zoltan Varga <[email protected]>
* class.c (mono_class_setup_vtable_general): Verify interfaces with static
	methods correctly.

svn path=/trunk/mono/; revision=140936
2009-08-30 14:25:06 +00:00
Zoltan Varga a308db1127 2009-08-30 Zoltan Varga <[email protected]>
* MD5CngTest.cs: Update to new nunit style.

svn path=/trunk/mcs/; revision=140935
2009-08-30 00:03:18 +00:00
Zoltan Varga 36dcaf4d3f 2009-08-30 Zoltan Varga <[email protected]>
* HashSetTest.cs: Fix warnings.

svn path=/trunk/mcs/; revision=140934
2009-08-30 00:03:10 +00:00
Zoltan Varga 0a79353e58 2009-08-30 Zoltan Varga <[email protected]>
* System.Core_test.dll.sources: Add MemoryMappedFileTest.cs.

svn path=/trunk/mcs/; revision=140933
2009-08-29 23:59:34 +00:00
Zoltan Varga bcc0515221 2009-08-30 Zoltan Varga <[email protected]>
* MemoryMappedFileTest.cs: New file.

svn path=/trunk/mcs/; revision=140932
2009-08-29 23:59:26 +00:00
Zoltan Varga ba7339169a 2009-08-30 Zoltan Varga <[email protected]>
* Makefile: Pass -unsafe to gmcs.

svn path=/trunk/mcs/; revision=140931
2009-08-29 23:59:20 +00:00
Zoltan Varga 1994c7d03b 2009-08-30 Zoltan Varga <[email protected]>
* MemoryMappedViewStream.cs: Implement this for unix.

svn path=/trunk/mcs/; revision=140930
2009-08-29 23:59:13 +00:00
Zoltan Varga 4174126774 2009-08-29 Zoltan Varga <[email protected]>
* net_4_0_System.Core.dll.sources: Add System.IO.MemoryMappedFiles/*.cs
	and Microsoft.Win32.SafeHandles/SafeMemoryMappedFileHandle.cs.

svn path=/trunk/mcs/; revision=140929
2009-08-29 23:59:04 +00:00
Zoltan Varga 6854adc9c7 2009-08-29 Zoltan Varga <[email protected]>
* ObjectSecurity_T.cs: New file, empty stub for new net 4.0 class.

svn path=/trunk/mcs/; revision=140928
2009-08-29 23:58:51 +00:00
Rodrigo Kumpera 0caa2f60d6 2009-08-29 Rodrigo Kumpera <[email protected]>
* cli-global-props-tests.md: New tests for global
	properties to check tables for.

	* Makefile: Add new test source.

svn path=/trunk/mono/; revision=140927
2009-08-29 21:18:32 +00:00
Rodrigo Kumpera f4ab31567f 2009-08-29 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify for duplicated types.

svn path=/trunk/mono/; revision=140926
2009-08-29 21:18:23 +00:00
Rodrigo Kumpera 6d3f84a3c4 2009-08-28 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Verify for nested types
	without an entry on the nested class table.

svn path=/trunk/mono/; revision=140925
2009-08-29 21:18:13 +00:00
Gonzalo Paniagua Javier 94659b81ae 2009-08-29 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: HEAD response does not have a body even if the
	response is an error. Fixes buf #535102.


svn path=/trunk/mcs/; revision=140923
2009-08-29 21:09:20 +00:00
Jonathan Pryor 8ac5f1ce9a * man/mdoc.5: Document the new <format/> element.
svn path=/trunk/mono/; revision=140922
2009-08-29 20:32:54 +00:00
Ankit Jain 2f3d65b5c3 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Expression.cs (ExpressionOptions): New.

	Introduce a ExpressionOptions argument to all ConvertTo*
	methods. Implement the rule: in evaluation phase, expand
	all items completely, but dont expand item refs in properties.
	At other times, expand the item refs in the properties.
	See comments in Expression.cs, for a full explanation.
	* BuildItem.cs: Track api changes.
	* BuildItemGroup.cs: Likewise.
	* BuildProperty.cs: Track api changes. Handle self-references.
	* BuildTask.cs: Track api changes.
	* IReference.cs: Add ExpressionOptions param.
	* ItemReference.cs: Track api changes.
	* PropertyReference.cs: Likewise.
	* MetadataReference.cs: Likewise.
	* ExpressionCollection.cs: Track api changes. Add support for
	converting all primitive types and DateTime, instead of a fixed
	few.
	* Project.cs (GetMetadataBatched): Use the evaluated metadata.
	* TaskBatchingImpl.cs: Handle the case when batching is required,
	but no items are available.

	* TaskEngine.cs: Throw on unsupported types. Correctly handle
	properties in case of empty values.

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

	* BuildItemTest.cs (TestSetMetadata5a): New.
	* ProjectTest.cs: Add tests for different property types
	with required attribute. Also, check the values - null or
	empty array.
	* TestTasks.cs: Add new tasks for above.

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

	* TestTasks.cs: Add new tasks for different property types
	with required attribute. Also, emit whether the value was
	null or a zero length array.

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

	* Items.cs: Add tests for property/item evaluation.

svn path=/trunk/mcs/; revision=140911
2009-08-28 21:55:29 +00:00
Ankit Jain 2296bb2de0 In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* AssignCulture.cs, AssignTargetPath.cs,
	CallTarget.cs, CombinePath.cs, Copy.cs,
	CreateItem.cs, CreateManifestResourceName.cs,
	Delete.cs, Error.cs, FindUnderPath.cs,
	GenerateResource.cs, MSBuild.cs, MakeDir.cs,
	Message.cs, RemoveDir.cs, RemoveDuplicates.cs,
	ResolveAssemblyReference.cs, Touch.cs,
	WriteLinesToFiles.cs: Add null checks and array
	length checks.

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

	* CopyTest.cs (TestCopy_EmptySources): New.
	(TestCopy_EmptyDestFolder): New.

svn path=/trunk/mcs/; revision=140910
2009-08-28 21:53:50 +00:00
Zoltan Varga c8f4754ba1 2009-08-28 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp mini-llvm.c: Update to latest llvm api.

svn path=/trunk/mono/; revision=140907
2009-08-28 20:33:21 +00:00
Carlos Alberto Cortez 08c1d6e17b 2009-08-28 Carlos Alberto Cortez <[email protected]>
* TextBoxTest.cs: Improve the ModifiedTest test.


svn path=/trunk/mcs/; revision=140892
2009-08-28 15:45:24 +00:00
Carlos Alberto Cortez e7e2f4d030 2009-08-28 Carlos Alberto Cortez <[email protected]>
* TextBoxBase.cs: Modified should *not* be modified from the Text
	property, as our new tests show. It should be to false, however, in
	Append and Clear; and Paste, Cut, Undo, and direct user input should set it
	to true. Also, as opposed to what the .net docs say -but proven by our
	tests-, the changes should be generating a ModifiedChanged event
	(thus we set the property, instead of the field).
	Fixes #511267.


svn path=/trunk/mcs/; revision=140891
2009-08-28 15:43:26 +00:00
Atsushi Eno 3158eafdc5 2009-08-28 Atsushi Enomoto <[email protected]>
* UnixEncodingTest.cs : upgrade to modern nunit style.


svn path=/trunk/mcs/; revision=140874
2009-08-28 10:51:46 +00:00
Atsushi Eno 1eec5e9208 2009-08-28 Atsushi Enomoto <[email protected]>
* upgraded to modern nunit style.


svn path=/trunk/mcs/; revision=140873
2009-08-28 10:39:36 +00:00
Atsushi Eno 18037a7949 2009-08-28 Atsushi Enomoto <[email protected]>
* DataGridViewCellTest.cs : nunit test upgrade to modern style.


svn path=/trunk/mcs/; revision=140872
2009-08-28 10:36:33 +00:00
Atsushi Eno c36e34c3bd 2009-08-28 Atsushi Enomoto <[email protected]>
* TestBlend.cs, TestMatrix.cs : nunit test upgrade to modern style.


svn path=/trunk/mcs/; revision=140869
2009-08-28 10:28:08 +00:00
Atsushi Eno 036afe79ce 2009-08-28 Atsushi Enomoto <[email protected]>
* TestColor.cs, TestPoint.cs, TestGraphics.cs, TestSystemBrushes.cs,
	  TestPens.cs, TestSize.cs, TestSystemPens.cs: nunit test upgrade.


svn path=/trunk/mcs/; revision=140868
2009-08-28 10:22:46 +00:00
Zoltan Varga 7e5167727a 2009-08-28 Zoltan Varga <[email protected]>
* cominterop.c (cominterop_get_ccw): Applied patch from tom hindle
	<[email protected]>. Add locking around hash table accesses.

svn path=/trunk/mono/; revision=140843
2009-08-27 23:38:42 +00:00
Rodrigo Kumpera 995a3188cc 2009-08-25 Rodrigo Kumpera <[email protected]>
* verify.c (mono_verifier_verify_class): Verify all interface if
	really are interfaces. Fixes #534184.

svn path=/trunk/mono/; revision=140839
2009-08-27 19:59:18 +00:00
Rodrigo Kumpera 68eee83fb9 2009-08-27 Rodrigo Kumpera <[email protected]>
* pedump.c: Initialize all types during metadata validation so we report
	errors only detected as part of class initialization.

svn path=/trunk/mono/; revision=140838
2009-08-27 19:59:07 +00:00
Ivan Zlatev 4c43417b7b 2009-08-27 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fire the CellDoubleClicked event.
	[Fixes bug #533430]

svn path=/trunk/mcs/; revision=140834
2009-08-27 17:44:47 +00:00
Ivan Zlatev 66d1a67b13 2009-08-27 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Add support for column DataGridViewAutoSizeColumnMode
	DisplayedCells and DisplayedCellsExceptHeader.
	[Fixes bug #533435]

svn path=/trunk/mcs/; revision=140833
2009-08-27 17:27:51 +00:00
Jb Evain 4bae34a588 add monotouch sources file
svn path=/trunk/mcs/; revision=140804
2009-08-27 11:45:11 +00:00
Atsushi Eno 63e3ea6d29 2009-08-27 Atsushi Enomoto <[email protected]>
* PipeStream.cs : add set_Stream.
        * PipeUnix.cs : some impl. code (not really functional).

        * Makefile : add -r:Mono.Posix on required profiles.


svn path=/trunk/mcs/; revision=140793
2009-08-27 11:18:51 +00:00
Marek Habersack e6ad1de337 2009-08-27 Marek Habersack <[email protected]>
* BuildManager.cs: when HttpRequest.FilePath is '/' in
	GetAbsoluteVirtualPath, don't try to use
	VirtualPathUtility.GetDirectory on it. Fixes bug #532679

svn path=/trunk/mcs/; revision=140786
2009-08-27 11:02:51 +00:00
Carlos Alberto Cortez c3faa3d827 2009-08-27 Carlos Alberto Cortez <[email protected]>
* TextControl.cs: When removing a simple char, actually record the
	action in the undo manager. This way we both support undoing the
	removal of chars using backspace/delete, as well as keeping data
	integrity when other undo tasks are performed.
	Fixes #531983.


svn path=/trunk/mcs/; revision=140769
2009-08-27 08:49:46 +00:00
Sebastien Pouliot 06ff2040e4 2009-08-26 Sebastien Pouliot <[email protected]>
* TimeSpanTest.cs: Add test case where seconds are not specified.


svn path=/trunk/mcs/; revision=140758
2009-08-26 21:36:04 +00:00
Sebastien Pouliot 176caa7886 TimeSpan.cs: Fix parsing when seconds are not specified.
svn path=/trunk/mcs/; revision=140757
2009-08-26 21:35:22 +00:00
Rodrigo Kumpera c83369d654 2009-08-26 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Regression test for #534189

svn path=/trunk/mono/; revision=140751
2009-08-26 20:01:05 +00:00
Rodrigo Kumpera 85add08bbe 2009-08-26 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_method_table): PInvoke requires method to
	be static. Fixes #534189

svn path=/trunk/mono/; revision=140750
2009-08-26 20:00:55 +00:00
Marek Habersack 0802535ee7 2009-08-26 Marek Habersack <[email protected]>
* IApplicationHost.cs: added

svn path=/trunk/mcs/; revision=140745
2009-08-26 19:18:49 +00:00
Gonzalo Paniagua Javier 48f2b9233e this is internal
svn path=/trunk/mcs/; revision=140738
2009-08-26 18:05:19 +00:00
Marek Habersack 5e89ae81f5 2009-08-26 Marek Habersack <[email protected]>
* AspTokenizer.cs: when there's put back record and we're in
	verbatim mode, get_token must be careful with what it returns - it
	can't return Token.* values, instead it should look at Value and
	retrieve the next token from it. Fixes bug #400807

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

	* TemplateControlCompilerTest.cs: added test for bug #400807

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

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/OneLetterIdentifierInCodeRender.aspx

svn path=/trunk/mcs/; revision=140703
2009-08-26 11:02:17 +00:00
Atsushi Eno ef6042e66b 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : When received Connect() from neighbor,
	  add the peer to its internal list.
	  Finally ChatApplication got working.


svn path=/trunk/mcs/; revision=140700
2009-08-26 10:40:05 +00:00
Atsushi Eno d206a94290 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : since the channel factory is per instance,
	  do not reuse factory that is tied to different callback instance.
	  It resolved the issue that mono callback client didn't receive
	  messages from the client itself.


svn path=/trunk/mcs/; revision=140698
2009-08-26 09:51:10 +00:00
Atsushi Eno ca6c65b459 2009-08-26 Atsushi Enomoto <[email protected]>
* SilverlightClientConfigLoader.cs : add (incomplete) binary
	  encoder support at config layer. see:
	  http://lists.ximian.com/pipermail/mono-list/2009-August/043245.html


svn path=/trunk/mcs/; revision=140694
2009-08-26 08:24:36 +00:00
Atsushi Eno 48420dfd94 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerNode.cs : use ulong as same as Welcome message value.

	* PeerDuplexChannel.cs : in the Welcome response, return the NodeId
	  of the receiver, not the requestor. It resolved the issue that
	  .NET client didn't send further messages to mono server.


svn path=/trunk/mcs/; revision=140693
2009-08-26 07:16:25 +00:00
Gonzalo Paniagua Javier dc22fd5a2b 2009-08-26 Gonzalo Paniagua Javier <[email protected]>
* System.dll.sources:
	* monotouch_System.dll.sources:
	* System20.csproj: add Mono.Http/NtmlClient.cs

	* Mono.Http/ChangeLog: New file.
	* Mono.Http/NtlmClient.cs: copied from Mono.Http.
	* System.Net/NtlmClient.cs: use Mono.Http.NtmlClient from System
	instead of dynamically loading the one in Mono.Http.


svn path=/trunk/mcs/; revision=140690
2009-08-26 06:53:55 +00:00
Atsushi Eno 0dbe067726 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : remove some comment on [MC-PRCH] behavior.
	* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs,
	  TcpReplyChannel.cs, TcpRequestChannel.cs,
	  NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs:
	  rename EndRecord handling method to appropriate one.
	  Write EndRecord from recipient too.


svn path=/trunk/mcs/; revision=140687
2009-08-26 05:00:42 +00:00
Ankit Jain 6d0ef5405b * xbuild/Microsoft.Common.targets: Remove dummy
@(_TargetPathItem), since we support item refs with transforms
as a property value.

svn path=/trunk/mcs/; revision=140685
2009-08-26 01:56:25 +00:00
Ankit Jain 325b27d587 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Expression.cs: Correctly handle a item reference with transform
	when allowItems is false. If item ref is ignored, then the transform
	will get incorrectly matched as a metadata ref.
	* ItemReference.cs (.ctor): Add a @original_string param.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
	* CreateItemTest.cs (TestVariableExpansion): Update test to
	use a transform with a item reference in a property.

svn path=/trunk/mcs/; revision=140684
2009-08-26 01:56:11 +00:00
Ankit Jain b863f9726e * Utilities.cs (UnescapeFromXml): New. From md.
* BuildProperty.cs (.ctor): Unescape xml codes from the InnerXml
of the property element.

svn path=/trunk/mcs/; revision=140683
2009-08-26 01:55:56 +00:00
Ankit Jain 37cabce6a2 Fix bug #533903.
* xbuild/Microsoft.Common.targets: Support building projects
directly from command line. Builds referenced projects. Honors
$(BuildingSolutionFile) and $(BuildingInsideVisualStudio) now.
Also, clean referenced projects.

svn path=/trunk/mcs/; revision=140679
2009-08-25 23:53:01 +00:00
Ankit Jain b75ff50306 Ensure that properties are fully expanded.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

	* BuildProperty.cs (ConvertToString): New.
	(ConvertoToITaskItemArray): New. Parse the property value.
	* PropertyReference.cs (ConvertToString): Use BuildProperty's
	ConvertToString.
	(ConvertoToITaskItemArray): Likewise.

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

	* CreateItemTest.cs (TestVariableExpansion): New.
	* CreatePropertyTest.cs (TestExecution2): New.

svn path=/trunk/mcs/; revision=140678
2009-08-25 23:50:37 +00:00
Zoltan Varga a0ea98aafe 2009-08-26 Zoltan Varga <[email protected]>
* threads.c (mono_thread_suspend_all_other_threads): Handle 'threads_starting_ip'
	being NULL.

svn path=/trunk/mono/; revision=140665
2009-08-25 22:20:48 +00:00
Marek Habersack 137e1a8bd2 2009-08-25 Marek Habersack <[email protected]>
* AspGenerator.cs:
	Detect IE conditional comments when processing comment blocks in
	TextParsed. Fixes bug #367273

2009-08-25  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs:
	Added test for bug #367273

2009-08-25  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/ConditionalClientComments.aspx

svn path=/trunk/mcs/; revision=140662
2009-08-25 21:04:51 +00:00
Rodrigo Kumpera 1c81b381f6 2009-08-25 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_vtable_general): Verify the resulting vtable
	for holes or bad methods. Fixes #525314.

svn path=/trunk/mono/; revision=140653
2009-08-25 17:50:45 +00:00
Rodrigo Kumpera d2b7a149b5 2009-08-25 Rodrigo Kumpera <[email protected]>
* class.c (setup_interface_offsets): Don't allocate slot
	for the same interface multiple times. This creates bubbles
	that waster space and make vtable verification harder.

	The same interface get a slot multiple times since we need
	to get the closure of all implemented interfaces, which means
	the same interface is reported multiple times.

svn path=/trunk/mono/; revision=140652
2009-08-25 17:50:34 +00:00
Jb Evain 93ef7a84d2 remove WCF from monotouch
svn path=/trunk/mcs/; revision=140644
2009-08-25 16:19:09 +00:00
Rodrigo Kumpera 03f17fbbb0 2009-08-25 Rodrigo Kumpera <[email protected]>
* verify.c (mono_verifier_verify_class): Don't check the fields
	of generic instances since the context on which they got expanded
	might lead to false positives.

	Such thing happens when a generic type is inflated in the context
	of a generic method and the inflated type of a field turns into a
	generic method argument, which causes the checking code to think
	it's an invalid class when it's not.

svn path=/trunk/mono/; revision=140634
2009-08-25 15:19:50 +00:00
Jb Evain fb6ca6c3d5 bring xpath to monotouch xlinq
svn path=/trunk/mcs/; revision=140626
2009-08-25 14:33:21 +00:00
Gonzalo Paniagua Javier b34504aa4d new test case
svn path=/trunk/mcs/; revision=140625
2009-08-25 14:31:10 +00:00
Marek Safar 5ec4754b9d New test, msg update.
svn path=/trunk/mcs/; revision=140623
2009-08-25 14:22:37 +00:00
Marek Safar 766d1b5174 New test.
svn path=/trunk/mcs/; revision=140622
2009-08-25 14:21:45 +00:00
Marek Safar 1f23d8460a 2009-08-25 Marek Safar <[email protected]>
A fix for bug #533912
	* generic.cs: Use correct context for constraints resolving.


svn path=/trunk/mcs/; revision=140621
2009-08-25 14:20:34 +00:00
Marek Safar 0a1cec4122 Fixes a warning.
svn path=/trunk/mcs/; revision=140620
2009-08-25 14:10:02 +00:00
Marek Safar fb1581775e 2009-08-25 Marek Safar <[email protected]>
A fix for bug #532630
	* driver.cs: Trim conditional symbols.


svn path=/trunk/mcs/; revision=140616
2009-08-25 11:34:26 +00:00
Marek Habersack dfabffa5b2 2009-08-25 Marek Habersack <[email protected]>
* AspGenerator.cs: correctly parse server-side tags nested in
	client-side ones. Fixes bug #323719

2009-08-25  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/TagsNestedInClientTag.aspx

2009-08-25  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #323719

svn path=/trunk/mcs/; revision=140611
2009-08-25 11:22:37 +00:00
Jb Evain 561bf6b6b2 bring a net_2_0 feature set to monotouch
svn path=/trunk/mcs/; revision=140606
2009-08-25 10:18:20 +00:00
Jb Evain bbe7b2313f add StringCollection to the monotouch profile
svn path=/trunk/mcs/; revision=140605
2009-08-25 10:17:10 +00:00
Veerapuram Varadhan 298595df27 2009-08-25 Veerapuram Varadhan <[email protected]>
** Fixes #521951
	* DataViewManager.cs (CollectionToListChangeEventArgs) : Use a corresponding
	DataTable/DataRelation obj instead of only DataRelation.

svn path=/trunk/mcs/; revision=140597
2009-08-25 09:23:28 +00:00
Marek Safar c7cd90c3b6 Removed no longer used DeclContainer
svn path=/trunk/mcs/; revision=140596
2009-08-25 09:17:26 +00:00
Marek Habersack d83880bd08 2009-08-25 Marek Habersack <[email protected]>
* WebColorConverter.cs: inform the user that the might need to
	check if libgdiplus is installed when parsing a color name
	fails. Fixes bug #533749

svn path=/trunk/mcs/; revision=140593
2009-08-25 08:51:58 +00:00
Marek Safar 2332d6ff00 Requires gmcs
svn path=/trunk/mcs/; revision=140592
2009-08-25 08:33:13 +00:00
Marek Safar c417ce9c95 2009-08-25 Marek Safar <[email protected]>
* context.cs: New file.
	
	* *.exe.sources, *.csproj: Updated.


svn path=/trunk/mcs/; revision=140591
2009-08-25 08:30:07 +00:00
Marek Safar ff6b4a17a1 2009-08-25 Marek Safar <[email protected]>
* generic.cs, parameter.cs, decl.cs, statement.cs, namespace.cs,
	class.cs, generic-mcs.cs, codegen.cs: Add GetSignatureForError to
	IMembercontext, some small cleanups.


svn path=/trunk/mcs/; revision=140588
2009-08-25 08:13:34 +00:00
Rodrigo Kumpera 5c45bd728e 2009-08-24 Rodrigo Kumpera <[email protected]>
* verify.c (mono_verifier_verify_class): Check fields for
	invalid generic arguments.

svn path=/trunk/mono/; revision=140571
2009-08-25 01:26:46 +00:00
Zoltan Varga 60a7a51327 2009-08-25 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_exception_debug_info): Emit ei->flags too.

	* aot-runtime.c (decode_exception_debug_info): Decode ei->flags from the
	saved info.

svn path=/trunk/mono/; revision=140570
2009-08-25 00:54:41 +00:00
Rodrigo Kumpera a83e0d641c 2009-08-24 Rodrigo Kumpera <[email protected]>
* load-exceptions.cs:
	* load-missing.il: Test for virtual and static methods.

svn path=/trunk/mono/; revision=140567
2009-08-24 23:41:36 +00:00
Rodrigo Kumpera 07b25672a3 2009-08-24 Rodrigo Kumpera <[email protected]>
* class.c (verify_class_overrides): Verify if for static
	and non virtual methods.

svn path=/trunk/mono/; revision=140566
2009-08-24 23:41:27 +00:00
Rodrigo Kumpera 00f8e072c8 2009-08-24 Rodrigo Kumpera <[email protected]>
* icaa.c (ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor):
	Check for errors after retrieving the vtable.

svn path=/trunk/mono/; revision=140561
2009-08-24 22:31:20 +00:00
Rodrigo Kumpera 84b760c00a 2009-08-24 Rodrigo Kumpera <[email protected]>
* load-exceptions.cs:
	* load-missing.il: Test for invalid method overrides.

svn path=/trunk/mono/; revision=140560
2009-08-24 22:31:10 +00:00
Rodrigo Kumpera 24ec8a9287 2009-08-24 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_vtable_general): Verify
	if method overrides are valid before processing them.

svn path=/trunk/mono/; revision=140559
2009-08-24 22:30:55 +00:00
Zoltan Varga c2d511e567 2009-08-25 Zoltan Varga <[email protected]>
* mini.h (MONO_AOT_FILE_VERSION): Bump this.

	* aot-runtime.c aot-compiler.c: Emit exception causes fully so we don't
	depend on the info MonoMethodHeader which could be missing in IL stripped
	assemblies.

svn path=/trunk/mono/; revision=140558
2009-08-24 22:30:26 +00:00
Zoltan Varga 4e12e36f14 2009-08-25 Zoltan Varga <[email protected]>
* mini-arm.c (add_general): Fix the passing of 64 bit values on darwin, where
	they are only 4 byte aligned.

svn path=/trunk/mono/; revision=140557
2009-08-24 22:25:36 +00:00
Marek Safar d611431d52 2009-08-24 Marek Safar <[email protected]>
* *.cs: Split ResolveContext and EmitContext.


svn path=/trunk/mcs/; revision=140556
2009-08-24 22:18:38 +00:00
Marek Habersack b6969f355f 2009-08-24 Marek Habersack <[email protected]>
* PageParser.cs: 2.0 profile takes advantage of the inputFile
	parameter to GetCompiledPageInstance. A check is made whether the
	file pointed to by this parameter is inside the application's
	virtual path and if not, the compilation request is assumed to
	refer to a fake location. Part of fix for bug #463813

2009-08-24  Marek Habersack  <[email protected]>

	* PageBuildProvider.cs: MapPath now takes a VirtualPath
	instance. Part of fix for bug #463813

	* BuildManager.cs: public APIs which take virtual path strings as
	their parameters got internal counterparts accepting a VirtualPath
	instance in place of string. Part of fix for bug #463813

	* GenericBuildProvider.cs:
	MapPath now takes a VirtualPath instance. Part of fix for bug
	#463813

2009-08-24  Marek Habersack  <[email protected]>

	* SoapDocumentationHandler.cs: get rid of the ugly fake virtual
	path hack when creating the helper page. Part of fix for bug
	#463813

2009-08-24  Marek Habersack  <[email protected]>

	* VirtualPath.cs: Added new constructor which takes virtual and
	physical paths as well as a boolean marking the instance as
	referring to a fake location. Part of fix for bug #463813

svn path=/trunk/mcs/; revision=140548
2009-08-24 20:34:57 +00:00
Carlos Alberto Cortez 38cedbcbfa * Control.cs: Remove the ancient code in ResetText, which was setting
the internal field to String.Empty, instead of doing it for our Text
	property, as .net does (which also causes a TextChanged event and all
	the other related routines).
	Fixes #531587.

2009-08-24  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=140535
2009-08-24 18:45:35 +00:00
Gonzalo Paniagua Javier 09a6edee71 fix take 2
svn path=/trunk/mono/; revision=140533
2009-08-24 18:34:51 +00:00
Ankit Jain a373ab3b82 * LibraryPcFileCache.cs: New. From monodevelop.
* PcFileCache.cs: Update from monodevelop, see r140528.
* AssemblyResolver.cs: Track api changes.

svn path=/trunk/mcs/; revision=140532
2009-08-24 18:13:42 +00:00
Carlos Alberto Cortez 8ad48c8b74 * TreeNodeCollection.cs: Correctly implement Contains by using a
linear search - there's no possible way to use a binary search, since
	the node instances are not implementing IComparable, nor have a
	specific order.
	Fixes #529927.

2009-08-24  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=140531
2009-08-24 18:01:10 +00:00
Ankit Jain 15015329d4 In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* CreateManifestResourceName.cs (GetResourceIdFromFileName): Spaces
	in folder names should be converted to '_'.

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

	* CreateCSharpManifestResourceNameTest.cs:
	* CreateVisualBasicManifestResourceNameTest.cs: Add tests for
	folder name with spaces in it.

svn path=/trunk/mcs/; revision=140530
2009-08-24 17:42:15 +00:00
Rodrigo Kumpera 8978bcf2f1 2009-08-24 Rodrigo Kumpera <[email protected]>
* marshal.c (mono_array_to_lparray): Fix minimal build with
	cominterop disabled.

	* marshal.c (mono_free_lparray): Same.

svn path=/trunk/mono/; revision=140524
2009-08-24 16:58:23 +00:00
Gonzalo Paniagua Javier acb7c59438 fix packaging
svn path=/trunk/mono/; revision=140515
2009-08-24 15:26:02 +00:00
Marek Safar e974066465 2009-08-24 Marek Safar <[email protected]>
* *.cs: Only ResolveContext implements IMemberContext.


svn path=/trunk/mcs/; revision=140512
2009-08-24 15:13:20 +00:00
Carlos Alberto Cortez 3725413948 * DataGrid.cs: If we are *not* changing a row
already added to the source, and thus we are adding a new 
	row instead, try to move to the previous row when Esc is
	pressed -if possible-.
	Fixes some bits of #322974.

2009-08-24  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=140510
2009-08-24 15:02:57 +00:00
Marek Habersack 7aa27e68e9 2009-08-24 Marek Habersack <[email protected]>
* TemplateBuildProvider.cs: ExtractDependencies checks if the
	input has already been parsed/compiled and, if yes, adds
	dependencies from the TemplateParser to the list of the ones
	extracted locally. Fixes bug #377915

	* GenericBuildProvider.cs: added Parsed property.

svn path=/trunk/mcs/; revision=140502
2009-08-24 12:34:56 +00:00
Atsushi Eno 6a08482396 2009-08-24 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : add PeerFlooder header (see comment).
	  Process PeerTo header to upgrade Message To header. Now mono
	  service accepts mono client (somehow not true for .NET client).


svn path=/trunk/mcs/; revision=140489
2009-08-24 10:13:34 +00:00
Atsushi Eno d2babd367d 2009-08-24 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, TcpRequestChannel.cs,
	  NamedPipeRequestChannel.cs : no need to add ReplyTo headers.


svn path=/trunk/mcs/; revision=140488
2009-08-24 09:54:17 +00:00
Atsushi Eno 3f9792e4f6 2009-08-24 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : fix PeerTo/PeerVia header namespace.


svn path=/trunk/mcs/; revision=140487
2009-08-24 09:53:28 +00:00
Atsushi Eno 54481ead34 2009-08-24 Atsushi Enomoto <[email protected]>
* Constants.cs : p2p constants should rather go here.

	* IPeerConnectorContract.cs : use common Constants class.


svn path=/trunk/mcs/; revision=140483
2009-08-24 09:51:33 +00:00
Atsushi Eno c9a4b1c1ca 2009-08-24 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, DuplexClientRuntimeChannel.cs : split out
	  from former to latter and implemented most part of listener part.
	  Make sure to open internal channel at base ClientRuntimeChannel.
	* ClientProxyGenerator.cs : minimize !NET_2_1 to here.

	* System.ServiceModel.dll.sources: added 
	  DuplexClientRuntimeChannel.cs and CallbackInstanceContextProvider.cs.


svn path=/trunk/mcs/; revision=140478
2009-08-24 08:57:57 +00:00
Atsushi Eno 329379f739 2009-08-24 Atsushi Enomoto <[email protected]>
* CallbackInstanceContextProvider.cs : new instance context provider
	  used by duplex client dispatcher.


svn path=/trunk/mcs/; revision=140477
2009-08-24 08:52:24 +00:00
Atsushi Eno 2297a7547e 2009-08-24 Atsushi Enomoto <[email protected]>
* SecurityHandler.cs : skip callback duplex blocker.


svn path=/trunk/mcs/; revision=140476
2009-08-24 08:50:51 +00:00
Atsushi Eno c3995f0e2f 2009-08-24 Atsushi Enomoto <[email protected]>
* EndpointDispatcher.cs, ChannelDispatcher.cs : differentiate
	  service dispatch and callback client dispatch at initialization.


svn path=/trunk/mcs/; revision=140475
2009-08-24 08:50:05 +00:00
Atsushi Eno dfdea80b4f 2009-08-24 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : check channel state before processing
	  Send and Receive.


svn path=/trunk/mcs/; revision=140474
2009-08-24 08:44:15 +00:00
Carlos Alberto Cortez c27e82555d 2009-08-24 Carlos Alberto Cortez <[email protected]>
* DataGridTextBoxColumn.cs:
	* DataGrid.cs: Moving the cell to the add row (the last one) should
	not immediately add a new row - this should happen until the very
	first change happens in that textbox.
	Fixes part of #322974.


svn path=/trunk/mcs/; revision=140461
2009-08-24 04:38:25 +00:00
Gonzalo Paniagua Javier 5dd3f99e04 2009-08-23 Gonzalo Paniagua Javier <[email protected]>
* deflate.c:
	* gzio.c:
	* deflate.h:
	* zutil.h:
	* crc32.c:
	* trees.c:
	* zconf.h:
	* inffast.c:
	* compress.c:
	* zlib.h:
	* inftrees.c:
	* inflate.c:
	* inflate.h:
	* adler32.c:
	* infback.c: updated to 1.2.3.3


svn path=/trunk/mono/; revision=140453
2009-08-23 06:14:52 +00:00
Marek Safar f2778264ea 2009-08-21 Marek Safar <[email protected]>
* *.cs: Detached ResolveContext from EmitContext.


svn path=/trunk/mcs/; revision=140445
2009-08-21 22:46:42 +00:00
Marek Safar 93c636468d 2009-08-21 Marek Safar <[email protected]>
* *.cs: Detached ResolveContext from EmitContext.


svn path=/trunk/mcs/; revision=140443
2009-08-21 21:42:23 +00:00
Marek Habersack a22edf372b 2009-08-21 Marek Habersack <[email protected]>
* Menu.cs: separator image is rendered next to the item in
	horizontal layout and is preceeded by 3px spacer (unless
	itemSpacing is set) to make output match .NET. Fixes bug #474716

svn path=/trunk/mcs/; revision=140438
2009-08-21 20:55:44 +00:00
Zoltan Varga 4975ebf95a 2009-08-21 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_allocate_vars): Use FP as the frame pointer as
	was done previously, since using SP causes too many problems.

svn path=/trunk/mono/; revision=140434
2009-08-21 19:59:18 +00:00
Marek Habersack 6935419d0e 2009-08-21 Marek Habersack <[email protected]>
* GenericBuildProvider.cs: added internal property LanguageName
	override which calls GetParserLanguage to get language name
	instead of using the application default one.

	* BuildManagerDirectoryBuilder.cs: removed CodeDOM provider cache,
	provider types are retrieved from build providers while assigning
	them to groups. Fixes bug #533166

svn path=/trunk/mcs/; revision=140433
2009-08-21 19:52:11 +00:00
Zoltan Varga af2e2e13cc 2009-08-21 Zoltan Varga <[email protected]>
* exceptions-arm.c: Fix the handling of sp/fp so unwinding through
	frames without a frame pointer works.

svn path=/trunk/mono/; revision=140428
2009-08-21 18:24:36 +00:00
Marek Safar a3f3039024 2009-08-21 Marek Safar <[email protected]>
* *.cs: Renamed IResolveContext to IMemberContext.


svn path=/trunk/mcs/; revision=140427
2009-08-21 17:45:42 +00:00
Marek Safar c63e9b4b3f 2009-08-21 Marek Safar <[email protected]>
* *.cs: Detached ResolveContext from EmitContext.


svn path=/trunk/mcs/; revision=140426
2009-08-21 17:33:38 +00:00
Mark Probst 824181c3cd 2009-08-21 Mark Probst <[email protected]>
* mono-hash.c: When creating a hash table, if the keys are managed
	objects, assert that we have a hash function.  Remove the
	rehashing after GC marking.

2009-08-21  Mark Probst  <[email protected]>

	* threadpool.c (mono_thread_pool_init): Use mono_object_hash() as
	the hash function for the ares_htable.

svn path=/trunk/mono/; revision=140423
2009-08-21 16:52:46 +00:00
Marek Safar 45a828730c 2009-08-21 Marek Safar <[email protected]>
* codegen.cs: Moved flow-analysis to BlockContext.


svn path=/trunk/mcs/; revision=140421
2009-08-21 16:19:41 +00:00
Marek Safar 1ae69e656e Updated.
svn path=/trunk/mcs/; revision=140416
2009-08-21 14:08:12 +00:00
Marek Safar 6400595327 2009-08-21 Marek Safar <[email protected]>
* *.cs: Detached BlockContext from EmitContext.


svn path=/trunk/mcs/; revision=140415
2009-08-21 14:07:18 +00:00
Atsushi Eno d577a89aa2 2009-08-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : also made reference to host optional.


svn path=/trunk/mcs/; revision=140406
2009-08-21 08:26:28 +00:00
Atsushi Eno 5678390b82 2009-08-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : isolated loop manager class from parent,
	  as well as moved some code from parent.


svn path=/trunk/mcs/; revision=140405
2009-08-21 08:25:23 +00:00
Atsushi Eno 2894cf473f 2009-08-21 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : some refactoring to reduce weird limitation
	  to apply behaviors to endpoints. (no need to limit to [0]).


svn path=/trunk/mcs/; revision=140404
2009-08-21 08:16:40 +00:00
Atsushi Eno 194aaa5431 2009-08-21 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : some refactoring to isolate dispatcher
	  builder code from here.

	* ServiceMetadataExtension.cs:
	  some dependent changes to ServiceHostBase.


svn path=/trunk/mcs/; revision=140403
2009-08-21 07:27:43 +00:00
Atsushi Eno c79ccba22b 2009-08-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcherCollection.cs : remove extra members.


svn path=/trunk/mcs/; revision=140402
2009-08-21 07:09:54 +00:00
Atsushi Eno 6ac70127d7 2009-08-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs, EndpointDispatcher.cs :
	  moved some initialization code from ServiceHostBase, to start
	  reducing dependencies on ServiceHostBase.

	* ServiceHostBase.cs : moved some code to channel/endpoint dispatcher
	  to reduce their dependencies on this type.


svn path=/trunk/mcs/; revision=140401
2009-08-21 06:35:21 +00:00
Massimiliano Mantione 3c5c734e69 Changed max depth of call chains to 128.
svn path=/trunk/mono/; revision=140400
2009-08-21 06:06:22 +00:00
Massimiliano Mantione e2c96f15f9 Report all wrapper types.
svn path=/trunk/mono/; revision=140399
2009-08-21 06:06:19 +00:00
Massimiliano Mantione 45c33f97ec While debugging file writes, also print the exact number of bytes written to disk.
svn path=/trunk/mono/; revision=140398
2009-08-21 06:06:14 +00:00
Atsushi Eno 6d0574134d 2009-08-21 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : there still was use of bogus
	  XmlParserContext.NameTable.

	* XmlTextReaderTests.cs : added test for null nametable in parser
	  context.


svn path=/trunk/mcs/; revision=140397
2009-08-21 03:45:06 +00:00
Marek Habersack f61b24b177 2009-08-21 Marek Habersack <[email protected]>
* TreeNodeCollection.cs: {Save,Load}ViewState now store/load the
	type of the node, if node is a of a custom type. Fixes bug #475997

svn path=/trunk/mcs/; revision=140394
2009-08-21 00:41:34 +00:00
Rodrigo Kumpera c7bb5af6fc 2009-08-20 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_assembly_table): Accept 0x10 as a valid
	bit for assembly flags. MS is ok with it but there is no spec anywhere
	on its mean

svn path=/trunk/mono/; revision=140392
2009-08-21 00:01:31 +00:00
Rodrigo Kumpera 771e24b7ad 2009-08-19 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_create_from_typedef): Emit profiler events
	in all cases.

svn path=/trunk/mono/; revision=140391
2009-08-21 00:01:21 +00:00
Zoltan Varga 6ce9ae68f9 2009-08-21 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_get_global_int_regs): Avoid using V5 as a
	global register in methods with calls, since the calls can go through
	a static rgctx trampoline which doesn't save it.

svn path=/trunk/mono/; revision=140389
2009-08-20 23:22:40 +00:00
Ankit Jain 8ad2b68f21 * Makefile.am (man_MANS): Add xbuild.1
* xbuild.1: New.

svn path=/trunk/mono/; revision=140383
2009-08-20 22:28:39 +00:00
Marek Habersack 6163d748f1 2009-08-20 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: GetSection does not use
	FindWebConfig to get the virtual path to open configuration for -
	doing so would make the configuration system ignore <location>
	sections. Fixes bug #482181

svn path=/trunk/mcs/; revision=140375
2009-08-20 21:07:20 +00:00
Marek Habersack 947a38fd94 Fix for tests I broke yesterday
svn path=/trunk/mcs/; revision=140371
2009-08-20 21:03:07 +00:00
Geoff Norton e87b01301c 2009-08-20 Geoff Norton <[email protected]>
* Socket_2_1.cs: Disable ipv6 on monotouch.

svn path=/trunk/mcs/; revision=140368
2009-08-20 20:40:59 +00:00
Ankit Jain cc085fd742 Fix bug #531926
* xbuild/Microsoft.Common.targets: Add $(ConfigurationName)
and $(PlatformName) default values.
Move CoreCompile to a Compile target with corresponding
Before/After hooks and *DependsOn.
Add Pre/PostBuildEvents handling.

svn path=/trunk/mcs/; revision=140367
2009-08-20 20:04:01 +00:00
Ankit Jain 0a3c9eff30 * Engine.cs (EndProjectBuild): Use the @succeeded argument
instead of hardcoding 'true'.
* Target.cs (Build): Add an overload to return executeOnErrors
value for the target executed. If building dependencies fails,
and executeOnErrors is true, then execute OnError tasks.
Add the new param to ..
(BuildDependencies): this, ..
(DoBuild): and this.
(GetDependencies): Improve error message and variable name.
(ExecuteOnErrors): Honor OnError tag's Condition also.
* TaskBatchingImpl.cs (Run): Correctly set executeOnErrors param.

svn path=/trunk/mcs/; revision=140366
2009-08-20 20:03:22 +00:00
Marek Habersack 805167d03f Unbreak the 4.0 build
svn path=/trunk/mcs/; revision=140364
2009-08-20 19:17:34 +00:00
Sebastien Pouliot 52a76350d1 2009-08-20 Sebastien Pouliot <[email protected]>
* SslStream.cs : Always use/provide a X509Chain even if this 
	duplicates some of the old/existing logic of Mono.Security.
	This makes it possible to provide a callback using 
	ServicePointManager.ServerCertificateValidationCallback


svn path=/trunk/mcs/; revision=140359
2009-08-20 18:26:28 +00:00
Sebastien Pouliot f7613c5708 2009-08-20 Sebastien Pouliot <[email protected]>
* TlsServerCertificate.cs: If no usage information is available then
	assume it's ok for SSL since we'll (later) check that the CN contains
	a host name (that match the server) and such a certificate wouldn't
	be much useful for anything but SSL/TLS. Fix the new stmp.gmail.com
	certificate usage failure.


svn path=/trunk/mcs/; revision=140358
2009-08-20 18:25:50 +00:00
Sebastien Pouliot c259a8cc51 2009-08-20 Sebastien Pouliot <[email protected]>
* SmtpClient.cs: Honor ServicePointManager.
	ServerCertificateValidationCallback when provided


svn path=/trunk/mcs/; revision=140347
2009-08-20 16:01:57 +00:00
Atsushi Eno 0acf7fe9ab 2009-08-20 Atsushi Enomoto <[email protected]>
* NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs,
	  NamedPipeChannelFactory.cs, NamedPipeChannelListener.cs :
	  ongoing works, not working at all yet.

	* System.ServiceModel.dll.sources: add more named pipe files.


svn path=/trunk/mcs/; revision=140341
2009-08-20 14:09:09 +00:00
Atsushi Eno 35c7b8b925 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpReplyChannel.cs :
	  cosmetic cleanup and corrections.


svn path=/trunk/mcs/; revision=140340
2009-08-20 14:07:11 +00:00
Atsushi Eno dde8b27ca0 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpChannelFactory.cs : use expected Via uri.
	  Remove extra NIE stuff that are implemented in base.


svn path=/trunk/mcs/; revision=140339
2009-08-20 14:05:29 +00:00
Ankit Jain b7b543d24d Fix bug #532264.
In class/Microsoft.Build.Engine:

	* Microsoft.Build.Engine.dll.sources: Add tools/xbuild/SolutionParser.cs

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
	Fix bug #532264
	* Project.cs (Load): Add support for loading .sln files.

In tools/xbuild:
	Fix bug #532264.
	* Main.cs: Dont generate .sln.proj, project.Load can handle
	.sln directly now. Show stack trace for exceptions if logger
	verbosity is > normal
	* SolutionParser.cs (ParseSolution): Add a param for a raise
	warning delegate. Use Dictionary.TryGetValue, key might not
	be present.

svn path=/trunk/mcs/; revision=140334
2009-08-20 13:03:22 +00:00
Atsushi Eno ea9ecf0143 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : remove extra code.


svn path=/trunk/mcs/; revision=140332
2009-08-20 12:41:20 +00:00
Atsushi Eno f3b27c84c8 2009-08-20 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing implementation towards get callback
	  replies on peer connector clients (not working as duplex client
	  callback is not working yet).


svn path=/trunk/mcs/; revision=140329
2009-08-20 11:32:57 +00:00
Atsushi Eno ef7b0747f1 2009-08-20 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : implement async OnBegin/EndOpen like close.
	  Add FIXME and OnOpen() override on duplex channel.


svn path=/trunk/mcs/; revision=140328
2009-08-20 11:30:51 +00:00
Atsushi Eno c78338f2fb 2009-08-20 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : support UnknownMessageReceived (used by
	  ChannelDispatcher).

	* ChannelDispatcher.cs : handle unknown message in host event.


svn path=/trunk/mcs/; revision=140324
2009-08-20 10:48:11 +00:00
Atsushi Eno 653f2127b4 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : in callback client channels,
	  OperationContext.IncomingMessageHeaders is null.


svn path=/trunk/mcs/; revision=140320
2009-08-20 09:58:31 +00:00
Atsushi Eno 0cc0ab6f33 2009-08-20 Atsushi Enomoto <[email protected]>
* OperationContext.cs, OperationContextScope.cs :
	  implement IsUserContext.

	* OperationContextTest.cs : new.

	* System.ServiceModel_test.dll.sources: add OperationContextTest.cs.


svn path=/trunk/mcs/; revision=140319
2009-08-20 09:48:40 +00:00
Atsushi Eno 70fb8c6a61 2009-08-20 Atsushi Enomoto <[email protected]>
* DuplexChannelFactory.cs, ChannelFactory_1.cs: with static factory
	  methods, they should close the factory when the channel is closed,
	  but nonstatic CreateChannel() could be called more than once, so
	  do not always close it.
	* ClientRuntimeChannel.cs : take OperationContext.Current into
	  consideration (it could be created by users).


svn path=/trunk/mcs/; revision=140316
2009-08-20 08:22:37 +00:00
Atsushi Eno a190897311 2009-08-20 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : duplicate check was sloppy.

	* MessageHeadersTest.cs : added a couple od duplicate tests. Fixed
	  non-working test output.


svn path=/trunk/mcs/; revision=140315
2009-08-20 08:05:00 +00:00
Gonzalo Paniagua Javier a6e32c9619 2009-08-20 Gonzalo Paniagua Javier <[email protected]>
* statement.cs: avoid nullref when the return value of GetEnumerator()
	does not contain any MoveNext() method.


svn path=/trunk/mcs/; revision=140314
2009-08-20 05:50:42 +00:00
Ankit Jain df378a28f3 * BuildTask.cs (Execute): Use task_logger only after the task
has been initialized. Catch and report task loading errors.
* Target.cs (DoBuild): Dont rethrow the exception, and emit
the stacktrace as a low importance message.

svn path=/trunk/mcs/; revision=140302
2009-08-19 22:44:52 +00:00
Marek Habersack fa1c79515f 2009-08-18 Marek Habersack <[email protected]>
* ControlBuilder.cs: Location property makes a copy of assigned
	ILocation now.

2009-08-20  Marek Habersack  <[email protected]>

	* ControlAdapter.cs: check if Control isn't null before using it.
	CreateChildControls () must forward call to the control. Fixes bug
	#517172

2009-08-20  Marek Habersack  <[email protected]>

	* ControlAdapterTest.cs: added test for bug #517172

svn path=/trunk/mcs/; revision=140299
2009-08-19 22:33:52 +00:00
Rodrigo Kumpera 7a45bcbe53 2009-08-19 Rodrigo Kumpera <[email protected]>
* constraints-load.il: New test for errors related to loading
	type and method constraints.

svn path=/trunk/mono/; revision=140298
2009-08-19 22:29:57 +00:00
Rodrigo Kumpera 7e774b021d 2009-08-19 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Don't leak loader errors.
	Release memory on failure.

svn path=/trunk/mono/; revision=140297
2009-08-19 22:29:47 +00:00
Rodrigo Kumpera 1bb7e2b63d 2009-08-19 Rodrigo Kumpera <[email protected]>
* class-internals.h: Add mono_metadata_load_generic_param_constraints_full
	to the internal API.

	* metadata.c (get_constraints): Use a single-linked table as we don't
	traverse it backward. Fail and return FALSE if only of the contraint types
	is not found.

	* metadata.c (mono_metadata_load_generic_param_constraints_full): Identical
	to mono_metadata_load_generic_param_constraints except for having a return value.
	This has to be done since the later is part of the public API.

	* class.c (mono_class_create_from_typedef): Properly check the loading of constrains
	and fail the type.

	* loader.c (mono_get_method_from_token): Properly check the loading of constraints
	and fail the method.

svn path=/trunk/mono/; revision=140296
2009-08-19 22:29:36 +00:00
Zoltan Varga 6e7321fefe 2009-08-19 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_context_get_int_reg): Handle SP as well.

svn path=/trunk/mono/; revision=140295
2009-08-19 21:54:23 +00:00
Zoltan Varga 7d32f3601e 2009-08-19 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_context_get_int_reg): Handle SP as well.

svn path=/trunk/mono/; revision=140294
2009-08-19 21:54:14 +00:00
Ankit Jain 6ada756070 * xbuild/Microsoft.Common.targets (ResolveReferences*): Add
a *DependsOn property and Before/After hooks. Change output
of ResolvedFiles to @(ReferencePath).
* xbuild/Microsoft.CSharp.targets (Csc): Use @(ReferencePath)
for references.

svn path=/trunk/mcs/; revision=140291
2009-08-19 21:21:54 +00:00
Raja R Harinath 66fee73c0a Final piece of explicit numeric group support
* parser.cs (gap): New.
(GetMapping): Return it.
(ResolveReferences): Collect explicit numeric groups which may not
match their indices.
(HandleExplicitNumericGroups): New.  Process the above list to
assign appropriate indices, and compute the correct value of 'gap'.

svn path=/trunk/mcs/; revision=140290
2009-08-19 20:43:01 +00:00
Raja R Harinath 6dac1251cd * syntax.cs (CapturingGroup.Index): Rename from Number to clarify semantics.
(CapturingGroup.CompareTo): New.
* parser.cs, syntax.cs: Update to changes.

svn path=/trunk/mcs/; revision=140289
2009-08-19 20:42:36 +00:00
Raja R Harinath f6656df299 Implement some more group number/index distinction
* Regex.cs (gap, Gap): New.
(Init, InitNewRegex): Update it.
(GroupNumberFromName): If the 'name' is beyond the gap, it is an
explicit numeric group -- use the name as the group number.
GetGroupIndex): Use a binary search to map a group number to its
index when we know that they don't match.
(GroupNumbers): Use group number, not group index, for explicit
numeric groups.
* Match.cs (.ctor): Use the newly introduce 'Regex.Gap'.

svn path=/trunk/mcs/; revision=140288
2009-08-19 20:42:13 +00:00
Raja R Harinath 61c45d91d6 Minor code re-organization
* Regex.cs (group_numbers): New.
(GetGroupNumbers): Move array initialization ...
(GroupNumbers): ... to new on-demand initializer.

svn path=/trunk/mcs/; revision=140287
2009-08-19 20:41:51 +00:00
Raja R Harinath 27c8bd541f Use IDictionaryEnumerator in a loop where both key and value are used
* Regex.cs (group_names): Rename from _groupNumbersToNameMap.
(GetGroupNamesArray): Use an IDictionaryEnumerator to walk the
mapping, since both the key and value are used in the loop.

svn path=/trunk/mcs/; revision=140286
2009-08-19 20:41:26 +00:00
Raja R Harinath a21d173159 Introduce 'gap' concept into all the variants of regex
* arch.cs (IMachineFactory::Gap): New property.
* compiler.cs (InterpreterFactory): Update to changes.
* RxCompiler.cs (RxInterpreterFactory): Likewise.
* JvmReMachineFactory.cs: Likewise.
* parser.cs (GetMapping): Return the 'gap' index.  Move creation
of mapping dictionary ...
* Regex.cs (CreateMachineFactory): ... here.  Update to changes.

svn path=/trunk/mcs/; revision=140285
2009-08-19 20:41:03 +00:00
Raja R Harinath fb54e0e6c7 Distinguish between the internal index of a group and group number.
* Regex.cs (GetGroupIndex): New.
(GroupNameFromNumber): Use it.
* GroupCollection.cs (.ctor): Introduce 'gap' argument.  It is the
index of the first group whose group number differs from its index.
(Item.get): Likewise.

svn path=/trunk/mcs/; revision=140284
2009-08-19 20:40:39 +00:00
Marek Habersack a8cfd91279 2009-08-19 Marek Habersack <[email protected]>
* Route.cs: GetRouteData adds contents of its DataTokens
	dictionary to the returned RouteData.DataTokens dictionary. Fixes
	bug #523330. Patch from [email protected], thanks!

svn path=/trunk/mcs/; revision=140273
2009-08-19 18:37:10 +00:00
Rodrigo Kumpera 99131f496c 2009-08-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_method_header): Add work-around to deal
	with MS broken behavior of emmitting EH section sizes without the
	header size added.

svn path=/trunk/mono/; revision=140267
2009-08-19 17:32:51 +00:00
Rodrigo Kumpera 7d831bb868 2009-08-19 Rodrigo Kumpera <[email protected]>
* metadata.c (mono_type_create_from_typespec): Don't allocate image
	memory until we're sure that we'll need it. This avoids leaking for
	broken types or duplicated instantiation.

svn path=/trunk/mono/; revision=140266
2009-08-19 17:32:41 +00:00
Carlos Alberto Cortez 6b3f398260 2009-08-19 Carlos Alberto Cortez <[email protected]>
* System.Windows.Forms_test.dll.sources: Add a new test file.


svn path=/trunk/mcs/; revision=140263
2009-08-19 16:58:21 +00:00
Carlos Alberto Cortez 65d3a029d3 2009-08-19 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDownItemTest.cs: New test file.


svn path=/trunk/mcs/; revision=140262
2009-08-19 16:56:18 +00:00
Marek Safar b8a503e12d 2009-08-19 Marek Safar <[email protected]>
* *.cs: Removed IResolveContext::GenericDeclContainer.


svn path=/trunk/mcs/; revision=140259
2009-08-19 16:47:46 +00:00
Carlos Alberto Cortez fec2caa7ed 2009-08-19 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDown.cs: When assigning the owner item, use its Font as
	well.


svn path=/trunk/mcs/; revision=140258
2009-08-19 16:37:59 +00:00
Marek Safar 7e5692bc7f New test.
svn path=/trunk/mcs/; revision=140252
2009-08-19 15:54:08 +00:00
Marek Safar 256e18902b 2009-08-19 Marek Safar <[email protected]>
* *.cs: Removed IResolveContext::GenericDeclContainer.


svn path=/trunk/mcs/; revision=140251
2009-08-19 15:53:32 +00:00
Marek Safar 570918f5e8 2009-08-19 Marek Safar <[email protected]>
* class.cs, delegate.cs: Changed Delegate to be TypeContainer based.


svn path=/trunk/mcs/; revision=140246
2009-08-19 14:15:32 +00:00
Rodrigo Kumpera 13f62b2222 2009-08-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_method_header): Fix stupid formating
	mistake.

svn path=/trunk/mono/; revision=140245
2009-08-19 13:56:14 +00:00
Atsushi Eno 6f74c4f671 2009-08-19 Atsushi Enomoto <[email protected]>
* NetNamedPipeBinding.cs, NetNamedPipeSecurity.cs
	  NamedPipeTransportSecurity.cs : new files.
	* Dummy.cs : remove above ones.

	* System.ServiceModel.dll.sources: add named pipe files.


svn path=/trunk/mcs/; revision=140244
2009-08-19 13:54:11 +00:00
Atsushi Eno dff60d67a7 2009-08-18 Atsushi Enomoto <[email protected]>
* net_2_1_raw_System.Core.dll.sources : now it should be created.


svn path=/trunk/mcs/; revision=140243
2009-08-19 13:34:09 +00:00
Rodrigo Kumpera 8986292b15 2009-08-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_method_header): Fix number of clauses
	and expected size calculation.

svn path=/trunk/mono/; revision=140242
2009-08-19 13:21:17 +00:00
Marek Safar 0bd4004c83 New tests.
svn path=/trunk/mcs/; revision=140231
2009-08-19 10:58:38 +00:00
Marek Safar 74f5e93b13 2009-08-19 Marek Safar <[email protected]>
* generic.cs, iterators.cs, expression.cs, statement.cs, ecore.cs,
	cs-parser.jay, attribute.cs, codegen.cs: Better error reports.


svn path=/trunk/mcs/; revision=140230
2009-08-19 10:58:20 +00:00
Jérémie Laval e828ffcda6 2009-08-19 Jérémie Laval <[email protected]>
In class/System/System.Collections.Concurrent/:
   * BlockingCollection.cs: Rewrite to use a transaction id
   based approach. Ported to 4.0 API. Fix GetConsumingEnumerable.

In class/System/Test/System.Collections.Concurrent/:
   * BlockingCollectionTests.cs: Track API changes.

In class/System/System.Threading/:
   * Barrier.cs: Fix Barrier to be really thread-safe.
   Remove deadlocking.

In class/corlib/System.Collections.Concurrent/:
   * Partitioner.cs: Fix infinite recursion when calling Create
   with a IList.
   * Partitionners/ListPartitioner.cs: Fix bad splitting for the
   last partition.

In class/corlib/System.Threading.Tasks/:
   * Task.cs: Refactor Wait methods.

In class/corlib/System.Threading/:
   * AtomicBoolean.cs: Turn it into a class
   * CountdownEvent.cs: Work on cached variable. Make sure
   count doesn't go under 0.
   * ParallelLoopState.cs: Initialize correctly AtomicBoolean.

svn path=/trunk/mcs/; revision=140229
2009-08-19 10:51:42 +00:00
Atsushi Eno 6a93ece2a5 Adding System.IO.Pipes implementation.
svn path=/trunk/mcs/; revision=140228
2009-08-19 10:19:40 +00:00
Marek Habersack 5c24f18f97 1.1 test fixes
svn path=/trunk/mcs/; revision=140213
2009-08-18 23:56:22 +00:00
Rodrigo Kumpera 0c39cceecb 2009-08-17 Rodrigo Kumpera <[email protected]>
* valid_generic_type_definition_on_boxing_position.cs: Valid encoding of GTD on
	box position.

svn path=/trunk/mono/; revision=140212
2009-08-18 23:14:43 +00:00
Rodrigo Kumpera b07107d2f6 2009-08-18 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_get_field_idx): Add fixme for broken
	behavior for types with multiple fields with the same name.
	I would rather fix it, but have no idea on how to generate
	such artifact for testing.

svn path=/trunk/mono/; revision=140211
2009-08-18 23:14:32 +00:00
Rodrigo Kumpera bd1901d090 2009-08-18 Rodrigo Kumpera <[email protected]>
* verify.c (verifier_load_field): We should allow references to
	fields to be made using the generic type definition. It's up to
	the loader system to fail invalid ops.

	* verify.c (get_boxable_mono_type): Only uninstantiated GTDs
	are invalid.

svn path=/trunk/mono/; revision=140210
2009-08-18 23:14:22 +00:00
Rodrigo Kumpera 67b0d35d1e 2009-08-18 Rodrigo Kumpera <[email protected]>
* class.c: Fix usage of mono_metadata_interfaces_from_typedef_full.

	* metadata-internals.h: Fix declaration of
	mono_metadata_interfaces_from_typedef_full.

	* metadata.c (mono_metadata_interfaces_from_typedef_full): Add extra
	heap_alloc_result parameter that controls if the result should be
	g_malloc'd.

	* metadata.c (mono_metadata_interfaces_from_typedef): Let the resulting
	array be g_malloc'd and properly document this public API function.

svn path=/trunk/mono/; revision=140209
2009-08-18 23:14:11 +00:00
Rodrigo Kumpera e21cf3ce2a 2009-08-18 Rodrigo Kumpera <[email protected]>
* cil-coff.h: Fix METHOD_HEADER_FORMAT_MASK to be 2 bits and
	remove METHOD_HEADER_TINY_FORMAT1.

	* reflection.c: Remove reference to METHOD_HEADER_TINY_FORMAT1.

	* metadata.c (mono_metadata_parse_mh_full): Kill tiny format1.

	Both spec and MS uses only 2 bits to enumerate the kind of header.
	So given that 0x6 and 0x2 are equal under a 2 bits mask, tiny format1
	is superfluous, only used for tiny headers with odd code lengths.

	This change also make sure that mono doesn't wronly interpret bit 2
	of fat header flags, which is currently reserved.

svn path=/trunk/mono/; revision=140208
2009-08-18 23:14:00 +00:00
Rodrigo Kumpera 43f5f07e21 2009-08-18 Rodrigo Kumpera <[email protected]>
* metadata.c (do_mono_metadata_parse_type): Do error
	checking for element types. Don't abort if presented
	with a broken type kind.

svn path=/trunk/mono/; revision=140207
2009-08-18 23:13:48 +00:00
Rodrigo Kumpera ab5e921fba 2009-08-18 Rodrigo Kumpera <[email protected]>
* metadata.c (mono_metadata_parse_method_signature_full):
	Gracefully fail bad vararg signatures.

svn path=/trunk/mono/; revision=140206
2009-08-18 23:13:38 +00:00
Christian Hergert 01eb007dfa 2009-08-18 Christian Hergert <[email protected]>
* wthreads.c: Roll back change for thread-id as it "embraces
	and extends" the api by passing word-size for thread id on
	s390 and amd64.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140201
2009-08-18 21:45:23 +00:00
Zoltan Varga 110af9e7c3 Fix the build.
svn path=/trunk/mcs/; revision=140199
2009-08-18 21:04:23 +00:00
Zoltan Varga 245622e12e 2009-08-18 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_instances): Fix the net 1.1 build.

svn path=/trunk/mono/; revision=140197
2009-08-18 20:38:02 +00:00
Ankit Jain 22fa5bce0f * xbuild/Microsoft.Common.targets (ResolveAssemblyReference):
Make SearchPaths get value from a property (AssemblySearchPaths)
to allow it to be overridden.

svn path=/trunk/mcs/; revision=140191
2009-08-18 20:18:31 +00:00
Zoltan Varga c1f1c8dd77 2009-08-18 Zoltan Varga <[email protected]>
* MonoGenericClass.cs: Use StringComparison.Ordinal when calling
	String.EndsWith ().

svn path=/trunk/mcs/; revision=140185
2009-08-18 18:46:57 +00:00
Zoltan Varga fd182ac734 2009-08-18 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_instances): Add string[] wrapper methods.
	Add GetGenericValueImpl<string>.

svn path=/trunk/mono/; revision=140184
2009-08-18 18:43:39 +00:00
Marek Safar 4bec408f2a New test.
svn path=/trunk/mcs/; revision=140177
2009-08-18 17:24:38 +00:00
Marek Safar d4bffdbdde 2009-08-18 Marek Safar <[email protected]>
* *.cs: Removed boolean fields from EmitContext.


svn path=/trunk/mcs/; revision=140176
2009-08-18 17:24:20 +00:00
Marek Safar 90b26c582a New tests.
svn path=/trunk/mcs/; revision=140172
2009-08-18 16:23:47 +00:00
Marek Safar aa77e2e45a 2009-08-18 Marek Safar <[email protected]>
* *.cs: Add IResolveContext::IsStatic.


svn path=/trunk/mcs/; revision=140171
2009-08-18 16:23:08 +00:00
Michael Hutchinson b6ddbda74e 2009-08-18 Michael Hutchinson <[email protected]>
* Mono.Cecil/BaseAssemblyResolver.cs: Search GACs specified in the 
	  MONO_GAC_PREFIX environment variable.


svn path=/trunk/mcs/; revision=140166
2009-08-18 15:56:06 +00:00
Marek Habersack b68b65ad17 2009-08-18 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/DuplicateControlsInClientComment.aspx

2009-08-18  Marek Habersack  <[email protected]>

	* ControlBuilder.cs: Location property makes a copy of assigned
	ILocation now.

2009-08-18  Marek Habersack  <[email protected]>

	* AspParser.cs: added a constructor which creates an internal
	parser, nested within the outer one, and adjusts its ILocation
	members to report correct locations in the outer parser for better
	error reporting. Inner parser also returns the outer's FileText,
	if available.

	* AspGenerator.cs: restored part of r138474 reverted in r138657,
	r138658 and r138659 to fix bug #525104
	BuilderLocation creates a copy of Location for its own use (since
	the ILocation passed is actually AspParser, the line numbers
	change between creating a BuilderLocation and using its Location
	member).
	The end of tag, expression and client comment regular expressions
	now use lazy quantifiers. This fixes bugs #525104 and #517656
	Client side comment blocks aren't ignored anymore, they are parsed
	just as the other parts of the document. Fixes bug #524358

2009-08-18  Marek Habersack  <[email protected]>

	* JavaScriptSerializer.cs: read converters from the config only if
	explicitly requested.

2009-08-18  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #525104 and
	improved test for bug #517656

svn path=/trunk/mcs/; revision=140161
2009-08-18 13:31:49 +00:00
Ankit Jain 68037b2d56 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* BatchingImplBase.cs: Make the item name lookups and metadata be case
	insensitive.
	* TaskDatabase.cs: Likewise.
	* TaskEngine.cs: Make property name looks, case insensitive.

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

	* ProjectTest.cs (TestCaseSensitivityOfProjectElements): New.

svn path=/trunk/mcs/; revision=140153
2009-08-18 11:57:52 +00:00
Ankit Jain 8322e9b09d * SolutionParser.cs (ParseSolution): Project reference in a project
file, but not found in .sln file is ignored. Also, add dependencies
specified in the .sln file.

svn path=/trunk/mcs/; revision=140152
2009-08-18 11:57:18 +00:00
Christian Hergert 805cb46ba2 2009-08-18 Christian Hergert <[email protected]>
* security.c:
	* processes.c:
	* wthreads.c: Be explicit when we are changing word sizes.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140151
2009-08-18 11:43:35 +00:00
Christian Hergert 9e0383346f 2009-08-18 Christian Hergert <[email protected]>
* strtod.c: Fix warnings for uninitialized variables.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140150
2009-08-18 11:39:59 +00:00
Christian Hergert 1b8f3c16ec 2009-08-18 Christian Hergert <[email protected]>
* method-to-ir.c: Fix warnings for uninitialized variables.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140149
2009-08-18 11:38:46 +00:00
Christian Hergert 6fa9e70206 2009-08-18 Christian Hergert <[email protected]>
* profiler.c:
	* class.c: Fix warnings for uninitialized variables.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140148
2009-08-18 11:37:47 +00:00
Christian Hergert 847934db6f 2009-08-18 Christian Hergert <[email protected]>
* mono-profiler-aot.c:
	* mono-cov.c: Add missing method declarations.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140147
2009-08-18 11:34:35 +00:00
Christian Hergert 179709ffe8 2009-08-18 Christian Hergert <[email protected]>
* processes.c: Fix method declaration warnings.
	* sockets.c: getsockopt() wants socklen_t for size.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140146
2009-08-18 11:33:26 +00:00
Christian Hergert 5383ab9c56 2009-08-18 Christian Hergert <[email protected]>
* icall.c: Fix _NSGetEnviron method declaration warning.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140145
2009-08-18 11:30:29 +00:00
Christian Hergert 6fc2a8c2c0 2009-08-18 Christian Hergert <[email protected]>
* icall.c:
	* reflection.c: Make bitwise checks explicit.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140144
2009-08-18 11:26:21 +00:00
Christian Hergert 05b2ef8efb 2009-08-18 Christian Hergert <[email protected]>
* mini-exceptions.c:
	* aot-compiler.c: Fix printf warnings.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140143
2009-08-18 11:22:31 +00:00
Christian Hergert a9d90435d9 2009-08-18 Christian Hergert <[email protected]>
* monograph.c: Fix printf warnings.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140142
2009-08-18 11:22:00 +00:00
Christian Hergert c99abd082e 2009-08-18 Christian Hergert <[email protected]>
* mono-proclib.c:
	* mono-counters.c: Fix printf warnings.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140140
2009-08-18 11:21:28 +00:00
Christian Hergert a9fef6398f 2009-08-18 Christian Hergert <[email protected]>
* debug-helpers.c:
	* marshal.c: Fix printf warnings.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140139
2009-08-18 11:20:22 +00:00
Christian Hergert 8f3f7376bc 2009-08-18 Christian Hergert <[email protected]>
* dis-cil.c:
	* main.c: Fix printf warnings.

	Licensed under the MIT X11.


svn path=/trunk/mono/; revision=140138
2009-08-18 11:19:39 +00:00
Marek Safar 7ae1152cc7 2009-08-18 Marek Safar <[email protected]>
* *.cs: Moved TopBlock's methods from EmitContext to TopBlock.


svn path=/trunk/mcs/; revision=140135
2009-08-18 10:54:32 +00:00
Zoltan Varga 01330948a3 2009-08-18 Zoltan Varga <[email protected]>
* reflection.c (encode_cattr_value): Fix a warning.

svn path=/trunk/mono/; revision=140133
2009-08-18 10:22:18 +00:00
Zoltan Varga bcfdc33cc1 2009-08-18 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_instances): Add instances of
	GenericEqualityComparer<T> for primitive types. Only emit the array
	wrappers into the mscorlib image.

svn path=/trunk/mono/; revision=140132
2009-08-18 10:18:04 +00:00
Atsushi Eno b2e1fea729 2009-08-18 Atsushi Enomoto <[email protected]>
* Message.cs, MessageImpl.cs, BodyWriter.cs :
	  Implement BodyWriter.OnCreateBufferedCopy() and use it.


svn path=/trunk/mcs/; revision=140124
2009-08-18 03:47:21 +00:00
Atsushi Eno f661396df6 2009-08-18 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs : initialize field.


svn path=/trunk/mcs/; revision=140123
2009-08-18 03:41:12 +00:00
Geoff Norton b1341488bf 2009-08-17 Geoff Norton <[email protected]>
* NtlmClient.cs: Mono.Http does not exist on monotouch

svn path=/trunk/mcs/; revision=140122
2009-08-18 03:27:25 +00:00
Carlos Alberto Cortez fcc25ad9b0 * ToolStripItem.cs: When the owner changes its Font, call the
OnFontChanged event, so we let our users know that we likely have a
	new font - since Font is an ambient property.
	* ToolStripDropDownItem.cs: When our Font changes, propagate that
	information to our DropDown control, if any.
	Fixes #531515.

2009-08-17  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=140121
2009-08-18 02:43:58 +00:00
Zoltan Varga ec02c4b91f 2009-08-18 Zoltan Varga <[email protected]>
* scripts/Makefile.am: Applied patch from Hib Eris ([email protected]).
	Add $(SCRIPT_SUFFIX) to the name of the 'mod' tool.

svn path=/trunk/mono/; revision=140116
2009-08-18 00:05:51 +00:00
Veerapuram Varadhan b3fd359ec4 2009-07-23 Adam Wendt <[email protected]>
* Comparison.cs (Compare): Parse string if other object is DateTime
       regardless of which side the DateTime is on.

svn path=/trunk/mcs/; revision=140113
2009-08-17 22:11:38 +00:00
Rodrigo Kumpera 7310e20c13 2009-08-17 Rodrigo Kumpera <[email protected]>
* metadata.c (mono_metadata_parse_array_full): Fix memory leak
	of array bounds.

svn path=/trunk/mono/; revision=140112
2009-08-17 21:37:00 +00:00
Rodrigo Kumpera 2b4148e735 2009-08-17 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_signature): Don't assert on broken
	signature. Print a more usefull error message.

svn path=/trunk/mono/; revision=140111
2009-08-17 21:36:49 +00:00
Rodrigo Kumpera 9f66f3cdca 2009-08-17 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_marshal_info): Assert if
	signature is invalid. Bounds check stores to the
	mspecs array;

svn path=/trunk/mono/; revision=140110
2009-08-17 21:36:39 +00:00
Rodrigo Kumpera a9aef8eb1f 2009-08-17 Rodrigo Kumpera <[email protected]>
* loader.c (field_from_memberref): Fix warning.

svn path=/trunk/mono/; revision=140109
2009-08-17 21:36:26 +00:00
Rodrigo Kumpera 3c1dbef09c 2009-08-17 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_param_names): Check if signature
	is null. Don't store beyond the size of the name array.

svn path=/trunk/mono/; revision=140108
2009-08-17 21:36:16 +00:00
Rodrigo Kumpera fbe0b1ef63 2009-08-17 Rodrigo Kumpera <[email protected]>
* loader.c (mono_get_method_constrained): Check if signature
	is null.

svn path=/trunk/mono/; revision=140107
2009-08-17 21:36:06 +00:00
Rodrigo Kumpera 11a1be90ff 2009-08-17 Rodrigo Kumpera <[email protected]>
* loader.c (mono_loader_set_error_bad_image): Improve
	error messages.

svn path=/trunk/mono/; revision=140106
2009-08-17 21:35:56 +00:00
Ankit Jain 404109fbfa * TaskLoggingHelperExtensios.cs (.ctor): Mark internal.
svn path=/trunk/mcs/; revision=140105
2009-08-17 21:19:50 +00:00
Ankit Jain 6756c667ae * PcFileCache.cs (PackageInfo): Mark internal.
svn path=/trunk/mcs/; revision=140104
2009-08-17 21:19:20 +00:00
Marek Habersack 83dfe82864 2009-08-17 Marek Habersack <[email protected]>
* ScriptingJsonSerializationSection.cs: MaxJsonLength default
	value is 2097152 for .NET 3.5+

2009-08-17  Marek Habersack  <[email protected]>

	* JsonSerializer.cs: serialize fields before properties.

	* JavaScriptSerializer.cs: MaxJsonLength default value for .NET
	3.5 is 2097152

2009-08-17  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: fixed broken tests

svn path=/trunk/mcs/; revision=140098
2009-08-17 20:43:45 +00:00
Raja R Harinath 4735fd50bc * parser.cs (GetMapping): Extend duplicate check for numeric groups too.
svn path=/trunk/mcs/; revision=140097
2009-08-17 19:26:40 +00:00
Raja R Harinath 51c4ad074a * parser.cs (ResolveReferences): Handle some cases of explicitly-named numeric groups.
svn path=/trunk/mcs/; revision=140096
2009-08-17 19:26:18 +00:00
Raja R Harinath 1c27a86429 * parser.cs (ResolveReferences): Rearrange slightly to prepare for future changes.
svn path=/trunk/mcs/; revision=140095
2009-08-17 19:25:50 +00:00
Ankit Jain 939c5bcae8 * AssemblyResolver.cs (FindInTargetFramework): Perform case insensitive
assembly name comparison. Use the new AssemblyNamesCompatible api.
(AssemblyNamesCompatible): Add new overload with a 'ignoreCase' param.

svn path=/trunk/mcs/; revision=140092
2009-08-17 18:58:19 +00:00
Ankit Jain 0028c1b8a9 * AssemblyResolver.cs (TargetFrameworkAssemblies..ctor): Make assembly
name lookups for target framework assemblies, case insensitive. Helps
with cases like "System.configuration", which vs.net is known to emit.

svn path=/trunk/mcs/; revision=140090
2009-08-17 18:33:14 +00:00
Carlos Alberto Cortez 47458f0aeb 2009-08-17 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: 
	* ThemeWin32Classic.cs: When the user clicks on a new cell, we should reset any
	previous selection, just like .net does. Also, in the cases where a
	cell is being edited and it keeps the selected status, use the normal
	colors for it, and use the selected colors for the rest of the columns of
	that row.
	Fixes the remaining bits of #323051.


svn path=/trunk/mcs/; revision=140089
2009-08-17 18:18:25 +00:00
Veerapuram Varadhan 1aea1446a7 2009-08-17 Veerapuram Varadhan <[email protected]>
** Fixes #525306
	* SqlConnection.cs (Open): Use Tds80 also in case of non-pooling
	connections.

svn path=/trunk/mcs/; revision=140086
2009-08-17 17:24:22 +00:00
Veerapuram Varadhan 936bf462b2 2009-08-17 Veerapuram Varadhan <[email protected]>
** Fixes #381151 NRE
	* Tds.cs (ProcessColumnInfo): Use Columns instead of creating a new list.
	* TdsDataColumnCollection.cs (Clear, Add): New utility methods
	* Tdsxx.cs: ProcessColumnInfo definition changes.

svn path=/trunk/mcs/; revision=140085
2009-08-17 17:24:04 +00:00
Marek Safar 78b7bfae2e 2009-08-17 Marek Safar <[email protected]>
* *.cs: Removed DeclContainer from EmitContext.


svn path=/trunk/mcs/; revision=140072
2009-08-17 14:45:15 +00:00
Rodrigo Kumpera e847bfd93a 2009-08-17 Rodrigo Kumpera <[email protected]>
* class-internals.h, class.c: Better naming and documentation.

svn path=/trunk/mono/; revision=140061
2009-08-17 13:46:34 +00:00
Rodrigo Kumpera 44d7bd37d3 2009-08-14 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_signature_full): Fail gracefully if signature
	parsing fails.

svn path=/trunk/mono/; revision=140060
2009-08-17 13:46:23 +00:00
Atsushi Eno b36294853a 2009-08-17 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : use wildcard for the actual message
	  transfer operation.

	* ServiceHostBase.cs : wildcard action support was not working
	  for one-way channels.


svn path=/trunk/mcs/; revision=140059
2009-08-17 13:38:25 +00:00
Atsushi Eno 9f9ce350de 2009-08-17 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : set expected AddressFilter.

	* EndpointDispatcher.cs : do not try to create wrong filter.


svn path=/trunk/mcs/; revision=140058
2009-08-17 12:54:31 +00:00
Sebastien Pouliot 02a44bc87b 2009-08-17 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Add some existing System.dll
	files required for SL3 and some new files.


svn path=/trunk/mcs/; revision=140057
2009-08-17 12:49:57 +00:00
Sebastien Pouliot ffe9d6a57c 2009-08-17 Sebastien Pouliot <[email protected]>
* NetworkChange_2_1.cs: New. Minimal SL3 version
	* NetworkInterface_2_1.cs: New. Minimal SL3 version


svn path=/trunk/mcs/; revision=140056
2009-08-17 12:47:36 +00:00
Sebastien Pouliot 96cff3ef51 2009-08-17 Sebastien Pouliot <[email protected]>
* CookieCollection.cs: Seal class for NET_2_1 (SL3)
	* CookieContainer.cs: Seal class for NET_2_1 (SL3)
	* NetworkCredential.cs: Use in NET_2_1 (SL3) but without implementing
	ICredentialsByHost


svn path=/trunk/mcs/; revision=140055
2009-08-17 12:45:34 +00:00
Atsushi Eno f6f884bf79 2009-08-17 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs, DuplexChannelBase.cs, RequestChannelBase.cs:
	  implement GetProperty<T>() and return its channel manager.


svn path=/trunk/mcs/; revision=140054
2009-08-17 12:38:10 +00:00
Atsushi Eno 09f739ee34 2009-08-17 Atsushi Enomoto <[email protected]>
* EndpointAddress.cs : #if !NET_2_1 is removing code too much.


svn path=/trunk/mcs/; revision=140053
2009-08-17 12:33:12 +00:00
Raja R Harinath 58b4f2fb60 * RegexTrial.cs (Execute): Prepare to handle dis-contiguous group numbers.
svn path=/trunk/mcs/; revision=140052
2009-08-17 12:28:23 +00:00
Raja R Harinath 3c675a0e62 * Regex.cs (GetGroupNumbers): List group numbers in ascending order.
(GetGroupNames): List names in order of group number.

svn path=/trunk/mcs/; revision=140051
2009-08-17 12:27:57 +00:00
Zoltan Varga 9978af59ef 2009-08-17 Zoltan Varga <[email protected]>
* boehm-gc.c (mono_gc_add_weak_track_handle): Don't do any work if
	obj is NULL.

svn path=/trunk/mono/; revision=140048
2009-08-17 10:09:21 +00:00
Atsushi Eno bdc678d382 2009-08-17 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing implementation. Fix wrong peer
	  destination address in Connect() request. To repeat sending
	  request, use buffered copy. Set some peer-channel specific
	  header items. (todo: and consume them.)


svn path=/trunk/mcs/; revision=140047
2009-08-17 10:06:36 +00:00
Marek Safar 3be750b30e 2009-08-17 Marek Safar <[email protected]>
* *.cs: Add IResolveContext::CurrentTypeParameters.


svn path=/trunk/mcs/; revision=140046
2009-08-17 10:02:21 +00:00
Atsushi Eno 9f127bdcf5 2009-08-17 Atsushi Enomoto <[email protected]>
* Message.cs : state is set only after WriteBodyContents().

	* MessageTest.cs : added test for State.


svn path=/trunk/mcs/; revision=140045
2009-08-17 09:41:16 +00:00
Atsushi Eno e7fb9bf4ec 2009-08-17 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : eliminate wrong use of
	  ReadElementContentAsString() (it is not always simple string).


svn path=/trunk/mcs/; revision=140043
2009-08-17 09:05:21 +00:00
Atsushi Eno 3068fbdf08 2009-08-17 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : when the value is null, do not try to
	  deserialize EndpointAddress.


svn path=/trunk/mcs/; revision=140042
2009-08-17 08:36:05 +00:00
Atsushi Eno a7a1dedafc 2009-08-17 Atsushi Enomoto <[email protected]>
* MessageHeader.cs : add Value property. (Forgot dependent change.)


svn path=/trunk/mcs/; revision=140041
2009-08-17 08:03:42 +00:00
Atsushi Eno bd5c27a86a 2009-08-17 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : made some properties in duplex context
	  channel dispatching to internal client.


svn path=/trunk/mcs/; revision=140040
2009-08-17 08:02:42 +00:00
Atsushi Eno 7d71be09c4 2009-08-17 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : GetHeader<T>() could mostly skip extra
	   serialization and deserialization of values.


svn path=/trunk/mcs/; revision=140039
2009-08-17 08:01:22 +00:00
Atsushi Eno f10fde344f 2009-08-17 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : fix internal member name to get
	  serialized correctly.


svn path=/trunk/mcs/; revision=140038
2009-08-17 07:58:27 +00:00
Carlos Alberto Cortez 6af5f34688 2009-08-16 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: When getting ProcessKeyPreview fired, call Edit() if we
	are not editing already - so the edition is actually active on our
	column style textbox. Also, it seems the code handling process the
	grid keys is repeated, but instead of removing it, just comment it for
	now.
	Fixes part of #323051.


svn path=/trunk/mcs/; revision=140033
2009-08-17 04:34:20 +00:00
Raja R Harinath a5b5a5ee3c Remove debugging spew
svn path=/trunk/mono/; revision=140010
2009-08-15 10:19:53 +00:00
Marek Habersack 1a9392fea7 2009-08-15 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: make sure JavaScriptSerializer instance used
	here reads custom converters from web.config. Fixes bug #525589

svn path=/trunk/mcs/; revision=140004
2009-08-15 02:23:55 +00:00
Marek Habersack 7dadfa1b28 2009-08-15 Marek Habersack <[email protected]>
* AspGenerator.cs: CodeRenderParser.DoParseExpressions - match
	newline characters inside expressions. Fixes bug #526449

2009-08-15  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/NewlineInCodeExpression.aspx

svn path=/trunk/mcs/; revision=139989
2009-08-15 00:32:46 +00:00
Zoltan Varga 0c8a6ce4d3 2009-08-15 Zoltan Varga <[email protected]>
* aot-runtime.c (load_method): Rename 'aot_module' -> 'amodule'. Allocate
	the methods_loaded array using amodule->info->nmethods.

	* mini.h (MonoAotFileInfo): Add an 'nmethods' field.
	(MONO_AOT_FILE_VERSION): Bump this.

	* aot-compiler.c: Emit more generic instances allowing some parts of linq
	to work.

svn path=/trunk/mono/; revision=139977
2009-08-14 23:58:45 +00:00
Zoltan Varga 57f5e76b3c 2009-08-15 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_unwind_info): Handle the case when the
	MonoJitInfo doesn't belong to its methods aot image.

svn path=/trunk/mono/; revision=139975
2009-08-14 22:52:55 +00:00
Rodrigo Kumpera e676b01165 2009-08-14 Rodrigo Kumpera <[email protected]>
* loader.c (mono_loader_error_prepare_exception): Handle missing field
	errors with no class set.

	* loader.c (field_from_memberref): If the field signature is of the wrong
	type fail with a MissingFieldException instead of a BadImageException as
	this is the behavior observed on MS.

svn path=/trunk/mono/; revision=139974
2009-08-14 22:29:03 +00:00
Rodrigo Kumpera 8c15ff0efa 2009-08-14 Rodrigo Kumpera <[email protected]>
loader.c (field_from_memberref): Don't crash if either the field
	signature or the typespec class are invalid.

svn path=/trunk/mono/; revision=139973
2009-08-14 22:28:53 +00:00
Rodrigo Kumpera 27467904a7 2009-08-14 Rodrigo Kumpera <[email protected]>
* verify.c (verifier_load_field): Don't allow field related
	ops to reference fields on generic type definition.

svn path=/trunk/mono/; revision=139972
2009-08-14 22:28:43 +00:00
Marek Habersack c92f940e98 2009-08-14 Marek Habersack <[email protected]>
* BuildManagerDirectoryBuilder.cs: when VirtualPathProvider
	reports a virtual directory doesn't exist, try to get the
	requested virtual path using VirtualPathProvider.GetFile. Fixes
	#525974

svn path=/trunk/mcs/; revision=139969
2009-08-14 21:38:29 +00:00
Massimiliano Mantione 6802499706 Flush buffers synchronously so the GUI knows when we are done.
svn path=/trunk/mono/; revision=139966
2009-08-14 20:38:23 +00:00
Massimiliano Mantione ad7f48e573 Added user thread reading commands from a local tcp port.
svn path=/trunk/mono/; revision=139964
2009-08-14 20:22:00 +00:00
Zoltan Varga 5ddc320d8c 2009-08-14 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_allocate_vars): Use SP as the default frame reg.

	* mini-arm.c: Fix warnings.

svn path=/trunk/mono/; revision=139962
2009-08-14 19:55:47 +00:00
Atsushi Eno be4a6a6314 2009-08-14 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : add itself as CallbackContract.


svn path=/trunk/mcs/; revision=139960
2009-08-14 19:17:05 +00:00
Atsushi Eno 79a9700b7a 2009-08-14 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : handle Welcome and Refuse at client side.
	  Now simply use connector contract.

	* IPeerConnectorContract.cs : remove receiver contract.


svn path=/trunk/mcs/; revision=139958
2009-08-14 18:26:50 +00:00
Ankit Jain 7f5589b758 Fix bug #530368.
* SolutionParser.cs (AddProjectTargets): If a project name matches one
of the targets that we emit (Build/Clean etc), then rename to
"Solution:<project name>".

svn path=/trunk/mcs/; revision=139936
2009-08-14 17:56:56 +00:00
Ankit Jain 51380df21d * xbuild/Microsoft.Common.targets (AllowUnsafeBlocks): Don't set any
default value.
(OutputPath): Set a default value.
(DeployOutputFiles): Copy only if something available to copy.

svn path=/trunk/mcs/; revision=139935
2009-08-14 17:56:39 +00:00
Miguel de Icaza 3454aeac93 Fix build
svn path=/trunk/mcs/; revision=139934
2009-08-14 17:56:29 +00:00
Ankit Jain 328db53daa Build projects in correct order and allow for parallel builds.
In tools/xbuild:
	* SolutionParser.cs (ProjectInfo.Dependencies): Change to a dictionary
	to keep track of corresponding ProjectInfo objects.
	(ParseSolution): Refactor to populate the ProjectInfo.Dependencies
	dictionary. Use AddBuildLevels to emit build levels to allow
	parallel builds.
	(AddProjectTargets): Dependency's projectInfo is directly available now.
	(AddBuildLevels): New. Emit items named BuildLevelN, where each level
	has projects that can be built in parallel. Lower levels represent
	dependencies for higher levels.
	(AddSolutionTargets): Instead of using CallTarget, directly use MSBuild
	task with the new BuildLevelN stuff. Also tell the user about disabled
	projects or missing project configs.
	(TopologicalSort): New.
	(Insert): New. Based on code from monodevelop.

In tools/xbuild/tests:

	* standalone/Project01: Update .sln.proj file.

svn path=/trunk/mcs/; revision=139933
2009-08-14 17:55:48 +00:00
Zoltan Varga 9231dd4d6e 2009-08-14 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arm_emit_load_imm): Only emit a movt if needed.

svn path=/trunk/mono/; revision=139930
2009-08-14 17:04:32 +00:00
Rodrigo Kumpera 1642965ec0 2009-08-14 Rodrigo Kumpera <[email protected]>
*unverifiable_ldobj_with_generic_type_definition.il: Regression test for
	bug #531237.

svn path=/trunk/mono/; revision=139924
2009-08-14 14:46:46 +00:00
Rodrigo Kumpera 97c5a3224c 2009-08-14 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add new warning level for errors specified
	by ECMA 335 but that MS ignores.

	* metadata-verify.c (verify_method_table): Make compiler controled
	visibility + (rt)specialname error a warning as MS ignores this. Ignoring
	this check is safe because the end result will only be some visibility
	exceptions been thrown.

svn path=/trunk/mono/; revision=139923
2009-08-14 14:46:36 +00:00
Rodrigo Kumpera c5207f17d4 2009-08-14 Rodrigo Kumpera <[email protected]>
* verify.c (get_boxable_mono_type): Don't allow the
	use of the generic type definition on boxed type positions.

	Fixes #531237.

svn path=/trunk/mono/; revision=139922
2009-08-14 14:46:25 +00:00
Mark Probst 93d2dab9ed 2009-08-14 Mark Probst <[email protected]>
* threadpool.c: Make sure no cross-domain references remain in
	ares_htable or the arrays that are thrown away when resizing.

svn path=/trunk/mono/; revision=139921
2009-08-14 14:10:25 +00:00
Mark Probst 0655eb3731 2009-08-14 Mark Probst <[email protected]>
* appdomain.c, metadata-internals.h, image.c: In MonoImage add a
	list of classes for which we have to unregister reflection_info
	with the GC and which are not in the namespace cache.

	* reflection.c (mono_reflection_initialize_generic_parameter): Add
	the class to the list.

svn path=/trunk/mono/; revision=139920
2009-08-14 13:50:26 +00:00
Zoltan Varga c6f1f1aa8b 2009-08-14 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arm_emit_load_imm): Use movt/movw if the cpu
	supports it.

svn path=/trunk/mono/; revision=139919
2009-08-14 13:49:23 +00:00
Zoltan Varga bb40ca58fc 2009-08-14 Zoltan Varga <[email protected]>
* arm/arm-codegen.h: Add armv6 MOVW/MOVT.

svn path=/trunk/mono/; revision=139918
2009-08-14 13:49:01 +00:00
Marek Safar a6ac037e87 2009-08-14 Marek Safar <[email protected]>
* *.cs: Removed TypeContainer and ContainerType from EmitContext.


svn path=/trunk/mcs/; revision=139917
2009-08-14 13:47:37 +00:00
Marek Safar 231c3d84e8 New test.
svn path=/trunk/mcs/; revision=139916
2009-08-14 13:46:47 +00:00
Mark Probst 09500940e1 2009-08-14 Mark Probst <[email protected]>
* domain.c (mono_domain_free): Unregister the GC roots in
	MonoDomain.

svn path=/trunk/mono/; revision=139915
2009-08-14 13:21:05 +00:00
Atsushi Eno 5457a39916 2009-08-14 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : handle Disconnect(). Fix URLs a bit.


svn path=/trunk/mcs/; revision=139914
2009-08-14 12:42:49 +00:00
Atsushi Eno 2037c58953 2009-08-14 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : add Disconnect() to receiver contract.


svn path=/trunk/mcs/; revision=139913
2009-08-14 12:38:59 +00:00
Atsushi Eno 255030c77a 2009-08-14 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs : do not try to compare dead connection's
	  IPEndPoint (it raises an error).


svn path=/trunk/mcs/; revision=139912
2009-08-14 12:37:01 +00:00
Atsushi Eno 0e567db131 2009-08-14 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : EndpointNotFoundException message could
	  be a bit kindful.


svn path=/trunk/mcs/; revision=139911
2009-08-14 12:35:24 +00:00
Atsushi Eno ee14a754ea 2009-08-14 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : allow null header value on each specific setter.


svn path=/trunk/mcs/; revision=139910
2009-08-14 12:34:15 +00:00
Atsushi Eno 9be6aef0a3 2009-08-14 Atsushi Enomoto <[email protected]>
* OperationContextScope.cs : check null arg.


svn path=/trunk/mcs/; revision=139909
2009-08-14 12:30:19 +00:00
Marek Safar 02b66a52b9 2009-08-14 Marek Safar <[email protected]>
* decl.cs, expression.cs, namespace.cs, ecore.cs, class.cs,
	codegen.cs: Add IResolveContext::LookupExtensionMethod.


svn path=/trunk/mcs/; revision=139908
2009-08-14 12:27:31 +00:00
Marek Safar 55a8cb72ec Updated.
svn path=/trunk/mcs/; revision=139907
2009-08-14 11:49:49 +00:00
Marek Safar 445bf2bbf7 2009-08-14 Marek Safar <[email protected]>
* Type.cs: Made IsClass work under compiler context.


svn path=/trunk/mcs/; revision=139905
2009-08-14 10:58:30 +00:00
Atsushi Eno 4db580beaf 2009-08-14 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs, TcpDuplexSessionChannel.cs :
	  get local and remote address of connected counterpart to get
	  callback channel connected.
	* PeerDuplexChannel.cs : remove FIXME wrt above.


svn path=/trunk/mcs/; revision=139903
2009-08-14 10:10:48 +00:00
Atsushi Eno 2068cade51 2009-08-14 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : return timeouts that are set at
	  dispatch runtime later than its .ctor(). Provide ListenUri too.


svn path=/trunk/mcs/; revision=139902
2009-08-14 10:07:48 +00:00
Atsushi Eno 9e8fa6e41d 2009-08-14 Atsushi Enomoto <[email protected]>
* AllEnums.cs : add AddressFilterMode and SupportedAddressingMode.
	* ServiceBehaviorAttribute.cs : added missing properties.


svn path=/trunk/mcs/; revision=139901
2009-08-14 10:06:45 +00:00
Marek Habersack bbd9577d71 2009-08-14 Marek Habersack <[email protected]>
* ControlBuilder.cs: when CreateSubBuilder is called on a builder
	which is supposed to treat its children as properties and the
	default property builder is defined, first check if the tag which
	has just been parsed isn't a template property. If it is, don't
	use the default property builder, instead create a template
	property builder directly. Fixes bug #527753

svn path=/trunk/mcs/; revision=139895
2009-08-14 02:01:12 +00:00
Ankit Jain 816e1d6dc3 Add support for resolving pkg-config provided assemblies.
In class/Microsoft.Build.Tasks:

	* Microsoft.Build.Tasks_test.dll.sources: Added
	PcFileCache.cs from md.

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

	* PcFileCache.cs: New. From monodevelop.
	* AssemblyResolver.cs (ResolvePkgConfigReference): New. Use PcFileCache
	to resolve assembly references.
	(AssemblyNamesCompatible): If SpecificVersion is false, then compare
	only simple names.
	(GetResolvedReference): Rename default_value to default_copy_local_value.
	(Cache): New.
	(PcFileCacheContext): New.
	(SearchPath): Add 'PkgConfig' to the enum.
	* ResolveAssemblyReference.cs: Add support for '{PkgConfig}'. Update
	messages.
	* ResolvedReference.cs (FoundInSearchPathToString): Create from ..
	(FoundInSearchPathAsString): .. this. Change this to a property to
	allow custom "found in .. " messages.

In tools/xbuild:

	* xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Add
	'{PkgConfig}' to SearchPaths.

svn path=/trunk/mcs/; revision=139892
2009-08-13 23:28:55 +00:00
Gonzalo Paniagua Javier ae20ad47f0 2009-08-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs:
	* WebConnectionStream.cs: if there's an error writing the headers from
	a buffered request, propagate the error instead of hiding it and
	causing a different one later (ie, ObjectDisposedException instead of
	the original WebException). This happened when posting without
	Content-Length set to an HTTPS url without validating the server
	certificate.


svn path=/trunk/mcs/; revision=139885
2009-08-13 22:12:18 +00:00
Marek Safar 612b6780cd More tests.
svn path=/trunk/mcs/; revision=139873
2009-08-13 20:53:51 +00:00
Marek Safar 2648277bde 2009-08-13 Marek Safar <[email protected]>
* decl.cs: Look in PartialContainer for parent type parameters.


svn path=/trunk/mcs/; revision=139872
2009-08-13 20:53:33 +00:00
Jonathan Pryor b3e58ca68a * Monodoc/provider.cs: Add a RootTree.AddSource(string) method, so that
additional directories can be checked for .source file loading.

svn path=/trunk/mcs/; revision=139862
2009-08-13 17:40:13 +00:00
Marek Safar 76c1cc09e3 2009-08-13 Marek Safar <[email protected]>
* decl.cs, namespace.cs, ecore.cs, class.cs, attribute.cs,
	codegen.cs: Add IResolveContext::LookupTypeParameter.


svn path=/trunk/mcs/; revision=139857
2009-08-13 16:35:49 +00:00
Marek Safar 46199680c6 New test.
svn path=/trunk/mcs/; revision=139856
2009-08-13 16:29:48 +00:00
Carlos Alberto Cortez 7c87220bf5 2009-08-13 Carlos Alberto Cortez <[email protected]>
* AsyncMethodResult.cs: Store a exception field in case the called
	method actually caused an exception. This way we can throw it later.
	* XplatUIDriver.cs: Check if the async method result has an exception
	- throw it if needed. 
	The idea is that Control.Invoke throws the exception from the thread
	that called it, not the main MWF thread. 
	Patch by Tom Spink <[email protected]>. Fixes #497175.


svn path=/trunk/mcs/; revision=139853
2009-08-13 15:36:14 +00:00
Andrés G. Aragoneses 3d7b265282 * tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Don't whitelist SC
attribs for base methods that are on our assembly.
This finally makes a11y work without security disabled. The summary of
the troubles encountered:
- GetHashCode() -> base method not SC. (r139589+r139649)
- Dispose() -> interface method not SC. (r139796)
- get_Handle() -> interface method SC while impl not SC. (this commit)

svn path=/trunk/mcs/; revision=139852
2009-08-13 15:18:12 +00:00
Jonathan Pryor 48cfc458c7 * Monodoc/provider.cs: Make RootTree.LoadTree() just call
RootTree.LoadTree(null), and move the .config-file parsing into
	  .LoadTree(string) (for when basedir==null).  This will simplify the
	  logic of monodoc, as we want to add the ability to monodoc to use
	  any arbitrary directory, and this will remove the need to do 
	  `if (d==null) RootTree.LoadTree(); else RootTree.LoadTree(d)`.
	  This also conforms to FxDG guidelines.

svn path=/trunk/mcs/; revision=139850
2009-08-13 14:53:14 +00:00
Marek Safar 8aeff11832 2009-08-13 Marek Safar <[email protected]>
* lambda.cs, expression.cs, statement.cs, namespace.cs, ecore.cs:
	Moved resolved logic from Emit to Resolve.


svn path=/trunk/mcs/; revision=139846
2009-08-13 12:29:41 +00:00
Atsushi Eno 5b2374b248 2009-08-13 Atsushi Enomoto <[email protected]>
* class/System.Json/Makefile: add System.Json to net_4_0 profile.

	* class/Makefile : update profile check.


svn path=/trunk/mcs/; revision=139835
2009-08-13 10:26:45 +00:00
Marek Safar a651e64e75 2009-08-13 Marek Safar <[email protected]>
* parameter.cs, decl.cs, roottypes.cs, class.cs, attribute.cs,
	codegen.cs: Reworked atttributes handling of ResolveContext.


svn path=/trunk/mcs/; revision=139833
2009-08-13 08:30:36 +00:00
Jonathan Pryor a4b5bbdf9c * Test/DocTest-v1.cs: Add a comment which uses <format/>, to test html
escaping behavior.
	* Resources/monodoc-ecma.xsd: Permit <format/> in various elements.
	* Test/en.expected.importslashdoc/Mono.DocTest/DocAttribute.xml,
	  Test/html.expected/Mono.DocTest/DocAttribute.html,
	  Test/msxdoc-expected.importslashdoc.xml: Flush.

svn path=/trunk/mcs/; revision=139831
2009-08-13 03:20:10 +00:00
Rodrigo Kumpera 37560f97d8 2009-08-12 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_reflection_type_get_handle): Fix typo.

svn path=/trunk/mono/; revision=139823
2009-08-13 00:01:28 +00:00
Marek Habersack 290b8a6b66 2009-08-13 Marek Habersack <[email protected]>
* CodeTypeReferenceTest.cs: added test for bug #523341

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

	* CodeTypeReference.cs: generic types specialized on arrays must
	not be treated as array declarations. Fixes bug #523341

svn path=/trunk/mcs/; revision=139819
2009-08-12 23:50:32 +00:00
Marek Habersack 1450807c9f 2009-08-13 Marek Habersack <[email protected]>
* Makefile: build only in the 2.0 profile, or otherwise we'll end
	up with the resulting assembly referencing the 4.0 corlib.

svn path=/trunk/mcs/; revision=139818
2009-08-12 23:50:16 +00:00
Rodrigo Kumpera ae714fdff4 2009-08-12 Rodrigo Kumpera <[email protected]>
* bug-528055.il: Regression test for #528055.

svn path=/trunk/mono/; revision=139816
2009-08-12 23:38:04 +00:00
Rodrigo Kumpera 30540a2ec1 2009-08-12 Rodrigo Kumpera <[email protected]>
* class.c: Add mono_class_get_field_from_name_full which does
	the same as mono_class_get_field_from_name but does check field
	signature as well.

	* class-internals.h: Export mono_class_get_field_from_name_full as
	part of the internal API.

	* loader.c (field_from_memberref): Search fields by name and signature
	as it's valid to have two fields with same name but different types.

	Fixes #528055.

svn path=/trunk/mono/; revision=139815
2009-08-12 23:37:51 +00:00
Rodrigo Kumpera 225f580b02 2009-08-10 Rodrigo Kumpera <[email protected]>
* icall-def.h: Add a bunch of temporary icalls to MonoGenericClass.

	* reflection.c (mono_reflection_type_get_handle): Handle MonoGenericClass.

	* reflection.c (encode_cattr_value): Use mono_reflection_type_get_handle to encode
	System.Type.

svn path=/trunk/mono/; revision=139814
2009-08-12 23:37:38 +00:00
Zoltan Varga f29905064f 2009-08-13 Zoltan Varga <[email protected]>
* GCHandleTest.cs: Add a test for null GC handles with type
	WeakTrackResurrection.

svn path=/trunk/mcs/; revision=139813
2009-08-12 23:30:32 +00:00
Zoltan Varga a8155a034b 2009-08-13 Zoltan Varga <[email protected]>
* gc.c (GCHandle_CheckCurrentDomain): Moved this here from icall.c.

	* boehm-gc.c (mono_gc_add_weak_track_handle): Handle nulls.

svn path=/trunk/mono/; revision=139812
2009-08-12 23:29:18 +00:00
Zoltan Varga afe8d6c0ee 2009-08-13 Zoltan Varga <[email protected]>
* gc.c (GCHandle_CheckCurrentDomain): Moved this here from icall.c.

	* boehm-gc.c (mono_gc_add_weak_track_handle): Handle nulls.

svn path=/trunk/mono/; revision=139811
2009-08-12 23:29:11 +00:00
Andrés G. Aragoneses a36d9407cd * tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Look for base methods in
interfaces as well.

svn path=/trunk/mcs/; revision=139796
2009-08-12 20:53:48 +00:00
Jonathan Pryor c100402c75 * mdoc/Makefile: Add ../monodoc/Resources/mdoc-html-format.xsl as a
resource.
	* monodoc/Resources/mdoc-html-format: Added; XSLT file to match
	  "//format[@type='text/html']//*", to support "pass-through"
	  semantics.  This allows you to use actual HTML within your
	  documentation and have it visible to HTML-supporting output formats.
	  WARNING: Use as a "last resort" -- this is primarily intended for
	  importing existing HTML w/o needing lots of extra logic to convert
	  into mdoc format XML first (with a corresponding loss of fidelity).
	  However, it means that if (when) we get non-HTML output format
	  support, the <format type="text/html" /> blocks WILL be skipped for
	  that non-HTML output format.

	  For example, the forever-on-the-back-burner ROFF output support --
	  to remove the use of lynx, as no one ever has it installed --
	  wouldn't be able to support HTML format, so it would skip these
	  <format type="text/html"/> blocks.

	  Consider <format /> the moral equivalent of Perl POD's 
	  '=begin formatname' block; see perlpod(1).
	* monodoc/Resources/mdoc-html-utils.xsl: <xsl:import/> 
	  mdoc-html-format.xsl.  It *must* be imported (NOT included) so that 
	  it will have a lower priority than other <template/>s, thus allowing 
	  the HTML formatter to <xsl:apply-templates/> which then use the 
	  "normal" rules.  This allows:
		<format type="text/html">
			<p><see cref="T:System.String" /></p>
		</format>
	  to work as expected.
	* monodoc/Makefile: Add mdoc-html-format.xsl as a resource.

svn path=/trunk/mcs/; revision=139795
2009-08-12 20:42:42 +00:00
Carlos Alberto Cortez 79681b979f 2009-08-12 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: In mouse move we need to shift the selection in case
	the pointer is on the row headers.
	Fixes #323052.


svn path=/trunk/mcs/; revision=139791
2009-08-12 19:52:12 +00:00
Zoltan Varga 8f7e538cf8 2009-08-12 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_imt_thunk): Rework the arm code to
	avoid clobbering IP.

svn path=/trunk/mono/; revision=139784
2009-08-12 18:20:24 +00:00
Marek Safar 2eea853bba 2009-08-12 Marek Safar <[email protected]>
* decl.cs, ecore.cs, class.cs, attribute.cs, codegen.cs: Pushed
	LookupNamespaceOrType to ResolveContext.


svn path=/trunk/mcs/; revision=139780
2009-08-12 17:49:41 +00:00
Zoltan Varga a887357b8e 2009-08-12 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_magic_trampoline): Allocate a local to
	hold the trampoline argument, so its initial value is available during
	debugging.

svn path=/trunk/mono/; revision=139777
2009-08-12 17:04:03 +00:00
Mark Probst 3bf863158f 2009-08-12 Mark Probst <[email protected]>
* sgen-gc.c, sgen-scan-object.h: Object scanning code factored out
	to sgen-scan-object.h, which can be included and parameterized via
	macros.

	* Makefile.am: sgen-scan-object.h added.

svn path=/trunk/mono/; revision=139768
2009-08-12 14:52:47 +00:00
Marek Safar 376043f138 2009-08-12 Marek Safar <[email protected]>
* typemanager.cs, decl.cs, expression.cs, namespace.cs, ecore.cs,
	class.cs: Removed unused parameters and methods.


svn path=/trunk/mcs/; revision=139767
2009-08-12 14:26:36 +00:00
Zoltan Varga e31c152927 2009-08-12 Zoltan Varga <[email protected]>
* ResolveEventArgs.cs: Add net 4.0 RequestingAssembly property.

svn path=/trunk/mcs/; revision=139765
2009-08-12 13:58:11 +00:00
Mark Probst 33f3172f29 2009-08-12 Mark Probst <[email protected]>
* gc.c: #define GC_dont_gc if we're compiling with SGen.

svn path=/trunk/mono/; revision=139764
2009-08-12 13:25:52 +00:00
Mark Probst 0571870915 2009-08-12 Mark Probst <[email protected]>
* domain.c (mono_domain_free): Free a domain's mono_g_hash_tables
	before clearing a domain in the GC.

svn path=/trunk/mono/; revision=139762
2009-08-12 12:29:17 +00:00
Mark Probst c89b6ded90 2009-08-12 Mark Probst <[email protected]>
* exception.c (mono_exception_from_name_domain): Actually create
	the exception in the specified domain.

	* appdomain.c (mono_domain_create_appdomain_internal): Create the
	OutOfMemoryException a bit later so that the domain is inialized
	"enough" that it works.

svn path=/trunk/mono/; revision=139761
2009-08-12 12:00:10 +00:00
Mark Probst d4428a1862 2009-08-12 Mark Probst <[email protected]>
* threads.c (thread_cleanup): Clean up the cached_culture_info
	array to prevent cross-domain references.

svn path=/trunk/mono/; revision=139760
2009-08-12 11:15:52 +00:00
Mark Probst a239a0faa7 2009-08-12 Mark Probst <[email protected]>
* mono-hash.c (mono_g_hash_mark): If the keys are managed objects,
	rehash the table after marking.

svn path=/trunk/mono/; revision=139759
2009-08-12 11:03:37 +00:00
Jérémie Laval a4b7fe1bf1 2009-08-11 Jérémie Laval <[email protected]>
* Future.cs: Add static to Factory property

svn path=/trunk/mcs/; revision=139739
2009-08-11 21:44:25 +00:00
Andrés G. Aragoneses fbd6416b58 * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Yet another
blacklisted element (SW.dll is not linked).

svn path=/trunk/mcs/; revision=139738
2009-08-11 21:39:05 +00:00
Jérémie Laval 2e21472723 2009-08-11 Jérémie Laval <[email protected]>
In build/common/:
   * Consts.cs.in: Add BOOTSTRAP_NET_4_0.

In class/corlib/System.Collections.Concurrent/:
   * ConcurrentQueue.cs:
   * IProducerConsumerCollection.cs: Add BOOTSTRAP_NET_4_0.

In class/corlib/System.Runtime.CompilerServices/:
   * TypeForwardedFromAttribute.cs: Add BOOTSTRAP_NET_4_0.

In class/corlib/System.Threading/:
   * Watch.cs:
   * SpinWait.cs:
   * CountdownEvent.cs:
   * CancellationToken.cs:
   * ICancelableOperation.cs:
   * CancellationTokenSource.cs:
   * CancellationTokenRegistration.cs: Add BOOTSTRAP_NET_4_0.

In class/corlib/System/:
   * Funcs.cs:
   * Action.cs:
   * AggregateException.cs: Add BOOTSTRAP_NET_4_0.

svn path=/trunk/mcs/; revision=139736
2009-08-11 21:10:04 +00:00
Raja R Harinath 4d8fa96830 * syntax.cs (BackslashNumber.ResolveReference): Improve ECMAScript semantics.
svn path=/trunk/mcs/; revision=139731
2009-08-11 19:11:26 +00:00
Jérémie Laval 6f55cefb86 2009-08-11 Jérémie Laval <[email protected]>
* Make Task.WaitAny use safest continuation mechanism rather than old hack

svn path=/trunk/mcs/; revision=139728
2009-08-11 18:47:49 +00:00
Jérémie Laval 9bf30cecff 2009-08-11 Jérémie Laval <[email protected]>
* Update unit tests
    * Moved BlockingCollection and Barrier in System.dll (with assorted fixes)
    * Fix wrong signature in TaskFactory<T>
    * Update .dll.sources files
    * Move AggregateException in System namespace
    * Remove While in Parallel
    * Correct Wait(CancellationToken) signature in CountdownEvent
    * update corlib.dll.sources

svn path=/trunk/mcs/; revision=139727
2009-08-11 18:47:31 +00:00
Ivan Zlatev e3c1a01725 2009-08-11 Ivan N. Zlatev <[email protected]>
* SplitContainer.cs: Avoid updating the splitter distance if it hasn't
	moved. Updating the distance was causing a re-layout which was resetting
	the clicks counter and preventing DoubleClick from every firing.
	[Fixes bug #521387]

svn path=/trunk/mcs/; revision=139721
2009-08-11 17:41:28 +00:00
Carlos Alberto Cortez 9e4fb5ff17 2009-08-11 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: When a new TableStyle is added, don't create new
	columns for it unless it is empty - this is the correct way to both
	respect the columns if they were provided by our user, or create them
	for him in case the column collection is empty.
	Fixes #323111.


svn path=/trunk/mcs/; revision=139717
2009-08-11 16:13:36 +00:00
Gonzalo Paniagua Javier 3f0c47aa48 2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: the 'Message Layout' can now handle
	self-referencing types. Fixes bug #529353.


svn path=/trunk/mono/; revision=139712
2009-08-11 15:09:11 +00:00
Andrés G. Aragoneses d431cd0cae * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Blacklist more
stuff.

svn path=/trunk/mcs/; revision=139706
2009-08-11 14:35:50 +00:00
Andrés G. Aragoneses 4ead2cb835 * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Blacklist our
bridge.

* tuner/ChangeLog: 

svn path=/trunk/mcs/; revision=139705
2009-08-11 14:26:46 +00:00
Paolo Molaro 14dc3ec96c Tue Aug 11 14:38:57 CEST 2009 Paolo Molaro <[email protected]>
* metadata.c: more documentation for MonoType accessors.


svn path=/trunk/mono/; revision=139702
2009-08-11 12:40:27 +00:00
Gert Driesen 812bfb22f4 * sqlserver7.sql: Added script for SQL Server 7.0, with unicode
encoding (as isql7 does not deal well with utf-8).

svn path=/trunk/mcs/; revision=139701
2009-08-11 11:47:32 +00:00
Atsushi Eno 0ce6eaa803 2009-08-11 Atsushi Enomoto <[email protected]>
* ClientBase.cs : (ChannelBase) now ClientRuntimeChannel demands an
	  explicit address.


svn path=/trunk/mcs/; revision=139700
2009-08-11 11:27:42 +00:00
Atsushi Eno 760543f402 2009-08-11 Atsushi Enomoto <[email protected]>
* WebChannelFactory.cs : added missing constructors.


svn path=/trunk/mcs/; revision=139699
2009-08-11 11:08:13 +00:00
Marek Safar 15bdcfe9d4 New test.
svn path=/trunk/mcs/; revision=139698
2009-08-11 10:19:48 +00:00
Marek Safar 9a4efa2510 2009-08-11 Marek Safar <[email protected]>
* generic.cs, lambda.cs, anonymous.cs, statement.cs, generic-mcs.cs,
	codegen.cs: Finding the best common type of a set of expressions for
	lambda statements.


svn path=/trunk/mcs/; revision=139697
2009-08-11 10:19:13 +00:00
Atsushi Eno 95ce234785 2009-08-11 Atsushi Enomoto <[email protected]>
* IOperationInvoker.cs : fix interface.
	* DefaultOperationInvoker.cs : refresh implementation of the above.
	* BaseMessagesFormatter.cs, OperationInvokerHandler.cs :
	  dependent changes for above.

	* ServiceHostBase.cs : use new IOperationInvoker implementation.

	* System.ServiceModel.dll.sources: add DefaultOperationInvoker.cs.


svn path=/trunk/mcs/; revision=139695
2009-08-11 08:14:30 +00:00
Atsushi Eno 6051696bfd 2009-08-11 Atsushi Enomoto <[email protected]>
* DataContractSerializerOperationBehavior.cs : add missing members.


svn path=/trunk/mcs/; revision=139694
2009-08-11 07:20:13 +00:00
Atsushi Eno 4e5534a936 2009-08-11 Atsushi Enomoto <[email protected]>
* MetadataExchangeClient.cs : add missing async methods.


svn path=/trunk/mcs/; revision=139692
2009-08-11 06:59:48 +00:00
Atsushi Eno 37d821ea9f 2009-08-11 Atsushi Enomoto <[email protected]>
* MetadataResolver.cs : added remaining methods.
	* MetadataExchangeClient.cs : a bit of required changes for above.


svn path=/trunk/mcs/; revision=139691
2009-08-11 06:47:27 +00:00
Atsushi Eno 6c199c5959 2009-08-11 Atsushi Enomoto <[email protected]>
* ServiceDebugBehavior.cs, ServiceMetadataBehavior.cs :
	  add Binding properties. Properties are now auto.
	* ServiceMetadataExtension.cs : take Binding too to build dispatcher.


svn path=/trunk/mcs/; revision=139690
2009-08-11 06:45:58 +00:00
Raja R Harinath af65b00f58 Fix incorrect size definitions where the tail array isn't a list of pointers
* class-internals.h (MONO_SIZEOF_MARSHAL_TYPE): Use offsetof to define size.
* domain-internals.h (MONO_SIZEOF_JIT_INFO): Likewise.
* metadata.h (MONO_SIZEOF_TYPE): Likewise.
* reflection.h (MONO_SIZEOF_CUSTOM_ATTR_INFO): Likewise.

svn path=/trunk/mono/; revision=139689
2009-08-11 06:30:39 +00:00
Gonzalo Paniagua Javier 140d96305c 2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* reflection.h:
	* reflection.c: MONO_SIZEOF_CUSTOM_ATTR_INFO.


svn path=/trunk/mono/; revision=139688
2009-08-11 05:26:27 +00:00
Gonzalo Paniagua Javier abce6ff162 2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* metadata.c:
	* loader.c:
	* metadata-internals.h:
	* method-builder.c:
	* reflection.c: use MONO_SIZEOF_METHOD_HEADER.


svn path=/trunk/mono/; revision=139687
2009-08-11 05:18:54 +00:00
Gonzalo Paniagua Javier 1a998bc0b2 SIZEOF
svn path=/trunk/mono/; revision=139686
2009-08-11 05:13:29 +00:00
Gonzalo Paniagua Javier c171755053 2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* cominterop.c:
	* metadata.c:
	* metadata.h:
	* loader.c:
	* marshal.c:
	* reflection.c: #define for sizeof in MonoType and
	MonoMethodSignature.


svn path=/trunk/mono/; revision=139685
2009-08-11 05:13:11 +00:00
Gonzalo Paniagua Javier 5bcfd754a5 2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* metadata/domain.c:
	* metadata/domain-internals.h:
	* mini/exceptions-arm.c:
	* mini/exceptions-hppa.c:
	* mini/mini.c:
	* mini/exceptions-s390x.c:
	* mini/exceptions-mips.c:
	* mini/exceptions-ppc.c:
	* mini/exceptions-sparc.c:
	* mini/exceptions-alpha.c:
	* mini/aot-runtime.c:
	* mini/mini-trampolines.c:
	* mini/exceptions-x86.c:
	* mini/exceptions-s390.c: add and use #define's instead of sizeof()
	for MonoJitInfo and MonoJitInfoTable.


svn path=/trunk/mono/; revision=139684
2009-08-11 04:49:15 +00:00
Gonzalo Paniagua Javier b860ba49dc 2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* object.c:
	* class.h: use #define instead of sizeof() for MonoRemoteClass.


svn path=/trunk/mono/; revision=139683
2009-08-11 04:31:25 +00:00
Gonzalo Paniagua Javier a29ec2c3ca 2009-08-10 Gonzalo Paniagua Javier <[email protected]>
* metadata/metadata.c:
	* metadata/metadata.h:
	* metadata/object.c:
	* metadata/class-internals.h:
	* metadata/generic-sharing.c:
	* metadata/marshal.c:
	* mini/tramp-arm.c:
	* mini/tramp-amd64.c:
	* mini/tramp-ppc.c:
	* mini/tramp-x86.c: use a #define instead of sizeof() for a few
	structures that use a zero-length array.


svn path=/trunk/mono/; revision=139675
2009-08-10 21:58:39 +00:00
Gonzalo Paniagua Javier 6602b6d728 2009-08-10 Gonzalo Paniagua Javier <[email protected]>
* monobitset.h: add comment.


svn path=/trunk/mono/; revision=139674
2009-08-10 21:40:30 +00:00
Gonzalo Paniagua Javier a04645d022 VS does not support zero-length arrays
svn path=/trunk/mono/; revision=139666
2009-08-10 19:55:57 +00:00
Raja R Harinath 1163a482f7 regexp backreferences: Implement fallback to octal numbers, and ECMAScript semantics.
* syntax.cs (BackslashNumber.ResolveReference): Implement fallback
to octal numbers, and ECMAScript semantics.
* parser.cs (ResolveReferences): Use it.
* RegexMatchTests.cs (RegexTrial0054..60): New.

svn path=/trunk/mcs/; revision=139657
2009-08-10 16:25:10 +00:00
Raja R Harinath 54481772e9 Distinguish between the potentially ambiguous \nnn and the non-ambiguous \k<...> back-references
* syntax.cs (BackslashNumber): New class.
* parser.cs (ParseSpecial): Create it instead of 'Reference' if a
numeric backreference is seen.

svn path=/trunk/mcs/; revision=139656
2009-08-10 16:24:45 +00:00
Raja R Harinath 88c39f81b9 Regex.IsMatch("abcab", @"(?<ab>ab)c\1")
* System.Text.RegularExpressions/parser.cs (ResolveReferences):
Allow named groups to be referred-to by their group numbers too.
* RegexMatchTests.cs (RegexTrial0053): New.

svn path=/trunk/mcs/; revision=139655
2009-08-10 16:24:21 +00:00
Andrés G. Aragoneses 05672500d5 * tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Move FIXME to a better
place. Fix NRE.

svn path=/trunk/mcs/; revision=139649
2009-08-10 15:36:40 +00:00
Atsushi Eno a2c0c02564 2009-08-10 Atsushi Enomoto <[email protected]>
* MoonlightChannelBaseExtension.cs : fixed a couple of generated
	  code to compile on .NET (not in mcs yet; some nested generics bug).


svn path=/trunk/mcs/; revision=139645
2009-08-10 14:55:40 +00:00
Carlos Alberto Cortez 31a3d7f101 2009-08-10 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: Actually call BindColumns in the handler for
	ListManager.MetaDataChanged, since the current code is already taking
	into account the scenario when a custom table style is used - this was
	confusing us before, and that's why we commented the call to
	BindColumns. Also call CallAreasAndInvalidate, to properly reflect the
	changes as needed.
	Fixes #465021.


svn path=/trunk/mcs/; revision=139643
2009-08-10 14:34:55 +00:00
Carlos Alberto Cortez 6dc05aadf5 * DataGridTest.cs: Don't use DataGrid.Rows.Add() for our latest test,
since it is 2.0. Use DataGrid.NewRow() instead.

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


svn path=/trunk/mcs/; revision=139642
2009-08-10 14:33:00 +00:00
Atsushi Eno 5b3009e9d5 2009-08-10 Atsushi Enomoto <[email protected]>
* Driver.cs, CommandLineOptions.cs : add moonlight proxy generator
	  support.
	* MoonlightChannelBaseExtension.cs : new, moonlight proxy generator.
	  Implemented as I[Service|Operation]ContractGenerationExtension.
	* svcutil.exe.sources : add above.


svn path=/trunk/mcs/; revision=139641
2009-08-10 14:22:21 +00:00
Atsushi Eno a88efb6f01 2009-08-10 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : removed ChannelBase proxy stuff,
	  which will be moved to svcutil source.
	  The targets for extension should be the interface, not the client
	  class.


svn path=/trunk/mcs/; revision=139639
2009-08-10 13:30:34 +00:00
Marek Safar e92a799182 2009-08-10 Marek Safar <[email protected]>
* CSharpInvokeBinder.cs, CSharpGetMemberBinder.cs,
	CSharpInvokeMemberBinder.cs: Defer fallback for now.


svn path=/trunk/mcs/; revision=139638
2009-08-10 13:12:58 +00:00
Atsushi Eno aae196a7f4 2009-08-10 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs,
	  OperationContractGenerationContext.cs : support extensions i.e.
	  IServiceContractGenerationExtension and IOperation...(ditto) .


svn path=/trunk/mcs/; revision=139630
2009-08-10 11:38:23 +00:00
Carlos Alberto Cortez 693c94a2c6 2009-08-10 Carlos Alberto Cortez <[email protected]>
* DataGridTest.cs: New test for the interaction between DataSource and
	TableStyles.


svn path=/trunk/mcs/; revision=139623
2009-08-10 08:04:55 +00:00
Carlos Alberto Cortez a2d077c88c 2009-08-10 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: When setting the data source, if we have a user
	provided table style available, force a complete bind in case the
	column styles for that table style is empty.


svn path=/trunk/mcs/; revision=139622
2009-08-10 07:52:45 +00:00
Atsushi Eno 6730801610 2009-08-10 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : first step to add moonlight-based
	  client proxy generator (it is not supported in 3.5. needs to be
	  enabled by some hook, such as reflection-based hack).


svn path=/trunk/mcs/; revision=139621
2009-08-10 07:16:23 +00:00
Miguel de Icaza 718f5f5014 2009-08-09 Miguel de Icaza <[email protected]>
* ConsoleLogger.cs: Change the format of the error and warnings
	strings to work when invoked inside Emacs by not rendering the
	column if available, by using lowercase "error"/"warning" strings
	instead of camelcased versions and to not have unnecessary padding.

2009-07-31  Ankit Jain  <[email protected]>

svn path=/trunk/mcs/; revision=139618
2009-08-09 16:01:18 +00:00
Miguel de Icaza 15b93c6240 Update
svn path=/trunk/mcs/; revision=139617
2009-08-09 15:42:31 +00:00
Ivan Zlatev 82b0da56e3 2009-08-09 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: Handle null and DBNull values.

svn path=/trunk/mcs/; revision=139616
2009-08-09 12:19:59 +00:00
Atsushi Eno 1ed5e1ad21 2009-08-07 Atsushi Enomoto <[email protected]>
* ContractDescription.cs : wcf & 2.1 is specially annoying land :(


svn path=/trunk/mcs/; revision=139597
2009-08-08 00:35:39 +00:00
Rodrigo Kumpera 8aba75ce1f 2009-08-07 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Implement almost all methods required
	to move to inherit from System.Type. The only missing methods
	are Is(Array|Pointer|ByRef)Impl and GetElementType since the
	runtime still generates weird instances for generics instances
	of non-SRE types with SRE types as generic arguments.

2009-08-07 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClassTest.cs: Test for methods that must
	throw.

svn path=/trunk/mcs/; revision=139596
2009-08-07 23:39:30 +00:00
Andrés G. Aragoneses b26affd3c9 2009-08-07 Andrés G. Aragoneses <[email protected]>
* tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Don't use var.
        Remove debug spew.


svn path=/trunk/mcs/; revision=139591
2009-08-07 20:13:28 +00:00
Andrés G. Aragoneses 7efa113808 oops, removed commented code
svn path=/trunk/mcs/; revision=139590
2009-08-07 20:08:30 +00:00
Andrés G. Aragoneses 2dd5ea989d * tuner/Mono.Tuner/InjectSecurityAttributes.cs: Make an enum
protected.

* tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Prevent Type*Exceptions
because of badly placed SC attrib on methods.

* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Typo in
comment.

svn path=/trunk/mcs/; revision=139589
2009-08-07 20:05:52 +00:00
Rodrigo Kumpera 0e57ff8832 2009-08-07 Rodrigo Kumpera <[email protected]>
* ListBindingHelper.cs: Fix the 1.0 build by making this type available
	under that profile.

svn path=/trunk/mcs/; revision=139587
2009-08-07 20:01:53 +00:00
Rodrigo Kumpera e138e70adc 2009-08-07 Rodrigo Kumpera <[email protected]>
* DynamicMethodTest.cs: Add regression test for bug #529238.

svn path=/trunk/mcs/; revision=139585
2009-08-07 19:28:02 +00:00
Jb Evain 8306598e5d hard code the authentication modules for monotouch
svn path=/trunk/mcs/; revision=139584
2009-08-07 19:27:22 +00:00
Rodrigo Kumpera ec795e13df 2009-08-07 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir/CEE_CONSTRAINED_): Handle the
	case when the method is dynamic. Fixes #529238.

svn path=/trunk/mono/; revision=139583
2009-08-07 19:10:11 +00:00
Ivan Zlatev 0cdd60e546 2009-08-07 Ivan N. Zlatev <[email protected]>
* CurrencyManager.cs: Remove duplicate code.

svn path=/trunk/mcs/; revision=139582
2009-08-07 18:24:55 +00:00
Ivan Zlatev f559c9b192 2009-08-07 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewCell.cs, DataGridViewColumn.cs:
	Massive population performance boost. From seconds to ms.
	[Fixes bug #528887]

svn path=/trunk/mcs/; revision=139581
2009-08-07 18:24:25 +00:00
Zoltan Varga 7a6b057458 Add missing files.
svn path=/trunk/mcs/; revision=139576
2009-08-07 15:14:25 +00:00
Marek Safar 5945ed28b3 2009-08-07 Marek Safar <[email protected]>
* AppDomain.cs: IsHomogenous always returns true for now.


svn path=/trunk/mcs/; revision=139563
2009-08-07 10:55:45 +00:00
Marek Safar f541e61ee6 New tests.
svn path=/trunk/mcs/; revision=139562
2009-08-07 10:53:03 +00:00
Marek Safar 727841576e 2009-08-07 Marek Safar <[email protected]>
* dynamic.cs, expression.cs: More dynamic conversions.


svn path=/trunk/mcs/; revision=139561
2009-08-07 10:51:18 +00:00
Marek Safar 25cb5c4338 2009-08-07 Marek Safar <[email protected]>
* CSharpInvokeBinder.cs, CSharpGetIndexBinder.cs, Extensions.cs,
	CSharpArgumentInfo.cs, CSharpInvokeMemberBinder.cs,
	CSharpSetIndexBinder.cs: Skip overhead arguments.


svn path=/trunk/mcs/; revision=139560
2009-08-07 10:49:24 +00:00
Marek Safar ed47ca25ea 2009-08-07 Marek Safar <[email protected]>
* Enumerable.cs (Skip): Optimized and fixed int.MaxValue overflow.


svn path=/trunk/mcs/; revision=139558
2009-08-07 10:44:50 +00:00
Marek Safar c1be496ffb Wrong file name.
svn path=/trunk/mcs/; revision=139554
2009-08-07 08:54:13 +00:00
Atsushi Eno 36c002b7b7 2009-08-07 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : add fixme comment and remove extra FIXME.


svn path=/trunk/mcs/; revision=139553
2009-08-07 08:26:53 +00:00
Atsushi Eno 0c22cb44ff 2009-08-07 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : change .ctor() args.
	  Add proxy hook methods that simply calls those in callback
	  ClientRuntimeChannel.

	* InputOrReplyRequestProcessor.cs : now it could return an instance
	  of dynamically generated proxy over DuplexServiceRuntimeChannel.


svn path=/trunk/mcs/; revision=139550
2009-08-07 06:33:38 +00:00
Atsushi Eno 061135e10b 2009-08-07 Astushi Enomoto <[email protected]>
* System.ServiceModel.dll.sources: add ServiceProxyGenerator.cs.


svn path=/trunk/mcs/; revision=139549
2009-08-07 06:31:22 +00:00
Atsushi Eno 179ab148aa 2009-08-07 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : add new contract getter to
	  create callback contract type (which does not demand
	  ServiceContractAttribute).


svn path=/trunk/mcs/; revision=139548
2009-08-07 06:27:33 +00:00
Atsushi Eno 265b42e192 2009-08-07 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : create callback runtime here, if required.


svn path=/trunk/mcs/; revision=139547
2009-08-07 06:25:58 +00:00
Atsushi Eno 6105965541 2009-08-07 Atsushi Enomoto <[email protected]>
* ClientRuntime.cs : oops, it should have been committed at a time.
	  Change .ctor() args. Make some properties auto.


svn path=/trunk/mcs/; revision=139546
2009-08-07 06:24:08 +00:00
Atsushi Eno c65767432f 2009-08-07 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : factory was not fully optional. Add
	  contextChannel argument to make room for duplex callback channel.


svn path=/trunk/mcs/; revision=139545
2009-08-07 06:21:50 +00:00
Atsushi Eno 1ac99f5eaa 2009-08-07 Atsushi Enomoto <[email protected]>
* ServiceEndpoint.cs, ContractDescription.cs : moved client runtime
	  creator from former to latter.

	* ClientProxyGenerator.cs : split client-specific code generation
	  from those common to service callback generation.
	* ServiceProxyGenerator.cs : new file, uses common basis above.


svn path=/trunk/mcs/; revision=139544
2009-08-07 06:20:19 +00:00
Atsushi Eno a8b7f12194 2009-08-07 Atsushi Enomoto <[email protected]>
* DispatchRuntime.cs : callback runtime is set later.


svn path=/trunk/mcs/; revision=139543
2009-08-07 06:12:21 +00:00
Atsushi Eno b24a5ca835 2009-08-07 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : add callback contract.


svn path=/trunk/mcs/; revision=139542
2009-08-07 06:07:14 +00:00
Miguel de Icaza 857f143465 2009-08-06 Miguel de Icaza <[email protected]>
* generic.cs: This loop was incorrect, it was increment ii, but
	checking for `i'.  This was a change introduced to fix #327497,
	now we fix #424012.


svn path=/trunk/mcs/; revision=139540
2009-08-07 02:59:03 +00:00
Atsushi Eno 0b580f7a17 2009-08-07 Atsushi Enomoto <[email protected]>
* MessageHeader.cs : fill IsReferenceParameter.


svn path=/trunk/mcs/; revision=139539
2009-08-07 02:47:01 +00:00
Miguel de Icaza c8f2bc98cc 2009-08-06 Miguel de Icaza <[email protected]>
* class.cs: Catch another case for cs0533 error, fixes #324782.


svn path=/trunk/mcs/; revision=139538
2009-08-07 02:40:27 +00:00
Atsushi Eno 15dc8695ad 2009-08-07 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : created derived duplex type.


svn path=/trunk/mcs/; revision=139537
2009-08-07 02:30:33 +00:00
Atsushi Eno 44bcad3d2e 2009-08-07 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : close/abort channels.
	  factory is optional now.


svn path=/trunk/mcs/; revision=139536
2009-08-07 02:29:12 +00:00
Rodrigo Kumpera 8018f7b220 2009-08-06 Rodrigo Kumpera <[email protected]>
* object-internals.h (MonoReflectionMethodOnTypeBuilderInst): Add new fields
	to handle inflated generic methods.

	* appdomain.c: Bump corlib version.

	* reflection.c (mono_image_get_method_on_inst_token): Handle generic method
	instances.

	* reflection.c (fixup_method): Same

	* reflection.c (resolve_object): Same.

	* reflection.c (inflate_method): Replace a g_assert_not_reached with a
	g_error and a decent message.

svn path=/trunk/mono/; revision=139535
2009-08-07 01:58:29 +00:00
Rodrigo Kumpera e5d7850ed8 2009-08-06 Rodrigo Kumpera <[email protected]>
* Environment.cs: Bump corlib version.

2009-08-06 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs (InflateType): Add support to inflate
	generic method arguments.

	* MonoGenericClass.cs (GetMethod): Remove restriction
	with generic methods.

2009-08-06 Rodrigo Kumpera  <[email protected]>

	* MethodOnTypeBuilderInstTest.cs: Add tests for
	generic method instances over generic type instances.

2009-08-06 Rodrigo Kumpera  <[email protected]>

	* MethodBuilder.cs: Mark generic_params internal.

	* MethodOnTypeBuilderInst.cs: Add fields to support
	inflated generic methods. Implement generics related
	methods.

svn path=/trunk/mcs/; revision=139534
2009-08-07 01:56:45 +00:00
Rodrigo Kumpera ecb3993369 2009-08-06 Rodrigo Kumpera <[email protected]>
* typemanager.cs (GetGenericArguments): SRE returns null for
	generic methods on type builder instances if they are not generic
	themselves. For example, for Foo<int>::Bar() it returns null, but
	not for Foo<int>::Bar<>() or Foo<int>::Bar<double>().

svn path=/trunk/mcs/; revision=139533
2009-08-07 01:56:21 +00:00
Zoltan Varga bf6d37ff9a 2009-08-06 Zoltan Varga <[email protected]>
* *.*: Applied patch from Marcus Griep <[email protected]>. Update
	C5 to v.1.1.0.

svn path=/trunk/mcs/; revision=139524
2009-08-06 19:55:14 +00:00
Jonathan Pryor 467d71e1c9 * mdoc.exe.sources: Add ../../build/common/Consts.cs to the build.
* Mono.Documentation/mdoc.cs: mdoc version is Consts.MonoVersion, not
	  some hard-coded, perpetually out-of-date version.

svn path=/trunk/mcs/; revision=139518
2009-08-06 18:40:22 +00:00
Jb Evain 337d570c69 2009-08-06 Jb Evain <[email protected]>
* Mono.Cecil/BaseAssemblyResolver.cs:
	Do not crash when the GAC folder can't be found.


svn path=/trunk/mcs/; revision=139517
2009-08-06 18:14:23 +00:00
Marek Safar 11d747479f Updated
svn path=/trunk/mcs/; revision=139504
2009-08-06 15:22:24 +00:00
Marek Safar fad030361f Missing eol-style
svn path=/trunk/mcs/; revision=139503
2009-08-06 15:18:16 +00:00
Marek Safar 4bf58cba75 ChangeLog
svn path=/trunk/mcs/; revision=139501
2009-08-06 15:04:18 +00:00
Massimiliano Mantione 659b6f6fb9 Get the domain from the object because it could not yet be available globally.
svn path=/trunk/mono/; revision=139500
2009-08-06 14:56:47 +00:00
Massimiliano Mantione b3e715f6c0 Profiler writer thread code cleanup.
svn path=/trunk/mono/; revision=139499
2009-08-06 14:56:36 +00:00
Marek Safar 3de7d1eb70 2009-08-04 Marek Safar <[email protected]>
* Updated to r26623.


svn path=/trunk/mcs/; revision=139498
2009-08-06 14:51:39 +00:00
Marek Safar 57e4b484ca Add some 4.0 bits
svn path=/trunk/mcs/; revision=139497
2009-08-06 14:49:56 +00:00
Atsushi Eno 1f41ae038f 2009-08-06 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : unify IChannel field to one.


svn path=/trunk/mcs/; revision=139496
2009-08-06 13:53:23 +00:00
Marek Safar 001a173407 Missing eol-style
svn path=/trunk/mcs/; revision=139495
2009-08-06 13:51:41 +00:00
Atsushi Eno 5dbbd545a1 2009-08-06 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : de-factorying toward callback instancing.


svn path=/trunk/mcs/; revision=139491
2009-08-06 13:25:21 +00:00
Zoltan Varga 552fc44aa2 2009-08-06 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Throw an exception instead
	of asserting when a method is JIT compiled in full-aot mode.

svn path=/trunk/mono/; revision=139470
2009-08-06 12:05:22 +00:00
Atsushi Eno 0958b6e6ce 2009-08-06 Atsushi Enomoto <[email protected]>
* DuplexChannelFactory.cs, ClientRuntimeChannel.cs,
	  ChannelFactory_1.cs : more ServiceEndpoint dep reduction.


svn path=/trunk/mcs/; revision=139467
2009-08-06 11:43:28 +00:00
Atsushi Eno bbe1510f77 2009-08-06 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs, TcpReplyChannel.cs, HttpReplyChannel.cs:
	  implement remaining async methods and LocalAddress.


svn path=/trunk/mcs/; revision=139466
2009-08-06 11:41:46 +00:00
Atsushi Eno 9e4d364a6d 2009-08-06 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : removing extra deps on ServiceEndpoint.

	* ClientRuntime.cs :
	  .ctor() just needs contract. Fill some properties.

	* ServiceEndpoint.cs : follow ClientRuntime change.


svn path=/trunk/mcs/; revision=139464
2009-08-06 08:39:05 +00:00
Atsushi Eno f74dc00c6e 2009-08-06 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : eliminate dependency on ChannelFactory,
	  which will block using it for callback instances.


svn path=/trunk/mcs/; revision=139462
2009-08-06 03:43:17 +00:00
Atsushi Eno e4b8b41c57 2009-08-06 Atsushi Enomoto <[email protected]>
* WebScriptEnablingBehavior.cs : revert GetQueryStringConverter().
	  (MSDN missing entry issue.)


svn path=/trunk/mcs/; revision=139461
2009-08-06 03:39:11 +00:00
Atsushi Eno 9bacb28423 2009-08-06 Atsushi Enomoto <[email protected]>
* web.config: add WCF assemblies as references at compilation.
	* machine.config: add some missing WCF sections (new in 3.5).


svn path=/trunk/mono/; revision=139460
2009-08-06 03:06:03 +00:00
Raja R Harinath 8cfc7de843 known-issues-dmcs: Add testcases that have an assembly version in the error message string.
svn path=/trunk/mcs/; revision=139459
2009-08-06 02:42:24 +00:00
Marek Safar b3810185ba Updated.
svn path=/trunk/mcs/; revision=139414
2009-08-05 17:17:40 +00:00
Marek Safar 47a14feb3f 2009-08-05 Marek Safar <[email protected]>
* argument.cs, dynamic.cs, expression.cs, ecore.cs, class.cs,
	delegate.cs: Work on dynamic binding.


svn path=/trunk/mcs/; revision=139413
2009-08-05 17:17:26 +00:00
Atsushi Eno f5f2ed0068 2009-08-05 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : fix 2.1 build.


svn path=/trunk/mcs/; revision=139407
2009-08-05 15:42:11 +00:00
Rodrigo Kumpera b30bc9dc1a 2009-08-05 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (FullName): mcs depends that FullName
	doesn't return null for instantiations over generic params
	of type builders. We special case this under compiler context.

svn path=/trunk/mcs/; revision=139403
2009-08-05 15:03:51 +00:00
Jérémie Laval 6edd2683c2 2009-08-05 Jérémie Laval <[email protected]>
In class/corlib/System.Threading.Tasks/:
	* Future.cs: Fix for Future, when using TaskCompletionSource
	don't try to run Wait before returning value

In class/corlib/Test/System.Collections.Concurrent/:
	* ConcurrentDictionaryTests.cs: Re-enable ConcurrentDictionary unit
	tests.

svn path=/trunk/mcs/; revision=139402
2009-08-05 15:02:40 +00:00
Rodrigo Kumpera 62ac371188 2009-08-05 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Remove Is(Array|Pointer|ByRef)Impl
	and GetElementType since the runtime still produces instances
	of MonoGenericClass for those types.

svn path=/trunk/mcs/; revision=139400
2009-08-05 14:28:28 +00:00
Atsushi Eno 14c172a9e2 2009-08-05 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs, WebScriptEnablingBehavior.cs :
	  implemented properties as in documented way.
	  Remove extra derived GetQueryStringConverter().


svn path=/trunk/mcs/; revision=139395
2009-08-05 09:54:14 +00:00
Atsushi Eno 17c5d00055 2009-08-05 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs, WebScriptEnablingBehavior.cs :
	  mostly implemented Validate().


svn path=/trunk/mcs/; revision=139394
2009-08-05 09:28:31 +00:00
Atsushi Eno b77ea43126 2009-08-05 Atsushi Enomoto <[email protected]>
* web.config: add WCF assemblies as references at compilation.
	* machine.config: add some missing WCF sections (new in 3.5).


svn path=/trunk/mono/; revision=139392
2009-08-05 07:22:42 +00:00
Atsushi Eno 6311f336e0 2009-08-05 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing listener refactoring. Now it uses
	  ServiceHost to process neighbor connection (not sure if this is
	  right way to go though ...).


svn path=/trunk/mcs/; revision=139391
2009-08-05 06:31:23 +00:00
Atsushi Eno ae9754dd00 2009-08-05 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : actually CallbackInstance is set and
	  should be available.


svn path=/trunk/mcs/; revision=139389
2009-08-05 05:46:11 +00:00
Atsushi Eno 3bb5cdd217 2009-08-05 Atsushi Enomoto <[email protected]>
* DuplexChannelFactory.cs, ClientProxyGenerator.cs, ClientBase.cs,
	  ChannelFactory_1.cs, DuplexClientBase.cs :
	  create IDuplexContextChannel from ClientBase if required.


svn path=/trunk/mcs/; revision=139388
2009-08-05 05:38:48 +00:00
Atsushi Eno 3fa360201b 2009-08-05 Atsushi Enomoto <[email protected]>
* DuplexClientRuntimeChannel.cs : new proxy base channel.


svn path=/trunk/mcs/; revision=139387
2009-08-05 05:36:42 +00:00
Atsushi Eno c91df6baaf 2009-08-05 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : it should implement IServiceChannel,
	  not IClientChannel.


svn path=/trunk/mcs/; revision=139386
2009-08-05 05:35:44 +00:00
Rodrigo Kumpera 5d43739e8a 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClassTest.cs: New file.

svn path=/trunk/mcs/; revision=139381
2009-08-05 01:08:15 +00:00
Rodrigo Kumpera 96cea2f037 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Implement more methods from MonoType.
	Done with all type name related properties.

svn path=/trunk/mcs/; revision=139380
2009-08-05 01:07:54 +00:00
Rodrigo Kumpera 01f8d10d86 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Implement Is*Impl methods to simply
	return false.

svn path=/trunk/mcs/; revision=139379
2009-08-05 00:08:27 +00:00
Rodrigo Kumpera 7e56b7183d 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Implement Make(Array,ByRef,Pointer) using the
	new managed types.

svn path=/trunk/mcs/; revision=139378
2009-08-05 00:08:05 +00:00
Rodrigo Kumpera 211e1e5c9a 2009-08-04 Rodrigo Kumpera <[email protected]>
* MethodOnTypeBuilderInstTest.cs: Really fix the test.

svn path=/trunk/mcs/; revision=139377
2009-08-05 00:07:42 +00:00
Rodrigo Kumpera 1376376f3a 2009-08-04 Rodrigo Kumpera <[email protected]>
* MethodOnTypeBuilderInstTest.cs: Pointer inflation
	was fixed. Use the right assert on the test.

svn path=/trunk/mcs/; revision=139376
2009-08-05 00:07:21 +00:00
Rodrigo Kumpera 83de2c8050 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (InflateType): Implement it in terms of managed
	code and kill the corresponding icall.

svn path=/trunk/mcs/; revision=139375
2009-08-05 00:06:57 +00:00
Rodrigo Kumpera d95e5cdc19 2009-08-04 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs (DerivedType): Implement ToString ().

svn path=/trunk/mcs/; revision=139374
2009-08-05 00:06:36 +00:00
Rodrigo Kumpera 400fa81a6d 2009-08-04 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_generic_class_get_object): Initialized the
	managed type arguments array.

	* object-internals.h (MonoReflectionGenericClass): Add type_arguments field.

	* appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=139373
2009-08-05 00:06:14 +00:00
Rodrigo Kumpera 9b26abaed8 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Add type_arguments field and constructor
	that initializes it.

2009-08-04 Rodrigo Kumpera  <[email protected]>

	* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=139372
2009-08-05 00:06:13 +00:00
Gonzalo Paniagua Javier fc9eac201d Check GC_dont_gc just in case an embedder used it.
svn path=/trunk/mono/; revision=139365
2009-08-04 20:27:21 +00:00
Miguel de Icaza 7bf9a04a99 2009-08-04 Miguel de Icaza <[email protected]>
* Start the split between PLATFORM_WIN32 and TARGET_WIN32.  

	PLATFORM_WIN32 should be used to configure the runtime while
	building it.   TARGET_WIN32 is used for target execution.

	This is used by Mono's AOT cross compiler when running on Windows,
	but targetting a different operating system.    So we have to tell
	those two apart.


svn path=/trunk/mono/; revision=139363
2009-08-04 20:07:39 +00:00
Miguel de Icaza de3ac7c01e 2009-08-04 Miguel de Icaza <[email protected]>
* posix.c (_wapi_stdhandle_create): Split this into a new file to
	more easily support non-Posix platforms.

svn path=/trunk/mono/; revision=139362
2009-08-04 20:01:38 +00:00
Raja R Harinath 27813e51ba * ParallelConcurrentQueueTests.cs (CountTestCase): Remove call to internal method.
svn path=/trunk/mcs/; revision=139349
2009-08-04 15:18:07 +00:00
Marek Safar 0b79091d79 2009-08-04 Marek Safar <[email protected]>
* RuntimeBinderInternalCompilerException.cs,
	RuntimeBinderException.cs: New files.


svn path=/trunk/mcs/; revision=139348
2009-08-04 15:06:51 +00:00
Carlos Alberto Cortez b2ccd60457 * DataGrid.cs: When handling mouse down on a column, don't do any sort
even if the list supports it if we are empty. This way we avoid an exc
	sorting the empty list, and keep the UI compatible with .net.

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


svn path=/trunk/mcs/; revision=139347
2009-08-04 14:50:49 +00:00
Carlos Alberto Cortez 6875c8bfb1 2009-08-04 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: In Edit () check we have any row before trying to use
	the current row. Fixes a IOOR exc with an empty data grid.


svn path=/trunk/mcs/; revision=139346
2009-08-04 14:37:36 +00:00
Zoltan Varga dd20363212 2009-08-04 Zoltan Varga <[email protected]>
* threads.c (thread_cleanup): Free serialized_ui_culture_info. Fixes
	#527902.

svn path=/trunk/mono/; revision=139341
2009-08-04 12:13:25 +00:00
Jérémie Laval 9a8be31839 2009-08-04 Jérémie Laval <[email protected]>
In class/corlib/System.Collections.Concurrent/:
	* ConcurrentDictionary: Fix compilation issue
	with IDictionary methods.

In class/corlib/System.Threading/:
	* SpinLock: Remove unused private methods.

svn path=/trunk/mcs/; revision=139338
2009-08-04 10:58:51 +00:00
Marek Safar a75e4168d2 New test.
svn path=/trunk/mcs/; revision=139336
2009-08-04 10:30:36 +00:00
Marek Safar e547e1244a 2009-08-04 Marek Safar <[email protected]>
A second fix for bug #525342
	* class.cs: Attach partial method attributes to method
	implementation.


svn path=/trunk/mcs/; revision=139335
2009-08-04 10:30:10 +00:00
Atsushi Eno 82a318ea82 2009-08-04 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : fix contract and add receiver iface
	  (might be unnecessary though).


svn path=/trunk/mcs/; revision=139331
2009-08-04 09:55:15 +00:00
Atsushi Eno bfc1a2f6ea 2009-08-04 Atsushi Enomoto <[email protected]>
* OperationContext.cs : GetCallbackChannel<T>() should just return
	  channel (which should also implement T, which must be callback
	  type).


svn path=/trunk/mcs/; revision=139330
2009-08-04 09:53:47 +00:00
Atsushi Eno 5acd571234 2009-08-04 Atsushi Enomoto <[email protected]>
* ServiceBehaviorAttribute.cs : cosmetic spelling fix.


svn path=/trunk/mcs/; revision=139323
2009-08-04 08:44:17 +00:00
Atsushi Eno 3d637ff7a1 2009-08-04 Atsushi Enomoto <[email protected]>
* ReplyHandler.cs : there is better way to check IsOneWay.


svn path=/trunk/mcs/; revision=139322
2009-08-04 08:43:18 +00:00
Atsushi Eno 9977bb5fdd 2009-08-04 Atsushi Enomoto <[email protected]>
* OperationInvokerHandler.cs : One way operation has no reply.
	* ReplyHandler.cs : ditto.


svn path=/trunk/mcs/; revision=139321
2009-08-04 08:14:11 +00:00
Atsushi Eno 98a56ae890 2009-08-04 Atsushi Enomoto <[email protected]>
* make_imt_test.sh: fix freebsd build by Makoto Kishimoto
	  http://lists.ximian.com/pipermail/mono-devel-list/2008-November/029970.html


svn path=/trunk/mono/; revision=139316
2009-08-04 06:02:04 +00:00
Carlos Alberto Cortez c58cdec8e5 2009-08-03 Carlos Alberto Cortez <[email protected]>
* GridColumnStylesCollectionTest.cs: New test for #465019. Also make
	public the test class, so it is *actually* loaded by nunit.


svn path=/trunk/mcs/; revision=139315
2009-08-04 04:16:37 +00:00
Carlos Alberto Cortez 28450f7f3c 2009-08-03 Carlos Alberto Cortez <[email protected]>
* DataGridColumnStyle.cs: Don't call CheckValidDataSource when setting
	the owner DataGrid - even if this seems to be the right thing to do,
	.net is not doind this check at this point, but in later operations.
	Fixes #465019.


svn path=/trunk/mcs/; revision=139314
2009-08-04 03:48:03 +00:00
Jerri Maine 2fa16c23b1 Contributed under the terms of the MIT/X11 license by
Jerry Maine <[email protected]>.

* Mono.Simd/VectorOperations.cs: Added packed double method.

svn path=/trunk/mcs/; revision=139313
2009-08-04 00:36:49 +00:00
Jerri Maine 3909f865ce svn path=/trunk/mono/; revision=139311 2009-08-04 00:34:42 +00:00
Jerri Maine e1de5c8745 svn path=/trunk/mono/; revision=139310 2009-08-04 00:34:07 +00:00
Jerri Maine 6bc5d9eb80 Contributed under the terms of the MIT/X11 license by
Jerry Maine <[email protected]>.

* mono/arch/amd64/amd64-codegen.h: Added missing code gen marco for single packed square root.
* mono/mini/basic-simd.cs: added test for packed double square root.
* mono/mini/cpu-amd64.md: added opcode info for packed double square root.
* mono/mini/cpu-x86.md: added opcode info for packed double square root.
* mono/mini/mini-ops.h: added IR opcode for packed double square root.
* mono/mini/mini-x86.c: added IR to native translation code for packed double square root.
* mono/mini/mini-amd64.c: removed todo for packed double square root.
* mono/mini/simd-intrinsics.c: added method to IR opcode converstion for
packed double square root.

svn path=/trunk/mono/; revision=139309
2009-08-04 00:31:14 +00:00
Miguel de Icaza 2e07af9423 Fix
svn path=/trunk/mcs/; revision=139308
2009-08-04 00:19:56 +00:00
Rodrigo Kumpera 2909089503 2009-08-03 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (initialize): Remember the number
	of events available at initialization time. This is required as
	mcs expect this behavior under compiler context that new events
	are not returned for an instance that was inflated before.

	* MonoGenericClass.cs: Kill GetEvents_internal and implement it
	in terms of managed code.

2009-08-03 Rodrigo Kumpera  <[email protected]>

	* EventBuilder.cs: Make some fields internal.

	* TypeBuilder.cs: Make events field internal.
	Remove some MonoTODOs that are already done.

	* EventOnTypeBuilderInst.cs: New file which implements
	the required functionality by compiler context.

svn path=/trunk/mcs/; revision=139307
2009-08-04 00:10:17 +00:00
Jb Evain 32304d19e0 monotouch uses the real HttpWebRequest
svn path=/trunk/mcs/; revision=139300
2009-08-03 22:22:36 +00:00
Jb Evain 8bba669db0 fix horrible typo
svn path=/trunk/mcs/; revision=139298
2009-08-03 21:19:24 +00:00
Jerri Maine c00f790201 Jerry Maine <[email protected]>.
* mini-amd64.c: Added a change to help tell the difference as 
to what perpose the xmm register is being used--mainly to help
with debuging.
* mini-amd64.h: Changed callee regs to use 15 out of 16 
(one used for special cases) xmm registers for both fp
and simd ops. Added define to turn on new feature in the regalloc
that allows fp and simd ops to share the xmm regs happily.
* codegen.c: Added code to detect for which perpose an xmm reg is
being used (fp or simd) and to translate back and forth to the
correct logical reg bank (fp or simd) for 'spill load's.

svn path=/trunk/mono/; revision=139297
2009-08-03 20:12:47 +00:00
Jerri Maine 6d8abd74c6 Contributed under the terms of the MIT/X11 license by
Jerry Maine <[email protected]>.

basic-simd.cs: Added tests for stressing the regalloc when running with
16 simd regs and when simd and fp ops share the same reg bank.

svn path=/trunk/mono/; revision=139296
2009-08-03 19:44:21 +00:00
Zoltan Varga 60469b50bb 2009-08-03 Zoltan Varga <[email protected]>
* threads.c (ves_icall_System_Threading_Thread_Thread_free_internal):
	Avoid a crash if synch_cs is not set.

svn path=/trunk/mono/; revision=139283
2009-08-03 14:03:26 +00:00
Zoltan Varga 0a76abf0a5 2009-08-03 Zoltan Varga <[email protected]>
* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=139282
2009-08-03 13:29:08 +00:00
Zoltan Varga f1fd210aab 2009-08-03 Zoltan Varga <[email protected]>
* Thread.cs: Always call Thread_free_internal from the finalizer, since
	it frees other things besides the handle. Fixes #527576.

svn path=/trunk/mcs/; revision=139281
2009-08-03 13:28:59 +00:00
Zoltan Varga 8166b1d9c4 2009-08-03 Zoltan Varga <[email protected]>
* threads.c (ves_icall_System_Threading_Thread_Thread_free_internal):
	Handle the case when the handle is 0.

	* appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=139280
2009-08-03 13:27:33 +00:00
Gonzalo Paniagua Javier adcc59f1eb 2009-08-03 Gonzalo Paniagua Javier <[email protected]>
* Attachment.cs: set the body encoding for multipart attachments.
	Fixes bug #527177.


svn path=/trunk/mcs/; revision=139278
2009-08-03 12:48:11 +00:00
Marek Safar 2d06498fe6 New tests.
svn path=/trunk/mcs/; revision=139276
2009-08-03 11:09:41 +00:00
Marek Safar 1eaab48c19 2009-08-03 Marek Safar <[email protected]>
* typemanager.cs, parameter.cs, support.cs, class.cs: Dynamic type
	restrictions.
	
	* rootcontext.cs: Default to langversion v4.


svn path=/trunk/mcs/; revision=139275
2009-08-03 11:09:27 +00:00
Marek Safar 9852bdc096 New test.
svn path=/trunk/mcs/; revision=139273
2009-08-03 10:11:27 +00:00
Marek Safar 5a7f478fb5 2009-08-03 Marek Safar <[email protected]>
* pending.cs: Check return type before member info is set.


svn path=/trunk/mcs/; revision=139272
2009-08-03 10:11:14 +00:00
Marek Safar 8d73d3ee4f 2009-08-03 Marek Safar <[email protected]>
* anonymous.cs: Fully initialize generic hoisted field expression.


svn path=/trunk/mcs/; revision=139269
2009-08-03 09:30:00 +00:00
Miguel de Icaza f10bcc5071 2009-08-03 Miguel de Icaza <[email protected]>
* Extensions.cs: Add a null guard and return null on failure,
	instead of crashing.

svn path=/trunk/mcs/; revision=139263
2009-08-03 04:45:00 +00:00
Miguel de Icaza 6b01e49ed1 2009-08-02 Miguel de Icaza <[email protected]>
* cs-parser.jay: Flag variables declared on the interactive shell
	as used to prevent the 168 warning about local variable not being
	used. 

svn path=/trunk/mcs/; revision=139261
2009-08-02 21:38:52 +00:00
Jb Evain 08dc55550d fix monotouch build
svn path=/trunk/mcs/; revision=139260
2009-08-02 21:11:29 +00:00
Jb Evain 8805f72dd8 add custom dirs for monotouch
svn path=/trunk/mcs/; revision=139259
2009-08-02 20:08:38 +00:00
Jb Evain f2a6f61bad use a 2.0 network stack for MONOTOUCH
svn path=/trunk/mcs/; revision=139255
2009-08-02 15:43:12 +00:00
Jb Evain 7cbccaca2d 2009-08-02 Jb Evain <[email protected]>
* XElement.cs: fix the monotouch build.


svn path=/trunk/mcs/; revision=139254
2009-08-02 14:29:00 +00:00
Zoltan Varga c225b1e276 2009-08-02 Zoltan Varga <[email protected]>
* reflection.c (mono_type_get_object): Fix a warning.

svn path=/trunk/mono/; revision=139253
2009-08-02 13:33:15 +00:00
Jonathan Pryor b9bd8c7158 * Mono.Documentation/monodocer.cs: Sometimes <AssemblyVersion/> is
found twice when it's actually present only once (!).  Attempt to
	  work around this by usinq LINQ instead of a foreach (which oddly
	  works...).

svn path=/trunk/mcs/; revision=139252
2009-08-02 11:42:45 +00:00
Miguel de Icaza 57dea3038a 2009-08-01 Miguel de Icaza <[email protected]>
* Various changes to support the non-XAP XmlSchema resolution on
	the Moonlight build.    

	Major missing feature: WebRequest resolution.

svn path=/trunk/mcs/; revision=139248
2009-08-01 17:57:00 +00:00
Miguel de Icaza 3fc2ac11bc 2009-08-01 Miguel de Icaza <[email protected]>
* Various changes to support the non-XAP XmlSchema resolution on
	the Moonlight build.    

	Major missing feature: WebRequest resolution.

svn path=/trunk/mcs/; revision=139246
2009-08-01 16:31:08 +00:00
Miguel de Icaza a155696f61 Do not use Xap loading on MonoTouch profile
svn path=/trunk/mcs/; revision=139245
2009-08-01 16:12:22 +00:00
Gert Driesen 5def661365 * SqlDataReaderTest.cs: Fixes for SQL Server 7.0 / TDS 7. Avoid
catching and rethrowing AssertionException. Minor code formatting
changes.

svn path=/trunk/mcs/; revision=139244
2009-08-01 14:38:27 +00:00
Mark Probst 36208d6a9f 2009-08-01 Mark Probst <[email protected]>
* sgen-gc.c (mono_gc_wbarrier_value_copy): Don't compute the GC
	descriptor here.  We assume it's already been computed.

	* generic-sharing.c (instantiate_other_info): Compute the GC
	descriptor for info type MONO_RGCTX_INFO_KLASS.

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

	* method-to-ir.c (mini_emit_stobj): If we call mono_value_copy()
	in shared generic code, we might have to look up the class in the
	RGCTX.  If we use the class directly, compute its GC descriptor.

svn path=/trunk/mono/; revision=139243
2009-08-01 14:16:18 +00:00
Gert Driesen b5fa4ed568 * SqlCommandBuilderTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlCommandTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlConnectionTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlDataAdapterTest.cs: Added tests for Update. Fixed Fill_Test_Data,
Fill_Test_PriKey and Fill_Test_FillErrorTest to pass on SQL Server 7.0.
Avoid catching and rethrowing AssertionException. Minor improvements.
* SqlParameterTest.cs: Fixes for SQL Server 7.0 / TDS 7. Updated
ZeroLengthString to pass on 1.0 profile.
* SqlTransactionTest.cs: Fixes for SQL Server 7.0 / TDS 7.

svn path=/trunk/mcs/; revision=139242
2009-08-01 13:07:28 +00:00
Gert Driesen fd94203d2e * SqlParameter.cs (ConvertToFrameworkType): Only wrap FormatException
on 2.0 profile.

svn path=/trunk/mcs/; revision=139241
2009-08-01 13:01:05 +00:00
Mark Probst 90ba0aaafa 2009-08-01 Mark Probst <[email protected]>
* reflection.c (mono_type_get_object): MonoDomain is an unmanaged
	type, so don't use MONO_OBJECT_SETREF to set a field.

svn path=/trunk/mono/; revision=139240
2009-08-01 12:14:43 +00:00
Mark Probst ce064fa7b3 2009-08-01 Mark Probst <[email protected]>
* gc.c: We were missing one case where invoking a finalizer would
	not reset the domain.  Also, in the finalizer thread loop, assert
	that we're in the root domain.

svn path=/trunk/mono/; revision=139239
2009-08-01 12:06:21 +00:00
Gert Driesen 3af3766d03 * app-net_1.1.config: added engine config for SQL Server 7.0. Fixed
values of clientVersion.
* app-net_2.0.config: added engine config for SQL Server 7.0. Fixed
values of clientVersion.

svn path=/trunk/mcs/; revision=139238
2009-08-01 12:01:37 +00:00
Zoltan Varga c7ef4e79ad 2009-08-01 Zoltan Varga <[email protected]>
* mono-sigcontext.h (UCONTEXT_GREGS): Fix freebsd definition.

svn path=/trunk/mono/; revision=139237
2009-08-01 11:16:12 +00:00
Jonathan Pryor 57489528ee Oops.
svn path=/trunk/mcs/; revision=139231
2009-08-01 02:36:49 +00:00
Rodrigo Kumpera 5d42ade56b 2009-07-31 Rodrigo Kumpera <[email protected]>
TypeTest.cs: Add test for Type::GetArrayRank.

svn path=/trunk/mcs/; revision=139230
2009-08-01 02:32:27 +00:00
Rodrigo Kumpera 007ee74848 2009-07-31 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_MonoType_GetArrayRank): Throw ArgumentException
	if the type is not an array.

svn path=/trunk/mono/; revision=139229
2009-08-01 02:32:20 +00:00
Jonathan Pryor b422ade2ea * Mono.Documentation/monodocer.cs: Record attributes that are placed
on property get/set and event add/remove accessors.
	* Test/DocTest-v1.cs: Add attributes to some accessors.
	* Test/en.expected.importslashdoc/Mono.DocTest/Widget.xml,
	  Test/en.expected.since/Mono.DocTest/Widget.xml,
	  Test/en.expected/Mono.DocTest/Widget.xml,
	  Test/html.expected/Mono.DocTest/Widget.html,
	  Test/msxdoc-expected.importslashdoc.xml: Flush.

svn path=/trunk/mcs/; revision=139227
2009-08-01 02:20:01 +00:00
Rodrigo Kumpera ddd3882ac3 2009-07-31 Rodrigo Kumpera <[email protected]>
TypeTest.cs: Add test for Type::DeclaringMethod.
	In special for throwing when the type is not a
	generic param and for DeclaringMethod returning
	a method bound to the right type.

svn path=/trunk/mcs/; revision=139226
2009-08-01 02:17:11 +00:00
Rodrigo Kumpera 5716d8a965 2009-07-31 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_MonoType_get_DeclaringMethod): Return the
	method bound to the declaring type of the method. Raise an exception
	if the type is not a generic param.

svn path=/trunk/mono/; revision=139225
2009-08-01 02:13:54 +00:00
Rodrigo Kumpera 794a0718f7 2009-07-31 Rodrigo Kumpera <[email protected]>
* mini.c (mono_jit_runtime_invoke): Fix a warning.

svn path=/trunk/mono/; revision=139223
2009-08-01 00:07:05 +00:00
Rodrigo Kumpera 20419622f9 2009-07-31 Rodrigo Kumpera <[email protected]>
* class.c (print_unimplemented_interface_method_info): Print the
	full type name.

	* class.c (mono_class_setup_vtable_general): When dealing with a
	generic instance first check if the generic type definition is
	not broken.

svn path=/trunk/mono/; revision=139222
2009-08-01 00:06:49 +00:00
Rodrigo Kumpera 353c7b6dbf 2009-07-31 Rodrigo Kumpera <[email protected]>
* mini.c (mono_jit_runtime_invoke): Initialize the class and
	check for errors. Fixed the case when the class with the Main
	method is broken.

svn path=/trunk/mono/; revision=139221
2009-08-01 00:06:34 +00:00
Rodrigo Kumpera 94ec38fc1b 2009-07-31 Rodrigo Kumpera <[email protected]>
* generic_type_definition.2.cs: This test verifies for a lot of stuff
	that must work under compiler context. A few of those used to work outside
	of it, so this test worked by pure luck.
	The fix is to run the test under compiler context.

svn path=/trunk/mono/; revision=139220
2009-08-01 00:06:19 +00:00
Jerri Maine e1093c73c0 cpu-amd64.md: Fixed simple bug in machine discrition file.
Contributed under the terms of the MIT/X11 license by
Jerry Maine <[email protected]>.

svn path=/trunk/mono/; revision=139218
2009-07-31 23:28:30 +00:00
Jérémie Laval 7baa3c7178 In class/corlib/:
* corlib.dll.sources: Added TaskCompletionSource
        * corlib_test.dll.sources: Removed SnziTests due to
		visibility change in Snzi.
        Added TaskCompletionSource tests.

In class/corlib/System.Collections.Concurrent/:
        * ConcurrentBag.cs:
        * ConcurrentQueue.cs:
        * ConcurrentStack.cs:
        * ConcurrentSkipList.cs:
        * ConcurrentDictionary.cs:
        * IProducerConsumerCollection.cs: Make the namespace comply to 4.0b1

In class/corlib/System.Threading.Tasks/:
        * Task.cs:
        * Future.cs:
        * TaskFactory.cs:
        * TaskCanceledException.cs:
        * TaskSchedulerException.cs:
        * Internal/SchedulerProxy.cs: Make System.Threading.Tasks API fully 4.0 b1 compliant.
        * TaskCompletionSource.cs: Add TaskCompletionSource class

In class/corlib/System.Threading/:
        * Snzi.cs:
        * Parallel.cs:
        * SpinLock.cs:
        * SpinWait.cs:
        * ThreadLocal.cs:
        * SemaphoreSlim.cs:
        * CountdownEvent.cs:
        * ManualResetEventSlim.cs:
        * CancellationTokenSource.cs: Various 4.0 b1 API mismatch fixes.

In class/corlib/Test/System.Collections.Concurrent/:
        * ConcurrentDictionary: Ignore tests until runtime/compiler
        is fixed

svn path=/trunk/mcs/; revision=139206
2009-07-31 18:08:49 +00:00
Zoltan Varga 8de6ac7766 2009-02-11 Tom Hindke <[email protected]>
* marshal.c (mono_array_to_lparray): Implemented so managed object types are converted to native types.

	* marshal.c: Added new method mono_free_lparray to free memory allocated by mono_array_to_lparray

	* marshal.c (emit_marshal_array): call emit mono_free_lparray where approprate.

	* marshal.c (conv_to_icall): added MONO_MARSHAL_FREE_LPARRAY case

	* metadata.h (MonoMarshalConv enum): added MONO_MARSHAL_FREE_LPARRAY

	Code is contributed under MIT/X11 license

svn path=/trunk/mono/; revision=139201
2009-07-31 17:10:30 +00:00
Atsushi Eno 4bd222cfb5 2009-07-31 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : raise error on multiple endpoint match
	  (documented at EndpointDispatcher.FilterPriority).


svn path=/trunk/mcs/; revision=139194
2009-07-31 16:10:27 +00:00
Marek Safar 534fd892ce 2009-07-31 Marek Safar <[email protected]>
* parameter.cs, dynamic.cs, support.cs, class.cs, delegate.cs,
	attribute.cs: Emit dynamic export attribute.


svn path=/trunk/mcs/; revision=139191
2009-07-31 15:24:30 +00:00
Atsushi Eno 586aae4f6a 2009-07-31 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing [MC-PRCH] implementation. Rewrote
	  connection part to use new internal IPeerConnectorContract for
	  neighbor connection.


svn path=/trunk/mcs/; revision=139174
2009-07-31 12:42:24 +00:00
Jérémie Laval 58e13b8909 * Fix System.Collections.Concurrent API mismatches
* Update unit tests with the modified API

svn path=/trunk/mcs/; revision=139172
2009-07-31 12:36:18 +00:00
Atsushi Eno 81a4201cfe 2009-07-31 Atsushi Enomoto <[email protected]>
* ChannelListenerBase_1.cs, TcpChannelListener.cs,
	  PeerChannelListener.cs, HttpChannelListener.cs :
	  support ListenUri accordingly too so that it could be used when
	  it is different from LocalAddress.Uri.


svn path=/trunk/mcs/; revision=139171
2009-07-31 12:27:07 +00:00
Zoltan Varga 81a87bb839 2009-07-31 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_output_basic_block): Implement OP_IREM_UN_IMM.

svn path=/trunk/mono/; revision=139169
2009-07-31 12:24:32 +00:00
Atsushi Eno 479ce8b9a0 2009-07-31 Atsushi Enomoto <[email protected]>
* TcpChannelFactory.cs, TcpDuplexSessionChannel.cs,
	  TcpRequestChannel.cs : use Via uri to validate and connect.


svn path=/trunk/mcs/; revision=139162
2009-07-31 11:46:23 +00:00
Atsushi Eno 4215f77e2a 2009-07-31 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs, ClientBase.cs,
	  ChannelFactory_1.cs : now proxies take remote address and via uri
	  which could be optionally specified and use it whenever required.


svn path=/trunk/mcs/; revision=139161
2009-07-31 11:42:51 +00:00
Atsushi Eno 6940bbad21 2009-07-31 Atsushi Enomoto <[email protected]>
* RequestChannelBase.cs, DuplexChannelBase.cs :
	  Return endpoint address Uri when no explicit Via uri is specified.
	* ChannelFactoryBase.cs : Remove extra async close methods.
	  Add async open methods. Reject null EndpointAddress.
	* PeerChannelFactory.cs : remove async open methods (now in base).


svn path=/trunk/mcs/; revision=139160
2009-07-31 11:40:39 +00:00
Raja R Harinath f741a048f0 IList implementation: convert NullReferenceException to ArgumentException
* List.cs (IList.this.set): Convert NullReference and InvalidCast
exceptions into ArgumentExceptions.
(IList.Add, IList.Contains, IList.IndexOf, IList.Insert, IList.Remove):
Convert NullReferenceException to ArgumentException.
* ListTest.cs: Add a few testcases for IList interface, using null
values with a List<int>.

svn path=/trunk/mcs/; revision=139159
2009-07-31 10:25:04 +00:00
Atsushi Eno 99764f539c 2009-07-31 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : new file for [MC-PRCH].

	* System.ServiceModel.dll.sources: add IPeerConnectorContract.cs.


svn path=/trunk/mcs/; revision=139158
2009-07-31 09:27:47 +00:00
Atsushi Eno d8ccfe78c1 2009-07-31 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : set correct message endpoint (To header).


svn path=/trunk/mcs/; revision=139148
2009-07-31 05:23:02 +00:00
Atsushi Eno df8af8990c 2009-07-31 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
	  DuplexChannelBase.cs : set LocalAddress property at base.


svn path=/trunk/mcs/; revision=139147
2009-07-31 05:13:36 +00:00
Atsushi Eno da98a889f4 2009-07-31 Atsushi Enomoto <[email protected]>
* ServiceEndpoint.cs : ListenUri defaults to Address.Uri.

	* ServiceEndpointTest.cs : new.

	* System.ServiceModel_test.dll.sources: add ServiceEndpointTest.cs.


svn path=/trunk/mcs/; revision=139146
2009-07-31 05:09:24 +00:00
Rodrigo Kumpera 00abc35d4c 2009-07-30 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (IsDefined): Throw if not
	created and not in compiler context.

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

	* TypeBuilderTest: Test for IsDefined.

svn path=/trunk/mcs/; revision=139142
2009-07-31 02:46:00 +00:00
Rodrigo Kumpera b7758f888a 2009-07-30 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetNestedTypes): Throw if not
	created and not in compiler context.

svn path=/trunk/mcs/; revision=139137
2009-07-31 00:10:32 +00:00
Rodrigo Kumpera 04e8f61052 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetEvents): Throw if not created
	and not in compiler context.

	* TypeBuilder.cs (GetNestedType): Don't rely on
	MonoType implementation as it doesn't work if the
	nested type is defined after the TypeBuilder is
	created.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest: Test for GetNestedType.

svn path=/trunk/mcs/; revision=139136
2009-07-31 00:10:04 +00:00
Rodrigo Kumpera ac5d999caf 2009-07-30 Rodrigo Kumpera <[email protected]>
cil-opcodes.xml: Fix naming of stelem and ldelem to be
	the same of the spec. Fix stack effect of stelem. Change
	type of constrained and readonly prefixes.

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

	* method-to-ir.c: Fix naming of stelem and ldelem.

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

	* verify.c: Fix naming of stelem and ldelem.

svn path=/trunk/mono/; revision=139135
2009-07-31 00:04:16 +00:00
Gonzalo Paniagua Javier be2400e182 remove warnings
svn path=/trunk/mono/; revision=139134
2009-07-30 23:08:34 +00:00
Ankit Jain d38f12dd54 * ConsoleLogger.cs: Keep track of all the errors and warnings
and show them at the end.

svn path=/trunk/mcs/; revision=139127
2009-07-30 21:24:40 +00:00
Ankit Jain e2b6b480a7 * Target.cs (Build): Log a message if a target is skipped.
(LogMessage): New.
* BuildTask.cs (Execute): Log error if task execution fails.

svn path=/trunk/mcs/; revision=139126
2009-07-30 21:24:18 +00:00
Ankit Jain 28b1a41c68 * MSBuild.cs (Execute): Log error if the file doesn't exist.
svn path=/trunk/mcs/; revision=139125
2009-07-30 21:23:56 +00:00
Ankit Jain f9b9d05796 * ErrorUtilities.cs (ShowUsage): Implement.
svn path=/trunk/mcs/; revision=139124
2009-07-30 21:23:08 +00:00
Gonzalo Paniagua Javier 973bc25490 2009-07-30 Gonzalo Paniagua Javier <[email protected]>
* HttpResponseWrapper.cs: removed a few TODO/NotImplemented.
	Fixes bug #526297.


svn path=/trunk/mcs/; revision=139122
2009-07-30 21:20:30 +00:00
Gert Driesen 86f912a56e * SqlParameterTest.cs: Improved tests for bug #382589.
svn path=/trunk/mcs/; revision=139119
2009-07-30 19:56:59 +00:00
Mark Probst ec8cf09817 2009-07-30 Mark Probst <[email protected]>
* generic-sharing.c: Replace the templates lock with the loader
        lock because of very hard to resolve deadlock issues.

svn path=/trunk/mono/; revision=139118
2009-07-30 19:54:08 +00:00
Raja R Harinath 1e3534eca1 Test the Dictionary Keys and Values slices
* DictionaryTest.cs (KeyEnumerator_Current): New test.  Test the
Keys slice enumerator.
(ValueEnumerator_Current): Likewise, for the Values slice.

svn path=/trunk/mcs/; revision=139117
2009-07-30 19:47:53 +00:00
Gert Driesen 594407eb88 * SqlParameter.cs: Modified ConvertToFrameworkType to only perform
conversion if type of value is different from "system type". Make
DbTypeMapping hashtable available on 1.0 profile, and add missing
mappings. Wrap FormatException adding information on conversion
that failed.
* SqlParameterTest.cs: Added test for bug #526794, and failed
conversion from (zero-length) string to int. Changed spaces to tabs.

svn path=/trunk/mcs/; revision=139116
2009-07-30 19:42:59 +00:00
Raja R Harinath 876b8f2fb6 Fix Enumerator.Current handling in SortedDictionary<,>
* System.Collections.Generic/RBTree.cs (NodeEnumerator.check_current):
 New helper.
(NodeEnumerator.Current): Don't check invariants.
* SortedDictionary.cs (Enumerator.Current): Likewise.
(ValueCollection.Enumerator.Current): Likewise.
(KeyCollection.Enumerator.Current): Likewise.

* Test/System.Collections.Generic/SortedDictionaryTest.cs
(Enumerator_Current, KeyEnumerator_Current, ValueEnumerator_Current): New tests.

svn path=/trunk/mcs/; revision=139115
2009-07-30 19:42:04 +00:00
Raja R Harinath 6d523ef3e4 * List.cs (Enumerator.MoveNext): Simplify.
svn path=/trunk/mcs/; revision=139112
2009-07-30 19:04:39 +00:00
Raja R Harinath ac80cb8d8e * Dictionary.cs (Enumerator.MoveNext): Avoid an out-of-bounds access.
svn path=/trunk/mcs/; revision=139111
2009-07-30 19:04:14 +00:00
Zoltan Varga b7528a8ae7 2009-07-30 Zoltan Varga <[email protected]>
* driver.c (main_thread_handler): Check that the assembly loaded
	matches the filename when doing AOT.

svn path=/trunk/mono/; revision=139110
2009-07-30 18:36:30 +00:00
Raja R Harinath b0ce9fa874 * HashSet.cs (Enumerator.IEnumerator.Reset): Check invariants.
svn path=/trunk/mcs/; revision=139107
2009-07-30 18:03:20 +00:00
Raja R Harinath 16b5f90d63 Fix HashSet<>-related parts of #491858, #517415
* System.Collections.Generic/HashSet.cs (Enumerator.next): Rename from
Enumerator.current and change meaning to be the index of the slot to start
searching on the next iteration.
(Enumerator.current): New.  Contains the current element.
(Enumerator.MoveNext): Update.  Avoid an out-of-bounds access.
(Enumerator.Current): Don't check any invariants.
* Test/System.Collections.Generic/HashSetTest.cs (Enumerate_Current):
New test, including cases from #491858, #517415.

svn path=/trunk/mcs/; revision=139105
2009-07-30 17:49:41 +00:00
Veerapuram Varadhan e08e9acfcc 1.x build fix
svn path=/trunk/mcs/; revision=139098
2009-07-30 16:57:47 +00:00
Ankit Jain bf05078a49 * standalone/Project01/final-outputs.txt: Update to include obj/
dir also, and sort the list.

svn path=/trunk/mcs/; revision=139095
2009-07-30 16:17:44 +00:00
Gonzalo Paniagua Javier c676b64524 2009-07-30 Gonzalo Paniagua Javier <[email protected]>
* BuildManager.cs: path fixup should work now for /foo running on
	/foo. Fixes bug #526563.


svn path=/trunk/mcs/; revision=139093
2009-07-30 15:56:49 +00:00
Ankit Jain 9fd63e3517 Fix bug #484771.
* xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Add support
for $(OutDir).

svn path=/trunk/mcs/; revision=139092
2009-07-30 15:54:58 +00:00
Ankit Jain d5dd825784 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Engine.cs (.ctor): Set default BinPath. Currently this assumes
	v2.0, this will change when multi-targeting lands.

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

	* EngineTest.cs (TestNewProject): Disable. Invalid for
	v3.5 profile.

svn path=/trunk/mcs/; revision=139089
2009-07-30 15:20:50 +00:00
Raja R Harinath ef326448f4 List<>-relevant fix for #491858 and #517415
* System.Collections.Generic/List.cs (Enumerator.current): New.
(Enumerator.MoveNext): Update it.
(Enumerator.Current): Don't verify any invariants.
(Enumerator.Dispose): Set 'l' to null.
* Test/System.Collections.Generic/ListTest.cs (Enumerator_Current):
New test, includes relevant parts of #491858 and #517415.

svn path=/trunk/mcs/; revision=139087
2009-07-30 14:55:24 +00:00
Veerapuram Varadhan 302d82e42d 2009-07-30 Veerapuram Varadhan <[email protected]>
** Fixes the issue reported by Scott <[email protected]> in Mono-list
	* SqlParameter.cs (ConvertToFrameworkType): Return String.Empty
	in case of zero-length strings.

svn path=/trunk/mcs/; revision=139086
2009-07-30 14:32:52 +00:00
Veerapuram Varadhan 9d78eb395e 2009-07-30 Veerapuram Varadhan <[email protected]>
* CustomDataClassGenerator.cs (MakeSafeName): Throw NRE instead of
	ArgumentNullException - fixes failing tests.

svn path=/trunk/mcs/; revision=139085
2009-07-30 14:32:29 +00:00
Jérémie Laval b5d889b654 Author: Jérémie Laval <[email protected]>
Date:   Thu Jul 30 15:37:21 2009 +0200

First code drop of ParallelFx.

svn path=/trunk/mcs/; revision=139083
2009-07-30 13:56:32 +00:00
Raja R Harinath a22621964d Fix Dictionary<,>-relevant parts of #491858 and #517415
* System.Collections.Generic/Dictionary.cs (Enumerator.current): New.
(Enumerator.MoveNext): Update it.
(Enumerator.Current): Don't verify any invariants.
* Test/System.Collections.Generic/DictionaryTest.cs (Enumerator_Current):
New test, includes relevant parts of #491858 and #517415.

svn path=/trunk/mcs/; revision=139082
2009-07-30 13:52:39 +00:00
Ankit Jain b560a41ec9 * ErrorUtilities.cs: Set version to Consts.MonoVersion .
svn path=/trunk/mcs/; revision=139081
2009-07-30 13:47:26 +00:00
Veerapuram Varadhan 6a4a2997d8 2009-07-30 Veerapuram Varadhan <[email protected]>
* SqlDataAdapter.cs (IDbDataAdapter.*Command): Remove over-engineered
	checks as the base implementation is changed.

svn path=/trunk/mcs/; revision=139080
2009-07-30 13:41:31 +00:00
Marek Safar db15ad807c Updated.
svn path=/trunk/mcs/; revision=139079
2009-07-30 13:32:08 +00:00
Marek Safar 168b365892 2009-07-30 Marek Safar <[email protected]>
* expression.cs: More verifier work.


svn path=/trunk/mcs/; revision=139078
2009-07-30 13:31:41 +00:00
Marek Safar b54ac55eab 2009-07-30 Marek Safar <[email protected]>
* AppDomain.cs: Implemented 2.0 CreateDomain.


svn path=/trunk/mcs/; revision=139077
2009-07-30 13:27:12 +00:00
Marek Safar ff23ffb22f 2009-07-30 Marek Safar <[email protected]>
* ApplicationTrust.cs: Add FullTrustAssemblies.


svn path=/trunk/mcs/; revision=139076
2009-07-30 13:23:09 +00:00
Marek Safar a4a749d6a3 2009-07-30 Marek Safar <[email protected]>
* ReflectionPermission.cs: RestrictedMemberAccess can be set.

	* ReflectionPermissionFlag.cs: Add [Obsolete] on NET_4_0.


svn path=/trunk/mcs/; revision=139075
2009-07-30 13:19:58 +00:00
Ankit Jain c437ca8cfb * xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Output
ResolvedFiles to @(ReferencePath), required for IDE integration.

svn path=/trunk/mcs/; revision=139074
2009-07-30 13:12:07 +00:00
Ankit Jain b71aeab593 * ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
required for IDE integration.
* AssemblyResolver.cs (GetResolvedReference): All the original metadata
should be retained. Track api changes.

svn path=/trunk/mcs/; revision=139073
2009-07-30 13:10:54 +00:00
Veerapuram Varadhan 543d5aad8e Conflict merge between trunk/local tree
svn path=/trunk/mcs/; revision=139072
2009-07-30 12:38:11 +00:00
Veerapuram Varadhan 5c9d9ec104 2009-07-29 Veerapuram Varadhan <[email protected]>
* SqlParameterTest.cs: Marked SqlChars/SqlBytes tests for SqlValue
        as NotWorking as these types are considered as SqlString/SqlBinary
        respectively.

svn path=/trunk/mcs/; revision=139071
2009-07-30 12:37:57 +00:00
Veerapuram Varadhan d1dd7697ac 2009-07-29 Veerapuram Varadhan <[email protected]>
* SqlDataAdapter.cs (IDbDataAdapter.*Command): Revert some of my earlier
	changes.  Validate the incoming value as we use bases' implementation now.
	Fixes failing tests.

	* SqlParameter.cs (GetSqlValue): Simplify handling of SqlValue and SqlTypes.
	(SqlTypeToFramworkType): Added support for SqlChars and SqlBytes types.

svn path=/trunk/mcs/; revision=139070
2009-07-30 12:37:44 +00:00
Veerapuram Varadhan 741394be33 2009-07-29 Veerapuram Varadhan <[email protected]>
* DbDataAdapter.cs (*Command properties): Don't call IDbDataAdapter.*Command,
	as provider specific DbDataAdapters would have its own implementation.

svn path=/trunk/mcs/; revision=139069
2009-07-30 12:37:30 +00:00
Veerapuram Varadhan f866c62874 2009-07-28 Gert Driesen <[email protected]>
* More clean up of fix for #522624/#507663
	* SqlCommandBuilder.cs: Appropriately handle rowUpdatingHandler and
	more cleanup for 2.0 profile.

svn path=/trunk/mcs/; revision=139068
2009-07-30 12:37:15 +00:00
Veerapuram Varadhan 9c7e6d31d1 2009-07-27 Veerapuram Varadhan <[email protected]>
* DbCommandBuilder.cs (CreateUpdateCommand): Don't set Nullable
	property "Original_*" fields.

svn path=/trunk/mcs/; revision=139067
2009-07-30 12:36:57 +00:00
Veerapuram Varadhan d3e0a1b198 2009-07-26 Veerapuram Varadhan <[email protected]>
* SqlParameter.cs (get/set_SqlValue, GetSqlValue): Return the appropriately
	SQL-typed param value.  Fixes failing provider tests.

svn path=/trunk/mcs/; revision=139066
2009-07-30 12:36:37 +00:00
Veerapuram Varadhan 15afef1475 2009-07-24 Veerapuram Varadhan <[email protected]>
* DbCommandBuilder.cs (Create*Command): Fill up the missing pieces from
	SqlCommandBuilder version of Create*Commands that fixes the failing tests.

svn path=/trunk/mcs/; revision=139065
2009-07-30 12:36:23 +00:00
Veerapuram Varadhan ea3ee3d074 Test fix.
svn path=/trunk/mcs/; revision=139064
2009-07-30 12:36:07 +00:00
Veerapuram Varadhan 8d5211d815 conflict fix between trunk and local tree
svn path=/trunk/mcs/; revision=139063
2009-07-30 12:35:52 +00:00
Veerapuram Varadhan bb222be3f8 2009-07-25 Veerapuram Varadhan <[email protected]>
* SqlDataReader.cs: Added new schema fields to the schema row.
	Fixes a failing provider test.

svn path=/trunk/mcs/; revision=139062
2009-07-30 12:35:33 +00:00
Veerapuram Varadhan cee0485905 2009-07-25 Veerapuram Varadhan <[email protected]>
* Fixes #507663
	* SqlCommandBuilder.cs: From 2.0 onwards, use base's
	implementation for handling auto-generated commands.
	* SqlDataAdapter.cs: -- ditto --

svn path=/trunk/mcs/; revision=139061
2009-07-30 12:35:12 +00:00
Atsushi Eno 4a35a807f1 2009-07-30 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing refactoring to work both as
	  listener and client. Now it creates a listening peer node, and
	  creates a set of TCP client channels for each peer in the mesh.

	  (EndpointAddress must be fixed to not filter out correct inputs).

	* PeerNode.cs : remove TCP listener creator.
	  It is now in PeerDuplexChannel.


svn path=/trunk/mcs/; revision=139059
2009-07-30 11:40:52 +00:00
Atsushi Eno 9915ebcd27 2009-07-30 Atsushi Enomoto <[email protected]>
* PeerChannelListener.cs : do not accept more than one channel
	  which results in lots of listening peer node. Only one is enough.


svn path=/trunk/mcs/; revision=139058
2009-07-30 11:35:23 +00:00
Zoltan Varga 2c6415356b 2009-07-30 Zoltan Varga <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Use
	mono_class_get_vtable_size () instead of accessing klass->vtable_size
	directly. Fixes #525338.

	* class.c (mono_class_get_vtable_size): New helper function.

svn path=/trunk/mono/; revision=139057
2009-07-30 11:33:03 +00:00
Zoltan Varga 295d696d9b 2009-07-30 Zoltan Varga <[email protected]>
* FieldInfoTest.cs: Add a test for #525733.

svn path=/trunk/mcs/; revision=139055
2009-07-30 11:20:57 +00:00
Raja R Harinath 7d47e782a0 Make CreateConcreteTypeWithAbstractMethod testcase compile
svn path=/trunk/mcs/; revision=139054
2009-07-30 11:19:56 +00:00
Zoltan Varga 281f6e73c9 2009-07-30 Zoltan Varga <[email protected]>
* FieldInfo.cs: Throw an exception if internal_from_handle_type ()
	returns null. Fixes #525733.

svn path=/trunk/mcs/; revision=139053
2009-07-30 11:15:14 +00:00
Zoltan Varga ffaaace601 2009-07-30 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle_type): Fix the second argument, its a MonoType* not a MonoClass*. Check whenever
	the field belongs to the type. Fixes #525733.

svn path=/trunk/mono/; revision=139052
2009-07-30 11:12:35 +00:00
Mark Probst 23829102af 2009-07-30 Mark Probst <[email protected]>
* mono-sigcontext.h: Include config.h.

2009-07-30  Mark Probst  <[email protected]>

	* sgen-gc.c: When we stop a thread and its stack top is not within
	its allocated stack (because it's in an altstack signal handler),
	restart it and stop it again, until it is.

svn path=/trunk/mono/; revision=139047
2009-07-30 10:29:14 +00:00
Mark Probst eaa4a2f70b 2009-07-30 Mark Probst <[email protected]>
* mono-sigcontext.h, Makefile.am: Arch-dependent sigcontext
	macros, moved from mini.

2009-07-30  Mark Probst  <[email protected]>

	* sgen-gc.c: Take a thread's stack top and registers from the
	sigcontext in the suspend signal handler.

	* sgen-gc.h, sgen-archdep.h, Makefile.am: Move arch-dependent
	stuff to sgen-archdep.h.

	* gc.c, gc-internal.h: Remove the get_ip_from_sigctx installer and
	caller, because have code in sgen-archdep.h to acquire that data.

2009-07-30  Mark Probst  <[email protected]>

	* mini.c: get_ip_from_sigctx installer has been removed, so don't
	call it anymore.

	* mini-x86.h, mini-amd64.h, mini-ppc.h: UCONTEXT macros moved (to
	utils/mono-sigcontext.h).

	* exceptions-amd64.c: Use the UCONTEXT_GREGS macro instead of an
	#ifdef.

svn path=/trunk/mono/; revision=139045
2009-07-30 10:03:57 +00:00
Raja R Harinath 7f5f04aa65 Add a sanity-check to catch cyclic-dependency issues
* build/library.make (SNFLAGS): Remove '-R', since it's specific to the
action required.
($(build_lib)): Use -R flag with $(SN).
($(the_lib)): Add a sanity check to verify that the assembly is signed.
* tools/csharplib/Makefile ($(the_lib)): Update to changes in build/library.make.

svn path=/trunk/mcs/; revision=139041
2009-07-30 09:07:12 +00:00
Raja R Harinath 1c79419713 * Makefile ($(build_lib)): Move cyclic dependencies onto this.
svn path=/trunk/mcs/; revision=139040
2009-07-30 09:02:30 +00:00
Atsushi Eno 311d3c0e86 2009-07-30 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs : fix wrong loop implementation.


svn path=/trunk/mcs/; revision=139033
2009-07-30 07:49:45 +00:00
Ankit Jain f53b1e3350 * ReadLinesFromFile.cs (Execute): Log a warning instead of an error
if unable to read from the file. Fix a null check. Always return
true.

svn path=/trunk/mcs/; revision=139017
2009-07-29 23:28:41 +00:00
Ankit Jain f0784c71ea In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Project.cs (InitializeProperties) Set 'MSBuildProjectFile' and
	'MSBuildProjectName' properties.

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

	* Delete.cs (Execute): Log a message when deleting a file.

In tools/xbuild:

	* xbuild/Microsoft.Common.targets: Implement 'Clean' target. Currently
	just handles clean for a full build.

svn path=/trunk/mcs/; revision=139013
2009-07-29 22:24:32 +00:00
Rodrigo Kumpera 2ef395d58f 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetConstructors): Throw if
	TypeBuilder is incomplete.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs (initialize): Call TypeBuilder::GetConstructorsInternal
	since the public version throws.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest: Test for GetConstructors.

svn path=/trunk/mcs/; revision=139009
2009-07-29 22:04:02 +00:00
Rodrigo Kumpera 9dae2c14ec 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetInterfaces): Return the expanded
	interface list if the type has been created.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest: Test for GetInterfaces.

svn path=/trunk/mcs/; revision=139008
2009-07-29 22:03:34 +00:00
Rodrigo Kumpera 7be2042377 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetGenericArguments): Returns null for
	 non generic TypeBuilders.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest: Test for GetGenericArguments.

svn path=/trunk/mcs/; revision=139007
2009-07-29 22:03:03 +00:00
Rodrigo Kumpera 9750d4a7d7 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetElementType): Throw always.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest.cs: Test for GetElementType.

svn path=/trunk/mcs/; revision=139006
2009-07-29 22:02:30 +00:00
Rodrigo Kumpera ba0cfe0ee9 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetGenericTypeDefinition): Either
	throw or return itself.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest.cs: Test for GetGenericTypeDefinition.

svn path=/trunk/mcs/; revision=139005
2009-07-29 22:02:00 +00:00
Rodrigo Kumpera 03316f88b7 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GenericParameterPosition): Return 0
	instead of throwing.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest.cs: Test for GenericParameterPosition.

svn path=/trunk/mcs/; revision=139004
2009-07-29 22:01:31 +00:00
Rodrigo Kumpera 93fb7cb54a 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (DeclaringMethod): Return null
	instead of throwing.

2009-07-29 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest.cs: Test for DeclaringMethod.

svn path=/trunk/mcs/; revision=139003
2009-07-29 22:01:02 +00:00
Sebastien Pouliot 4e3edc4e1f hopefully fix the build (from clean)
svn path=/trunk/mcs/; revision=138996
2009-07-29 20:34:10 +00:00
Atsushi Eno d50ee44924 2009-07-28 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs : to avoid creating two or more channels
	  for one remote endpoint, check existing remote endpoints and
	  ignore such connections (it must be handled in different thread
	  fired by ChannelDispatcher loop).

	* ChannelDispatcher.cs : move Open() inside acceptor lock, so that
	  the channel does not have to be fired Receive() before Open().


svn path=/trunk/mcs/; revision=138986
2009-07-29 19:02:40 +00:00
Massimiliano Mantione cb619ab477 Keep track of cexecutable code buffers in the runtime instead of using mono_jit_info_table_find().
svn path=/trunk/mono/; revision=138980
2009-07-29 18:43:43 +00:00
Massimiliano Mantione f33ab472f1 Call profiler hook to keep track of method code buffers.
svn path=/trunk/mono/; revision=138979
2009-07-29 18:43:39 +00:00
Massimiliano Mantione 411d518b71 Call profiler hooks to keep track of code chunks.
svn path=/trunk/mono/; revision=138978
2009-07-29 18:43:29 +00:00
Massimiliano Mantione 584596c0fd Added support for keeping track of code chunks and buffers.
svn path=/trunk/mono/; revision=138977
2009-07-29 18:43:25 +00:00
Marek Safar 71c3dff91c Fixes build.
svn path=/trunk/mcs/; revision=138972
2009-07-29 17:12:18 +00:00
Marek Safar dbb7381c34 2009-07-29 Marek Safar <[email protected]>
* nullable.cs: Fixed SRE crash during corlib compilation.


svn path=/trunk/mcs/; revision=138971
2009-07-29 16:57:22 +00:00
Miguel de Icaza a6823f34ca Update man page
svn path=/trunk/mono/; revision=138964
2009-07-29 15:14:19 +00:00
Marek Safar 36ec58d6f4 Add 4.0 profile
svn path=/trunk/mcs/; revision=138960
2009-07-29 13:57:36 +00:00
Marek Safar 907bca6614 Use correct naming, add 4.0 profile
svn path=/trunk/mcs/; revision=138957
2009-07-29 13:53:27 +00:00
Marek Safar e1198af4d6 2009-07-29 Marek Safar <[email protected]>
* compiler-tester.cs: Add predefined file masks.


svn path=/trunk/mcs/; revision=138955
2009-07-29 13:51:33 +00:00
Rodrigo Kumpera 5fae23e310 2009-07-29 Rodrigo Kumpera <[email protected]>
* Makefile: Fix mac build and dependencies.
	Add new file.

	* cli-blob-tests.md: stand-alone-method-sig tests now use
	a separate input file with a single standalone sig so it's
	no longer dependent on ilasm ordering.

	* assembly-with-calli.il: New file with a single standalone
	signature.

svn path=/trunk/mono/; revision=138953
2009-07-29 13:40:26 +00:00
Rodrigo Kumpera c4384675fb 2009-07-29 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Fix endianness problems on decoding functions.
	Based on a patch by Ulrich Weigand <[email protected]>

svn path=/trunk/mono/; revision=138952
2009-07-29 13:40:15 +00:00
Marek Safar 8cc18f36a6 2009-07-29 Marek Safar <[email protected]>
* generic.cs, typemanager.cs, decl.cs, iterators.cs, convert.cs,
	nullable.cs, expression.cs, ecore.cs, class.cs, attribute.cs:
	More TypeManager.TypeToCoreType needed.


svn path=/trunk/mcs/; revision=138951
2009-07-29 13:26:40 +00:00
Marek Safar becff01e57 Forget to commit.
svn path=/trunk/mcs/; revision=138949
2009-07-29 12:58:40 +00:00
Marek Safar 095de6fc98 2008-07-29 Marek Safar <[email protected]>
* MonoGenericClass.cs: Removed one IsCompilerContext hack.


svn path=/trunk/mcs/; revision=138948
2009-07-29 12:55:02 +00:00
Marek Safar 4ddfd0fa68 2009-07-29 Marek Safar <[email protected]>
* anonymous.cs: Update after recent SRE fixes.


svn path=/trunk/mcs/; revision=138947
2009-07-29 12:52:19 +00:00
Atsushi Eno 637dfea50e 2009-07-28 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs : make sure to not try to receive request when
	  it is already closed.


svn path=/trunk/mcs/; revision=138928
2009-07-29 09:48:15 +00:00
Atsushi Eno a73150931d 2009-07-28 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
	  some mannerless clients [*1] do not send EndRecord accordingly, but
	  such channels at listener side should not be kept open. So, close
	  disconnected channels when the listener needs to accept another
	  one.
	  [*1] see olive/samples/wcf/clientbase/samplecli4.cs.


svn path=/trunk/mcs/; revision=138923
2009-07-29 08:39:22 +00:00
Atsushi Eno 9680fe4fc6 2009-07-28 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs :
	  Remove extra NIE overrides.
	  Implement OnAbort() apart from OnClose().
	  For duplex session channel, unlike reply channel, it must acquire
	  TCP connection before OnOpen(), otherwise ChannelDispatcher
	  releases the connection acceptance WaitHandle and the detected
	  live connection may be stolen by another channel acceptor.


svn path=/trunk/mcs/; revision=138915
2009-07-29 05:26:39 +00:00
Rodrigo Kumpera e4ce9c740f 2009-07-28 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (CreateType): Throw if concrete
	type has abstract method.

2009-07-28 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest.cs: Test for concrete type with
	abstract method.

svn path=/trunk/mcs/; revision=138913
2009-07-29 03:02:47 +00:00
Rodrigo Kumpera 1d16127979 2009-07-28 Rodrigo Kumpera <[email protected]>
* GenericTypeParameterBuilder.cs: SetBaseTypeConstraint with
	null argument is the same as passing typeof (object).

2009-07-28 Rodrigo Kumpera  <[email protected]>

	* GenericTypeParameterBuilderTest.cs: Test for BaseType
	and SetBaseTypeConstraint.

svn path=/trunk/mcs/; revision=138911
2009-07-29 02:04:15 +00:00
Rodrigo Kumpera 6dec7be9bf 2009-07-28 Rodrigo Kumpera <[email protected]>
TypeTest.cs: Fix the test.

svn path=/trunk/mcs/; revision=138910
2009-07-29 02:03:50 +00:00
Rodrigo Kumpera 78e076db59 2009-07-28 Rodrigo Kumpera <[email protected]>
Type.cs (MakeArrayType): Handle one-dym multidimensional array
	created with Type::MakeArrayType (1).

svn path=/trunk/mcs/; revision=138908
2009-07-29 00:43:04 +00:00
Rodrigo Kumpera a6b0d06329 2009-07-28 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs (ArrayType): Special case vector arrays using zero
	 as rank. This is required because we need to make the distinction
	between a vector and a one dimension SZARRAY.

	* EnumBuilder.cs: Create vectors as rank-zero ArrayType objects.

 	* TypeBuilder.cs: Same.

	* GenericTypeParameterBuilder.cs: Same.

2009-07-28 Rodrigo Kumpera  <[email protected]>

	* DerivedTypesTests.cs: Add test for the distinction between
	vector and one-dimension SZARRAY.

svn path=/trunk/mcs/; revision=138907
2009-07-29 00:42:38 +00:00
Rodrigo Kumpera 2fbbd92309 2009-07-28 Rodrigo Kumpera <[email protected]>
DerivedTypes.cs: ByRef and Pointer types return Array as base
	type.

2009-07-28 Rodrigo Kumpera  <[email protected]>

	DerivedTypesTest.cs: ByRef and Pointer types return Array as base
	type.

svn path=/trunk/mcs/; revision=138906
2009-07-29 00:42:11 +00:00
Rodrigo Kumpera 9b235bf409 2009-07-28 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_make_array_type): Handle the new encoding
	schema for vectors and one dimension SZARRAY.

svn path=/trunk/mono/; revision=138905
2009-07-29 00:41:57 +00:00
Rodrigo Kumpera 83b1af3f3d 2009-07-28 Rodrigo Kumpera <[email protected]>
* Type.cs (FindMembers): Fix the ordering of returned members
	to method, ctor, property, event, field and nested type.

svn path=/trunk/mcs/; revision=138904
2009-07-29 00:41:44 +00:00
Rodrigo Kumpera 1a07e4c017 2009-07-28 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_reflection_type_get_handle): Handle the new encoding
	schema for vectors and one dimension SZARRAY.

svn path=/trunk/mono/; revision=138903
2009-07-29 00:41:42 +00:00
Sebastien Pouliot 68dbce7f7b 2009-07-28 Sebastien Pouliot <[email protected]>
* CryptoConfig_2_1.cs: Add SHA1 support in MapNameToOID in order to
	be able to verify the codecs signature integrity.


svn path=/trunk/mcs/; revision=138901
2009-07-28 23:39:31 +00:00
Ankit Jain b402153f22 Fix the Exec task to work correctly.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* Exec.cs (AddCommandLineCommands): First word from @command is treated
	as exec name, and rest as arguments. Extract arguments here.
	(ExecuteTool): Don't ignore params.
	(GenerateFullPathToTool): Extract first word as tool name.
	(HandleTaskExecutionErrors): Honor IgnoreExitCode property.
	(LogEventsFromTextOutput): Log as messages.
	* ManagedCompiler.cs (HandleTaskExecutionErrors): Implement.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:

	* ToolTask (.ctor): Initialize Timeout value.
	(Execute): Use HandleTaskExecutionErrors to determine task result. Set
	exitCode to the result of ExecuteTool and let HandleTaskExecutionErrors
	determine final result of the task.
	(RealExecute): Rename to ..
	(ExecuteTool): .. this. @responseFileCommands could be empty.
	Use specified timeout value for the executing tool.
	Rename 'compilerOutput' to 'toolOutput'. Cleanup resources in the
	finally block. Move processing of stdout/stderr output to ..
	(ProcessOutputFile): .. here and ..
	(LogEventsFromTextOutput): .. here.
	(HandleTaskExecutionErrors): Implement.
	(DeleteTempFile): Implement.

svn path=/trunk/mcs/; revision=138900
2009-07-28 23:37:24 +00:00
Ankit Jain f987a2a36c * xbuild/Microsoft.Common.targets: Add missing 'SkipUnchangedFiles=true'
for the Copy tasks.
(CopyDeployFiles*): Fix typos, Add inputs/outputs for the
PreserveNewest case and remove for copy always case.

svn path=/trunk/mcs/; revision=138899
2009-07-28 23:36:54 +00:00
Ankit Jain 16bd64b93b * TaskEngine.cs (Prepare): Fix formatting mistake.
* ConsoleLogger.cs: Emit "-- FAILED" also when project/target building
fails. Also, emit result of project at Normal verbosity level.

svn path=/trunk/mcs/; revision=138897
2009-07-28 23:35:44 +00:00
Marek Safar 8c3af1301d 2009-07-28 Marek Safar <[email protected]>
* DynamicMethod.cs: Pass skipVisibility.


svn path=/trunk/mcs/; revision=138886
2009-07-28 22:07:01 +00:00
Mike Gorse e941c13250 * ToolStripMenuItem.cs: Added UIA CheckOnClickChanged event.
svn path=/trunk/mcs/; revision=138874
2009-07-28 20:30:53 +00:00
Gonzalo Paniagua Javier de80b74af3 2009-07-28 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: rethrow WebExceptions instead of creating a new one
	with less information on the actual error.
	Fixes bug #526069.


svn path=/trunk/mcs/; revision=138855
2009-07-28 17:26:51 +00:00
Gert Driesen 1925fbede7 * SqlCommandTest.cs: Improved test for invalid statement to cover
CloseConnection behavior.
* SqlCommand.cs: Ensure connection is closed if CloseConnection
behavior is set, and reader could not be created.

svn path=/trunk/mcs/; revision=138854
2009-07-28 17:24:35 +00:00
Gonzalo Paniagua Javier ee3b324a2c fix the build
svn path=/trunk/mcs/; revision=138852
2009-07-28 16:31:24 +00:00
Atsushi Eno 016ed4186e 2009-07-28 Astushi Enomoto <[email protected]>
* System.ServiceModel.dll.sources: add TransactionFlowAttribute.cs.

	* TransactionFlowAttribute.cs : new file.


svn path=/trunk/mcs/; revision=138842
2009-07-28 14:47:42 +00:00
Atsushi Eno 635e545cbd 2009-07-28 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs : implement some remaining members.
	  Remove null argument check and make setter optional.


svn path=/trunk/mcs/; revision=138841
2009-07-28 14:41:43 +00:00
Atsushi Eno db61e675d7 2009-07-28 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : implement OnAbort().


svn path=/trunk/mcs/; revision=138839
2009-07-28 14:38:17 +00:00
Carlos Alberto Cortez 32bde1cb72 2009-07-28 Carlos Alberto Cortez <[email protected]>
* Application.cs: Make FilterMessage internal for 1.1. Fixes the 1.1 build.


svn path=/trunk/mcs/; revision=138834
2009-07-28 13:48:25 +00:00
Marek Safar b0c6700e4a Updated.
svn path=/trunk/mcs/; revision=138833
2009-07-28 13:32:27 +00:00
Marek Safar 67b1f1022c 2009-07-28 Marek Safar <[email protected]>
* typemanager.cs, expression.cs, ecore.cs, delegate.cs: Use correct
	version of GetFieldHandle for fields of generic types.


svn path=/trunk/mcs/; revision=138832
2009-07-28 13:32:11 +00:00
Carlos Alberto Cortez 1804709f3c * XplatUIX11.cs:
* XplatUIWin32.cs: We need to filter the messages using
	Application.FilterMessage for our DoEvents implementations. Observe
	that I don't like the idea of XplatUI call the upper level Application
	class, but at this point is easier and simpler to do this call - based
	on the fact it's only one simple call.
	Fixes #516735.

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


svn path=/trunk/mcs/; revision=138826
2009-07-28 12:24:04 +00:00
Marek Safar 7995a39a83 Fixes build.
svn path=/trunk/mcs/; revision=138825
2009-07-28 12:03:40 +00:00
Carlos Alberto Cortez 92101ff506 2009-07-28 Carlos Alberto Cortez <[email protected]>
* TreeNodeCollection.cs: When removing the selected node, set the
	SelectedNode value of TreeView to null if there aren't more nodes left - 
	this is better than to clear the selected node in Clear, since we need
	to handle the situation in the Remove methods as well.
	Fixes #525002.


svn path=/trunk/mcs/; revision=138824
2009-07-28 12:02:09 +00:00
Jb Evain c5a93694dd fix the build
svn path=/trunk/mcs/; revision=138794
2009-07-28 08:14:49 +00:00
Jb Evain ff389637a3 2009-07-28 Jb Evain <[email protected]>
* Mono.Cecil/AssemblyStripper.cs: Make all methods share
	the same body.
	


svn path=/trunk/mcs/; revision=138791
2009-07-28 07:59:05 +00:00
Miguel de Icaza e13c611802 2009-07-28 Miguel de Icaza <[email protected]>
* UTF8Encoding.cs: Small optimization, reuse the static
	EncoderFallback and DecoderFallback instead of creating new ones. 

svn path=/trunk/mcs/; revision=138787
2009-07-28 05:06:31 +00:00
Miguel de Icaza 9afbbceb72 2009-07-28 Miguel de Icaza <[email protected]>
* UTF8Encoding.cs: Use Equals to compare the objects as the
	fallback objects do not overload operator ==.    The comparison
	was previously failing.

svn path=/trunk/mcs/; revision=138786
2009-07-28 05:04:08 +00:00
Gonzalo Paniagua Javier f838727b8f 2009-07-28 Gonzalo Paniagua Javier <[email protected]>
* HttpApplicationFactory.cs: allow subclasses of EventHandler for
	event handlers in global.asax.
	Fixes bug #525743.


svn path=/trunk/mcs/; revision=138784
2009-07-28 04:55:07 +00:00
Atsushi Eno fb60368a09 2009-07-28 Atsushi Enomoto <[email protected]>
* OutgoingWebRequestContext.cs : implement.

	* WebMessageFormatter.cs : apply OutgoingRequest if available.


svn path=/trunk/mcs/; revision=138782
2009-07-28 03:21:20 +00:00
Rodrigo Kumpera 5665bc31c9 2009-07-27 Rodrigo Kumpera <[email protected]>
* Assembly.cs (GetType): Throw if name is empty.

2009-07-27 Rodrigo Kumpera  <[email protected]>

	* AssemblyTest.cs: Add test for empty string passed to
	Assembly::GetType.

svn path=/trunk/mcs/; revision=138780
2009-07-28 02:00:05 +00:00
Rodrigo Kumpera 71a3174faa 2009-07-27 Rodrigo Kumpera <[email protected]>
OpCode.cs: HashCode is meant to be calculated based on Name.

	OpCodeNames.cs: Fix some names.

	OpCodes.cs: Fix Stelem, Constrained and Readonly specs.

svn path=/trunk/mcs/; revision=138776
2009-07-27 23:10:13 +00:00
Rodrigo Kumpera d3d3ba84b9 2009-07-27 Rodrigo Kumpera <[email protected]>
* EventInfo (RemoveEventHandler): Throw InvalidOperationException if the
	event remove method is not visible.

2009-07-27 Rodrigo Kumpera  <[email protected]>

	* EventInfoTest.cs: Add test for private event and
	RemoveEventHandler.

svn path=/trunk/mcs/; revision=138773
2009-07-27 21:43:13 +00:00
Rodrigo Kumpera d6241c123d 2009-07-27 Rodrigo Kumpera <[email protected]>
* EventInfo (AddEventHandler): Throw TargetException if target is not cast
	compatible.

	* EventInfo (AddEventHandler): Throw InvalidOperationException if the
	event add method is not visible.

	* EventInfo (AddEventHandler): Throw TargetException if source is null
	and the event is not static.

2009-07-27 Rodrigo Kumpera  <[email protected]>

	* EventInfoTest.cs: Add test for cast incompatible type.

	* EventInfoTest.cs: Add test for private event.

	* EventInfoTest.cs: Add test for null target for non static
	event.

svn path=/trunk/mcs/; revision=138772
2009-07-27 21:42:50 +00:00
Marek Safar 27f45f2fa5 2009-07-27 Marek Safar <[email protected]>
* typemanager.cs, argument.cs, convert.cs, assign.cs, expression.cs,
	ecore.cs: Add TypeManager.IsDynamicType,
	PredefinedAttributes.Dynamic.


svn path=/trunk/mcs/; revision=138753
2009-07-27 17:32:39 +00:00
Marek Safar a8aa6faa9a 2009-07-27 Marek Safar <[email protected]>
* typemanager.cs, argument.cs, convert.cs, assign.cs, expression.cs,
	ecore.cs: Add TypeManager.IsDynamicType.


svn path=/trunk/mcs/; revision=138749
2009-07-27 17:00:20 +00:00
Marek Safar 9c81481874 New test.
svn path=/trunk/mcs/; revision=138748
2009-07-27 16:30:53 +00:00
Marek Safar 6291f14bd3 2009-07-27 Marek Safar <[email protected]>
A fix for bug #415375
	* expression.cs: Fixed object and reference type parameter
	comparison.


svn path=/trunk/mcs/; revision=138747
2009-07-27 16:30:00 +00:00
Marek Safar 2afff0eb75 2009-07-27 Marek Safar <[email protected]>
A fix for bug #415375
	* expression.cs: Fixed object and reference type parameter
	comparison.


svn path=/trunk/mcs/; revision=138740
2009-07-27 15:53:51 +00:00
Gonzalo Paniagua Javier a1b4d6f1c7 2009-07-27 Gonzalo Paniagua Javier <[email protected]>
* ArrayTest.cs: new LastIndexOf test for 0-length arrays.


svn path=/trunk/mcs/; revision=138735
2009-07-27 15:35:42 +00:00
Gonzalo Paniagua Javier 60cf83789b 2009-07-27 Gonzalo Paniagua Javier <[email protected]>
* Array.cs: empty arrays just return -1 in LastIndexOf().


svn path=/trunk/mcs/; revision=138733
2009-07-27 15:35:30 +00:00
Marek Safar ee395c76f5 New test.
svn path=/trunk/mcs/; revision=138732
2009-07-27 15:14:36 +00:00
Marek Safar 923ab6cf34 2009-07-27 Marek Safar <[email protected]>
A fix for bug #525342
	* class.cs: Attach partial method attributes to method
	implementation.


svn path=/trunk/mcs/; revision=138731
2009-07-27 15:14:17 +00:00
Miguel de Icaza 101b01ea67 2009-07-27 Miguel de Icaza <[email protected]>
* Value types implementing IConvertible.ToType now throw an
	ArgumentNullException if they are passed a null as the
	"targetType" argument.

	This code can not be put directly in the Convert.ToType method, as
	this method is used by Convert.ToType (object o, TypeCode tc)
	which uses null as a target to throw a different kind of error
	(InvalidCastException).

	Fixes a few more bugs in the Silverlight BCL test suite.

	Additionally, the parameter type has been renamed.

svn path=/trunk/mcs/; revision=138730
2009-07-27 14:55:16 +00:00
Mark Probst bfe949041c 2009-07-27 Mark Probst <[email protected]>
* icall-def.h, thread-types.h, threads.c: New separate icalls for
        Interlocked.(Compare)Exchange with object arguments, which invoke
        write barriers.

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

        * method-to-ir.c: Invoke write barriers for the
        Interlocked.(Compare)Exchange JIT intrinsics.

svn path=/trunk/mono/; revision=138722
2009-07-27 11:28:11 +00:00
Miguel de Icaza 4bd75f536e 2009-07-26 Miguel de Icaza <[email protected]>
* Type.cs: (GetMember) call directly the worker method, instead of
	calling through an intermediary.

	(GetMember, full): throw if the name is null.

svn path=/trunk/mcs/; revision=138710
2009-07-27 00:09:11 +00:00
Miguel de Icaza 722d660422 2009-07-26 Miguel de Icaza <[email protected]>
* ILGenerator.cs: Fix the exception thrown when LocalBuilders are
	mixed between ILGenerators.

svn path=/trunk/mcs/; revision=138709
2009-07-26 23:48:12 +00:00
Miguel de Icaza c47371fdc3 2009-07-26 Miguel de Icaza <[email protected]>
* icall.c (ves_icall_Type_GetNestedType): Throw an exception when
	passed invalid arguments.   Fixes another crasher in the
	Silverlight test suite.

svn path=/trunk/mono/; revision=138708
2009-07-26 23:31:12 +00:00
Miguel de Icaza 4f2e0e8cb7 Add new test
svn path=/trunk/mcs/; revision=138707
2009-07-26 22:44:29 +00:00
Miguel de Icaza 8fa761a5c6 2009-07-26 Miguel de Icaza <[email protected]>
* class.c (mono_class_array_element_size): Return 0 for the size
	of the class;  This fixes the crasher exposed by :

	typeof (void).MakeArrayType ();

svn path=/trunk/mono/; revision=138706
2009-07-26 22:42:18 +00:00
Miguel de Icaza c7302d1930 Revert
svn path=/trunk/mcs/; revision=138705
2009-07-26 22:39:47 +00:00
Miguel de Icaza 84edaec258 Wrong fix; Revert
svn path=/trunk/mcs/; revision=138704
2009-07-26 22:38:04 +00:00
Miguel de Icaza 49f9169288 2009-06-10 Gert Driesen <[email protected]>
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

svn path=/trunk/mcs/; revision=138703
2009-07-26 22:25:39 +00:00
Miguel de Icaza 2395bc3b35 2009-07-26 Miguel de Icaza <[email protected]>
* icall.c (ves_icall_MonoType_GetEvent): Do not dereference method
	if there is no method to dereference.    Put all the code that
	depends on this inside the if (method) block.

	This fixes the crasher exposed by Microsoft's Silvelright CLR test
	suite  ./Reflection/Emit/TypeBuilder/TypeBuilderGetEvent.exe

	With this change, we pass the test.

svn path=/trunk/mono/; revision=138702
2009-07-26 22:16:24 +00:00
Miguel de Icaza ae14a1802d 2009-07-26 Miguel de Icaza <[email protected]>
* reflection.c (mono_reflection_sighelper_get_signature_local):
	Only dereference the assembly if it has been set.    Fixes a
	crasher exposed by #525328

svn path=/trunk/mono/; revision=138701
2009-07-26 20:56:22 +00:00
Miguel de Icaza f1e1542ea2 Small fix for trace
svn path=/trunk/mono/; revision=138700
2009-07-26 20:35:28 +00:00
Gert Driesen 5cc9f25881 * SqlParameter.cs: Improved support for SqlValue and SqlTypes.
* SqlParameterTest.cs: Added/improved tests for SqlValue, and
SqlTypes. Improved tests for char and char [] type inferrence.

svn path=/trunk/mcs/; revision=138699
2009-07-26 19:53:09 +00:00
Raja R Harinath 28e2595fdb Make AOT compilation explicit
* platforms/darwin.make (PLATFORM_AOT_SUFFIX): New.
* platforms/linux.make (PLATFORM_AOT_SUFFIX): New.
* library.make ($(build_lib)): Don't try to AOT compile the
library in its possibly temporary location.
(DO_AOT): Remove.  Move to ...
($(the_lib)$(PLATFORM_AOT_SUFFIX)): ... here, new rule to
explicitly run the AOT compilation.
(all-local) [ENABLE_AOT]: Build the AOT compiled library as appropriate.

svn path=/trunk/mcs/; revision=138696
2009-07-26 18:46:17 +00:00
Miguel de Icaza 31f9ff7de5 2009-07-26 Miguel de Icaza <[email protected]>
* Calendar.cs: Do not add internal abstract methods to the
	Calendar class, it prevents derived classes from existing. 

svn path=/trunk/mcs/; revision=138695
2009-07-26 17:44:33 +00:00
Raja R Harinath bc81939f50 Fix sed expression to only print if substitution happened
svn path=/trunk/mono/; revision=138694
2009-07-26 17:39:40 +00:00
Gonzalo Paniagua Javier 58ee030265 2009-07-26 Gonzalo Paniagua Javier <[email protected]>
* StringBuilder.cs: don't throw on null values in ctor(string, int).
	Unify another ctor into the main one to account for MaxCapacity.


svn path=/trunk/mcs/; revision=138692
2009-07-26 17:08:10 +00:00
Raja R Harinath 38c89643f2 Fix parallel-build issues with LIBRARY_USE_INTERMEDIATE_FILE
* library.make (build_lib): Define to a profile dependent
temporary location for LIBRARY_USE_INTERMEDIATE_FILE.
(DO_AOT): New.  Extracted from ...
($(build_lib)): ... here.  Simplify.  Extract code handling
LIBRARY_USE_INTERMEDIATE_FILE into ...
($(the_lib)) [LIBRARY_USE_INTERMEDIATE_FILE]: ... here, a new rule
that takes care of copying the library from its temporary location
to the final location.

svn path=/trunk/mcs/; revision=138691
2009-07-26 16:56:02 +00:00
Raja R Harinath d531a7515e * Makefile ($(build_lib)): Make CYCLIC_DEP_FILES depend on this.
svn path=/trunk/mcs/; revision=138690
2009-07-26 16:55:30 +00:00
Gonzalo Paniagua Javier 885b9f9f7e 2009-07-26 Gonzalo Paniagua Javier <[email protected]>
* StringBuilderTest.cs: new overflow tests.


svn path=/trunk/mcs/; revision=138688
2009-07-26 16:27:07 +00:00
Gonzalo Paniagua Javier 02d4790b5d 2009-07-26 Gonzalo Paniagua Javier <[email protected]>
* StringBuilder.cs: small fixes dealing with _maxCapacity.


svn path=/trunk/mcs/; revision=138686
2009-07-26 16:26:55 +00:00
Miguel de Icaza 1fc0a7899a 2009-07-22 Jb Evain <[email protected]>
* monotouch_System.dll.sources: bring Process in.

svn path=/trunk/mcs/; revision=138685
2009-07-26 16:05:47 +00:00
Raja R Harinath 0aeaad22d1 * Makefile.am (version.h): Fix issues when built out of tree.
Remove some redundant 'grep's piped through 'sed's.

svn path=/trunk/mono/; revision=138684
2009-07-26 06:47:19 +00:00
Miguel de Icaza 4a8c3ce77f Typo fix
svn path=/trunk/mcs/; revision=138683
2009-07-26 02:01:44 +00:00
Miguel de Icaza 5949b71fb0 Revert patch until Rodrigo comes back on Monday
svn path=/trunk/mcs/; revision=138681
2009-07-26 01:33:08 +00:00
Veerapuram Varadhan 5ec22cbe2f 2009-07-24 Veerapuram Varadhan <[email protected]>
* DbCommandBuilder.cs (CreateDeleteCommand, CreateUpdateCommand): Add the
	nullcheck-param into the respective command's parameter list.  Fixes
	build breaks.  Individual provider's CommandBuilder classes from 2.0
	profile onwards use the base version of methods to maintain these commands.
	(Get*Command): Cleanup code duplication
	* DbDataAdapter (Update): Use SourceColumnNullMapping property to handle
	nullcheckparams.  Fixes #522624.  Patch by
	Gert Driesen  <[email protected]>.

svn path=/trunk/mcs/; revision=138678
2009-07-25 19:10:42 +00:00
Miguel de Icaza 97487d9789 Fix
svn path=/trunk/mono/; revision=138677
2009-07-25 18:40:34 +00:00
Gert Driesen 9e2137bf23 * TdsConnectionPool.cs: Fixed typo in ResetConnectionPool.
svn path=/trunk/mcs/; revision=138674
2009-07-25 15:17:11 +00:00
Mark Probst e2d1249a97 2009-07-25 Mark Probst <[email protected]>
* sgen-gc.c, object.h, null-gc.c, boehm-gc.c, marshal.c: Really
        don't perform the store in mono_gc_wbarrier_generic_nostore().
        Remove the second argument (value), which is not needed.

svn path=/trunk/mono/; revision=138673
2009-07-25 09:24:42 +00:00
Michael Barker dc9f6046d2 2009-07-20 Michael Barker <[email protected]>
* MessagingProviderLocator.cs: Changed System.Exceptions to
	MonoMessagingExceptions.

svn path=/trunk/mcs/; revision=138672
2009-07-25 05:34:40 +00:00
Rodrigo Kumpera 5ab33cc376 2009-07-24 Rodrigo Kumpera <[email protected]>
* EventBuilder.cs: Make some fields internal.

	* TypeBuilder.cs: Make events field internal.
	Remove some MonoTODOs that are already done.

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

	* MonoGenericClass.cs (initialize): Remember the number
	of events available at initialization time. This is required as
	mcs expect this behavior under compiler context that new events
	are not returned for an instance that was inflated before.

	* MonoGenericClass.cs: Kill GetEvents_internal and implement it
	in terms of managed code.

svn path=/trunk/mcs/; revision=138669
2009-07-25 00:24:41 +00:00
Rodrigo Kumpera 8963bb7cb2 2009-07-24 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (GetParentType): Implement using managed code.

svn path=/trunk/mcs/; revision=138668
2009-07-25 00:24:26 +00:00
Rodrigo Kumpera 40cadb8e14 2009-07-24 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Make all icalls private. Kill GetInterfaces_internal.
	Add a workaround for a GetField under compiler context.

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

	* TypeBuilder.cs: Make the interfaces field internal.

svn path=/trunk/mcs/; revision=138667
2009-07-25 00:24:15 +00:00
Gonzalo Paniagua Javier 51752b021d revert 138474, causes bug# 525104
svn path=/trunk/mcs/; revision=138659
2009-07-24 22:16:13 +00:00
Jb Evain 77d3f6cacb try to fix the build
svn path=/trunk/mono/; revision=138656
2009-07-24 20:52:51 +00:00
Carlos Alberto Cortez 6eb6c709fc 2009-07-24 Carlos Alberto Cortez <[email protected]>
* ToolStripItemCollectionTest.cs: New test for Find.


svn path=/trunk/mcs/; revision=138653
2009-07-24 17:48:18 +00:00
Carlos Alberto Cortez 67714db581 2009-07-24 Carlos Alberto Cortez <[email protected]>
* ToolStripItemCollection.cs: Find should do a case insensitive
	search, and should throw an ArgumentNullException if the parameter is
	an empty string.


svn path=/trunk/mcs/; revision=138652
2009-07-24 17:47:05 +00:00
Marek Safar 87db46fe09 New tests.
svn path=/trunk/mcs/; revision=138651
2009-07-24 17:41:53 +00:00
Marek Safar bc12ad6f76 2009-07-24 Marek Safar <[email protected]>
* argument.cs, dynamic.cs, expression.cs, class.cs, attribute.cs:
	Dynamic arguments.


svn path=/trunk/mcs/; revision=138650
2009-07-24 17:41:26 +00:00
Jb Evain e0bd639733 2009-07-24 Jb Evain <[email protected]>
* scripts/Makefile.am: generate a dmcs script for the 4.0 compiler
	when building the net_4_0 profile.


svn path=/trunk/mono/; revision=138646
2009-07-24 16:50:32 +00:00
Jb Evain a253f07c66 2009-07-24 Jb Evain <[email protected]>
* configure.in
	* runtime/Makefile.am
	* data/Makefile.am: create a and populate a configuration folder
	for the net_4_0 profile.

svn path=/trunk/mono/; revision=138645
2009-07-24 16:49:29 +00:00
Zoltan Varga ec57a82f13 2009-07-24 Zoltan Varga <[email protected]>
* null-gc.c (mono_gc_wbarrier_generic_nostore): Define this to fix
	the build.

	* boehm-gc.c: Ditto.

svn path=/trunk/mono/; revision=138644
2009-07-24 16:49:04 +00:00
Jb Evain 4ac73e9775 2009-07-24 Jb Evain <[email protected]>
* Initial import of the net_4_0 specific files.


svn path=/trunk/mono/; revision=138643
2009-07-24 16:47:12 +00:00
Rodrigo Kumpera f41f040c36 2009-07-24 Rodrigo Kumpera <[email protected]>
* FieldOnTypeBuilderInst.cs: Add a ToString() to help debugging.
	Make fields internal.

	* MethodOnTypeBuilderInst.cs: Build it under BOOTSTRAP_NET_2_0.

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

	* MonoGenericClass.cs (GetMethod): Use the new code always. Don't
	accept MethodOnTypeBuilderInst under compiler context.

	* MonoGenericClass.cs (GetField): Use the new code always.

	* MonoGenericClass.cs: Make a bunch of methods raise NotSupportedException
	when not under compiler context. Remove some dead code.

svn path=/trunk/mcs/; revision=138640
2009-07-24 15:59:27 +00:00
Paolo Molaro 6140690d50 Fri Jul 24 17:28:37 CEST 2009 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

	* mini-ppc.c (mono_arch_output_basic_block):
	(OP_STOREI1_MEMBASE_REG): Handle 32-bit offsets combining addis
	for bits 32-47 with signed load/store diplacements for bits
	48-63.  Use prefered base/offset order for indexed form.
	(OP_STOREI2_MEMBASE_REG, OP_STORE_MEMBASE_REG): Same.
	(OP_LOAD_MEMBASE, OP_LOADI4_MEMBASE, OP_LOADU4_MEMBASE,
	OP_LOADI1_MEMBASE, OP_LOADU1_MEMBASE, OP_LOADU2_MEMBASE,
	OP_LOADI2_MEMBASE): Same.
	(OP_STORER8_MEMBASE_REG, OP_LOADR8_MEMBASE,
	OP_STORER4_MEMBASE_REG, OP_LOADR4_MEMBASE): Same.
	(OP_STOREI1_MEMINDEX): Use prefered base/offset order for
	indexed form.
	(OP_STOREI2_MEMINDEX, OP_STORE_MEMINDEX): Same.
	(OP_LOAD_MEMINDEX, OP_LOADI4_MEMINDEX, OP_LOADU4_MEMINDEX,
	OP_LOADU2_MEMINDEX, OP_LOADI2_MEMINDEX, OP_LOADU1_MEMINDEX,
	OP_LOADI1_MEMINDEX): Same
	(OP_LOADR4_MEMINDEX, OP_LOADR8_MEMINDEX, OP_STORER4_MEMINDEX,
	OP_STORER8_MEMINDEX): Same
	(OP_JMP): Use addis/addi sequence for int cfg->stack_usage
	computations.
	(mono_arch_emit_prolog): Handle 32-bit offsets combining addis
	for bits 32-47 with signed load/store diplacements for bits
	48-63.  Use prefered base/offset order for indexed form.


svn path=/trunk/mono/; revision=138639
2009-07-24 15:31:39 +00:00
Marek Safar 85aaf17b9a 2009-07-24 Marek Safar <[email protected]>
* anonymous.cs (MutateField): Add imported types handling.


svn path=/trunk/mcs/; revision=138638
2009-07-24 15:24:19 +00:00
Marek Safar 218bba7783 Push GetFieldFromHandle to BOOTSTRAP_NET_2_0
svn path=/trunk/mcs/; revision=138637
2009-07-24 15:21:36 +00:00
Paolo Molaro 5c9f2285ac Fri Jul 24 16:57:12 CEST 2009 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

	* mini-ppc.c: Define PPC_MOVE_FPR_GPR and PPC_ISA_64.
	(mono_arch_get_vcall_slot): Fx pointer to int cast warning.
	(mono_arch_decompose_opts): Make OP_ICONV_TO_R4 and
	OP_ICONV_TO_R8 decompose conditional on !PPC_ISA_64.
	(mono_arch_output_basic_block) [OP_JMP]: Use ppc_load32 for
	cfg->stack_usage to avoid size warnings.
	(mono_arch_output_basic_block) [__mono_ppc64__]: Replace
	store/load sequence with mffgpr if PPC_MOVE_FPR_GPR is true.
	(mono_arch_output_basic_block) [!__mono_ppc64__]: For
	OP_ICONV_TO_R4 or OP_ICONV_TO_R8 and PPC_ISA_64 use fcfid
	to convert.
	(mono_arch_emit_prolog): Move mono_emit_unwind_op_def_cfa 
	after code varible is initialized.
	Add g_assert ppc_is_imm16 for ainfo->offset. Handle
	ainfo->size == 8 when ainfo->offset !ppc_is_imm16.
	(mono_arch_emit_epilog): 
	Move Use ppc_load32 for cfg->stack_usage to avoid size
	warnings.


svn path=/trunk/mono/; revision=138636
2009-07-24 15:01:54 +00:00
Paolo Molaro d4b61ac811 Fri Jul 24 16:54:13 CEST 2009 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license
	
	* arch/ppc/ppc-codegen.h (ppc_ha): Define high adjusted
	conversion to support combining addis for bits 32-47 with
	signed load/store diplacements for bits 48-63.
	(ppc_fcfidx, ppc_fctidx, ppc_fctidzx): Share with PPC32.
	These instructions are availble to 32-bit programs on 64-bit
	hardware and 32-bit both starting with PowerISA V2.01.
	[__mono_ppc64__]: Define ppc_mftgpr and ppc_mffgpr for Power6
	native mode.
	[!__mono_ppc64__]: Define ppc_is_imm32 as constant true for
	ppc32.


svn path=/trunk/mono/; revision=138635
2009-07-24 15:00:25 +00:00
Mark Probst d4e7630ae7 2009-07-24 Mark Probst <[email protected]>
* sgen-gc.c, marshal.c, object.h: Make the managed write barrier
        not perform the store itself.  Introduce
        mono_gc_wbarrier_generic_nostore(), which is the same as
        mono_gc_wbarrier_generic_store(), except it doesn't perform the
        store.

2009-07-24  Mark Probst  <[email protected]>

        * method-to-ir.c: The write barrier doesn't do the store anymore,
        so we have always to emit it.  Also, emit the wbarrier after the
        store.

svn path=/trunk/mono/; revision=138634
2009-07-24 14:47:23 +00:00
Mark Probst 4a73ac29a7 2009-07-24 Mark Probst <[email protected]>
* icall.c (ves_icall_System_Array_SetGenericValueImpl):
        mono_gc_wbarrier_value_copy() doesn't perform the copy itself, so
        we still need the memcpy().

svn path=/trunk/mono/; revision=138632
2009-07-24 14:34:51 +00:00
Zoltan Varga 87d0c0348a 2009-07-24 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_get_delegate_invoke_impls): Add a trampoline
	for argument count 3 too.

svn path=/trunk/mono/; revision=138631
2009-07-24 14:09:17 +00:00
Atsushi Eno 2e8709a97b 2009-07-24 Atsushi Enomoto <[email protected]>
* PeerChannelListener.cs : set source field. Remove unnecessary NIE.
	* DuplexChannelBase.cs : comment out some extra fields (so far).
	* PeerDuplexChannel.cs : pass valid EndpointAddress to PeerNodeImpl.


svn path=/trunk/mcs/; revision=138609
2009-07-24 07:09:45 +00:00
Atsushi Eno 1651ce46f8 2009-07-24 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs: add some null checks.

	* PeerCustomResolverBindingElement.cs : add some null checks.


svn path=/trunk/mcs/; revision=138604
2009-07-24 05:36:10 +00:00
Rodrigo Kumpera fe8dbb3491 2009-07-23 Rodrigo Kumpera <[email protected]>
* ConstructorBuilder.cs: Make parameters and pinfo fields internal.

	* ConstructorOnTypeBuilderInst.cs: Build it under BOOTSTRAP_NET_2_0.
	Properly implement GetParameters under compiler context.

	* TypeBuilder.cs: Make ctors field internal.

2009-07-23 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs: Kill GetConstructors_internal and implement it
	all in terms of managed code.

	* MonoGenericClass.cs: Return instances of ConstructorOnTypeBuilderInst
	under bootstrap profile.

svn path=/trunk/mcs/; revision=138591
2009-07-23 21:05:01 +00:00
Rodrigo Kumpera dc3c422dbc 2009-07-23 Rodrigo Kumpera <[email protected]>
* FieldOnTypeBuilderInst.cs: Implement MetadataToken and FieldToken
	for compiler context.

	* TypeBuilder.cs: Make FieldBuilder related fields internal.

2009-07-23 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs: Kill GetFields_internal and implement it
	all in terms of managed code.

svn path=/trunk/mcs/; revision=138590
2009-07-23 21:04:50 +00:00
Rodrigo Kumpera 270a4ee7ee 2009-07-23 Rodrigo Kumpera <[email protected]>
* PropertyOnTypeBuilderInst.cs: Use TypeBuilder::GetMethod instead of
	MonoGenericClass::GetCorrespondingInflatedMethod. This is possible
	since the returned methods of MonoGenericClass::GetMethods have been
	unified with TypeBuilder::GetMethod.

	* TypeBuilder.cs: Make property related fields internal.

2009-07-23 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs: Kill GetMethods_internal and implement it
	all in terms of managed code.

svn path=/trunk/mcs/; revision=138589
2009-07-23 21:04:34 +00:00
Sebastien Pouliot f6db29bd36 2009-07-23 Sebastien Pouliot <[email protected]>
* SerializationMap.cs : Ensure Dictionary is still deserialized
	correctly (wrt previous change). Fix moonlight isolated storage
	settings.


svn path=/trunk/mcs/; revision=138587
2009-07-23 20:02:43 +00:00
Gonzalo Paniagua Javier 33832e187f 2009-07-23 Gonzalo Paniagua Javier <[email protected]>
* BuildManager.cs: precompilation setup failed if the precompiled
	virtual directory was / and it was deployed somewhere else.


svn path=/trunk/mcs/; revision=138576
2009-07-23 17:45:31 +00:00
Marek Safar f28cdf6fb4 2009-07-23 Marek Safar <[email protected]>
* expression.cs, delegate.cs: Moved arguments resolve into their
	counterparts expressions. Removed argument resolve from
	CollectionElementInitializer.


svn path=/trunk/mcs/; revision=138574
2009-07-23 17:40:39 +00:00
Ankit Jain 9314e8d0c3 * xbuild/Microsoft.Common.targets: Oops, forgot to remove some
debug stuff.

svn path=/trunk/mcs/; revision=138561
2009-07-23 16:11:31 +00:00
Marek Safar e1249f47b5 2009-07-23 Marek Safar <[email protected]>
* expression.cs, delegate.cs: Moved arguments resolve into their
	counterparts expressions.


svn path=/trunk/mcs/; revision=138559
2009-07-23 15:50:07 +00:00
Zoltan Varga 07f4d1f84f 2009-07-23 Zoltan Varga <[email protected]>
* load-exceptions.cs: Add a test for #524498.

svn path=/trunk/mono/; revision=138545
2009-07-23 14:39:25 +00:00
Zoltan Varga d0c10ccf5f 2009-07-23 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_with_opt): Add an 'ex' argument to let
	the caller handle the exceptions.
	(mono_jit_runtime_invoke): Handle exceptions thrown while compiling the
	method. Fixes #524498.

svn path=/trunk/mono/; revision=138544
2009-07-23 14:39:18 +00:00
Sebastien Pouliot 07ee56ae94 2009-07-23 Sebastien Pouliot <[email protected]>
* XmlObjectSerializerTest.cs: Add test cases with a generic
	dictionary (empty, broken with r138386, and with one element) 
	that both works on MS.NET and for which Moonlight depends on.


svn path=/trunk/mcs/; revision=138531
2009-07-23 12:38:49 +00:00
Gonzalo Paniagua Javier 9fcc125dd2 location,location,location. Fixes all the tests I broke last night
svn path=/trunk/mcs/; revision=138529
2009-07-23 11:53:26 +00:00
Marek Habersack 0460df3566 2009-07-23 Marek Habersack <[email protected]>
* AspGenerator.cs:
	Check for duplicate control IDs at the end of parse. Fixes bug
	#524358

2009-07-23  Marek Habersack  <[email protected]>

	* ControlBuilder.cs: added an internal helper property
	IsNamingContainer.

2009-07-23  Marek Habersack  <[email protected]>

	* HttpException.cs: if an exception is processed which refers to
	internal "files", don't show the internal name.

svn path=/trunk/mcs/; revision=138521
2009-07-23 10:16:54 +00:00
Marek Habersack d2702cac24 Do not skip comments, just pluck expressions/tags from within them
svn path=/trunk/mcs/; revision=138520
2009-07-23 10:16:40 +00:00
Carlos Alberto Cortez 060fe2f8d5 2009-07-23 Carlos Alberto Cortez <[email protected]>
* PropertyGrid.cs: Use click handlers for each ToolStripButton instead
	of using a global handler for the ToolStrip. This way the buttons can
	be recovered and can have its PerformClick method called properly.
	Fixes #522454.


svn path=/trunk/mcs/; revision=138519
2009-07-23 10:07:26 +00:00
Marek Safar fd96aa17a7 New test.
svn path=/trunk/mcs/; revision=138514
2009-07-23 09:28:39 +00:00
Marek Safar 6aa6e7fd72 2009-07-23 Marek Safar <[email protected]>
A fix for bug #523683
	* convert.cs, delegate.cs: Use common overload mechanism for method
	group conversion check.


svn path=/trunk/mcs/; revision=138513
2009-07-23 09:27:56 +00:00
Veerapuram Varadhan 65a00499e9 2009-07-23 Veerapuram Varadhan <[email protected]>
* XmlSchemaDataImporter.cs (HandleDataSourceAnnotation): Don't rely
	on the order of elements.

svn path=/trunk/mcs/; revision=138507
2009-07-23 07:56:24 +00:00
Veerapuram Varadhan 4cb5ebabc0 2009-07-23 Veerapuram Varadhan <[email protected]>
* XmlSchemaDataImporter.cs: String.IsNullOrEmpty changes

svn path=/trunk/mcs/; revision=138506
2009-07-23 07:55:32 +00:00
Atsushi Eno e4dc971355 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpReplyChannel.cs, TcpRequestChannel.cs:
	  Acquire TcpClient for each request/reply. Now it is fully
	  interoperable with .NET.


svn path=/trunk/mcs/; revision=138501
2009-07-23 07:21:16 +00:00
Atsushi Eno 1ce9d1db36 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs, TcpRequestChannel.cs: it somehow adds/expects
	  ReplyTo and MessageId (though it is session-less), and it expects
	  EndRecord at weird stage, inconsistent with [MC-NMF]...
	  Now .NET service accepts one mono client request.


svn path=/trunk/mcs/; revision=138499
2009-07-23 06:31:30 +00:00
Atsushi Eno 899a95c371 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs, TcpRequestChannel.cs, TcpBinaryFrameManager.cs:
	  Send and receive unsized message terminator at once.
	  Send EndRecord mutually. Got one .net client request working.


svn path=/trunk/mcs/; revision=138498
2009-07-23 05:38:17 +00:00
Atsushi Eno 8eb2e41c66 2009-07-23 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : revert the previous dictionary change.
	  They are indeed used for non-in-band-dictionary messages.


svn path=/trunk/mcs/; revision=138496
2009-07-23 05:05:21 +00:00
Gonzalo Paniagua Javier f7a0e3a47d 2009-07-23 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationManager.cs: avoid possible infinite loop when the
	path starts with ~ and 1 file check.


svn path=/trunk/mcs/; revision=138495
2009-07-23 05:01:23 +00:00
Gonzalo Paniagua Javier 374b8ff979 2009-07-23 Gonzalo Paniagua Javier <[email protected]>
* LogicalMethodInfo.cs: add CacheDuration property.
	* WebServiceHandlerFactory.cs: use CacheDuration.
	Fixes bug #524460.


svn path=/trunk/mcs/; revision=138492
2009-07-23 04:22:15 +00:00
Atsushi Eno 3c099af375 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs:
	  split out binary frame manager class into separate file.

	* System.ServiceModel.dll.sources:
	  split out binary frame manager class into separate file.


svn path=/trunk/mcs/; revision=138489
2009-07-23 03:02:29 +00:00
Gonzalo Paniagua Javier eff748464b 2009-07-22 Gonzalo Paniagua Javier <[email protected]>
* WebHeaderCollectionTest.cs: test for allowed characters in headers.


svn path=/trunk/mcs/; revision=138487
2009-07-23 02:57:41 +00:00
Gonzalo Paniagua Javier ce35b7094a 2009-07-22 Gonzalo Paniagua Javier <[email protected]>
* WebHeaderCollection.cs: check the validity of the characters in the
	header names.


svn path=/trunk/mcs/; revision=138485
2009-07-23 02:57:21 +00:00
Rodrigo Kumpera 488831bf77 2009-07-22 Rodrigo Kumpera <[email protected]>
* MethodOnTypeBuilderInst.cs: Implement ToString to help debugging.

	* TypeBuilder.cs: Make the properties field internal.

	* PropertyOnTypeBuilderInst.cs: New type implementing a property of an
	inflated TypeBuilder.

2009-07-22 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs: Kill GetProperties_internal and implement it
	all in terms of managed code.

svn path=/trunk/mcs/; revision=138482
2009-07-23 02:22:31 +00:00
Geoff Norton 67b7a8bf90 2009-07-22 Geoff Norton <[email protected]>
* mini-exceptions.c: Fix build on ia64.

svn path=/trunk/mono/; revision=138479
2009-07-23 01:28:20 +00:00
Geoff Norton 53656a155e 2009-07-20 Geoff Norton <[email protected]>
* mini-x86.h: Fix the x86 version guards to use Apple's
	properly defined macros.

svn path=/trunk/mono/; revision=138478
2009-07-23 01:28:16 +00:00
Geoff Norton af21a3e74c 2009-07-20 Geoff Norton <[email protected]>
* darwin_stop_world.c: Fix the x86 version guards to use Apple's
        properly defined macros.

svn path=/trunk/mono/; revision=138477
2009-07-23 01:28:12 +00:00
Marek Habersack 9763e79a27 Unbreak the build
svn path=/trunk/mcs/; revision=138476
2009-07-22 23:46:36 +00:00
Marek Habersack bd852c92f4 2009-07-23 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/FullTagsInText.aspx
	Test/mainsoft/NunitWebResources/TagsExpressionsAndCommentsInText.aspx

2009-07-23  Marek Habersack  <[email protected]>

	* AspGenerator.cs: TextParsed takes a different approach to
	post-processing text blocks now. It applies, in order, client-side
	comment, tag and expression regular expressions to the text
	and splits it into blocks of different types. Then the blocks are
	processed accordingly.

svn path=/trunk/mcs/; revision=138474
2009-07-22 23:41:32 +00:00
Gonzalo Paniagua Javier 874ad36781 Implement the 2.0 IsRestricted and add tests
svn path=/trunk/mcs/; revision=138472
2009-07-22 23:29:10 +00:00
Ankit Jain c9bf6e9a78 Fix bug #511370.
* Project.cs (ExtensionsPath): New.
(InitializeProperties): Set "MSBuildExtensionsPath" property.

svn path=/trunk/mcs/; revision=138471
2009-07-22 23:28:36 +00:00
Ankit Jain 1a27cb10f2 * Makefile: Create a lib/mono/xbuild directory for xbuild
extensions.

svn path=/trunk/mcs/; revision=138470
2009-07-22 23:28:12 +00:00
Gonzalo Paniagua Javier 5cda501c0c 2.0
svn path=/trunk/mcs/; revision=138462
2009-07-22 21:52:26 +00:00
Ankit Jain 49176f66ec Implement AssignProjectConfiguration task.
In class/Microsoft.Build.Tasks:

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

	* Microsoft.Build.Tasks.dll.sources: Added
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* AssignProjectConfiguration.cs (Execute): Implement.

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

	* AssignProjectConfigurationTest.cs: New.

In tools/xbuild:

	* xbuild/Microsoft.Common.targets (AssignProjectConfigurations): New.
	(ResolveProjectReferences): Add dependency on AssignProjectConfigurations
	target. Also, set the config and platform properties for the msbuild task
	being invoked.
	* xbuild/Microsoft.Common.tasks: Add AssignProjectConfiguration .

In tools/xbuild/tests:

	* standalone/Project01: Change config mappings a bit to mix them up,
	like Debug->Release etc. Update .proj file and final-outputs.txt.

svn path=/trunk/mcs/; revision=138461
2009-07-22 21:51:58 +00:00
Gonzalo Paniagua Javier 27e633cf32 2009-07-22 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: when sending a 0-length POST, ignore further
	writes instead of throwing.
	Fixes bug #524049.


svn path=/trunk/mcs/; revision=138447
2009-07-22 19:58:51 +00:00
Veerapuram Varadhan 81945b7f28 2009-07-23 Veerapuram Varadhan <[email protected]>
* XmlSchemaDataImporter.cs: Added null checks.

svn path=/trunk/mcs/; revision=138444
2009-07-22 18:52:56 +00:00
Veerapuram Varadhan 02090a48a4 2009-07-22 Veerapuram Varadhan <[email protected]>
* XmlSchemaDataImporter.cs:
	CustomDataClassGenerator.cs: Silence off CWLs.

svn path=/trunk/mcs/; revision=138439
2009-07-22 18:27:00 +00:00
Veerapuram Varadhan 9f93422191 * Implementation of System.Data.Design.TypedDataSetGenerator::Generate methods that generate TableAdapter code
svn path=/trunk/mcs/; revision=138437
2009-07-22 18:26:17 +00:00
Veerapuram Varadhan 5c13496c4d * Use System.Data.Design version of TypedDataSetGenerator instead of from System.Data
svn path=/trunk/mcs/; revision=138436
2009-07-22 18:25:42 +00:00
Veerapuram Varadhan c3898c2f89 * Implemented generation of code for TableAdapters
svn path=/trunk/mcs/; revision=138435
2009-07-22 18:24:58 +00:00
Veerapuram Varadhan 46cdbd98ec * Utility changes to convert between DbType/SqlDbType/System.Type
svn path=/trunk/mcs/; revision=138434
2009-07-22 18:24:13 +00:00
Veerapuram Varadhan 6576febcaf * Handle <TableAdapter ...> tags in XSD
svn path=/trunk/mcs/; revision=138433
2009-07-22 18:23:24 +00:00
Marek Safar 7de386daa0 New test.
svn path=/trunk/mcs/; revision=138411
2009-07-22 14:26:28 +00:00
Marek Safar deeb072fcc 2009-07-22 Marek Safar <[email protected]>
A fix for bug #523899
	* generics.cs: Exact type inference with other bound types.


svn path=/trunk/mcs/; revision=138410
2009-07-22 14:25:53 +00:00
Jb Evain ed3bd999cc 2009-07-22 Jb Evain <[email protected]>
* monotouch_System.dll.sources: bring Process in.


svn path=/trunk/mcs/; revision=138409
2009-07-22 14:20:44 +00:00
Jb Evain 00d03b988f 2009-07-22 Jb Evain <[email protected]>
* ExpandableObjectConverter.cs: no method to override for a NET_2_1 profile.


svn path=/trunk/mcs/; revision=138408
2009-07-22 14:20:27 +00:00
Jb Evain 44d5cd6772 2009-07-22 Jb Evain <[email protected]>
* ProcessStartInfo.cs: force no-verb on MONOTOUCH.


svn path=/trunk/mcs/; revision=138407
2009-07-22 14:19:51 +00:00
Mark Probst 4becd3d80e 2009-07-22 Mark Probst <[email protected]>
* sgen-gc.c: Align array bounds calculation to mono_array_size_t
        so that big arrays are handled correctly.  Always use
        safe_object_get_size() to calculate array object sizes, which
        takes bounds into account.

svn path=/trunk/mono/; revision=138406
2009-07-22 14:07:21 +00:00
Mark Probst 974172dd12 2009-07-22 Mark Probst <[email protected]>
* sgen-gc.c (mono_gc_wbarrier_value_copy): Make sure the class's
        GC descriptor is computed before we use it.

svn path=/trunk/mono/; revision=138398
2009-07-22 12:46:40 +00:00
Mark Probst 3a489a0589 2009-07-22 Mark Probst <[email protected]>
* icall.c (ves_icall_System_Array_SetGenericValueImpl): Use a
        write barrier if necessary.

svn path=/trunk/mono/; revision=138397
2009-07-22 12:37:53 +00:00
Atsushi Eno 62f25871a3 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : Adding prefix "xml" seems to be allowed
	  as long as the URI is correct. Fixed bug #514015.

	* XmlNamespaceManagerTests.cs : add test for bug #514015.


svn path=/trunk/mcs/; revision=138396
2009-07-22 12:33:56 +00:00
Mark Probst fe94dfb1cf 2009-07-22 Mark Probst <[email protected]>
* icall-def.h, icall.c, thread-types.h: New separate icall for
        VolatileWrite(object&,object) that uses a write barrier.

        * console-unix.c, file-io.c, icall.c, threads.c: Use write
        barriers in icalls which write to "ref" or "out" arguments.

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

        * mini-exceptions.c (ves_icall_get_frame_info): Use write
        barriers.

svn path=/trunk/mono/; revision=138395
2009-07-22 12:22:33 +00:00
Atsushi Eno 4d231fec12 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : ReadValueAsBase64(byte[],int,int) is only
	  in SL2.


svn path=/trunk/mcs/; revision=138387
2009-07-22 12:10:53 +00:00
Atsushi Eno 4f78675e26 2009-07-22 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : for empty element, do not try to consume
	  children. Fixed bug #524086.
	  For enum, it is always error when the enum is not flags, and
	  is always default value for flags.

	* XmlObjectSerializerTest.cs :
	  Add test for bug #524086 by Rolf Bjarne Kvinge.
	  Add enum flags test, which should not raise an error.


svn path=/trunk/mcs/; revision=138386
2009-07-22 12:08:21 +00:00
Raja R Harinath 241e383926 Don't complain when the same type is implemented by the
output assembly as well as multiple referenced assemblies

* namespace.cs (RootNamespace.LookupTypeReflection): Add
'must_be_unique' flag.
(GlobalRootNamespace): Update to changes.
(Namespace.LookupType): Pass 'must_be_unique' only when we don't
already have a type in hand.

svn path=/trunk/mcs/; revision=138385
2009-07-22 11:10:49 +00:00
Atsushi Eno 60d5aeb3f8 2009-07-22 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : name test did not handle String.Empty cases
	  for name and ns (i.e. no filter). Fixed bug #515136.

	* XPathNavigatorTests.cs : added test for bug #515136.


svn path=/trunk/mcs/; revision=138384
2009-07-22 11:05:00 +00:00
Marek Safar 2204b9afbb New test & update.
svn path=/trunk/mcs/; revision=138381
2009-07-22 10:45:34 +00:00
Marek Safar 54333f1972 2009-07-22 Marek Safar <[email protected]>
* expression.cs: More verifier instrumentation.
	
	* statement.cs: Do proper throw expression conversion.


svn path=/trunk/mcs/; revision=138380
2009-07-22 10:45:12 +00:00
Marek Safar eb3ba7fe7a 2009-07-22 Marek Safar <[email protected]>
A fix for bug #522789
	* expression.cs: Mutate invocation return type.


svn path=/trunk/mcs/; revision=138375
2009-07-22 09:43:58 +00:00
Ankit Jain be4cb0e8e8 * xbuild/Microsoft.VisualBasic.targets (Vbc.References): Remove
"@(ChildProjectReferences)" as it gets resolved earlier
and is part of @(ResolvedFiles).

svn path=/trunk/mcs/; revision=138370
2009-07-22 08:39:12 +00:00
Atsushi Eno ca5cc074aa 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : cosmetic exception type change. Patch by
	  Hib Eris. Fixed bug #523971.

	* XmlTextReaderTests.cs : added test for bug #523971 by Hib Eris.


svn path=/trunk/mcs/; revision=138369
2009-07-22 08:38:04 +00:00
Atsushi Eno 49c3dbeaee 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs : when reading empty primitive value,
	  make sure to consume the reader. Fixed bug #524083.

	* XmlObjectSerializerTest.cs : add test for bug #524083, by
	  Rolf Bjarne Kvinge.


svn path=/trunk/mcs/; revision=138367
2009-07-22 08:21:30 +00:00
Atsushi Eno 8bf2399d11 2009-07-22 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : call MoveToContent() before examining
	  the reader node type.

	* XmlObjectSerializerTest.cs : now we can make xml indented as
	  originally done in #524088.


svn path=/trunk/mcs/; revision=138364
2009-07-22 07:47:33 +00:00
Atsushi Eno 9a4b82cacf 2009-07-22 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : Find KnownTypeAttributes in base types
	  too. Patch by Rolf Bjarne Kvinge. Fixed bug #524088.

	* XmlObjectSerializerTest.cs : added test for bug #524088 by
	  Rolf Bjarne Kvinge (a bit modified).


svn path=/trunk/mcs/; revision=138360
2009-07-22 07:22:25 +00:00
Atsushi Eno 54d1220134 2009-07-21 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : do not possibly return null as the Prefix value.
	  Fixed bug #524084.

	* XNodeReaderTest.cs : test Prefix on default namespace.


svn path=/trunk/mcs/; revision=138356
2009-07-22 06:23:35 +00:00
Atsushi Eno 7fed85ca45 2009-07-21 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : a couple of properties did not return correct
	  value for EOF state.

	* XNodeReaderTest.cs : test member behaviors at EOF state.


svn path=/trunk/mcs/; revision=138354
2009-07-22 06:13:07 +00:00
Atsushi Eno ab1fa42c8f 2009-07-21 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : do not return element's IsEmpty on attributes.

	* XNodeReaderTest.cs : on attributes IsEmptyElement is false.


svn path=/trunk/mcs/; revision=138352
2009-07-22 06:02:13 +00:00
Marek Habersack 347c9c8898 Fix the build
svn path=/trunk/mcs/; revision=138339
2009-07-21 22:42:27 +00:00
Ankit Jain 03a605af7f Fix bug #517974.
In class/Microsoft.Build.Tasks:

	* Makefile: Add System.Core .

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

	Fix bug #517974.
	* ResolvedReference.cs (AssemblyName): New.
	(IsPrimary): New. Primary (eg. specified in the project file) or
	dependent reference.
	(FoundInSearchPathAsString): New.
	* AssemblyResolver.cs (GetResolvedReference): Add a 'assembly name'
	param for the new field in ResolvedReference.
	(AssemblyNamesCompatible): Fix the check for public key token.
	Track api changes.

	* ResolveAssemblyReference.cs: Keep track of resolved assemblies,
	prevent duplicate references and other files.
	Process dependencies after resolving all the primary references.
	Search for dependencies in parent assembly's dir first and then
	the specified search paths.
	Detect assembly version conflicts and try to resolve.
	Improve logged messages.
	(PrimaryReference): New.
	(ResolveAssemblyReferenceHelper.AddUniqueFile): New extension method.

In tools/xbuild:

	* xbuild.Microsoft.CSharp.targets (Csc.References): Remove
	"@(ChildProjectReferences)" as it gets resolved earlier
	and is part of @(ResolvedFiles).

In tools/xbuild/tests:

	* standalone/Project01: Add references to two "external" assemblies
	with dependencies.
	* standalone/Project01/Program.cs: Add references in code to the new
	assemblies, to ensure that they are required for compilation.

svn path=/trunk/mcs/; revision=138329
2009-07-21 20:20:26 +00:00
Gert Driesen 3b2ca87f4f * Container.cs: Replaced for loop with for loop.
[Fixes bug #522474]
* ContainerTest.cs: Added test for bug #522474.

svn path=/trunk/mcs/; revision=138328
2009-07-21 19:12:18 +00:00
Zoltan Varga 699b859adc 2009-07-21 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_emit_prolog): Fix thread attaching in aot
	code.

svn path=/trunk/mono/; revision=138326
2009-07-21 18:49:47 +00:00
Jb Evain 5a7278b078 2009-07-21 Jb Evain <[email protected]>
* ThreadPool.cs: avoid an unecessary method call when not running
	in moonlight.


svn path=/trunk/mcs/; revision=138313
2009-07-21 16:23:42 +00:00
Gonzalo Paniagua Javier d80e62fc89 2009-07-21 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: use glib for malloc/free.


svn path=/trunk/mono/; revision=138312
2009-07-21 16:23:03 +00:00
Jb Evain 6b1e826209 2009-07-21 Jb Evain <[email protected]>
* configure.in: add a --with-monotouch option.
	* runtime/Makefile.am: use it to trigger the mcs monotouch build.


svn path=/trunk/mono/; revision=138308
2009-07-21 16:04:23 +00:00
Jonathan Pobst ca2b850122 - Fix the msvc build for the zlib changes in r138254.
svn path=/trunk/mono/; revision=138307
2009-07-21 15:50:03 +00:00
Jb Evain 7d47820bac forgot one entry
svn path=/trunk/mcs/; revision=138305
2009-07-21 15:32:10 +00:00
Gonzalo Paniagua Javier c66cf64fec moved
svn path=/trunk/mcs/; revision=138304
2009-07-21 15:31:41 +00:00
Gonzalo Paniagua Javier faaad5d9b0 do not nullify deflateStream
svn path=/trunk/mcs/; revision=138301
2009-07-21 15:28:56 +00:00
Atsushi Eno 300441d742 2009-07-21 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs : new reply channel implementation.
	* TcpChannelListener.cs : use above for streamed reply channel.
	* TcpDuplexSessionChannel.cs : more streaming mode support.
	* TcpRequestChannel.cs : a couple of updates to get it working
	  with the reply channel above. Still some issues on .NET interop.

	* System.ServiceModel.dll.sources: add TcpReplyChannel.


svn path=/trunk/mcs/; revision=138299
2009-07-21 14:13:06 +00:00
Atsushi Eno 02914de861 2009-07-21 Atsushi Enomoto <[email protected]>
* RequestContext.cs : added internal derived class that implements
	  some members.


svn path=/trunk/mcs/; revision=138298
2009-07-21 14:05:37 +00:00
Atsushi Eno 6160165eb4 2009-07-21 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : for non-session reader and writer, do not
	  use dictionary.


svn path=/trunk/mcs/; revision=138297
2009-07-21 14:03:17 +00:00
Jb Evain 073c557a4b 2009-07-21 Jb Evain <[email protected]>
* Makefile: specify bootstrap and SUBDIRS for the monotouch profile.


svn path=/trunk/mcs/; revision=138296
2009-07-21 13:56:23 +00:00
Atsushi Eno c3501cbb33 2009-07-21 Atsushi Enomoto <[email protected]>
* DataContractSerializer.cs : it does not write dictionary string
	  when it was not created with it.


svn path=/trunk/mcs/; revision=138295
2009-07-21 13:49:37 +00:00
Zoltan Varga 624e4ac4b6 2009-07-21 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Do the work done in the exception
	handler in a separate icall, to reduce the size of the wrappers.

svn path=/trunk/mono/; revision=138287
2009-07-21 12:28:09 +00:00
Marek Habersack d4cc6a70f7 2009-07-21 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/UnquotedAngleBrackets.aspx

2009-07-21  Marek Habersack  <[email protected]>

	* AspTokenizer.cs: in put_back, store inTag value as well.

	* AspParser.cs: correctly parse code like "<asp:tag> < </asp:tag>"

svn path=/trunk/mcs/; revision=138280
2009-07-21 11:24:45 +00:00
Gonzalo Paniagua Javier 90f1896867 2009-07-21 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: don't try to finish the z_stream if it has not been
	used. This fixes all the tests after the latest change.


svn path=/trunk/mono/; revision=138272
2009-07-21 10:36:47 +00:00
Gonzalo Paniagua Javier b08aa45a2b free internal buffer
svn path=/trunk/mono/; revision=138259
2009-07-21 05:42:20 +00:00
Gonzalo Paniagua Javier 4ae9d2a4c2 2009-07-20 Gonzalo Paniagua Javier <[email protected]>
* Makefile.am: replaced zlib_macros.c with zlib-helper.c
	* zlib_macros.c: Removed file.
	* zlib-helper.c: new interface for DeflateStream. Flush() actually
	does something.


svn path=/trunk/mono/; revision=138254
2009-07-21 02:25:00 +00:00
Gonzalo Paniagua Javier 8c052b4698 2009-07-20 Gonzalo Paniagua Javier <[email protected]>
* GzipStream.cs: fixed Dispose (bool).
	* DeflateStream.cs: simplify the interface with unmanaged code, big
	reduction of managaed<->unmanaged round trips.
	Also fixes bug #523418.


svn path=/trunk/mcs/; revision=138252
2009-07-21 02:24:53 +00:00
Carlos Alberto Cortez b4ea9b93c0 * X11Dnd.cs: Implement support for XdndActionList, so we can get the
complete list of the supported actions in the drag source, and use the
	action passed in the Position message only as a fallback. This will
	help us with dnd operations with non winforms apps.
	Fixes #402158.

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


svn path=/trunk/mcs/; revision=138251
2009-07-21 02:11:39 +00:00
Sebastien Pouliot b8b335ca7b 2009-07-20 Sebastien Pouliot <[email protected]>
* Aes.cs: Use the fully qualified name since this is not a type known
	in the default corlib (2.0 or 1.x).


svn path=/trunk/mcs/; revision=138249
2009-07-21 00:55:39 +00:00
Carlos Alberto Cortez 906d7bb541 2009-07-20 Carlos Alberto Cortez <[email protected]>
* ToolStripItemCollection.cs: Use a List<> instead of an ArrayList in
	Find. This should fix the exception we were getting when trying to
	convert the ArrayList to an array of objects (since we were losing the
	type parameter).
	Fixes #519944.


svn path=/trunk/mcs/; revision=138248
2009-07-21 00:32:03 +00:00
Marek Habersack dd23181e08 2009-07-21 Marek Habersack <[email protected]>
* BuildManager.cs: GetReferencedAssemblies unconditionally
	includes all assemblies from bin/ for precompiled sites. Fixes bug
	#502016

svn path=/trunk/mcs/; revision=138246
2009-07-20 23:32:36 +00:00
Marek Habersack 8175b977ad 2009-07-21 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: make sure to ignore invalid bin/
	assemblies in AddAssembliesInBin and GetTypeFromBin.

svn path=/trunk/mcs/; revision=138245
2009-07-20 23:32:03 +00:00
Zoltan Varga 90e5b9777b 2009-07-20 Zoltan Varga <[email protected]>
* basic-simd.cs (Main): Pass args to the test driver.

svn path=/trunk/mono/; revision=138243
2009-07-20 20:45:55 +00:00
Zoltan Varga b992b77507 2009-07-20 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h (amd64_sse_pminud_reg_reg): Fix the encoding
	of this instruction.

svn path=/trunk/mono/; revision=138242
2009-07-20 20:45:49 +00:00
Michael Barker b81aefde91 2009-07-20 Michael Barker <[email protected]>
* AdminTest.cs:  Fixed namespace
	* AsyncPeekTest.cs:  Fixed namespace
	* AsyncReceiveTest.cs:  Fixed namespace
	* BasicMessagingTest.cs:  Fixed namespace
	* MessageEnumeratorTest.cs:  Fixed namespace
	* MQUtil.cs:  Fixed namespace
	* PeekTest.cs:  Fixed namespace
	* SelectorTest.cs:  Fixed namespace

svn path=/trunk/mcs/; revision=138239
2009-07-20 20:38:23 +00:00
Rodrigo Kumpera 989582c4e3 2009-07-20 Rodrigo Kumpera <[email protected]>
* Makefile: Add support for new test kind badmd for tests with broken
	metadata.

	* make_tests.sh: Fix some tests that have broken metadata.

	* *.sh: Add execute bit.

svn path=/trunk/mono/; revision=138236
2009-07-20 19:57:50 +00:00
Rodrigo Kumpera e0e0a6280d 2009-07-20 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_typespec_blob): Fix error message.

svn path=/trunk/mono/; revision=138235
2009-07-20 19:57:39 +00:00
Rodrigo Kumpera 5cac534122 2009-07-20 Rodrigo Kumpera <[email protected]>
* assembly-with-locals.il: Fix method to be verifiable.
	Add more shapes of valid locals.

	* cli-blob-tests.md (locals-sig): Fix some tests.

svn path=/trunk/mono/; revision=138234
2009-07-20 19:57:25 +00:00
Rodrigo Kumpera 812d445630 2009-07-20 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_field): Allow byref field.

	* metadata-verify.c (parse_locals_signature): Allow byref locals.

	* metadata-verify.c (is_valid_typespec_blob): Allow byref typespec.

svn path=/trunk/mono/; revision=138233
2009-07-20 19:57:15 +00:00
Rodrigo Kumpera 1659e7965f 2009-07-20 Rodrigo Kumpera <[email protected]>
* verify.c (do_cast): Fail for any non reference type that isn't boxed.
	Fixes #522784.

svn path=/trunk/mono/; revision=138232
2009-07-20 19:57:01 +00:00
Robert Jordan 8b1cb688ea 2009-07-20 Robert Jordan <[email protected]>
* cominterop.c (cominterop_get_managed_wrapper_adjusted):
	Fix invalid IL in valuetype handling (STOBJ must push the
	corresponding class). Fixes bug #523149.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=138231
2009-07-20 19:05:55 +00:00
Michael Barker 9b2c889017 2009-07-20 Michael Barker <[email protected]>
* MessagingProviderLocator.cs: Default to rabbitmq if no
	MONO_MESSAGING_PROVIDER variable is defined.

svn path=/trunk/mcs/; revision=138230
2009-07-20 18:38:46 +00:00
Michael Barker 38e85130a7 Move tests that do not reference RabbitMQ to System.Messaging.
svn path=/trunk/mcs/; revision=138229
2009-07-20 18:20:32 +00:00
Jb Evain ab62f6e017 missed that part
svn path=/trunk/mcs/; revision=138227
2009-07-20 16:12:45 +00:00
Jb Evain a5ee08151c hopefully fixes the Makefile
svn path=/trunk/mcs/; revision=138226
2009-07-20 16:07:44 +00:00
Jb Evain 6fe38f5790 2009-07-20 Jb Evain <[email protected]>
* Thread.cs: use the moonlight specific thread start
	hack for the net_2_1 profile exclusively.


svn path=/trunk/mcs/; revision=138225
2009-07-20 16:03:23 +00:00
Jb Evain 1edf90b806 2009-07-20 Jb Evain <[email protected]>
* Makefile: set monotouch_SUBDIRS to the net_2_1 assemblies set.


svn path=/trunk/mcs/; revision=138224
2009-07-20 16:00:52 +00:00
Jb Evain a11361bd10 2009-07-20 Jb Evain <[email protected]>
* profiles/monotouch.make: add monotouch profile.


svn path=/trunk/mcs/; revision=138223
2009-07-20 16:00:04 +00:00
Jb Evain 875472ae3a add monotouch sources files
svn path=/trunk/mcs/; revision=138222
2009-07-20 15:59:30 +00:00
Geoff Norton 4a81cc2410 2009-07-20 Geoff Norton <[email protected]>
* mini-x86.c: Fix --trace on darwin-x86 and other systems which require
        aligned access.

svn path=/trunk/mono/; revision=138218
2009-07-20 15:39:36 +00:00
Zoltan Varga 9e65e7bdd2 2009-07-20 Zoltan Varga <[email protected]>
* mini.c (mono_jit_runtime_invoke): Speed this up by adding a hash to
	MonoJitDomainInfo which maps MonoMethod's to a structure containing all
	the information which is needed for invokes, so only one locking+hash table
	lookup is needed.

svn path=/trunk/mono/; revision=138217
2009-07-20 15:13:06 +00:00
Zoltan Varga 2eee6832b5 2009-07-20 Zoltan Varga <[email protected]>
* mini.c (mono_jit_runtime_invoke): Speed this up by adding a hash to
	MonoJitDomainInfo which maps MonoMethod's to a structure containing all
	the information which is needed for invokes, so only one locking+hash table
	lookup is needed.

svn path=/trunk/mono/; revision=138216
2009-07-20 15:12:57 +00:00
Geoff Norton 0678c966fd 2009-07-20 Geoff Norton <[email protected]>
* gc.c: Use proper semaphores where available on posix and darwin.

svn path=/trunk/mono/; revision=138214
2009-07-20 15:06:45 +00:00
Geoff Norton a72b62b5a3 2009-07-20 Geoff Norton <[email protected]>
* thread-private.h: Use the new mono-semaphore.h.

svn path=/trunk/mono/; revision=138213
2009-07-20 15:06:42 +00:00
Geoff Norton 77a3328b68 2009-07-20 Geoff Norton <[email protected]>
* mono-semaphore.h: Refactor from io-layer/thread-private.h so it
        can be used by the runtime as well.

svn path=/trunk/mono/; revision=138212
2009-07-20 15:06:38 +00:00
Zoltan Varga ff905a3591 2009-07-20 Zoltan Varga <[email protected]>
* aot-compiler.c: Add a 'tool-prefix' option to be used when cross-compiling.

svn path=/trunk/mono/; revision=138211
2009-07-20 14:23:56 +00:00
Zoltan Varga 8ee7e9102b 2009-07-20 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_instances): Emit instances of
	GenericComparer<T> for primitive types.

svn path=/trunk/mono/; revision=138210
2009-07-20 14:10:29 +00:00
Jb Evain 06b76b7ca5 avoid using a custom sources file for the net_2_1_raw profile
svn path=/trunk/mcs/; revision=138205
2009-07-20 09:32:00 +00:00
Jb Evain cf8fcd3143 2009-07-20 Jb Evain <[email protected]>
* Makefile: filter the valid profile on the framework version,
	to make it easier to have custom variants.


svn path=/trunk/mcs/; revision=138204
2009-07-20 09:06:50 +00:00
Jb Evain 7d441b75f6 2009-07-20 Jb Evain <[email protected]>
* Makefile: filter the valid profile on the framework version,
	to make it easier to have custom variants.


svn path=/trunk/mcs/; revision=138203
2009-07-20 09:06:08 +00:00
Jb Evain 2649202006 2009-07-20 Jb Evain <[email protected]>
* Makefile: filter the valid profile on the framework version,
	to make it easier to have custom variants.


svn path=/trunk/mcs/; revision=138202
2009-07-20 09:05:50 +00:00
Jb Evain 85f8fcd99f 2009-07-20 Jb Evain <[email protected]>
* Makefile: filter the valid profile on the framework version,
	to make it easier to have custom variants.


svn path=/trunk/mcs/; revision=138201
2009-07-20 09:05:30 +00:00
Jb Evain cdc044525f 2009-07-20 Jb Evain <[email protected]>
* Makefile: filter the valid profile on the framework version,
	to make it easier to have custom variants.


svn path=/trunk/mcs/; revision=138199
2009-07-20 08:54:16 +00:00
Jb Evain f72473979d 2009-07-20 Jb Evain <[email protected]>
* Makefile: filter the valid profile on the framework version,
	to make it easier to have custom variants.


svn path=/trunk/mcs/; revision=138198
2009-07-20 08:53:57 +00:00
Jb Evain 43f59cd5b9 2009-07-20 Jb Evain <[email protected]>
* Lookup.cs: avoid a double dictionary lookup on the indexer.


svn path=/trunk/mcs/; revision=138194
2009-07-20 06:17:06 +00:00
Geoff Norton 5f37b8ab11 2009-07-19 Geoff Norton <[email protected]>
* gc.c: Unnamed posix semaphores are broken on darwin-arm too.



svn path=/trunk/mono/; revision=138192
2009-07-20 03:59:20 +00:00
Gonzalo Paniagua Javier f8ca363886 2009-07-19 Gonzalo Paniagua Javier <[email protected]>
* Lookup.cs: when there are no matching elements, return an empty
	enumerable. Fixes bug #523386.


svn path=/trunk/mcs/; revision=138190
2009-07-20 02:45:47 +00:00
Rodrigo Kumpera 0449ef109f 2009-07-19 Rodrigo Kumpera <[email protected]>
* mini-posix.c: Fix linux build.

svn path=/trunk/mono/; revision=138189
2009-07-19 18:04:12 +00:00
Rodrigo Kumpera c221f4215e 2009-07-19 Rodrigo Kumpera <[email protected]>
* refletion.c (is_sre_usertype): Change name to is_usertype and
	invert it's result so it returns true if the type is an user type
	and not the opposite.

	* reflection.c (is_*_type): Change all of those to use new macro
	check_corlib_type_cached that cached the type lookup so we don't
	need to do string comparisons all the type. Changed the signature
	to take a MonoClass instead.

	* reflection.c: Change mono_image_create_token and resolve_object
	to use is_sre_* functions.

svn path=/trunk/mono/; revision=138188
2009-07-19 17:44:45 +00:00
Geoff Norton 31c7fde068 2009-07-19 Geoff Norton <[email protected]>
* mini.h: Add prototypes for mono_runtime_syscall_fork and
        mono_gdb_render_native_backtraces
        * mini-darwin.c: Apple's syscall(SYS_fork) is very weird on x86,
        so we implement the sane semantics to the runtime here
        (mono_gdb_render_native_backtraces).  Apple also uses an ancient gdb
        so we need to call it differently (mono_gdb_render_native_backtraces)
        * mini-posix.c: Move the old semantics from mini.c to the prototypes
        here for default implementations.
        * mini.c: Refactor mono_handle_native_sigsegv so that we can properly
        support Apple's weird syscall (SYS_fork) implementation and not busy
        loop in abort() on native crashes on OSX anymore.

svn path=/trunk/mono/; revision=138187
2009-07-19 17:27:38 +00:00
Gert Driesen 3b86dc3ee4 * BinderTests.cs: Modified SelectMethod_ByRef and BindToMethod_ByRef
to compile on net_1_1 profile. Added tests for SelectMethod and
BindToMethod with params arguments, currently marked NotWorking.

svn path=/trunk/mcs/; revision=138186
2009-07-19 15:08:43 +00:00
Robert Jordan 50e650bdaa In Mono.Interop:
2009-07-11  Robert Jordan  <[email protected]>

	* ComInteropProxy.cs: Implement CreateProxy. Hide public/internal
	ctors forcing CreateProxy's usage. Hide CacheProxy since the
	runtime is able to lookup it anyways.
	Fixes bug #520437.

In System:
2009-07-19  Robert Jordan  <[email protected]>

	* __ComObject.cs: Factor out Initialize method and expose it to
	ComInteropProxy. Fixes bug #520437.

In System.Runtime.Remoting:
2009-07-11  Robert Jordan  <[email protected]>

	* RemotingServices.cs: Track ComInteropProxy's changes.


svn path=/trunk/mcs/; revision=138182
2009-07-18 23:15:10 +00:00
Michael Barker 785d541abd Added support for setting the provider using an App.config file, also allow for Mono.Messaging.RabbitMQ provider to be loaded from
the GAC.

svn path=/trunk/mcs/; revision=138179
2009-07-18 16:52:20 +00:00
Marek Habersack 21d1cf5593 2009-07-18 Marek Habersack <[email protected]>
* HttpContext.cs: GetGlobalResourceObject must look for resources
	in the 'Resources' "namespace" - it was a regression from the
	previous change to that method.

2009-07-18  Marek Habersack  <[email protected]>

	* DefaultResourceProvider.cs: if GetResourceObject is passed a
	null or empty classKey it just returns null.

	* AppResourcesAssemblyBuilder.cs: satellite assemblies are now
	built using al instead of gmcs - makes the build slightly faster.

svn path=/trunk/mcs/; revision=138177
2009-07-18 13:04:56 +00:00
Gert Driesen 41cb9e9a05 * Container.cs: Use generic list on 2.0 profile, and avoid using var
on 1.0 profile. Use for loop instead of while in Dispose to avoid
accessing count on each iteration.

svn path=/trunk/mcs/; revision=138176
2009-07-18 12:14:42 +00:00
Gert Driesen c58d431a74 * Container.cs: Avoid NRE in Remove and RemoveWithoutUnsiting.
* ContainerTest.cs: Added tests for Remove and RemoveWithoutUnsiting.

svn path=/trunk/mcs/; revision=138175
2009-07-18 09:56:51 +00:00
Gert Driesen 506ae3239b * ContainerTest.cs: Added tests for Add, Dispose, ValidateName and
GetService.
* Container.cs: Changed Dispose(bool) behaviour to match .NET, based
on patch by Tom Hindle ([email protected]). Also use ValidateName
in Add overloads on 1.0 profile by making it available as private
method. Use case-insensitive comparison of component name.

svn path=/trunk/mcs/; revision=138174
2009-07-18 08:20:49 +00:00
Zoltan Varga f827098163 2009-07-18 Zoltan Varga <[email protected]>
* aot-runtime.c (load_method): Change the handling of the
	MONO_LASTAOT env variable so MONO_LASTAOT=0 means that no aot methods
	are used.

svn path=/trunk/mono/; revision=138172
2009-07-17 23:50:11 +00:00
Zoltan Varga 6bc40ff1a0 2009-07-18 Zoltan Varga <[email protected]>
* mini.c (mono_patch_info_equal): Really fix the handling of RGCTX_FETCH.

svn path=/trunk/mono/; revision=138171
2009-07-17 23:50:02 +00:00
Mark Probst 6631e69d44 2009-07-18 Mark Probst <[email protected]>
* sgen-gc.c: Check for writes to the stack in the managed
        wbarrier as well.

svn path=/trunk/mono/; revision=138167
2009-07-17 23:15:35 +00:00
Mark Probst b87f407259 2009-07-18 Mark Probst <[email protected]>
* sgen-gc.c: When a thread is unregistered, don't free its remsets
        but put them on a list which is processed with the other thread's
        remsets.

svn path=/trunk/mono/; revision=138165
2009-07-17 23:07:15 +00:00
Mark Probst b97baf7bc5 2009-07-18 Mark Probst <[email protected]>
* sgen-gc.c: Fix and enable the internal allocator instead of
        using malloc/free (which causes deadlocks).

svn path=/trunk/mono/; revision=138164
2009-07-17 22:45:34 +00:00
Zoltan Varga 8fc5501bd4 2009-07-17 Zoltan Varga <[email protected]>
* add-conditional.pl Makefile: Applied patch from Marcus Griep
	<[email protected]>. Remove workarounds for compiling this assembly in the
	net 1.1 profile.

svn path=/trunk/mcs/; revision=138152
2009-07-17 19:22:32 +00:00
Zoltan Varga 1a3e569c0c 2009-07-17 Zoltan Varga <[email protected]>
* add-conditional.pl Makefile: Applied patch from Marcus Griep
	<[email protected]>. Remove workarounds for compiling this assembly in the
	net 1.1 profile.

svn path=/trunk/mcs/; revision=138151
2009-07-17 19:22:02 +00:00
Zoltan Varga daa2244782 2009-07-17 Zoltan Varga <[email protected]>
* Makefile: Applied patch from Marcus Griep <[email protected]>.
	Move Mono.C5 to net_2_0_dirs.

svn path=/trunk/mcs/; revision=138150
2009-07-17 19:21:43 +00:00
Carlos Alberto Cortez 200693d8d8 2009-07-17 Carlos Alberto Cortez <[email protected]>
* RadioButtonTest.cs: Update the Checked test to not depend on
	Form.Show, since we need to check the same behaviour even if no handle
	has been created yet.


svn path=/trunk/mcs/; revision=138146
2009-07-17 18:27:29 +00:00
Carlos Alberto Cortez ae62cfc993 2009-07-17 Carlos Alberto Cortez <[email protected]>
* RadioButton.cs: Setting Checked when none of the sibligs is checked
	should happen *not* in GotFocus, but in the Enter event. This is
	specially important since we should get that Checked behaviour even if
	no handle is created yet - and thus, no actual GotFocus call happens at
	the time.
	Fixes #520764.


svn path=/trunk/mcs/; revision=138145
2009-07-17 18:24:44 +00:00
Zoltan Varga 244bbf3172 2009-07-17 Zoltan Varga <[email protected]>
* mini.c (mono_patch_info_equal): Revert the last change for now as it
	seems to break the aot tests.

svn path=/trunk/mono/; revision=138144
2009-07-17 18:01:33 +00:00
Gonzalo Paniagua Javier 72090fea58 2009-07-17 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationElement.cs: don't skip xml nodes when reading 2
	ConfigurationElement in a row. Patch by Greg Smolyn that fixes bug
	#521231.


svn path=/trunk/mcs/; revision=138142
2009-07-17 17:58:53 +00:00
Gonzalo Paniagua Javier c2db846430 2009-07-17 Gonzalo Paniagua Javier <[email protected]>
* mono-proclib.c: fix reading processor usage for a process. Patch
	from Jacob Gladish that fixes bug #523052.


svn path=/trunk/mono/; revision=138138
2009-07-17 17:40:46 +00:00
Atsushi Eno 201e82eed4 2009-07-17 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs: add the registered node itself to peer list.
	  (The messaging must be done as TCP request/reply pattern, so it's
	  not working yet.)


svn path=/trunk/mcs/; revision=138126
2009-07-17 13:47:15 +00:00
Atsushi Eno b10ae22317 2009-07-17 Atsushi Enomoto <[email protected]>
* TcpRequestChannel.cs : new channel file (TCP for request/reply
	  messaging pattern). The messaging part is not working yet.
	* TcpChannelFactory.cs : support IRequestChannel.
	* TcpDuplexSessionChannel.cs : add unsized message support.

	* System.ServiceModel.dll.sources: add TcpRequestChannel.


svn path=/trunk/mcs/; revision=138125
2009-07-17 13:45:19 +00:00
Atsushi Eno 25e1fd20dc 2009-07-17 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs, RequestChannelBase.cs :
	  A couple of async members are now implemented in the base class.
	  Ditto for EndpointAddress and Via.


svn path=/trunk/mcs/; revision=138122
2009-07-17 12:48:45 +00:00
Atsushi Eno 2299a9c64b 2009-07-17 Atsushi Enomoto <[email protected]>
* NetTcpBinding.cs : a couple of members should be passed to
	  appropriate binding element.


svn path=/trunk/mcs/; revision=138121
2009-07-17 12:45:36 +00:00
Zoltan Varga e61bf64edb 2009-07-17 Zoltan Varga <[email protected]>
* mini.c (mono_patch_info_equal): Fix the handling of
	MONO_PATCH_INFO_RGCTX_FETCH.

svn path=/trunk/mono/; revision=138095
2009-07-17 02:45:38 +00:00
Miguel de Icaza b6fc772f91 Update docs
svn path=/trunk/mono/; revision=138079
2009-07-16 20:54:19 +00:00
Zoltan Varga 0ba5ce8809 2009-07-16 Zoltan Varga <[email protected]>
* unwind.c: Use TARGET_AMD64 instead of __x86_64__.

svn path=/trunk/mono/; revision=138077
2009-07-16 20:01:17 +00:00
Carlos Alberto Cortez e377b0e3f2 2009-07-16 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: Adjust manually the top border for out internal
	ComboBox, since removing the border from it leaves it without any
	margin. This is not noticeable in a default ComboBox, but it is in an
	instance shown on top of ToolStrip.
	Fixes the remaining part of #507462.


svn path=/trunk/mcs/; revision=138075
2009-07-16 19:46:27 +00:00
Zoltan Varga ef75244fe3 2009-07-16 Zoltan Varga <[email protected]>
* mini.c (mono_patch_info_hash): Fix the handling of
	MONO_PATCH_INFO_INTERNAL_METHOD.
	(mono_patch_info_equal): Ditto.

svn path=/trunk/mono/; revision=138074
2009-07-16 19:23:02 +00:00
Marek Safar 73f18004ec Run the test.
svn path=/trunk/mcs/; revision=138073
2009-07-16 19:13:08 +00:00
Raja R Harinath ef2286816d Improve coarse-grain parallelism in the build
* Makefile (_boot_:net_2_0_bootstrap): Depend on
'net_1_1_bootstrap' profile, rather than 'net_1_1'.
* build/profiles/net_2_0_bootstrap.make (BOOTSTRAP_PROFILE): Set to
net_1_1_bootstrap instead of net_1_1.

svn path=/trunk/mcs/; revision=138070
2009-07-16 17:56:14 +00:00
Sebastien Pouliot f09d0beed3 2009-07-16 Sebastien Pouliot <[email protected]>
* WebHeaderCollection_2_1.cs: Seal type.


svn path=/trunk/mcs/; revision=138068
2009-07-16 17:38:58 +00:00
Sebastien Pouliot 838010f0cd 2009-07-16 Sebastien Pouliot <[email protected]>
* InvalidTimeZoneException.cs, TimeZoneInfo.AdjustmentRule.cs,
	TimeZoneInfo.cs, TimeZoneInfo.TransitionTime.cs: Bring back those
	inside NET_2_1 profile for Moonlight.


svn path=/trunk/mcs/; revision=138067
2009-07-16 17:30:34 +00:00
Raja R Harinath b77fbbbf06 * get.c (get_type): Make robust to invalid types.
svn path=/trunk/mono/; revision=138066
2009-07-16 17:17:00 +00:00
Marek Safar 0515750119 2009-07-16 Marek Safar <[email protected]>
* anonymous.cs: Split assignable and readonly generated variable
	references.


svn path=/trunk/mcs/; revision=138063
2009-07-16 17:03:50 +00:00
Marek Safar 4071a7b618 New test.
svn path=/trunk/mcs/; revision=138060
2009-07-16 15:57:14 +00:00
Marek Safar c81246520d 2009-07-16 Marek Safar <[email protected]>
A fix for bug #521671
	* statement.cs: Fixed crash when checking missing type.


svn path=/trunk/mcs/; revision=138058
2009-07-16 15:56:30 +00:00
Marek Safar a95dd14068 New tests.
svn path=/trunk/mcs/; revision=138055
2009-07-16 15:24:22 +00:00
Marek Safar 09bb8bac27 2009-07-16 Marek Safar <[email protected]>
* typemanager.cs, generic.cs, argument.cs, linq.cs, convert.cs,
	assign.cs, expression.cs, statement.cs, support.cs, ecore.cs,
	class.cs, driver.cs: Work on dynamic binding.

	* dynamic.cs: New file.

	* *.sources, *.proj: Updated.


svn path=/trunk/mcs/; revision=138054
2009-07-16 15:24:06 +00:00
Zoltan Varga 750b6999d3 2009-07-16 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Use module instead of ctx->module
	in a few places.

svn path=/trunk/mono/; revision=138052
2009-07-16 15:10:10 +00:00
Marek Habersack 3d3cd1037f 2009-07-16 Marek Habersack <[email protected]>
* main.c: added new --presources option which prints manifest
	resource offsets and names.

	* monodis.1: added documentation of the --presources option.

svn path=/trunk/mono/; revision=138037
2009-07-16 14:26:18 +00:00
Rodrigo Kumpera 17395d6851 2009-07-16 Rodrigo Kumpera <[email protected]>
* refletion.c: Fix builds with SRE disabled by adding a minimal
	implementation of mono_reflection_type_get_handle.

svn path=/trunk/mono/; revision=138025
2009-07-16 12:33:44 +00:00
Zoltan Varga 14e964f94f 2009-07-16 Zoltan Varga <[email protected]>
* mini-llvm.c: Add some infrastructure for AOT support.

svn path=/trunk/mono/; revision=138022
2009-07-16 11:42:17 +00:00
Zoltan Varga 96f9c506f7 2009-07-15 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (mono_llvm_build_alloca): Update to latest llvm api.

svn path=/trunk/mono/; revision=138021
2009-07-16 11:42:09 +00:00
Jb Evain 481c937742 2009-07-16 Jb Evain <[email protected]>
* Mono.Cecil/AssemblyFactory.cs
	* Mono.Cecil.Metadata/MetadataWriter.cs
	* Mono.Cecil.Binary/ImageWriter.cs:
		Support for properly writing 4.0 dlls.
		Patch by Carlo Kok  <[email protected]>.


svn path=/trunk/mcs/; revision=138018
2009-07-16 09:34:14 +00:00
Rodrigo Kumpera a179aab9e6 2009-07-15 Rodrigo Kumpera <[email protected]>
* refletion.c: Make mono_reflection_type_get_handle non static.

	* object-internals.h: Export mono_reflection_type_get_handle.

	* icall.c (ves_icall_MonoGenericClass_InflateType): Resolve the
	unmanaged handle using mono_reflection_type_get_handle.

	Fix changelog date of previous commit.

svn path=/trunk/mono/; revision=138013
2009-07-16 03:58:07 +00:00
Gonzalo Paniagua Javier a7ad6b8027 2009-07-15 Gonzalo Paniagua Javier <[email protected]>
* Font.cs: implement OriginalFontName.


svn path=/trunk/mcs/; revision=138012
2009-07-16 03:34:10 +00:00
Gonzalo Paniagua Javier ef5858d1fe build hacks
svn path=/trunk/mcs/; revision=138010
2009-07-16 00:43:35 +00:00
Gonzalo Paniagua Javier 59e62f3d10 new class
svn path=/trunk/mcs/; revision=138006
2009-07-15 22:24:05 +00:00
Rodrigo Kumpera bcdb988988 2009-07-14 Rodrigo Kumpera <[email protected]>
* refletion.c: Replace all reads of MonoReflectionType::type with
	calls to mono_reflection_type_get_handle. Only the functions that
	deal with constructing TypeBuilder::type have not been changed
	because they have to deal with NULL values.

	This is a first step into supporting reflection types that don't
	map directly into their unmanaged counterpart.

svn path=/trunk/mono/; revision=138001
2009-07-15 20:46:56 +00:00
Rodrigo Kumpera 4a5288e9e0 2009-07-15 Rodrigo Kumpera <[email protected]>
* cpu-x86.md:
	* cpu-amd64.md: Revert previous change as those instructions
	take 2 separate arguments. Remember to read the arch docs more
	carefully next time.

svn path=/trunk/mono/; revision=138000
2009-07-15 20:46:41 +00:00
Gonzalo Paniagua Javier 66b7461582 2009-07-15 Gonzalo Paniagua Javier <[email protected]>
* mono-proclib.c: fixed setting the NUL terminator.
	Thanks to Jacob Gladish.


svn path=/trunk/mono/; revision=137998
2009-07-15 20:28:25 +00:00
Rodrigo Kumpera 6fa184bfef 2009-07-15 Rodrigo Kumpera <[email protected]>
* EnumBuilder.cs: Use new derived types for array, pointer and byref.

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

	* DerivedTypesTest.cs: New tests for interaction with
	EnumBuilder objects.

svn path=/trunk/mcs/; revision=137989
2009-07-15 19:56:21 +00:00
Rodrigo Kumpera 387ba7e029 2009-07-15 Rodrigo Kumpera <[email protected]>
* GenericTypeParameterBuilder.cs (MakeByRefType): Return an instance
	of PointerType instead of relying on the runtime for it.

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

	* DerivedTypesTest.cs: New tests for PointerTypeinteraction
	with GenericTypeParameterBuilder.

svn path=/trunk/mcs/; revision=137988
2009-07-15 19:56:10 +00:00
Rodrigo Kumpera 9b77ca33c6 2009-07-15 Rodrigo Kumpera <[email protected]>
* GenericTypeParameterBuilder.cs (MakeByRefType): Return an instance
	of ByRefType instead of relying on the runtime for it.

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

	* DerivedTypesTest.cs: New tests for generics related
	stuff and interaction with GenericTypeParameterBuilder.

svn path=/trunk/mcs/; revision=137987
2009-07-15 19:55:58 +00:00
Ankit Jain 8b8f1f0122 Fix bug #519922.
* AssemblyResolver.cs (FindInDirectory): Try the @reference as a
filename as it is, or with different @file_extensions.
If @reference is a assembly name, then look for *.@file_extensions
for target assembly.
(GetAssemblyNameFromFile): Log FileNotFoundException and BadImageFormatException
separately, instead of a single unclear message.

Change all uses of Assembly.GetAssemblyName with GetAssemblyNameFromFile
which does the required error checking and logging.

svn path=/trunk/mcs/; revision=137986
2009-07-15 19:43:02 +00:00
Zoltan Varga 064974f0d5 2009-07-15 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (mono_llvm_build_alloca): Update to latest llvm api.

svn path=/trunk/mono/; revision=137984
2009-07-15 19:04:10 +00:00
Sebastien Pouliot c82f5c894c 2009-07-15 Sebastien Pouliot <[email protected]>
* gdipFunctions.cs: Fix XVisualIDFromVisual to return an IntPtr
	since 64 bits X servers will return a 64 bits value.
	* gdipStructs.cs: Fix XVisualInfo to use IntPtr on fields that
	are 64 bits on 64 bits X servers.
	* Graphics.cs: Adjust CopyFromScreenX11 to work with IntPtr so the
	screenshot code can work on both 32 and 64 bits X servers.
	[Fix bug #521718]


svn path=/trunk/mcs/; revision=137982
2009-07-15 18:57:09 +00:00
Geoff Norton e0d3afd9ac fix a typo
svn path=/trunk/mono/; revision=137974
2009-07-15 17:02:30 +00:00
Paolo Molaro 4f0c6b7f94 Wed Jul 15 17:20:27 CEST 2009 Paolo Molaro <[email protected]>
* mini-ppc.c: exploit multiple load/store units if available (rest of
	the change from Steven Munroe (<[email protected]>) first patch at 
	http://bugzilla.novell.com/show_bug.cgi?id=487846).


svn path=/trunk/mono/; revision=137965
2009-07-15 15:24:02 +00:00
Paolo Molaro c10cd0c617 Wed Jul 15 16:24:57 CEST 2009 Paolo Molaro <[email protected]>
* mini-ppc.c: integrate most of Steven Munroe (<[email protected]>)
	first patch at http://bugzilla.novell.com/show_bug.cgi?id=487846.


svn path=/trunk/mono/; revision=137954
2009-07-15 14:31:18 +00:00
Marek Habersack 4a2ae0bb4f 2009-07-15 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: another approach to suppressing
	application reloads after the app writes to its root web.config
	file. Leaving the previous code in place to get more
	protection. It's a kludge, but it's the best option to avoid
	all the races caused by System.Configuration+FileSystemWatcher
	without rewriting large parts of System.Configuration (and
	System.Web.Configuration). Fixes bug #522017

2009-07-15  Marek Habersack  <[email protected]>

	* Configuration.cs: explicitly flush the stream when writing XML
	data. Part of fix for bug #522017

2009-07-15  Marek Habersack  <[email protected]>

	* HttpApplicationFactory.cs: added internal methods to
	enable/disable specific watchers. Part of fix for bug #522017

svn path=/trunk/mcs/; revision=137951
2009-07-15 13:22:33 +00:00
Marek Safar 5a4401690e 2009-07-15 Marek Safar <[email protected]>
* expression.cs (Conditional): Avoid double Resolve.



svn path=/trunk/mcs/; revision=137948
2009-07-15 13:05:41 +00:00
Rodrigo Kumpera 387d0f5ff9 2009-07-14 Rodrigo Kumpera <[email protected]>
* cpu-x86.md: Fix missing clobbering from trancendental simd
	ops.

	* cpu-amd64.md: Same.

svn path=/trunk/mono/; revision=137924
2009-07-15 01:45:03 +00:00
Gonzalo Paniagua Javier 56f3fa4091 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* SortedListTest.cs: new tests by Kevin Fitzgerald.


svn path=/trunk/mcs/; revision=137921
2009-07-15 01:09:20 +00:00
Gonzalo Paniagua Javier b0a047f690 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* SortedList.cs: same issue as bug #521750 in System.


svn path=/trunk/mcs/; revision=137918
2009-07-15 01:07:45 +00:00
Gonzalo Paniagua Javier c8fd06fbe8 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* SortedListTest.cs: new tests for bug #521750 provided by
	Kevin Fitzgerald.


svn path=/trunk/mcs/; revision=137916
2009-07-15 01:05:07 +00:00
Gonzalo Paniagua Javier 05f367e52d 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* SortedList.cs: the IComparar.Compare arguments were reversed.
	Fixes bug #521750. Patch by Kevin Fitzgerald.


svn path=/trunk/mcs/; revision=137914
2009-07-15 01:02:35 +00:00
Rodrigo Kumpera 6318401c2a 2009-07-14 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_locals_signature): Don't complain
	on signature with zero locals since MS generates it and doesn't
	bother with.

svn path=/trunk/mono/; revision=137913
2009-07-15 00:57:08 +00:00
Gonzalo Paniagua Javier ba5baa26d2 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* ApplicationShutdownReason.cs: add new 3.5 value.
	* ParserErrorCollection.cs: add setter for ParserError.
	Patch from Daniel Gagne.


svn path=/trunk/mcs/; revision=137911
2009-07-15 00:28:16 +00:00
Gonzalo Paniagua Javier 5a1a456325 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* Path.cs: only trim the end of the file.
	Fixes bug #521924.

svn path=/trunk/mcs/; revision=137909
2009-07-15 00:25:06 +00:00
Rodrigo Kumpera b79a0d6279 2009-07-14 Rodrigo Kumpera <[email protected]>
* Attribute.cs (GetCustomAttributes): Pass typeof(Attribute)
	to GetCustomAttributes to match MS.

	* MonoCustomAttrs.cs (GetCustomAttributesBase): Do proper
	checking of which types are handled by the runtime.

	* MonoCustomAttrs.cs (IsDefined): Same.

	Fixes #521885.

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

	* AttributeTest.cs: Add tests for user types passed to
	Attribute.GetCustomAttribute[s].

svn path=/trunk/mcs/; revision=137908
2009-07-15 00:23:22 +00:00
Jerri Maine 690b202cae Contributed under the terms of the MIT/X11 license by
Jerry Maine <[email protected]>.

* basic-simd.cs: Added tests for single and doulble indexers.

* cpu-amd64.md: Added simd opcode information.

* mini-amd64.c: Added IR to native simd generation code.
Added simd register names and function that returns them.

* mini-amd64.h: Added marcos to turn on simd code compilation in
amd64. Added max simd register count marco. Added caller/callee
register mask marcos. Added marcos to use simd register bank.

* mini.h: Added helper marco for shufling dwords and simple
floats.

svn path=/trunk/mono/; revision=137905
2009-07-14 23:16:37 +00:00
Michael Barker 8979501ecc 2009-07-14 Michael Barker <[email protected]>
* RabbitMQMessageQueue.cs: Refactored, removed dead code and renamed methods.

svn path=/trunk/mcs/; revision=137897
2009-07-14 20:31:07 +00:00
Sebastien Pouliot 14846e6f2f Security fix for CVE-2009-0217
svn path=/trunk/mcs/; revision=137886
2009-07-14 18:45:19 +00:00
Zoltan Varga bbccb6b5ad 2009-07-14 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp: Update to latest llvm SVN api.

svn path=/trunk/mono/; revision=137885
2009-07-14 18:28:42 +00:00
Raja R Harinath 973dd2725e * BinderTests.cs (SelectMethod_ByRef, BindToMethod_ByRef): Disable
in net_1_1 profile.

svn path=/trunk/mcs/; revision=137883
2009-07-14 17:59:13 +00:00
Zoltan Varga 79aaaa30b7 2009-07-14 Zoltan Varga <[email protected]>
* Makefile.am (mono_LDADD): Pass LLVM_LDFLAGS to the linked.

	* unwind.c (mono_unwind_get_ops_from_fde): Make this return
	the length of the native code as well.

svn path=/trunk/mono/; revision=137880
2009-07-14 17:47:07 +00:00
Zoltan Varga 7e65d16db3 2009-07-14 Zoltan Varga <[email protected]>
* configure.in: Add more libraries needed by the llvm backend.

svn path=/trunk/mono/; revision=137879
2009-07-14 17:46:58 +00:00
Rodrigo Kumpera 74045e2b03 2009-07-14 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_image_get_array_token): Resolve return
	type using mono_reflection_type_get_handle.

	* reflection.c (mono_image_get_array_token): Resolve array method
	parent type using mono_reflection_type_get_handle.

svn path=/trunk/mono/; revision=137878
2009-07-14 17:45:25 +00:00
Rodrigo Kumpera 799721dae9 2009-07-14 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs (DerivedType): Implement IsAssignableFrom
	and ContainsGenericParameters

	* DerivedTypes.cs (DerivedType::UnderlyingSystemType): Create
	the unmanaged type before returning so the resulting object is
	understood as a SystemType.

	* DerivedTypes.cs (DerivedType::AssemblyQualifiedName): Return null
	if element's FullName is null as well.

	* DerivedTypes.cs (ArrayType::GetAttributeFlagsImpl): Return proper
	array flags if under compiler context.

	* DerivedTypes.cs (*::FormatName): Return null if elementName is.

	* GenericTypeParameterBuilder.cs: Improve compatibility when not
	under compler context.

	* GenericTypeParameterBuilder.cs (MakeArrayType): Return an instance
	of ArrayType instead of relying on the runtime for it.

	* TypeBuilder.cs: Add error checking to MakeArrayType and remove some
	MonoTODO.

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

	* DerivedTypesTest.cs: Added tests for generics related
	stuff and interaction with GenericTypeParameterBuilder.

	* GenericTypeParameterBuilderTest.cs: New file with tests
	for the changes done.

svn path=/trunk/mcs/; revision=137877
2009-07-14 17:45:15 +00:00
Marek Safar 38d6f430bf 2009-07-14 Marek Safar <[email protected]>
* CSharpInvokeBinder.cs, CSharpBinaryOperationBinder.cs,
	CSharpGetMemberBinder.cs, CSharpGetIndexBinder.cs, Extensions.cs,
	CSharpIsEventBinder.cs, CSharpUnaryOperationBinder.cs,
	CSharpConvertBinder.cs, CSharpSetIndexBinder.cs,
	CSharpInvokeMemberBinder.cs, CSharpSetMemberBinder.cs: New files.


svn path=/trunk/mcs/; revision=137873
2009-07-14 16:39:03 +00:00
Gonzalo Paniagua Javier be811a6260 fix the build
svn path=/trunk/mcs/; revision=137868
2009-07-14 15:03:13 +00:00
Marek Habersack 0878d95699 2009-07-14 Marek Habersack <[email protected]>
* FieldTemplateFactoryTest.cs: added

    	* DynamicControlTest.cs: added TearDown method to clean up after
    	non-default field template tests.
    	Added tests for GetAttribute, HtmlEncode, FormattingOptions, Mode,
    	NullDisplayText, SetAttribute, ValidationGroup.

    2009-07-14  Marek Habersack  <[email protected]>

    	* AssertExtensions.cs: include full exception trace in the Fail
    	message

    2009-07-14  Marek Habersack  <[email protected]>

    	* FieldTemplateFactory.cs: implemented TemplateFolderVirtualPath

svn path=/trunk/mcs/; revision=137862
2009-07-14 13:57:54 +00:00
Atsushi Eno bdc7f66289 2009-07-14 Atsushi Enomoto <[email protected]>
* ServiceBehaviorAttribute.cs : fix IsolationLevel default value.
	* CallbackBehaviorAttribute.cs : ditto.
	  Partly implemented interface methods.


svn path=/trunk/mcs/; revision=137861
2009-07-14 13:42:36 +00:00
Atsushi Eno b407c938e5 2009-07-14 Atsushi Enomoto <[email protected]>
* ServiceSettingsResponseInfo.cs
	  RegisterResponseInfo.cs
	  RefreshResponseInfo.cs
	  ResolveInfo.cs
	  UpdateInfo.cs
	  RegisterInfo.cs
	  UnregisterInfo.cs
	  ResolveResponseInfo.cs
	  RefreshInfo.cs : implement HasBody(). I couldn't find any case
	  that this method might return false.

	* PeerResolverSerializationTest.cs : fix test name/namespace.
	  add HasBody() test.


svn path=/trunk/mcs/; revision=137859
2009-07-14 12:41:31 +00:00
Sebastien Pouliot 3b041a87a7 2009-07-14 Sebastien Pouliot <[email protected]>
* System.Net.dll.sources: Remove extra files not needed to
	compile System.Net (and cut the tuning time too)
	* DummySystemNet.cs: Remove. Not needed anymore.


svn path=/trunk/mcs/; revision=137856
2009-07-14 12:24:03 +00:00
Sebastien Pouliot 4d12f1bee0 2009-07-14 Sebastien Pouliot <[email protected]>
* Socket_2_1.cs, SocketAsyncEventArgs.cs: A bit more NET_2_1 defines
	to help the tuner remove some extra types for moonlight.


svn path=/trunk/mcs/; revision=137855
2009-07-14 12:21:46 +00:00
Atsushi Eno a69bc349e4 2009-07-14 Atsushi Enomoto <[email protected]>
* CallbackBehaviorAttributeTest.cs : new test.

	* System.ServiceModel_test.dll.sources:
	  add CallbackBehaviorAttributeTest.cs.


svn path=/trunk/mcs/; revision=137850
2009-07-14 11:33:17 +00:00
Atsushi Eno f1915fefb7 2009-07-14 Atsushi Enomoto <[email protected]>
* OperationBehaviorAttribute.cs :
	  add AutoDisposeParameters, and apply it.
	* CallbackBehaviorAttribute.cs : added couple of missing members.

	* DispatchRuntime.cs : add ValidateMustUnderstand.
	* DispatchOperation.cs : add AutoDisposeParameters.


svn path=/trunk/mcs/; revision=137849
2009-07-14 11:31:10 +00:00
Marek Habersack 01916d259e 2009-07-14 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: added support for suppressing
	application reload when the main config file is written to from
	application.

	* WebConfigurationHost.cs: added minimal implementation of
	WriteCompleted, which checks if there's need to suppress
	application reload.

2009-07-14  Marek Habersack  <[email protected]>

	* ConfigurationSaveEventArgs.cs, ConfigurationSaveEventHandler.cs:
	added

	* Configuration.cs: added two internal events - SaveStart and
	SaveEnd. They are used by System.Web's configuration system to
	suppress application reloads when configuration is modified and
	saved from within a web application. It is necessary to use events
	since there is no guarantee the web application will use
	WebConfigurationManager (and thus WebConfigurationHost) for
	writing.

2009-07-14  Marek Habersack  <[email protected]>

	* System.Configuration.dll.sources: added
	System.Configuration/ConfigurationSaveEventArgs.cs
	System.Configuration/ConfigurationSaveEventHandler.cs

2009-07-14  Marek Habersack  <[email protected]>

	* AssemblyInfo.cs: added InternalsVisibleTo for System.Web

2009-07-14  Marek Habersack  <[email protected]>

	* HttpApplicationFactory.cs: OnFileChanged doesn't reload
	application if reload suppression is active.

svn path=/trunk/mcs/; revision=137847
2009-07-14 11:24:36 +00:00
Zoltan Varga acc16b8735 2009-07-14 Zoltan Varga <[email protected]>
* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=137845
2009-07-14 10:39:52 +00:00
Zoltan Varga 7e9947b0c9 2009-07-14 Zoltan Varga <[email protected]>
* AssemblyBuilder.cs: Applied patch from <[email protected]>. Save
	the public key token to a field where the runtime can access it.

svn path=/trunk/mcs/; revision=137844
2009-07-14 10:39:44 +00:00
Zoltan Varga cb1627d570 2009-07-14 Zoltan Varga <[email protected]>
* reflection.c (mono_image_basic_init): Applied patch from
	<[email protected]>. Set the public key token from the assembly
	builder. Fixes #518909.

	* appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=137843
2009-07-14 10:39:35 +00:00
Atsushi Eno 3c33f30c83 2009-07-14 Atsushi Enomoto <[email protected]>
* CustomPeerResolverService.cs : remove commented code.
	  Fix and reduce extra code in ServiceBehaviorAttribute.


svn path=/trunk/mcs/; revision=137840
2009-07-14 08:05:38 +00:00
Atsushi Eno 39979ffd69 2009-07-14 Atsushi Enomoto <[email protected]>
* ServiceBehaviorAttribute.cs : fix default values and simplify code.


svn path=/trunk/mcs/; revision=137839
2009-07-14 08:04:26 +00:00
Atsushi Eno 13326a07ec 2009-07-14 Atsushi Enomoto <[email protected]>
* ResolveResponseInfo.cs : by default it returns empty address list,
	  instead of xsi:nil.
	* LocalPeerResolverService.cs : resolve operation should return
	  all registered nodes but the client itself.


svn path=/trunk/mcs/; revision=137838
2009-07-14 07:43:44 +00:00
Atsushi Eno b9bde7b74f 2009-07-14 Atsushi Enomoto <[email protected]>
* RefreshResponseInfo.cs : fix name typo.


svn path=/trunk/mcs/; revision=137837
2009-07-14 07:21:47 +00:00
Atsushi Eno 3844b994ec 2009-07-14 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : read false (0x84) and true (0x86).


svn path=/trunk/mcs/; revision=137836
2009-07-14 07:20:17 +00:00
Gonzalo Paniagua Javier 6457cfba7c 2009-07-13 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: when a watched subdirectory is deleted, remove it
	from the list of children and only raise an event if it matches the
	filter.


svn path=/trunk/mcs/; revision=137829
2009-07-13 22:31:34 +00:00
Zoltan Varga 35087f63d5 2009-07-14 Zoltan Varga <[email protected]>
* basic-simd.cs: Add a test for #521662.

svn path=/trunk/mono/; revision=137828
2009-07-13 22:21:45 +00:00
Zoltan Varga 12ce867093 Revert r137822
svn path=/trunk/mono/; revision=137827
2009-07-13 22:19:45 +00:00
Zoltan Varga 3f59a81f59 2009-07-14 Zoltan Varga <[email protected]>
* Changelog: Rename this to ChangeLog.

	* Mono.Simd/Mono.Simd/ArrayExtensions.cs: Don't ignore the 'offset'
	parameter in the GetVector () methods. Fixes #521692.

svn path=/trunk/mcs/; revision=137824
2009-07-13 22:09:35 +00:00
Zoltan Varga 40e91fcd27 2009-07-13 Zoltan Varga <[email protected]>
* basic-simd.cs: Add a test for #521662.

svn path=/trunk/mono/; revision=137822
2009-07-13 21:59:06 +00:00
Zoltan Varga 51c537951c 2009-07-13 Zoltan Varga <[email protected]>
* x86/x86-codegen.h: Applied patch from Marian Salaj <[email protected]>.
	Fix encoding of PMINSW and PMINSD. Fixes #521662.

svn path=/trunk/mono/; revision=137821
2009-07-13 21:58:58 +00:00
Zoltan Varga ad35774d1b 2009-07-13 Zoltan Varga <[email protected]>
* class.c (mono_class_needs_cctor_run): Make this return false if
	the class has no cctor.

svn path=/trunk/mono/; revision=137820
2009-07-13 21:46:41 +00:00
Zoltan Varga 29a69ae76a 2009-07-13 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): When calling a gshared method,
	call a generic class init trampoline if needed. Fixes #519336.

	* generics.cs: Add a test.

svn path=/trunk/mono/; revision=137819
2009-07-13 21:39:31 +00:00
Michael Barker 95dc3521c0 2009-07-11 Michael Barker <[email protected]>
* MessageQueueException.cs: Removed MonoTODO.
	* MessageBaseTest.cs: Moved from Mono.Messaging.Test
	* MessageEnumeratorTest.cs: Moved from Mono.Messaging.Test
	* MessageTest.cs: Used using aliases to prevent namespace clashes.
	* AdminTest.cs: Remove unused variables.
	* AsyncPeekTest.cs: Remove unused variables.
	* AsyncReceiveTest.cs: Remove unused variables.
	* MessageFactory.cs: Switched to DateTime.UtcNow.
	* RabbitMQMessageQueue.cs: Removed some unecessary references to realm.
	* RabbitMQMessagingProvider.cs: Removed some unecessary references to realm.
	Changed volatile field to use Interlocked.Increment (++i is not thread safe).
	* Mono.Messaging.RabbitMQ_test.dll.sources: Moved MessageEnumeratorTest.cs
	and MessageBaseTest.cs from Mono.Messaging.Test.
	* MessageBaseTest.cs: Moved to Mono.Messaging.RabbitMQ.Test
	* MessageEnumeratorTest.cs: Moved to Mono.Messaging.RabbitMQ.Test
	* MessagingProviderLocator.cs:  Removed unessecary fields, made fields
	readonly and some formatting changes.
	* Mono.Messaging_test.dll.sources:  Moved MessageBaseTest.cs and
	MessageEnumeratorTest.cs to Mono.Messaging.RabbitMQ.Test.

svn path=/trunk/mcs/; revision=137816
2009-07-13 20:59:00 +00:00
Marek Habersack 972ba36bac 2009-07-13 Marek Habersack <[email protected]>
* ProvidersHelper.cs: InstantiateProvider doesn't have to
	explicitly look for types in App_Code assemblies - this is done in
	HttpApplication.LoadType.

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

	* AppCodeCompiler.cs: wrap HttpApplication.LoadTypeFromBin call in
	try/catch, so that we can wrap the possible exception in
	HttpException.

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

	* HttpApplication.cs: LoadType - wrap call to LoadTypeFromBin in
	try/catch so that we can decide whether or not to throw
	exceptions. LoadTypeFromBin - ignore the FileLoadException and
	BadImageException exceptions as they don't matter in this
	context.

svn path=/trunk/mcs/; revision=137811
2009-07-13 19:52:03 +00:00
Carlos Alberto Cortez 138cedfb54 2009-07-13 Carlos Alberto Cortez <[email protected]>
* TextBoxBase.cs: Expose the margin top width as a property, to keep
	the code clean.
	* ToolStripTextBox.cs: Since we are actually using no border in the
	default TextBox impl, and we are drawing the border ourselves, we need
	to manually set the top margin.
	Fixes part of #507462.


svn path=/trunk/mcs/; revision=137810
2009-07-13 19:18:38 +00:00
Paolo Molaro 10f268b71b Mon Jul 13 17:58:50 CEST 2009 Paolo Molaro <[email protected]>
* mini-ppc.c: fixed bug introduced by Steven's TLS changes.


svn path=/trunk/mono/; revision=137786
2009-07-13 16:02:08 +00:00
Marek Safar d881c2fa14 New tests.
svn path=/trunk/mcs/; revision=137782
2009-07-13 15:26:47 +00:00
Marek Safar e73cbbc606 2009-07-13 Marcus Griep <[email protected]>
* ecore.cs: Fix obscure bug with resolving members of interfaces
	that hide parent interface members. Fixes bug #444388 and corrects
	bug #323096


svn path=/trunk/mcs/; revision=137781
2009-07-13 15:26:12 +00:00
Mark Probst f242f9eaf8 2009-07-13 Mark Probst <[email protected]>
* sgen-gc.c: When the minor GC needs to allocate a new section,
        invoke the major GC afterwards.

svn path=/trunk/mono/; revision=137780
2009-07-13 15:14:28 +00:00
Marek Safar 149cff9d30 2009-07-13 Marek Safar <[email protected]>
* expression.cs (LocalVariableReference): Bounce resolve.


svn path=/trunk/mcs/; revision=137779
2009-07-13 15:07:05 +00:00
Bill Holmes b7b3f9c874 2009-07-14 Bill Holmes <[email protected]>
* process.c  (ves_icall_System_Diagnostics_Process_ShellExecuteEx_internal) :
	  Applying the window_style field to the SHELLEXECUTEINFO struct.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=137776
2009-07-13 14:14:10 +00:00
Mark Probst 78f0c477dd 2009-07-13 Mark Probst <[email protected]>
* sgen-gc.c: Fix the race condition in the unmanaged allocator by
        locking earlier.  Fix it in the managed allocator by making sure
        that no thread is stopped there before the GC runs.  If we do stop
        a thread there, we restart it and let it run a but, until it stops
        somewhere else.

        * gc-internal.h, gc.c: Function for getting the IP from a signal
        context via a function registered by mini.

2009-07-13  Mark Probst  <[email protected]>

        * mini.c: Register function for getting the IP from a signal
        context with metadata.

svn path=/trunk/mono/; revision=137772
2009-07-13 12:38:22 +00:00
Atsushi Eno f28350170e migration to newer nunit style.
svn path=/trunk/mcs/; revision=137768
2009-07-13 07:52:51 +00:00
Gonzalo Paniagua Javier bb4cd0d150 remove TODOs
svn path=/trunk/mcs/; revision=137760
2009-07-13 04:25:11 +00:00
Gert Driesen 911d145064 * HttpResponseStream.cs: Added argument checks to Write. Modified
methods/properties that requires a readable stream to throw
NotSupportedException instead of InvalidOperationException for
compatibility with MS.
* HttpResponseTest.cs: Store data from all calls to
SendResponseFromMemory. Fixed ClearHeaders test to pass on MS. Added
several tests for outputstream of HttpResponse.

svn path=/trunk/mcs/; revision=137758
2009-07-12 22:19:02 +00:00
Gert Driesen 79490f1be9 * BinderTest.cs: Added SelectMethod/BindToMethod tests for methods
with byref arguments.
* Binder.cs: Only allow a type to match its byref version for
BindToMethod (and not for SelectMethod).
* TypeTest.cs: Enabled test that was failing due to regression.

svn path=/trunk/mcs/; revision=137753
2009-07-12 13:21:19 +00:00
Miguel de Icaza f3691cb232 fix
svn path=/trunk/mcs/; revision=137749
2009-07-11 18:12:17 +00:00
Zoltan Varga a12482d401 2009-07-11 Zoltan Varga <[email protected]>
* runtime-invoke.cs: Convert it to use TestDriver. Add tests for
	ptr types.

svn path=/trunk/mono/; revision=137748
2009-07-11 18:00:12 +00:00
Zoltan Varga d5fab0a706 2009-07-11 Zoltan Varga <[email protected]>
* object-internals.h (MonoIntPtr): New structure describing a boxed
	IntPtr.

	* object.c (mono_runtime_invoke_array): Handle ptr arguments and
	returns. Fixes #519953.

	* marshal.c (mono_marshal_get_runtime_invoke): Handle pointer returns.

svn path=/trunk/mono/; revision=137747
2009-07-11 18:00:04 +00:00
Zoltan Varga d13b74db5e 2009-07-11 Zoltan Varga <[email protected]>
* Binder.cs: Allow conversion of IntPtr to pointer types.

svn path=/trunk/mcs/; revision=137746
2009-07-11 17:57:39 +00:00
Miguel de Icaza 0c48a2f633 Found with Umbraco, this method ignores null pages
svn path=/trunk/mcs/; revision=137744
2009-07-11 16:56:38 +00:00
Jerri Maine 4a09eecd74 Contributed under the terms of the MIT/X11 license by
Jerry Maine <[email protected]>.

* amd64/amd64-codegen.h: Add marcos for coding several specific sse opcodes.
* amd64/amd64-codegen.h: Fix bugs in simd marcos.

svn path=/trunk/mono/; revision=137736
2009-07-10 22:35:07 +00:00
Gonzalo Paniagua Javier fbdb064a75 2009-07-10 Gonzalo Paniagua Javier <[email protected]>
* ProcessStartInfo.cs: HaveEnvVars is enabled by just using the
	EnvironmentVariables property. Bug #520650 fixed.


svn path=/trunk/mcs/; revision=137730
2009-07-10 20:54:29 +00:00
Gonzalo Paniagua Javier abbd1c723c 2009-07-10 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequest.cs: move this back to an instance property.
	Cache works now.


svn path=/trunk/mcs/; revision=137727
2009-07-10 20:01:38 +00:00
Miguel de Icaza 1fa7128b91 Flush
svn path=/trunk/mcs/; revision=137699
2009-07-10 17:10:47 +00:00
Marek Safar 592a760e95 Fixed public key
svn path=/trunk/mcs/; revision=137698
2009-07-10 16:06:17 +00:00
Gonzalo Paniagua Javier 3eb2239307 2009-07-10 Gonzalo Paniagua Javier <[email protected]>
* X509Chain.cs: revert my last change here since it caused 2 tests to
	fail.


svn path=/trunk/mcs/; revision=137694
2009-07-10 15:51:23 +00:00
Marek Safar 5b7067bc7c 2009-07-10 Marek Safar <[email protected]>
* typemanager.cs, lambda.cs, parameter.cs, convert.cs, anonymous.cs,
	expression.cs, literal.cs, ecore.cs, complete.cs: Moved internal
	types to new class.
	
	* support.cs: New dynamic type wrapper.


svn path=/trunk/mcs/; revision=137686
2009-07-10 11:39:24 +00:00
Atsushi Eno c9ed8b45ec 2009-07-10 Atsushi Enomoto <[email protected]>
* nunit20 : removed old framework.


svn path=/trunk/mcs/; revision=137685
2009-07-10 09:12:14 +00:00
Atsushi Eno 307a7776ed 2009-07-10 Atsushi Enomoto <[email protected]>
* SQLiteConnection.cs : remove Console.WriteLine().


svn path=/trunk/mcs/; revision=137684
2009-07-10 09:08:36 +00:00
Atsushi Eno 79f2ff30f9 2009-07-10 Atsushi Enomoto <[email protected]>
* DuplexClientBase.cs : oops, fix build.


svn path=/trunk/mcs/; revision=137683
2009-07-10 09:06:21 +00:00
Atsushi Eno c16ab81273 2009-07-10 Atsushi Enomoto <[email protected]>
* DuplexClientBase.cs : add missing members here too.


svn path=/trunk/mcs/; revision=137682
2009-07-10 09:03:49 +00:00
Atsushi Eno 9e1b47e26d 2009-07-10 Atsushi Enomoto <[email protected]>
* ClientBase.cs : some of Silverlight API are backported to full CLR.


svn path=/trunk/mcs/; revision=137680
2009-07-10 07:45:05 +00:00
Atsushi Eno d51ae9a74d 2009-07-10 Atsushi Enomoto <[email protected]>
* DuplexChannelFactory.cs : fill missing members.


svn path=/trunk/mcs/; revision=137679
2009-07-10 07:35:18 +00:00
Gonzalo Paniagua Javier cae867a722 2009-07-10 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: implement GetWebRequest and GetWebResponse. Use them
	instead of SetupRequest and ProcessResponse.


svn path=/trunk/mcs/; revision=137673
2009-07-10 05:45:10 +00:00
Atsushi Eno 6d5f8b6bbb 2009-07-10 Atsushi Enomoto <[email protected]>
* PeerNode.cs : significant refactoring. It does not call resolver
	  to manage the node itself but rather hold its state.

	* PeerDuplexChannel.cs : now it implements some of node management
	  functionality and Send operation. The receiver part is not yet.


svn path=/trunk/mcs/; revision=137671
2009-07-10 03:34:07 +00:00
Atsushi Eno 2964b69e86 2009-07-10 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs : do not pass
	  timeout to channel constructor. it does not make sense.


svn path=/trunk/mcs/; revision=137670
2009-07-10 03:30:17 +00:00
Atsushi Eno b4af91a324 2009-07-10 Atsushi Enomoto <[email protected]>
* PeerChannelFactory.cs, PeerChannelListener.cs : add MessageEncoder
	  as common interface member, and use binary encoder (not text).


svn path=/trunk/mcs/; revision=137669
2009-07-10 03:27:56 +00:00
Gonzalo Paniagua Javier bc9b46831d 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: use different ports for different tests since
	the shutdown might take a little bit and tests might conflict.


svn path=/trunk/mcs/; revision=137667
2009-07-10 03:21:35 +00:00
Gonzalo Paniagua Javier 64faaf06cf ignore test that fails on windows
svn path=/trunk/mcs/; revision=137665
2009-07-09 23:07:14 +00:00
Zoltan Varga 00fa98f26e 2009-07-10 Zoltan Varga <[email protected]>
* TypeTest.cs: Add a test for #520690. Disable a test which fails on
	MS.NET.

svn path=/trunk/mcs/; revision=137664
2009-07-09 23:05:36 +00:00
Zoltan Varga 9763367b96 2009-07-10 Zoltan Varga <[email protected]>
* Binder.cs (check_arguments): Allow a type to match its byref version.
	Fixes #520690.

svn path=/trunk/mcs/; revision=137663
2009-07-09 23:05:27 +00:00
Jb Evain 24fd267519 oops
svn path=/trunk/mcs/; revision=137655
2009-07-09 19:22:40 +00:00
Jb Evain df74eca620 2009-07-09 Jb Evain <[email protected]>
* HashSet.cs (ICollection<T>.Add): fix for bug #520760. Do not throw
	when adding duplicates.


svn path=/trunk/mcs/; revision=137653
2009-07-09 19:12:13 +00:00
Jb Evain 98e665927e 2009-07-09 Jb Evain <[email protected]>
* HashSetTest.cs: add test for #520760, ICollection<T>.Add
	should not throw on duplicates.


svn path=/trunk/mcs/; revision=137652
2009-07-09 19:11:23 +00:00
Gonzalo Paniagua Javier 44cc7fceee fix the build
svn path=/trunk/mcs/; revision=137650
2009-07-09 18:37:26 +00:00
Mark Probst c62af61a77 2009-07-09 Mark Probst <[email protected]>
* class-internals.h, generic-sharing.c: New RGCTX info type for
        getting a remoting invoke with check wrapper.

2009-07-09  Mark Probst  <[email protected]>

        * method-to-ir.c: When doing a call which might be remote from
        shared generic code to other shared code with open type arguments,
        get the remoting invoke wrapper from the RGCTX and do an indirect
        call to it.

2009-07-09  Mark Probst  <[email protected]>

        * generic-xdomain.2.cs: Test case for generic marshal-by-ref
        objects.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=137640
2009-07-09 17:21:57 +00:00
Gonzalo Paniagua Javier 3f6c08034a 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* HttpApplication.cs: use GetSection instead of
	OpenWebConfiguration+GetSection.


svn path=/trunk/mcs/; revision=137638
2009-07-09 17:18:34 +00:00
Gonzalo Paniagua Javier e9eeee5291 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* SqliteMembershipProvider.cs:
	* UrlAuthorizationModule.cs: use GetSection instead of
	OpenWebConfiguration+GetSection.


svn path=/trunk/mcs/; revision=137636
2009-07-09 17:13:34 +00:00
Gonzalo Paniagua Javier 2f88b4a701 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequest.cs: store the root web configuration path in a
	static variable.


svn path=/trunk/mcs/; revision=137634
2009-07-09 17:11:30 +00:00
Gonzalo Paniagua Javier 3d7ff5cc84 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationHost.cs: null means MachineToApplication.
	* WebConfigurationManager.cs: when caching configuration and sections,
	use the configuration file directory instead of the incoming request
	path.


svn path=/trunk/mcs/; revision=137632
2009-07-09 17:10:07 +00:00
Marek Habersack 6e2c12210d 2009-07-09 Marek Habersack <[email protected]>
* DefaultResourceProvider.cs, DefaultResourceProviderFactory.cs:
	added

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

	* HttpContext.cs: fall back to default resource provider factory
	if the factory provided by user doesn't have the required object
	in Get{Global,Local}ResourceObject. Fixes bug #520397
	Refactored the GetResourceObject method and the
	ResourceManagerCacheKey class to DefaultResourceProvider.

svn path=/trunk/mcs/; revision=137624
2009-07-09 13:01:10 +00:00
Atsushi Eno f71a89b038 2009-07-09 Atsushi Enomoto <[email protected]>
* PeerNode.cs : some implementation cleanup before significant
	  refactoring. Mesh state is not maintained here. Use optionally
	  fixed listener address and port. Set offline status when closed.

	* PeerDuplexChannel.cs : PeerNode constructor argument changes.


svn path=/trunk/mcs/; revision=137621
2009-07-09 11:05:39 +00:00
Atsushi Eno c09d592238 2009-07-09 Atsushi Enomoto <[email protected]>
* LocalPeerResolverService.cs : fix RegistrationLifetime to return.


svn path=/trunk/mcs/; revision=137620
2009-07-09 11:02:31 +00:00
Marek Safar 3f5dd45fcc Updated.
svn path=/trunk/mcs/; revision=137615
2009-07-09 08:52:12 +00:00
Gert Driesen 70cfcbd496 * XmlSchemaTests.cs: Fixed tests for bug #502115.
svn path=/trunk/mcs/; revision=137595
2009-07-09 04:46:00 +00:00
Atsushi Eno 9ff32e41c8 2009-07-09 Atsushi Enomoto <[email protected]>
* XmlSchemaTests.cs : disabled wrong tests. I will revert them
	  unless it gets better shape.


svn path=/trunk/mcs/; revision=137594
2009-07-09 04:06:41 +00:00
Gonzalo Paniagua Javier 30b457b8e0 prefer MonoIOMAP directive over MONO_IOMAP, update version, fix long line
svn path=/trunk/mono/; revision=137592
2009-07-09 02:37:09 +00:00
Carlos Alberto Cortez a327820630 2009-07-09 Carlos Alberto Cortez <[email protected]>
* PageSourceTest.cs:
	* PaperSizeTest.cs: Include the new tests in NET_2_0 define, to fix
	the 1.1 build.


svn path=/trunk/mcs/; revision=137589
2009-07-08 23:40:55 +00:00
Marek Habersack b0e7fbf81a Fix 1.1 build
svn path=/trunk/mcs/; revision=137587
2009-07-08 22:22:03 +00:00
Rodrigo Kumpera ed4dffb25a 2009-07-08 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs: Implemented PointerType.

	* TypeBuilder.cs (MakePointerType): Return an
	instance of PointerType.

2009-07-08 Rodrigo Kumpera  <[email protected]>

	* DerivedTypesTest.cs: New tests for PointerType.

svn path=/trunk/mcs/; revision=137586
2009-07-08 21:46:10 +00:00
Rodrigo Kumpera a988de176c 2009-07-07 Rodrigo Kumpera <[email protected]>
* object-internals.h: Add MonoReflectionDerivedType.

	* reflection.c: Implement support for PointerType.
	Fixed tons of warnings.

svn path=/trunk/mono/; revision=137585
2009-07-08 21:46:01 +00:00
Rodrigo Kumpera 39ce1929d1 2009-07-08 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs: Implemented ByRefType.

	* TypeBuilder.cs (MakeByRefType): Return an
	instance of ByRefType.

2009-07-08 Rodrigo Kumpera  <[email protected]>

	* DerivedTypesTest.cs: New tests for ByRefType.

svn path=/trunk/mcs/; revision=137584
2009-07-08 21:45:54 +00:00
Rodrigo Kumpera a087862006 2009-07-08 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs: Refactor the types here to move
	a lot of code to the base DerivedType in preparation
	for upcomming ByRefType and PointerType puppies.

svn path=/trunk/mcs/; revision=137583
2009-07-08 21:45:36 +00:00
Rodrigo Kumpera e757ea98b1 2009-07-07 Rodrigo Kumpera <[email protected]>
* object-internals.h: Add MonoReflectionByRefType.

	* reflection.c: Implement support for ByRefType.

svn path=/trunk/mono/; revision=137582
2009-07-08 21:45:35 +00:00
Geoff Norton 68a0284d94 2009-07-07 Geoff Norton <[email protected]>
* icall-def.h: Fix the enable-minimal build.

svn path=/trunk/mono/; revision=137581
2009-07-08 21:02:51 +00:00
Gonzalo Paniagua Javier e35c0b2928 2009-07-08 Gonzalo Paniagua Javier <[email protected]>
* AssemblyResourceLoader.cs: send minimal headers set and don't call
	response.End.  When possible, write the resource using the unsafe
	methods in HttpResponseStream.a


svn path=/trunk/mcs/; revision=137576
2009-07-08 17:36:00 +00:00
Carlos Alberto Cortez 907f350f53 2009-07-08 Carlos Alberto Cortez <[email protected]>
* System.Drawing_test.dll.sources: Add PageSourceTest.cs and
	PaperSizeTest.cs.


svn path=/trunk/mcs/; revision=137573
2009-07-08 16:26:12 +00:00
Marek Habersack 4682ccf73b 2009-07-08 Marek Habersack <[email protected]>
* DynamicControlTest.cs: added tests for ApplyFormatInEditMode,
	Column, ConvertEmptyStringToNull, CssClass, DataField,
	DataFormatString, FieldTemplate, Table, UIHint

2009-07-08  Marek Habersack  <[email protected]>

	* WebTest.cs: added new public property - TestBaseDir, to be used
	by code which needs to access the files in the work dir.

2009-07-08  Marek Habersack  <[email protected]>

	* TestsSetup.cs: added the BuildPath helper method which converts
	unix-style filesystem paths to the os-specific format.

svn path=/trunk/mcs/; revision=137568
2009-07-08 13:48:59 +00:00
Carlos Alberto Cortez 3cbc62482a 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PaperSource.cs: Implement RawKind.
	Fixes the remaining bits of #507739.


svn path=/trunk/mcs/; revision=137565
2009-07-08 13:13:58 +00:00
Carlos Alberto Cortez dc58173d51 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PageSourceTest.cs: New file, by Andy Hume <[email protected]>


svn path=/trunk/mcs/; revision=137564
2009-07-08 12:56:29 +00:00
Carlos Alberto Cortez bba023dbd1 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PaperSizeTest.cs: New file, by Andy Hume <[email protected]>


svn path=/trunk/mcs/; revision=137560
2009-07-08 12:01:07 +00:00
Carlos Alberto Cortez f1e3a57f5b 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PaperSize.cs: Implement support for RawKind.
	Patch by Andy Hume ([email protected]).
	Fixes part of #507739.


svn path=/trunk/mcs/; revision=137559
2009-07-08 11:58:10 +00:00
Marek Habersack f077d18ea2 2009-07-08 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #520024

2009-07-08  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/PreprocessorDirectivesInMarkup.aspx

2009-07-08  Marek Habersack  <[email protected]>

	* AspParser.cs: GetServerTag mustn't treat <% # ... %> as
	data-binding directives. Fixes bug #520024

	* AssemblyBuilder.cs: if debugging information is on, append
	/d:DEBUG to the compiler's command line.

svn path=/trunk/mcs/; revision=137558
2009-07-08 11:54:37 +00:00
Marek Safar 7f8a5c9275 New tests.
svn path=/trunk/mcs/; revision=137556
2009-07-08 09:34:22 +00:00
Marek Safar b386732e3c 2009-07-08 Marek Safar <[email protected]>
* ecore.cs, cs-parser.jay: Better error reporting for implicitly
	typed local variable.


svn path=/trunk/mcs/; revision=137555
2009-07-08 09:34:09 +00:00
Atsushi Eno 680c9fc67d 2009-07-08 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs, PeerChannelListener.cs, PeerOutputChannel.cs,
	  PeerInputChannel.cs, PeerChannelFactory.cs : those channels are
	  going to be unified to PeerDuplexChannel. And it is likely that
	  input and output functionalities are to be unified too.


svn path=/trunk/mcs/; revision=137535
2009-07-08 08:21:03 +00:00
Atsushi Eno ef8b4ccae4 2009-07-08 Atsushi Enomoto <[email protected]>
* TcpChannelFactory.cs : (TcpChannelInfo) ease type restriction. I
	  may have to reuse it for peer transport.
	* PeerChannelListener.cs : add binding member.
	* PeerDuplexChannel.cs : remove NIE overrides. Fill fields a bit.


svn path=/trunk/mcs/; revision=137531
2009-07-08 05:13:21 +00:00
Atsushi Eno af7bf18f6f 2009-07-08 Atsushi Enomoto <[email protected]>
* NetTcpBindingTest.cs : added simple connection test. It somehow
	  stops for a while (without failing) though...


svn path=/trunk/mcs/; revision=137530
2009-07-08 05:11:13 +00:00
Atsushi Eno 7715d271bf 2009-07-08 Atsushi Enomoto <[email protected]>
* NetPeerTcpBinding.cs : Fix interface implementations.

	* NetPeerTcpBindingTest.cs : a bit of interface implementation test.


svn path=/trunk/mcs/; revision=137529
2009-07-08 05:04:11 +00:00
Atsushi Eno 09f0a1b008 2009-07-08 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs, HttpChannelFactory.cs,
	  PeerChannelFactory.cs : close opened channels at OnClose() as
	  documented. Implement async methods.
	* PeerChannelListener.cs : removed some NIE overrides.


svn path=/trunk/mcs/; revision=137528
2009-07-08 01:00:32 +00:00
Rodrigo Kumpera f8c591d6d1 2009-07-07 Rodrigo Kumpera <[email protected]>
* DerivedTypesTest.cs: New tests for types derived from
	TypeBuilder.

svn path=/trunk/mcs/; revision=137523
2009-07-07 23:21:08 +00:00
Rodrigo Kumpera 51e2ead759 2009-07-07 Rodrigo Kumpera <[email protected]>
* icall-def.h: Add System.Reflection.Emit.DerivedType::create_unmanaged_type.

	* object-internals.h: Add MonoReflectionArrayType and
	mono_reflection_create_unmanaged_type.

	* reflection.c: Implement support for ArrayType.

svn path=/trunk/mono/; revision=137522
2009-07-07 23:20:48 +00:00
Rodrigo Kumpera fe743a6977 2009-07-07 Rodrigo Kumpera <[email protected]>
* Type.cs (IsUserType): Only TypeDelegator and types
	outside of corlib are unhandled usertypes.

2009-07-07 Rodrigo Kumpera  <[email protected]>

	* TypeBuilder.cs (IsArrayImpl): Return false always as a
	typebuilder will never represent an array.

	* TypeBuilder.cs (MakeArrayType): Return a new instance of
	ArrayType instead of calling into MonoType machinery.

	* DerivedTypes.cs: New file with all the internal types
	used by SRE to represent derived types from TypeBuilder:
	arrays, pointers and byrefs'.

svn path=/trunk/mcs/; revision=137521
2009-07-07 23:20:45 +00:00
Rodrigo Kumpera 0cb2d62bdc 2009-07-07 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_method_header): Parse EH block
	flags correctly.

svn path=/trunk/mono/; revision=137510
2009-07-07 16:32:35 +00:00
Atsushi Eno 4d0710b0a4 2009-07-07 Atsushi Enomoto <[email protected]>
* CustomPeerResolverService.cs, LocalPeerResolverService.cs,
	  ICustomPeerResolverContract.cs : add local machine peer resolver
	  implementation that can work across appdomains (based on
	  dispatching peer resolver that communicates with a ServiceHost
	  which is either locally started or running as a different process).

	* System.ServiceModel.dll.sources:
	  Added new custom peer resolver files.


svn path=/trunk/mcs/; revision=137504
2009-07-07 15:16:55 +00:00
Gonzalo Paniagua Javier 0e2463e1d3 2009-07-07 Gonzalo Paniagua Javier <[email protected]>
* WebClientTest.cs: if we write the 100 response, reset the output
	stream writer.


svn path=/trunk/mcs/; revision=137500
2009-07-07 15:09:46 +00:00
Gonzalo Paniagua Javier 547e70a03b 2009-07-07 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: set the content length when uploading values. This
	allows reusing the connection.
	* WebConnectionStream.cs: SetHeaders() takes ownership of the buffer
	and does not need to copy it any more. WriteRequest() wasn't always
	setting 'requestWritten' to true.
	* HttpWebRequest.cs: change in SetHeaders call.


svn path=/trunk/mcs/; revision=137497
2009-07-07 14:57:51 +00:00
Gonzalo Paniagua Javier d05647432b 2009-07-07 Gonzalo Paniagua Javier <[email protected]>
* ParserError.cs: add 3 missing setters. Patch from Daniel Gagne.


svn path=/trunk/mcs/; revision=137494
2009-07-07 13:20:01 +00:00
Atsushi Eno 266150fbfa 2009-07-07 Atsushi Enomoto <[email protected]>
* EndpointAddress10Test.cs : added a few more serialization tests.


svn path=/trunk/mcs/; revision=137493
2009-07-07 12:51:01 +00:00
Atsushi Eno e2c8005ff7 2009-07-07 Atsushi Enomoto <[email protected]>
* PeerNodeAddressTest.cs : new test.

	* System.ServiceModel_test.dll.sources:
	  add PeerNodeAddressTest.cs.


svn path=/trunk/mcs/; revision=137492
2009-07-07 12:48:38 +00:00
Atsushi Eno 664b259d8d 2009-07-07 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs, SerializationMap.cs : IXmlSerializable
	  were not deserialized correctly as it has mismatch on wrapper
	  element. This fixes PeerNodeAddress.EndpointAddress deserialization.


svn path=/trunk/mcs/; revision=137491
2009-07-07 12:36:30 +00:00
Atsushi Eno 4b08c634b1 2009-07-07 Atsushi Enomoto <[email protected]>
* XmlSimpleDictionaryWriter.cs : fix bogus import of
	  XmlWriter.WriteNode() to handle more than two elements.

	* XmlSimpleDictionaryWriterTest.cs : test WriteNode() to not skip more
	  than two nodes in an element.


svn path=/trunk/mcs/; revision=137485
2009-07-07 10:27:58 +00:00
Carlos Alberto Cortez 207d41b7a5 2009-07-07 Carlos Alberto Cortez <[email protected]>
* PaperSize.cs: Actually implement RawKind by retrieving and setting
	the kind field.


svn path=/trunk/mcs/; revision=137481
2009-07-07 07:08:10 +00:00
Carlos Alberto Cortez a2c389bcc5 2009-07-06 Carlos Alberto Cortez <[email protected]>
* PrintPreviewDialog.cs: Record when left was pressed, so we can
	simulate Tab+Alt when moving the focus throughout our buttons and
	controls.
	Fixes the remaining bits of #509142.


svn path=/trunk/mcs/; revision=137479
2009-07-07 06:01:37 +00:00
Gert Driesen 8d403f0381 * WebConnectionStream.cs: Move and improve argument checks to match MS.
Modified CanRead and CanWrite to return false when instance is disposed.
* HttpWebRequestTest.cs: Enabled tests, and removed test that is now
covered by two separate CanTimeout tests for request and response
stream.
* HttpWebResponseStreamTest.cs: Enabled tests.

svn path=/trunk/mcs/; revision=137450
2009-07-06 19:58:00 +00:00
Gert Driesen ba7a4ef720 * HttpWebRequestTest.cs: Marked test notworking on 1.0 profile.
svn path=/trunk/mcs/; revision=137448
2009-07-06 19:34:33 +00:00
Gert Driesen 610473cb54 * HttpWebRequestTest.cs: Added tests for bug #511851. Added tests
for request stream. Fixed compiler warnings, and fixed code style.
* HttpWebResponseTest.cs: Added tests for response stream. Fixed
compiler warnings.

svn path=/trunk/mcs/; revision=137447
2009-07-06 19:30:33 +00:00
Raja R Harinath ff3044bb41 Handle absense of ExecutionScope
* ExpressionTest.cs (ExpressionDelegateTarget) [NET_4_0]: Disable
check for ExecutionScope.
(GlobalsInSpace) [NET_4_0]: Disable.

svn path=/trunk/mcs/; revision=137444
2009-07-06 19:21:33 +00:00
Raja R Harinath c1502d0e46 * AssemblyInfo.cs: Don't make internals visible to System.Web_test.
svn path=/trunk/mcs/; revision=137443
2009-07-06 19:15:09 +00:00
Raja R Harinath a0e5f81af7 * UrlUtilsTest.cs: Use SystemWebTestShim.UriUtils.
svn path=/trunk/mcs/; revision=137442
2009-07-06 19:14:48 +00:00
Raja R Harinath 950b594928 Expose internal constructors of various Adapter types.
In class/System.Web/Test/System.Web.UI.Adapters:

	* PageAdapterTest.cs (MyPage): Derive from SystemWebTestShim.Page.
	(MyPageAdapter): Derive from SystemWebTestShim.PageAdapter.
	(MyPageAdapter.GetPostBAckFormReference): New forwarding method.

In class/System.Web/Test/System.Web.UI.WebControls.Adapters:

	* DataBoundControlAdapterTest.cs: Derive from
	SystemWebTestShim.DataBoundControlAdapter.
	* HideDisabledControlAdapterTest.cs (Render): Use
	SystemWebTestShim.HideDisabledControlAdapter.
	* HierarchicalDataBoundControlAdapterTest.cs: Derive from
	SystemWebTestShim.HierarchicalDataBoundControlAdapter.
	* MenuAdapterTest.cs: Derive from SystemWebTestShim.MenuAdapter.
	* WebControlAdapterTest.cs: Derive from
	SystemWebTestShim.WebControlAdapter.cs.

In class/SystemWebTestShim:

	* SystemWebTestShim.dll.sources: Add Adapters.cs

svn path=/trunk/mcs/; revision=137441
2009-07-06 18:54:18 +00:00
Raja R Harinath dfb255822f More forwarding methods
* PageAdapterTest.cs (MyPage.MyDeterminePostBackMode): New
forwarding method to expose protected method.
(MyPageAdapter): Change constructor argument to type 'MyPage'.

svn path=/trunk/mcs/; revision=137439
2009-07-06 18:32:33 +00:00
Raja R Harinath efbf2da362 * MenuAdapterTest.cs (MyMenuAdapter): Add new forwarding methods
to expose protected base methods.

svn path=/trunk/mcs/; revision=137438
2009-07-06 18:32:05 +00:00
Raja R Harinath bccd4d4e3a * HtmlFormTest.cs: Derive from SystemWebTestShim.Page to make
explicit the dependence on the internals of the Page class.

svn path=/trunk/mcs/; revision=137436
2009-07-06 18:02:16 +00:00
Gonzalo Paniagua Javier 09ff251a3a 2009-07-06 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: add tests for POST + redirect and 401.


svn path=/trunk/mcs/; revision=137429
2009-07-06 17:40:28 +00:00
Raja R Harinath 03ad33bf54 Kill some un-necessary 'protected internal override'
* DataBoundControlAdapterTest.cs (PerformDataBinding): Don't use
'protected internal' when overriding a method from a different assembly.
* HideDisabledControlAdapterTest.cs (RenderContents): Likewise.
* HierarchicalDataBoundControlAdapterTest.cs (PerformDataBinding): Likewise.
* MenuAdapterTest.cs (OnInit, OnPreRender, RaisePostBackEvent)
(RenderContents): Likewise.
* WebControlAdapterTest.cs (RenderContents): Likewise.

svn path=/trunk/mcs/; revision=137423
2009-07-06 16:59:32 +00:00
Raja R Harinath 6b8d860a87 * ControlAdapterTest.cs: Use SystemWebTestShim to set
HttpCapabilitiesBase internal flag.

svn path=/trunk/mcs/; revision=137421
2009-07-06 16:02:42 +00:00
Raja R Harinath 3f9d37cf39 Use ExpectedException(string) when referring to internal exception types
In class/System.Web/Test/System.Web.Compilation:

	* TemplateControlCompilerTest.cs (InvalidPropertyBindTest1):
	Don't use 'typeof' on a System.Web internal exception type.
	(InvalidPropertyBindTest3): Likewise.

In class/System.Web/Test/System.Web.UI:

	* PageParserTest.cs (MissingMasterFile): Don't use 'typeof' on a
	System.Web internal exception type.

svn path=/trunk/mcs/; revision=137420
2009-07-06 16:02:16 +00:00
Marek Safar 3ae872a494 New test.
svn path=/trunk/mcs/; revision=137415
2009-07-06 15:01:02 +00:00
Marek Safar 5cd5118465 2009-07-06 Marek Safar <[email protected]>
A fix for bug #519005
	* anonymous.cs: Use null_type as no return type placeholder.


svn path=/trunk/mcs/; revision=137414
2009-07-06 14:58:42 +00:00
Raja R Harinath 60b4cff527 * AssemblyInfo.cs: Don't make internals visible to
System.Web.Extensions_test and System.Web.DynamicData_test.

svn path=/trunk/mcs/; revision=137413
2009-07-06 14:53:43 +00:00
Raja R Harinath af8967aed9 * WebTest.cs (Run): Use SystemWebTestShim.BuildManager.
svn path=/trunk/mcs/; revision=137412
2009-07-06 14:53:19 +00:00
Raja R Harinath def434b458 Add SystemWebTestShim so that we can avoid InternalsVisibleTo(testsuite)
class/Makefile (common_dirs): Add SystemWebTestShim.
class/System.Web/Makefile (TEST_MCS_FLAGS): Reference SystemWebTestShim.
class/System.Web.DynamicData/Makefile: Likewise.
class/System.Web.Extensions/Makefile: Likewise.

svn path=/trunk/mcs/; revision=137411
2009-07-06 14:52:54 +00:00
Raja R Harinath 68ba558de1 fix build: comment out non-checked-in files
svn path=/trunk/mcs/; revision=137410
2009-07-06 14:52:31 +00:00
Raja R Harinath 43727c097b fix build
svn path=/trunk/mcs/; revision=137409
2009-07-06 14:52:09 +00:00
Raja R Harinath 7eb0cf62a1 fix build break
svn path=/trunk/mcs/; revision=137408
2009-07-06 14:51:46 +00:00
Raja R Harinath 445d5d503b * Makefile (net_1_1_dirs): Move Mono.Cecil ...
(common_dirs): ... here.

svn path=/trunk/mcs/; revision=137404
2009-07-06 13:04:54 +00:00
Carlos Alberto Cortez 868a832f40 2009-07-05 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: When computing the width of each tab page, use the
	page's Font instead of the tab control one.
	Fixes #514368.


svn path=/trunk/mcs/; revision=137388
2009-07-05 10:26:21 +00:00
jonas c43d13b32e Fix distcheck building on OS X
svn path=/trunk/mono/; revision=137384
2009-07-04 15:02:34 +00:00
Marek Habersack 7d2a8fcc9c 2009-07-03 Marek Habersack <[email protected]>
* Added some resources to WebPages - a test web page for
	DynamicControlTest and the required DynamicData scaffolding.

2009-07-03  Marek Habersack  <[email protected]>

	* Makefile: added more resources to the test assembly

2009-07-03  Marek Habersack  <[email protected]>

	* DynamicControlTest.cs: added

2009-07-03  Marek Habersack  <[email protected]>

	* DynamicDataContainerModelProvider.cs,
	DynamicDataContainerTableProvider.cs: are generic classes now.

2009-07-03  Marek Habersack  <[email protected]>

	* IDynamicDataContainer.cs: became a generic interface.

	* DynamicDataSource.cs; some reformatting.
	DynamicDataSourceView is a generic class now.

	* DynamicDataContainer.cs: IDynamicDataContainer is a generic
	interface now.

2009-07-03  Marek Habersack  <[email protected]>

	* TestsSetup.cs: custom WebTest setup for DynamicData

	* TestsBasePage.cs: a base class for all the web pages used by the
	tests.

	* MiscExtensions.cs: added some helper extensions for fishing out
	controls from control trees.

	* ITestDataContext.cs: GetTableData gets full set of query
	arguments.

2009-07-03  Marek Habersack  <[email protected]>

	* AssemblyInfo.cs: added. Necessary, because we need to set up
	WebTest environment and it is done via an assembly-level custom
	attribute.

svn path=/trunk/mcs/; revision=137369
2009-07-03 15:07:04 +00:00
Mark Probst 13d3182c56 2009-07-03 Mark Probst <[email protected]>
* sgen-gc.c (finish_gray_stack): Set the to_space pointer after
        processing the disappearing links, and process disappearing links
        in a loop until no new objects are copied.

svn path=/trunk/mono/; revision=137366
2009-07-03 13:57:36 +00:00
Zoltan Varga 0dae14cb5c 2009-07-03 Zoltan Varga <[email protected]>
* mini-trampolines.c (get_unbox_trampoline): Add an rgctx trampoline
	after the unbox trampoline in the full-aot case.

svn path=/trunk/mono/; revision=137364
2009-07-03 13:42:48 +00:00
Carlos Alberto Cortez 7102b89910 2009-07-03 Carlos Alberto Cortez <[email protected]>
* MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
	the current menu is specifically a ContextMenu (this is what .net does
	as well). This way we also avoid a crash caused by MenuTracker trying
	to use the menu when it was already hidden.


svn path=/trunk/mcs/; revision=137363
2009-07-03 13:17:29 +00:00
Carlos Alberto Cortez b8ff167906 2009-07-03 Carlos Alberto Cortez <[email protected]>
* PrintPreviewDialog.cs: Remove the code used to handle the
	DropDown menu, since we are now doing it by default in ToolBar, and
	just call the base impl as needed.Also, deactivate the dropdown menu
	before moving the focus to a different button in our toolbar, as .net
	does.
	* ContextMenu.cs:
	* MenuAPI.cs: Make as internal the needed bits to deactivate a
	ContextMenu, and also to keep some beauty in our api.


svn path=/trunk/mcs/; revision=137342
2009-07-03 05:12:05 +00:00
Marek Habersack 4744a4f67e Another fixlet
svn path=/trunk/mcs/; revision=137336
2009-07-02 23:40:29 +00:00
Marek Habersack 6332620ed6 typo fix
svn path=/trunk/mcs/; revision=137335
2009-07-02 23:22:38 +00:00
Marek Habersack e02eef6036 2009-07-03 Marek Habersack <[email protected]>
* WebTestResourcesSetupAttribute.cs: added. Can be used to specify
	resources setup method alternative to the default
	WebTest.CopyResources (). Useful in cases when WebTest is used
	outside System.Web tests and different initial resources are
	required.

	* WebTest.cs: check whether the assembly WebTest is found in is
	decorated with the WebTestResourcesSetup attribute and, if yes,
	use handler specified by the attribute to perform initial
	resources copying in EnsureHosting ().

svn path=/trunk/mcs/; revision=137334
2009-07-02 23:05:02 +00:00
Gonzalo Paniagua Javier 781e4faf6c 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: provide better error message when there's an error
	writing.
	* WebConnectionStream.cs: don't nullify the buffer until
	CheckFinalStatus() decides that there are no more authentication
	retries or redirects.


svn path=/trunk/mcs/; revision=137332
2009-07-02 23:03:11 +00:00
Mark Probst 8bf864880d 2009-07-03 Mark Probst <[email protected]>
* object.c (handle_enum): Invoke the write barrier when copying
        value type instances.

        * sgen-gc.c: Register remsets for unmanaged write barriers only
        when the address written to is actually on the heap.  This makes
        set_value() in object.c work without requiring that the result be
        on the heap.

svn path=/trunk/mono/; revision=137331
2009-07-02 22:41:39 +00:00
Gonzalo Paniagua Javier 2c3b1ba9d4 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* HttpsClientStream.cs: if there's only an ICertificatePolicy and no
	ServerCertificateValicationCallback, don't fail.


svn path=/trunk/mcs/; revision=137329
2009-07-02 22:39:54 +00:00
Rodrigo Kumpera 5336756a92 2009-07-02 Rodrigo Kumpera <[email protected]>
The runtime wrappers are all bound to a given type that must
	exist in the same image. For regular images we use the <Module>
	type, which is required to exist for all images.

	The <Module> type can't be used for dynamic images because it
	might not exist at the time the wrapper is required, so we create
	a synthetic type to use instead.

	The current code works because of the 2 stage setup of MonoClass,
	but once this is gone it will no longer work.

	* icall-def.h: Add ModuleBuilder::set_wrappers_type.

	* metadata-internals.h (MonoDynamicImage): Add wrappers_type.

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

	* marshal.c (get_wrapper_target_class): If the image is dynamic,
	use MonoDynamicImage::wrappers_type instead of the <Module> type.

	reflection.c: Add mono_image_set_wrappers_type qhixh sets the dynamic
	image wrappers_type to the provided value.

svn path=/trunk/mono/; revision=137325
2009-07-02 20:18:56 +00:00
Rodrigo Kumpera 971d445c56 2009-07-01 Rodrigo Kumpera <[email protected]>
* appdomain.c (deregister_reflection_info_roots): No need
	to use the image lock here.

svn path=/trunk/mono/; revision=137324
2009-07-02 20:18:39 +00:00
Rodrigo Kumpera 735f33a230 2009-07-02 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs: Add IsRun property that returns true if
	any execute mode is enabled.

	* ModuleBuilder.cs: Add set_wrappers_type icall to define which type
	is to be bound to wrappers. Create a new abstract type and call it
	when the assembly is build this way.

	Replace explicit checks for global_type with calls to CreateGlobalType.

	* TypeBuilder.cs: Internal ctor now takes an extra table_idx argument.

svn path=/trunk/mcs/; revision=137322
2009-07-02 20:09:39 +00:00
Mark Probst 8763c586e9 2009-07-02 Mark Probst <[email protected]>
* sgen-gc.c (collect_nursery): Also scan from write-barrier roots.

svn path=/trunk/mono/; revision=137319
2009-07-02 18:49:19 +00:00
Atsushi Eno e1fd25bc16 2009-07-02 Atsushi Enomoto <[email protected]>
* ServiceBehaviorAttribute.cs : fill SingletonInstanceContext on
	  opening the host.

	* ChannelDispatcherTest.cs : add singleton instance context test
	  (but disabled, for some weird conflict).


svn path=/trunk/mcs/; revision=137315
2009-07-02 18:32:20 +00:00
Gonzalo Paniagua Javier 276025c43e kick buildbot
svn path=/trunk/mono/; revision=137313
2009-07-02 17:59:43 +00:00
Atsushi Eno 358bd6b145 2009-07-02 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : actually it had to fill all of
	  the interface methods (and implementation methods).

	* ContractDescriptionTest.cs : make sure the contract actually
	  contains operations from the base types.


svn path=/trunk/mcs/; revision=137307
2009-07-02 16:07:53 +00:00
Marek Safar ec0d50cb0d 2009-07-02 Marek Safar <[email protected]>
* CSharpConversionKind.cs, CSharpArgumentInfo.cs, 
	CSharpInvokeMemberBinder.cs, CSharpCallFlags.cs: New files.


svn path=/trunk/mcs/; revision=137305
2009-07-02 16:05:40 +00:00
Jb Evain 5df883e569 oops
svn path=/trunk/mcs/; revision=137301
2009-07-02 14:34:16 +00:00
Jb Evain 365eb2f629 grr
svn path=/trunk/mcs/; revision=137296
2009-07-02 13:42:37 +00:00
Atsushi Eno 3e8b32b52e 2009-07-02 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs : some more async methods.


svn path=/trunk/mcs/; revision=137292
2009-07-02 13:05:39 +00:00
Atsushi Eno 2b471a3555 2009-07-02 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : do not reject derived service
	  contract from another service contract type.

	* ContractDescriptionTest.cs : added test for derived contract type.


svn path=/trunk/mcs/; revision=137288
2009-07-02 12:59:32 +00:00
Jb Evain 30fc499fde 2009-07-02 Jb Evain <[email protected]>
* Makefile: fix cecil's location.


svn path=/trunk/mcs/; revision=137287
2009-07-02 12:55:33 +00:00
Jb Evain fcf42cf582 2009-07-02 Jb Evain <[email protected]>
* Makefile: fix cecil's location.


svn path=/trunk/mcs/; revision=137286
2009-07-02 12:54:50 +00:00
Marek Safar b83bbc70e5 New test.
svn path=/trunk/mcs/; revision=137285
2009-07-02 12:31:00 +00:00
Marek Safar 283f16298d 2009-07-02 Marek Safar <[email protected]>
* generic.cs: Handle type inference of identical type parameters
	with different bounds.


svn path=/trunk/mcs/; revision=137284
2009-07-02 12:28:33 +00:00
Marek Safar 0f7eb6029b Flush.
svn path=/trunk/mcs/; revision=137283
2009-07-02 12:21:47 +00:00
Marek Safar 008274668d 2009-07-02 Marek Safar <[email protected]>
* Makefile: Add System.Dynamic.


svn path=/trunk/mcs/; revision=137282
2009-07-02 12:17:02 +00:00
Marek Safar 9703f674b8 2009-07-02 Marek Safar <[email protected]>
* Makefile: Initial commit.


svn path=/trunk/mcs/; revision=137281
2009-07-02 12:13:06 +00:00
Jb Evain 1c42c456c7 2009-07-02 Jb Evain <[email protected]>
* scripts/Makefile.am: monolinker is now a 2.0 assembly.


svn path=/trunk/mono/; revision=137280
2009-07-02 11:59:18 +00:00
Marek Safar 3a5a3cf1d3 2009-07-02 Marek Safar <[email protected]>
* net_4_0_System.Core.dll.sources: New file.


svn path=/trunk/mcs/; revision=137278
2009-07-02 11:57:13 +00:00
Marek Safar 340222ffe8 2009-07-02 Marek Safar <[email protected]>
* Initial import, revision 25679.


svn path=/trunk/mcs/; revision=137277
2009-07-02 11:50:24 +00:00
Jb Evain 6833026136 2009-07-02 Jb Evain <[email protected]>
* Makefile: adjust to the linker build change.


svn path=/trunk/mcs/; revision=137276
2009-07-02 11:48:59 +00:00
Jb Evain fc5f371d18 2009-07-02 Jb Evain <[email protected]>
* Makefile: build the linker and the tuner in the net_2_0 profile.


svn path=/trunk/mcs/; revision=137275
2009-07-02 11:48:38 +00:00
Marek Safar a9544047d5 2009-07-02 Marek Safar <[email protected]>
* ConditionalWeakTable.cs: New file.


svn path=/trunk/mcs/; revision=137274
2009-07-02 11:26:51 +00:00
Marek Safar 2cc1698924 2009-07-02 Marek Safar <[email protected]>
* StrongBox_T.cs: Add 4.0 bits.


svn path=/trunk/mcs/; revision=137273
2009-07-02 11:19:09 +00:00
Marek Safar 94ae118165 2009-07-02 Marek Safar <[email protected]>
* Type.cs, AppDomain.cs: 4.0 bits.


svn path=/trunk/mcs/; revision=137271
2009-07-02 11:07:29 +00:00
Jb Evain 8df0cd75f2 add test
svn path=/trunk/mcs/; revision=137269
2009-07-02 10:58:16 +00:00
Atsushi Eno 8b8a21d6c0 2009-07-02 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : when service instance is provided to the
	  ServiceHost, do not reject Type-less state.


svn path=/trunk/mcs/; revision=137266
2009-07-02 10:29:59 +00:00
jonas 26045ec0b2 2009-07-02 jonas echterhoff <[email protected]>
svn path=/trunk/mono/; revision=137261
2009-07-02 07:59:30 +00:00
Gonzalo Paniagua Javier 3513638089 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* X509Certificate2.cs:
	* X509Chain.cs: changes to make everything compile with latest changes
	and fixed typo in IsChainComplete().


svn path=/trunk/mcs/; revision=137259
2009-07-02 07:44:14 +00:00
Gonzalo Paniagua Javier db470fe4d2 make it compile
svn path=/trunk/mcs/; revision=137257
2009-07-02 07:42:17 +00:00
Gonzalo Paniagua Javier cd833bd5a0 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* HttpsClientStream.cs: invoke the ServerCertificateValidationCallback
	in the 2.0 profile. If there's a CertificatePolicy, it is run before
	the 2.0 callback.


svn path=/trunk/mcs/; revision=137255
2009-07-02 07:39:44 +00:00
Gonzalo Paniagua Javier f760e84e58 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* ServicePointManager.cs: implement ServerCertificateValidationCallback.
	* DefaultCertificatePolicy.cs: if there's a SCVC registered, don't do
	normal error checking.a


svn path=/trunk/mcs/; revision=137253
2009-07-02 07:39:40 +00:00
Gonzalo Paniagua Javier 77e7d3d183 fix
svn path=/trunk/mcs/; revision=137239
2009-07-02 07:34:09 +00:00
Gonzalo Paniagua Javier 7ff2c1978d 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: avoid duplicating Accept-Encoding if GetHeaders()
	is called twice.
	* WebConnectionStream.cs: don't send a 0 content length for non-write
	requests.


svn path=/trunk/mcs/; revision=137233
2009-07-02 07:33:12 +00:00
Gonzalo Paniagua Javier 1c8629a808 2009-07-02 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: must use the 'int' version in 1.1.


svn path=/trunk/mcs/; revision=137231
2009-07-02 07:22:59 +00:00
Carlos Alberto Cortez 2d15968f5e 2009-07-02 Carlos Alberto Cortez <[email protected]>
* ToolBar.cs: When handling the key down message, if we are on a
	drop down button, either show the DropDownMenu or pass the key to its
	ProcessCmdKey method as needed.
	Fixes the remaining bits of #509985.


svn path=/trunk/mcs/; revision=137228
2009-07-02 04:05:41 +00:00
Marek Safar 37601b3db7 New test.
svn path=/trunk/mcs/; revision=137213
2009-07-01 19:03:59 +00:00
Marek Safar cdb3c4dc2c New tests.
svn path=/trunk/mcs/; revision=137212
2009-07-01 19:03:25 +00:00
Marek Safar 3752303479 2009-07-01 Marek Safar <[email protected]>
* expression.cs, class.cs: Events variance.
	
	* cs-parser.jay: Interface events error messages.


svn path=/trunk/mcs/; revision=137211
2009-07-01 19:02:50 +00:00
Gonzalo Paniagua Javier d0aef15578 2009-07-01 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs:
	* ServicePoint.cs: UseNagleAlgorithm determines NoDelay value.


svn path=/trunk/mcs/; revision=137202
2009-07-01 16:49:32 +00:00
Marek Safar 3ccb8dd31c New test.
svn path=/trunk/mcs/; revision=137201
2009-07-01 16:27:30 +00:00
Marek Safar 8e45a9e98d New tests.
svn path=/trunk/mcs/; revision=137200
2009-07-01 16:27:17 +00:00
Marek Safar 5d4944a42a 2009-07-01 Marek Safar <[email protected]>
* generic.cs, argument.cs: Updated type inference logic to C# 4.0.


svn path=/trunk/mcs/; revision=137199
2009-07-01 16:27:01 +00:00
Raja R Harinath 94617bc126 Disable sqlmetal nunit tests since they haven't compiled for some time
svn path=/trunk/mcs/; revision=137153
2009-06-30 15:23:05 +00:00
Raja R Harinath b10bc254b9 * XPathNavigatorTests.cs (XPathDocumentMoveToId) [!NET_2_0]: Fix compile.
svn path=/trunk/mcs/; revision=137152
2009-06-30 15:15:39 +00:00
Raja R Harinath 82673840c5 * errors/Makefile (run-test-local): Make parallel-make safe.
svn path=/trunk/mcs/; revision=137151
2009-06-30 15:15:17 +00:00
Marek Habersack fc4f263698 2009-06-30 Marek Habersack <[email protected]>
* AspGenerator.cs: TextParsed must remove client-side comments
	from the passed text before attempting to parse the text for
	server side controls and expressions. Fixes bug #517656

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

	* TemplateControlCompilerTest.cs: added test for bug #517656

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

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/ServerControlInClientSideComment.aspx

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

	* NunitWebResources/ServerControlInClientSideComment.aspx: added

svn path=/trunk/mcs/; revision=137137
2009-06-30 09:06:16 +00:00
Carlos Alberto Cortez 790fb10e47 * ToolBar.cs: Isolate the event logic related to OnButtonClick. Also
set current_item when navigating with the keyboard, so we can use it
	properly later. Finally, handle both Enter and Space to fire
	OnButtonClick *only*, without any other impact, as .net does.
	Fixes part of #509985.

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


svn path=/trunk/mcs/; revision=137134
2009-06-30 05:06:29 +00:00
Zoltan Varga 17749a8b7f 2009-06-30 Zoltan Varga <[email protected]>
* IntPtrTest.cs: Disable a test whose corresponding fix was reverted.

svn path=/trunk/mcs/; revision=137133
2009-06-30 03:05:58 +00:00
Zoltan Varga f123286285 2009-06-30 Zoltan Varga <[email protected]>
* ReadOnlyCollectionBaseTest.cs NewArrayListTest.cs: Convert all tests
	to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=137132
2009-06-30 02:57:09 +00:00
Zoltan Varga ee0e40ca69 2009-06-30 Zoltan Varga <[email protected]>
* DebugTest.cs TextWriterTraceListenerTest.cs: Convert all tests to
	new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=137131
2009-06-30 02:50:34 +00:00
Zoltan Varga eadc6e6831 2009-06-30 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods. Enable
	some hidden tests.

svn path=/trunk/mcs/; revision=137130
2009-06-30 02:34:35 +00:00
Zoltan Varga 421b9cc38b 2009-06-30 Zoltan Varga <[email protected]>
* ObjectTest.cs RandomTest.cs SByteTest.cs SingleTest.cs
	TimeZoneTest.cs UInt16Test.cs UInt32Test.cs UInt64Test.cs
	UIntPtrTest.cs ValueTypeTest.cs: Convert all tests to new-style nunit
	classes/methods. Enable some hidden tests.

svn path=/trunk/mcs/; revision=137121
2009-06-29 23:32:45 +00:00
Zoltan Varga aba36b4f16 2009-06-30 Zoltan Varga <[email protected]>
* driver.c (mini_regression): Handle loading errors. Fixes #508869.

svn path=/trunk/mono/; revision=137119
2009-06-29 22:53:45 +00:00
Gonzalo Paniagua Javier c2aad5b0ae 2009-06-29 Gonzalo Paniagua Javier <[email protected]>
* Parameter.cs: add new DbType property.


svn path=/trunk/mcs/; revision=137117
2009-06-29 22:10:45 +00:00
Gonzalo Paniagua Javier c76e44451a 2009-06-29 Gonzalo Paniagua Javier <[email protected]>
* LicenseProviderAttribute.cs: avoid nullref when provider has not
	been set or cannot be loaded.


svn path=/trunk/mcs/; revision=137115
2009-06-29 22:02:41 +00:00
Gonzalo Paniagua Javier 6c8748a9ef 2009-06-29 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: use the 'Empty' field for Unit and
	FontUnit.


svn path=/trunk/mcs/; revision=137113
2009-06-29 22:01:19 +00:00
Marek Safar b0a00dd7e5 New tests.
svn path=/trunk/mcs/; revision=137100
2009-06-29 19:46:12 +00:00
Marek Safar 4c4a81e0da New tests.
svn path=/trunk/mcs/; revision=137099
2009-06-29 19:45:19 +00:00
Marek Safar f5a5486467 2009-06-29 Marek Safar <[email protected]>
* parameter.cs, convert.cs, expression.cs, class.cs: Default
	parameter expression can be value-type New.

	* cs-parser.jay: Clean up too many parameter modifier boolean flags.


svn path=/trunk/mcs/; revision=137098
2009-06-29 19:44:26 +00:00
Carlos Alberto Cortez 23fc945210 2009-06-29 Carlos Alberto Cortez <[email protected]>
* MenuAPI.cs: Close any active menu when we get a simple Alt.
	Fixes #509299.


svn path=/trunk/mcs/; revision=137094
2009-06-29 17:16:30 +00:00
Atsushi Eno 166e408ef7 2009-06-29 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : do not iterate extra channel acceptance
	  and hence close channels a bit more gracefully.

	* TcpDuplexSessionChannel.cs : on Abort(), do just Close() within
	  (almost) no time.
	* TcpChannelListener.cs : accept multiple channels at a time.


svn path=/trunk/mcs/; revision=137093
2009-06-29 17:08:50 +00:00
Gonzalo Paniagua Javier 485b815f66 increase timeouts to make this work on machines under load
svn path=/trunk/mcs/; revision=137088
2009-06-29 15:52:42 +00:00
Zoltan Varga 02eadc1292 2009-06-29 Zoltan Varga <[email protected]>
* generic-stack-traces.2.cs: Add a test for #509406.

svn path=/trunk/mono/; revision=137082
2009-06-29 15:25:29 +00:00
Zoltan Varga 31efebbf56 2009-06-29 Zoltan Varga <[email protected]>
* mini-exceptions.c (get_generic_context_from_stack_frame): Fix the case
	when the generic instance is an instantiation of a subclass of the
	methods class. Fixes #517166.

svn path=/trunk/mono/; revision=137081
2009-06-29 15:25:22 +00:00
Zoltan Varga 7d24a0f469 2009-06-29 Zoltan Varga <[email protected]>
* threads.c: Store the thread start argument in a hash table instead of
	registering it as a root, as libgc doesn't support unregistering roots
	under windows, leading to 'too many root sets' errors when many threads
	are created.

svn path=/trunk/mono/; revision=137080
2009-06-29 14:39:54 +00:00
Zoltan Varga 28d601f25d 2009-06-29 Zoltan Varga <[email protected]>
* dynamic-method-finalize.2.cs: New test.

svn path=/trunk/mono/; revision=137076
2009-06-29 13:34:22 +00:00
Zoltan Varga dde3844fe7 2009-06-29 Zoltan Varga <[email protected]>
* gc.c (mono_gc_run_finalize): Avoid finalizing dynamic methods during
	shutdown, they can still be referenced by the other dying objects.
	Fixes #514506.

svn path=/trunk/mono/; revision=137075
2009-06-29 13:34:14 +00:00
Marek Safar 9dbbb52f83 2009-06-29 Marek Safar <[email protected]>
* ChangeLog: Add DynamicAttribute.


svn path=/trunk/mcs/; revision=137069
2009-06-29 11:37:30 +00:00
Marek Safar b956e132b6 2009-06-29 Marek Safar <[email protected]>
* Makefile: Add Microsoft.CSharp.



svn path=/trunk/mcs/; revision=137065
2009-06-29 10:41:54 +00:00
Marek Safar 9c295c5587 New test.
svn path=/trunk/mcs/; revision=137064
2009-06-29 10:06:14 +00:00
Marek Safar b94f6444a5 Updated
svn path=/trunk/mcs/; revision=137063
2009-06-29 09:22:38 +00:00
Atsushi Eno 04bfdda5dd 2009-06-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : do not output all (stored) writer
	  session strings but output only those new ones in current message.
	  This fixes inconsistent body output in repetitive use of sender.


svn path=/trunk/mcs/; revision=137060
2009-06-29 06:07:28 +00:00
Gonzalo Paniagua Javier 0114287236 2009-06-28 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: sleep between reads as we do in
	WebClientTest.


svn path=/trunk/mcs/; revision=137052
2009-06-28 21:37:45 +00:00
Gert Driesen 916aaf1dbb * SocketTest.cs: Added tests for argument checks, and improved tests
for disposed socket.
* Socket.cs: Modified some argument names to match MS. Moved disposed
check before argument checks in Receive. Use SocketError.InvalidArgument
instead of using magic numbers. Added back comments that was 
accidentally removed in my previous commit.
* Socket_2_1.cs: Modified some argument names to match MS.

svn path=/trunk/mcs/; revision=137051
2009-06-28 20:39:25 +00:00
Gonzalo Paniagua Javier 2b3a1eaef4 fix the build
svn path=/trunk/mcs/; revision=137049
2009-06-28 16:54:59 +00:00
Gert Driesen ba798b342d * System_test.dll.sources: Added IPv6MulticastOptionTest.cs and
MulticastOptionTest.cs.
* Socket.cs: In GetSocketOption, throw SocketException when (byte [])
option value is null. Use SocketError fields instead of using "magic"
number. In SetSocketOption (SocketOptionLevel, SocketOptionName, object)
only accept Linger, AddMembership, DropMembership and verify option
value.
* MulticastOption.cs: Added argument checks. Save interfaceIndex that is
passed to .ctor, and removed MonoTODO. Renamed arguments to match MS.
Reset InterfaceIndex when LocalAddress is modified, and reset
LocalAddress when InterfaceIndex is modified.
* UdpClient.cs: Modified exception to more closely match MS. Fixed
(int, AddressFamily) .ctor to construct IPv6 endpoint when family is
InterNetworkV6. Added null check for multicastAddr to (IPAddress)
JoinMulticastGroup overload. In (int, IPAddress) and (IPAddress,
IPAddress) overloads of JoinMulticastGroup throw SocketException when
client is IPv4. Added null check for multicastAddr to (IPAddress, int),
overload, and moved JoinMulticastGroup call after argument checks.
* IPv6MulticastOption.cs: Renamed argument names to match MS. Added
null check to set_Group. Added range check to set_InterfaceIndex.
* IPv6MulticastOptionTest.cs: Added .ctor and property tests.
* MulticastOptionTest.cs: Added .ctor and property tests.
* SocketTest.cs: Fixed compiler warnings. Improved tests for
closed socket. Added tests fr GetSocketOption, and SetSocketOption
overloads (for Linger, DontLinger, AddMembership and DropMembership).
* UdpClientTest.cs: Added .ctor and JoinMulticastGroup tests.

svn path=/trunk/mcs/; revision=137048
2009-06-28 16:35:54 +00:00
Gonzalo Paniagua Javier 1691d6ff66 2009-06-28 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: fix 1.1 only test.


svn path=/trunk/mcs/; revision=137046
2009-06-28 07:17:33 +00:00
Gonzalo Paniagua Javier d53f423926 fix timing issue
svn path=/trunk/mcs/; revision=137045
2009-06-28 07:15:41 +00:00
Gonzalo Paniagua Javier 08a92a49eb 2009-06-28 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: when buffering the response, we have to set
	the internal length and regenerate the headers.


svn path=/trunk/mcs/; revision=137043
2009-06-28 04:03:49 +00:00
Gonzalo Paniagua Javier 0d6effc8d8 fix test
svn path=/trunk/mcs/; revision=137040
2009-06-28 03:50:35 +00:00
Gonzalo Paniagua Javier 834130ed3d 2009-06-27 Gonzalo Paniagua Javier <[email protected]>
* SocketResponder.cs: the listener might be closed right before
	Accept() is called and in that case we get an EINVAL.
	* WebClientTest.cs: now that we might send separate packets for
	headers and body, wait a little bit before checking socket.Available.


svn path=/trunk/mcs/; revision=137038
2009-06-28 02:33:55 +00:00
Gonzalo Paniagua Javier 1c7df92ca0 new test
svn path=/trunk/mcs/; revision=137033
2009-06-27 18:03:35 +00:00
Gonzalo Paniagua Javier 16d1a86aac 2009-06-27 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: turn WSAEINVAL into ArgumentException.


svn path=/trunk/mcs/; revision=137031
2009-06-27 18:02:46 +00:00
Gonzalo Paniagua Javier c899f83864 2009-06-27 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: DontLinger does not allow LingerOptions.


svn path=/trunk/mono/; revision=137029
2009-06-27 18:01:10 +00:00
Marek Habersack 91beae029c 2009-06-27 Marek Habersack <[email protected]>
* DynamicDataExtensionsTest.cs: added test for ConvertEditedValue

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

    	* DynamicDataExtensions.cs: implemented ConvertEditedValue

svn path=/trunk/mcs/; revision=137024
2009-06-26 22:59:01 +00:00
Marek Safar af0fb16f41 needs gmcs
svn path=/trunk/mcs/; revision=137023
2009-06-26 22:58:12 +00:00
Gonzalo Paniagua Javier b022b6fd1a 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: add a bunch of tests provided by
	Bassan Tabbara.


svn path=/trunk/mcs/; revision=137021
2009-06-26 22:48:39 +00:00
Gonzalo Paniagua Javier d89546ba92 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: don't send Content-Length header when SendChunked
	is enabled.
	* WebConnectionStream.cs: send the headers immediately when possible.
	When writing the request before a Close(), if there was an exception
	it was lost.


svn path=/trunk/mcs/; revision=137019
2009-06-26 22:45:35 +00:00
Gonzalo Paniagua Javier b0ea001694 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs:
	* HttpListenerResponse.cs: force closing the socket when the response
	is aborted.


svn path=/trunk/mcs/; revision=137016
2009-06-26 22:37:38 +00:00
Robert Jordan 13c812a9dd 2009-06-26 Robert Jordan <[email protected]>
* StringTest.cs: Convert all tests to new-style nunit
	classes/methods.

	* ArrayTest.cs, ConvertTest.cs, DecimalTest.cs, TimeSpanTest.cs:
	likewise.

	* DecimalTest2.cs: likewise, 5 hidden tests enabled.


svn path=/trunk/mcs/; revision=137015
2009-06-26 22:30:55 +00:00
Marek Habersack 3192ec7fa4 2009-06-27 Marek Habersack <[email protected]>
* MetaModel.cs: implemented DynamicDataFolderVirtualPath

    	* DynamicDataRouteHandler.cs: implemented SetRequestMetaTable,
    	GetCustomPageVirtualPath, GetScaffoldPageVirtualPath and
    	guessed at implementation of CreateHandler.

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

    	* MetaModelTest.cs: added test for DynamicDataFolderVirtualPath

    	* DynamicDataRouteHandlerTest.cs: implemented tests for
    	CreateHandler (one of them isn't working atm),
    	GetCustomVirtualPagePath, GetScaffoldVirtualPagePath,
    	GetRequestMetaTable, SetRequestMetaTable

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

    	* DynamicDataRouteTest.cs: MyDataContext3 is safely registered in
    	the fixture setup method.
    	Enabled the GetTableFromRouteData3 and GetRouteData tests - the
    	work fine now.
    	Added test for the RouteHandler property.

    	* DynamicDataRouteHandlerTest.cs: added tests for the constructor
    	and the Model property.

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

    	* MetaModel.cs: RegisterContextCore preserves already registered
    	tables.

    	* DynamicDataRouteHandler.cs: GetRequestContext must not retrieve
    	route data from the routes collection (if the matching route
    	happened to be an instance of DynamicDataRoute it would initialize
    	its RouteHandler's Model property, which is not correct, according
    	to tests). Instead a new RouteData instance is created each time
    	we don't find any cached context.

    	* DynamicDataRoute.cs: the associated route handler is set its
    	Model property when we initialize for the first time.
    	GetRouteData checks whether route data returned by base class
    	relates to a table which exists in the current context. If no such
    	table exists, null is returned.

svn path=/trunk/mcs/; revision=137013
2009-06-26 22:13:39 +00:00
Robert Jordan a5b5163351 2009-06-26 Robert Jordan <[email protected]>
* UTF8EncodingTest.cs: Fix the NET_1_1 build.


svn path=/trunk/mcs/; revision=137012
2009-06-26 21:53:51 +00:00
Robert Jordan 625757a962 2009-06-26 Robert Jordan <[email protected]>
* StringTest.cs: Convert all tests to new-style nunit 
	classes/methods.


svn path=/trunk/mcs/; revision=137011
2009-06-26 21:29:00 +00:00
Robert Jordan bd7622796a 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=137010
2009-06-26 21:06:21 +00:00
Rodrigo Kumpera 822e075bfe 2009-06-26 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Fix a cattr-table test
	where generic param is allowed as a parent.

svn path=/trunk/mono/; revision=137007
2009-06-26 20:14:25 +00:00
Rodrigo Kumpera 938782598a 2009-06-26 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: The spec doesn't mention that it's possible to add
	custom attribute to a generic parameter. Fixed.

svn path=/trunk/mono/; revision=137006
2009-06-26 20:14:16 +00:00
Rodrigo Kumpera 5273e86813 2009-06-26 Rodrigo Kumpera <[email protected]>
* class.c (inflate_generic_type): Don't crash while trying to output a message
	on why we're aborting.

svn path=/trunk/mono/; revision=137005
2009-06-26 20:14:02 +00:00
Carlos Alberto Cortez 6f53b2ee53 2009-06-26 Carlos Alberto Cortez <[email protected]>
* ToolBar.cs: In OnButtonClick only change the Pushed value for
	buttons with toogle style. We were previously doing it for
	DropDownButton's buttons, but that's not what .net is doing.
	Fixes #510030.


svn path=/trunk/mcs/; revision=137002
2009-06-26 19:47:22 +00:00
Zoltan Varga 2fd59a55db 2009-06-26 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_prolog): Fix thread attaching in AOTed
	code.

	* mini.c (mono_jit_thread_attach): Allow domain to be NULL for calls from
	AOTed code.

svn path=/trunk/mono/; revision=136995
2009-06-26 18:10:51 +00:00
Gonzalo Paniagua Javier 72754e7d4d 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* SocketTest.cs: tests for DontLinger.


svn path=/trunk/mcs/; revision=136982
2009-06-26 16:34:58 +00:00
Gonzalo Paniagua Javier 433d127533 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: MS throws a SocketException in the byte[] overload when
	the value is null.


svn path=/trunk/mcs/; revision=136980
2009-06-26 16:34:20 +00:00
Gonzalo Paniagua Javier a6d8d277e1 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: DontLinger can take an int or a boolean too.


svn path=/trunk/mono/; revision=136978
2009-06-26 16:33:58 +00:00
Atsushi Eno 4088935212 2009-06-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : handle EndRecord for repetitive
	  operation that does not involve session.
	  Preserve writer session as well as reader session.
	* MessageHeaders.cs : take name and namespace into consideration
	  when creating a serializer.


svn path=/trunk/mcs/; revision=136975
2009-06-26 15:44:16 +00:00
Marek Habersack c4f73e35c8 Unbreak last broken tests for DynamicData
svn path=/trunk/mcs/; revision=136974
2009-06-26 15:12:26 +00:00
Marek Safar 728aad5d34 New tests.
svn path=/trunk/mcs/; revision=136973
2009-06-26 15:08:24 +00:00
Marek Safar 7b2f03b697 New tests.
svn path=/trunk/mcs/; revision=136972
2009-06-26 15:08:05 +00:00
Marek Safar 8c0f55dbbb 2009-06-26 Marek Safar <[email protected]>
* generic.cs, argument.cs, expression.cs, ecore.cs, cs-parser.jay:
	Implemented C# 4.0 named arguments.


svn path=/trunk/mcs/; revision=136971
2009-06-26 15:07:48 +00:00
Zoltan Varga 554a24c3cb 2009-06-26 Zoltan Varga <[email protected]>
* CMakeLists.txt: Add minimal support for installation.

svn path=/trunk/mono/; revision=136970
2009-06-26 15:04:36 +00:00
Paolo Molaro 6a9b2ddcca Fri Jun 26 17:00:04 CEST 2009 Paolo Molaro <[email protected]>
* gc.c: check for a null argument to SuppressFinalize () and
	ReRegisterForFinalize ().


svn path=/trunk/mono/; revision=136969
2009-06-26 15:04:24 +00:00
Robert Jordan fc7def2009 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136968
2009-06-26 15:00:46 +00:00
Atsushi Eno 922abe10f3 2009-06-26 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs : verifyObjectName rather blocked
	  correct names provided as the root names.


svn path=/trunk/mcs/; revision=136964
2009-06-26 14:15:12 +00:00
Rodrigo Kumpera b04ce8e1da 2009-06-26 Rodrigo Kumpera <[email protected]>
* loader.c (method_from_methodspec): Call into the verifier to check
	the signature.

	* metadata-verify.c: Addmono_verifier_verify_methodspec_signature.

	* verify-internals.h: Export mono_verifier_verify_methodspec_signature as
	part of the internal API.

svn path=/trunk/mono/; revision=136963
2009-06-26 14:13:45 +00:00
Robert Jordan d05e8a0a33 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136962
2009-06-26 14:00:28 +00:00
Robert Jordan 0e35975fec In Test/System.Web.Services:
2009-06-26  Robert Jordan  <[email protected]>

	* *.cs: Upgrade to new NUnit style.

In Test/System.Web.Services.Configuration:
2009-06-26  Robert Jordan  <[email protected]>

	* *.cs: Upgrade to new NUnit style.

In Test/System.Web.Services.Discovery:
2009-06-26  Robert Jordan  <[email protected]>

	* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136961
2009-06-26 13:34:58 +00:00
Robert Jordan ccf0eeec37 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136960
2009-06-26 13:31:32 +00:00
Robert Jordan 7a5bd32c9a 2009-06-26 Robert Jordan <[email protected]>
* CodeGeneratorIdentifierTest.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136956
2009-06-26 13:01:11 +00:00
Robert Jordan b2b4ea5f30 2009-06-26 Robert Jordan <[email protected]>
* BitVector32Test.cs, NameValueCollectionTest.cs:
	Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136954
2009-06-26 12:49:57 +00:00
Robert Jordan 6fc23e40bc 2009-06-26 Robert Jordan <[email protected]>
* EventHandlerListTests.cs, LicenseManagerTests.cs:
	Upgrade to new NUnit style. Standalone tests (#if !NUNIT)
	removed.


svn path=/trunk/mcs/; revision=136952
2009-06-26 12:43:22 +00:00
Robert Jordan d7a6be8251 2009-06-26 Robert Jordan <[email protected]>
* SwitchesTest.cs, TraceTest.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136951
2009-06-26 12:34:15 +00:00
Robert Jordan 5f94e5e16c 2009-06-26 Robert Jordan <[email protected]>
* FileSystemWatcherTest.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136950
2009-06-26 12:29:53 +00:00
Robert Jordan 2f26089775 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136949
2009-06-26 12:20:08 +00:00
Robert Jordan 7d405be2c1 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136948
2009-06-26 11:59:34 +00:00
Robert Jordan ea919da532 In Test/System.Security.Cryptography.X509Certificates:
2009-06-26  Robert Jordan  <[email protected]>

	* X509CertificateCollectionTest.cs,
	X509ChainPolicyTest.cs: Upgrade to new NUnit style.

In Test/System.Security.Cryptography:
2009-06-26  Robert Jordan  <[email protected]>

	* OidCollectionTest.cs, OidEnumeratorTest.cs:
	Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136947
2009-06-26 11:22:31 +00:00
Zoltan Varga 00cdd0f325 2009-06-26 Zoltan Varga <[email protected]>
* NumberFormatterTest.cs: Convert all tests to new-style nunit
	classes/methods.

svn path=/trunk/mcs/; revision=136946
2009-06-26 11:20:13 +00:00
Zoltan Varga 67b04fd53a 2009-06-26 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods. Add
	[Test] attributes to some tests which were missing them.

svn path=/trunk/mcs/; revision=136944
2009-06-26 11:16:10 +00:00
Zoltan Varga 82bb1e41c5 2009-06-26 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136942
2009-06-26 11:05:19 +00:00
Robert Jordan a471f312c4 2009-06-26 Robert Jordan <[email protected]>
* BitArrayTest.cs: Upgrade to new NUnit style. Enable
	16 tests that were disabled after the NUnit 2.4 update.


svn path=/trunk/mcs/; revision=136935
2009-06-26 08:36:55 +00:00
Atsushi Eno 37a53ec9d7 2009-06-26 Atsushi Enomoto <[email protected]>
* XplatUICarbon.cs : support multi-byte text input.
	  Fixed bug #501276.

	* KeyboardHandler.cs : support multi-byte text input.
	  Fixed bug #501276.


svn path=/trunk/mcs/; revision=136932
2009-06-26 05:43:07 +00:00
Gonzalo Paniagua Javier c6120c6690 new tests
svn path=/trunk/mcs/; revision=136930
2009-06-26 05:28:01 +00:00
Atsushi Eno bea9bf9dc0 2009-06-26 Atsushi Enomoto <[email protected]>
* SelectNodesTests.cs
	  XPathNavigatorCommonTests.cs
	  XPathAtomicValueTests.cs
	  XPathNavigatorTests.cs
	  XPathNavigatorEvaluateTests.cs : convert to newer nunit style.


svn path=/trunk/mcs/; revision=136928
2009-06-26 05:26:36 +00:00
Gonzalo Paniagua Javier 0cac82f3bc 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* DateTime.cs: if the DateTimeOffset is out of bounds, let Parse
	report the error. Fix stupid harmless typo.
	* DateTimeOffset.cs: report error if the UTC date/time is out of
	bounds.


svn path=/trunk/mcs/; revision=136927
2009-06-26 05:25:56 +00:00
Rodrigo Kumpera 93ad323a22 2009-06-25 Rodrigo Kumpera <[email protected]>
* metadata.c (mono_type_create_from_typespec): Call into the verifier to check
	the signature.

	* metadata-verify.c: Add mono_verifier_verify_typespec_signature.

	* verify-internals.h: Export mono_verifier_verify_typespec_signature as
	part of the internal API.

svn path=/trunk/mono/; revision=136922
2009-06-26 02:24:39 +00:00
Rodrigo Kumpera 1aaac9a297 * metadata.c (mono_metadata_parse_mh_full): Call into the verifier to check
the signature.

	* metadata-verify.c: Add mono_verifier_verify_standalone_signature. Fix
	blob verification.

	* verify-internals.h: Export mono_verifier_verify_memberref_signature as
	part of the internal API.

svn path=/trunk/mono/; revision=136921
2009-06-26 02:24:25 +00:00
Rodrigo Kumpera 46d0349c1b 2009-06-25 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Use is_valid_blob_object to verify blob validity
	when doing basic verification.

	This check must be done since the runtime peeks into signatures in much
	more places than it does decoding so it makes sense to ensure that all
	pointers to blob objects are well formed.

svn path=/trunk/mono/; revision=136920
2009-06-26 02:24:11 +00:00
Rodrigo Kumpera 654da7bf03 2009-06-25 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_blob_object): Add extra minsize argument.
	Use proper overflow dectection. Fix usage of it.

svn path=/trunk/mono/; revision=136919
2009-06-26 02:23:58 +00:00
Rodrigo Kumpera b24a0a50a7 2009-06-25 Rodrigo Kumpera <[email protected]>
* loader.c (field_from_memberref): Call into the verifier to check
	the signature.

	* loader.c (mono_method_get_signature_full): Same.

	* loader.c (method_from_memberref): Same.

	* metadata-verify.c: Add mono_verifier_verify_memberref_signature.

	* verify-internals.h: Export mono_verifier_verify_memberref_signature as
	part of the internal API.

svn path=/trunk/mono/; revision=136918
2009-06-26 02:23:45 +00:00
Atsushi Eno be335acb42 another dos2unix.
svn path=/trunk/mcs/; revision=136917
2009-06-26 02:15:22 +00:00
Atsushi Eno a74f0aa1a6 dos2unix.
svn path=/trunk/mcs/; revision=136916
2009-06-26 01:44:37 +00:00
Miguel de Icaza 1601b10bbf 2009-06-25 Miguel de Icaza <[email protected]>
* Timer.cs: Throw ArgumentNullException if the callback is null. 

svn path=/trunk/mcs/; revision=136912
2009-06-26 00:47:19 +00:00
Miguel de Icaza be27e873d0 2009-06-10 Gert Driesen <[email protected]>
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

svn path=/trunk/mcs/; revision=136908
2009-06-26 00:15:37 +00:00
Miguel de Icaza ed2e53a956 2009-06-10 Gert Driesen <[email protected]>
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

2009-06-10  Marek Safar  <[email protected]>

svn path=/trunk/mcs/; revision=136902
2009-06-25 23:36:03 +00:00
Gonzalo Paniagua Javier 7584df6cf8 2009-06-25 Gonzalo Paniagua Javier <[email protected]>
* WebAsyncResult.cs: new field that tells us if the request is being
	written automatically because we reached the content length.
	* WebConnection.cs:
	* WebConnectionStream.cs: make sure we only access the NetworkStream
	while we own it. Automatically write the request when we reach
	ContentLength number of bytes. Kill the write buffer as soon as
	possible. Don't use the buffer at all when chunked encoding is
	enabled.

	Fixes bugs #515931 and #510642.

svn path=/trunk/mcs/; revision=136900
2009-06-25 23:23:24 +00:00
Miguel de Icaza 1e9d133fb6 2009-06-10 Gert Driesen <[email protected]>
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

2009-06-10  Marek Safar  <[email protected]>

svn path=/trunk/mcs/; revision=136898
2009-06-25 23:19:41 +00:00
Miguel de Icaza 41da76b7f2 2009-06-25 Miguel de Icaza <[email protected]>
* Int32.cs: Fix regression introduced in 2005, we need to throw
	ArgumentNullException on Parse.

svn path=/trunk/mcs/; revision=136895
2009-06-25 22:46:50 +00:00
Zoltan Varga 7908adf49b 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136888
2009-06-25 21:02:46 +00:00
Zoltan Varga 1b1e5438b3 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136887
2009-06-25 20:55:57 +00:00
Zoltan Varga a043d4f6bb 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136886
2009-06-25 20:45:27 +00:00
Gonzalo Paniagua Javier 62e5ff8350 2009-06-25 Gonzalo Paniagua Javier <[email protected]>
* sockets.c: add the error number to the message so we can figure out
	when this happens.


svn path=/trunk/mono/; revision=136883
2009-06-25 20:40:31 +00:00
Zoltan Varga 227b251f89 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136880
2009-06-25 20:16:53 +00:00
Zoltan Varga 2d7f05b512 2009-06-25 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_and_reloc_code): Factor out the code to
	determine whenever a method is directly callable to a separate function.

svn path=/trunk/mono/; revision=136876
2009-06-25 19:41:51 +00:00
Marek Habersack adba453b57 2009-06-25 Marek Habersack <[email protected]>
* RouteCollectionTest.cs, RouteTest.cs: added new tests for
	GetVirtualPath

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

	* PatternParser.cs: parameter name lookups must be
	case-insensitive.
	Null and empty (string) parameters are skipped when building query
	part of the action path.

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

	* LinqDataSource.cs: make ContextType not throw an exception when
	ContextTypeName is not set, but rather return a null in that
	case.

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

	* MetaTableTest.cs: new GetVirtualPath tests.

	* DynamicDataRouteTest.cs: added tests for route.Defaults
	modifications on class init.

	* DynamicDataRouteHandlerTest.cs: added

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

	* MetaTable.cs: Fixes to make tests succeed.

	* MetaModel.cs: added the GetDataFieldAttributes method for
	retrieving attributes associated with data type/field.
	Fixes to make tests succeed.

	* MetaColumn.cs: refactoring - use
	MetaModel.GetDataFieldAttributes instead of the local version.

	* DynamicDataRouteHandler.cs: implemented GetRequestContext,
	GetRequestMetaTable.

	* DynamicDataRoute.cs: when the Action and Table properties are
	set before one of GetVirtualPath or GetRouteData methods are
	called for the first time, a check is made whether the Defaults
	collection exists and whether it contains entries for Action and
	Table. Initialization code makes sure those entries are inserted
	into the dictionary in those cases.

svn path=/trunk/mcs/; revision=136875
2009-06-25 19:35:20 +00:00
Zoltan Varga 1908653a07 2009-06-25 Zoltan Varga <[email protected]>
* mini-<ARCH>.c tramp-<ARCH>.c: Remove needless casts and add new
	needed ones as a result of the previous change.

svn path=/trunk/mono/; revision=136874
2009-06-25 19:17:12 +00:00
Zoltan Varga f26fc20b69 2009-06-25 Zoltan Varga <[email protected]>
* mini-<ARCH>.c tramp-<ARCH>.c: Use mgreg_t* as the
	type of register arrays.

svn path=/trunk/mono/; revision=136873
2009-06-25 19:04:37 +00:00
Jonathan Pryor 2969606fa4 * src/**/*: Sync with DbLinq r1200. Among other fixes, this fixes an
issue where AttributeMappingSource.GetModel().GetTables() would 
	  return duplicate types, which was unexpected by Marek Habersack.

svn path=/trunk/mcs/; revision=136871
2009-06-25 18:57:33 +00:00
Zoltan Varga bb48a6163d 2009-06-25 Zoltan Varga <[email protected]>
* mini-trampolines.c tramp-<ARCH>.c aot-runtime.c: Use mgreg_t* as the
	type of register arrays.

svn path=/trunk/mono/; revision=136870
2009-06-25 18:54:18 +00:00
Mark Probst 95ac45165f 2009-06-25 Mark Probst <[email protected]>
* threadpool.c (mono_thread_pool_add): If the domain is unloading
        or unloaded, still return an AsyncResult, but don't add it to the
        threadpool.

2009-06-25  Mark Probst  <[email protected]>

        * appdomain-async-invoke.cs: Fail if BeginInvoke doesn't return an
        AsyncResult.

svn path=/trunk/mono/; revision=136868
2009-06-25 18:43:12 +00:00
Atsushi Eno e9dbae90d2 2009-06-25 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
	  Made required changes for repeated use of message exchanges.
	  Hold binary reader session. The channels use it incrementally.
	  Preambles are handled at Open, and EndRecords are handled at
	  Close, Add session shutdown hook here (not working yet though).


svn path=/trunk/mcs/; revision=136867
2009-06-25 18:41:52 +00:00
Atsushi Eno 1628f04de5 2009-06-25 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : instead of discarding channels, reuse them
	  unless it is closed by session manager (session manager does not
	  work, so channels are not actually closed automatically yet).


svn path=/trunk/mcs/; revision=136866
2009-06-25 18:37:22 +00:00
Atsushi Eno 50bad4b114 2009-06-25 Atsushi Enomoto <[email protected]>
* ChannelDispatcherTest.cs : add some instance provider tests.


svn path=/trunk/mcs/; revision=136861
2009-06-25 17:57:37 +00:00
Atsushi Eno 1f6faa59d2 2009-06-25 Atsushi Enomoto <[email protected]>
* InstanceContext.cs : add missing member / cosmetic API fix.
	* ServiceBehaviorAttribute.cs : InstanceContextMode is per-session
	  by default.


svn path=/trunk/mcs/; revision=136860
2009-06-25 17:53:55 +00:00
Atsushi Eno 242e87c4d3 2009-06-25 Astushi Enomoto <[email protected]>
* SessionInstanceContextProvider.cs : new instance context provider.

	* System.ServiceModel.dll.sources:
	  add SessionInstanceContextProvider.cs.


svn path=/trunk/mcs/; revision=136859
2009-06-25 17:53:23 +00:00
Gonzalo Paniagua Javier 6398ea6f34 2009-06-25 Gonzalo Paniagua Javier <[email protected]>
* threads.c: fix missing colon when DEBUG is defined.


svn path=/trunk/mono/; revision=136854
2009-06-25 17:40:39 +00:00
Gonzalo Paniagua Javier b86eb0eb80 2009-06-25 Gonzalo Paniagua Javier <[email protected]>
* wait.c: add missing 'break'.


svn path=/trunk/mono/; revision=136852
2009-06-25 17:37:40 +00:00
Mark Probst 2d37a7b349 2009-06-25 Mark Probst <[email protected]>
* threadpool.c: Don't add new calls to a threadpool if the domain
        of the call is unloading or unloaded.  When dequeuing a job, null
        the reference in the queue.

2009-06-25  Mark Probst  <[email protected]>

        * appdomain-async-invoke.cs: Test for adding async invokes while a
        domain is unloading.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=136849
2009-06-25 17:00:53 +00:00
Mark Probst 15b2b00b85 2009-06-25 Mark Probst <[email protected]>
* sgen-gc.c (null_link_in_range): Add the dislink for the old
        generation if an object was moved.

svn path=/trunk/mono/; revision=136847
2009-06-25 16:42:05 +00:00
Bill Holmes 5942115cf2 2009-06-25 Sylvain Dupont <[email protected]>
* cominterop.h cominterop.c marshal.c: Added support for marshalling out
	  parameters of type SAFEARRAY[VARIANT].

	* reflection.c (encode_marshal_blob): Properly generate element type
	  (SafeArraySubType marshal attribute option).

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

	* CustomAttributeBuilder.cs: Properly handle element type for safe
	  arrays (SafeArraySubType marshal attribute option).

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=136836
2009-06-25 14:06:50 +00:00
Bill Holmes 18399a6f79 2009-06-25 Sylvain Dupont <[email protected]>
* cominterop.h cominterop.c marshal.c: Added support for marshalling out
	  parameters of type SAFEARRAY[VARIANT].

	* reflection.c (encode_marshal_blob): Properly generate element type
	  (SafeArraySubType marshal attribute option).

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

	* CustomAttributeBuilder.cs: Properly handle element type for safe
	  arrays (SafeArraySubType marshal attribute option).

	Code is contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=136836
2009-06-25 14:06:50 +00:00
Paolo Molaro 3e2f55010e Thu Jun 25 15:48:09 CEST 2009 Paolo Molaro <[email protected]>
* reflection.c: in mono_method_clear_object () really ensure all the
	objects are removed.


svn path=/trunk/mono/; revision=136834
2009-06-25 13:51:47 +00:00
Robert Jordan 689ccb56fd 2009-06-25 Robert Jordan <[email protected]>
* UriTest.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136817
2009-06-25 11:25:57 +00:00
Robert Jordan 3b80e25382 2009-06-25 Robert Jordan <[email protected]>
* BinaryReaderTest.cs, BinaryWriterTest.cs, BufferedStreamTest.cs,
	PathTest.cs, PathTest.cs, StringWriterTest.cs, TextWriterTest.cs:
	Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136815
2009-06-25 11:02:07 +00:00
Zoltan Varga af37587927 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136811
2009-06-25 09:57:40 +00:00
Zoltan Varga f7402682e9 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136810
2009-06-25 09:38:28 +00:00
Rodrigo Kumpera 62107e8955 2009-06-24 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_signature): Call into the verifier to check
	the method signature.

	* metadata-verify.c (verify_method_table): Move signature verification
	to verify_method_table_full.

	* metadata-verify.c: Add mono_verifier_verify_method_signature.

	* verify-internals.h: Export mono_verifier_verify_method_signature as
	part of the internal API.

svn path=/trunk/mono/; revision=136799
2009-06-24 22:45:59 +00:00
Rodrigo Kumpera 66613c3380 2009-06-24 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_header): Call into the verifier to
	check the method header.

	* metadata-verify.c: Add mono_verifier_verify_method_header.

	* verify-internals.h: Export mono_verifier_verify_method_header as
	part of the internal API.

svn path=/trunk/mono/; revision=136798
2009-06-24 22:45:45 +00:00
Rodrigo Kumpera e5c1d26960 2009-06-24 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_find_enum_basetype): Call into the verifier to
	check the field signature. Replace an assert with an explicit check.

	* class.c (mono_class_setup_fields): Call into the verifier to check
	the field signature.

	* metadata-verify.c: Add mono_verifier_verify_field_signature.

	* verify-internals.h: Export mono_verifier_verify_field_signature as
	part of the internal API.

svn path=/trunk/mono/; revision=136797
2009-06-24 22:45:30 +00:00
Rodrigo Kumpera cc618a06b8 2009-06-24 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_find_enum_basetype): Simplify this function
	by moving code outside of the loop and not decoding static fields.

svn path=/trunk/mono/; revision=136796
2009-06-24 22:45:14 +00:00
Rodrigo Kumpera 66d25751fc 2009-06-24 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Check the extends
	token here. Move to here a flags check from verify_typedef_table_full.

svn path=/trunk/mono/; revision=136795
2009-06-24 22:44:59 +00:00
Jerri Maine 5d0aa36711 Fix wrong date in my entry to ChangeLog files. Sorry! :((
svn path=/trunk/mono/; revision=136786
2009-06-24 21:25:11 +00:00
Jerri Maine a821527b59 mini-amd64.c: Added code to convert simd IR to native amd64 sse.
amd64/amd64-codegen.h: Add marcos for coding several specific sse opcodes.

svn path=/trunk/mono/; revision=136785
2009-06-24 21:19:29 +00:00
Marek Safar 9e060eba21 New test.
svn path=/trunk/mcs/; revision=136778
2009-06-24 16:37:18 +00:00
Marek Safar 1a123c4ec5 2009-06-24 Marek Safar <[email protected]>
* typemanager.cs, parameter.cs, iterators.cs, convert.cs,
	expression.cs, ecore.cs, delegate.cs: Removed unnecessary ArgList
	parameter modifier. Also fixes bug #515497.


svn path=/trunk/mcs/; revision=136777
2009-06-24 16:36:56 +00:00
Robert Jordan d377f08546 typo
svn path=/trunk/mcs/; revision=136772
2009-06-24 15:38:01 +00:00
Robert Jordan 29e1464833 2009-06-24 Robert Jordan <[email protected]>
* ArrayListTest.cs, CollectionBaseTest.cs, DictionaryEntryTest.cs,
	HashtableTest.cs: Convert all tests to new-style nunit methods.

	* QueueTest.cs: likewise. Convertion revealed 25 test that were
	disabled after the NUnit 2.4 update.

	* StackTest.cs: likewise. Convertion revealed 24 test that were
	disabled after the NUnit 2.4 update.


svn path=/trunk/mcs/; revision=136771
2009-06-24 14:58:20 +00:00
Zoltan Varga 7ed9116d60 2009-06-24 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_plt): Define debug labels for most plt entries.

svn path=/trunk/mono/; revision=136768
2009-06-24 13:10:37 +00:00
Zoltan Varga f725c8183a 2009-06-24 Zoltan Varga <[email protected]>
* metadata-verify.c (is_valid_method_header): Fix a warning.

	* metadata-internals.h (MonoImage): Remove the unused
	static_rgctx_invoke_wrapper_cache.

	* image.c marshal.c: Ditto.

svn path=/trunk/mono/; revision=136767
2009-06-24 13:10:29 +00:00
Marek Safar 1fd7e91289 New tests.
svn path=/trunk/mcs/; revision=136766
2009-06-24 11:34:25 +00:00
Marek Safar 021922567a 2009-06-24 Marek Safar <[email protected]>
* *.cs: Replaced ArrayList with Arguments in need of a nonsequential 
	arguments expression to be implemented.
	
	*.sources: Add argument.cs



svn path=/trunk/mcs/; revision=136765
2009-06-24 11:33:50 +00:00
Gonzalo Paniagua Javier 777d9fb576 2009-06-24 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: 'socket' and 'Data' where being changed by 2
	threads at the same time when there were queued requests and the
	current one was aborted in Connect().
	* HttpWebRequest.cs: 'aborted' is now an int and we use Interlocked to
	access it. Added WebConnection field used when aborting the request.

	Fixes bug #514591 for good.


svn path=/trunk/mcs/; revision=136753
2009-06-24 06:41:14 +00:00
Zoltan Varga b22059242d 2009-06-24 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136751
2009-06-24 04:07:12 +00:00
Zoltan Varga 7c9418a910 2009-06-24 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136750
2009-06-24 04:07:02 +00:00
Zoltan Varga 52343ce767 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136749
2009-06-24 03:37:39 +00:00
Neale Ferguson d142be8eee Fix LCONV_TO_xx and ICONV_TO_xx. Fix leave_method dump of returned
structure. Fix formatting.
Correct instruction lengths.
Add new instructions.

svn path=/trunk/mono/; revision=136748
2009-06-23 23:55:26 +00:00
Zoltan Varga c5abb9b09f 2009-06-24 Zoltan Varga <[email protected]>
* libtest.c make_imt_test.sh: Applied patch from Romain Tartiere
	([email protected]). Fix tests on freebsd.

svn path=/trunk/mono/; revision=136747
2009-06-23 22:30:41 +00:00
Zoltan Varga ebba015d36 2009-06-24 Zoltan Varga <[email protected]>
* mini-x86.h: Applied patch from Romain Tartière ([email protected]).
	Use sigaction on freebsd as well.

svn path=/trunk/mono/; revision=136746
2009-06-23 22:30:35 +00:00
Zoltan Varga 519656843f 2009-06-23 Zoltan Varga <[email protected]>
* mini.h: Don't define MONO_ARCH_HAVE_TLS_GET to 0, as some code
	uses #ifdef on it.

svn path=/trunk/mono/; revision=136740
2009-06-23 19:52:51 +00:00
Zoltan Varga d3752d5f8b 2009-06-23 Zoltan Varga <[email protected]>
* mini.h: Don't define MONO_ARCH_HAVE_TLS_GET to 0, as some code
	uses #ifdef on it.

svn path=/trunk/mono/; revision=136739
2009-06-23 19:52:43 +00:00
Marek Habersack d9f9fea847 2009-06-23 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added InternalsVisibleTo for
	System.ComponentModel.DataAnnotations (needs
	ReflectionPropertyDescriptor)

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

	* MetaTable.cs: constructor now takes ContextConfiguration instead
	of a boolean and uses the config to determine value of the
	ScaffoldAllTables property. Also, if context config is present,
	makes sure to register the associated type description provider
	(if any) with TypeDescriptor.

	* MetaModel.cs: no longer uses local cache for description
	providers. Uses TypeDescriptor.{Add,Get}Provider now.

	* MetaColumn.cs: fixed Scaffold to match tests - IsGenerated and
	IsCustomProperty take precedence over Table.ScaffoldAllTables.
	GetDataFieldAttribute doesn't use AttributeCollection indexer, as
	the latter would create a default instance of the requested
	attribute, which is not what we want here.

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

	* ValidationAttribute.cs: error message must not ever be empty.

	* UIHintAttribute.cs: do not throw NIEX from the constructor.

	* DataTypeAttribute.cs: implemented correct DisplayFormat
	intialization for DataType.Time.

	* AssociatedMetadataTypeTypeDescriptor.cs: implemented retrieving
	attributes of the associated metadata type, as well as merging of
	attribute collections between metadata and main type properties.

	* AssociatedMetadataTypePropertyDescriptor.cs: added. Helper class
	which merges attributes from the metadata type (if any) with those
	associated with property from the "main" type.

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

	* System.ComponentModel.DataAnnotations.dll.sources: added
	System.ComponentModel.DataAnnotations/AssociatedMetadataTypePropertyDescriptor.cs

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

	* TypeDescriptor.cs: do not wrap DefaultTypeDescriptionProvider.
	Implemented GetAttributes and GetProperties in
	DefaultTypeDescriptor.

	* AttributeCollection.cs: make sure that attrList is never null.

svn path=/trunk/mcs/; revision=136732
2009-06-23 18:38:38 +00:00
Jonathan Pryor edda5602c1 * Mono.Documentation/monodocer.cs: Don't generate an exception when an
enumeration contains multiple names with the same value.
	  Fixes #515030.
	* Test/DocTest-v1.cs: Add test for #515030.
	* Test/en.expected/Mono.DocTest/Color.xml,
	  Test/en.expected.since/Mono.DocTest/Color.xml,
	  Test/html.expected/Mono.DocTest/Color.html,
	  Test/msxdoc-expected.importslashdoc.xml,
	  Test/en.expected.importslashdoc/Mono.DocTest/Color.xml: Flush.

svn path=/trunk/mcs/; revision=136730
2009-06-23 18:34:00 +00:00
Rodrigo Kumpera 4d45e1f564 2009-06-23 Rodrigo Kumpera <[email protected]>
* image.c (do_mono_image_load): Enable table data verification.

svn path=/trunk/mono/; revision=136729
2009-06-23 18:18:43 +00:00
Rodrigo Kumpera 3c1d408e8e 2009-06-23 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_constant): Fix nullref check.

svn path=/trunk/mono/; revision=136728
2009-06-23 18:18:28 +00:00
Rodrigo Kumpera 6da266a1c1 2009-06-23 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_constant): Fix string bounds check.

svn path=/trunk/mono/; revision=136727
2009-06-23 18:18:11 +00:00
Gonzalo Paniagua Javier dcd922a92c make the ParseExact5 work for all timezones
svn path=/trunk/mcs/; revision=136725
2009-06-23 18:00:15 +00:00
Gonzalo Paniagua Javier 9cb328f9ea 2009-06-23 Gonzalo Paniagua Javier <[email protected]>
* DateTime.cs: ignore MinValue to avoid DateTimeOffset ctor throwing
	when adjusting for TZ.


svn path=/trunk/mcs/; revision=136722
2009-06-23 17:58:42 +00:00
Atsushi Eno 7e1dd782a8 2009-06-23 Atsushi Enomoto <[email protected]>
* XmlSchemaAssertion.cs, XmlSchemaTests.cs : migrate from Assertion
	  to Assert (it still uses XmlSchemaAssertion as the base class,
	  but XmlSchemaAssertion is not based on Assertion anymore).


svn path=/trunk/mcs/; revision=136714
2009-06-23 16:19:56 +00:00
Marek Habersack 2f91b0659e Assertion -> Assert migration
svn path=/trunk/mcs/; revision=136712
2009-06-23 15:30:13 +00:00
Atsushi Eno f27bca4e70 2009-06-23 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : remove more TODO.

	* DispatchRuntime.cs : do not fill InstanceContextProvider here.
	* ChannelDispatcher.cs : do it here instead.
	* ChannelDispatcherCollection.cs : remove TODOs.

	* ChannelDispatcherTest.cs : make sure that the port to be in use is
	  available before running the tests. Check attach state.
	* DispatchRuntimeTest.cs : make sure that it runs through all the
	  behavior tests.


svn path=/trunk/mcs/; revision=136695
2009-06-23 10:21:19 +00:00
Marek Safar 24b2c4de33 2009-06-23 Marek Safar <[email protected]>
* parameter.cs: Moved GetParameterIndexByName to base class.
	
	* expression.cs, statement.cs, ecore.cs, delegate.cs: Removed
	unused AType. Use argument's version of GetExpressionTree.


svn path=/trunk/mcs/; revision=136694
2009-06-23 10:19:35 +00:00
Atsushi Eno ca1a5d2296 2009-06-23 Atsushi Enomoto <[email protected]>
* OperationContext.cs : implement SessionId.
	* ServiceHostBase.cs : implement open/close async methods.
	  remove some TODOs.


svn path=/trunk/mcs/; revision=136674
2009-06-23 03:05:10 +00:00
Atsushi Eno e86ae29e70 2009-06-23 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : remove some NIEs for actual use.
	  Dispose->Close.


svn path=/trunk/mcs/; revision=136673
2009-06-23 03:03:12 +00:00
Atsushi Eno 5846997eef 2009-06-23 Atsushi Enomoto <[email protected]>
* InputOrReplyRequestProcessor.cs : bogus initialization.


svn path=/trunk/mcs/; revision=136672
2009-06-23 03:00:24 +00:00
Carlos Alberto Cortez c020fc9325 2009-06-22 Carlos Alberto Cortez <[email protected]>
* ListBox.cs: When creating DrawItemEventArgs, pass either
	Theme.ColorHighlightText or ForeColor depending on the selected state
	of our item, as .net does.
	Fixes #512115.


svn path=/trunk/mcs/; revision=136669
2009-06-23 01:57:50 +00:00
Zoltan Varga 8b38e58dbc 2009-06-23 Zoltan Varga <[email protected]>
* mini.c (mini_init): Revert a change which breaks cross-compilation.

svn path=/trunk/mono/; revision=136667
2009-06-22 23:53:50 +00:00
Mark Probst 51d753617b TLS_GET on Darwin/G4.
2009-06-22  Mark Probst  <[email protected]>

        * mini-ppc.c, cpu-ppc.md: Enable TLS on Darwin/G4.

svn path=/trunk/mono/; revision=136659
2009-06-22 22:50:41 +00:00
Mark Probst a9569b6419 SGen managed allocation with pthreads TLS.
2009-06-22  Mark Probst  <[email protected]>

        * sgen-gc.c: Managed allocation with pthreads TLS.

        * threads.c, threads-types.h: Functions for the JIT to tell the
        runtime whether it supports the MONO_TLS opcode.

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

        * mini.c, mini.h: Tell the runtime whether we support MONO_TLS.

svn path=/trunk/mono/; revision=136658
2009-06-22 22:49:11 +00:00
Neale Ferguson 1d84e36ab9 Define a no-op memory barrier for s390(x)
svn path=/trunk/mono/; revision=136657
2009-06-22 22:40:05 +00:00
Rodrigo Kumpera 9abda1f613 2009-06-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_param_table): Fix a crash for assemblies
	without methods.

svn path=/trunk/mono/; revision=136656
2009-06-22 22:29:51 +00:00
Rodrigo Kumpera bbba98bbd1 2009-06-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_constant): Fix the string length check.
	Use safe overflow checking. Add decent error messages.

svn path=/trunk/mono/; revision=136655
2009-06-22 22:29:23 +00:00
Rodrigo Kumpera 478b785fe1 2009-06-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Move remaininh blob checks to the offline
	verification path.

svn path=/trunk/mono/; revision=136654
2009-06-22 22:28:49 +00:00
Rodrigo Kumpera c6a38b5b66 2009-06-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Move more blob checks to the offline verification
	path.

svn path=/trunk/mono/; revision=136653
2009-06-22 22:28:22 +00:00
Miguel de Icaza 4a0cee9f03 2009-06-10 Gert Driesen <[email protected]>
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

svn path=/trunk/mcs/; revision=136652
2009-06-22 22:08:57 +00:00
Marek Safar a94f3c0910 Message update
svn path=/trunk/mcs/; revision=136651
2009-06-22 22:04:58 +00:00
Neale Ferguson dc7b885bae Fix typo in GC_compare_and_exchange
svn path=/trunk/mono/; revision=136648
2009-06-22 21:39:16 +00:00
Marek Habersack 1821e106c7 2009-06-22 Marek Habersack <[email protected]>
* WeakObjectWrapper.cs, WeakObjectWrapperComparer.cs: added - used
	by TypeDescriptor for storage of type description providers.

	* TypeDescriptor.cs: implemented part of the 2.0+ API which deals
	with adding/removing/getting type description providers.

	* AttributeCollection.cs: do not throw NREX when attrList is
	null in Count.

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

	* TypeDescriptorTests.cs: added tests for 2.0+ APIs which deal
	with adding/removing/getting type description providers.

svn path=/trunk/mcs/; revision=136634
2009-06-22 18:24:19 +00:00
Bill Holmes 62732ea52e 2009-06-22 Bill Holmes <[email protected]>
* object-internals.h : Adding interrupt_on_stop field.

	* threads.c (mono_thread_request_interruption) : On Windows exit the
	  thread if interrupt_on_stop is set.

	* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
	  Removing old interrupt logic and setting the interrupt_on_stop for the
	  thread when calling accept.

	* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal) :
	  setting the interrupt_on_stop for the thread when calling accept.

	* Thread.cs : Adding interrupt_on_stop field.

	Contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=136628
2009-06-22 17:41:26 +00:00
Bill Holmes 48cfa18d07 2009-06-22 Bill Holmes <[email protected]>
* object-internals.h : Adding interrupt_on_stop field.

	* threads.c (mono_thread_request_interruption) : On Windows exit the
	  thread if interrupt_on_stop is set.

	* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
	  Removing old interrupt logic and setting the interrupt_on_stop for the
	  thread when calling accept.

	* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal) :
	  setting the interrupt_on_stop for the thread when calling accept.

	* Thread.cs : Adding interrupt_on_stop field.

	Contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=136628
2009-06-22 17:41:26 +00:00
Martin Baulig 635129d3f2 Add new 'thread_flags' field to 'MonoDebuggerThreadInfo' and mark daemon / threadpool threads.
2009-06-20  Martin Baulig  <[email protected]>

	* debug-mini.c
	(MonoDebuggerThreadFlags): New enum typedef.
	(MonoDebuggerThreadInfo): Added `guint32 thread_flags'.
	(mono_debugger_thread_created): Added `gpointer func' argument;
	initialize the new `thread_flags' field.

svn path=/trunk/mono/; revision=136619
2009-06-22 16:21:00 +00:00
Martin Baulig 8a8133cef3 Renamed 'MonoDebuggerInfo.dummy' into 'runtime_info' and set an "attach ok" flag for the debugger.
2009-06-18  Martin Baulig  <[email protected]>

	* debug-debugger.h (MonoDebuggerRuntimeFlags): New enum typedef.
	(MonoDebuggerInfo): Renamed the `dummy' field info `runtime_info'.

	* debug-debugger.c
	(mini_debugger_set_attach_ok): New function; sets the attach-ok
	flag in `MONO_DEBUGGER__info.runtime_info'.

	* driver.c
	(mono_main): Call mini_debugger_set_attach_ok() if generics
	sharing is disabled.

svn path=/trunk/mono/; revision=136618
2009-06-22 16:20:40 +00:00
Martin Baulig 287de277fd Improve exception handling when running in mdb: check whether an exception is caught inside a runtime-invoked method or the runtime-invoke wrapper.
2009-06-08  Martin Baulig  <[email protected]>

	* debug-mini.c
	(MonoDebuggerExceptionAction): Moved into debug-mini.h.
	(_mono_debugger_throw_exception): Don't make this static.
	(_mono_debugger_unhandled_exception): Likewise.
	(mono_debugger_handle_exception): Moved to mini-exceptions.c

	* debug-mini.c
	(MonoDebuggerExceptionAction): Moved here from debug-mini.c.
	(_mono_debugger_throw_exception): Add function prototype.
	(_mono_debugger_unhandled_exception): Likewise.

	* mini-exceptions.c
	(mono_handle_exception_internal): Added `MonoJitInfo **out_ji'
	arg; return the first exception handler if the exception is caught
	and we're running inside the debugger.
	(mono_debugger_handle_exception): Moved here from debug-mini.c;
	improve exception handle inside runtime-invoke, check whether the
	exception is actually caught in the method being invoked and not
	by the runtime-invoke-wrapper.

svn path=/trunk/mono/; revision=136617
2009-06-22 16:20:18 +00:00
Zoltan Varga 1d4de9bfc5 2009-06-22 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Fix a warning.

svn path=/trunk/mono/; revision=136609
2009-06-22 16:07:11 +00:00
Zoltan Varga b6d397b879 Fix a few uses of ppc_store_reg.
svn path=/trunk/mono/; revision=136607
2009-06-22 15:25:02 +00:00
Zoltan Varga e6142d86ba Fix a few uses of ppc_load_reg/ppc_store_reg.
svn path=/trunk/mono/; revision=136606
2009-06-22 15:24:56 +00:00
Zoltan Varga bbda6e9879 2009-06-22 Zoltan Varga <[email protected]>
* mini-ppc.c tramp-ppc.c exceptions-ppc.c aot-compiler.c: Update after
	the ppc load/store macro changes.

svn path=/trunk/mono/; revision=136605
2009-06-22 15:22:17 +00:00
Zoltan Varga 5c68a7494a 2009-06-22 Zoltan Varga <[email protected]>
* ppc/ppc-codegen.h: Rework the naming of the load/store macros,
	ldr/str now handle register sized quantities, while ldptr/stptr handle
	pointer sized quantities.

svn path=/trunk/mono/; revision=136604
2009-06-22 15:22:10 +00:00
Marek Safar 232d093e28 Fixes build.
svn path=/trunk/mcs/; revision=136601
2009-06-22 14:21:44 +00:00
Marek Safar f8be546146 2009-06-22 Marek Safar <[email protected]>
* expression.cs, cs-parser.jay, attribute.cs, codegen.cs: Named
	arguments grammar.


svn path=/trunk/mcs/; revision=136598
2009-06-22 13:52:33 +00:00
Marek Safar 2ce44cf2d6 2009-06-21 Marek Safar <[email protected]>
* Tuples.cs: Add Equals, GetHashCode.


svn path=/trunk/mcs/; revision=136596
2009-06-22 13:02:25 +00:00
Carlos Alberto Cortez eae6707fed 2009-06-22 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: When handling WM_CHAR, process the message first, and
	send it to the textbox only if it wasn't handled.
	Fixes #507459.


svn path=/trunk/mcs/; revision=136594
2009-06-22 12:56:26 +00:00
Marek Safar ac92d1a65e svn:eol-style
svn path=/trunk/mcs/; revision=136586
2009-06-22 11:38:21 +00:00
Gonzalo Paniagua Javier ef5b9248c9 2009-06-21 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: check for an aborted request in Begin* before
	proceeding. Fixes bug #511851.


svn path=/trunk/mcs/; revision=136574
2009-06-22 02:00:14 +00:00
Gonzalo Paniagua Javier f3f57ffb5d 2009-06-21 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: close the underlying socket if there's an
	exception when closing the stream. Fixes bug #514996.


svn path=/trunk/mcs/; revision=136572
2009-06-22 01:47:57 +00:00
Gert Driesen e9ff61a03b * HttpWebRequestTest.cs: Improved and enabled test for bug #510642.
* WebConnectionStream.cs: Keep count of all bytes written, and perform
write overflow check in both buffered and non-buffered writing (if
not using chunked transfer encoding). Fixes bug #510642.

svn path=/trunk/mcs/; revision=136570
2009-06-21 19:09:27 +00:00
Zoltan Varga 2f6c7d8077 2009-06-21 Zoltan Varga <[email protected]>
* tramp-ppc.c (mono_arch_patch_plt_entry): Implement this.

svn path=/trunk/mono/; revision=136569
2009-06-21 14:22:06 +00:00
Zoltan Varga da84626e5c 2009-06-21 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Sanitize the plt symbol too,
	not just the got symbol.

svn path=/trunk/mono/; revision=136568
2009-06-21 14:21:59 +00:00
Zoltan Varga 8cad9a58a9 2009-06-21 Zoltan Varga <[email protected]>
* IntPtr.cs (.ctor): Disable the check in the long ctor until we
	can figure out how to do it properly.

svn path=/trunk/mcs/; revision=136567
2009-06-21 13:41:49 +00:00
Zoltan Varga 3faaedad9d 2009-06-21 Zoltan Varga <[email protected]>
* mini-ppc.c aot-compiler.c unwind.c: Implement generation of unwind info
	on ppc.

svn path=/trunk/mono/; revision=136566
2009-06-21 01:11:28 +00:00
Zoltan Varga fc97bf275a Use TARGET_POWERPC instead of PPC.
svn path=/trunk/mono/; revision=136565
2009-06-21 00:19:44 +00:00
Zoltan Varga 057dd630fc 2009-06-21 Zoltan Varga <[email protected]>
* aot-compiler.c unwind.c: Add infrastructure for unwind support on
	ppc.

svn path=/trunk/mono/; revision=136564
2009-06-21 00:16:58 +00:00
Zoltan Varga dcb3d49d87 2009-06-21 Zoltan Varga <[email protected]>
* appdomain.c (mono_try_assembly_resolve): Don't call managed code when
	running in no-exec mode.

svn path=/trunk/mono/; revision=136563
2009-06-20 23:27:11 +00:00
Zoltan Varga 9fb25285a3 2009-06-21 Zoltan Varga <[email protected]>
* aot-compiler.c: Remove some fixmes.

svn path=/trunk/mono/; revision=136562
2009-06-20 23:23:28 +00:00
Zoltan Varga d269448e57 2009-06-21 Zoltan Varga <[email protected]>
* driver.c (mono_main): Print a helpful message when cross-compiling.

svn path=/trunk/mono/; revision=136561
2009-06-20 22:29:09 +00:00
Zoltan Varga 62ee661532 2009-06-21 Zoltan Varga <[email protected]>
* mini.c (mini_init): Disable signal handlers when cross-compiling.

svn path=/trunk/mono/; revision=136560
2009-06-20 22:25:23 +00:00
Zoltan Varga 7aa78f8186 2009-06-21 Zoltan Varga <[email protected]>
* method-to-ir.c (initialize_array_data): Do the optimization if the
	target byte order is little endian, instead of the host byte order.

svn path=/trunk/mono/; revision=136559
2009-06-20 22:19:16 +00:00
Zoltan Varga f0c1a9daad 2009-06-21 Zoltan Varga <[email protected]>
* configure.in (TARGET_BYTE_ORDER): New define containing the byte order of
	the target.

svn path=/trunk/mono/; revision=136558
2009-06-20 22:19:09 +00:00
Zoltan Varga 6a4485b4d7 2009-06-21 Zoltan Varga <[email protected]>
* aot-compiler.c: Emit sizes for most symbols, only emit runtime-invoke
	wrappers into the mscorlib image, Emit a unique plt symbol for each
	image, emit symbols for plt entries.

	* image-writer.c (img_writer_emit_symbol_size): New function to emit
	a .size directive.

svn path=/trunk/mono/; revision=136557
2009-06-20 22:05:48 +00:00
Zoltan Varga 6a3a4d1800 2009-06-20 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Avoid calling
	mono_marshal_get_type_info () since it can assert for some types.

	* method-to-ir.c (mono_method_to_ir): Disable aot when some forms of
	ldtoken are used inside wrappers.

svn path=/trunk/mono/; revision=136556
2009-06-20 21:49:43 +00:00
Zoltan Varga 88ba7144d3 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136555
2009-06-20 21:32:02 +00:00
Zoltan Varga 0e810e463b 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136554
2009-06-20 21:25:36 +00:00
Zoltan Varga 047cabb88a 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136553
2009-06-20 21:19:47 +00:00
Zoltan Varga 4efdd38b4d 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136552
2009-06-20 21:17:28 +00:00
Zoltan Varga bcb5152087 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136551
2009-06-20 21:05:16 +00:00
Zoltan Varga 9d5a01d6bf 2009-06-20 Zoltan Varga <[email protected]>
* IntPtr.cs (.ctor): Allow long values whose 31th bit is set.

svn path=/trunk/mcs/; revision=136550
2009-06-20 20:47:29 +00:00
Zoltan Varga 670bb4f4d0 2009-06-20 Zoltan Varga <[email protected]>
* atomic.h: Fix ilp32 support on ppc.

svn path=/trunk/mono/; revision=136549
2009-06-20 18:48:11 +00:00
Zoltan Varga 9a5d048d10 2009-06-20 Zoltan Varga <[email protected]>
* ppc/ppc-codegen.h: Fix the last change to avoid self-assignments inside
	macros.

svn path=/trunk/mono/; revision=136548
2009-06-20 18:47:03 +00:00
Gert Driesen e9891de02a * SocketResponder.cs: Made a little more robust.
svn path=/trunk/mcs/; revision=136546
2009-06-20 14:17:09 +00:00
Zoltan Varga 24702fba22 * mini-codegen.c: Remove definitions of OP_LOADR_MEMBASE/OP_STORER_MEMBASE
left in by mistake.

svn path=/trunk/mono/; revision=136545
2009-06-20 13:52:28 +00:00
Gert Driesen 2fc81bb034 * HttpListener2Test.cs: Added test for bug #513849.
* HttpWebRequestTest.cs: Enabled test for bug #508027. Added test for
bug #513087.
* WebClientTest.cs: Added test for bug #484795, for Encoding property.

svn path=/trunk/mcs/; revision=136544
2009-06-20 13:22:17 +00:00
Gert Driesen 6f8bd0b8a8 * WebClient.cs: Use lowercase hex bytes to match MS. Avoid using
zero-length string literal. Fixed exception argument name to match
MS.
* WebConnectionStream.cs: Throw a WebException that wraps an
IOException when closing the stream before all bytes are written.

svn path=/trunk/mcs/; revision=136543
2009-06-20 13:17:16 +00:00
Zoltan Varga 26f66b1159 2009-06-20 Zoltan Varga <[email protected]>
* helpers.c: Add support for prefixing tools with the arch name.

svn path=/trunk/mono/; revision=136542
2009-06-20 13:05:05 +00:00
Zoltan Varga fea4188330 2009-06-20 Zoltan Varga <[email protected]>
* mini.h (OP_LOADR_MEMBASE): New opcodes to load/store pointer sized
	quantities when using ilp32.

	* mini-codegen.c: Use OP_LOADR_MEMBASE/OP_STORER_MEMBASE for loading/storing
	spill slots. Use sizeof(mgreg_t) for the spill slot size.

	* image-writer.c: Use .long on ilp32.

	* aot-compiler.c: Use 32 bit loads on ilp32.

svn path=/trunk/mono/; revision=136541
2009-06-20 13:04:57 +00:00
Zoltan Varga 2fefe8320f 2009-06-20 Zoltan Varga <[email protected]>
* src/glib.h: Add GUINT32_FROM/TO_BE macros.

svn path=/trunk/mono/; revision=136540
2009-06-20 13:04:50 +00:00
Zoltan Varga cc73403e96 2009-06-20 Zoltan Varga <[email protected]>
* ppc/ppc-codegen.h: Add ppc_ldr/ppc_str macros to store regsize quantities.
	Handle little endian host platforms in ppc_emit32.

svn path=/trunk/mono/; revision=136539
2009-06-20 13:04:42 +00:00
Zoltan Varga 9c0c9bd2d4 2009-06-20 Zoltan Varga <[email protected]>
* tramp-ppc.c: Fix the calculation of the trampoline stack size now that
	we save all 31 registers.

svn path=/trunk/mono/; revision=136537
2009-06-19 23:54:28 +00:00
Zoltan Varga e187177c79 Revert "2009-06-20 Zoltan Varga <[email protected]>"
This reverts commit b51c762bc7dd2ea3ecdaec9ea8a7b499d785a7c8.

svn path=/trunk/mono/; revision=136536
2009-06-19 23:54:21 +00:00
Zoltan Varga b98445b8f8 2009-06-20 Zoltan Varga <[email protected]>
* tramp-ppc.c (STACK): Fix this since we now push 31 registers.

svn path=/trunk/mono/; revision=136535
2009-06-19 23:54:02 +00:00
Rodrigo Kumpera 1e33423208 Fix some typos on test description.
svn path=/trunk/mono/; revision=136534
2009-06-19 22:20:31 +00:00
Rodrigo Kumpera 0e507ccdc8 2009-06-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_method_table): Move header
	checking to verify_method_table_full.

	* metata-verify.c (mono_verifier_verify_full_table_data):
	Call verify_method_table_full.

svn path=/trunk/mono/; revision=136533
2009-06-19 22:20:22 +00:00
Rodrigo Kumpera 1d699d8e68 2009-06-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_field_table): Move signature
	checking to verify_field_table_full.

	* metata-verify.c (mono_verifier_verify_full_table_data):
	Call verify_field_table_full.

svn path=/trunk/mono/; revision=136532
2009-06-19 22:19:53 +00:00
Rodrigo Kumpera d9611ad498 2009-06-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Move remaining
	stuff to verify_typedef_table_full.

svn path=/trunk/mono/; revision=136531
2009-06-19 22:19:35 +00:00
Rodrigo Kumpera a9655d5a39 2009-06-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Kill is_corlib from VerifyContext.
	It is only used by the offline mode.
	So we better remove it from the runtime path.

svn path=/trunk/mono/; revision=136530
2009-06-19 22:19:20 +00:00
Rodrigo Kumpera 2867ac38a0 2009-06-19 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Fix a implmap-table test
	related to SupportLastError.

svn path=/trunk/mono/; revision=136529
2009-06-19 22:19:02 +00:00
Rodrigo Kumpera 94c44f0ad9 Fix typo in changelog
svn path=/trunk/mono/; revision=136528
2009-06-19 22:18:49 +00:00
Rodrigo Kumpera 257bcd00ac 2009-06-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add new mono_verifier_verify_full_table_data
	function that perform the offline metadata verification steps.

	* metadata-verify.c (verify_typedef_table): Move some checks to
	verify_typedef_table_full and make it been called by new function
	mono_verifier_verify_full_table_data.

	* pedump.c: Call mono_verifier_verify_full_table_data.

	* verify-internals.h: Export mono_verifier_verify_full_table_data as
	part of the internal API.

svn path=/trunk/mono/; revision=136527
2009-06-19 22:18:34 +00:00
Rodrigo Kumpera a4f0ed3227 2009-06-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (typedef_is_system_object): Fix System.Object
	check.

	* metadata-verify.c (verify_implmap_table): Fix implmap invalid
	flags bits. SupportLastError was confused as bit 7 instead of 6.

	* metadata-verify.c (verify_implmap_table): Fix import scope verication
	to check against the module ref table instead of module.

	* metadata-verify.c (verify_implmap_table): Fix corlib check.

	* pedump.c: Call mono_image_load_names.

svn path=/trunk/mono/; revision=136526
2009-06-19 22:18:18 +00:00
Rodrigo Kumpera 1553c69a4a 2009-06-19 Rodrigo Kumpera <[email protected]>
* image.c: Extract mono_image_load_names from do_mono_image_load.

	* metadata-internals.h: Export mono_image_load_names as part of
	the internal API.

svn path=/trunk/mono/; revision=136525
2009-06-19 22:17:57 +00:00
Jonathan Pryor 177c4d7469 * src/**/*, tests/**/*: Sync with DbLinq r1180. Gets unit tests into
a state (i.e. no release tests fail within NUnit), fixes several
	  bugs, massive code cleanup (#if removal), EntitySet<T> fixes,
	  removes some locale dependency issues, predicate building,
	  performance improvements, and likely more.  Remove src/VisualMetal;
	  it's no longer used.
	* Makefile (update-dblinq): Exclude more files so that there's less
	  "garbage" files to review on the next update.

svn path=/trunk/mcs/; revision=136523
2009-06-19 21:14:10 +00:00
Gonzalo Paniagua Javier 548ab41616 2009-06-19 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: make sure we don't open a new socket if the
	request is aborted before we establish the connection. Fixes bug
	#514591.

	* HttpWebRequest.cs: new property to return abort status. Invoke the
	abort handler before doing anything else when Abort() is called for
	the first time.


svn path=/trunk/mcs/; revision=136516
2009-06-19 20:20:35 +00:00
Zoltan Varga 572c5bc8be 2009-06-19 Zoltan Varga <[email protected]>
* tramp-ppc.c (mono_arch_create_trampoline_code): Fix the ppc build.

svn path=/trunk/mono/; revision=136505
2009-06-19 18:14:45 +00:00
Zoltan Varga 32ad86a648 2009-06-19 Zoltan Varga <[email protected]>
* mini-ops.h: Use TARGET_POWERPC define for consistency.

	* patch-info.h: Add 'MSCORLIB_GOT_ADDR' patch type.

	* aot-compiler.c aot-runtime.c: Put the mscorlib got address into the
	second got slot of every aot image.

	* aot-compiler.c aot-runtime.c mini-trampolines.c: Add support for
	aot on platforms with function pointers.

	* mini-ppc.h mini-ppp.c cpu-ppc.md exceptions-ppc.c tramp-ppc.c: Add
	support for aot/full aot on ppc/ppc64.

svn path=/trunk/mono/; revision=136504
2009-06-19 18:01:12 +00:00
Zoltan Varga 5a7df81c80 2009-06-19 Zoltan Varga <[email protected]>
* tramp-<ARCH>.c (mono_arch_patch_plt_entry): Add 'got' and 'regs'
	arguments which are needed on ppc.

	* tramp-arm.c (mono_arch_nullify_class_init_trampoline): Add 'regs'
	argument.

	* mini-trampolines.c aot-runtime.c: Update after the above changes.

svn path=/trunk/mono/; revision=136502
2009-06-19 17:52:40 +00:00
Massimiliano Mantione 60a3a4279f Removed debugging printf statement.
svn path=/trunk/mono/; revision=136500
2009-06-19 16:53:07 +00:00
Zoltan Varga a0bff8c5c1 2009-06-19 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_cleanup): Free the generic method cache
	first, as it could reference data in the other caches.

svn path=/trunk/mono/; revision=136499
2009-06-19 16:09:44 +00:00
Zoltan Varga fbe77305de 2009-06-19 Zoltan Varga <[email protected]>
* liveness.c (BITS_PER_CHUNK): Use MONO_BITSET_BITS_PER_CHUNK.

	* regalloc2.c (BITS_PER_CHUNK): Ditto.

svn path=/trunk/mono/; revision=136498
2009-06-19 15:37:53 +00:00
Zoltan Varga d13643c585 2009-06-19 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_got_info): Fix reading unused memory.

svn path=/trunk/mono/; revision=136496
2009-06-19 14:45:28 +00:00
Atsushi Eno 97d43a12a8 2008-06-19 Atsushi Enomoto <[email protected]>
* Normalization.cs :
	  - reverted the previous index calculation change. It was correctly
	    implemented and I rather broke it.
	  - fix index calculation on combining.
	  - NFKD was incorrectly directed to combining path. It should not.
	  - Simplify quick check.

	* StringTest.cs : Fix the previous test. It was expecting wrong
	  results. Added another NFC composition test.


svn path=/trunk/mcs/; revision=136474
2009-06-19 10:17:26 +00:00
Zoltan Varga e6b75b9f4e 2009-06-19 Zoltan Varga <[email protected]>
* ir-emit.h (alloc_dreg): Add a 'return -1' to quiet some compilers.

svn path=/trunk/mono/; revision=136451
2009-06-19 01:50:32 +00:00
Rodrigo Kumpera da826a217e 2009-06-18 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Last tests for method header.

svn path=/trunk/mono/; revision=136450
2009-06-19 01:47:42 +00:00
Rodrigo Kumpera 3529893255 2009-06-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Finished with method header verification.

svn path=/trunk/mono/; revision=136449
2009-06-19 01:47:33 +00:00
Massimiliano Mantione b73ecdebe8 Added assembly information to classes and wrapper flag to methods.
svn path=/trunk/mono/; revision=136445
2009-06-18 21:43:20 +00:00
Gonzalo Paniagua Javier db6c414cb6 new section in town
svn path=/trunk/mono/; revision=136441
2009-06-18 20:32:55 +00:00
Gonzalo Paniagua Javier 84c05c6666 new files
svn path=/trunk/mcs/; revision=136440
2009-06-18 20:32:19 +00:00
Gonzalo Paniagua Javier 664c12c8d8 2009-06-18 Gonzalo Paniagua Javier <[email protected]>
* IriParsingElement.cs:
	* UriSection.cs:
	* IdnElement.cs: new files that parse <uri> and subelements.


svn path=/trunk/mcs/; revision=136437
2009-06-18 20:31:47 +00:00
Gonzalo Paniagua Javier fb220f44e5 2009-06-18 Gonzalo Paniagua Javier <[email protected]>
* DateTime.cs: quick fix for the 1.x build.


svn path=/trunk/mcs/; revision=136432
2009-06-18 18:31:54 +00:00
Atsushi Eno 91e6a13f1b 2009-06-18 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : significant changes:
	  - simplified Open/Close async.
	  - implement OnAbort().
	  - create ServiceThrottle when it is null.
	  - Channels are accepted as much as the throttle allows, and
	    process requests when accepted an input (now it holds more than
	    one channel).
	  - Support ReceiveSynchronously and use Begin/EndAcceptChannel()
	    for async pattern.
	  - Close all channels and the listener when it is closed.
	  - Cosmetic simplification on channel acceptor delegate creation.


svn path=/trunk/mcs/; revision=136431
2009-06-18 18:22:23 +00:00
Gonzalo Paniagua Javier f95a1dbbf0 2009-06-18 Gonzalo Paniagua Javier <[email protected]>
* DateTimeTest.cs: add test for parsing a negative timezone.
	* DateTimeOffsetTest.cs: several tests for Parse.


svn path=/trunk/mcs/; revision=136428
2009-06-18 17:51:06 +00:00
Gonzalo Paniagua Javier 3d66f6eaff 2009-06-18 Gonzalo Paniagua Javier <[email protected]>
* AppDomainSetup.cs: update attribute.
	* TermInfoDriver.cs: ensure we are initialized in CheckWindowDimensions().
	* DateTimeOffset.cs: Implement Parse().
	* DateTime.cs: add 'zzz' to the list of default time formats. Return a
	DateTimeOffset from _DoParse. Fixed the offset minutes when the
	timezone is specified as a negative one.
	* Console.cs: updates for MoveBufferArea().
	* AppDomainManager.cs: implement EntryAssembly.
	* AppDomain.cs: update attribute.


svn path=/trunk/mcs/; revision=136426
2009-06-18 17:49:43 +00:00
Atsushi Eno 26e7cc7e0b 2009-06-18 Atsushi Enomoto <[email protected]>
* ChannelListenerBase_1.cs : added cancellation hook here too.
	  HttpChannelListener.cs : use above.
	  Do not allow parallel channel creation (this listener does not
	  allow more than one AcceptChannel().


svn path=/trunk/mcs/; revision=136425
2009-06-18 17:44:02 +00:00
Jonathan Pobst 90f82b729d 2009-06-18 Jonathan Pobst <[email protected]>
* ComboBox.cs: Only do my big sort at the end of AddRange if
	the combobox is actually set to Sorted.

svn path=/trunk/mcs/; revision=136423
2009-06-18 16:39:35 +00:00
Carlos Alberto Cortez d2bfe062d2 2009-06-18 Tom Hindle <[email protected]>
* XplatUIX11.cs: Enabled Text to coexist with custom data formats.
	Fixes #511849.


svn path=/trunk/mcs/; revision=136422
2009-06-18 16:34:59 +00:00
Atsushi Eno 29d6585f14 2009-06-18 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs, HttpReplyChannel.cs :
	  Add cancellation hook for async TryReceiveRequest.


svn path=/trunk/mcs/; revision=136407
2009-06-18 14:16:07 +00:00
Atsushi Eno 8a843924f5 2009-06-18 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs, HttpListenerManager.cs :
	  slightly improved BuildChannelListener().
	  Implement OnAbort() and differentiate it from OnClose().


svn path=/trunk/mcs/; revision=136406
2009-06-18 14:09:07 +00:00
Atsushi Eno 02f37acb53 2009-06-18 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : remove NIE stubs.


svn path=/trunk/mcs/; revision=136404
2009-06-18 12:52:55 +00:00
Atsushi Eno 93bf74e8a3 2009-06-18 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs : simple async delegate calls here too.


svn path=/trunk/mcs/; revision=136402
2009-06-18 11:57:49 +00:00
Carlos Alberto Cortez 01ca9db599 2009-06-18 Carlos Alberto Cortez <[email protected]>
* ListBox.cs: When calculating the scrollbars for non MultiColumn
	mode, force the use of the horizontal scrollbar only if
	ScrollAlwaysVisible is true as well.
	Fixes #513029.


svn path=/trunk/mcs/; revision=136399
2009-06-18 11:48:59 +00:00
Marek Habersack b67b99a9fd Another browscap.ini.diff update
svn path=/trunk/mcs/; revision=136394
2009-06-18 11:15:18 +00:00
Marek Habersack 8bd1522c63 2009-06-18 Marek Habersack <[email protected]>
* data/browscap.ini: applied Mono modifications to the upstream
	version. Fixes three tests failing in System.Web. Fixes bug #513965
	Added ecmascriptversion, msdomversion and w3cdomversion to the IE
	8.0 entry. Fixes bug #513965

svn path=/trunk/mono/; revision=136393
2009-06-18 11:12:26 +00:00
Marek Habersack 1892bdd0d2 2009-06-18 Marek Habersack <[email protected]>
* data/browscap.ini: applied Mono modifications to the upstream
	version. Fixes three tests failing in System.Web.

svn path=/trunk/mono/; revision=136392
2009-06-18 11:04:45 +00:00
Marek Habersack 7685e019c2 Added Test/ModelProviders/DynamicDataSortableAttribute.cs
svn path=/trunk/mcs/; revision=136387
2009-06-18 09:21:14 +00:00
Marek Habersack 84040b65ab 2009-06-18 Marek Habersack <[email protected]>
* MetaColumnTest.cs: added test for SortExpression

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

	* DynamicDataContainerColumnProvider.cs: added setting of
	IsSortable

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

	* Test/DataSource/DynamicDataColumn.cs: added Sortable property.

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

	* TestDataColumn.cs: mark the column as sortable based on value of
	the DynamicDataSortable attribute.

	* Baz.cs: added a sortable column.

svn path=/trunk/mcs/; revision=136386
2009-06-18 09:21:04 +00:00
Marek Habersack 649e0eb752 2009-06-18 Marek Habersack <[email protected]>
* UnsafeNativeMethods.cs: added import of the old sqlite3_open
	function to make code compatible with sqlite3 versions older than
	3.5.0

	* SQLite3.cs: added a workaround for systems which come with
	sqlite3 older than 3.5.0 (which added new call sqlite3_open_v2,
	used in this version of Mono.Data.Sqlite). If this function is not
	found in the native shared library, the old sqlite3_open is used
	as fallback.

svn path=/trunk/mcs/; revision=136384
2009-06-18 08:48:16 +00:00
Marek Habersack 8553b393d0 2009-06-18 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: added comparison with the
	.NET-generated serialization result in TestDeserialize and
	TestDeserializeTypeResolver tests.

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

	* ListViewTest.cs: hushed the output in ListView_Edit ()

svn path=/trunk/mcs/; revision=136383
2009-06-18 08:35:50 +00:00
Marek Habersack 38a1145d2d 2009-06-18 Marek Habersack <[email protected]>
* browscap.ini.diff: updated to match the latest upstream
	version.

svn path=/trunk/mcs/; revision=136382
2009-06-18 08:35:39 +00:00
Rodrigo Kumpera ff24243a18 2009-06-18 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for method header.

	* assembly-with-methods.cs: Fill in more methods
	with EH tables.

svn path=/trunk/mono/; revision=136372
2009-06-18 03:14:56 +00:00
Rodrigo Kumpera 19b25e081a 2009-06-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Added more header verification code.
	Now only EH clauses are missing.

svn path=/trunk/mono/; revision=136371
2009-06-18 03:14:43 +00:00
Geoff Norton 05bb2bb469 2009-06-17 Geoff Norton <[email protected]>
* aot-compiler.c: Ensure we dont try to close a null dwarf writer.

svn path=/trunk/mono/; revision=136367
2009-06-18 02:23:14 +00:00
Jonathan Pobst 86afac79d2 2009-06-17 Jonathan Pobst <[email protected]>
* ComboBox.cs: When using AddRange on a sorted combobox, don't
	try to use our inefficient sorted insert method, just append
	it and sort the whole thing at then end.
	[Fixes bug #511247]

svn path=/trunk/mcs/; revision=136358
2009-06-17 21:27:10 +00:00
Zoltan Varga 2fd570b20e 2009-06-17 Zoltan Varga <[email protected]>
* dwarfwriter.c (mono_dwarf_writer_create): Add an 'appending' parameter
	to control whenever the dwarf writer is in xdebug or aot mode.
	(emit_class_dwarf_info): Use a separate abbrev for structures without
	children.

	* aot-compiler.c: Pass the appending parameter to
	mono_dwarf_writer_create ().

svn path=/trunk/mono/; revision=136353
2009-06-17 21:13:52 +00:00
Massimiliano Mantione 58463ff3a4 Only emit initial stack snippet if we are tracking stacks.
svn path=/trunk/mono/; revision=136350
2009-06-17 20:01:56 +00:00
Marek Safar 08066c573d Add more tests.
svn path=/trunk/mcs/; revision=136345
2009-06-17 18:58:34 +00:00
Marek Safar 0c2bb8157f 2009-06-17 Marek Safar <[email protected]>
A fix for bug #514096
	* class.cs: Allow IntPtr/UIntPtr fields to be volatile.


svn path=/trunk/mcs/; revision=136342
2009-06-17 18:57:33 +00:00
Sebastien Pouliot f77c706aeb 2009-06-17 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: Fix BaseAddress and remove dual base[Address|
	String] variables.


svn path=/trunk/mcs/; revision=136341
2009-06-17 18:47:44 +00:00
Marek Safar 07585e2bdf Error message updated
svn path=/trunk/mcs/; revision=136340
2009-06-17 18:47:36 +00:00
Marek Safar eb418142df 2009-06-17 Marek Safar <[email protected]>
* statement.cs (Switch): Fixed error message to reflect 2.0 changes.


svn path=/trunk/mcs/; revision=136339
2009-06-17 18:47:16 +00:00
Marek Safar 64cfafb7e9 2009-06-17 Marek Safar <[email protected]>
* Makefile: Keep at least one target usable for me.


svn path=/trunk/mcs/; revision=136337
2009-06-17 18:16:52 +00:00
Marek Safar d127b29339 New tests.
svn path=/trunk/mcs/; revision=136336
2009-06-17 18:15:19 +00:00
Marek Safar e2078b6a8b 2009-06-17 Marek Safar <[email protected]>
* expression.cs: The first multi-dimensional array nested array
	initializers was not checked.


svn path=/trunk/mcs/; revision=136335
2009-06-17 18:14:44 +00:00
Gonzalo Paniagua Javier 27663f0d80 2009-06-17 Gonzalo Paniagua Javier <[email protected]>
* BrowserCapsUpdater.cs: update URLs.


svn path=/trunk/mcs/; revision=136324
2009-06-17 15:36:05 +00:00
Gonzalo Paniagua Javier 44c7c6ec64 2009-06-17 Gonzalo Paniagua Javier <[email protected]>
* EndPointListener.cs: call CheckIfRemove() after removing a regular
	prefix. Fixes bug #513849.
	* EndPointManager.cs: make sure we use the right lock when one prefix
	of a collection fails to be added and we need to remove all of the
	prefixes.
	Clear the ip_to_endpoints hashtable if there are no more prefixes
	listening on that address.


svn path=/trunk/mcs/; revision=136320
2009-06-17 15:24:03 +00:00
Gonzalo Paniagua Javier c6ac636350 updated browscap.ini
svn path=/trunk/mono/; revision=136317
2009-06-17 15:03:23 +00:00
Marek Safar e7299fda56 New tests.
svn path=/trunk/mcs/; revision=136315
2009-06-17 14:57:59 +00:00
Marek Safar 484d2078d4 2009-06-17 Marek Safar <[email protected]>
A fix for bug #513400
	* nullable.cs (EmitEquality): Operands emit could be simplified for
	built-in types when we now emit user operators differently.
	

svn path=/trunk/mcs/; revision=136314
2009-06-17 14:49:23 +00:00
Zoltan Varga 8858f65fc0 2009-06-17 Zoltan Varga <[email protected]>
* runtime-invoke.cs: Add test for sharing i8/u8 return values.

svn path=/trunk/mono/; revision=136307
2009-06-17 14:23:23 +00:00
Zoltan Varga 1ad6ecd871 2009-06-17 Zoltan Varga <[email protected]>
* marshal.c (get_runtime_invoke_type): Don't share primitive types
	for return values.

svn path=/trunk/mono/; revision=136306
2009-06-17 14:23:16 +00:00
Zoltan Varga a4624664c7 2009-06-17 Zoltan Varga <[email protected]>
* branch-opts.c (mono_merge_basic_blocks): Fix the case when bbn
	falls through to its next bblock. Fixes #513931.

	* iltests.il: Add a test.

svn path=/trunk/mono/; revision=136303
2009-06-17 13:49:24 +00:00
Geoff Norton 4881e6bfb4 2009-06-16 Geoff Norton <[email protected]>
* include/private/gcconfig.h:  Disable static scanning on this platform
        * misc.c: Enable platform-specific disabling of static scanning

svn path=/trunk/mono/; revision=136280
2009-06-17 01:13:07 +00:00
Marek Habersack efcfa151e4 2009-06-17 Marek Habersack <[email protected]>
* MetaColumnTest.cs: added another data context.
    	Added tests for EntityTypeProperty, HtmlEncode, IsBinaryData,
    	IsCustomProperty, IsFloatingPoint, IsForeignKeyComponent,
    	IsGenerated, IsInteger, IsLongString, IsPrimaryKey, IsReadOnly,
    	IsString, MaxLength, Model, Name, NullDisplayText, Provider,
    	RequiredErrorMessage, Scaffold, Table, TypeCode, UIHint.

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

    	* DynamicDataStringLengthAttribute.cs: added

    	* DynamicDataContainerColumnProvider.cs: implemented
    	EntityTypeProperty, IsCustomProperty, IsGenerated, MaxLength.

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

    	* MetaTable.cs: fixed Scaffold implementation.
    	Added internal ScaffoldAllTables property.

    	* MetaColumn.cs: fixed TypeCode, MaxLength, Scaffold, UIHint
    	implementations.
    	Implemented IsLongString, IsBinaryData, IsReadOnly,
    	NullDisplayText, RequiredErrorMessage

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

    	* System.Web.DynamicData_test.dll.sources: added
    	Common/FooNoScaffold.cs, Common/TestDataContext2.cs,
    	ModelProviders/DynamicDataStringLengthAttribute.cs

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

    	* MetaColumnTest.cs: added

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

    	* TestDataContext.cs: added new tables

    	* BazColumnAttributes.cs, BazDataTypeDefaultTypes.cs,
    	FooWithMetadataType.cs: added

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

    	* MetaColumn.cs: implemented ApplyFormatInEditMode, Attributes,
    	ConvertEmptyStringToNull, DataFormatString, DataTypeAttribute,
    	DefaultValue, Description, DisplayName

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

    	* MetaTable.cs: use MetaModel.GetTypeDescriptor to retrieve
    	associated entity type attributes.

    	* MetaModel.cs: implemented registration of type metadata
    	cache. Metadata is provided by a set of TypeDescriptionProvider
    	instances (if ContextConfig is present for given model provider)
    	or by default type description provider (note that this
    	functionality is not implemented in
    	System.ComponentModel.TypeDescriptor yet!).

svn path=/trunk/mcs/; revision=136272
2009-06-17 00:08:11 +00:00
Rodrigo Kumpera af4f5a4908 2009-06-16 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for method header.

	* assembly-with-methods.cs: Add some body to
	make for some fat headers.

svn path=/trunk/mono/; revision=136268
2009-06-16 23:08:25 +00:00
Rodrigo Kumpera 7c37df6008 2009-06-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Initial method header verification.

svn path=/trunk/mono/; revision=136267
2009-06-16 23:08:16 +00:00
Rodrigo Kumpera 0e92d2d781 2009-06-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_import_table): The IAT contents
	might end been patched by the windows DL when running with
	coree enabled.

svn path=/trunk/mono/; revision=136266
2009-06-16 23:08:01 +00:00
Zoltan Varga e467a77c94 2009-06-17 Zoltan Varga <[email protected]>
* dwarfwriter.c (mono_dwarf_writer_emit_base_info): Emit some line number
	infor even if emit_line is FALSE, as the apple linker seems to require it.

svn path=/trunk/mono/; revision=136265
2009-06-16 23:04:20 +00:00
Zoltan Varga d4a5c94aa6 2009-06-17 Zoltan Varga <[email protected]>
* image-writer.c (asm_writer_emit_symbol_diff): Call get_label ().

svn path=/trunk/mono/; revision=136264
2009-06-16 22:42:49 +00:00
Zoltan Varga 4b8ae8581f 2009-06-17 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_cie): Emit a separate symbol for the cie start, as
	gcc does.
	(emit_fde): Ditto.

svn path=/trunk/mono/; revision=136263
2009-06-16 22:32:23 +00:00
Gonzalo Paniagua Javier 96d75514d1 typo
svn path=/trunk/mono/; revision=136261
2009-06-16 22:17:04 +00:00
Miguel de Icaza 48b2136fd5 Up
svn path=/trunk/mono/; revision=136248
2009-06-16 20:02:47 +00:00
Andrés G. Aragoneses df51563624 * tuner/Mono.Tuner/MoonlightA11yProcessor.cs: GLibSharp uses
Activator.CreateInstance for *Adapter classes, so we need to have an
exception here for these ctors (to avoid MissingMethodExceptions).

svn path=/trunk/mcs/; revision=136245
2009-06-16 19:32:00 +00:00
Marek Safar 58a9543935 New test.
svn path=/trunk/mcs/; revision=136244
2009-06-16 19:27:35 +00:00
Marek Safar 4d3ef7ffae 2009-06-16 Marek Safar <[email protected]>
* ecore.cs: Report inaccessible delegate methods correctly.


svn path=/trunk/mcs/; revision=136243
2009-06-16 19:27:15 +00:00
Marek Safar 4dfa6d0c73 New tests.
svn path=/trunk/mcs/; revision=136236
2009-06-16 17:42:16 +00:00
Marek Safar f6fdbdb337 New tests.
svn path=/trunk/mcs/; revision=136235
2009-06-16 17:41:32 +00:00
Marek Safar a5f6fb9ca2 2009-06-16 Marek Safar <[email protected]>
* parameter.cs, expression.cs, ecore.cs, class.cs, delegate.cs,
	cs-parser.jay: Implemented C# 4.0 optional parameters.


svn path=/trunk/mcs/; revision=136234
2009-06-16 17:41:06 +00:00
Marek Safar f4cdf905db 2009-06-16 Marek Safar <[email protected]>
* driver.cs: Removed broken DefineManifestResource.


svn path=/trunk/mcs/; revision=136233
2009-06-16 17:21:16 +00:00
Raja R Harinath 0efe0d5294 Improve profile test coverage
* errors/Makefile (test-local): Empty out.
(run-test-local): Remove $(TEST_SUPPORT_FILES).
* tests/Makefile (test-local): Empty out.

svn path=/trunk/mcs/; revision=136231
2009-06-16 17:08:30 +00:00
Raja R Harinath 8075bec6b7 * Makefile [net_2_0_bootstrap]: Don't explicitly mention net_1_1.
Use $(BOOTSTRAP_PROFILE) instead.

svn path=/trunk/mcs/; revision=136230
2009-06-16 16:21:39 +00:00
Raja R Harinath 3fe2af257d * configure.in (--with-profile2): Simplify slightly.
(--with-profile4, --with-moonlight): Likewise.

svn path=/trunk/mono/; revision=136229
2009-06-16 16:16:50 +00:00
Carlos Alberto Cortez b9d41b0288 2009-06-16 Carlos Alberto Cortez <[email protected]>
* ToolBar.cs: Expose as internal the code used to show a dropdown menu.
	* PrintPreviewDialog.cs: Handle the down/up arrow keys for our
	DropDown element.
	Fixes #509152.


svn path=/trunk/mcs/; revision=136225
2009-06-16 15:15:29 +00:00
Marek Habersack 9743d97ec8 2009-06-16 Marek Habersack <[email protected]>
* RouteValueDictionaryExtensions.cs: do not compile if
	SYSTEMCORE_DEP is not defined

	* PatternParser.cs: if SYSTEMCORE_DEP is not defined, do not
	compile parts which require RouteValueDictionaryExtensions.

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

	* Makefile (LIB_MCS_FLAGS): define SYSTEMCORE_DEP

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

	* DynamicDataManager.cs, DynamicDataExtensions.cs: use new
	DataBoundControl.DataSourceObject instead of
	InternalGetDataSource

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

	* Makefile: warn if the 4.0 assembly is compiled without
	System.Core

svn path=/trunk/mcs/; revision=136222
2009-06-16 13:48:30 +00:00
Atsushi Eno 91c8ac7b5c 2009-06-16 Atsushi Enomoto <[email protected]>
* DispatchRuntimeTest.cs : add reasonable timeout and close client
	  appropriately. Objects are disposed in different ways than .NET.
	  Do not expect things automatically disposed as just time goes by.


svn path=/trunk/mcs/; revision=136221
2009-06-16 13:34:26 +00:00
Atsushi Eno 36465d4ee2 2009-06-16 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs : cosmetic dependency reduction on listener.


svn path=/trunk/mcs/; revision=136220
2009-06-16 13:31:15 +00:00
Atsushi Eno 13cb841a01 2009-06-16 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : cosometic simplification.


svn path=/trunk/mcs/; revision=136219
2009-06-16 13:30:06 +00:00
Atsushi Eno 76a2d59775 2009-06-16 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : Fixed timeout handling. It was causing
	  infinite block in 2.0 profile.


svn path=/trunk/mcs/; revision=136218
2009-06-16 13:28:10 +00:00
Marek Safar 2af5e06322 2009-06-16 Marek Safar <[email protected]>
* driver.cs: Close resource handlers.


svn path=/trunk/mcs/; revision=136205
2009-06-16 08:23:50 +00:00
Andrés G. Aragoneses aa75a48a07 2009-06-16 Andrés G. Aragoneses <[email protected]>
* WebConnection.cs: propagate the exception to the request.    
        * WebException.cs: new internal ctor.
        * HttpWebRequest.cs: use new ctor to encapsulate the innerException.
        Fixes #323452.

2009-06-16  Andrés G. Aragoneses  <[email protected]>

        * WebRequestTest.cs: Drop NotWorking attrib, more accurate tests.


svn path=/trunk/mcs/; revision=136198
2009-06-16 04:21:58 +00:00
Ivan Zlatev 677f6012db 2009-06-16 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Scrolling fixes.
	[Fixes bug #512816]

svn path=/trunk/mcs/; revision=136193
2009-06-16 01:55:25 +00:00
Marek Habersack 2ad931f695 2009-06-16 Marek Habersack <[email protected]>
* HtmlHeadBuilder.cs: use faster String.Compare overloads.

	* HtmlHead.cs: implemented 4.0 properties Description and
	Keywords.

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

	* IPersistedSelector.cs: removed AspNetHostingPermission
	attributes from the 4.0 profile.

	* IDataBoundControl.cs, IDataBoundItemControl.cs,
	IDataBoundListControl.cs, IFieldControl.cs: added

	* DetailsView.cs: control implements 4.0 IDataBoundItemControl
	interface.

	* DataBoundControl.cs: implemented 4.0 property DataSourceObject
	and made the InternalPerformDataBinding method internal for the
	4.0 profile.

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

	* net_4_0_System.Web.dll.sources:
	Added
	System.Web.UI.WebControls/IDataBoundControl.cs,
	System.Web.UI.WebControls/IDataBoundItemControl.cs,
	System.Web.UI.WebControls/IDataBoundListControl.cs,,
	System.Web.UI.WebControls/IFieldControl.cs

svn path=/trunk/mcs/; revision=136192
2009-06-16 01:46:33 +00:00
Marek Habersack 1e9b3c88e0 2009-06-16 Marek Habersack <[email protected]>
* net_4_0_System.Web.dll.sources:
	Added System.Web.Routing/PageRouteHandler.cs

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

	* PageRouteHandler.cs: added

svn path=/trunk/mcs/; revision=136187
2009-06-16 00:15:48 +00:00
Ivan Zlatev ffacdb06e9 2009-06-16 Ivan N. Zlatev <[email protected]>
* DataGridViewTest.cs: Duplicate test label fix.

svn path=/trunk/mcs/; revision=136186
2009-06-15 23:58:56 +00:00
Ivan Zlatev 3678383565 2009-06-16 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and
	optimize for batch adding rows.

svn path=/trunk/mcs/; revision=136185
2009-06-15 23:58:48 +00:00
Ivan Zlatev 3b48d6d3bd 2009-06-16 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Avoid calling ReBind twice during the initial data
	binding.
	[Fixes bug #512807]

svn path=/trunk/mcs/; revision=136184
2009-06-15 23:58:31 +00:00
Ivan Zlatev c24fdfcd31 2009-06-16 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Suppress invalidation during data binding.
	[Fixes part of bug #512807]

svn path=/trunk/mcs/; revision=136183
2009-06-15 23:57:51 +00:00
Marek Habersack c3de939907 2009-06-16 Marek Habersack <[email protected]>
* net_4_0_System.Web.Routing.dll.sources: added. In the 4.0
	profile all classes are compiled into System.Web,
	System.Web.Routing becomes an empty assembly.

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

	* net_4_0_System.Web.Abstractions.dll.sources: added. In the 4.0
	profile all classes are compiled into System.Web,
	System.Web.Abstractions becomes an empty assembly.

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

	* Decorated all classes with the TypeForwardedFrom attribute for
	the 4.0 profile.

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

	* Decorated all classes with the TypeForwardedFrom attribute for
	the 4.0 profile.

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

	* net_4_0_System.Web.dll.sources: added. System.Web.Routing and
	System.Web.Abstractions are part of System.Web.dll in the 4.0
	profile.

svn path=/trunk/mcs/; revision=136182
2009-06-15 23:57:37 +00:00
Zoltan Varga 8a589623e4 2009-06-16 Zoltan Varga <[email protected]>
* StringTest.cs: Fix make check.

svn path=/trunk/mcs/; revision=136177
2009-06-15 22:36:55 +00:00
Robert Jordan 55bb3a5122 2009-06-14 Robert Jordan <[email protected]>
* ScriptHandlerFactory.cs: handle precompiled web services.


svn path=/trunk/mcs/; revision=136163
2009-06-15 20:34:46 +00:00
Miguel de Icaza c4aa103e48 2009-06-15 Miguel de Icaza <[email protected]>
* configure.in: Changed the default to not build the 4.0 profile
	unless explicitly enabled.

svn path=/trunk/mono/; revision=136155
2009-06-15 19:27:36 +00:00
Carlos Alberto Cortez dcedf446a9 2009-06-15 Carlos Alberto Cortez <[email protected]>
* PrintPreviewDialog.cs: Tune the navigation among the buttons and
	controls that are part of our ToolBar, so we can mimic the behaviour
	observed in .Net, by handling also the arrow keys and doing the
	preprocess for them too.
	Fixes the remaining bits of #509142.


svn path=/trunk/mcs/; revision=136143
2009-06-15 17:41:45 +00:00
Miguel de Icaza 387c82113c 2009-06-15 Miguel de Icaza <[email protected]>
* MonoTODOAttribute.cs: Thin diet, no point in having virtual
	methods and overrides that do the same thing.

svn path=/trunk/mcs/; revision=136139
2009-06-15 16:21:08 +00:00
Gonzalo Paniagua Javier 9e79c42076 2009-06-15 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: for unknown methods, always send the request once
	we are connected even if there's no writeStream. Fixes bug #513087.


svn path=/trunk/mcs/; revision=136136
2009-06-15 15:37:55 +00:00
Rodrigo Kumpera 59dfb9a649 2009-06-15 Rodrigo Kumpera <[email protected]>
* load-exceptions.cs class.cs: Add regression test for #508487.

	* t-missing.cs: Add nested type.

svn path=/trunk/mono/; revision=136135
2009-06-15 15:25:08 +00:00
Rodrigo Kumpera 495f5d04f9 2009-06-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_from_typeref): If the enclosing type is not
	found return null instead of crashing. Fixes #508487.

svn path=/trunk/mono/; revision=136134
2009-06-15 15:24:59 +00:00
Atsushi Eno 440ba3208d 2009-06-15 Atsushi Enomoto <[email protected]>
* ReaderWriterLockSlim.cs : fix deadlock when entered
          read lock -> entered writer lock -> exited writer lock
          -> exited read lock and then entered reader lock.
          Fixed bug #512485, patch by Kazuki Oikawa.

        * ReaderWriterLockSlimTest.cs : test for bug #512485, by
          Kazuki Oikawa.


svn path=/trunk/mcs/; revision=136109
2009-06-15 10:27:41 +00:00
Zoltan Varga 5d0486fb4a 2009-06-15 Zoltan Varga <[email protected]>
* CMakeLists.txt: Add mips support.

svn path=/trunk/mono/; revision=136104
2009-06-15 09:38:18 +00:00
Zoltan Varga 6acca860c1 2009-06-15 Zoltan Varga <[email protected]>
* gc_wrapper.h: Disable thread local alloc on mips.

svn path=/trunk/mono/; revision=136103
2009-06-15 09:29:01 +00:00
Zoltan Varga a37636424a 2009-06-15 Zoltan Varga <[email protected]>
* exceptions-mips.c (mono_arch_get_throw_exception_by_name): Fix the
	mips build.

svn path=/trunk/mono/; revision=136102
2009-06-15 09:28:29 +00:00
Atsushi Eno 85b8e6cb11 2009-06-15 Atsushi Enomoto <[email protected]>
* Environment.cs : bump corlib version.

	* Normalization.cs : For NFC and NFKC, IsNormalized() was not working
	  enough to check composed characters. It's not possible without
	  the actual composition, so just call Normalize() and compare them.
	  In Normalize() mapping helper didn't pick correct map index since
	  the table for index stores index for "uncompressed" numbers.
	* NormalizationTableUtil.cs : updated to the latest UCD.
	* Makefile : to build test, source file must be downloaded too.

	* StringTest.cs : added string normalization test.


svn path=/trunk/mcs/; revision=136100
2009-06-15 08:57:18 +00:00
Atsushi Eno 0191763182 2009-06-15 Atsushi Enomoto <[email protected]>
* normalization-tables.h : updated to the latest unicode charcter
	  data.
	* appdomain.c : bump corlib version.


svn path=/trunk/mono/; revision=136099
2009-06-15 08:56:09 +00:00
Marek Habersack 1fb905ec9d 2009-06-15 Marek Habersack <[email protected]>
* AspGenerator.cs: CreateRootBuilder quits when root builder
	already exist. This can happen when recursively parsing an include
	file. Fixes bug #512028

svn path=/trunk/mcs/; revision=136096
2009-06-15 08:28:44 +00:00
Marek Habersack 1d21e73850 2009-06-15 Marek Habersack <[email protected]>
* HttpCachePolicy.cs: SetHeaders adds max-age when MaxAge is set
	to TimeSpan.Zero by calling SetMaxAge. Fixes bug #513000

svn path=/trunk/mcs/; revision=136093
2009-06-15 08:02:03 +00:00
Marek Habersack 563da7386f 2009-06-15 Marek Habersack <[email protected]>
* TemplateParser.cs: AddAssembliesInBin (1.1 profile) tries to
	load every assembly in order to see if it's a valid one. All bad
	dll image errors are silently ignored. Fixes bug #315816

svn path=/trunk/mcs/; revision=136089
2009-06-15 07:28:44 +00:00
Zoltan Varga f498394925 2009-06-14 Zoltan Varga <[email protected]>
* scripts/CMakeLists.txt: New file.

svn path=/trunk/mono/; revision=136081
2009-06-14 17:02:28 +00:00
Zoltan Varga 76a7dbe0ee 2009-06-14 Zoltan Varga <[email protected]>
* samples/CMakeLists.txt: New file, currently empty.

svn path=/trunk/mono/; revision=136079
2009-06-14 15:31:54 +00:00
Zoltan Varga 5e7b2478a9 2009-06-14 Zoltan Varga <[email protected]>
* class.c (mono_class_from_name): Fix support for assembly references
	in the EXPORTEDTYPE table. Fixes #511704.

svn path=/trunk/mono/; revision=136078
2009-06-14 11:42:12 +00:00
Geoff Norton 1e09edf150 2009-06-13 Geoff Norton <[email protected]>
* domain.c: Ensure that mono_domain_assembly_open actually opens the
        assembly in the target domain.

svn path=/trunk/mono/; revision=136068
2009-06-13 17:01:09 +00:00
Zoltan Varga 9bc4055673 2009-06-13 Zoltan Varga <[email protected]>
* mini.h (struct MonoBasicBlock): Add 'has_jump_table' and
	'has_call_handler' fields.

	* method-to-ir.c (mono_method_to_ir): Set them if needed.

	* branch-opts.c (mono_merge_basic_blocks): Avoid iterating through the
	first bblock if not needed. Fixes #512790.

svn path=/trunk/mono/; revision=136063
2009-06-13 10:52:48 +00:00
Bill Holmes 9e3a325d75 2009-06-12 Bill Holmes <[email protected]>
* Variant.cs (GetValue):  Changing the bool case to use the short value.
	  This is to avoid junk in the high word.

	Contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=136044
2009-06-12 21:28:26 +00:00
Andreia Gaita 5d4cb6c935 * config.in: add libcups dllmap entry
svn path=/trunk/mono/; revision=136039
2009-06-12 21:25:43 +00:00
Robert Jordan c7ab76d04d 2009-06-12 Robert Jordan <[email protected]>
* cominterop.c (cominterop_get_ccw): Increment mspec's SizeParamIndex
	because "this" of the managed signature has become an
	ordinary parameter in the unmanaged signature.


svn path=/trunk/mono/; revision=136029
2009-06-12 20:41:58 +00:00
Andrés G. Aragoneses 8a0f12baf5 2009-06-12 Andrés G. Aragoneses <[email protected]>
* AssemblyInfo.cs: Changing the public key, as we now use 
        mono-uia.snk.


svn path=/trunk/mcs/; revision=136025
2009-06-12 18:57:02 +00:00
Carlos Alberto Cortez 76e696b3e7 2009-06-12 Carlos Alberto Cortez <[email protected]>
* ToolBar.cs: Expose the current item as internal.
	* PrintPreviewDialog.cs: Tune the TabStop property for
	PrintPreviewControl/ToolBar so we match the .net scenario regarding
	Tab navigation. Also implement support to navigate throughout the
	items in the ToolBar.
	Fixes #509142.


svn path=/trunk/mcs/; revision=136020
2009-06-12 18:06:34 +00:00
Jerri Maine 6f61639d77 Add marcos for coding two byte SIMD/SSE opcodes. Added comments to help tell the different types of SSE code gen marcos appart.
svn path=/trunk/mono/; revision=136018
2009-06-12 17:33:11 +00:00
Atsushi Eno 795d81a430 2009-06-12 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs : no need for NIE at OnAbort() (at least so far).


svn path=/trunk/mcs/; revision=136007
2009-06-12 15:10:15 +00:00
Ankit Jain 0f3c1ba10e * xbuild/Microsoft.Common.targets (ProjectDir): Fix typo.
svn path=/trunk/mcs/; revision=136002
2009-06-12 14:43:29 +00:00
Ankit Jain 1e3a5c3ef6 * xbuild/Microsoft.Common.targets (IntermediateAssembly): Change to
an Item list to match msbuild.
* xbuild/Microsoft.CSharp.targets (IntermediateAssembly): Update for
above changes.

svn path=/trunk/mcs/; revision=136001
2009-06-12 14:04:53 +00:00
Ankit Jain 6cd0309d85 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Fix bug #512535.
	* ExpressionCollection.cs (ConvertToITaskItemArray): Whitespace around a
	itemref is allowed if the prev/next element is ";".

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

	* Items.cs (TestItemsInTarget3a): Add another case for valid whitespace
	around an item ref.

svn path=/trunk/mcs/; revision=136000
2009-06-12 14:04:06 +00:00
Marek Habersack acb327adb6 Updated test sources list
svn path=/trunk/mcs/; revision=135998
2009-06-12 13:15:23 +00:00
Marek Habersack 5776009840 2009-06-12 Marek Habersack <[email protected]>
* MetaTableTest.cs: tests use single data model provider now.
	Implemented tests for IsReadOnly, ListActionPath, Model, Name,
	Provider, Scaffold, SortColumn, SortDescending, ToString.
	Fixed ForeignKeyColumnNames test.

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

	* TestDataContainer.cs: GetTables uses an object of the associated
	data type to create table collection.

	* TestDataColumn.cs: foreign key columns are determined using a
	custom attribute instead of a name now. This makes it possible to
	specify which table.column they are associated with.

	* FooDisplayColumnAttribute.cs: changed sortDescending to true in
	class attributes.

	* AssociatedBar.cs, AssociatedFoo.cs, FooEmptySortColumn.cs,
	FooMisnamedSortColumn.cs, FooNoScaffold.cs, FooReadOnly.cs,
	ITestDataContext.cs, TestDataContext.cs: added

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

	* MetaTable.cs: implemented correct detection of foreign key
	columns.
	Implemented IsReadOnly, SortColumn, SortDescending.

svn path=/trunk/mcs/; revision=135997
2009-06-12 13:14:49 +00:00
Jb Evain d0331b90b1 2009-06-12 Jb Evain <[email protected]>
* mcs.1: update the /platform information.


svn path=/trunk/mono/; revision=135992
2009-06-12 12:42:17 +00:00
Jb Evain 514337e0fa 2009-06-12 Jb Evain <[email protected]>
* gtest-449.cs
	* gtest-450.cs:
		new tests for the /platform support.


svn path=/trunk/mcs/; revision=135991
2009-06-12 12:41:42 +00:00
Jb Evain 1903e0a65b 2009-06-12 Jb Evain <[email protected]>
* rootcontext.cs: add a Platform field.
	* driver.cs: handle /platform.
	* codegen.cs: pass the proper flags according to
	the platform when saving the assembly.


svn path=/trunk/mcs/; revision=135990
2009-06-12 12:41:01 +00:00
Jb Evain 2dc6ad8ed3 2009-06-12 Jb Evain <[email protected]>
* AssemblyBuilder.cs (Save): throw a NotImplementedException
	when asked to emit a pe32+ binary for a AMD64 or IA64
	specific assembly.


svn path=/trunk/mcs/; revision=135989
2009-06-12 12:39:17 +00:00
Marek Safar 9f47cd7021 Support all versions in mcs
svn path=/trunk/mcs/; revision=135981
2009-06-12 10:34:32 +00:00
Atsushi Eno f9e5916bca 2009-06-12 Atsushi Enomoto <[email protected]>
* ChannelDispatcherTest.cs : make sure to close service host,
	  within rational TimeSpan.


svn path=/trunk/mcs/; revision=135980
2009-06-12 10:09:59 +00:00
Atsushi Eno 74e481c954 2009-06-12 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : do not give up releasing further channel
	   dispatchers when one of them threw an error. Use strict timeout.


svn path=/trunk/mcs/; revision=135979
2009-06-12 10:08:47 +00:00
Atsushi Eno bf5748c3d7 2009-06-12 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
	  more careful close to avoid NRE.


svn path=/trunk/mcs/; revision=135978
2009-06-12 10:06:54 +00:00
Atsushi Eno 2fe81ef0a3 2009-06-12 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs : do not Close() more than once (though
	  it is allowed to call it twice, we don't reject it; just ignore).


svn path=/trunk/mcs/; revision=135977
2009-06-12 09:58:35 +00:00
Atsushi Eno 2c854f4100 2009-06-12 Atsushi Enomoto <[email protected]>
* CustomBinding.cs : copy timeouts from argument binding in copy ctr.


svn path=/trunk/mcs/; revision=135975
2009-06-12 09:12:20 +00:00
Marek Habersack 8edbc122b0 2009-06-12 Marek Habersack <[email protected]>
* BuildManager.cs: avoid a NREX in FixVirtualPath

svn path=/trunk/mcs/; revision=135970
2009-06-12 07:55:27 +00:00
Zoltan Varga ec0376fb81 2009-06-12 Zoltan Varga <[email protected]>
* ParameterInfoTest.cs: Add a test for #512330.

svn path=/trunk/mcs/; revision=135966
2009-06-12 00:52:45 +00:00
Zoltan Varga 63169b2e80 2009-06-12 Zoltan Varga <[email protected]>
* ParameterInfo.cs (DefaultValue): Add support for decimals, their default
	value is encoded using a custom attribute.

svn path=/trunk/mcs/; revision=135965
2009-06-12 00:52:37 +00:00
Zoltan Varga 3eb7b62eb7 2009-06-12 Zoltan Varga <[email protected]>
* class-internals.h (struct _MonoGenericContainer): Add an 'image'
	field for owner-less generic containers.

	* reflection.c (mono_reflection_initialize_generic_parameter): Set the
	image field of the owner-less generic containers created here.

	* metadata.c (mono_metadata_load_generic_params): Ditto, the
	contain is ownerless until the caller sets its owner.

	* metadata.c (type_in_image): Handle owner-less generic containers
	correctly.

svn path=/trunk/mono/; revision=135964
2009-06-11 23:44:21 +00:00
Gonzalo Paniagua Javier c95c37c8ca 2009-06-11 Gonzalo Paniagua Javier <[email protected]>
* ContentControlBuilderInternal.cs: detect missing
	ContentPlaceHolderID attribute when parsing instead of throwing a
	nullref later on.


svn path=/trunk/mcs/; revision=135960
2009-06-11 22:17:24 +00:00
Gonzalo Paniagua Javier 5fcada6106 2009-06-11 Gonzalo Paniagua Javier <[email protected]>
* HtmlTitle.cs: HtmlTitle allows children that are not
	LiteralControls. Fixes bug #511882.


svn path=/trunk/mcs/; revision=135958
2009-06-11 22:14:41 +00:00
Zoltan Varga 896fc62990 2009-06-11 Zoltan Varga <[email protected]>
* image.c (mono_image_close): Support debug_assembly_unload for
	dynamic images too.

svn path=/trunk/mono/; revision=135956
2009-06-11 21:57:53 +00:00
Ankit Jain 12ffd389cd * Utilities.cs: New.
* AL.cs, AspNetCompiler.cs, Csc.cs,
SGen.cs, Vbc.cs (ToolName): Append ".bat" when running
on windows.

svn path=/trunk/mcs/; revision=135952
2009-06-11 21:13:30 +00:00
Ankit Jain 1f67b35bb3 * Parameters.cs (.ctor): Use assembly's location to build
path for the default response file.

svn path=/trunk/mcs/; revision=135951
2009-06-11 21:13:11 +00:00
Ankit Jain cf45d232db * Utilities.cs (FromMSBuildPath): Return null if the path contains
"drive:" only on windows.

svn path=/trunk/mcs/; revision=135950
2009-06-11 21:11:58 +00:00
Zoltan Varga 6cb8f74977 2009-06-11 Zoltan Varga <[email protected]>
* reflection.c (add_custom_modifiers): Avoid reading invalid memory.

svn path=/trunk/mono/; revision=135948
2009-06-11 21:07:46 +00:00
Zoltan Varga 3a5363ece9 2009-06-11 Zoltan Varga <[email protected]>
* configure.in: Disable dtrace support if dtrace doesn't support the
	-h option.

svn path=/trunk/mono/; revision=135947
2009-06-11 21:07:36 +00:00
Andrés G. Aragoneses d230bcd86c 2009-06-11 Andrés G. Aragoneses <[email protected]>
* class.c: Fix some typos in comments.


svn path=/trunk/mono/; revision=135946
2009-06-11 19:46:26 +00:00
Zoltan Varga 137110fa16 2009-06-11 Zoltan Varga <[email protected]>
* threads.c (mono_thread_execute_interruption): Avoid creating the
	abort exception object while holding the synch_cs lock.

svn path=/trunk/mono/; revision=135944
2009-06-11 19:13:06 +00:00
Marek Safar 2ef2561a5a New test.
svn path=/trunk/mcs/; revision=135939
2009-06-11 17:01:39 +00:00
Marek Safar 7755c3d7d7 New tests.
svn path=/trunk/mcs/; revision=135938
2009-06-11 17:01:21 +00:00
Marek Safar 31483560fe 2009-06-11 Marek Safar <[email protected]>
* parameter.cs, const.cs, report.cs, cs-parser.jay, attribute.cs:
	Add optional parameters grammar.


svn path=/trunk/mcs/; revision=135937
2009-06-11 16:59:12 +00:00
Atsushi Eno bc5d68a2a4 2009-06-11 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : reject multiple WaitForRequest calls.
	  Temporarily disable HTTP Keep-Alive since it somehow results in
	  wrong reuse of connection (shown as NRE in HttpConnection).
	  Make sure to close RequestContext which was created from it.
	* HttpRequestContext.cs : simplify.


svn path=/trunk/mcs/; revision=135921
2009-06-11 09:33:54 +00:00
Marek Habersack 57950484e9 2009-06-11 Marek Habersack <[email protected]>
* PageCompiler.cs: if generating code to assign output cache
	parameters, use special case for generating OutputCacheLocation
	enum reference. Fixes bug #512037

svn path=/trunk/mcs/; revision=135918
2009-06-11 09:20:46 +00:00
Atsushi Eno 6f61807f8d 2009-06-11 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs, TcpChannelListener.cs,
	  ChannelListenerBase_1.cs : put common internal listener base
	  and let it handle those async stuff.


svn path=/trunk/mcs/; revision=135916
2009-06-11 09:10:38 +00:00
Zoltan Varga b6b70b878d 2009-06-11 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Fix a warning.

svn path=/trunk/mono/; revision=135904
2009-06-10 23:26:29 +00:00
Zoltan Varga 265fa779ed 2009-06-11 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Don't emit remoting-invoke-with-check
	wrappers.

	* aot-runtime.c (mono_aot_get_method): Use the original method's code for
	remoting-invoke-with-check wrappers, which are not needed when running with
	full-aot, since it doesn't support remoting.

svn path=/trunk/mono/; revision=135898
2009-06-10 22:28:21 +00:00
Rolf Bjarne Kvinge 003f517773 2009-06-10 Rolf Bjarne Kvinge <[email protected]>
* Thread.cs: MoonlightUnhandledException: ensure there's no way to
	reach native code with a managed exception.

svn path=/trunk/mcs/; revision=135897
2009-06-10 22:17:32 +00:00
Rodrigo Kumpera 6cb47457ae 2009-06-10 Rodrigo Kumpera <[email protected]>
* cli-cattr-tests.md: Tests for custom attributes
	encoding.

	*assembly-with-cattr-enc.cs: Input file

	* Makefile: Add new dependency and test.

svn path=/trunk/mono/; revision=135895
2009-06-10 22:08:16 +00:00
Rodrigo Kumpera 1a92b4e174 2009-06-10 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify basic cattr content.

svn path=/trunk/mono/; revision=135894
2009-06-10 22:08:07 +00:00
Zoltan Varga 24e15f5e72 2009-06-10 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_got_info): Don't emit offsets for the plt got entries.

	* aot-compiler.c aot-runtime.c: Don't emit the first got offset in the
	method info, it is not used anymore.

	* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=135891
2009-06-10 21:42:50 +00:00
Zoltan Varga 3dd824a7c5 2009-06-10 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_plt_entry): Make the arm plt entries one
	word smaller.

	* aot-runtime.c (mono_aot_get_plt_info_offset): Update after the
	change above.

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

	* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=135886
2009-06-10 20:13:23 +00:00
Gert Driesen 53e058a35a * corlib_test.dll.sources: Added test for InternalVisibleToAttribute.
* InternalVisibleToAttributeTest.cs: Added test for .ctor and
AllInternalsVisible property.

svn path=/trunk/mcs/; revision=135885
2009-06-10 20:11:53 +00:00
Andrés G. Aragoneses cbba74eb86 * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Cosmetic.
* tuner/Mono.Tuner/MoonlightA11yAssemblyStep.cs: Typo.

svn path=/trunk/mcs/; revision=135881
2009-06-10 19:19:36 +00:00
Geoff Norton 04038dfd95 This is dead now that 3.0 is out
svn path=/trunk/mono/; revision=135880
2009-06-10 18:57:17 +00:00
Zoltan Varga 1474dabafe 2009-06-10 Zoltan Varga <[email protected]>
* reflection.c (add_exported_type): Don't set the FORWARDER flag on
	nested types.

svn path=/trunk/mono/; revision=135878
2009-06-10 18:40:06 +00:00
Marek Safar 75199f9a2a 2009-06-10 Marek Safar <[email protected]>
* eval.cs, anonymous.cs, report.cs, rootcontext.cs, cs-parser.jay,
	driver.cs: Split lang version and metadata version.


svn path=/trunk/mcs/; revision=135877
2009-06-10 18:38:08 +00:00
Marek Safar 56fe0973cf 2009-06-10 Marek Safar <[email protected]>
* runtime/Makefile.am, configure.in: Make net_4_0 profile optional.


svn path=/trunk/mono/; revision=135876
2009-06-10 18:36:12 +00:00
Zoltan Varga 0ce276ef1d 2009-06-10 Zoltan Varga <[email protected]>
* reflection.c (mono_image_fill_export_table_from_type_forwarders): Add
	support for nested types. Fixes #511704.

svn path=/trunk/mono/; revision=135874
2009-06-10 18:34:24 +00:00
Zoltan Varga 8d881bf2ac 2009-06-10 Zoltan Varga <[email protected]>
* image-writer.c (asm_writer_emit_symbol_diff): Disable the
	TARGET_ASM_APPLE stuff for now, as it doesn't seem to work on the
	iphone.

svn path=/trunk/mono/; revision=135869
2009-06-10 17:42:29 +00:00
Jb Evain 0da7edbd0f 2009-06-10 Jb Evain <[email protected]>
* main.c: add support for extern types. Fixes #511672.


svn path=/trunk/mono/; revision=135868
2009-06-10 17:27:02 +00:00
Sebastien Pouliot bd19dacb39 2009-06-10 Sebastien Pouliot <[email protected]>
* Thread.cs: Refactor calling Moonlight's OnUnhandledException to 
	make sur the delegate it not called from a [SecuritySafeCritical]
	caller.
	* ThreadPool.cs: Reuse the above code for QueueUserWorkItem. 
	Original patch from Alan McGovern


svn path=/trunk/mcs/; revision=135866
2009-06-10 17:17:55 +00:00
Marek Safar c5a10f4d14 New error message.
svn path=/trunk/mcs/; revision=135863
2009-06-10 16:14:01 +00:00
Marek Safar 174baedb26 2009-06-10 Marek Safar <[email protected]>
* decl.cs: Better overload ctor collision error message.


svn path=/trunk/mcs/; revision=135862
2009-06-10 16:13:45 +00:00
Zoltan Varga 3417b730d6 2009-06-10 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_output_basic_block): Fix the implementation
	of CKFINITE and FBGE for VFP.

svn path=/trunk/mono/; revision=135859
2009-06-10 15:50:59 +00:00
Marek Safar bde21846ca 2009-06-10 Marek Safar <[email protected]>
* Consts.cs.in: Add AssemblySystemCore_3_5.


svn path=/trunk/mcs/; revision=135855
2009-06-10 14:25:25 +00:00
Marek Safar fe33ddf900 2009-06-10 Marek Safar <[email protected]>
* LockRecursionException.cs: Updated to 4.0 changes.


svn path=/trunk/mcs/; revision=135853
2009-06-10 14:25:02 +00:00
Marek Safar 00df7fd3e4 2009-06-10 Marek Safar <[email protected]>
* TimeZoneInfo.AdjustmentRule.cs, TimeZoneInfo.TransitionTime.cs,
	Funcs.cs, InvalidTimeZoneException.cs, Actions.cs, TimeZoneInfo.cs,
	TimeZoneNotFoundException.cs: Updated to 4.0 changes.


svn path=/trunk/mcs/; revision=135851
2009-06-10 14:24:10 +00:00
Marek Safar 8b07580ecd 2009-06-10 Marek Safar <[email protected]>
* corlib.dll.sources: Add new net 4.0 files.


svn path=/trunk/mcs/; revision=135849
2009-06-10 14:20:30 +00:00
Marek Safar 9c0eadd375 2009-06-10 Marek Safar <[email protected]>
* LockRecursionException.cs: New file.


svn path=/trunk/mcs/; revision=135848
2009-06-10 14:19:54 +00:00
Marek Safar 2fec4e4d1e 2009-06-10 Marek Safar <[email protected]>
* Predicate.cs, Action.cs, Funcs.cs, Comparison.cs, IComparable.cs,
	Converter.cs, EventHandler.cs: Add type variance.
	
	* InvalidTimeZoneException.cs,
	TimeZoneNotFoundException.cs: New file.


svn path=/trunk/mcs/; revision=135847
2009-06-10 14:17:59 +00:00
Marek Safar 7bfc38ec7a 2009-06-10 Marek Safar <[email protected]>
* IEqualityComparer.cs, IComparer.cs, IEnumerable.cs,
	IEnumerator.cs: Add type variance.


svn path=/trunk/mcs/; revision=135846
2009-06-10 14:14:17 +00:00
Marek Safar 3e6ce19271 Initialize AllInternalsVisible
svn path=/trunk/mcs/; revision=135845
2009-06-10 13:43:37 +00:00
Marek Habersack c0aae4dbed 2009-06-10 Marek Habersack <[email protected]>
* TestDataColumn.cs: added detection of foreign key columns.

    	* FooWithDefaults.cs: added foreign key columns

    	* FooDisplayName.cs, FooDisplayNameEmptyName.cs,
    	FooSettableDefaults.cs: added

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

    	* MetaTable.cs: fixed DisplayName implementation.
    	Implemented GetPrimaryKeyString, GetQuery.

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

    	* System.Web.DynamicData_test.dll.sources: added
    	Common/FooDisplayName.cs
    	Common/FooDisplayNameEmptyName.cs
    	Common/FooSettableDefaults.cs

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

    	* MetaTableTest.cs: added more table contexts.
    	Added tests for: Attributes, Columns, DataContextPropertyName,
    	DataContextType, DisplayName, EntityType, ForeignKeyColumnNames
    	(doesn't work on .NET), GetPrimaryKeyString, GetQuery,
    	HasPrimaryKey,

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

    	* MetaTableTest.cs: added two more tables for various kinds of
    	tests (in fixture setup).
    	More tests for GetActionPath.
    	Tests for GetPrimaryKeyValues, DisplayColumn, Attributes,
    	GetDisplayString, GetColumn, TryGetColumn

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

    	* Baz.cs, BazNoStrings.cs, BazNoStringsNoPrimary.cs,
    	FooDisplayColumnAttribute.cs, FooEmpty.cs,
    	FooEmptyDisplayColumnAttribute.cs,
    	FooInvalidDisplayColumnAttribute.cs, FooWithToString.cs,
    	TestDataColumn.cs, TestDataContainer.cs, TestDataTable.cs: added

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

    	* MetaTable.cs: implemented more overloads of GetActionPath.
    	Implemented GetPrimaryKeyValues, GetActionPathFromRoutes,
    	Attributes, DisplayColumn, GetDisplayString.

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

    	* MetaTableTest.cs: added two more tables for various kinds of
    	tests (in fixture setup).
    	More tests for GetActionPath.
    	Tests for GetPrimaryKeyValues.

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

    	* MetaTable.cs: implemented more overloads of GetActionPath.
    	Implemented GetPrimaryKeyValues.
    	Implemented GetActionPathFromRoutes.

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

    	* Utils.cs: added two BuildActionName methods to make building
    	action paths for testing more compact.

    	* FooNoPrimaryColumns.cs, FooNoDefaultsWithPrimaryKey.cs: added

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

    	* System.Web.DynamicData_test.dll.sources: added
    	Common/FooNoDefaultsWithPrimaryKey.cs
    	Common/FooNoPrimaryColumns.cs

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

    	* Utils.cs: added.
    	  Moved GetModel here from MetaModelTest.cs
    	  Added RegisterContext methods.

    	* FooWithDefaultsContainer.cs,
    	FooWithDefaultsColumn.cs,FooWithDefaultsTable.cs,
    	FooWithDefaults.cs: added

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

    	* MetaTableTest.cs: added.

svn path=/trunk/mcs/; revision=135844
2009-06-10 13:42:36 +00:00
Marek Safar aafd64f1ca 2009-06-10 Marek Safar <[email protected]>
* InternalsVisibleToAttribute.cs: Updated to 2.0 SP2.


svn path=/trunk/mcs/; revision=135842
2009-06-10 13:32:45 +00:00
Marek Safar 457cda4507 2009-06-10 Marek Safar <[email protected]>
* TypeForwardedFromAttribute: New file.


svn path=/trunk/mcs/; revision=135841
2009-06-10 13:03:22 +00:00
Atsushi Eno d508398f08 2009-06-10 Atsushi Enomoto <[email protected]>
* ServiceThrottlingBehavior.cs : implement Validate() (nothing to do
	  here).


svn path=/trunk/mcs/; revision=135825
2009-06-10 09:46:23 +00:00
Atsushi Eno a55851fb5e 2009-06-10 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs : fix wrong null delegate check point.


svn path=/trunk/mcs/; revision=135824
2009-06-10 07:15:46 +00:00
Atsushi Eno 3985a2029a 2009-06-10 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs, ReplyChannelBase.cs : async operations are
	  now implemented as virtual in base class. Remove NIEs in http.


svn path=/trunk/mcs/; revision=135823
2009-06-10 05:52:37 +00:00
Atsushi Eno c05443832e 2009-06-10 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs : hack async implementation.


svn path=/trunk/mcs/; revision=135822
2009-06-10 04:56:16 +00:00
Andrés G. Aragoneses 400de13dd0 2009-06-09 Andrés G. Aragoneses <[email protected]>
* WebRequestTest.cs: Added tests for bug #323452.


svn path=/trunk/mcs/; revision=135818
2009-06-10 02:56:34 +00:00
Gonzalo Paniagua Javier a054484fab re-disable the cache that was enabled by mistake
svn path=/trunk/mcs/; revision=135817
2009-06-10 02:55:07 +00:00
Gonzalo Paniagua Javier 95bee485a2 2009-06-09 Gonzalo Paniagua, Miguel de Icaza <[email protected], [email protected]>
* Expression.cs: improve the ExpressionCache, it still does not
	work, but it will at least work better with multithreaded apps (we
	take locks) and we use WeakReferences correctly.

	For WeakReferences it is important to not depend on IsAlive to
	retrieve the target (this is a documented race).  IsAlive is only
	useful to determine if it has already been collected, but if true,
	the Target can still be released.

	This race condition is exposed by #505678 on x86-64 platforms (only).

	Sadly, this fix is not good enough to re-enable the cache, on
	x86-64 this with a single thread, it still crashes randomly
	

svn path=/trunk/mcs/; revision=135815
2009-06-10 01:07:50 +00:00
Rodrigo Kumpera 186024db85 2009-06-09 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for methodspec signature.

svn path=/trunk/mono/; revision=135798
2009-06-09 22:55:23 +00:00
Rodrigo Kumpera d8b25300c0 2009-06-09 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify methodspec signatures.

svn path=/trunk/mono/; revision=135797
2009-06-09 22:55:14 +00:00
Rodrigo Kumpera 8dfdbd1777 2009-06-09 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for typespec signature.

	* assembly-with-typespec.il: Input file with a
	bunch of typespec instances.

	* Makefile: Add new dependency.

svn path=/trunk/mono/; revision=135796
2009-06-09 22:55:02 +00:00
Rodrigo Kumpera ab343bbe85 2009-06-09 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Added read.byte.

svn path=/trunk/mono/; revision=135795
2009-06-09 22:54:54 +00:00
Rodrigo Kumpera 88528374ca 2009-06-09 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify typespec signatures.

svn path=/trunk/mono/; revision=135794
2009-06-09 22:54:45 +00:00
Zoltan Varga 6789c06f31 2009-06-09 Zoltan Varga <[email protected]>
* aot-compiler.c: Don't align code to 16 bytes on arm.

svn path=/trunk/mono/; revision=135790
2009-06-09 21:43:09 +00:00
Zoltan Varga b31e4ed042 2009-06-09 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Emit the unbox trampolines right
	before the methods they belong to.

svn path=/trunk/mono/; revision=135787
2009-06-09 21:29:16 +00:00
Zoltan Varga 76c7cfcba3 2009-06-09 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_plt_resolve): Avoid creating trampolines in
	the full-aot case if possible, since the trampoline will be called right
	away.

	* aot-compiler.c (mono_compile_assembly): Decrease the number of full aot
	trampolines to 1024 after the change above.

svn path=/trunk/mono/; revision=135786
2009-06-09 21:10:43 +00:00
Zoltan Varga 4010938767 2009-06-09 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_plt_resolve): Avoid creating trampolines in
	the full-aot case if possible, since the trampoline will be called right
	away.

	* aot-compiler.c (mono_compile_assembly): Decrease the number of full aot
	trampolines to 1024 after the change above.

svn path=/trunk/mono/; revision=135785
2009-06-09 21:10:35 +00:00
Ivan Zlatev 0db3cea7fe 2009-06-09 Ivan N. Zlatev <[email protected]>
* DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs:
	Implement items syncing in the non-databound scenario.
	[Fixes bug #494031]

svn path=/trunk/mcs/; revision=135770
2009-06-09 15:56:21 +00:00
Gonzalo Paniagua Javier 90e8e19238 2009-06-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: ProtocolViolationException is not thrown in
	certain cases since 2.0. Fixes bug #508027.


svn path=/trunk/mcs/; revision=135767
2009-06-09 15:40:35 +00:00
Gonzalo Paniagua Javier b05c346630 enable test
svn path=/trunk/mcs/; revision=135760
2009-06-09 15:14:39 +00:00
Gonzalo Paniagua Javier 0721301465 2009-06-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: follow MS docs when throwing
	ProtocolViolationException at the beginning of an asynchronous
	operation. Fixes bug #465613.


svn path=/trunk/mcs/; revision=135758
2009-06-09 15:14:13 +00:00
Andrés G. Aragoneses 688f285585 * tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Cosmetic.
svn path=/trunk/mcs/; revision=135744
2009-06-09 14:01:27 +00:00
Jonathan Chambers c241d94045 2009-06-09 Jonathan Chambers <[email protected]>
* CMakeLists.txt: Add start of CMake build.
        * src/CMakeLists.txt: Add start of CMake build.

        Contribution is licensed as MIT/X11.


svn path=/trunk/mono/; revision=135743
2009-06-09 14:01:16 +00:00
Andrés G. Aragoneses c44d20a7cf * linker/Mono.Linker.Steps/BaseStep.cs: New virtual API needed.
* linker/Mono.Linker/Pipeline.cs: API love.

* tuner/Mono.Tuner.csproj:
* tuner/Mono.Tuner.dll.sources: Update.

* tuner/Mono.Tuner/MoonlightA11yProcessor.cs:
* tuner/Mono.Tuner/MoonlightA11yAssemblyStep.cs: Typo.

* tuner/Mono.Tuner/MoonlightA11yUsageInspectionStep.cs:
* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: New steps for
prevention of API stripping.

svn path=/trunk/mcs/; revision=135742
2009-06-09 13:56:15 +00:00
Andrés G. Aragoneses 106bb2e72f * linker/Mono.Linker.csproj: Update.
* linker/Mono.Linker/Driver.cs: Prevent InvalidCastException.

svn path=/trunk/mcs/; revision=135741
2009-06-09 13:52:27 +00:00
Ivan Zlatev 44858e278d 2009-06-09 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Call OnCellValidating and OnCellValidated and
	handle the Cancel accordingly.
	[Fixes bug #506838]

svn path=/trunk/mcs/; revision=135739
2009-06-09 12:46:50 +00:00
Ivan Zlatev e9f162000b 2009-06-09 Ivan N. Zlatev <[email protected]>
* DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
	[Fixes bug #506796]

svn path=/trunk/mcs/; revision=135738
2009-06-09 11:32:19 +00:00
Ivan Zlatev 34703ea845 2009-06-09 Ivan N. Zlatev <[email protected]>
* DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs,
	DataGridView.cs: Fire CollectionChangeAction.Refresh collection
	changed when Clearing the collections so that the DataGridView
	can know and reset the current cell.
	[Fixes bug #492549]

svn path=/trunk/mcs/; revision=135737
2009-06-09 11:29:16 +00:00
Ivan Zlatev 98d9cc2b58 2009-06-09 Ivan N. Zlatev <[email protected]>
* BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor
	with the PropertyDescriptor parameter instead of index, because the
	latter will set some irelevant indices. Fixes a bug uncovered by recent
	 fix to ListChangedEventArgs.

svn path=/trunk/mcs/; revision=135736
2009-06-09 11:17:53 +00:00
Atsushi Eno c2fb2b65d1 2009-06-09 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : avoid NRE (actually it should eliminate
	  Thread.Abort()). Added some comments on throttling.


svn path=/trunk/mcs/; revision=135730
2009-06-09 07:51:40 +00:00
Atsushi Eno ad9d1f05cc 2009-06-09 Atsushi Enomoto <[email protected]>
* ChannelDispatcherTest.cs : add ServiceThrottle test, and comments.


svn path=/trunk/mcs/; revision=135729
2009-06-09 07:50:32 +00:00
Atsushi Eno 29364a9eb9 Prepare ServiceThorottle implementation.
svn path=/trunk/mcs/; revision=135727
2009-06-09 07:46:31 +00:00
Carlos Alberto Cortez b9f076bbf7 2009-06-09 Carlos Alberto Cortez <[email protected]>
* DataObject.cs: When looking for any specific format, do a case
	insensitive search, as .net does.
	Fixes #509199.


svn path=/trunk/mcs/; revision=135720
2009-06-09 04:03:59 +00:00
Zoltan Varga 996532f971 2009-06-09 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_specific_trampoline): Rework the arm
	trampoline to save 8 bytes per trampoline.

	* tramp-arm.c (mono_arch_create_trampoline_code_full): Update after the
	change above.

svn path=/trunk/mono/; revision=135715
2009-06-09 02:22:25 +00:00
Zoltan Varga 9ca3ee08e9 2009-06-09 Zoltan Varga <[email protected]>
* metadata.c (free_inflated_method): Call
	mono_marshal_free_inflated_wrappers (), which was missed earlier.

svn path=/trunk/mono/; revision=135714
2009-06-09 02:21:21 +00:00
Ivan Zlatev c1851c896f 2009-06-09 Ivan N. Zlatev <[email protected]>
* CurrencyManager.cs: In AllowNew firstly check if the list is a
	IBindingList and proxy to AllowNew. IBindingList has slightly differet
	logic and eventhough it's an IList IsReadOnly should not be used in this
	case as it might be True but AllowNew could be True as well.
	Fixes a bug uncovered by a fix to the Array class.

svn path=/trunk/mcs/; revision=135713
2009-06-09 01:54:08 +00:00
Miguel de Icaza 09edef96bb 2009-06-08 Miguel de Icaza <[email protected]>
* mono-config.c: Small change to report the PPC64/ILP32 model.

svn path=/trunk/mono/; revision=135708
2009-06-08 23:49:10 +00:00
Gonzalo Paniagua Javier 4bfc82f892 2009-06-08 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: throw a WebException instead of an IOException.


svn path=/trunk/mcs/; revision=135704
2009-06-08 22:26:59 +00:00
Carlos Alberto Cortez 4f9edb64d8 2009-06-08 Carlos Alberto Cortez <[email protected]>
* ListBindingHelper.cs: In GetListItemType do a null check when
	looking for IList.Item, since the impl could be explicit, and thus
	private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
	Fixes the remaining part of #507120


svn path=/trunk/mcs/; revision=135698
2009-06-08 21:09:01 +00:00
Ankit Jain f7a85c3491 * standalone/Project01: Add missing Lib2.deploy.txt in the correct
location.

svn path=/trunk/mcs/; revision=135697
2009-06-08 20:55:46 +00:00
Gonzalo Paniagua Javier 067efbfbd7 2009-06-08 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: avoid exception when the reply from the server
	contains just response code. Fixes bug #510852.


svn path=/trunk/mcs/; revision=135695
2009-06-08 20:48:03 +00:00
Ankit Jain 7650e5ef6f In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* EngineTest.cs (TestMSBuildOutputs): New.

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

	* MSBuild.cs (Execute): Copy metadata from the @Projects items
	to the target outputs.

svn path=/trunk/mcs/; revision=135694
2009-06-08 20:43:05 +00:00
Gonzalo Paniagua Javier f3af4e6e1d 2009-06-08 Gonzalo Paniagua Javier <[email protected]>
* SmtpClient.cs: handle dots. Patch by Ted Unangst that fixes bug
	#392875.


svn path=/trunk/mcs/; revision=135692
2009-06-08 20:40:18 +00:00
Zoltan Varga 54bd1b1274 2009-06-08 Zoltan Varga <[email protected]>
* aot-compiler.c: Use acfg->temp_prefix instead of .L to prefix labels.

svn path=/trunk/mono/; revision=135687
2009-06-08 20:06:26 +00:00
Gonzalo Paniagua Javier aa9460908c 2009-06-08 Gonzalo Paniagua Javier <[email protected]>
* HttpHandlerAction.cs: fix path matching when the pattern has more
	than one slash.


svn path=/trunk/mcs/; revision=135685
2009-06-08 19:48:22 +00:00
Marek Safar 40715b8c91 Enabled 4.0 features for bootstrap too.
svn path=/trunk/mcs/; revision=135683
2009-06-08 19:05:34 +00:00
Atsushi Eno c39fe32eb8 2009-06-08 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : oops, extra line removal.


svn path=/trunk/mcs/; revision=135674
2009-06-08 16:48:51 +00:00
Atsushi Eno 84b8815a8e 2009-06-08 Atsushi Enomoto <[email protected]>
* HttpChannelManager.cs, HttpListenerManager.cs : rename file too.

	* System.ServiceModel.dll.sources: renamed a file.


svn path=/trunk/mcs/; revision=135673
2009-06-08 16:47:18 +00:00
Zoltan Varga 98cc1c9d03 2009-06-08 Zoltan Varga <[email protected]>
* CSharpCodeProviderTest.cs: Avoid depending on the order in which
	GetManifestResourceNames () returns resource names.

svn path=/trunk/mcs/; revision=135672
2009-06-08 16:44:50 +00:00
Atsushi Eno 23a7f085d6 2009-06-08 Atsushi Enomoto <[email protected]>
* HttpChannelManager.cs, HttpChannelListener.cs: renaming, as
	  "ChannelManager" is confusing (there is ChannelManagerBase).


svn path=/trunk/mcs/; revision=135671
2009-06-08 16:43:07 +00:00
Atsushi Eno 84d82f89c4 2009-06-08 Atsushi Enomoto <[email protected]>
* HttpChannelManager.cs, HttpTransportBindingElement.cs,
	  HttpReplyChannel.cs, AspNetReplyChannel.cs, HttpChannelListener.cs:
	  they should be split into separate listener->reply channel lines
	  (remove "if (HostingEnvironment.IsAspNet)".)


svn path=/trunk/mcs/; revision=135668
2009-06-08 16:37:52 +00:00
Marek Safar 8bcab2a591 Fixed bug number
svn path=/trunk/mcs/; revision=135658
2009-06-08 11:51:40 +00:00
Atsushi Eno b430f47799 svn:eol-style native.
svn path=/trunk/mcs/; revision=135653
2009-06-08 09:21:35 +00:00
Atsushi Eno fa4750ff59 another EOL inconsistency.
svn path=/trunk/mcs/; revision=135652
2009-06-08 09:20:52 +00:00
Atsushi Eno e06ca80826 fix inconsistent EOLs.
svn path=/trunk/mcs/; revision=135651
2009-06-08 09:18:06 +00:00
Atsushi Eno a455a4cbc9 fix inconsistent EOLs.
svn path=/trunk/mcs/; revision=135650
2009-06-08 09:16:39 +00:00
Atsushi Eno 198d728a95 2009-06-08 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : OnClosed() requires call to base method.
	  Close() could rather abort the channel, and Abort() does not
	  always invke OnAbort().
	* ChannelBase.cs : add call to base as above.

	* ChannelDispatcher.cs :
	  Add call to base (see CommunicationObject change).

	* InstanceContext.cs :
	  Add call to base (see CommunicationObject change).

	* CommunicationObjectTest.cs : added a couple of close/abort tests
	  for state transition and base call check.


svn path=/trunk/mcs/; revision=135649
2009-06-08 09:10:08 +00:00
Martin Baulig bf16cb052d Improve exception handling when running in mdb: check whether an exception is caught inside a runtime-invoked method or the runtime-invoke wrapper.
2009-06-08  Martin Baulig  <[email protected]>

	* debug-mini.c
	(MonoDebuggerExceptionAction): Moved into debug-mini.h.
	(_mono_debugger_throw_exception): Don't make this static.
	(_mono_debugger_unhandled_exception): Likewise.
	(mono_debugger_handle_exception): Moved to mini-exceptions.c

	* debug-mini.c
	(MonoDebuggerExceptionAction): Moved here from debug-mini.c.
	(_mono_debugger_throw_exception): Add function prototype.
	(_mono_debugger_unhandled_exception): Likewise.

	* mini-exceptions.c
	(mono_handle_exception_internal): Added `MonoJitInfo **out_ji'
	arg; return the first exception handler if the exception is caught
	and we're running inside the debugger.
	(mono_debugger_handle_exception): Moved here from debug-mini.c;
	improve exception handle inside runtime-invoke, check whether the
	exception is actually caught in the method being invoked and not
	by the runtime-invoke-wrapper.

svn path=/trunk/mono/; revision=135635
2009-06-08 08:45:31 +00:00
Marek Habersack d74135a620 2009-06-08 Marek Habersack <[email protected]>
* ConfigurationLocation.cs: if the path passed to constructor
	starts with any of ' ' '.' '/' or '\', throw an exception. Fixes
	bug #510735

svn path=/trunk/mcs/; revision=135630
2009-06-08 07:19:41 +00:00
Zoltan Varga 3dddd56d77 2009-06-08 Zoltan Varga <[email protected]>
* image-writer.c: Improve support for the osx assembler.

	* dwarfwriter.c: Avoid the usage of subsections if the assembler doesn't
	support them.

svn path=/trunk/mono/; revision=135624
2009-06-08 01:22:02 +00:00
Ankit Jain 22e0abd69b * standalone/Project01: Fix location for lib2.deploy.txt
svn path=/trunk/mcs/; revision=135622
2009-06-08 00:37:00 +00:00
Ankit Jain 43bc513ae5 * ResolvedReference.cs: Add missing file.
svn path=/trunk/mcs/; revision=135621
2009-06-08 00:36:41 +00:00
Ankit Jain 91b7b5fa6c In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* AssignCulture.cs (TrySplitResourceName): Reset culture arg to null
	if returning false.
	* CreateCSharpManifestResourceName.cs: Set culture to null if the
	culture was invalid.

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

	* CreateCSharpManifestResourceNameTest.cs (TestInvalidCulture): New.

svn path=/trunk/mcs/; revision=135619
2009-06-08 00:06:11 +00:00
Ankit Jain 881b6cf16d Add support for resolving project and other assembly references, including
their dependant files.

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

	* ProjectTest (TestBuildSolutionProject): New. Disabled for now.

In class/Microsoft.Build.Tasks:

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

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

	* ResolvedReference.cs: New.
	* AssemblyResolver.cs (GetResolvedReference): New. Honor's the
	'Private' metadata and sets CopyLocal.
	(SearchPath): New. Used to track how the reference was resolved.
	(IsStrongNamed): Fix potential null ref.
	All the assembly resolution methods now return ResolvedReference
	instead of strings, to aid in proper CopyLocal behavior and
	dependency resolution.
	* ResolveAssemblyReference.cs: Add support for finding related files,
	satellite files, resolving dependencies, copy local files.
	Resolve files specified in "AssemblyFiles" param also, used to resolve
	project references and dependencies.

In tools/xbuild:

	* xbuild/Microsoft.Common.targets: Use ResolveAssemblyReference
	to find satellite assemblies, dependent assemblies, dependent
	files, copy local files etc.
	Add targets to fetch all this info for all referenced projects,
	and copy them to the target locations. Also, copy the debug (.mdb)
	files. Honor, "CopyToOutputDirectory" metadata.

In tools/xbuild/tests:

	* standalone/Project01: New. Solution with interdependent multiple projects,
	with deploy files, satellite assemblies etc.

svn path=/trunk/mcs/; revision=135618
2009-06-07 23:36:52 +00:00
Carlos Alberto Cortez 5eb48e9ff6 2009-06-07 Carlos Alberto Cortez <[email protected]>
* DataObjectTest.cs: New assertions for the text functionality.


svn path=/trunk/mcs/; revision=135612
2009-06-07 15:42:17 +00:00
Zoltan Varga f1e0805cd3 2009-06-07 Zoltan Varga <[email protected]>
* image-writer.c (append_subsection): Don't align subsections of the
	debug_line section as a workaround.

	* dwarfwriter.c: Emit line number info in the AOT case as well.

svn path=/trunk/mono/; revision=135611
2009-06-07 14:26:58 +00:00
Ankit Jain 8bd59c562d In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* Csc.cs (AddResponseFileCommands): Split DefineConstants on space also.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
	* CscTest.cs (TestDefineConstants): Update DefineConstants to include
	spaces also.

svn path=/trunk/mcs/; revision=135610
2009-06-07 12:57:52 +00:00
Ankit Jain a92162b50c In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* AssignTargetPath.cs (Execute): Expand incoming path to absolute
	path, and correctly extract relative path (skipping over the preceding
	dir separator).

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

	* AssignTargetPathTest.cs: Update tests to not depend on a fixed
	root (C:\) or cur dir.

svn path=/trunk/mcs/; revision=135609
2009-06-07 12:57:34 +00:00
Ankit Jain 8651252a42 * Copy.cs (CopyFile): Don't copy if the source and dest are the same.
svn path=/trunk/mcs/; revision=135608
2009-06-07 12:57:17 +00:00
Ankit Jain 78aa0f8ca9 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Target.cs (Outputs): Use ITaskItem[] for conversion, to retain
	the metadata.

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

	* TargetTest (TestTargetOutputsIncludingMetadata): New.

svn path=/trunk/mcs/; revision=135607
2009-06-07 12:57:01 +00:00
Ankit Jain e7a7f58714 * Parameters.cs (ProcessProperty): Handle invalid syntax.
svn path=/trunk/mcs/; revision=135606
2009-06-07 12:56:43 +00:00
Ankit Jain fd0e3fa56e * SolutionParser.cs (AddGeneralSettings): Don't hardcode the default
config/platform. Move to ..
(AddDefaultSolutionConfiguration): .. here.
(AddCurrentSolutionConfigurationContents): Use the first solution target
as the default config/platform or use Debug/anycpu if no config is available.

svn path=/trunk/mcs/; revision=135605
2009-06-07 12:51:34 +00:00
Carlos Alberto Cortez 2c62f19c41 2009-06-07 Carlos Alberto Cortez <[email protected]>
* DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
	to match them in all the cases, as this is exactly what .net does.
	Fixes #510728.


svn path=/trunk/mcs/; revision=135604
2009-06-07 10:34:05 +00:00
Marek Safar 42786f0335 2009-06-07 Marek Safar <[email protected]>
* Makefile: Add net_4_0* profiles.


svn path=/trunk/mcs/; revision=135603
2009-06-07 10:22:16 +00:00
Marek Safar 0fdfe7bb83 2009-06-07 Marek Safar <[email protected]>
* runtime/Makefile.am: Enabled net_4_0 for compilation.


svn path=/trunk/mono/; revision=135602
2009-06-07 09:13:16 +00:00
Zoltan Varga 47c375fbd4 2009-06-06 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

       * mini-ppc.c (mono_arch_emit_exceptions): Change assert to
       code_len <= code_size

svn path=/trunk/mono/; revision=135601
2009-06-07 01:37:17 +00:00
Zoltan Varga 98579ed05e 2009-06-06 Zoltan Varga <[email protected]>
* CMakeLists.txt: Fix handling of powerpc and the selection of
	threads. Delete commented out stuff.

svn path=/trunk/mono/; revision=135600
2009-06-06 20:22:57 +00:00
Zoltan Varga 32cddb52a2 2009-06-06 Zoltan Varga <[email protected]>
* CMakeLists.txt: CMake build file for libgc.

svn path=/trunk/mono/; revision=135599
2009-06-06 20:05:21 +00:00
Gert Driesen 3ee30c68d1 * ContextStack.cs: Added argument check to Type indexer, avoiding a
NRE. Modify System.Int32 indexer to throw ArgumentOutOfRangeException
instead of ArgumentException. Reduce number of times that item count
must be obtained.
* ContextStackTest.cs: Added unit tests for indexers, and argument
(null) checks.

svn path=/trunk/mcs/; revision=135596
2009-06-06 17:07:34 +00:00
Carlos Alberto Cortez bf070eecb1 2009-06-06 Carlos Alberto Cortez <[email protected]>
* ListBindingHelperTest.cs: New assertion for GetListItemType, as well
	as a new helper collection class.


svn path=/trunk/mcs/; revision=135594
2009-06-06 12:25:13 +00:00
Carlos Alberto Cortez c43474db42 2009-06-06 Carlos Alberto Cortez <[email protected]>
* ListBindingHelper.cs: In GetListItemType handle gracefully the case
	where an instance of IEnumerator returns a null value for its Current
	property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
	Fixes #507120.


svn path=/trunk/mcs/; revision=135593
2009-06-06 12:22:51 +00:00
Zoltan Varga 80c2b7110b 2009-06-06 Zoltan Varga <[email protected]>
* mini-mips.c (mips_emit_exc_by_name): Fix the mips build.

svn path=/trunk/mono/; revision=135583
2009-06-06 01:16:19 +00:00
Gert Driesen 7815a96217 * bug-508538.cs: New regression test for bug #508538.
svn path=/trunk/mono/; revision=135575
2009-06-05 23:31:33 +00:00
Gert Driesen 6c3fbf55b9 * HttpWebRequestTest.cs: Added tests for bugs #465613, #510661,
#510642 and #508027.

svn path=/trunk/mcs/; revision=135573
2009-06-05 23:20:31 +00:00
Rodrigo Kumpera c88bd5348b 2009-06-05 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for szarray.

	* assembly-with-types.il: Fix the szarray field.

svn path=/trunk/mono/; revision=135571
2009-06-05 21:57:52 +00:00
Rodrigo Kumpera cd912a0bb5 2009-06-05 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_type): Check szarray.

svn path=/trunk/mono/; revision=135570
2009-06-05 21:57:41 +00:00
Rodrigo Kumpera 26e578b83a 2009-06-05 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for fnptr instance.

svn path=/trunk/mono/; revision=135569
2009-06-05 21:57:27 +00:00
Rodrigo Kumpera 299720f7ca 2009-06-05 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_type): Check fnptr.

svn path=/trunk/mono/; revision=135568
2009-06-05 21:57:16 +00:00
Rodrigo Kumpera 56d470eaf5 2009-06-05 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for generic instance.

	* assembly-with-types.il: Add some generic instances.

svn path=/trunk/mono/; revision=135567
2009-06-05 21:57:00 +00:00
Rodrigo Kumpera 8021029098 2009-06-05 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_type): Check generic instances.

svn path=/trunk/mono/; revision=135566
2009-06-05 21:56:49 +00:00
Rodrigo Kumpera 70dc3c18c2 2009-06-05 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for array shape.

svn path=/trunk/mono/; revision=135565
2009-06-05 21:56:35 +00:00
Rodrigo Kumpera 9de3fc6cba 2009-06-05 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_type): Check array shape.

svn path=/trunk/mono/; revision=135564
2009-06-05 21:56:24 +00:00
Marek Habersack a45970e198 Fix the 1.1 build
svn path=/trunk/mcs/; revision=135560
2009-06-05 21:10:03 +00:00
Marek Habersack 6a261e04ad 2009-06-05 Marek Habersack <[email protected]>
* VirtualPathUtility.cs: IsValidVirtualPath no longer uses
	WebConfigurationManager.GetSection to retrieve the verification
	setting. Instead, the setting is retrieved in the static
	constructor.

	* HttpRequest.cs: ApplyUrlMapping must not use
	WebConfigurationManager.GetSection as it would cause a recursive
	call loop. Code to detect whether url mappings are in effect has
	been moved to a static constructor.

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

	* Page.cs: InitializeTheme uses WebConfigurationManager.GetSection
	to retrieve page theme name. GetWebApplicationSection cannot be
	used because the system.web/pages section is valid also in
	subdirectories. Fixes bug #510302

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

	* WebConfigurationManager.cs: OpenWebConfiguration caches
	configurations with a key generated from all the parameters passed
	to it, not just from path.
	Added internal GetSection method which takes HttpContext as its
	third parameter - used in calling OpenWebConfiguration.
	FindWebConfig is no longer used in GetSection - it breaks handling
	of <location> elements in config files. Fixes bug #510302

svn path=/trunk/mcs/; revision=135558
2009-06-05 20:53:26 +00:00
Jb Evain ef049fc166 2009-06-05 Jb Evain <[email protected]>
* Mono.Linker.Steps/MarkStep.cs: fix a nre.
	Based on patch by Andres G. Aragoneses  <[email protected]>.


svn path=/trunk/mcs/; revision=135557
2009-06-05 20:47:20 +00:00
Ivan Zlatev a01012c499 2008-06-05 Ivan N. Zlatev <[email protected]>
* ContextStack.cs: Also check for subclasses in the Type-based
	indexter property.
	[Fixes bug #509151]

svn path=/trunk/mcs/; revision=135546
2009-06-05 18:37:42 +00:00
Sebastien Pouliot 718a9bd3e3 In System/System.Net:
2009-06-05  Sebastien Pouliot  <[email protected]> 

	* DownloadStringCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
	* OpenReadCompletedEventArgs.cs: Remove Address property since it's 
	not part of SL2. Call RaiseExceptionIfNecessary
	* OpenWriteCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
	* UploadStringCompletedEventArgs.cs: Call RaiseExceptionIfNecessary

In System.Net/System.Net:
2009-06-05  Sebastien Pouliot  <[email protected]>

	* WebClient_2_1.cs: Make sure *CompletedEventArgs gets called 
	even in case an exception occurs before the BeginGetResponse 
	call. Adjust API for OpenReadCompletedEventArgs.


svn path=/trunk/mcs/; revision=135545
2009-06-05 18:19:16 +00:00
Sebastien Pouliot 162e6b6477 2009-06-05 Sebastien Pouliot <[email protected]>
* SecurityPermissionFlag.cs: Add [Obsolete] on NET_2_1 since CAS 
	stuff is not available in Moonlight.


svn path=/trunk/mcs/; revision=135544
2009-06-05 18:19:00 +00:00
Jb Evain 70c491a04f 2009-06-05 Jb Evain <[email protected]>
* Mono.Linker.Steps/ResolveFromXmlStep.cs: more ways of choosing fields.


svn path=/trunk/mcs/; revision=135543
2009-06-05 17:54:00 +00:00
Marek Safar 2d36f50709 2009-06-05 Marek Safar <[email protected]>
* Makefile: Fixed NET_2_0 conditional to actually handle Mono.Security
	dependency.


svn path=/trunk/mcs/; revision=135540
2009-06-05 16:27:11 +00:00
Jb Evain 2230659a57 2009-06-05 Jb Evain <[email protected]>
* Mono.Cecil/BaseAssemblyResolver.cs: properly look for the 4.0 corlib
	when running on Mono.


svn path=/trunk/mcs/; revision=135536
2009-06-05 15:09:56 +00:00
Robert Jordan 2ee8aa88d1 2009-06-05 Robert Jordan <[email protected]>
* WebClient.cs (UploadValuesCore): Encode POST arguments with UTF-8.
	Fixes bug #484795.


svn path=/trunk/mcs/; revision=135532
2009-06-05 14:53:24 +00:00
Marek Safar 039fb7a64a 2009-06-05 Marek Safar <[email protected]>
* NetConfigurationHandler.cs, DefaultProxyHandler.cs, 
	NetAuthenticationModuleHandler.cs, ConnectionManagementHandler.cs,
	WebRequestModuleHandler.cs: Always build
	IConfigurationSectionHandler.


svn path=/trunk/mcs/; revision=135529
2009-06-05 14:21:49 +00:00
Marek Safar ba5939a531 2009-06-05 Marek Safar <[email protected]>
* DictionarySectionHandler.cs, NameValueSectionHandler.cs,
	NameValueFileSectionHandler.cs, SingleTagSectionHandler.cs,
	IConfigurationSectionHandler.cs, IgnoreSectionHandler.cs: Always
	build IConfigurationSectionHandler.


svn path=/trunk/mcs/; revision=135528
2009-06-05 14:20:21 +00:00
Jb Evain e5fa2c157d oops
svn path=/trunk/mcs/; revision=135526
2009-06-05 14:04:44 +00:00
Robert Jordan 2206b054f5 2009-06-05 Robert Jordan <[email protected]>
* class.c (mono_class_create_from_typedef): Check only for
	mscorlib's System.Array.


svn path=/trunk/mono/; revision=135525
2009-06-05 13:50:02 +00:00
Jb Evain c4794b40a6 2009-06-05 Jb Evain <[email protected]>
* Mono.Linker.Steps/ResolveFromXmlStep.cs: give us more
	possibilities to detail the xml descriptors.


svn path=/trunk/mcs/; revision=135523
2009-06-05 13:12:52 +00:00
Jb Evain df67c58b98 2009-06-05 Jb Evain <[email protected]>
* driver.cs (EmbededResource): avoid using an internal method
	in gmcs to embed manifest resources.


svn path=/trunk/mcs/; revision=135520
2009-06-05 13:02:28 +00:00
Jb Evain 52b6089b22 2009-06-05 Jb Evain <[email protected]>
* ModuleBuilder.cs (DefineManifestResource): expose during
	BOOTSTRAP_NET_2_0 as well.


svn path=/trunk/mcs/; revision=135519
2009-06-05 12:59:31 +00:00
Atsushi Eno 83edc6dd33 2009-06-05 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : fix GetAttribute() that returns
	  attributes from cache that are *not* in current element.


svn path=/trunk/mcs/; revision=135517
2009-06-05 12:41:56 +00:00
Sebastien Pouliot d22e182ad0 In System.ServiceModel.Channels:
2009-06-05  Sebastien Pouliot  <[email protected]>

	* ClientAccessPolicy.cs: Removed
	* CrossDomainAccessManager.cs: Removed
	* CrossDomainPolicy.cs: Removed
	* HttpRequestChannel.cs: Remove call to CrossDomainAccessManager 
	since this is now done inside the BeginGetResponse call (outside
	this assembly) for Moonlight (NET_2_1)

In .:
2009-06-05  Sebastien Pouliot  <[email protected]>

	* net_2_1_raw_System.ServiceModel.dll.sources: Remove 
	ClientAccessPolicy.cs, CrossDomainPolicy.cs and 
	CrossDomainAccessManager.cs since the code and checks is now done
	inside System.Windows.Browser.dll, by BrowserHttpWebRequest, for
	every non-site-or-origin web connection - i.e. http[s]


svn path=/trunk/mcs/; revision=135513
2009-06-05 12:03:47 +00:00
Atsushi Eno ab539b8623 2009-06-05 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : there was wrong reusage of nodes
	  when the node was at the top of the stack. It was added twice and
	  call to reset resulted in end element with empty names.

	* XmlBinaryDictionaryReaderTest.cs : verify that end element has
	  non-empty local name.


svn path=/trunk/mcs/; revision=135512
2009-06-05 11:51:35 +00:00
Jb Evain 56e79111a8 2009-06-05 Jb Evain <[email protected]>
* Makefile: fix the 2.1 build.


svn path=/trunk/mcs/; revision=135503
2009-06-05 07:45:28 +00:00
Carlos Alberto Cortez ad63db0b22 2009-06-05 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: Properly detect whether we need to use our vertical
	scrollbar or not, specially for DropDownList/DropDown styles,
	depending on the value of DropDownHeight.
	Fixes #508541.


svn path=/trunk/mcs/; revision=135501
2009-06-05 04:43:57 +00:00
Rodrigo Kumpera a0c4251582 2009-06-04 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for type encoding.

	* assembly-with-types.il: Input file with all
	sorts of type encodings.

	* Makefile: Add new dependency.

svn path=/trunk/mono/; revision=135497
2009-06-05 01:20:10 +00:00
Rodrigo Kumpera eddf612714 2009-06-04 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement locals signature check.

2009-06-04 Rodrigo Kumpera  <[email protected]>

	* metadata-verify.c (parse_type): Check pointer, class/valuetype
	and generic params.

	* metadata-verify.c (parse_field): Check the signature.

svn path=/trunk/mono/; revision=135496
2009-06-05 01:20:02 +00:00
Rodrigo Kumpera 2feb5be6eb 2009-06-04 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: LocalsSig tests.

	* assembly-with-locals.il: File with all sort
	of locals sig.

	* Makefile: Add new dependency.

svn path=/trunk/mono/; revision=135495
2009-06-05 01:19:49 +00:00
Rodrigo Kumpera a7ab3c8edd 2009-06-04 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement locals signature check.

svn path=/trunk/mono/; revision=135494
2009-06-05 01:19:41 +00:00
Marek Safar 0370aa2c77 Revert last 2 chances
svn path=/trunk/mcs/; revision=135490
2009-06-04 21:52:42 +00:00
Marek Habersack 60f847468e 2009-06-04 Marek Habersack <[email protected]>
* HttpException.cs:
	Don't generate trace for 403. Fixes bug #509092

svn path=/trunk/mcs/; revision=135488
2009-06-04 21:22:44 +00:00
Marek Habersack 787a9fd5ff 2009-06-04 Marek Habersack <[email protected]>
* AspGenerator.cs: if plain text is parsed and it contains
	server-side controls, parse and process them. Fixes bug #508888

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

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/ServerSideControlsInScriptBlock.aspx

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

	* TemplateControlCompilerTest.cs: added test for bug #508888

svn path=/trunk/mcs/; revision=135486
2009-06-04 21:18:21 +00:00
Marek Safar 3f5d0eb70a This should work
svn path=/trunk/mcs/; revision=135485
2009-06-04 21:12:26 +00:00
Marek Safar 70f7fbf34c Fixes build.
svn path=/trunk/mcs/; revision=135475
2009-06-04 19:52:11 +00:00
Marek Habersack 7b2c6ced86 2009-06-04 Marek Habersack <[email protected]>
* HttpResponse.cs: version header configuration is read lazily
	now.

svn path=/trunk/mcs/; revision=135471
2009-06-04 18:47:55 +00:00
Sebastien Pouliot d1a3c208bd 2009-06-04 Sebastien Pouliot <[email protected]>
* generic.cs, parameter.cs: Avoid using 'var' so we can bootstrap
	the compiler from older mono versions (like moon's bots)


svn path=/trunk/mcs/; revision=135470
2009-06-04 18:42:48 +00:00
Alan McGovern 382c1c1f94 2009-06-04 Alan McGovern <[email protected]>
* HttpRequestChannel.cs : Rewrite ProcessRequest to use the async APIs
	instead of the sync apis. Prevents a possible deadlock condition in
	moonlight. 


svn path=/trunk/mcs/; revision=135467
2009-06-04 18:06:00 +00:00
Zoltan Varga 3c5a0c17d7 Get rid of all references to STATIC_RGCTX_INVOKE to fix the build.
svn path=/trunk/mono/; revision=135466
2009-06-04 18:01:37 +00:00
Marek Habersack 60592e9086 2009-06-04 Marek Habersack <[email protected]>
* HttpException.cs: do not show version info if custom errors are
	in effect. Fixes bug #509092

svn path=/trunk/mcs/; revision=135464
2009-06-04 17:45:05 +00:00
Sebastien Pouliot a59cbb5de4 2009-06-04 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: Remove the creation of threads and use the
	async methods provided by WebRequest (and its friends). Use an
	internal object to lock on (not this). Remove comments from the
	original (mono) WebClient since the code has diverged so much.
	Fix DRT#326 (hopefully others too or at least more than it breaks)


svn path=/trunk/mcs/; revision=135463
2009-06-04 17:40:24 +00:00
Marek Habersack 90b4f380d1 2009-06-04 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: OnFileChanged ignores the directory
	part of the file triggering the event. Fixes bug #509998

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

	* InotifyWatcher.cs: filter pattern should be matched on file name
	alone, not on the relative path of the file triggering the
	event. Fixes bug #509998

svn path=/trunk/mcs/; revision=135460
2009-06-04 17:33:52 +00:00
Zoltan Varga 394ea70cd6 In metadata/
2009-06-04  Zoltan Varga  <[email protected]>

	* wrapper-types.h: Delete STATIC_RGCTX_INVOKE.

	* marshal.c (mono_marshal_ret_static_rgctx_invoke): Remove, no longer
	used.

	* icall.c (ves_icall_System_Delegate_CreateDelegate_internal): Avoid
	adding a static-rgctx invoke wrapper, it is done by the runtime trampolines.

	* generic-sharing.c (inflate_other_data): Ditto.

In mini/
2009-06-04  Zoltan Varga  <[email protected]>

	* aot-compiler.c aot-runtime.c: Delete references to static rgctx
	invoke wrappers, we now use trampolines instead.

svn path=/trunk/mono/; revision=135459
2009-06-04 17:30:02 +00:00
Marek Safar 6a83d5fe50 2009-06-04 Marek Safar <[email protected]>
* domain.c: Add .NET 4.0 Beta 1 version.


svn path=/trunk/mono/; revision=135457
2009-06-04 17:10:56 +00:00
Marek Safar 77f7c6bad0 More work on 4.0 profile
svn path=/trunk/mcs/; revision=135456
2009-06-04 17:08:28 +00:00
Marek Safar 6f1d5e5874 More work on 4.0 profile
svn path=/trunk/mcs/; revision=135454
2009-06-04 16:56:17 +00:00
Marek Safar 20a0fed11c Distribute the profiles
svn path=/trunk/mcs/; revision=135453
2009-06-04 16:54:04 +00:00
Marek Safar 8a3b69787f Distribute new files
svn path=/trunk/mcs/; revision=135449
2009-06-04 16:26:04 +00:00
Marek Safar 3dbf5800a0 New test.
svn path=/trunk/mcs/; revision=135448
2009-06-04 16:10:11 +00:00
Marek Safar 78dd1f6b2c 2009-06-04 Marek Safar <[email protected]>
* namespace.cs (LookupTypeReflection): Ignore collisions between
	forwarded types.


svn path=/trunk/mcs/; revision=135447
2009-06-04 16:08:28 +00:00
Andrés G. Aragoneses c7fa18cd68 r:jb
2009-06-04  Andrés G. Aragoneses  <[email protected]>

        * Mono.Tuner.dll.sources:
        * Mono.Tuner.csproj: Update.
        * Mono.Tuner/InjectSecurityAttributes.cs:
        * Mono.Tuner/MoonlightAssemblyStep.cs: Change some accessibility
        keywords, to be able to override and inherit.
        * Mono.Tuner/MoonlightA11yProcessor.cs:
        * Mono.Tuner/MoonlightA11yAssemblyStep.cs: New steps for a11y.


svn path=/trunk/mcs/; revision=135446
2009-06-04 16:01:59 +00:00
Marek Safar 05e9d0cd4c Removed enabled test.
svn path=/trunk/mcs/; revision=135444
2009-06-04 15:37:09 +00:00
Andrés G. Aragoneses d9143442ef Use better name for variables.
svn path=/trunk/mcs/; revision=135443
2009-06-04 15:37:04 +00:00
Marek Safar 2ab6ca79a8 New test.
svn path=/trunk/mcs/; revision=135441
2009-06-04 15:36:26 +00:00
Marek Safar abbea8abc5 2009-06-04 Marek Safar <[email protected]>
* codegen.cs: Enabled generic type forwarders.


svn path=/trunk/mcs/; revision=135440
2009-06-04 15:34:14 +00:00
Marek Habersack fed07c12c0 2009-06-04 Marek Habersack <[email protected]>
* RouteValueDictionaryExtensions.cs: if both values are strings in
	Has (string, value), compare them case-insensitively. Fixes bug
	#502555

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

	* RouteCollectionTest.cs: added two more test cases to the bug
	#502555 test. They check whether url generation matches defaults
	case-insensitively.

svn path=/trunk/mcs/; revision=135438
2009-06-04 15:31:02 +00:00
Bill Holmes cfdbdef043 2009-06-04 Bill Holmes <[email protected]>
* cominterop.c (cominterop_ccw_queryinterface): Fix for bug 499566.
	  For QueryInterface on CCWs consider the base class
	  interfaces as well.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=135434
2009-06-04 15:26:11 +00:00
Marek Safar 488921f63f Add net_4_0_bootstrap
svn path=/trunk/mcs/; revision=135428
2009-06-04 15:14:23 +00:00
Veerapuram Varadhan 51879b7558 2009-06-04 Veerapuram Varadhan <[email protected]>
* OracleParameter.cs: Infer size only for 2.0 profile when only
	value is passed.  Fixes test failure under 1.1 profile.

svn path=/trunk/mcs/; revision=135427
2009-06-04 15:12:40 +00:00
Marek Safar 8358e16e0c 2009-06-04 Marek Safar <[email protected]>
* dmcs.*: Add another version of SRE compiler.


svn path=/trunk/mcs/; revision=135426
2009-06-04 15:11:19 +00:00
Marek Safar b478db4509 Add BOOTSTRAP_NET_4_0
svn path=/trunk/mcs/; revision=135425
2009-06-04 15:08:38 +00:00
Jb Evain 9ab7149b44 2009-06-04 Jb Evain <[email protected]>
* Mono.Linker.Steps/ResolveFromXmlStep.cs: fix handling
	of wildcards constructors.


svn path=/trunk/mcs/; revision=135423
2009-06-04 15:02:16 +00:00
Zoltan Varga 89c22ded4f 2009-06-04 Zoltan Varga <[email protected]>
* marshal.c metadata.c: Applied patch from Ulrich Weigand
	<[email protected]>: Free the wrappers of inflated generic methods when
	the inflated method is freed. Fixes #508389.

	The code is contributed under the MIT/X11 license.

svn path=/trunk/mono/; revision=135422
2009-06-04 14:53:02 +00:00
Mark Probst c44dc12cb3 Make SGen work on Darwin.
2009-06-04  Mark Probst  <[email protected]>

        * sgen-gc.h: Support for Darwin by using named semaphores and
        pthread conditions instead of unnamed semaphores.

2009-06-04  Mark Probst  <[email protected]>

        * mini-darwin.c: The exception thread must not be registered with
        the GC.

svn path=/trunk/mono/; revision=135421
2009-06-04 14:49:37 +00:00
Marek Safar 56331b603d Fixes build.
svn path=/trunk/mcs/; revision=135417
2009-06-04 14:39:59 +00:00
Jb Evain cefad88675 2009-06-04 Jb Evain <[email protected]>
* Makefile: fix the 2.1 profile version.


svn path=/trunk/mcs/; revision=135413
2009-06-04 13:17:25 +00:00
Marek Safar 472d1c4722 2009-06-04 Marek Safar <[email protected]>
* Consts.cs.in: Add NET_4_0 constants.


svn path=/trunk/mcs/; revision=135408
2009-06-04 11:33:57 +00:00
Mark Probst 6cda12925b Disable mini-gc.c because it makes SGen crash.
2009-06-04  Mark Probst  <[email protected]>

        * mini-gc.c: Disable the code because it makes SGen crash.

svn path=/trunk/mono/; revision=135405
2009-06-04 11:28:49 +00:00
Marek Safar 46013d5e5b Should fixed the build.
svn path=/trunk/mcs/; revision=135398
2009-06-04 08:42:04 +00:00
Jb Evain ecedd57486 2009-06-04 Jb Evain <[email protected]>
* resources/SR.resx: adjust file names.
	* Mono.Data.Sqlite.dll.sources: rename from
		net_2_0_Mono.Data.Sqlite.dll.sources.
		Hopefully fixes the build.


svn path=/trunk/mcs/; revision=135395
2009-06-04 07:27:57 +00:00
Rodrigo Kumpera f9e5bb71f6 2009-06-03 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: PropertySig tests.

	* assembly-with-properties.cs: Add property with
	parameters.

svn path=/trunk/mono/; revision=135385
2009-06-04 02:28:05 +00:00
Rodrigo Kumpera e79a53274c 2009-06-03 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement property signature check.

svn path=/trunk/mono/; revision=135384
2009-06-04 02:27:57 +00:00
Mark Probst 1fc79d9141 SGen register saving support for PPC.
2009-06-04  Mark Probst  <[email protected]>

        * sgen-gc.h: Register saving support for PPC.

svn path=/trunk/mono/; revision=135371
2009-06-03 23:08:48 +00:00
Mark Probst 6da2a007c4 Fixed a pthread TLS screwup.
2009-06-04  Mark Probst  <[email protected]>

        * sgen-gc.c: Fixed a pthread TLS screwup.

svn path=/trunk/mono/; revision=135370
2009-06-03 23:06:30 +00:00
Mark Probst 0fcba2de6b Do TLS using pthreads if __thread keyword not supported.
2009-06-04  Mark Probst  <[email protected]>

        * sgen-gc.c: Do TLS using pthread API if __thread keyword is not
        supported.

svn path=/trunk/mono/; revision=135368
2009-06-03 23:02:01 +00:00
Mark Probst a9a32e5ea3 Disable TLA and managed allocation if __thread not supported.
2009-06-04  Mark Probst  <[email protected]>

        * sgen-gc.c: Disable TLA and managed allocation if the __thread
        keyword is not supported.

svn path=/trunk/mono/; revision=135367
2009-06-03 22:59:23 +00:00
Marek Habersack 86ca037972 Forgotten ChangeLog
svn path=/trunk/mcs/; revision=135359
2009-06-03 21:37:00 +00:00
Marek Habersack 7592e14a96 Mono changes:
- renamed all public classes from SQLite* to Sqlite*
	- re-added Mono compatibility code for command string parsing
	- re-applied several patches from the past

svn path=/trunk/mcs/; revision=135357
2009-06-03 21:34:22 +00:00
Marek Habersack 09a5205cd9 - Moved all classes to the Mono.Data.Sqlite namespace.
- Applied changes to make the sources compile (added using statements, modified code to use fully qualified type names in some places)
- Modified AssemblyInfo.cs to reference correct public key, commented out InternalsVisibleTo for the upstream Linq library, changed the
  version to 2.0.0.0

svn path=/trunk/mcs/; revision=135356
2009-06-03 21:33:40 +00:00
Marek Habersack 05225d961d Build will use per-profile source lists
svn path=/trunk/mcs/; revision=135355
2009-06-03 21:33:04 +00:00
Marek Habersack 282de3b7ab Imported version 1.0.61.0 of SQLite.NET
svn path=/trunk/mcs/; revision=135354
2009-06-03 21:32:15 +00:00
Michael Barker 163810f640 2009-05-23 Michael Barker <[email protected]>
* MessageEnumerator.cs:  Added calls to the delegate IMessageEnumerator
	for methods that use a timeout and added exception handling.
	* MessageEnumeratorTest.cs:  Added tests for timeout methods.
	* MessageFactory.cs: Moved TimeSpanToInt32 method to here.
	* RabbitMQMessageEnumerator.cs:  Added Remove/MoveNext methods that include
	timeouts.
	* RabbitMQMessageQueue.cs: Updated to cater for moved TimeSpanToInt32 method
	* MessageEnumeratorExceptionTest.cs:  New
	* QueueReferenceTest.cs: Incorrect namespace for test
	* IMessageEnumerator.cs:  Added additional methods to support operations
	specified by the System.Messaging version.
	* Mono.Messaging_test.dll.sources:  Added MessageEnumeratorExceptionTest.cs
	* Makefile:  Added nunit-mocks.dll to build


svn path=/trunk/mcs/; revision=135338
2009-06-03 18:57:25 +00:00
Jb Evain 9a2c323408 2009-06-03 Jb Evain <[email protected]>
* main.c (dis_code): don't try to locate invalid entry points.


svn path=/trunk/mono/; revision=135337
2009-06-03 18:56:22 +00:00
Jb Evain a4611092b7 2009-06-03 Jb Evain <[email protected]>
* main.c (dis_type): espace namespaces.


svn path=/trunk/mono/; revision=135334
2009-06-03 18:42:49 +00:00
Marek Habersack 3346c35db8 2009-06-03 Marek Habersack <[email protected]>
* MonoSettingsSection.cs: added new property,
	verificationCompatibility, which serves the same purpose as the
	registry key described in http://support.microsoft.com/kb/932552
	(when set to 1 it turns off virtual path validity
	verification). Fixes bug #509163

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

	* VirtualPathUtility.cs: IsValidVirtualPath now checks the value
	of the
	HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\VerificationCompatibility
	registry key when running on Windows and also consults the
	mono-specific system.web/monoSettings configuration section to see
	what is the verificationCompatibility property set to. If either
	of the two is set to 1, Mono will not verify the validity of
	the current request's path. Fixes bug #509163

svn path=/trunk/mcs/; revision=135328
2009-06-03 17:55:10 +00:00
Marek Safar 6f667408d9 Add handling of new net_4_0 profile
svn path=/trunk/mcs/; revision=135326
2009-06-03 17:46:12 +00:00
Marek Safar 80d2ae0f80 2009-06-03 Marek Safar <[email protected]>
* Func.cs: Add 4.0 forwarders.


svn path=/trunk/mcs/; revision=135323
2009-06-03 17:32:14 +00:00
Marek Habersack 8e5619574f 2009-06-03 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: OnFileChanged must check whether the
	modified location is a directory before it decides to ignore it
	when watcher's filter is "?eb.?config". Fixes bug #509450 (see
	also bug #495011)

svn path=/trunk/mcs/; revision=135313
2009-06-03 16:32:10 +00:00
Marek Habersack c635d98504 2009-06-03 Marek Habersack <[email protected]>
* HttpForbiddenHandler.cs: updated the error message to match
	.NET, added requested path and description. Fixes bug #509092

	* HttpException.cs: if trace is not requested, don't output <!--
	following the version information in WriteFileBottom. Fixes bug
	#509475
	GetDefaultErrorMessage appends trace only if showTrace is
	true. Fixes bug #509092

svn path=/trunk/mcs/; revision=135307
2009-06-03 15:44:01 +00:00
Veerapuram Varadhan 4530a2494e 2009-06-03 Veerapuram Varadhan <[email protected]>
* OracleParameterTest.cs: Mark tests for bug #424908 as NotWorking
        as it requires some more thorough debugging.

svn path=/trunk/mcs/; revision=135305
2009-06-03 15:28:59 +00:00
Jb Evain 061e73bd7f update scripts
svn path=/trunk/mcs/; revision=135301
2009-06-03 15:18:06 +00:00
Jb Evain 2c93b521c4 fix the call to mono-api-info
svn path=/trunk/mcs/; revision=135299
2009-06-03 14:59:32 +00:00
Jb Evain 2b18ff4c9c fix resolver
svn path=/trunk/mcs/; revision=135298
2009-06-03 14:57:55 +00:00
Jb Evain 59da8539b1 2009-06-03 Jb Evain <[email protected]>
* Mono.Cecil/MetadataResolver.cs: add support for resolving from
	a ModuleReference.


svn path=/trunk/mcs/; revision=135297
2009-06-03 14:54:44 +00:00
Marek Safar da51131e23 Add 4.0 stuff
svn path=/trunk/mcs/; revision=135292
2009-06-03 13:54:37 +00:00
Marek Safar e43630360d eol-style
svn path=/trunk/mcs/; revision=135290
2009-06-03 13:53:26 +00:00
Jb Evain 84d7e0f629 2009-06-03 Jb Evain <[email protected]>
* Mono.Cecil/BaseAssemblyResolver.cs: look for 4.0.0.0 assemblies.


svn path=/trunk/mcs/; revision=135287
2009-06-03 13:28:56 +00:00
Atsushi Eno af95841abe 2009-06-03 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : that SL2/ML2 does not seem to allow
          null callbacks, so add hacky ones.


svn path=/trunk/mcs/; revision=135285
2009-06-03 13:14:49 +00:00
Marek Safar da9bc59642 New test.
svn path=/trunk/mcs/; revision=135284
2009-06-03 13:10:52 +00:00
Marek Safar 3c21a1ed87 New tests.
svn path=/trunk/mcs/; revision=135283
2009-06-03 13:10:39 +00:00
Marek Safar 2cb65ee488 2009-06-03 Marek Safar <[email protected]>
* generic.cs, typemanager.cs, parameter.cs, convert.cs,
	generic-mcs.cs: Fixed variant type conversions.


svn path=/trunk/mcs/; revision=135282
2009-06-03 13:10:19 +00:00
Zoltan Varga 1118081c4b 2009-06-03 Zoltan Varga <[email protected]>
* marshal.c (get_wrapper_target_class): New helper function.
	(mono_marshal_get_runtime_invoke): Place runtime-invoke wrappers into
	the <Module> class of the image. Fixes #509049.

svn path=/trunk/mono/; revision=135280
2009-06-03 11:27:41 +00:00
Zoltan Varga 9f09810578 Fix the previous change.
svn path=/trunk/mono/; revision=135254
2009-06-02 22:58:42 +00:00
Rodrigo Kumpera da1346e4fd 2009-06-02 Rodrigo Kumpera <[email protected]>
* ILGenerator.cs (EmitCall): Under 2.0 profile ignore optional
	arguments if the method call conv is not vararg.

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

	* ILGeneratorTest.cs: Tests for #509131.

svn path=/trunk/mcs/; revision=135251
2009-06-02 22:30:57 +00:00
Zoltan Varga f0a26a0446 2009-06-03 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Handle file open errors gracefully
	instead of asserting.

svn path=/trunk/mono/; revision=135249
2009-06-02 22:18:09 +00:00
Gonzalo Paniagua Javier b803228aad 2009-06-02 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: KeepAlive check not needed.
	Fixes bug #465613.


svn path=/trunk/mcs/; revision=135246
2009-06-02 22:13:45 +00:00
Zoltan Varga d0da8828d9 2009-06-03 Zoltan Varga <[email protected]>
* profiles/net_4_0.make: Add preliminary net 4.0 profile.

svn path=/trunk/mcs/; revision=135245
2009-06-02 22:11:40 +00:00
Gonzalo Paniagua Javier ef06a7c25b 2009-06-02 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs: unbind the context after every read for keep-alive
	connections.
	Bug #502274 fixed.


svn path=/trunk/mcs/; revision=135241
2009-06-02 21:42:31 +00:00
Marek Habersack 8f225cf892 2009-06-02 Marek Habersack <[email protected]>
* HttpApplication.cs: LocateHandler needs to pass current request
	path and filepath to WebConfigurationManager when retrieving
	system.web/httpHandlers section as only this will guarantee that
	any <location> elements relating to the current request's which
	contain system.web/httpHandlers section will be correctly read and
	used. Also fixes reading httpHandlers section if it's found in
	web.config located in a subdirectory. Fixes bug #509069

svn path=/trunk/mcs/; revision=135237
2009-06-02 21:26:57 +00:00
Bill Holmes bad8da7a7c 2009-06-02 Bill Holmes <[email protected]>
* src/gpath.c (g_find_program_in_path):  While searching on Windows
	  also try additional suffixes .exe, .cmd, .bat, and.com.

	Contributed under MIT/X11 license.



svn path=/trunk/mono/; revision=135235
2009-06-02 21:05:53 +00:00
Veerapuram Varadhan dcd2eb9f91 2009-06-03 Veerapuram Varadhan <[email protected]>
* OracleParameter.cs:  If a non-zero size is passed, update
	the size member but sizeSet is updated only when a non-null
	value is passed.

svn path=/trunk/mcs/; revision=135234
2009-06-02 21:00:18 +00:00
Gonzalo Paniagua Javier a5557351c4 2009-06-02 Gonzalo Paniagua Javier <[email protected]>
* BuildManager.cs: allow deployment of precompiled applications under
	any virtual path, not just the default one used when precompiling.
	Fixes bug #483268.


svn path=/trunk/mcs/; revision=135231
2009-06-02 20:38:02 +00:00
Marek Habersack 6595f580da 2009-06-02 Marek Habersack <[email protected]>
* HttpException.cs: 403 errors get same treatment as 404
	below. Fixes bug #509092

svn path=/trunk/mcs/; revision=135205
2009-06-02 15:26:18 +00:00
Andrés G. Aragoneses 78cae3e4bd * tuner/Mono.Tuner.csproj: Update.
* tuner/Mono.Tuner/InjectSecurityAttributes.cs: Avoid NRE.

svn path=/trunk/mcs/; revision=135204
2009-06-02 15:09:36 +00:00
Marek Safar d2bae0a896 New test.
svn path=/trunk/mcs/; revision=135197
2009-06-02 12:42:56 +00:00
Marek Safar 2e113704e9 2009-06-02 Marek Safar <[email protected]>
A fix for bug #508334
	* codegen.cs: Fixes a crash on invalid string value attribute.


svn path=/trunk/mcs/; revision=135196
2009-06-02 12:42:00 +00:00
Marek Safar 7842809745 2009-06-02 Marek Safar <[email protected]>
* compiler-tester.cs: Add "safe-execution" options.


svn path=/trunk/mcs/; revision=135195
2009-06-02 11:23:45 +00:00
Carlos Alberto Cortez dd31c16dcd 2009-06-01 Carlos Alberto Cortez <[email protected]>
* ToolTip.cs: Call the base implementation in Dispose, but do it
	before anything else to avoid a regression. This way we do the default
	routines related to any System.ComponentModel.Container.
	Fixes #508586.


svn path=/trunk/mcs/; revision=135174
2009-06-02 04:20:11 +00:00
Rodrigo Kumpera 239a7778fa 2009-06-01 Rodrigo Kumpera <[email protected]>
* threads.c (ves_icall_System_Threading_Thread_Sleep_internal):
	Check if the thread was interrupted and proccess it straight away.
	Makes abortion much more responsive.

svn path=/trunk/mono/; revision=135171
2009-06-02 02:25:35 +00:00
Rodrigo Kumpera 9f32aeb0c5 2009-06-01 Rodrigo Kumpera <[email protected]>
* threads.c (mono_thread_execute_interruption): Use atomic cas with
	MonoThread::interruption_requested to match it's counterpart.

	Fixes a hang in abort-stress-1 on a 2 core x86.

	* threads.c (ves_icall_System_Threading_Thread_GetAbortExceptionState):
	Fix warning.

svn path=/trunk/mono/; revision=135170
2009-06-02 01:36:56 +00:00
Sebastien Pouliot 5712ee7b18 2009-06-01 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Avoid possible NRE while settings a
	complete collection.
	* WebResponse_2_1.cs: Use StringComparer.OrdinalIgnoreCase on 
	the prefix Dictionary


svn path=/trunk/mcs/; revision=135169
2009-06-01 23:50:21 +00:00
Rodrigo Kumpera e8fa3094d1 2009-06-01 Rodrigo Kumpera <[email protected]>
Change MonoImage::name_cache to be protected by the image lock
	instead of the loader lock.

	* appdomain.c (deregister_reflection_info_roots): Protect access
	to name_cache.

	* class.c (mono_image_init_name_cache): Change from the loader lock
	to the image lock. Check if the cache wasn't already created.

	* class.c: Change from the loader to the image lock.

	* icall.c (ves_icall_System_Reflection_Assembly_GetNamespaces): Fix
	the code to hold the image lock while iterating over name_cache and
	not go into mono_array_new holding it.

	* metadata-internals.h: Add a comment about this change.

svn path=/trunk/mono/; revision=135168
2009-06-01 23:49:49 +00:00
Rodrigo Kumpera 62a320340d 2009-06-01 Rodrigo Kumpera <[email protected]>
* load-exceptions.cs: Fix thiko.

svn path=/trunk/mono/; revision=135167
2009-06-01 23:49:31 +00:00
Rodrigo Kumpera a9a9e91e59 2009-06-01 Rodrigo Kumpera <[email protected]>
* load-exceptions.cs: Test for #508532.

	* load-missing.il: Ditto.

svn path=/trunk/mono/; revision=135160
2009-06-01 22:02:29 +00:00
Rodrigo Kumpera 16e367d14d 2009-06-01 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_System_Reflection_Assembly_InternalGetType):
	Under the 2.0 profile raise the loader error.

	Fixes #508532.

svn path=/trunk/mono/; revision=135159
2009-06-01 22:02:19 +00:00
Rodrigo Kumpera 64df5a9266 2009-06-01 Rodrigo Kumpera <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Emit the right kind
	of ldind opcode for generic instances so we don't fail for direct wrappers.
	This only affect direct calls.

svn path=/trunk/mono/; revision=135158
2009-06-01 22:02:02 +00:00
Carlos Alberto Cortez 6c3ad79f5e 2009-06-01 Carlos Alberto Cortez <[email protected]>
* ClipboardTest.cs: New test for serializable types.


svn path=/trunk/mcs/; revision=135154
2009-06-01 21:04:35 +00:00
Carlos Alberto Cortez 7a0d5d3331 2009-06-01 Carlos Alberto Cortez <[email protected]>
* Clipboard.cs:
	* XplatUIX11.cs:
	* DataFormats.cs: Implement support for serializable types in our
	clipboard.
	Fixes #357642.


svn path=/trunk/mcs/; revision=135152
2009-06-01 21:03:09 +00:00
Marek Habersack 281b22f9fa 2009-06-01 Marek Habersack <[email protected]>
* HttpException.cs: if custom errors are enabled and the error
	code is 404 show the "standard" 404 error message instead of the
	default custom error mode one. Fixes bug #508649

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

	* BuildManager.cs: when throwing a 404 exception, pass the virtual
	path to the exception constructor.

svn path=/trunk/mcs/; revision=135147
2009-06-01 20:43:24 +00:00
Marek Habersack f0030bbb27 2009-06-01 Marek Habersack <[email protected]>
* AspGenerator.cs: fix mapping of our tag types into
	CodeConstructType. Fixes bug #508570

svn path=/trunk/mcs/; revision=135144
2009-06-01 20:17:55 +00:00
Marek Habersack f247653485 2009-06-01 Marek Habersack <[email protected]>
* MetaModelTest.cs: disabled GetActionPath test - nothing to test
	there.

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

	* MetaModel.cs: GetModel throws InvalidOperationException on
	missing model.
	Implemented GetActionPath and GetTable.

svn path=/trunk/mcs/; revision=135136
2009-06-01 18:35:41 +00:00
Marek Habersack e39f408251 2009-06-01 Marek Habersack <[email protected]>
* ClientScriptManager.cs: WriteHiddenFields doesn't add the id
	attribute to generated input element in the 1.1 profile. Fixes bug
	#508167. Patch from Hubert FONGARNAND
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=135134
2009-06-01 18:22:04 +00:00
Marek Habersack 33404a51a3 Moved Test/System.Web.DynamicData/TestStubTypes.cs to Test/Common/TestStubTypes.cs
svn path=/trunk/mcs/; revision=135133
2009-06-01 18:21:52 +00:00
Marek Habersack 2e0a1fad49 Added custom data sources, updated some MetaModel tests, added Mainsoft web testing framework, added some common classes used by tests, made System.DynamicData_test.dll a friend to System.Web.dll
svn path=/trunk/mcs/; revision=135132
2009-06-01 18:21:35 +00:00
Marek Habersack a38b9350f1 Added nunit.mocks.dll to the set of NUnit libraries used by test targets
svn path=/trunk/mcs/; revision=135131
2009-06-01 18:21:22 +00:00
Marek Safar 812752d82a New test.
svn path=/trunk/mcs/; revision=135125
2009-06-01 16:16:00 +00:00
Marek Safar bbd42ef193 New test.
svn path=/trunk/mcs/; revision=135124
2009-06-01 16:15:02 +00:00
Marek Safar 9a613bd32f 2009-06-01 Marek Safar <[email protected]>
A fix for bug #508334
	* typemanager.cs, parameter.cs, convert.cs, expression.cs, ecore.cs,
	cs-parser.jay: Fully import __arglist modifier.


svn path=/trunk/mcs/; revision=135123
2009-06-01 16:11:18 +00:00
Atsushi Eno c3abee4dfd 2009-06-01 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : WaitForMessage() should not return
	  true when socket input is not available.


svn path=/trunk/mcs/; revision=135117
2009-06-01 10:17:26 +00:00
Atsushi Eno e27bfb8a6c 2009-06-01 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : handle more errors gracefully.


svn path=/trunk/mcs/; revision=135116
2009-06-01 10:16:13 +00:00
Atsushi Eno 56d3f9a51e 2009-06-01 Atsushi Enomoto <[email protected]>
* CustomPeerResolverService.cs : Refresh() now gives readable reply.


svn path=/trunk/mcs/; revision=135114
2009-06-01 09:31:34 +00:00
Atsushi Eno 4fa6a38e3a 2009-06-01 Atsushi Enomoto <[email protected]>
* XmlFormatterSerializer.cs, KnownTypeCollection.cs : collection
	  types does not emit xsi:type when the actual type is different
	  from the nominal serilaization type. To achieve this, introduced
	  the idea of the actual serialization type.

	* XmlObjectSerializerTest.cs : enable interface collection test and
	  add some more test lines.


svn path=/trunk/mcs/; revision=135111
2009-06-01 08:17:24 +00:00
Zoltan Varga f8535d577e 2009-05-31 Zoltan Varga <[email protected]>
* reflection.c (create_dynamic_mono_image): Fix warnings.

	* generic-sharing.c (other_info_equal): Ditto.

svn path=/trunk/mono/; revision=135108
2009-05-31 21:34:47 +00:00
Zoltan Varga 47282075fc 2009-05-31 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Move the creation of the
	output file after the code has been compiled.

svn path=/trunk/mono/; revision=135107
2009-05-31 21:21:35 +00:00
Zoltan Varga 547ebbdb45 2009-05-31 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Get rid of the shared/non-shared got
	entries distinction to simplify the code.

	* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=135106
2009-05-31 21:16:02 +00:00
Zoltan Varga 8b5d441fac 2009-05-30 Zoltan Varga <[email protected]>
* tramp-ppc.c (mono_arch_get_static_rgctx_trampoline): Fix 64 bit support.

svn path=/trunk/mono/; revision=135095
2009-05-30 18:19:00 +00:00
Zoltan Varga 642b03592a 2009-05-29 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

       * template_main.c: Include string.h to define strchr, memcpy,
       and strdup.

svn path=/trunk/mcs/; revision=135093
2009-05-30 13:41:01 +00:00
Rodrigo Kumpera b2e9252bd0 2009-05-29 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: FieldSig tests.

svn path=/trunk/mono/; revision=135088
2009-05-29 21:45:29 +00:00
Rodrigo Kumpera 9ebf95db6a 2009-05-29 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement field signature check.

svn path=/trunk/mono/; revision=135087
2009-05-29 21:45:16 +00:00
Rodrigo Kumpera 56d33ea935 2009-05-29 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: StandAloneSig tests.

	* assembly-with-custommod.il: Added a calli

svn path=/trunk/mono/; revision=135085
2009-05-29 20:50:23 +00:00
Rodrigo Kumpera ed3c4e6349 2009-05-29 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement standalone signature check.

svn path=/trunk/mono/; revision=135084
2009-05-29 20:50:13 +00:00
Marek Safar 45759e780e New tests, updates.
svn path=/trunk/mcs/; revision=135081
2009-05-29 19:44:40 +00:00
Marek Safar 8e2c015847 New tests.
svn path=/trunk/mcs/; revision=135080
2009-05-29 19:44:21 +00:00
Marek Safar cbf32032f2 2009-05-29 Marek Safar <[email protected]>
* generic.cs, typemanager.cs, parameter.cs, ecore.cs, class.cs,
	delegate.cs, generic-mcs.cs: Rewrote type variance checks to
	actually work with closed generic types.


svn path=/trunk/mcs/; revision=135079
2009-05-29 19:44:03 +00:00
Marek Habersack 540708a71f 2009-05-29 Marek Habersack <[email protected]>
* ListItem.cs: when tracking view state is turned on after
	attributes have been set, make sure that the associated state bag
	begins tracking state and that all of its existing items are
	marked as dirty. Do the same after loading view state. Fixes bug
	#507836

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

	* StateBag.cs: made SetDirty (bool) available on 1.1 as
	internal. Fixes bug #507836

svn path=/trunk/mcs/; revision=135057
2009-05-29 10:25:35 +00:00
Atsushi Eno 7bc65322fe 2009-05-29 Atsushi Enomoto <[email protected]>
* CustomPeerResolverService.cs : implement some members.


svn path=/trunk/mcs/; revision=135054
2009-05-29 09:06:35 +00:00
Atsushi Eno 22a8b39441 2009-05-29 Atsushi Enomoto <[email protected]>
* RegisterResponseInfo.cs : it does not always reply lifetime.


svn path=/trunk/mcs/; revision=135053
2009-05-29 09:05:54 +00:00
Atsushi Eno 8519255aae 2009-05-29 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : allow mapping an identical prefix
	  to different xmlns in different element level.

	* XmlBinaryDictionaryWriterTest.cs : added test for failing duplicate
	  namespace declaration in the same element context.


svn path=/trunk/mcs/; revision=135052
2009-05-29 08:12:47 +00:00
Atsushi Eno c48581fd72 2009-05-29 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : allow writing xml/xmlns attributes
	  without specifying their corresponding namespaces.

	* XmlBinaryDictionaryWriter.cs : added test for writing xml/xmlns
	  attributes with null namespace.


svn path=/trunk/mcs/; revision=135051
2009-05-29 07:50:45 +00:00
Marek Habersack 9a0870f6a1 Hush compilation warnings
svn path=/trunk/mcs/; revision=135050
2009-05-29 07:48:14 +00:00
Atsushi Eno fb62ee47c1 2009-05-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : Moved tcp listener accept to OnOpen().
	  I cannot precisely identify when EndRecord should be consumed,
	  so allow it at either at the end of ReadSizedMessage() or on
	  consuming preamble (it's likely handling EndRecord of previous
	  message though).

	  Now duplex IPeerResolverContract communication works between
	  either of .NET/Mono client and .NET/Mono server.


svn path=/trunk/mcs/; revision=135046
2009-05-29 07:27:16 +00:00
Atsushi Eno 5d79d1dc91 2009-05-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : looks like I have added some bogus
	  code. Handle preamble ack on ReadSizedMessage() only at server.
	  Consume EndRecord from server, at client side. Though it is likely
	  changed as it's blocking when mono is at server side.


svn path=/trunk/mcs/; revision=135044
2009-05-29 06:33:50 +00:00
Atsushi Eno 45bf2c7c45 2009-05-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : .NET seems to be based on somewhat
	  different protocol than existing code with related to preamble ack.
	  So changed it to work fine with .NET client (finally).


svn path=/trunk/mcs/; revision=135043
2009-05-29 04:05:16 +00:00
Rodrigo Kumpera 50275053ad 2009-05-28 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Methodref signature tests.

	* assembly-with-signatures.cs: File with vararg call.

	* Makefile: Add new dependency.

svn path=/trunk/mono/; revision=135039
2009-05-29 01:57:21 +00:00
Rodrigo Kumpera 62a79435af 2009-05-28 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement methodref signature check.

svn path=/trunk/mono/; revision=135038
2009-05-29 01:57:12 +00:00
Ankit Jain 5348f6719a Correctly handle global properties. Correctly log
project/build events.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
	Correctly handle global properties. Correctly log
	project/build events.

	* BuildPropertyGroup.cs (Clone): Implement.
	* Engine.cs (globalProperties): Rename to ..
	(global_properties): .. this.
	(currentlyBuildingProjectsStack): New. Used to correctly
	log and raise project/build start/finish events.
	(BuildProjectFile): Override any project global properties
	with explicitly specified ones, here in the param @globalProperties.
	Mark project for reevaluation, which will update the engine's
	global properties also.
	Reset both engine and project's old global properties at the end.
	(UnregisterAllLoggers): Log build finished only if we are currently
	building.
	(StartBuild): Rename to ..
	(StartProjectBuild): .. this. Keeps track of the projects being built
	in the new stack, and logs project and build events accordingly.
	(EndProjectBuild): New. Uses the stack to keep track of projects
	finishing builds, and raises project and build events accordingly.
	(LogProjectStarted): Move here from Project.cs
	(LogProjectFinished): Likewise.

	* Project.cs (Build): Log start of project build.
	Set current directory to the project file's dir, and reset at end.
	(BuildInternal): Don't log here, its done in Build.
	(BuildTarget): Already built targets are keyed by the set of global
	properties that they were built with.
	(GlobalPropertiesToString): New.
	(ResetBuildStatus): 'building' must be true to allow built targets to be reset.
	(RemoveBuiltTargets): Initialize builtTargetKeys in .ctor
	(Evaluate): Remove built targets only if we are currently building and
	build settings are None.
	Merge project's global properties with those of the parent engine.
	Add missing properties from engine's global properties.
	(LogTargetSkipped): Fix format string, add the reqd argument.

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

	* EngineTest.cs (TestGlobalProperties*): New tests
	and some helper methods.
	* ProjectTest.cs (TestResetBuildStatus): Reset twice. Update
	the event counts.

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

	* TestMessageLogger.cs: Add counts for project/build start/finish
	events.

svn path=/trunk/mcs/; revision=135019
2009-05-28 23:22:02 +00:00
Ankit Jain ab0378bf54 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* ConditionFunctionExpression.cs: Add 'HasTrailingSlash' function.
	(HasTrailingSlash): New.

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

	* Conditions.cs (TestHasTrailingSlash1): New.
	(TestUnknownFunction): New.

svn path=/trunk/mcs/; revision=135018
2009-05-28 23:21:40 +00:00
Massimiliano Mantione 4a7cb1f9fb Avoid tracking stacks and emitting allocation caller information if we are already emitting method enter and exit events.
svn path=/trunk/mono/; revision=135002
2009-05-28 21:19:30 +00:00
Zoltan Varga 4222a0512e Revert the last change, the saving and non-saving code is too tighly interleaved
now.

svn path=/trunk/mono/; revision=134993
2009-05-28 20:48:02 +00:00
Mark Probst 1bd5a2f130 Fix SLE10 PPC build.
2009-05-28  Mark Probst  <[email protected]>

	* collection.c (_wapi_collection_init): If pthread_create() fails,
	try again with larger and then with no stack size set.  Fixes
	#470336.

svn path=/trunk/mono/; revision=134985
2009-05-28 19:42:20 +00:00
Zoltan Varga 1a6fa9fed3 2009-05-28 Zoltan Varga <[email protected]>
* reflection-save.c: New file, a copy of reflection.c which will contain
	the reflection.emit AssemblyBuilder.Save related code. Not part of the build
	yet.

svn path=/trunk/mono/; revision=134972
2009-05-28 17:03:00 +00:00
Atsushi Eno db1b22949a 2009-05-28 Atsushi Enomoto <[email protected]>
* RegisterResponseInfo.cs : oops, Marcos was right. .NET returns
	  "Update" element here.


svn path=/trunk/mcs/; revision=134971
2009-05-28 16:58:31 +00:00
Atsushi Eno b1d393553b 2009-05-28 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : for default / shared type map, members are
	  serialized in alphabetical order.


svn path=/trunk/mcs/; revision=134970
2009-05-28 16:53:15 +00:00
Andrés G. Aragoneses e7e0444c15 2009-05-28 Andrés G. Aragoneses <[email protected]>
* Mono.Tuner/InjectSecurityAttributes.cs: show a warning if using
        the MoonlightAssemblyStep but no secattr option is specified.


svn path=/trunk/mcs/; revision=134969
2009-05-28 16:41:08 +00:00
Atsushi Eno 522c7da3b6 2009-05-28 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : generic interface search has to be more
	  complicated. Give kind error message on setting deserialized value.


svn path=/trunk/mcs/; revision=134963
2009-05-28 15:35:32 +00:00
Atsushi Eno b6f13aa839 2009-05-28 Atsushi Enomoto <[email protected]>
* SerializationMap.cs: collection interface cannot be instantiated,
	  so create List<T> (generic) or ArrayList (non-generic) instead.


svn path=/trunk/mcs/; revision=134962
2009-05-28 15:14:38 +00:00
Atsushi Eno 11c5ddbb44 2009-05-28 Atsushi Enomoto <[email protected]>
* ServiceSettingsResponseInfo.cs, RegisterResponseInfo.cs,
	  RefreshResponseInfo.cs, ResolveInfo.cs, UpdateInfo.cs,
	  UnregisterInfo.cs, ResolveResponseInfo.cs, RefreshInfo.cs :
	  set explicit namespaces on DataContract so that their members can
	  be serialized in appropriate namespace (namespaces in
	  MessageBodyMemberAttribute does not apply there).


svn path=/trunk/mcs/; revision=134956
2009-05-28 14:32:36 +00:00
Atsushi Eno d403559714 2009-05-28 Atsushi Enomoto <[email protected]>
* MessageBufferImpl.cs : do not output Action twice.


svn path=/trunk/mcs/; revision=134955
2009-05-28 14:30:23 +00:00
Atsushi Eno cb495e2901 2009-05-28 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : fill ProtectionLevel by
	  OperationContractAttribute.


svn path=/trunk/mcs/; revision=134954
2009-05-28 14:29:37 +00:00
Zoltan Varga fa376f2302 2009-05-28 Zoltan Varga <[email protected]>
* objects.cs: Fix the signature of one of the tests.

svn path=/trunk/mono/; revision=134950
2009-05-28 14:07:07 +00:00
Zoltan Varga 55ad8de7e4 2009-05-28 Zoltan Varga <[email protected]>
* mini.c (mini_create_ftnptr): New helper function, moved here from
	object.c.
	(mini_get_addr_from_ftnptr): Ditto.
	(mini_init): Install the new helpers.

svn path=/trunk/mono/; revision=134948
2009-05-28 13:59:01 +00:00
Zoltan Varga ef17f74458 2009-05-28 Zoltan Varga <[email protected]>
* object-internals.h (MonoRuntimeCallbacks): New structure containing
	callbacks supplied by the runtime.

	* object.c (mono_install_callbacks): New internal function to install
	the callbacks.

	* object.c (mono_create_ftnptr): Move the implementation of this to
	mini/.

	* object.c (mono_get_addr_from_ftnptr): Ditto.

svn path=/trunk/mono/; revision=134947
2009-05-28 13:58:54 +00:00
Marek Habersack 2bdcd3f9d8 2009-05-28 Marek Habersack <[email protected]>
* HttpUtility.cs: fixed UrlDecode for encoded strings which
	should be converted to byte sequences longer than 2 bytes. Fixes
	bug #507666

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

	* HttpUtilityTest.cs: added test for bug #507666

svn path=/trunk/mcs/; revision=134942
2009-05-28 12:34:40 +00:00
Marek Habersack 8691b66d1e 2009-05-28 Marek Habersack <[email protected]>
* FormsAuthenticationModule.cs: if forms authentication login URL
	is not rooted, make it relative to the application root, so that
	MapPath maps it correctly.
	Use String.Compare for checking whether requested URL matches the
	login URL - be case-insensitive when running on Windows or with
	IOMAP in effect.

svn path=/trunk/mcs/; revision=134931
2009-05-28 09:03:28 +00:00
Atsushi Eno a6ea614983 2009-05-28 Atsushi Enomoto <[email protected]>
* machine.config: fix WCF diagnostics section name.


svn path=/trunk/mono/; revision=134930
2009-05-28 07:25:15 +00:00
Atsushi Eno c4295157ad 2009-05-28 Atsushi Enomoto <[email protected]>
* MessageBufferImpl.cs : it did not copy headers.
	* Message.cs : remove 2_1 conditional implementation for buffered
	  copy and hence remove bogus code.


svn path=/trunk/mcs/; revision=134929
2009-05-28 06:56:48 +00:00
Atsushi Eno e788908b53 2009-05-28 Atsushi Enomoto <[email protected]>
* MessageProperties.cs : copy argument is wrong.


svn path=/trunk/mcs/; revision=134928
2009-05-28 05:49:25 +00:00
Martin Baulig 336d6582df Correctly initialize the debugger when embedding Mono.
2009-05-28  Martin Baulig  <[email protected]>

	Correctly initialize the debugger when embedding Mono.

	* mdb-debug-info32.s, mdb-debug-info64.s: Add a global variable
	`MONO_DEBUGGER__using_debugger' to the `.mdb_debug_info' section;
	see documentation in mini_debug_running_inside_mdb().

	* debug-debugger.c
	(mini_debug_running_inside_mdb): New function to check whether
	we're running inside mdb.

	* mini.c (mini_init): Call mini_debugger_init() if we're running
	inside the debugger.

	* driver.c (mono_main): Moved the call to mini_debugger_init()
	into mini_init() to make this work when embedding Mono.

	* debug-debugger.c (mini_debugger_init): Warn about duplicate
	calls to mini_debugger_init().

	* mini.h: Rename mono_debugger_init() -> mini_debugger_init(),
	mono_debugger_main() -> mini_debugger_main() and put them inside a
	`MONO_DEBUGGER_SUPPORTED' conditional.

svn path=/trunk/mono/; revision=134926
2009-05-28 05:12:18 +00:00
Martin Baulig 1ac0c473fb Add missing 'MONO_DEBUGGER_SUPPORTED' conditional.
svn path=/trunk/mono/; revision=134925
2009-05-28 04:35:13 +00:00
Martin Baulig a16b96be66 Correctly initialize the debugger when embedding Mono.
2009-05-27  Martin Baulig  <[email protected]>

	Correctly initialize the debugger when embedding Mono.

	* mini.c (mini_init): Call mono_debugger_init() if we're running
	inside the debugger.

	* driver.c (mono_main): Moved the call to mono_debugger_init()
	into mini_init(); `mono_debug_init (MONO_DEBUG_FORMAT_DEBUGGER)'
	sets the mono_debug_using_mono_debugger () flag for us, so we can
	do the mono_debugger_init() call in mini_init().

svn path=/trunk/mono/; revision=134921
2009-05-28 02:55:22 +00:00
Rodrigo Kumpera d5a725c121 2009-05-27 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: Tests for parameters and generics

	* assembly-with-custommod.il: Added more methods to use
	in the tests.

svn path=/trunk/mono/; revision=134906
2009-05-28 00:05:48 +00:00
Rodrigo Kumpera ac6ea85156 2009-05-27 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_return_type): Proper byref check.
	* metadata-verify.c (is_valid_method_signature): Check for zero arity
	generic signatures and method params.

svn path=/trunk/mono/; revision=134905
2009-05-28 00:05:27 +00:00
Rodrigo Kumpera dbc8ae51eb 2009-05-27 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: More signature tests.

	* assembly-with-custommod.il: File with custom mods.

	* Makefile: Add new dependency.

svn path=/trunk/mono/; revision=134896
2009-05-27 22:26:19 +00:00
Rodrigo Kumpera d6d0f992ab 2009-05-27 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (decode_signature_header): Fix bounds check.

	* metadata-verify.c (parse_custom_mods): Check custom mods.

	* metadata-verify.c (parse_type): Do initial basic verification
	of valid values.

	* metadata-verify.c (is_valid_method_signature): Parse the generic
	param count.

svn path=/trunk/mono/; revision=134895
2009-05-27 22:26:09 +00:00
Rodrigo Kumpera a48378654c 2009-05-26 Rodrigo Kumpera <[email protected]>
* mini-trampolines.c: Kill mono_find_delegate_trampoline_by_addr as
	this is no longer in use.
	* mini.h: Same.

svn path=/trunk/mono/; revision=134894
2009-05-27 22:25:55 +00:00
Geoff Norton 660fc4073c 2009-05-27 Geoff Norton <[email protected]>
* src/gfile-posix.c: Fix g_get_current_dir on amd64

svn path=/trunk/mono/; revision=134889
2009-05-27 22:02:35 +00:00
Marek Habersack 9de8e1df99 2009-05-27 Marek Habersack <[email protected]>
* Makefile (LIB_MCS_FLAGS): added support for defining the DEBUG
	symbol on compiler command line.

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

	* PatternParser.cs: if Match is passed an empty path, do not
	attempt to match the Url segments, skip to defaults matching right
	away.

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

	* RouteCollectionTest.cs: added a test for routes from
	NerdDinner.

svn path=/trunk/mcs/; revision=134877
2009-05-27 20:53:58 +00:00
Alan McGovern ca37ada5e3 2009-05-27 Alan McGovern <[email protected]>
* class.cs, decl.cs, delegate.cs, parameter.cs: 
        Fix the build by replacing the use of 'var' with the actual
type.


svn path=/trunk/mcs/; revision=134867
2009-05-27 19:27:02 +00:00
Jackson Harper 7ac381196d * MoonIsolatedStorageFile.cs: Allow paths in search patterns.
svn path=/trunk/mcs/; revision=134860
2009-05-27 18:12:27 +00:00
Miguel de Icaza 228b3d0442 Up
svn path=/trunk/mono/; revision=134848
2009-05-27 16:37:26 +00:00
Rodrigo Kumpera dff3e7543b 2009-05-27 Rodrigo Kumpera <[email protected]>
* TypeDef.cs: Add field method_list to preserve definition
	order of methods when emiting the PE file.

svn path=/trunk/mcs/; revision=134840
2009-05-27 15:45:32 +00:00
Marek Safar 6c035e225a New tests, updates
svn path=/trunk/mcs/; revision=134833
2009-05-27 14:12:28 +00:00
Marek Safar d87c6385b1 2009-05-27 Marek Safar <[email protected]>
* generic.cs, parameter.cs, decl.cs, ecore.cs, class.cs, delegate.cs
    cs-parser.jay, generic-mcs.cs: Report wrong variant types declarations.
	  
	* driver.cs, rootcontext.cs, report.cs: Add 3.0 language version
	filter.


svn path=/trunk/mcs/; revision=134832
2009-05-27 14:11:59 +00:00
Zoltan Varga 83b5c0539d 2009-05-27 Zoltan Varga <[email protected]>
* configure.in: Disable USE_MUNMAP on ppc to work around #504411.

svn path=/trunk/mono/; revision=134828
2009-05-27 12:24:13 +00:00
Sebastien Pouliot 86ae882387 2009-05-27 Sebastien Pouliot <[email protected]>
* XmlReaderSettings.cs: Set prohibitDtd when changing the value 
	of DtdProcessing. Will fix a few Moonlight DRT tests


svn path=/trunk/mcs/; revision=134827
2009-05-27 11:43:29 +00:00
Zoltan Varga 558f3ac1ec 2009-05-27 Zoltan Varga <[email protected]>
* AppDomain.cs (DoAssemblyResolve): Fix recursion detection. Fixes #507003.

svn path=/trunk/mcs/; revision=134824
2009-05-27 11:02:03 +00:00
Atsushi Eno dab61630c2 2009-05-27 Atsushi Enomoto <[email protected]>
* ResolveInfo.cs : argument check.

	* PeerCustomResolverBindingElement.cs : some argument check.


svn path=/trunk/mcs/; revision=134821
2009-05-27 08:13:02 +00:00
Atsushi Eno 1772bc40c6 2009-05-27 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : the serializer somehow leaves binary
	  xml open, so close the writer as well as open elements.
	* TcpDuplexSessionChannel.cs : clear write buffer on each operation.
	  Do not output EndRecord and SizedMessage at a time.


svn path=/trunk/mcs/; revision=134820
2009-05-27 07:38:08 +00:00
Rodrigo Kumpera 15f7a51f07 2009-05-26 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: test for bug #506757.

svn path=/trunk/mcs/; revision=134811
2009-05-26 22:51:11 +00:00
Rodrigo Kumpera 8a33d428ca 2009-05-26 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Virtual methods should be
	discarded based on their most specific definition so we set the method_slots
	array before checking if the method is acceptable or not.

	Fixes #506757.

svn path=/trunk/mono/; revision=134810
2009-05-26 22:48:01 +00:00
Zoltan Varga bef447594f 2009-05-27 Zoltan Varga <[email protected]>
* CultureInfoTest.cs: Fix the net 1.1 build.

svn path=/trunk/mcs/; revision=134807
2009-05-26 22:06:32 +00:00
Zoltan Varga ede16d7e33 2009-05-27 Zoltan Varga <[email protected]>
* Makefile.am: Disable the test_messages test as it fails on the
	buildbot.

svn path=/trunk/mono/; revision=134806
2009-05-26 22:04:27 +00:00
Zoltan Varga 3ff3ed2ea6 2009-05-26 Zoltan Varga <[email protected]>
* shared.c (_wapi_shm_file): Avoid creating a .wapi directory here, create
	it in _wapi_shm_file_open (), since platforms using posix shm don't need it.

svn path=/trunk/mono/; revision=134798
2009-05-26 21:09:23 +00:00
Zoltan Varga 779153d819 2009-05-26 Zoltan Varga <[email protected]>
* mini-sparc.c (add_outarg_load): Fix the sparc build.

svn path=/trunk/mono/; revision=134797
2009-05-26 21:09:14 +00:00
Mark Probst d43b7d7a58 Free the old array when resizing a mono_ptr_array.
2009-05-26  Mark Probst  <[email protected]>

        * icall.c: Free the old array when resizing a mono_ptr_array.

svn path=/trunk/mono/; revision=134796
2009-05-26 21:05:26 +00:00
Andrés G. Aragoneses 84313ee6c5 r: spouliot
2009-05-26  Andrés G. Aragoneses  <[email protected]>

        * AssemblyInfo.cs: Add InternalsVisibleTo for MoonAtkBridge
        under a MOON_A11Y_INTERNAL_HACK define.
	* Makefile: Handling of the MOON_A11Y_INTERNAL_HACK env var.


svn path=/trunk/mcs/; revision=134789
2009-05-26 20:00:02 +00:00
Andrew Jorgensen 807a05fe98 Makefile: Fixed dist from last commit here
svn path=/trunk/mcs/; revision=134782
2009-05-26 18:23:00 +00:00
Mark Probst 5f8cd3682e Use mono_object_hash() for hashes with object keys.
2009-05-26  Mark Probst  <[email protected]>

        * reflection.c (create_dynamic_mono_image): Use mono_object_hash()
        for the hashes whose keys are managed objects.

svn path=/trunk/mono/; revision=134778
2009-05-26 16:59:24 +00:00
Marek Safar e2b31c9f8e New test.
svn path=/trunk/mcs/; revision=134777
2009-05-26 16:37:15 +00:00
Marek Safar 1c61efc247 2009-05-26 Rodrigo Kumpera <[email protected]>
Marek Safar  <[email protected]>

	A fix for bug #377509
	* parameter.cs: Use predefined and not empty name for implicit
	setters.


svn path=/trunk/mcs/; revision=134776
2009-05-26 16:36:46 +00:00
Zoltan Varga 5eb89e6856 2009-05-26 Zoltan Varga <[email protected]>
* CMakeLists.txt: Implement AC_OUTPUT, creation of config.make, etc.

svn path=/trunk/mono/; revision=134775
2009-05-26 16:25:06 +00:00
Mark Probst 5bb6e7f1dc 2009-05-26 Mark Probst <[email protected]>
* Thread.cs: Don't set the execution context when creating a
        thread because the _ec member is thread static and we set the
        wrong one.  It's now set by the runtime.  We just provide the
        correct one.

        * Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=134773
2009-05-26 16:06:58 +00:00
Mark Probst fe3460872a The execution context is now set by the runtime.
2009-05-26  Mark Probst  <[email protected]>

        * object-internals.h, threads.c: Set the execution context on
        thread start here, not in corlib.

        * appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=134772
2009-05-26 16:06:35 +00:00
Veerapuram Varadhan 7550c30a9a New file corresponding to r134765
svn path=/trunk/mcs/; revision=134770
2009-05-26 16:04:53 +00:00
Veerapuram Varadhan cda6fb90f3 2009-05-26 Veerapuram Varadhan <[email protected]>
* TdsComm.cs (Append):  When appending strings of length bigger than
	output buffer, calculate and iterate over the strings according to
	the output buffer length.  Fixes ArgumentOutOfRangeException.

svn path=/trunk/mcs/; revision=134769
2009-05-26 16:02:01 +00:00
Veerapuram Varadhan 3c2064f7a9 2009-05-26 Veerapuram Varadhan <[email protected]>
* TdsBulkCopy.cs (WriteParameterInfo): Update default precision from 28 to 29.

svn path=/trunk/mcs/; revision=134768
2009-05-26 16:01:45 +00:00
Veerapuram Varadhan 23de135ada 2009-05-26 Veerapuram Varadhan <[email protected]>
* TdsComm.cs (Append): When appending smalldatetime values, cast value of
	days to short instead of ushort.  Fixes Tds error in RPC packet.

	* Tds70.cs (WriteParameterInfo): Instead of IsLargetType, compare only
	the types that can take 0xFFFF as size if value is null.

svn path=/trunk/mcs/; revision=134767
2009-05-26 16:01:31 +00:00
Veerapuram Varadhan 04aecd285a 2009-05-26 Veerapuram Varadhan <[email protected]>
* TdsMetaParameter.cs (GetMetaType): If param is Nullable, use IntN instead
	of BigInt for column type.

svn path=/trunk/mcs/; revision=134766
2009-05-26 16:01:17 +00:00
Veerapuram Varadhan 7b01ff9a50 2009-05-26 Veerapuram Varadhan <[email protected]>
** Fixes #382734
	* Tds80.cs: Consider queries with Parameters as RPCs and avoid formatting
	param values as strings.  Fixes issues with locale specific string
	formatting/conversions.

	* TdsRpcProcId.cs: New - enum of rpc Ids to use with RPC packet type.

svn path=/trunk/mcs/; revision=134765
2009-05-26 16:00:45 +00:00
Sebastien Pouliot 0bca300863 2009-05-26 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: Add internal WebHeaderCollection. Change
	signature for OpenPolicyReadAsync to take an addtional object
	* WebResponse_2_1.cs: Add internal WebHeaderCollection


svn path=/trunk/mcs/; revision=134764
2009-05-26 15:58:33 +00:00
Zoltan Varga c364d0554a 2009-05-26 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Always write out C style symbols for
	methods.

svn path=/trunk/mono/; revision=134759
2009-05-26 14:24:21 +00:00
Marek Habersack 6629ef8e78 2009-05-26 Marek Habersack <[email protected]>
* Test/System.Web.UI/ScriptReferenceBaseTest.cs: added tests for
	ReplaceExtension

	* System.Web.Extensions_test.dll.sources: added
	System.Web.UI/ScriptReferenceBaseTest.cs

svn path=/trunk/mcs/; revision=134757
2009-05-26 12:42:15 +00:00
Atsushi Eno 7660037690 2009-05-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : there was a miscalculation on the
	  length of the SizedMessage in the output.


svn path=/trunk/mcs/; revision=134756
2009-05-26 12:33:36 +00:00
Marek Habersack 9cb8f88de9 2009-05-26 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	System.Web.UI/ScriptReferenceBase.cs

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

	* ScriptReferenceBase.cs: implemented (3.5 SP1)

	* ScriptReference.cs: now inherits from the ScriptReferenceBase
	class. Implemented all the required methods, removed some
	properties which now live in the base class.

	* ScriptManager.cs: code refactoring - moved parts of script
	registration code to ScriptReference

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

	* ListControlDesigner.cs: updated to match MSDN specs, added 2.0
	methods. Used in the latest AjaxControlToolkit.

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

	* System.Design.dll.sources: added
	System.Web.UI.Design.WebControls/ListControlDesigner.cs

svn path=/trunk/mcs/; revision=134754
2009-05-26 12:16:56 +00:00
Atsushi Eno 7f49907597 2009-05-26 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : use sane default timeout.
	* PeerCustomResolverBindingElement.cs : check timeout arg sanity.
	* TcpDuplexSessionChannel.cs : ditto.


svn path=/trunk/mcs/; revision=134749
2009-05-26 10:25:38 +00:00
Marek Habersack a7d02457a9 2009-05-26 Marek Habersack <[email protected]>
* AspGenerator.cs: before including a file specified with the
	<!--#include file="" --> directive, check if it's within the
	current application's root.

svn path=/trunk/mcs/; revision=134747
2009-05-26 10:01:59 +00:00
Atsushi Eno d94140ff71 2009-05-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : It seems that buffered stream channel
	  only accepts buffered messages, so do as such for write buffers.
	  Add RelatesTo header.


svn path=/trunk/mcs/; revision=134745
2009-05-26 09:54:44 +00:00
Atsushi Eno 0dab47294e 2009-05-26 Atsushi Enomoto <[email protected]>
* OperationContext.cs : IncomingMessage* properties should work
	  for non-reply channels as well.


svn path=/trunk/mcs/; revision=134744
2009-05-26 09:54:27 +00:00
Atsushi Eno ab2cc8b39b 2009-05-26 Atsushi Enomoto <[email protected]>
* DuplexSessionChannelBase.cs, DuplexChannelBase.cs:
	  rename from former to latter.

	* System.ServiceModel.dll.sources: cosmetic file renaming.


svn path=/trunk/mcs/; revision=134743
2009-05-26 07:55:32 +00:00
Zoltan Varga 7890c4d61c 2009-05-26 Zoltan Varga <[email protected]>
* CMakeLists.txt: implement arm fpu detection, add vfp detection as
	well.

svn path=/trunk/mono/; revision=134737
2009-05-26 00:46:19 +00:00
Carlos Alberto Cortez 1410581e22 * ColorDialog.cs: Actually add the help button to the form, so it can
be visible.
	Fixes #478555.

2009-05-25  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=134736
2009-05-26 00:39:19 +00:00
Zoltan Varga b73f54ca71 2009-05-26 Zoltan Varga <[email protected]>
* CMakeLists.txt: Add arm support.

svn path=/trunk/mono/; revision=134731
2009-05-25 22:51:36 +00:00
Zoltan Varga ca00e5922c 2009-05-26 Zoltan Varga <[email protected]>
* CMakeLists.txt: New file.

svn path=/trunk/mono/; revision=134730
2009-05-25 22:47:44 +00:00
Rodrigo Kumpera cc1aa1dacc 2009-05-25 Rodrigo Kumpera <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Fix the precision of
	long_conv_to_r_un to 64 bits.

	* cpu-x86.md: Increase the instruction size due to the changes.

	* iltests.il.in: Add regression test.

	Fixes #467201.

svn path=/trunk/mono/; revision=134729
2009-05-25 22:44:07 +00:00
Rodrigo Kumpera 51547c2092 2009-05-25 Rodrigo Kumpera <[email protected]>
* objects.cs: Move the previous test from basic.cs to here.

svn path=/trunk/mono/; revision=134728
2009-05-25 22:43:54 +00:00
Rodrigo Kumpera 9c288a5714 This my comment leftovers day
svn path=/trunk/mono/; revision=134726
2009-05-25 21:06:29 +00:00
Rodrigo Kumpera 7487412cf2 2009-05-25 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_fields): Don't mark simd types as having
	16 bytes alignment as the whole runtime doesn't support.

svn path=/trunk/mono/; revision=134723
2009-05-25 20:57:28 +00:00
Carlos Alberto Cortez 41d17371c4 2009-05-25 Carlos Alberto Cortez <[email protected]>
* PrintPreviewDialog.cs: Don't use Dock.Fill for the
	PrintPreviewControl, since it will be hidden in the top by our
	toolbar. Use manual location and anchoring instead.
	Fixes #474889.


svn path=/trunk/mcs/; revision=134720
2009-05-25 19:18:53 +00:00
Rodrigo Kumpera 5136bd47ed 2009-05-25 Rodrigo Kumpera <[email protected]>
* basic.cs: Add regression test for #506915.

svn path=/trunk/mono/; revision=134715
2009-05-25 18:55:07 +00:00
Rodrigo Kumpera b372a26e2d 2009-05-25 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): When doing the ldobj+stobj
	optimization we must check the bb of the first byte of stobj as
	it's the only one set in cil_offset_to_bb.

	Fixes #506915.

svn path=/trunk/mono/; revision=134713
2009-05-25 18:40:23 +00:00
Rodrigo Kumpera 90ba3f5046 Forgot to report sturious printf
svn path=/trunk/mono/; revision=134712
2009-05-25 18:40:04 +00:00
Rodrigo Kumpera 2ca6ddb886 2009-05-25 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (safe_read): Use endian safe read macros.

svn path=/trunk/mono/; revision=134711
2009-05-25 18:39:36 +00:00
Michael Barker 0420f9d39b 2009-05-25 Michael Barker <[email protected]>
* Removed amqp spec files and modified generated code to fix 
licensing 
    issues.

svn path=/trunk/mcs/; revision=134710
2009-05-25 18:37:34 +00:00
Carlos Alberto Cortez ae76ce263b 2009-05-25 Carlos Alberto Cortez <[email protected]>
* FileDialog.cs: When saving the size of the dialog, use the
	ClientSize instead of Size, so we have always the same size for the
	form. Patch by Alex Shulgin.
	Fixes #503064.


svn path=/trunk/mcs/; revision=134697
2009-05-25 16:15:17 +00:00
Zoltan Varga 34e8d2753e 2009-05-25 Zoltan Varga <[email protected]>
* image-writer.c: Fix pointer directive on ppc64.

svn path=/trunk/mono/; revision=134692
2009-05-25 14:44:05 +00:00
Zoltan Varga 17dc0868e9 2009-05-25 Zoltan Varga <[email protected]>
* object.c (mono_create_ftnptr): Don't allocate from the code mempool since
	it is read-only when using full aot.

svn path=/trunk/mono/; revision=134689
2009-05-25 14:08:04 +00:00
Carlos Alberto Cortez 67e5b19697 2009-05-25 Carlos Alberto Cortez <[email protected]>
* MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
	show a beep, similar to what .net does. 
	Fixes #473725.


svn path=/trunk/mcs/; revision=134688
2009-05-25 13:58:30 +00:00
Atsushi Eno 912e42fd14 2009-05-25 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : reader does not always return full
	  buffer (depending on the stream).


svn path=/trunk/mcs/; revision=134687
2009-05-25 13:14:30 +00:00
Atsushi Eno bd372ca720 2009-05-25 Atsushi Enomoto <[email protected]>
* PeerNode.cs : if Resolve() returns no address, create a new peer
	  address here, and shut it down when it is closed.

	* PeerDuplexChannel.cs, PeerOutputChannel.cs : use new PeerNode.ctor.


svn path=/trunk/mcs/; revision=134686
2009-05-25 13:12:02 +00:00
Atsushi Eno 53ca32f688 2009-05-25 Atsushi Enomoto <[email protected]>
* PeerCustomResolverBindingElement.cs : (Resolve) returned addresses
	  could be null.


svn path=/trunk/mcs/; revision=134685
2009-05-25 13:01:17 +00:00
Marek Habersack e0f0a9dd5c 2009-05-25 Marek Habersack <[email protected]>
* UrlPattern.cs: removed - replaced by PatternParser below.

	* RouteValueDictionaryExtensions.cs: added - some shortcuts for
	using RouteValueDictionary in PatternParser

	* Route.cs: use the new PatternParser.
	Factored out ProcessConstraint into ProcessConstraintInternal so
	that the latter can be used by the PatternParser class.
	Added parameter checks in ProcessConstraint.

	* PatternTokenType.cs: added

	* PatternToken.cs: added a helper class for the pattern parser.

	* PatternParser.cs: added. New implementation of url
	parser/matcher/generator which fixes all URL isues known so
	far. Fixes bug #504378

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

	* System.Web.Routing_test.dll.sources: added
	System.Web.Routing/AssertExtensions.cs

	* System.Web.Routing.dll.sources: added
	System.Web.Routing/PatternParser.cs
	System.Web.Routing/PatternToken.cs
	System.Web.Routing/PatternTokenType.cs
	System.Web.Routing/RouteValueDictionaryExtensions.cs

	removed
	System.Web.Routing/UrlPattern.cs

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

	* RouteTest.cs: added several tests for GetVirtualPath,
	GetRouteData, ProcessConstraint and refactored some tests.

	* RouteCollectionTest.cs: added several tests for GetVirtualPath

	* AssertExtensions.cs: added some methods to make code testing for
	exception throws look nicer.

svn path=/trunk/mcs/; revision=134682
2009-05-25 12:38:37 +00:00
Atsushi Eno d1f95e4190 2009-05-25 Atsushi Enomoto <[email protected]>
* PeerResolverSerializationTest.cs : new test for general
	  serialization tests.

	* System.ServiceModel.dll_test.sources:
	  added PeerResolverSerializationTest.cs.


svn path=/trunk/mcs/; revision=134672
2009-05-25 08:17:11 +00:00
Atsushi Eno 9df6e71659 2009-05-25 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, XmlFormatterSerializer.cs :
	  collection types should not output xsi:type e.g. IList<T> should
	  not exposed xsi:type as xsi:type=List`1.


svn path=/trunk/mcs/; revision=134670
2009-05-25 08:14:58 +00:00
Atsushi Eno 148d3ddbf3 2009-05-23 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : fix regression on stream consumption
	  excess.


svn path=/trunk/mcs/; revision=134669
2009-05-25 07:44:29 +00:00
Miguel de Icaza 42c4bad64b Forgot this
svn path=/trunk/mono/; revision=134653
2009-05-24 16:59:34 +00:00
Miguel de Icaza 62a3941c8f 2009-05-24 Miguel de Icaza <[email protected]>
* Disable mono/docs build if we disabled the mcs build.

svn path=/trunk/mono/; revision=134651
2009-05-24 16:27:19 +00:00
Miguel de Icaza 0d1fb73402 Report glib in use as well
svn path=/trunk/mono/; revision=134650
2009-05-24 16:08:46 +00:00
Robert Jordan 8e4d16bf5f 2009-05-24 Robert Jordan <[email protected]>
* GenericTest.cs: differentiate between "Test(int)" and
	"Test<int>(int)" to prove that the correct method is invoked.

svn path=/trunk/mcs/; revision=134649
2009-05-24 14:06:26 +00:00
Robert Jordan b6df9d8ee1 2009-05-24 Robert Jordan <[email protected]>
* GenericTest.cs (TestCrossAppDomainChannel): disable on MS.NET as
	some generic calls do not seem to be supported anymore. It looks
	like a bug, though, since the same tests are passing when performed
	over the TCP channel.

svn path=/trunk/mcs/; revision=134648
2009-05-24 13:47:34 +00:00
Zoltan Varga 7d1b861368 2009-05-24 Zoltan Varga <[email protected]>
* image-writer.c (asm_writer_emit_section_change): Avoid using
	.bss subsections on ppc too.

svn path=/trunk/mono/; revision=134647
2009-05-24 13:37:47 +00:00
Robert Jordan 86da8ea29d 2009-05-24 Robert Jordan <[email protected]>
* GenericTest.cs (TestTcpChannel): create a unique channel and
	unregister it upon termination. Fixes issues that were uncovered
	by the NUnit upgrade (see Atsushi's changelogs below).


svn path=/trunk/mcs/; revision=134646
2009-05-24 12:46:29 +00:00
Zoltan Varga 96d362f56a 2009-05-24 Zoltan Varga <[email protected]>
* */CMakeLists.txt: Add beginnings of a cmake based build system.

svn path=/trunk/mono/; revision=134645
2009-05-24 01:25:53 +00:00
Michael Barker 3cc1728cbd 2009-05-23 Michael Barker <[email protected]>
* QueueReferenceTest.cs: Incorrect namespace for test

svn path=/trunk/mcs/; revision=134640
2009-05-23 17:30:32 +00:00
Jb Evain 9c2de73ad5 fix name
svn path=/trunk/mcs/; revision=134639
2009-05-23 16:27:17 +00:00
Carlos Alberto Cortez 040a03e17d 2009-05-23 Carlos Alberto Cortez <[email protected]>
* ContainerControl.cs:
	* MenuStrip.cs
	* ToolStrip.cs: Implicit mnemonic processing should happen for every
	ToolStrip child, not only for MenuStrip, so we are going to do that in
	ToolStrip.ProcessMnemonic, where we already had that exactly
	functionality, but we are only just checking that either this instance
	is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
	remove the extra code, since we are not going to use it now.
	Fixes the remaining bits of #503663.


svn path=/trunk/mcs/; revision=134638
2009-05-23 15:51:44 +00:00
Zoltan Varga 19d257db67 Fix emit_pointer_unaligned ().
svn path=/trunk/mono/; revision=134637
2009-05-23 14:33:51 +00:00
Geoff Norton f7729d982f fix the build
svn path=/trunk/mono/; revision=134636
2009-05-23 14:32:59 +00:00
Zoltan Varga fd78f12cd2 Fix the last change for real.
svn path=/trunk/mono/; revision=134635
2009-05-23 14:21:08 +00:00
Zoltan Varga 6b374fd7c4 2009-05-23 Zoltan Varga <[email protected]>
* image-writer.c: Fix the definition of TARGET_ASM_....

svn path=/trunk/mono/; revision=134634
2009-05-23 14:13:46 +00:00
Zoltan Varga 9b441dd579 2009-05-23 Zoltan Varga <[email protected]>
* image-writer.c: Fix the emission of assembler directives in the last
	change.

svn path=/trunk/mono/; revision=134633
2009-05-23 14:00:37 +00:00
Zoltan Varga b06c192ecf 2009-05-23 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_emit_exceptions): Increase the size of the
	exception throwing code to accomodate ppc64.

	* tramp-ppc.c (mono_arch_get_nullified_class_init_trampoline): Increase the
	size to work on ppc64 too.

	* mini-ppc.h (MonoCompileArch): Enable static rgctx trampolines on ppc64
	too.

svn path=/trunk/mono/; revision=134632
2009-05-23 13:16:21 +00:00
Zoltan Varga 8b5d52cc26 2009-05-23 Zoltan Varga <[email protected]>
* image-writer.c: Clean up the #ifdef hell a bit by adding defines for
	the assembler dialect instead of using platform specific defines.

svn path=/trunk/mono/; revision=134631
2009-05-23 10:26:31 +00:00
Rodrigo Kumpera 80262058cc 2009-05-22 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: More tests for method def signatures.

svn path=/trunk/mono/; revision=134628
2009-05-23 00:45:00 +00:00
Rodrigo Kumpera 7e7c374cd9 2009-05-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_method_signature): Verify parts
	of the return type. Provide an error message in case of failure.

svn path=/trunk/mono/; revision=134627
2009-05-23 00:44:51 +00:00
Rodrigo Kumpera b3ea62b413 2009-05-22 Rodrigo Kumpera <[email protected]>
* cli-blob-tests.md: New file for blob signature tests.

	* Makefile: Update for new test source.

svn path=/trunk/mono/; revision=134626
2009-05-23 00:44:37 +00:00
Rodrigo Kumpera 8493dcfdfb 2009-05-22 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Added blob.i to make it easier to locate signatures to
	mess around.

svn path=/trunk/mono/; revision=134625
2009-05-23 00:44:26 +00:00
Rodrigo Kumpera 3b5bb19029 2009-05-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_method_signature): Verify the call conv.

svn path=/trunk/mono/; revision=134624
2009-05-23 00:44:16 +00:00
Rodrigo Kumpera ec4bcaea4b 2009-05-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Include the size prefix in the bounds check.

svn path=/trunk/mono/; revision=134623
2009-05-23 00:44:03 +00:00
Zoltan Varga d88f73f1f8 2009-05-22 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add new net 4.0 files.

svn path=/trunk/mcs/; revision=134622
2009-05-22 21:29:38 +00:00
Zoltan Varga 3b35373c29 2009-05-22 Zoltan Varga <[email protected]>
* Tuple.cs Tuples.cs: New files.

svn path=/trunk/mcs/; revision=134621
2009-05-22 21:29:18 +00:00
Zoltan Varga 0c8d915cd1 2009-05-22 Zoltan Varga <[email protected]>
* IStructuralComparable.cs IStructuralEquatable.cs: New files.

svn path=/trunk/mcs/; revision=134620
2009-05-22 21:28:58 +00:00
Miguel de Icaza 25b9291fdf forgot this one
svn path=/trunk/mono/; revision=134619
2009-05-22 21:12:34 +00:00
Miguel de Icaza 66c772d6ea Update parameters for PS3
svn path=/trunk/mono/; revision=134618
2009-05-22 21:06:06 +00:00
Michael Barker c9adcf7768 2009-05-22 Michael Barker <[email protected]>
* man.1: Added documentation for MONO_MESSAGING_PROVIDER environment
	variable.


svn path=/trunk/mono/; revision=134617
2009-05-22 20:58:37 +00:00
Miguel de Icaza 4f166b7c76 2009-05-22 Miguel de Icaza <[email protected]>
* wapi_glob.c: Do not need sys/param.h anymore, we now use the
	POSIX PATH_MAX instead of BSD's MAXPATHLEN

	* handles.c: Do not pull a reference to sockets if they are
	disabled.

	* sockets.c: Allow for ports to define their own ioctlsocket. 

	* wthreads.c: Remove obsolete code that I recently introudced (the
	hook for mono_register_thread_attr.

svn path=/trunk/mono/; revision=134616
2009-05-22 20:48:43 +00:00
Miguel de Icaza 59f73c75d2 2009-05-22 Miguel de Icaza <[email protected]>
* icall.c: Remove warnings.

	* mono-config.c: Allow for CONFIG_CPU to be set in config.h and
	prevent auto-detection based on GCC defines.

	Add PS3

	* metadata-verify.c: Do not include signal.h

	* generic-sharing.c, marshal.c: Add returns to avoid some warning
	messages.  Not sure why the g_assert_not_reached is not enough to
	quiet the compiler.
	

	* appdomain.c: Remove code that is not used when
	DISABLE_SHADOW_COPY is set.

	* image.c: use g_getenv


svn path=/trunk/mono/; revision=134615
2009-05-22 20:44:26 +00:00
Zoltan Varga 2098db8a4c 2009-05-22 Zoltan Varga <[email protected]>
* corlib_test.dll.sources: Add System/LazyTest.cs.

svn path=/trunk/mcs/; revision=134607
2009-05-22 17:39:39 +00:00
Zoltan Varga 3c38ef1e9f 2009-05-22 Zoltan Varga <[email protected]>
* LazyTest.cs: New file.

svn path=/trunk/mcs/; revision=134606
2009-05-22 17:39:32 +00:00
Zoltan Varga 7e602593d7 2009-05-22 Zoltan Varga <[email protected]>
* Lazy.cs LazyExecutionMode.cs Funcs.cs: New files.

svn path=/trunk/mcs/; revision=134605
2009-05-22 17:39:24 +00:00
Zoltan Varga 051d789f33 2009-05-22 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add System/{Lazy,LazyExecutionMode,Funcs}.cs for
	NET 4.0.

svn path=/trunk/mcs/; revision=134604
2009-05-22 17:39:17 +00:00
Zoltan Varga 32ae6cc661 2009-05-22 Zoltan Varga <[email protected]>
* AssemblyBuilder.cs (.ctor): Error out if the not yet supported
	RunAndCollect flag was given.

	* AssemblyBuilderAccess.cs: Add RunAndCollect flag for net 4.0.

svn path=/trunk/mcs/; revision=134601
2009-05-22 15:48:22 +00:00
Miguel de Icaza 772f3a95ae 2009-05-22 Miguel de Icaza <[email protected]>
* versioninfo.c: One missing signature, fixed.

svn path=/trunk/mono/; revision=134597
2009-05-22 14:06:54 +00:00
Sebastien Pouliot 81c2b840f7 2009-05-22 Sebastien Pouliot <[email protected]>
* Socket_2_1.cs: Do not throw a SecurityException if the security
	policy check fails in NET_2_1 but set the SocketError to AccessDenied
	ensure the EndPoint has a valid policy before connecting.
	* SocketAsyncEventArgs.cs: Don't recurse endlessly in SendCallback
	and ReceiveCallback if the socket is not connected. Check for
	AccessDenied in ConnectCallback (needed for the security policy
	check in NET_2_1).


svn path=/trunk/mcs/; revision=134596
2009-05-22 13:58:03 +00:00
Sebastien Pouliot d70fb792c2 2009-05-22 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: Add an internal OpenPolicyReadAsync. Check 
	result in ProcessResponse and throw if not Ok (200).
	* WebRequest_2_1.cs: Add an internal overload to BeginGetResponse
	from where we can handle downloading the policy.


svn path=/trunk/mcs/; revision=134595
2009-05-22 12:45:24 +00:00
Gert Driesen 30241e72d5 * XmlResolverTest.cs: Fix ResolveUri test on Windows when current
directory is not on C drive.

svn path=/trunk/mcs/; revision=134593
2009-05-22 11:06:32 +00:00
Gert Driesen 0e09bcbf3c * XmlSchemaTests.cs: added tests for bug #502115.
* extension-attr-redefine-*.xsd: new test files.

svn path=/trunk/mcs/; revision=134592
2009-05-22 11:02:36 +00:00
Atsushi Eno 6489cc1e3b 2009-05-22 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : ReadContentString() returned
	  doubled string result.


svn path=/trunk/mcs/; revision=134591
2009-05-22 10:16:39 +00:00
Atsushi Eno ae046d1957 2009-05-22 Atsushi Enomoto <[email protected]>
* ChannelManagerBase.cs : there was annoying non-2.1 stuff.


svn path=/trunk/mcs/; revision=134590
2009-05-22 09:36:29 +00:00
Atsushi Eno e801d197f2 2009-05-22 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpChannelFactory.cs : get reader quotas.


svn path=/trunk/mcs/; revision=134589
2009-05-22 05:21:33 +00:00
Atsushi Eno f68640b9a3 2009-05-22 Atsushi Enomoto <[email protected]>
* ChannelManagerBase.cs : fix wrong session channel detection.


svn path=/trunk/mcs/; revision=134588
2009-05-22 05:19:10 +00:00
Geoff Norton 7a51ade390 2009-05-22 Geoff Norton <[email protected]>
* mini-arm.c (get_call_info): If a structure is split between the stack
        and argument registers, we should not advance the stack pointer by the entire
        native size, but just by the amount that spilled.

svn path=/trunk/mono/; revision=134587
2009-05-22 04:11:47 +00:00
Atsushi Eno 7017be6aa3 2009-05-22 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoderFactory.cs, BinaryMessageEncoder.cs
	  This encoder factory implements CreateSessionEncoder() and binary
	  encoder does support session transmit, in different media type.
	* ChannelManagerBase.cs : added utility method to create appropriate
	  encoder.
	* HttpChannelFactory.cs, HttpChannelListener.cs,
	  MsmqChannelFactory.cs, MsmqChannelListener.cs,
	  PeerChannelFactory.cs, PeerChannelListener.cs,
	  TcpChannelFactory.cs, TcpChannelListener.cs : use above.

	* MessageEncoderTest.cs : test CreateSessionEncoder().


svn path=/trunk/mcs/; revision=134584
2009-05-22 02:27:04 +00:00
Atsushi Eno 86e413610e 2009-05-22 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : add ReplyTo header.


svn path=/trunk/mcs/; revision=134583
2009-05-22 02:22:56 +00:00
Atsushi Eno 354c136586 2009-05-22 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, ServiceRuntimeChannel.cs :
	  IDuplexSession was not supported.


svn path=/trunk/mcs/; revision=134582
2009-05-22 02:20:27 +00:00
Miguel de Icaza 6dd905acc3 2009-05-21 Miguel de Icaza <[email protected]>
* reflection.c: Remove code that it not used with
	DISABLE_REFLECTION_EMIT is defined.

svn path=/trunk/mono/; revision=134581
2009-05-22 02:16:19 +00:00
Zoltan Varga 555133acfa 2009-05-22 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Enable dolt on sparc linux.

svn path=/trunk/mono/; revision=134578
2009-05-22 01:02:37 +00:00
Zoltan Varga afb9a18370 2009-05-22 Zoltan Varga <[email protected]>
* mini-arm.c (get_call_info): Handle structures with alignment requirements
	correctly.

svn path=/trunk/mono/; revision=134577
2009-05-22 00:59:49 +00:00
Zoltan Varga 4d601e82c1 2009-05-21 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Share more runtime
	invoke wrappers.

svn path=/trunk/mono/; revision=134556
2009-05-21 19:19:26 +00:00
Zoltan Varga 186725620a 2009-05-21 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_extra_methods): Encode direct runtime invoke
	wrappers normally.

svn path=/trunk/mono/; revision=134555
2009-05-21 19:17:18 +00:00
Zoltan Varga 764183eecb 2009-05-21 Zoltan Varga <[email protected]>
* aot-compiler.c (add_extra_method): Fix up the collection of extra
	methods so wrapper don't get added twice.
	(add_generic_instances): Don't add methods of arrays.

	* generics.cs: Mark one test as !FULLAOT.

svn path=/trunk/mono/; revision=134554
2009-05-21 19:17:11 +00:00
Rodrigo Kumpera 0ddc6f4274 2009-05-21 Rodrigo Kumpera <[email protected]>
* mini-x86.c (emit_move_return_value): Remove unused vars.

svn path=/trunk/mono/; revision=134537
2009-05-21 14:53:44 +00:00
Rodrigo Kumpera be05a10530 2009-05-21 Rodrigo Kumpera <[email protected]>
* mini-x86.c (mono_arch_emit_call): The decompose code now supports
	decomposing 8 bytes structs into a LCALL.

	* mini-x86.c (emit_move_return_value): We no longer push the vtype
	pointer for where to store the returned regs.

	* decompose.c (mono_decompose_vtype_opts): Fix the comment to properly
	state the concern.

	Fixes #471747, #471751 and #4734530 (in fact, it's a bunch of dups).

svn path=/trunk/mono/; revision=134536
2009-05-21 14:46:40 +00:00
Jb Evain 1f586e53ee 2009-05-21 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionReader.cs: add support for type forwarders.


svn path=/trunk/mcs/; revision=134535
2009-05-21 13:55:40 +00:00
Atsushi Eno bd4ddeac5b 2009-05-21 Atsushi Enomoto <[email protected]>
* DuplexSessionBase.cs : new file, for session implementation.
	* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
	  DuplexSessionChannelBase.cs : changed sync/async implementation
	  pattern. Now async methods call sync methods using delegates.


svn path=/trunk/mcs/; revision=134529
2009-05-21 12:04:59 +00:00
Marek Safar b87de8b6f1 New test.
svn path=/trunk/mcs/; revision=134527
2009-05-21 11:59:56 +00:00
Marek Safar f18795cd19 2009-05-21 Marek Safar <[email protected]>
* class.cs: Don't report wrong warnings for event fields.


svn path=/trunk/mcs/; revision=134526
2009-05-21 11:57:28 +00:00
Marek Safar 4141d9da85 New test.
svn path=/trunk/mcs/; revision=134525
2009-05-21 10:15:29 +00:00
Marek Safar 4ce482ad20 2009-05-21 Marek Safar <[email protected]>
A fix for bug #504667
	* class.cs: Check for static class using parent container instead of
	parent type.


svn path=/trunk/mcs/; revision=134523
2009-05-21 10:14:13 +00:00
Atsushi Eno a43bf9fe27 2009-05-21 Atsushi Enomoto <[email protected]>
* InputChannelBase.cs, TransportBindingElement.cs, RequestContext.cs:
	  a few minor API fixes.


svn path=/trunk/mcs/; revision=134511
2009-05-21 07:57:13 +00:00
Atsushi Eno bbde1c9701 2009-05-21 Atsushi Enomoto <[email protected]>
* MessageEncoderFactory.cs : implement CreateSessionEncoder().


svn path=/trunk/mcs/; revision=134510
2009-05-21 07:29:46 +00:00
Michael Barker dc15eec37f 2009-05-21 Michael Barker <[email protected]>
Updated to version 1.5.3 of the RabbitMQ libraries.

2009-05-20  Michael Barker  <[email protected]>

        * RabbitMQMessageEnumerator.cs:  Removed references to realms & tickets.
        * RabbitMQMessageQueue.cs:  Removed references to realms & tickets.

svn path=/trunk/mcs/; revision=134509
2009-05-21 06:40:41 +00:00
Neville Gao 75560da881 Cleaned up UIA properties.
svn path=/trunk/mcs/; revision=134508
2009-05-21 06:39:35 +00:00
Miguel de Icaza ba9266b02b Remove more eye sores
svn path=/trunk/mono/; revision=134506
2009-05-21 04:45:19 +00:00
Miguel de Icaza a35ac93006 Fix for BSD
svn path=/trunk/mono/; revision=134505
2009-05-21 04:40:45 +00:00
Miguel de Icaza b76e2fc273 2009-05-21 Miguel de Icaza <[email protected]>
* daemon.c: Remove more DEBUG ifdef mess.

svn path=/trunk/mono/; revision=134504
2009-05-21 04:35:27 +00:00
Miguel de Icaza 97c7774712 2009-05-21 Miguel de Icaza <[email protected]>
* shared.c (_wapi_shm_attach): Implemention for DISABLE_SHARED_HANDLES 

svn path=/trunk/mono/; revision=134503
2009-05-21 04:28:20 +00:00
Miguel de Icaza 42ca499c70 Fix setups where DISABLE_SHARED_HANDLES is set
svn path=/trunk/mono/; revision=134502
2009-05-21 04:14:55 +00:00
Geoff Norton 41e765e749 Fix it for real
svn path=/trunk/mono/; revision=134501
2009-05-21 03:56:31 +00:00
Miguel de Icaza 42ebae0ad2 Fix the Mac
svn path=/trunk/mono/; revision=134500
2009-05-21 02:36:05 +00:00
Atsushi Eno f37f07036a 2009-05-21 Atsushi Enomoto <[email protected]>
* CultureInfo.cs : it seems that zh-Hant and zh-Hans are introduced
	  as almost alias  of zh-CHS/zh-CHT in vista and some new windows.
	  Add hacky support for them.

	* CultureInfoTest.cs : test zh-Hant.


svn path=/trunk/mcs/; revision=134499
2009-05-21 02:20:16 +00:00
Miguel de Icaza b3591c2a62 Move platform specific code to io-layer
2009-05-20  Miguel de Icaza  <[email protected]>

	* socket-io.c
	(ves_icall_System_Net_Sockets_Socket_Available_internal): Remove
	the ifdef here and instead put that on io-layer


svn path=/trunk/mono/; revision=134498
2009-05-21 02:19:01 +00:00
Miguel de Icaza aaee9490fe 2009-05-20 Miguel de Icaza <[email protected]>
* wapi_glob.c (_wapi_glob): Use PATH_MAX from limits.h instead of
	the BSD name from sys/param.h (MAXPATHLEN)

	Do not include pwd.h as it is not used.

svn path=/trunk/mono/; revision=134494
2009-05-21 00:48:14 +00:00
Miguel de Icaza 37eca67dde 2009-05-20 Miguel de Icaza <[email protected]>
* aot-runtime.c (mono_aot_init): Use g_getenv to work on systems
	without getenv.

svn path=/trunk/mono/; revision=134493
2009-05-21 00:42:00 +00:00
Miguel de Icaza 007e7aefed Make this build
svn path=/trunk/mono/; revision=134491
2009-05-21 00:13:46 +00:00
Miguel de Icaza 39f4727482 Add another header to check
svn path=/trunk/mono/; revision=134490
2009-05-21 00:04:25 +00:00
Zoltan Varga 3990a08d64 2009-05-21 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Add StructureToPtr/PtrToStructure wrappers.

	* basic.cs: Move the test_2_cprop_bug () test to generics.cs as it involves
	generics.

svn path=/trunk/mono/; revision=134489
2009-05-20 23:50:25 +00:00
Miguel de Icaza b279fd07f9 2009-05-20 Miguel de Icaza <[email protected]>
* thread-private.h: Use indent ifdef style for clarity

	* sockets-wrappers.h: sys/socket.h conditional

	* daemon-messages.h: sys/uio.h conditional.

	* sockets.c: sys/ioctl.h conditional

	* wthreads.c: work around for platforms with no thread fetching
	information. 



svn path=/trunk/mono/; revision=134488
2009-05-20 23:48:36 +00:00
Miguel de Icaza 1bcffb546f Forgot ChangeLog
svn path=/trunk/mono/; revision=134487
2009-05-20 23:46:56 +00:00
Miguel de Icaza b3ab9ba097 2009-05-20 Miguel de Icaza <[email protected]>
* locking.c: Split locking code into a separate file.

svn path=/trunk/mono/; revision=134486
2009-05-20 23:40:54 +00:00
Miguel de Icaza 2890cffee5 2009-05-20 Miguel de Icaza <[email protected]>
* locking.c: Split locking code into a separate file.

svn path=/trunk/mono/; revision=134485
2009-05-20 23:22:35 +00:00
Miguel de Icaza b18279918a 2009-05-20 Miguel de Icaza <[email protected]>
* locking.c: Split locking code into a separate file.


svn path=/trunk/mono/; revision=134484
2009-05-20 23:10:31 +00:00
Miguel de Icaza 2c5af271ff Copy
svn path=/trunk/mono/; revision=134483
2009-05-20 23:09:51 +00:00
Miguel de Icaza 87d195d8e1 Fix typo
svn path=/trunk/mono/; revision=134478
2009-05-20 22:09:31 +00:00
Miguel de Icaza 5b34274374 2009-05-20 Miguel de Icaza <[email protected]>
* shared.c: Split the code to make DISABLE_SHARED remove all the
	code that does not use the shared handles.   Before it merely
	removed some of it, with this we avoid hacks on platforms that can
	not implement it.

	Split the code to reduce the amount of ifdefs.

	Remove #ifdef DEBUG from the source and use a macro instead.


svn path=/trunk/mono/; revision=134477
2009-05-20 22:03:44 +00:00
Miguel de Icaza 85451df395 Indent preprocessor directives to make it easier to follow
svn path=/trunk/mono/; revision=134475
2009-05-20 21:07:09 +00:00
Rodrigo Kumpera bdbfa49101 2009-05-20 Rodrigo Kumpera <[email protected]>
* local-propagation.c (mono_local_cprop): Avoid local propagation
	across paired add/sub if the first instruction dest reg is it's
	source reg. For example:

	int_add_imm R12 <- R12 [1] clobbers: 1
	int_sub_imm R42 <- R12 [1] clobbers: 1

	The cprop pass would wrongly const prop + 1 to int_sub_imm which doesn't
	maintain the math identify.

	Fixes #505375.

svn path=/trunk/mono/; revision=134470
2009-05-20 19:27:13 +00:00
Jonathan Chambers b79c873cb7 2009-05-20 Jonathan Chambers <[email protected]>
* SolutionParser.cs (ParseSolution): Ignore vcproj projects in solutions
        and issue warning.


svn path=/trunk/mcs/; revision=134468
2009-05-20 17:05:59 +00:00
Dick Porter 9c212647dc 2009-05-20 Dick Porter <[email protected]>
* XplatUICarbon.cs: Add more locking around MessageQueue
	manipulations.


svn path=/trunk/mcs/; revision=134465
2009-05-20 16:11:17 +00:00
Michael Barker 2abcb07b81 2009-05-19 Michael Barker <[email protected]>
* RabbitMQMessagingProviderTest.cs: Added test for dynamic create of 
	MessagingProvider

2009-05-19  Michael Barker  <[email protected]>

	* RabbitMQMessageQueue.cs: Added comments.

2009-05-19  Michael Barker  <[email protected]>

	* Makefile:  Added environment variable for the RabbitMQMessagingProvider

2009-05-19  Michael Barker  <[email protected]>

	* MessageBaseTest.cs: Used reflection to create Message Object

2009-05-19  Michael Barker  <[email protected]>

	* IMessage.cs: Added additional comments.
	* IMessagingProvider.cs: Added additional comments.
	* MessagingProviderLocator.cs: Added support for specifing messaging
	implementation using an environment variable.


svn path=/trunk/mcs/; revision=134437
2009-05-20 07:40:57 +00:00
Atsushi Eno 1c1d101fed 2009-05-20 Atsushi Enomoto <[email protected]>
* README: added (I needed it!)


svn path=/trunk/mono/; revision=134436
2009-05-20 06:55:48 +00:00
Andreia Gaita 3dae6e8d14 * Makefile.am: avoid going on the network just to get the revision,
use git log instead

svn path=/trunk/mono/; revision=134435
2009-05-20 04:03:41 +00:00
Rodrigo Kumpera 02d9433df7 2009-05-19 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the generic param constraint table.

	* assembly-with-generics.cs: Add stuff for new tests.

svn path=/trunk/mono/; revision=134431
2009-05-19 22:16:08 +00:00
Rodrigo Kumpera a99917328b 2009-05-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the generic param constraint table.

svn path=/trunk/mono/; revision=134430
2009-05-19 22:15:58 +00:00
Rodrigo Kumpera 00e15ecef1 2009-05-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_generic_param_table): Fix
	thinko on the valid flags bits for generic params.

svn path=/trunk/mono/; revision=134429
2009-05-19 22:15:42 +00:00
Rodrigo Kumpera 8016740d68 2009-05-19 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the methodspec table.

	* assembly-with-generics.cs: Add stuff for new tests.

svn path=/trunk/mono/; revision=134428
2009-05-19 22:15:28 +00:00
Rodrigo Kumpera a392dfb567 2009-05-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the methodspec table.

svn path=/trunk/mono/; revision=134427
2009-05-19 22:15:17 +00:00
Rodrigo Kumpera 4cabb3b244 2009-05-19 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the generic param table.

	* assembly-with-generics.cs: New file for generic tests.

	* Makefile: Adjust the build to the new file.

svn path=/trunk/mono/; revision=134426
2009-05-19 22:15:02 +00:00
Rodrigo Kumpera 4e84b54f12 2009-05-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the generic param table.

svn path=/trunk/mono/; revision=134425
2009-05-19 22:14:52 +00:00
Jb Evain 663091e2ce 2009-05-19 Jb Evain <[email protected]>
* Mono.Cecil/TargetRuntime.cs
	* Mono.Cecil/StructureReader.cs
	* Mono.Cecil.Metadata/MetadataWriter.cs:
		add support for .net 4.0 detection.


svn path=/trunk/mcs/; revision=134402
2009-05-19 17:39:27 +00:00
Mark Probst d49e681def SGen: Store and use the count with REMSET_VTYPE.
2009-05-19  Mark Probst  <[email protected]>

        * sgen-gc.c: Store and use the count with REMSET_VTYPE.

svn path=/trunk/mono/; revision=134401
2009-05-19 17:35:51 +00:00
Mark Probst e13024ab43 Small SGen fix.
2009-05-19  Mark Probst  <[email protected]>

        * sgen-gc.c: Use generation enum more consistently and use the
        correct generation in mono_gc_register_for_finalization().

svn path=/trunk/mono/; revision=134400
2009-05-19 17:33:21 +00:00
Atsushi Eno b330fc8e07 2009-05-19 Jonas Larsson <[email protected]>
* XmlSchemaUtil.cs, BuiltInDatatype.cs, XmlSchemaComplexType.cs:
	  Introduced new MS compatibility option by environment variable,
	  for bug #502115.


svn path=/trunk/mcs/; revision=134397
2009-05-19 14:43:55 +00:00
Atsushi Eno 2e31d6db16 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlSchemaGroupRef.cs : when getting optimized particle, reset was
	  incomplete. Patch by Jonas Larsson. Fixed bug #502168.

2009-05-07  Jonas Larsson <[email protected]> 

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


svn path=/trunk/mcs/; revision=134396
2009-05-19 14:30:11 +00:00
Atsushi Eno a4c362bc65 2009-05-19 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : add To header.


svn path=/trunk/mcs/; revision=134394
2009-05-19 12:53:09 +00:00
Atsushi Eno 31009113d4 2009-05-19 Atsushi Enomoto <[email protected]>
* MessageFault.cs : fix several SOAP12 fault deserialization in xml
	  parsing.

	* MessageFaultTest.cs : added more SOAP 12 fault parser tests.
	* soap-fault.xml, soap-fault-incomplete4.xml : new test files.


svn path=/trunk/mcs/; revision=134389
2009-05-19 12:01:20 +00:00
Atsushi Eno 65586c8d12 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : fix utf16 array on getting its
	  length. Report correct length (since BinaryReader is directly used
	  it makes no sense to incompletely keep track of position in Source).

	* XmlBinaryDictionaryReaderTest.cs : added test for utf16 chars.


svn path=/trunk/mcs/; revision=134388
2009-05-19 11:37:30 +00:00
Atsushi Eno b6bad18813 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : support reader quotas.


svn path=/trunk/mcs/; revision=134371
2009-05-19 08:20:48 +00:00
Massimiliano Mantione edf1ef6cde Fixed estimate for short branches on amd64.
svn path=/trunk/mono/; revision=134370
2009-05-19 08:04:13 +00:00
Atsushi Eno 1716177eb5 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : no reason not to report invalid input string for
	  ToGuid().


svn path=/trunk/mcs/; revision=134369
2009-05-19 06:25:43 +00:00
Gonzalo Paniagua Javier 7c75a2608c revert. more things broken than fixed
svn path=/trunk/mcs/; revision=134365
2009-05-19 03:03:06 +00:00
Rodrigo Kumpera 865ab45e1e 2009-05-18 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the nested class table.

	* assembly-with-complex-type.cs: Add a nested class.

svn path=/trunk/mono/; revision=134363
2009-05-19 01:49:57 +00:00
Rodrigo Kumpera e2f8cc86bc 2009-05-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the nested class table.

svn path=/trunk/mono/; revision=134362
2009-05-19 01:49:36 +00:00
Rodrigo Kumpera 314a767704 2009-05-18 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the manifest resource table.

	* Makefile: Update to the new dependency.

	* assembly-with-resource.cs: Add an exported type to be used
	by the new tests.

svn path=/trunk/mono/; revision=134361
2009-05-19 01:49:11 +00:00
Rodrigo Kumpera fbb0da4db4 2009-05-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the manifest resource table.

svn path=/trunk/mono/; revision=134360
2009-05-19 01:48:51 +00:00
Miguel de Icaza f70325d17a 2009-05-18 Miguel de Icaza <[email protected]>
* daemon.c: Move the compile check of MONO_SIZEOF_SUNPATH to the
	file that uses it.

svn path=/trunk/mono/; revision=134359
2009-05-19 01:42:03 +00:00
Miguel de Icaza e50f0c5bc5 More header checks
svn path=/trunk/mono/; revision=134358
2009-05-19 01:36:14 +00:00
Miguel de Icaza 89941394d4 Do not include prototypes if sys/select.h is not available
svn path=/trunk/mono/; revision=134357
2009-05-19 01:32:53 +00:00
Miguel de Icaza ed08130188 2009-05-18 Miguel de Icaza <[email protected]>
* Rename `threads.c' to `wthreads.c' as broken build systems are
	not able to cope with two files with the same name across multiple

svn path=/trunk/mono/; revision=134356
2009-05-19 01:08:51 +00:00
Miguel de Icaza 1636d834a4 2009-05-18 Miguel de Icaza <[email protected]>
* include/private/gcconfig.h: Add support for Linux on the PS3


svn path=/trunk/mono/; revision=134354
2009-05-19 00:09:19 +00:00
Marek Habersack 74712b87c1 2009-05-18 Marek Habersack <[email protected]>
* BuildManager.cs: GetPrecompiledApplicationType () uses
	VirtualPathUtility.Combine to build global.asax virtual
	path. Patch from Robert Jordan <[email protected]>, thanks! Fixes
	bug #504615

svn path=/trunk/mcs/; revision=134342
2009-05-18 19:03:22 +00:00
Jb Evain 10c17dbb64 add tests
svn path=/trunk/mcs/; revision=134335
2009-05-18 17:09:29 +00:00
Jb Evain 5877fe65ac 2009-05-18 Jb Evain <[email protected]>
* Enumerable.cs (Max, Min): fix generic versions.


svn path=/trunk/mcs/; revision=134333
2009-05-18 17:08:43 +00:00
Carlos Alberto Cortez 530391a954 2009-05-18 Carlos Alberto Cortez <[email protected]>
* DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
	duplication of code, as well as actually getting the focus back in
	*any* scenario where the drop down is closed.


svn path=/trunk/mcs/; revision=134332
2009-05-18 17:01:58 +00:00
Jonathan Pobst 3dca53b50f 2009-05-18 Tom Hindle <[email protected]>
* ScrollableControl.cs: Ignore setting properties HScroll and 
	VScroll when AutoScroll is true.
	[Fixes bug #500213]

svn path=/trunk/mcs/; revision=134331
2009-05-18 16:53:39 +00:00
Jonathan Pobst deaf99aa2c 2009-05-18 Jonathan Pobst <[email protected]>
* ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
	disabled graphics look closer to the ones that .Net produces.
	[Fixes bug #473660]

svn path=/trunk/mcs/; revision=134324
2009-05-18 15:26:01 +00:00
Atsushi Eno af538f251c 2009-05-18 Atsushi Enomoto <[email protected]>
* ErrorProcessingHandler.cs, InputOrReplyRequestProcessor.cs :
	  they also premise request-reply channel and broke duplex channels.


svn path=/trunk/mcs/; revision=134319
2009-05-18 13:29:28 +00:00
Carlos Alberto Cortez 5d36614029 2009-05-18 Carlos Alberto Cortez <[email protected]>
* DateTimePicker.cs: When calculating the max width for the year part,
	use the current value, since *all* the possible values are exactly a 4
	digits number. This way we avoid a ArgumentOutOfRangeException trying
	to check against different values.
	Fixes #500917.


svn path=/trunk/mcs/; revision=134317
2009-05-18 12:59:54 +00:00
Atsushi Eno f481ba25de 2009-05-18 Atsushi Enomoto <[email protected]>
* FaultConverter.cs : avoid NRE for null IncomingMessageHeaders.


svn path=/trunk/mcs/; revision=134315
2009-05-18 11:48:20 +00:00
Veerapuram Varadhan 57901675e8 fix for #417398
svn path=/trunk/mcs/; revision=134313
2009-05-18 11:32:51 +00:00
Atsushi Eno 018b413577 2009-05-18 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, XmlFormatterDeserializer.cs,
	  KnownTypeCollection.cs : Support for array of some primitive types
	  in the deserializer was missing, which resulted in peer resolver
	  RegisterInfo deserialization failure.


svn path=/trunk/mcs/; revision=134312
2009-05-18 10:05:16 +00:00
Atsushi Eno 2c958ca2d5 2009-05-18 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs : remove type lookup optimization
	  (since .NET 3.5 introduced system types with DC) and fix
	  serialization of system types (ISerializable types were not
	  resolved in previous code).


svn path=/trunk/mcs/; revision=134310
2009-05-18 09:14:51 +00:00
Atsushi Eno c334c47baa 2009-05-18 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : it was only about 2.1. Fix build.


svn path=/trunk/mcs/; revision=134309
2009-05-18 09:03:15 +00:00
Atsushi Eno 30894427e8 2009-05-18 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : It is not possible to get schema without
	  IXmlSerializable instance.


svn path=/trunk/mcs/; revision=134308
2009-05-18 08:34:08 +00:00
Zoltan Varga 6b23cd77af 2009-05-17 Zoltan Varga <[email protected]>
* debug-helpers.c (dis_one): Add little-endian support for ldstr.

svn path=/trunk/mono/; revision=134303
2009-05-17 18:53:04 +00:00
Zoltan Varga f79f49d490 2009-05-17 Zoltan Varga <[email protected]>
* exceptions-ppc.c: Remove the caching from the trampoline creation
	functions, it is already done in the caller.

svn path=/trunk/mono/; revision=134302
2009-05-17 18:39:19 +00:00
Gert Driesen ae22b8dbe3 * CookieContainer.cs: Provide meaningful information in exception
messages, and improve compatibility with MS. Modified set_Capacity to
no longer change MaxCookieSize when new value is less than
MaxCookieSize.
* CookieTest.cs: Added test for Path.
* CookieContainerTest.cs: Added and improved .ctor tests.
Improved tests for Capacity and MaxCookieSize. Added tests for
PerDomainCapacity. Added tests for Add overloads, GetCookieHeader,
GetCookies and SetCookies. Added test for bug #421827.

svn path=/trunk/mcs/; revision=134295
2009-05-17 15:06:17 +00:00
Zoltan Varga c4800360b6 2009-05-17 Zoltan Varga <[email protected]>
* Makefile.am (test_messages): Fix the dependencies of this test.

svn path=/trunk/mono/; revision=134294
2009-05-17 12:09:02 +00:00
Zoltan Varga 0eda299d0f 2009-05-17 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_llvm_vcall_trampoline): Fix the llvm build.

svn path=/trunk/mono/; revision=134291
2009-05-17 01:14:45 +00:00
Zoltan Varga f17ac5ec1b 2009-05-17 Zoltan Varga <[email protected]>
* mini-ppc.h mini-arm.h mini-x86.h mini-amd64.h: Add
	MONO_ARCH_GSHARED_SUPPORTED define.

	* mini.c (mini_init): Use the MONO_ARCH_GSHARED_SUPPORTED define.

svn path=/trunk/mono/; revision=134290
2009-05-17 00:59:17 +00:00
Zoltan Varga 58e94d5892 2009-05-17 Zoltan Varga <[email protected]>
* configure.in: Add TARGET_POWERPC/POWERPC64 defines.

svn path=/trunk/mono/; revision=134289
2009-05-17 00:59:10 +00:00
Zoltan Varga 60a5072393 2009-05-17 Zoltan Varga <[email protected]>
* mini-arm.c mini.c: Get rid of the unused mono_arch_fixup_jinfo ()
	function.

svn path=/trunk/mono/; revision=134288
2009-05-17 00:59:03 +00:00
Zoltan Varga 3eec2f72a9 2009-05-16 Zoltan Varga <[email protected]>
* class.c (mono_class_get_vtable_entry): Avoid adding static-rgctx
	wrappers, this is now done in the JIT.

svn path=/trunk/mono/; revision=134287
2009-05-16 20:43:26 +00:00
Zoltan Varga 5593905be5 2009-05-16 Zoltan Varga <[email protected]>
* jit-icalls.c (mono_helper_compile_generic_method): Get rid of the
	call to mono_marshal_get_rgctx_invoke ().

svn path=/trunk/mono/; revision=134286
2009-05-16 20:28:24 +00:00
Zoltan Varga b616393946 2009-05-16 Zoltan Varga <[email protected]>
* mini.c method-to-ir.c mini-trampolines.c: Get rid of the usage of
	mono_marshal_get_static_rgctx_invoke (), all platforms which support
	gshared use the static rgctx trampolines now.

svn path=/trunk/mono/; revision=134285
2009-05-16 20:28:16 +00:00
Zoltan Varga 1d7a21846a In metadata/
2009-05-16  Zoltan Varga  <[email protected]>

	* class.c (mono_set_generic_sharing_supported): New internal function.
	(mono_class_generic_sharing_enabled): Move the #ifdef stuff to the JIT.

In mini/
2009-05-16  Zoltan Varga  <[email protected]>

	* mini.c (mini_init): Call mono_set_generic_sharing_supported () if the
	platform supports it.

svn path=/trunk/mono/; revision=134284
2009-05-16 20:16:49 +00:00
Miguel de Icaza 8c27e9fd64 Add
svn path=/trunk/mcs/; revision=134283
2009-05-16 20:16:43 +00:00
Miguel de Icaza 9f53a9fd85 2009-05-16 Miguel de Icaza <[email protected]>
* Apply patch from Alex Shulgin
	<[email protected]> to support OSX in
	NetworkInformation classes.

svn path=/trunk/mcs/; revision=134277
2009-05-16 18:03:09 +00:00
Sebastien Pouliot 259584ee45 2009-05-16 Sebastien Pouliot <[email protected]>
* Uri.cs (NET_2_1): Remove some extra code for NET_2_1


svn path=/trunk/mcs/; revision=134274
2009-05-16 15:40:37 +00:00
Gonzalo Paniagua Javier ede354f48e 2009-05-16 Gonzalo Paniagua Javier <[email protected]>
* RouteCollection.cs: when there is no named route, try the current
	route before going through the list. The known values (default or
	not) for the current route are merged with the values provided when
	attempting to match.
	Example:
		Html.RouteLink ("Text", new { page = 5 });
	
	when the current path is /some/path-here and the route is:

		routes.MapRoute("RouteName", "some/{one}-{two}/{page}",
		new { controller = "Some", action = "Index", page = 1});


svn path=/trunk/mcs/; revision=134272
2009-05-16 09:41:01 +00:00
Gonzalo Paniagua Javier d3637642f7 2009-05-16 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs:
	* HttpWebRequest.cs: support automatic decompression of the response.
	Fixes bug #504391.



svn path=/trunk/mcs/; revision=134269
2009-05-16 05:47:01 +00:00
Veerapuram Varadhan dcc6edfe8b 2009-05-16 Veerapuram Varadhan <[email protected]>
** Fixes #325464 - ToolItems.xsd
	* CustomDataClassGenerator.cs (CreateDataSetTableMembers): Prefix a "_" to
	member names when it is same as that of the dataset.  Fixes the CS0542 error
	during compilation of the generated source.

svn path=/trunk/mcs/; revision=134263
2009-05-16 02:37:37 +00:00
Veerapuram Varadhan 4dcf2b98a9 Nunit 2.4 changes and other sqlserver config fixes
svn path=/trunk/mcs/; revision=134258
2009-05-16 01:16:20 +00:00
Veerapuram Varadhan 29eccae63a Fix for bug #382589 and corresponding tests
svn path=/trunk/mcs/; revision=134257
2009-05-16 01:16:05 +00:00
Veerapuram Varadhan 375f804c04 2009-05-16 Veerapuram Varadhan <[email protected]>
** Fixes #382589
	* Tds.cs (ServerTdsVersion): New property to access ServerVersion.

	* Tds70.cs (WriteParameterInfo): Treat Decimal types as Numeric
	types from SQL Server 2000.

	* TdsVersion.cs: Add SQL Server 2008 version.

svn path=/trunk/mcs/; revision=134256
2009-05-16 01:15:31 +00:00
Rodrigo Kumpera c6586b2f70 2009-05-15 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the exported type table.

	* assembly-with-module.il: Old file not longer needed.

	* assembly-with-module.cs: File use to generate
	tests for the exported table.

	* module.il: Same. This file is written in MSIL because
	gmcs/SRE can't handle the AssemblyAttributesGoHere hack.

	* Makefile: Adjust the build to the new files.

svn path=/trunk/mono/; revision=134253
2009-05-15 21:35:12 +00:00
Rodrigo Kumpera 04d9352039 2009-05-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the exported type table.

svn path=/trunk/mono/; revision=134252
2009-05-15 21:34:55 +00:00
Rodrigo Kumpera 8642e2b0c4 2009-05-15 Rodrigo Kumpera <[email protected]>
* pedump.c (main): Fake an assembly for netmodules to make the verifier happy.

svn path=/trunk/mono/; revision=134251
2009-05-15 21:30:11 +00:00
Rodrigo Kumpera d65b7ed011 2009-05-15 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for the file table.

svn path=/trunk/mono/; revision=134250
2009-05-15 21:29:18 +00:00
Rodrigo Kumpera 54f0bf9478 2009-05-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the file table.

svn path=/trunk/mono/; revision=134249
2009-05-15 21:28:56 +00:00
Rodrigo Kumpera 18f5923739 2009-05-15 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Fix one test for the assembly
	table.

	* cli-tables-tests.md: Add tests for assemblyref.

svn path=/trunk/mono/; revision=134247
2009-05-15 21:27:27 +00:00
Rodrigo Kumpera a1a8ead1de 2009-05-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_assembly_table): Fix an error message.

	* metadata-verify.c: Verify the assemblyref table.

svn path=/trunk/mono/; revision=134246
2009-05-15 21:27:03 +00:00
Rodrigo Kumpera 5005c62a76 2009-05-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_assembly_table): Fix the valid
	bits mask for flags.

svn path=/trunk/mono/; revision=134245
2009-05-15 21:26:02 +00:00
Carlos Alberto Cortez 665e5c6cf4 2009-05-15 Carlos Alberto Cortez <[email protected]>
* MessageBox.cs: When handling ProcessDialogChar, check that
	CancelButton is not null before trying to use it, to avoid a null ref
	exception. We don't need to do that on the ok/yes buttons, since they
	always exist.
	Fixes #503935.


svn path=/trunk/mcs/; revision=134226
2009-05-15 18:28:32 +00:00
Zoltan Varga 251f6199b9 2009-05-15 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_allocate_vars): Correctly save R5 when using AOT.

svn path=/trunk/mono/; revision=134225
2009-05-15 18:28:07 +00:00
Zoltan Varga bd4f00b2c4 2009-05-15 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Avoid duplicate labels for methods.

svn path=/trunk/mono/; revision=134218
2009-05-15 17:02:04 +00:00
Zoltan Varga ec820beb73 2009-05-15 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_emit_exceptions): Nullify the processed patches.

	* tramp-ppc.c (mono_arch_nullify_class_init_trampoline): Implement this
	for ppc.

svn path=/trunk/mono/; revision=134217
2009-05-15 16:43:34 +00:00
Zoltan Varga 70c9ec4dd6 2009-05-15 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Skip a few more characters in the debug
	label names.

svn path=/trunk/mono/; revision=134215
2009-05-15 16:23:30 +00:00
Zoltan Varga 91d588e423 2009-05-15 Zoltan Varga <[email protected]>
* debug-helpers.c (mono_method_full_name): Print generic parameters of
	generic methods as well.

svn path=/trunk/mono/; revision=134214
2009-05-15 16:23:23 +00:00
Carlos Alberto Cortez ead154b00f 2009-05-15 Carlos Alberto Cortez <[email protected]>
* RTF.cs: If the rtf specified a code page outside the valid values,
	fallback to the default one.
	Fixes #503174.


svn path=/trunk/mcs/; revision=134212
2009-05-15 15:59:16 +00:00
Jb Evain 0d47d8081c 2009-05-15 Jb Evain <[email protected]>
* Mono.Tuner/InjectSecurityAttributes.cs: fix retrieval
	of generic methods.


svn path=/trunk/mcs/; revision=134208
2009-05-15 14:33:21 +00:00
Massimiliano Mantione af1e5f95cc Made it possible for mono_arch_instrument_epilog to preserve argument registers.
svn path=/trunk/mono/; revision=134207
2009-05-15 14:16:37 +00:00
Massimiliano Mantione 81d9b184eb Removed MONO_INST_BRLABEL instruction flag.
svn path=/trunk/mono/; revision=134206
2009-05-15 14:16:11 +00:00
Jb Evain 8a380e8b12 2009-05-15 Jb Evain <[email protected]>
* Mono.Tuner/InjectSecurityAttributes.cs: fix issues
	with non unique MethodReference.ToString for generic method defs.


svn path=/trunk/mcs/; revision=134200
2009-05-15 13:32:27 +00:00
Carlos Alberto Cortez c6a19d36f0 2009-05-15 Carlos Alberto Cortez <[email protected]>
* ListBox.cs: Handle the key down event in WndProc instead of doing it
	in an event handler, as we need to avoid any operation in case
	the user has handled it in its own OnKeyDown handler, and this can't
	be achieved since our handler would be the first one always.
	* FontDialog.cs: Update the calls since our method handling key down
	has been renamed.
	Fixes #503469.


svn path=/trunk/mcs/; revision=134198
2009-05-15 12:57:46 +00:00
Atsushi Eno a22727c329 2009-05-15 Atsushi Enomoto <[email protected]>
* MessageFault.cs : Reason is mandatory. raise XmlException, and
	  CommunicationException in each CreateFault().

	* soap-fault-incomplete.xml : new test file.
	* MessageFaultTest.cs : new test.

	* System.ServiceModel.dll_test.sources: added MessageFaultTest.cs.


svn path=/trunk/mcs/; revision=134197
2009-05-15 11:27:39 +00:00
Atsushi Eno eaf8f77e85 2009-05-15 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : LookupNamespace() in XmlReader from
	  ReadSubtree() should work correctly on text nodes.

	* XPathNavigatorCommonTests.cs : test that LookupNamespace() in
	  XmlReader from ReadSubtree() works correctly on text nodes.


svn path=/trunk/mcs/; revision=134196
2009-05-15 11:14:59 +00:00
Veerapuram Varadhan cdae12f3ef 2009-09-15 Veerapuram Varadhan <[email protected]>
* OracleParameter.cs: Consider DBNull.Value as null and
	update size and sizeSet accordingly.

svn path=/trunk/mcs/; revision=134192
2009-05-15 10:48:55 +00:00
Veerapuram Varadhan 4ee5391d7c 2009-05-15 Veerapuram Varadhan <[email protected]>
** Fixes #424908
	* OracleParameter.cs:  Make sure size and sizeSet are properly
	updated whenever value changes.

svn path=/trunk/mcs/; revision=134191
2009-05-15 10:47:55 +00:00
Atsushi Eno 6525dc5da6 2009-05-15 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : on listener side, get TcpClient at
	  Open(). Some (but not all yet) continuous communication works now.
	  Use ProtocolException. Remove dummy binary session string.


svn path=/trunk/mcs/; revision=134185
2009-05-15 04:54:43 +00:00
Atsushi Eno 3a7ba8e605 2009-05-13 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : open channel before using it.


svn path=/trunk/mcs/; revision=134184
2009-05-15 04:44:01 +00:00
Carlos Alberto Cortez 30033994a2 2009-05-15 Carlos Alberto Cortez <[email protected]>
* Application.cs: We should dismiss the active ToolStrip when we
	receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
	keyboard short cut can be properly processed by another menu item.
	Fixes part of #503663.


svn path=/trunk/mcs/; revision=134183
2009-05-15 04:18:21 +00:00
Atsushi Eno 683f1431b2 2009-05-15 Atsushi Enomoto <[email protected]>
* DataContractSerializer.cs : write dictionary string directly for
	  root name/ns (root only, so far).


svn path=/trunk/mcs/; revision=134182
2009-05-15 04:15:32 +00:00
Geoff Norton 4ecd813043 2009-05-15 Geoff Norton <[email protected]>
* mini-darwin.c: This works on arm now.

svn path=/trunk/mono/; revision=134181
2009-05-15 02:29:13 +00:00
Geoff Norton 70d9cb7067 2009-05-15 Geoff Norton <[email protected]>
* gc.c: MachO/Darwin supports and uses semaphores fine for this
        use-case and is significantly more performant than the wapi layer.

svn path=/trunk/mono/; revision=134180
2009-05-15 02:24:32 +00:00
Geoff Norton 2008c70fa2 2009-05-15 Geoff Norton <[email protected]>
* handles.c: Don't start the collection thread if we've disabled
        shared handles.

svn path=/trunk/mono/; revision=134179
2009-05-15 02:24:27 +00:00
Marek Habersack f3160d4154 2009-05-15 Marek Habersack <[email protected]>
* HtmlForm.cs: if application isn't running on /, make sure we
	generate the correct relative path for the action form attribute.

svn path=/trunk/mcs/; revision=134176
2009-05-15 01:21:14 +00:00
Jonathan Pryor e6b5bca321 * ListChangedEventArgsTest.cs: Fix .NET 1.1 compile error.
svn path=/trunk/mcs/; revision=134175
2009-05-15 01:18:56 +00:00
Geoff Norton 0f1a80a02e 2009-05-14 Geoff Norton <[email protected]>
* jit.h, driver.c: Allow full-aot to be decided programatically by the
        embedding api.

svn path=/trunk/mono/; revision=134174
2009-05-15 01:07:01 +00:00
Zoltan Varga 3c4c33390e 2009-05-15 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_magic_trampoline): Handle static rgctx invoke
	wrappers during full aot mode correctly.

	* aot-runtime.c (mono_aot_get_unbox_trampoline): Handle shared generic
	methods correctly.

svn path=/trunk/mono/; revision=134173
2009-05-15 01:01:58 +00:00
Sebastien Pouliot 16d3fe2785 2009-05-14 Sebastien Pouliot <[email protected]>
* Socket_2_1.cs: Add ConnectAsync support for NET_2_1 which will
	ensure the EndPoint has a valid policy before connecting.
	* SocketAsyncEventArgs.cs: Add support for IList<ArraySegment<byte>>
	when sending. Add ConnectSocket for NET_2_1


svn path=/trunk/mcs/; revision=134171
2009-05-15 00:31:55 +00:00
Zoltan Varga 0939307e39 2009-05-15 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_aot_method_hash): Use our internal version of
	mono_metadata_type_hash ().

svn path=/trunk/mono/; revision=134170
2009-05-15 00:15:36 +00:00
Jonathan Pryor c5011b3e9c * Makefile: Distribute Test/test-config-file-net-2.0.
svn path=/trunk/mcs/; revision=134169
2009-05-14 23:33:37 +00:00
Marek Sieradzki 73e2d7c450 2009-05-15 Marek Sieradzki <[email protected]>
* BuildItemTest.cs:
        * BuildPropertyGroupTest.cs:
        * BuildPropertyGroupCollectionTest.cs:
        * BuildPropertyTest.cs:
        * BuildItemGroupTest.cs:
        * EngineTest.cs:
        * InternalLoggerExceptionTest.cs:
        * ProjectTest.cs: Don't compare exception messages.


svn path=/trunk/mcs/; revision=134168
2009-05-14 23:17:40 +00:00
Marek Sieradzki 5efec32266 2009-05-15 Marek Sieradzki <[email protected]>
* Items.cs
        * Conditions.cs: Don't check exception messages.


svn path=/trunk/mcs/; revision=134167
2009-05-14 23:14:57 +00:00
Zoltan Varga 59a85c26e9 2009-05-14 Zoltan Varga <[email protected]>
* image-writer.c (asm_writer_emit_local_symbol): Make this a nop on
	osx.

svn path=/trunk/mono/; revision=134166
2009-05-14 21:59:17 +00:00
Ankit Jain 05b7f99710 Fix tests on monobuild
* Makefile (EXTRA_DISTFILES): Add Test/resources/Sample.vb

svn path=/trunk/mcs/; revision=134153
2009-05-14 18:12:18 +00:00
Ankit Jain f5d2048d70 * ProjectTest.cs (TestAssignment1):
* UsingTaskTest.cs (TestTaskName):
(TestAssemblyNameOrAssemblyFile1):
(TestAssemblyNameOrAssemblyFile2): Don't compare exception messages.

svn path=/trunk/mcs/; revision=134151
2009-05-14 18:07:02 +00:00
Ankit Jain 8f0ddff7be * Project.cs (.ctor): Init timeOfLastDirty.
svn path=/trunk/mcs/; revision=134150
2009-05-14 18:05:47 +00:00
Miguel de Icaza d77da8aa8f Add more diagnostics
svn path=/trunk/mono/; revision=134144
2009-05-14 16:50:42 +00:00
Jonathan Pryor b55df3bcb0 * src/DbLinq/Data/Linq/Sugar/Implementation/QueryCache.cs: Temporarily
disable QueryCache.GetFromSelectCache(), as the cache keeps breaking
	  for currently undiagnosed reasons.  With this disabled, NerdDinner
	  seems to work properly.

svn path=/trunk/mcs/; revision=134143
2009-05-14 16:36:54 +00:00
Zoltan Varga 90d0f74522 2009-05-14 Zoltan Varga <[email protected]>
* mini-mips.c mini-mips.h exceptions-mips.c: Transition the mips backend
	to use mono_arch_throw_corlib_exception.

svn path=/trunk/mono/; revision=134141
2009-05-14 15:28:19 +00:00
Sebastien Pouliot 4db8fce1e4 2009-05-14 Sebastien Pouliot <[email protected]>
* DnsEndPoint_2_1.cs: Add method to return an IPEndPoint from a
	DnsEndPoint that match the requested AddressFamily


svn path=/trunk/mcs/; revision=134140
2009-05-14 15:22:59 +00:00
Jonathan Pryor 74bba50348 * Makefile: Add 'update-dblinq' target, which copies files from my
dblinq checkout into src.
	* System.Data.Linq.dll.sources, System.Data.Linq_test.dll.sources: Add
	  additional files.
	* src/**/*: Flush; syncs to DbLinq r1073, greatly improves object
	  tracking support, more tests....

svn path=/trunk/mcs/; revision=134139
2009-05-14 15:09:36 +00:00
Jonathan Pryor 2d87668646 * System_test.dll.sources: Add ListChangedEventArgsTest.cs.
* System.ComponentModel/ListChangedEventArgs.cs: Fix .NET compatibility
	  problems (discovered from trying to run the System.Data.Linq 
	  unit tests).
	* Test/System.ComponentModel/ListChangedEventArgsTest.cs: Added; tests
	  for ListChangedEventArgs.

svn path=/trunk/mcs/; revision=134138
2009-05-14 15:08:47 +00:00
Zoltan Varga 0ec3b9f1d4 2009-05-14 Zoltan Varga <[email protected]>
* mini-ppc.c mini-ppc.h exceptions-ppc.c: Use
	mono_arch_throw_corlib_exception for throwing corlib exceptions.

svn path=/trunk/mono/; revision=134137
2009-05-14 15:07:34 +00:00
Zoltan Varga 64f1864928 2009-05-09 Zoltan Varga <[email protected]>
* tramp-ppc.c (mono_arch_get_static_rgctx_trampoline): Implement this for
	PPC.

	* mini-ppc.h: Enable static rgctx trampolines for ppc.

svn path=/trunk/mono/; revision=134136
2009-05-14 15:07:25 +00:00
Zoltan Varga 81fb6cbb76 2009-05-14 Zoltan Varga <[email protected]>
* Makefile.am (test-coreclr-security): Use the net_2_1_raw profile since
	the net_2_1 profile is no longer generated.

svn path=/trunk/mono/; revision=134129
2009-05-14 12:59:08 +00:00
Atsushi Eno ff6c7fa8e9 2009-05-14 Atsushi Enomoto <[email protected]>
* XmlBinaryWriterSession.cs : added test to verify that session is
	  actually used in binary dictionary writer.


svn path=/trunk/mcs/; revision=134126
2009-05-14 12:36:45 +00:00
Zoltan Varga 0d09d91f89 2009-05-14 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_patch): Allocate the data for R4/R8 from the
	domain mempool.

	* mini.c (mono_patch_info_dup_mp): Copy the table of switch targets too.

svn path=/trunk/mono/; revision=134120
2009-05-14 11:01:08 +00:00
Atsushi Eno aba63b35bb 2009-05-14 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Moved
	  sending/receiving SizedMessageRecord parts to manager class.
	  Handle writer session, though it is likely broken at dictionary
	  writer part (no string is written so far).
	* BinaryMessageEncoder.cs : add writer session and rename reader
	  session.


svn path=/trunk/mcs/; revision=134117
2009-05-14 10:46:38 +00:00
Gonzalo Paniagua Javier 67213dd648 2009-05-14 Gonzalo Paniagua Javier <[email protected]>
* TypeTest.cs: test for bug #503728


svn path=/trunk/mcs/; revision=134114
2009-05-14 10:24:08 +00:00
Gonzalo Paniagua Javier 6ef4c55de3 2009-05-14 Gonzalo Paniagua Javier <[email protected]>
* Type.cs: (GetInterfaceMap) 'this' can't be an interface itself.
	Fixed bug #503728.


svn path=/trunk/mcs/; revision=134112
2009-05-14 10:18:03 +00:00
Atsushi Eno b479bfcbb6 2009-05-14 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Via uri
	  is mandatory in initiator preamble packet. Handle Fault reply in
	  initiator preamble.


svn path=/trunk/mcs/; revision=134111
2009-05-14 09:38:45 +00:00
Atsushi Eno 432c16b14f 2009-05-14 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : ongoing refactoring to collect [MC-NMF]
	  based communication under TcpBinaryFrameManager class.


svn path=/trunk/mcs/; revision=134107
2009-05-14 08:52:14 +00:00
Atsushi Eno d691a2d3df 2009-05-14 Atsushi Enomoto <[email protected]>
* SerializationMap.cs: interface collection failed to serialize as
	  it was calling inappropriate GetInterfaceMap().

	* XmlObjectSerializerTest.cs : added serialization test for
	  interface collection.


svn path=/trunk/mcs/; revision=134100
2009-05-14 04:28:25 +00:00
Jonathan Pryor 8c22b25395 * Makefile: $(test_lib).config needs to be profile-specific.
* Test/test-config-file: Revert the prior change, as this breaks 1.0
	  profile testing.
	* Test/test-config-file-net-2.0: Added; config file to use when testing
	  under the .NET 2.0+ profile, for #502944.

svn path=/trunk/mcs/; revision=134099
2009-05-14 03:06:32 +00:00
Marek Habersack 03a497665b 2009-05-14 Marek Habersack <[email protected]>
* HandlerFactoryConfiguration.cs: if we're matching a default
	handler, disallow caching.

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

	* HttpHandlersSection.cs: if we're matching a default handler,
	disallow caching.

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

	* HttpApplication.cs: LocateHandler won't cache if a default
	handler was returned.

svn path=/trunk/mcs/; revision=134097
2009-05-14 01:18:12 +00:00
Rodrigo Kumpera b959d64425 2009-05-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the assembly table.

svn path=/trunk/mono/; revision=134095
2009-05-13 23:43:43 +00:00
Rodrigo Kumpera c2543d8597 2009-05-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the assembly table.

svn path=/trunk/mono/; revision=134094
2009-05-13 23:42:49 +00:00
Rodrigo Kumpera 68b48fb41b 2009-05-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Fix rows limit check.

svn path=/trunk/mono/; revision=134093
2009-05-13 23:40:20 +00:00
Rodrigo Kumpera 60babc7d3e 2009-05-13 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Add tests for fieldrva.

svn path=/trunk/mono/; revision=134092
2009-05-13 23:37:19 +00:00
Rodrigo Kumpera bdb96c8ef0 2009-05-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the fieldrva table.

svn path=/trunk/mono/; revision=134091
2009-05-13 23:37:03 +00:00
Zoltan Varga e64b2edf4b 2009-05-14 Zoltan Varga <[email protected]>
* aot-compiler.c: Emit a local symbol prefixed with the assembly name
	for the got to make debugging easier and to avoid confusing it with the
	system got.

svn path=/trunk/mono/; revision=134089
2009-05-13 23:05:11 +00:00
Zoltan Varga fd41b46ebe 2009-05-14 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Emit a C style symbol for each
	method so a breakpoint can be set when using gdb.

svn path=/trunk/mono/; revision=134086
2009-05-13 22:52:21 +00:00
Andreia Gaita 34bdc81406 2009-05-13 Andreia Gaita <[email protected]>
* HtmlDocument.cs: If the objects are strings, wrap them in ""

svn path=/trunk/mcs/; revision=134084
2009-05-13 21:43:32 +00:00
Andreia Gaita 5f64f78a81 2009-05-13 Andreia Gaita <[email protected]>
* HtmlDocument.cs: Fix InvokeScript call (duh).

svn path=/trunk/mcs/; revision=134083
2009-05-13 21:43:17 +00:00
Veerapuram Varadhan 6db4d26f34 2009-05-12 Veerapuram Varadhan <[email protected]>
** Fixes rest of #497715 - Patch by Jonas Larsson <[email protected]>
	* TdsMetaParameter.cs: Add support for XML type.  For now, handle
	XML type as just NVarchar.

svn path=/trunk/mcs/; revision=134079
2009-05-13 20:47:15 +00:00
Jb Evain 045b9fd735 2009-05-13 Jb Evain <[email protected]>
* MessageHeader.cs: use a SL friendly way of creating an XmlReader
	from a StringReader.


svn path=/trunk/mcs/; revision=134064
2009-05-13 15:43:31 +00:00
Atsushi Eno efe4fe84e0 moving missing WCF assembly (mono-only one).
svn path=/trunk/mcs/; revision=134063
2009-05-13 15:23:03 +00:00
Jb Evain 15a72b59fc delete for good
svn path=/trunk/mcs/; revision=134062
2009-05-13 15:13:28 +00:00
Jonathan Chambers 6821167f59 Add initial solution generation support. This generates a solution with all mcs assemblies. It does not handle dependencies yet. Also, it brings Visual Studio to a standstill, so it's not really usable for editing.
svn path=/trunk/mono/; revision=134055
2009-05-13 14:09:35 +00:00
Mark Probst 40af486ec8 Speed up weak refs.
2009-05-13  Mark Probst  <[email protected]>

	* sgen.c: Speed up weak links and finalizers by grouping them by
	generation.

svn path=/trunk/mono/; revision=134053
2009-05-13 13:08:18 +00:00
Atsushi Eno a18fbb9d9d 2009-05-13 Atsushi Enomoto <[email protected]>
* MessageImpl.cs, MessageHeader.cs : eliminate xlinq in 2.1, and
	  actually eliminate DOM-based implementation too in 2.0.

	* Makefile : remove xlinq dependency.


svn path=/trunk/mcs/; revision=134052
2009-05-13 11:53:36 +00:00
Atsushi Eno 27ffe029c5 2009-05-13 Atsushi Enomoto <[email protected]>
* ServiceCredentials.cs : IServiceBehavior.Validate() should not
	  throw NIE. No check so far.


svn path=/trunk/mcs/; revision=134049
2009-05-13 11:03:04 +00:00
Atsushi Eno ec6df7fbdb 2009-05-13 Atsushi Enomoto <[email protected]>
* ReplyHandler.cs, InputOrReplyRequestProcessor.cs,
	  MessageProcessingContext.cs : reply processing is also needed by
	  non-request channels (i.e. duplex). Current code basis lacked
	  such possibility. Quick fix by adding duplex support in
	  ReplyHandler so far.


svn path=/trunk/mcs/; revision=134046
2009-05-13 10:30:23 +00:00
Atsushi Eno 3f72b59b04 2009-05-13 Atsushi Enomoto <[email protected]>
* OperationContext.cs : missing from the previous commit (remove
	  timeouts).


svn path=/trunk/mcs/; revision=134045
2009-05-13 10:26:40 +00:00
Atsushi Eno 7bcaf9bbbc 2009-05-13 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs, SecurityHandler.cs,
	  InputOrReplyRequestProcessor.cs, MessageProcessingContext.cs :
	  remove default communication timeouts from several types. They
	  bring bogus NRE. Instead, fill timeouts in ChannelDispatcher and
	  use it when required (it was actually *only* request processor).

	* ChannelDispatcherTest.cs : make sure ctor args are nullable.


svn path=/trunk/mcs/; revision=134044
2009-05-13 10:08:46 +00:00
Atsushi Eno 569b4b0f65 2009-05-13 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : wrong channel argument.


svn path=/trunk/mcs/; revision=134042
2009-05-13 09:25:12 +00:00
Mark Probst aba0daaba5 Free previous GCHandle when overwriting an entry in delegate_hash_table.
2009-05-13  Mark Probst  <[email protected]>

	* marshal.c (delegate_hash_table_add): When overwriting an entry,
	free the old GCHandle (only applies to SGen).

svn path=/trunk/mono/; revision=134040
2009-05-13 07:47:42 +00:00
Gonzalo Paniagua Javier 75851e835c 499009 has been fixed. Remove the workaround.
svn path=/trunk/mcs/; revision=134030
2009-05-13 01:13:30 +00:00
Gonzalo Paniagua Javier 3ca2cb0516 fix test
svn path=/trunk/mcs/; revision=134029
2009-05-13 00:43:10 +00:00
Gonzalo Paniagua Javier d073acc2b4 2009-05-12 Gonzalo Paniagua Javier <[email protected]>
* UrlPattern.cs: if the pattern is line {a}/{b} and {b} is substituted
	by an empty string, remove the '/' too.


svn path=/trunk/mcs/; revision=134028
2009-05-13 00:40:51 +00:00
Zoltan Varga 96990d1970 2009-05-13 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_aot_method_hash): Implement this properly based
	on mono_method_get_imt_slot ().

svn path=/trunk/mono/; revision=134026
2009-05-13 00:17:24 +00:00
Zoltan Varga 5e5bf2a987 2009-05-13 Zoltan Varga <[email protected]>
* aot-runtime.c (find_extra_method_in_amodule): Get rid of the
	num_decodes variables.

svn path=/trunk/mono/; revision=134020
2009-05-12 23:50:17 +00:00
Zoltan Varga 7b44cfebfb 2009-05-13 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_aot_method_hash): Revert part of the last
	change as it doesn't seem to work.

svn path=/trunk/mono/; revision=134016
2009-05-12 23:33:59 +00:00
Zoltan Varga 8086447b0f 2009-05-13 Zoltan Varga <[email protected]>
* loader.c (mono_get_method_from_token): Avoid the expensive call to
	mono_metadata_load_generic_params () for non-generic methods.

svn path=/trunk/mono/; revision=134015
2009-05-12 23:20:38 +00:00
Zoltan Varga 61991b6f21 2009-05-13 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_aot_method_hash): Improve the hashing of
	wrappers.

svn path=/trunk/mono/; revision=134014
2009-05-12 23:20:30 +00:00
Gonzalo Paniagua Javier f9394727d6 2009-05-12 Gonzalo Paniagua Javier <[email protected]>
* UrlPattern.cs: non-string default arguments work now.


svn path=/trunk/mcs/; revision=134012
2009-05-12 23:17:03 +00:00
Marek Habersack d219fb0b28 2009-05-12 Marek Habersack <[email protected]>
* UrlPattern.cs: The
	value comparison is done case-insensitively when the dictionary
	values are strings. Fixes bug #502555

svn path=/trunk/mcs/; revision=133997
2009-05-12 21:51:01 +00:00
Zoltan Varga a2cebe9a31 2009-05-12 Zoltan Varga <[email protected]>
* aot-compiler.c mini.c mini-amd64.h mini-arm.h: Kill
	MONO_ARCH_FULL_AOT_IMT_SUPPORTED define, both platforms now support imt.

svn path=/trunk/mono/; revision=133993
2009-05-12 21:31:03 +00:00
Zoltan Varga 5b7f08d53a 2009-05-12 Zoltan Varga <[email protected]>
* mini.c (mini_init): Install mono_aot_get_imt_thunk as the IMT thunk
	builder when using full aot.

	* mini-amd64.c (mono_arch_build_imt_thunk): Don't handle the full-aot case
	here, it is already handled.

	* mini-arm.c (mono_arch_emit_imt_argument): Pass the dynamic imt arg
	correctly for IMT.

	* aot-compiler.c (arch_emit_imt_thunk): Implement this for ARM.

	* mini-arm.h: Enable IMT for full aot.

svn path=/trunk/mono/; revision=133992
2009-05-12 21:26:53 +00:00
Marek Habersack f1f5d2d327 2009-05-12 Marek Habersack <[email protected]>
* UrlPattern.cs: TrySubstitute performs substitution trimming. If
	a segment would be set to a default value and all of its following
	segments as well, it will be omitted from the generated URL.

svn path=/trunk/mcs/; revision=133990
2009-05-12 20:37:34 +00:00
Mark Probst 9083014dc9 Remove an object's monitor's weak link when clearing domains.
2009-05-12  Mark Probst  <[email protected]>

	* monitor.c, monitor.h (mono_monitor_get_object_monitor_weak_link):
	New function for returning a monitor's weak link if it has one.

	* sgen-gc.c: Remove an object's monitor's weak link (if it has
	one) when clearing a domain.  These can still be around because
	the object might not have been collected.

svn path=/trunk/mono/; revision=133989
2009-05-12 20:22:02 +00:00
Jonathan Pryor 3b6088ff92 * System.Diagnostics/DiagnosticsConfigurationHandler.cs: Use the new
TraceSourceInfo(string, SourceLevels, TraceImplSettings) constructor.
	* System.Diagnostics/TraceSourceInfo.cs: Add a new constructor, 
	  TraceSourceInfo(string, SourceLevels, TraceImplSettings), which adds
	  the DefaultTraceListener w/o depending upon (the possibly still
	  initializing) TraceImpl members.  Fixes #502944.
	* Test/test-config-file: Add a /configuration/system.diagnostics/source
	  section to elicit the buggy behavior found in #502944.

svn path=/trunk/mcs/; revision=133981
2009-05-12 18:53:16 +00:00
Zoltan Varga 95f93988d5 2009-05-12 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Don't emit imt thunk if the
	arch doesn't support it.

svn path=/trunk/mono/; revision=133976
2009-05-12 15:51:27 +00:00
Zoltan Varga bdb90eb61e 2009-05-12 Zoltan Varga <[email protected]>
* mini.c (mini_init): Don't disable IMT for full aot if the
	architecture supports it.

	* mini.h (MonoAotTrampoline): New enum containing the different types
	of 'numerous' trampolines.
	(MONO_AOT_FILE_VERSION): Bump this.

	* aot-compiler.c aot-runtime.c: Unify the handling of specific and
	static rgctx trampolines. Add support for full-aot IMT thunks.

	* mini-amd64.h: Enable IMT for full aot.

svn path=/trunk/mono/; revision=133971
2009-05-12 15:02:47 +00:00
Zoltan Varga a66c62209f 2009-05-12 Zoltan Varga <[email protected]>
* gc.c: Fix a warning.

svn path=/trunk/mono/; revision=133970
2009-05-12 14:58:09 +00:00
Carlos Alberto Cortez bd9df371f2 * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
* ComboBox.cs: If auto complete is being used, it is needed to update
	the actual value of the combo box, doing it immediately if the user
	presses Enter, or doing it when our combo box loses focus. Finally,
	when handling Enter and Escape keys for the combobox, don't try to
	hide the listbox if it is not visible in the first place. 
	Fixes part of #489339.

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


svn path=/trunk/mcs/; revision=133969
2009-05-12 14:55:04 +00:00
Zoltan Varga f50cce0a65 2009-05-12 Zoltan Varga <[email protected]>
* TestDriver.cs: Add a CategoryAttribute class and an --exclude option
	to exclude tests belonging to a category.

	* generics.cs: Mark some tests with a !FULLAOT category.

	* Makefile.am (fullaotcheck): Run tests with --exclude !FULLAOT. Include
	generics tests.

svn path=/trunk/mono/; revision=133968
2009-05-12 14:49:26 +00:00
Sebastien Pouliot a100d9517e 2009-05-12 Sebastien Pouliot <[email protected]>
* WebHeaderCollection_2_1.cs: Headers are case insensitive but we
	must keep them in their original form since AllKeys property will
	report them that way and user code (like DRT#288) can depends on
	this behavior.


svn path=/trunk/mcs/; revision=133966
2009-05-12 13:34:14 +00:00
Tor Lillqvist fe3c7974db 2009-05-12 Tor Lillqvist <[email protected]>
* template_main.c: Some small improvements on Windows: No need to
	include <shellapi.h>, <windows.h> does it already. Don't use the
	argc value as passed to main(), instead just let
	CommandLineToArgvW() overwrite it. Free the buffer returned by
	CommandLineToArgvW().


svn path=/trunk/mcs/; revision=133962
2009-05-12 10:33:40 +00:00
Kornél Pál 2411d34b28 * TODO: Added notices about linking Mono statically.
svn path=/trunk/mcs/; revision=133960
2009-05-12 09:58:49 +00:00
Kornél Pál fd195610e8 2009-05-12 Kornél Pál <[email protected]>
* gc.c (mono_gc_init): Set gc_thread on creation. This avoids the
	prevous wait that resulted in a deadlock on Windows when initializing
	the runtime form DllMain. Also results in improved startup time.
	(finalizer_thread): Get rid of thread_started_event.
	* threads.c, threads-types.h (mono_thread_create_internal): Return the
	resulting MonoThread.

	Contributed under MIT/X11 license.

Also fixed ChangeLog encoding.

svn path=/trunk/mono/; revision=133959
2009-05-12 09:07:56 +00:00
Gonzalo Paniagua Javier eda5c831df 2009-05-11 Gonzalo Paniagua Javier <[email protected]>
* TcpClient.cs:
	* Socket.cs:
	* UdpClient.cs: use GetHostAddresses() instead of Resolve or
	GetHostEntry.


svn path=/trunk/mcs/; revision=133951
2009-05-12 03:56:03 +00:00
Gonzalo Paniagua Javier d10f265ad0 2009-05-11 Gonzalo Paniagua Javier <[email protected]>
* Dns.cs: made GetHostAddresses and friends internal for 1.x
	* EndpointPermission.cs: use GetHostAddresses.


svn path=/trunk/mcs/; revision=133949
2009-05-12 03:49:14 +00:00
Rodrigo Kumpera 6664eb94c2 2009-05-11 Rodrigo Kumpera <[email protected]>
* assembly-with-methods.cs: Mark the class with the
	P/Invoke as abstract.

	* cli-tables-tests.md: Add tests for implmap.

svn path=/trunk/mono/; revision=133947
2009-05-12 03:31:25 +00:00
Rodrigo Kumpera 1f0174282a 2009-05-11 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the implmap table.
	Don't require that #US and #Strings be present.

svn path=/trunk/mono/; revision=133946
2009-05-12 03:30:29 +00:00
Gonzalo Paniagua Javier acbdd80484 2009-05-11 Gonzalo Paniagua Javier <[email protected]>
* UdpClient.cs: if possible, avoid DNS lookups when the host name is
	an IP address. Related to bug #502866.


svn path=/trunk/mcs/; revision=133944
2009-05-12 03:14:36 +00:00
Carlos Alberto Cortez 3652db357d 2009-05-11 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDownTest.cs: New test to assure the Height atfer
	calculating the layout depends on ToolStripItem.GetPreferredHeight.


svn path=/trunk/mcs/; revision=133943
2009-05-12 02:13:32 +00:00
Carlos Alberto Cortez 5df136a075 2009-05-11 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDownMenu.cs: Use the height returned by
	ToolStripItem.GetPreferredHeight to calculate our own height.


svn path=/trunk/mcs/; revision=133941
2009-05-12 02:11:19 +00:00
Sebastien Pouliot 837f7ed65b 2009-05-11 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Delegate checks are done at creation time,
	not a invocation time. Fix exception for Telerik Silverlight demo


svn path=/trunk/mono/; revision=133938
2009-05-12 01:54:15 +00:00
Zoltan Varga 3847a71032 2009-05-12 Zoltan Varga <[email protected]>
* collection.c (collection_thread): Get rid of all the ifdefs and
	gcc attributes, simply return NULL.

svn path=/trunk/mono/; revision=133934
2009-05-11 22:52:12 +00:00
Tor Lillqvist f448b9757b 2009-05-12 Tor Lillqvist <[email protected]>
* mkbundle.1: Document MONO_BUNDLED_OPTIONS.


svn path=/trunk/mono/; revision=133933
2009-05-11 22:07:31 +00:00
Sebastien Pouliot 6961ce6c4f * WebHeaderCollection_2_1.cs: Headers are removed only in special
cases and never when the "this" property is used. Call ToLower
	in SetHeader too in order to avoid typos.

2009-05-11  Sebastien Pouliot  <[email protected]>


svn path=/trunk/mcs/; revision=133930
2009-05-11 21:34:04 +00:00
Mark Probst 8cfb5e70a7 Reset abort exception/state and current_appcontext early to avoid cross-context problems.
2009-05-11  Mark Probst  <[email protected]>

        * sgen-gc.c (need_remove_object_for_domain): Remove the special
        case for the Thread class.

        * threads.c: Do clean-up of abort exception/state in
        thread_cleanup() instead of Thread.free_internal().  Also clean up
        current_appcontext.  The reason we have to do that is because
        those references might point into another domain and if that
        domain is unloaded before the thread is finalized, they point to
        invalid data.

svn path=/trunk/mono/; revision=133925
2009-05-11 20:28:05 +00:00
Sebastien Pouliot 1f57fbd519 2009-05-11 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Fix Accept and ContentType properties
	to use, with special care, the Headers property
	* WebHeaderCollection_2_1.cs (SetHeader): Add or remove header.


svn path=/trunk/mcs/; revision=133916
2009-05-11 19:22:21 +00:00
Tor Lillqvist 888a527041 2009-05-11 Tor Lillqvist <[email protected]>
* template_main.c: Enable passing options to the bundled Mono
	interpreter through a MONO_BUNDLED_OPTIONS environment
	variable. Requested in bug #495858.

	Enable non-ASCII (arbitraty Unicode in fact) command-line
	parameters to a mkbundled executable on Windows. Use
	GetCommandLineW(), CommandLineToArgvW(), and then
	g_utf16_to_utf8(). From bug #446172.


svn path=/trunk/mcs/; revision=133915
2009-05-11 19:21:00 +00:00
Atsushi Eno 1c400f6aa7 2009-05-11 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs : make complex content type work like .NET
	  does. Patch by Jonas Larsson. Fixed bug #501814.

	* XmlValidatingReaderTests.cs : test for bug #501814 by Jonas
	  Larsson.


svn path=/trunk/mcs/; revision=133908
2009-05-11 17:37:07 +00:00
Atsushi Eno ce01d27dc2 2009-05-11 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs : do not forget to clear attributes
	  before Compile(). Patch by Jonas Larsson. Fixed bug #501763.

	* XsdValidatingReaderTest.cs : test for bug #501763 by Jonas Larsson.


svn path=/trunk/mcs/; revision=133905
2009-05-11 17:12:26 +00:00
Marek Habersack 93e9f216e1 2009-05-11 Marek Habersack <[email protected]>
* UrlPattern.cs: TrySubstitute treats defaults differently
	now. They are not consulted when checking if the passed values
	match the pattern, but only when substituting the values. Fixes
	bug #502555

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

	* RouteCollectionTest.cs: added test for bug #502555

svn path=/trunk/mcs/; revision=133904
2009-05-11 17:12:11 +00:00
Atsushi Eno 8db721b50f 2009-05-07 Jonas Larsson <[email protected]>
* XmlAtomicValue.cs : support more type conversion. fixed bug #501666.

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


svn path=/trunk/mcs/; revision=133903
2009-05-11 16:59:42 +00:00
Zoltan Varga 9d50c27f76 2009-05-11 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_and_reloc_code): Move the implementation of
	MONO_PATCH_INFO_GOT_OFFSET to a separate arch-specific function.
	(emit_plt): Fix a warning.

svn path=/trunk/mono/; revision=133895
2009-05-11 13:49:16 +00:00
Zoltan Varga 876b604a87 2009-05-11 Zoltan Varga <[email protected]>
* shared.c: Applied patch from Koushik K. Dutta ([email protected]).
	Fix the build on android.

svn path=/trunk/mono/; revision=133891
2009-05-11 13:06:19 +00:00
Gonzalo Paniagua Javier d61f08756c fix prev patch
svn path=/trunk/mcs/; revision=133874
2009-05-11 04:13:35 +00:00
Gonzalo Paniagua Javier 0c79c076a8 2009-05-10 Gonzalo Paniagua Javier <[email protected]>
* CookieContainer.cs: matching hosts to domain names like MS does.
	Bug #421827 fixed.


svn path=/trunk/mcs/; revision=133872
2009-05-11 03:55:21 +00:00
Carlos Alberto Cortez 0d5ee12093 2009-05-10 Carlos Alberto Cortez <[email protected]>
* TreeNode.cs: When setting Checked, do a double null check, since the
	current node can still get a null parent handling
	TreeView.OnAfterCheck.
	Fixes #502567.


svn path=/trunk/mcs/; revision=133868
2009-05-11 02:55:26 +00:00
Gonzalo Paniagua Javier 052391245a 2009-05-10 Gonzalo Paniagua Javier <[email protected]>
* CustomizableFileSettingsProvider.cs: make sure 'values' is
	initialized in Reset(). Fixes bug #436592.


svn path=/trunk/mcs/; revision=133866
2009-05-11 02:06:04 +00:00
Carlos Alberto Cortez 8a352fe7f6 2009-05-10 Carlos Alberto Cortez <[email protected]>
* Control.cs: When assigning ContextMenu, do a null check before
	assigning its container field.


svn path=/trunk/mcs/; revision=133865
2009-05-11 01:54:14 +00:00
Andrés G. Aragoneses 1d1691647f 2009-05-10 Andy Hume <[email protected]>
* LinkedList.cs: Add null check. Fixes #481621.


svn path=/trunk/mcs/; revision=133864
2009-05-10 21:26:08 +00:00
Zoltan Varga feab3003f9 Fix the build.
svn path=/trunk/mono/; revision=133863
2009-05-10 20:50:20 +00:00
Marek Habersack 44bca195b9 2009-05-10 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/ExpressionInListControl.aspx

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

	* AspGenerator.cs: keep processing the tag if it is not a server
	one and contains expressions and no code render blocks.

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

	* TemplateControlCompilerTest.cs: added a test for expressions in
	list control items.

svn path=/trunk/mcs/; revision=133861
2009-05-10 20:29:01 +00:00
Andrés G. Aragoneses 0176339162 reverted merge problem in last commit
svn path=/trunk/mcs/; revision=133860
2009-05-10 20:23:28 +00:00
Sebastien Pouliot 3a19ed3b4d re-apply changes since Zoltan had already fixed it
svn path=/trunk/mono/; revision=133859
2009-05-10 20:20:13 +00:00
Andrés G. Aragoneses 84eba90d37 2009-05-10 Andrés G. Aragoneses <[email protected]>
* LinkedListTest.cs: Added NotWorking test for #481621,
	converted from example code by Andy Hume <[email protected]>.


svn path=/trunk/mcs/; revision=133858
2009-05-10 20:18:03 +00:00
Sebastien Pouliot ec3a104f29 revert r133848 which broke monobuild
svn path=/trunk/mono/; revision=133857
2009-05-10 20:15:58 +00:00
Zoltan Varga 8f508b39e8 2009-05-10 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Fix the build by moving is_shared_got_patch
	back into aot-compiler.c to a place where the other functions shared by
	the runtime and aot compiler are.

svn path=/trunk/mono/; revision=133856
2009-05-10 18:36:18 +00:00
Zoltan Varga a398788572 2009-05-10 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Emit the got addr using a separate symbol,
	as done previously, instead of in MonoAotFileInfo, since pointers might have
	alignment requirements.

	* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=133855
2009-05-10 18:30:42 +00:00
Sebastien Pouliot 60c3c895c3 2009-05-10 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Move Headers property logic here (as 
	shown by adding more unit tests)
	* WebClient_2_1.cs: Add comment that Headers are not validated
	there, but later.
	* WebHeaderCollection_2_1.cs: Add a SetHeader method that can 
	work around the normal validations that the "this" property
	needs to do.


svn path=/trunk/mcs/; revision=133852
2009-05-10 18:18:30 +00:00
Marek Habersack e7b286e6b4 Sorry for the noise, but the property is also virtual :)
svn path=/trunk/mcs/; revision=133851
2009-05-10 18:17:33 +00:00
Marek Habersack 7a61811fec The property is protected, not public
svn path=/trunk/mcs/; revision=133850
2009-05-10 18:16:21 +00:00
Marek Habersack b9e3cd32a4 2009-05-10 Marek Habersack <[email protected]>
* DbConnection.cs: implemented the DbProviderFactory property

svn path=/trunk/mcs/; revision=133849
2009-05-10 18:15:05 +00:00
Miguel de Icaza 0fb295155b 2009-05-10 Miguel de Icaza <[email protected]>
* aot-runtime.c (mono_aot_is_shared_got_patch): Move this routine
	that is used at runtime from the aot-compiler.c, this makes it
	work on setups that remove the AOT compiler from the output
	image. 


svn path=/trunk/mono/; revision=133848
2009-05-10 17:39:40 +00:00
Andreas Färber 7df197ffdb Fix build without GC
2009-05-10  Andreas Faerber  <[email protected]>

	* null-gc.c (mono_gc_weak_link_add, mono_gc_clear_domain): Fix
	stub signatures.

	This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=133844
2009-05-10 13:35:21 +00:00
Miguel de Icaza e3f9c73b66 Forgot to make this private
svn path=/trunk/mono/; revision=133842
2009-05-09 22:10:08 +00:00
Miguel de Icaza d00ef19bef 2009-05-09 Miguel de Icaza <[email protected]>
* mono-value-hash.c (mono_value_hash_table_insert_replace):
	Initialize variable, to quiet the compiler. 

	* mono-proclib.c: Eliminate two warnings.

svn path=/trunk/mono/; revision=133841
2009-05-09 22:08:35 +00:00
Miguel de Icaza 1d068db178 2009-05-09 Miguel de Icaza <[email protected]>
* verify.c, metadata-verifier.c: Add support for disabling the
	verifier in some builds.

	[ Sorry, my previous commit accidentally commited some work in
	progress ]

svn path=/trunk/mono/; revision=133840
2009-05-09 22:00:33 +00:00
Miguel de Icaza ae99f9f7aa Fix warning
svn path=/trunk/mono/; revision=133839
2009-05-09 21:54:29 +00:00
Miguel de Icaza 3f2bf51d7d Add support to disable the verifier
svn path=/trunk/mono/; revision=133838
2009-05-09 21:47:59 +00:00
Miguel de Icaza 3f6166a7e2 2009-05-09 Miguel de Icaza <[email protected]>
* configure.in: Instead of reporting the various disabled features
	in a loop, where a keyword might fail, report the actual disabled
	features in the sections that handle them

svn path=/trunk/mono/; revision=133837
2009-05-09 21:47:36 +00:00
Miguel de Icaza dd21bac925 Do not build the dwarfwriter if JIT/AOT are disabled
svn path=/trunk/mono/; revision=133835
2009-05-09 20:18:01 +00:00
Zoltan Varga 7e0bb31abe 2009-05-09 Zoltan Varga <[email protected]>
* mini-<ARCH>.h: Kill the MONO_ARCH_ENABLE_EMIT_STATE_OPT define.

svn path=/trunk/mono/; revision=133834
2009-05-09 19:31:27 +00:00
Zoltan Varga 815346523d 2009-05-09 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_long_opts): Move the ppc/sparc specific
	stuff to mono_arch_decompose_long_opts ().
	(mono_decompose_opcode): Remove some dead code.

svn path=/trunk/mono/; revision=133833
2009-05-09 19:25:55 +00:00
Miguel de Icaza 9aa41aa229 Document
svn path=/trunk/mono/; revision=133832
2009-05-09 19:21:28 +00:00
Miguel de Icaza 3fffe7c9f2 Document and add full_messages
svn path=/trunk/mono/; revision=133831
2009-05-09 19:19:24 +00:00
Miguel de Icaza c40c1561f6 2009-05-09 Miguel de Icaza <[email protected]>
* messages.c: Split the scan into common and uncommon messages to
	allow the messages that are not produced by Mono to be removed on
	embedded scenarios.

svn path=/trunk/mono/; revision=133830
2009-05-09 19:16:47 +00:00
Miguel de Icaza 0021d729ce Add new test
svn path=/trunk/mono/; revision=133829
2009-05-09 19:15:27 +00:00
Miguel de Icaza 5373845b9a 2009-05-09 Miguel de Icaza <[email protected]>
* messages.c (message_string): instead of having a gigantic switch
	table, use a sorted structure in memory and do a binary search on
	it.

	This reduces the runtime size by 49k and the debugging symbols by
	400k.



svn path=/trunk/mono/; revision=133828
2009-05-09 17:37:51 +00:00
Miguel de Icaza d8c09a9902 Add a handful of extra DISABLE options to the list
svn path=/trunk/mono/; revision=133827
2009-05-09 16:52:12 +00:00
Sebastien Pouliot 5ecd4daa3f In Assembly:
2009-05-09  Sebastien Pouliot  <[email protected]>

	* AssemblyInfo.cs: Open up the internals to System.Windows.Browser
	(needed right now), System.Windows and System.Xml (needed for an
	upcoming patch).

In System.Net:
2009-05-09  Sebastien Pouliot  <[email protected]>

	* WebHeaderCollection_2_1.cs: When associated with a WebRequest 
	the header collection items needs to be validated since not all
	headers will be valid. Part of fix for DRT#532


svn path=/trunk/mcs/; revision=133826
2009-05-09 15:46:30 +00:00
Brad Taylor ae993cdac4 2009-05-08 Brad Taylor <[email protected]>
* DateTimePicker.cs: Add a UIA-specific property to ensure that if
	is_checkbox_checked is changed, we won't break.


svn path=/trunk/mcs/; revision=133815
2009-05-08 20:28:25 +00:00
Andrés G. Aragoneses 180ff43914 * ToolStripItem.cs: Prevent NRE when our holder is a
ToolStripDropDownButton and we get Select()ed.      

* ToolStripMenuItemTest.cs: Improve test, and remove the
NotWorking attribute. Also remove the 'var' keywords, doh!


svn path=/trunk/mcs/; revision=133814
2009-05-08 19:53:05 +00:00
Carlos Alberto Cortez abf09ef7eb 2009-05-08 Carlos Alberto Cortez <[email protected]>
* ToolStripControlHost.cs: New tests for DefaultSize and
	OnHostedControlResize members.


svn path=/trunk/mcs/; revision=133812
2009-05-08 19:21:27 +00:00
Carlos Alberto Cortez 57fa35785b 2009-05-08 Carlos Alberto Cortez <[email protected]>
* ToolStripControlHost.cs: DefaultSize must return the current size of
	the Control, not the value returned by GetPreferredSize. Also connect
	a handle to the control Resize event, and use it to fire
	OnHostedControlReize.
	Fixes the remaining bits of #483146.


svn path=/trunk/mcs/; revision=133811
2009-05-08 19:21:14 +00:00
Carlos Alberto Cortez 3d341fd45e 2009-05-08 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDown.cs: When performing the layout, use
	ToolStripItem.GetPreferredSize ().Height instead of
	ToolStripItem.Height, since we are already using it that way in this
	same method.
	Fixes part of ##483146.


svn path=/trunk/mcs/; revision=133810
2009-05-08 19:16:11 +00:00
Zoltan Varga c32ac236b5 2009-05-08 Zoltan Varga <[email protected]>
* class.c (mono_class_setup_fields): Set class->field.first for
	generic instances.

svn path=/trunk/mono/; revision=133806
2009-05-08 17:59:10 +00:00
Brad Taylor abeb59adc8 2009-05-08 Brad Taylor <[email protected]>
* DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
	OnUIASelectionChanged when ShowCheckbox is true and the checkbox
	recieves focus.  Part of fix for #502029.


svn path=/trunk/mcs/; revision=133783
2009-05-08 15:59:11 +00:00
Andrés G. Aragoneses f1fc4ad979 * Test/System.Windows.Forms/ToolStripMenuItemTest.cs: Simplify test.
svn path=/trunk/mcs/; revision=133780
2009-05-08 15:38:43 +00:00
Rodrigo Kumpera 457bfd05d3 2009-05-08 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Fix boostrap of non amd64 builds
	cmethod can be null for quite a some reasons.

svn path=/trunk/mono/; revision=133779
2009-05-08 15:34:52 +00:00
Rodrigo Kumpera 2a8814b9f4 2009-05-08 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Fix non amd64 builds.

svn path=/trunk/mono/; revision=133778
2009-05-08 15:27:09 +00:00
Rodrigo Kumpera d1a1c27265 2009-05-07 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for module table.

	* assembly-with-complex-type.cs: Added more stuff;

svn path=/trunk/mono/; revision=133777
2009-05-08 15:26:43 +00:00
Rodrigo Kumpera 4fce184f1b 2009-05-07 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the typespec table.

svn path=/trunk/mono/; revision=133776
2009-05-08 15:26:26 +00:00
Rodrigo Kumpera a2ed762344 2009-05-07 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for module table.

	* assembly-with-module.il: New file.

	* Makefile: Add new dependencies.

svn path=/trunk/mono/; revision=133775
2009-05-08 15:25:57 +00:00
Rodrigo Kumpera f00dd511f8 2009-05-07 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the module table.

svn path=/trunk/mono/; revision=133774
2009-05-08 15:25:40 +00:00
Andrés G. Aragoneses 9ca1d98738 * Test/System.Windows.Forms/ToolStripMenuItemTest.cs: Add yet
another non-passing test (wors in MS.NET).

svn path=/trunk/mcs/; revision=133772
2009-05-08 15:13:54 +00:00
Veerapuram Varadhan 42e15fecc5 Update: included patch contributor's info
svn path=/trunk/mcs/; revision=133770
2009-05-08 14:10:33 +00:00
Veerapuram Varadhan 781cb47467 2009-05-08 Veerapuram Varadhan <[email protected]>
** Fixes #497715
	* SqlDataReader.cs: (GetSqlXml): Handle Xml types for TDS 8/8.1
	clients as well.
	* SqlParameter.cs: Map XML type properly.

svn path=/trunk/mcs/; revision=133769
2009-05-08 14:10:18 +00:00
Marek Safar 6f1e7fccda New test.
svn path=/trunk/mcs/; revision=133768
2009-05-08 13:52:17 +00:00
Marek Safar be9e7c21c8 2009-05-08 Marek Safar <[email protected]>
A fix for bug #496922
	* expression: Always use temporary variable when using object
	initializer.


svn path=/trunk/mcs/; revision=133767
2009-05-08 13:49:17 +00:00
Zoltan Varga 17c30abf11 2009-05-08 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_emit_call_args): Add a 'tail' flag argument.
	(mono_method_to_ir): Use MONO_ARCH_USE_OP_TAIL_CALL macro to determine
	whenever to make tail calls using OP_TAIL_CALL. Enable support for tail
	calls returning structures by addr on amd64.

	* mini-amd64.h (MONO_ARCH_USE_OP_TAIL_CALL): New arch-specific macro.

	* iltests.il.in: Restructure the tail call tests a bit.

svn path=/trunk/mono/; revision=133766
2009-05-08 13:35:14 +00:00
Zoltan Varga 958603a0c2 2009-05-08 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Add powerpc64.

svn path=/trunk/mono/; revision=133752
2009-05-07 23:54:48 +00:00
Zoltan Varga 00b14ac1a9 2009-05-08 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_got_access): Fix the aot-not-supported build.

svn path=/trunk/mono/; revision=133751
2009-05-07 23:54:41 +00:00
Gonzalo Paniagua Javier 2eecef5263 2009-05-07 Gonzalo Paniagua Javier <[email protected]>
* MimeTypes.cs: add silverlight related types.


svn path=/trunk/mcs/; revision=133749
2009-05-07 21:41:52 +00:00
Rodrigo Kumpera eea229ca46 2009-05-07 Rodrigo Kumpera <[email protected]>
* runtime/Makefile.am (mcs-compileall): Pass --security=validil
	to the runtime so the assemblies are not required to be verifiable.

svn path=/trunk/mono/; revision=133737
2009-05-07 19:03:57 +00:00
Gonzalo Paniagua Javier f79232a89c 2009-05-07 Gonzalo Paniagua Javier <[email protected]>
* Connection.cs: if the socket is already disconnected, Shutdown will
	fail with a SocketException... Also, catch *all* the possible
	exceptions since the socket.Close method could also throw
	ObjectDisposedException.
	Fixes bug #449092.


svn path=/trunk/mcs/; revision=133734
2009-05-07 18:13:57 +00:00
Zoltan Varga 3dd42288f8 2009-05-07 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Add remoting-invoke-with-check wrappers
	for virtual methods too.

svn path=/trunk/mono/; revision=133728
2009-05-07 16:52:05 +00:00
Jeffrey Stedfast 6bb1704a2d 2009-04-22 Jeffrey Stedfast <[email protected]>
* src/gtimer-win32.c (g_timer_elapsed): Avoid re-querying freq by
	just saving it in a static variable. Also modified microseconds
	calculation to avoid overflow.


svn path=/trunk/mono/; revision=133725
2009-05-07 15:41:08 +00:00
Jb Evain bc1d2d5356 2009-05-07 Jb Evain <[email protected]>
* System.Xml.Linq/XElement.cs: do a bit of refactoring to avoid
	multiple ifdefs.


svn path=/trunk/mcs/; revision=133717
2009-05-07 12:16:29 +00:00
Sebastien Pouliot 1c619e1f47 2009-05-07 Sebastien Pouliot <[email protected]>
* UniqueId.cs: Fix attributes for v3.5 (and later 2.0 SP) and remove
	them (in particular [SecurityTreatAsSafe]) from the NET_2_1 build.


svn path=/trunk/mcs/; revision=133716
2009-05-07 12:09:00 +00:00
Sebastien Pouliot 9cf46160f5 2009-05-07 Sebastien Pouliot <[email protected]>
* XElement.cs: Use XmlReaderSettings.DtdProcessing property instead
	of ProhibitDtd for NET_2_1 code.


svn path=/trunk/mcs/; revision=133715
2009-05-07 12:04:21 +00:00
Jb Evain 5d0adb948f 2009-05-07 Jb Evain <[email protected]>
* XElementTest.cs: add test for bug #501589.


svn path=/trunk/mcs/; revision=133711
2009-05-07 07:25:25 +00:00
Jb Evain 641175b2b1 2009-05-07 Jb Evain <[email protected]>
* XElement.cs (Load (XmlReader,LoadOptions)): prevent a NRE if
	the provided XmlReader doesn't have existing settings.
	Fixes #501589.

svn path=/trunk/mcs/; revision=133710
2009-05-07 07:24:59 +00:00
Miguel de Icaza 0f4e81e0fd Contribution from Pia Eriksson <[email protected]> that fixes
the CopyTo method in various generic containers.

Also fixes #497720


svn path=/trunk/mcs/; revision=133700
2009-05-07 00:42:16 +00:00
Rodrigo Kumpera ded8c61350 2009-05-06 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for methodimpl table.

	* assembly-with-complex-type.cs: Added more stuff.

svn path=/trunk/mono/; revision=133699
2009-05-06 23:34:38 +00:00
Rodrigo Kumpera 2eebe8d572 2009-05-06 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the methodimpl table.

svn path=/trunk/mono/; revision=133698
2009-05-06 23:34:25 +00:00
Rodrigo Kumpera 6a21eb738c 2009-05-06 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for property table.

	* assembly-with-property.cs: Added more stuff

svn path=/trunk/mono/; revision=133697
2009-05-06 23:33:58 +00:00
Rodrigo Kumpera fb0b78146d 2009-05-06 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the property table.

svn path=/trunk/mono/; revision=133696
2009-05-06 23:33:38 +00:00
Rodrigo Kumpera 4fdf69680c 2009-05-06 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c (next_token): Stop taking chars
	for a token when encountering the first delimiter char.

	This makes the parser less brain-dead when encountering
	sequences like "foo()".

svn path=/trunk/mono/; revision=133695
2009-05-06 23:33:13 +00:00
Andrés G. Aragoneses 9844838a63 2009-05-06 Andrés G. Aragoneses <[email protected]>
* ToolStripMenuItemTest.cs: add tests for Owner and OwnerItem.


svn path=/trunk/mcs/; revision=133681
2009-05-06 19:59:08 +00:00
Andrés G. Aragoneses 9a21efc140 2009-05-06 Andrés G. Aragoneses <[email protected]>
* ToolStripMenuItemTest.cs: more accurate test, and fix build 
        (namespace clash).


svn path=/trunk/mcs/; revision=133679
2009-05-06 19:00:16 +00:00
Raja R Harinath 4952caf2b3 Break some circular dependencies between mono, mcs and moon
* Makefile.am (compiler-tests): Rewrite to re-build the moon
assemblies after mcs/ is built.
* runtime/Makefile.am (build_profiles) [INSTALL_2_1]: Build only
the net_2_1_raw profile.
(test_profiles): New.  Mention net_2_1 profile.
(moon-do-build): New.

svn path=/trunk/mono/; revision=133678
2009-05-06 18:49:05 +00:00
Raja R Harinath ff6b61194b * method-to-ir.c (mono_method_to_ir): Revert change of 2009-05-02.
Reverting because regression unfixed for 4 days:
Compilation of System.Net.NetworkInformation.Win32IPGlobalProperties/Win32_MIB_TCP6ROW:get_LocalEndPoint () failed with exception '(null)':
Compilation of System.Net.NetworkInformation.Win32IPGlobalProperties/Win32_MIB_TCP6ROW:get_RemoteEndPoint () failed with exception '(null)':
Compilation of System.Net.NetworkInformation.Win32IPGlobalProperties/Win32_MIB_UDP6ROW:get_LocalEndPoint () failed with exception '(null)':
../mcs/class/lib/net_2_0/System.dll verification failed

svn path=/trunk/mono/; revision=133677
2009-05-06 18:48:44 +00:00
Andrés G. Aragoneses 4ddf9506c9 2009-05-06 Andrés G. Aragoneses <[email protected]>
* ToolStripMenuItemTest.cs: Add a test for GetCurrentParent
	(passes on MS.NET). Related to a11y bugs #485524 and #479397.


svn path=/trunk/mcs/; revision=133676
2009-05-06 18:36:12 +00:00
Mike Gorse 0339c5e73a * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
Add PerformClick and PerformDoubleClick to PopupButton.
Fixes #499851.

svn path=/trunk/mcs/; revision=133665
2009-05-06 15:15:49 +00:00
Zoltan Varga 9b13e2aa68 2009-05-06 Zoltan Varga <[email protected]>
* debug-mini.c (mono_debugger_method_has_breakpoint): Allow breakpoints
	in dynamic methods.

svn path=/trunk/mono/; revision=133664
2009-05-06 15:09:28 +00:00
Zoltan Varga f1b1c15d4c 2009-05-06 Zoltan Varga <[email protected]>
* debug-helpers.c (mono_method_desc_match): Add support for generic
	glob patterns.

svn path=/trunk/mono/; revision=133663
2009-05-06 15:09:19 +00:00
Zoltan Varga 6c29976d88 2009-05-06 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_class_dwarf_info): Add support for generic
	instances.

svn path=/trunk/mono/; revision=133662
2009-05-06 15:09:11 +00:00
Raja R Harinath 5201a990a2 * FileInfoTest.cs: Wrap Replace() tests in #if NET_2_0.
svn path=/trunk/mcs/; revision=133655
2009-05-06 13:35:46 +00:00
Zoltan Varga 2a4336bfd3 2009-05-06 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Use our own hash function instead of
	g_str_hash () which can change.

svn path=/trunk/mono/; revision=133652
2009-05-06 13:31:30 +00:00
Zoltan Varga 3c508b5c74 2009-05-06 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Use our own hash function instead of
	g_str_hash () which can change.

svn path=/trunk/mono/; revision=133651
2009-05-06 13:31:21 +00:00
Zoltan Varga f2ae59bfe8 2009-05-06 Zoltan Varga <[email protected]>
* driver.c (mini_regression): Disable optimizations not supported by
	the cpu. Fixes #500019.

svn path=/trunk/mono/; revision=133646
2009-05-06 10:44:38 +00:00
Zoltan Varga e285e6ae2d 2009-05-06 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_unwind_info): Fix the --enable-minimal=aot
	build.

svn path=/trunk/mono/; revision=133645
2009-05-06 10:44:29 +00:00
Rodrigo Kumpera b6098ae403 2009-05-05 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for propertymap table.

	* assembly-with-cas.cs: New test file for producing tests
	for property tables.

	* Makefile: Add new dependencies.

svn path=/trunk/mono/; revision=133627
2009-05-06 00:19:21 +00:00
Rodrigo Kumpera 1291bf48ee 2009-05-05 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the propertymap table.

svn path=/trunk/mono/; revision=133626
2009-05-06 00:19:08 +00:00
Rodrigo Kumpera 28490d44bb 2009-05-05 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for event table.

svn path=/trunk/mono/; revision=133625
2009-05-06 00:18:41 +00:00
Rodrigo Kumpera 63bcfd6b1b 2009-05-04 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the event table.

	* metadata-verify.c (search_sorted_table): Fix offset
	calculation.

svn path=/trunk/mono/; revision=133624
2009-05-06 00:18:24 +00:00
Lluis Sanchez ef2a78050a 2009-05-06 Lluis Sanchez Gual <[email protected]>
* Lease.cs: Don't use ArrayList.Remove() to remove sponsors because
	it will end calling Equals, which may crash if the sponsor is not
	available anymore. Just compare references.


svn path=/trunk/mcs/; revision=133621
2009-05-05 23:20:33 +00:00
Lluis Sanchez a5b3f56d50 2009-05-06 Lluis Sanchez Gual <[email protected]>
* RealProxy.cs: If async dispatch crashes, don't propagate the
	exception. The exception will be raised when calling EndInvoke.


svn path=/trunk/mcs/; revision=133620
2009-05-05 23:20:13 +00:00
Miguel de Icaza 6e23827f34 Add this too
svn path=/trunk/mcs/; revision=133619
2009-05-05 22:59:33 +00:00
Miguel de Icaza 6a3ddad347 2009-05-05 Miguel de Icaza <[email protected]>
* Contribution from David Uvalle <[email protected]> that
	implements FileInfo.Replace.

svn path=/trunk/mcs/; revision=133617
2009-05-05 22:58:16 +00:00
Zoltan Varga 7c51c3020c 2009-05-06 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Update the OP_TLS_GET implementation
	to the latest LLVM code.

svn path=/trunk/mono/; revision=133616
2009-05-05 22:36:00 +00:00
Geoff Norton 748b642a2c 2009-05-05 Geoff Norton <[email protected]>
* tests-config: This file is generated by configure.

svn path=/trunk/mono/; revision=133613
2009-05-05 21:27:58 +00:00
Marek Habersack b3a66935ff 2009-05-05 Marek Habersack <[email protected]>
* TemplateParser.cs: PageParserFilterType uses
	HttpApplication.LoadType so that it is able to load the filter
	from App_Code or with not fully qualified type names.

svn path=/trunk/mcs/; revision=133606
2009-05-05 20:47:02 +00:00
Zoltan Varga 769439aad3 2009-05-05 Zoltan Varga <[email protected]>
* genmdesc.pl (load_opcodes): Fix this after the TARGET_... changes.

svn path=/trunk/mono/; revision=133601
2009-05-05 19:28:49 +00:00
Miguel de Icaza 507e4c5ddf 2009-05-05 Miguel de Icaza <[email protected]>
* Contribution from Martin Brenn to fix #498154.

svn path=/trunk/mcs/; revision=133598
2009-05-05 18:29:47 +00:00
Miguel de Icaza 7cb1858630 Do not build docs if cross compiling or the mcs build is disabled
svn path=/trunk/mono/; revision=133592
2009-05-05 17:41:56 +00:00
Miguel de Icaza 7873db07b4 Fix this too
svn path=/trunk/mono/; revision=133590
2009-05-05 17:22:53 +00:00
Miguel de Icaza 99d4ccc8c7 Fix the pkg.m4 nonsense in eglib as well
svn path=/trunk/mono/; revision=133584
2009-05-05 15:13:57 +00:00
Miguel de Icaza 65f9d0b536 2009-05-05 Miguel de Icaza <[email protected]>
* configure.in: Reduce configure-time dependencies by using
	pkg-config the way it was originally intended to be used, and not
	with the incredibly lame and painful inducing pkg.m4 file. 

	I am on a quest to remove this gratuitous dep on pkg.m4 that is
	making people's lives miserable around the globe, just because
	someone can not be bothered to learn the shell if construct.

svn path=/trunk/mono/; revision=133582
2009-05-05 15:08:59 +00:00
Marek Habersack c9c7252804 2009-05-05 Marek Habersack <[email protected]>
* UrlPattern.cs: Match adds defaults values should some keys be
	missing from the url. Fixes bug #500739

	* Route.cs: a small GetRouteData loop optimization

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

	* RouteTest.cs: added test for bug #500739

svn path=/trunk/mcs/; revision=133577
2009-05-05 13:17:30 +00:00
Marek Habersack 2094329d9a 2009-05-05 Marek Habersack <[email protected]>
* Methods.cs: if SoapRpcMethodAttribute doesn't specify the action
	or the action name is an empty string, generate the Action in
	SoapMethodStubInfo constructor. Fixes bug #459790

svn path=/trunk/mcs/; revision=133574
2009-05-05 12:30:25 +00:00
Marek Habersack 98a0866bd5 2009-05-05 Marek Habersack <[email protected]>
* BuildManager.cs: RemoveFailedAssemblies wraps the compilation
	exception to be rethrown in a HttpException instance.

	* AspGenerator.cs: create a Location and pass it to the parser
	before calling AddDirective from GetInheritedType, so that we get
	meaningful exception messages with source, line information etc.

svn path=/trunk/mcs/; revision=133568
2009-05-05 09:03:30 +00:00
Zoltan Varga 6c157d10d9 2009-05-04 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Implement TLS support on
	x86/amd64.

svn path=/trunk/mono/; revision=133534
2009-05-04 21:34:54 +00:00
Bill Holmes d38f487159 2009-05-04 Bill Holmes <[email protected]>
* eglib.vcproj, genmdesc.vcproj, libgc.vcproj, libmono.vcproj,
	  mono.vcproj,monoposixhelper.vcproj :  Adding TARGET_X86 and
	  TARGET_AMD64 preprocessor definitions to the Win32 and x64 targets.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=133532
2009-05-04 21:03:01 +00:00
Jonathan Pryor 6e21b01bc5 * TranslationResources.resx (ErrOperationAborted): Send viewers of
this message to the Wiki for possible reasons they may get an
	  exception (and how to fix it).

svn path=/trunk/mcs/; revision=133515
2009-05-04 17:43:31 +00:00
Miguel de Icaza 3c28dc1536 Forgot to commit
svn path=/trunk/mcs/; revision=133511
2009-05-04 16:13:29 +00:00
Andrés G. Aragoneses 5be248c40a * TabControl.cs: call Focus() to emit GotFocus event at the
proper time when SelectionIndex changes. Fixes #499887.
 
* TabControlTest.cs: More accurate test for bug#499887 showing
the SelectedIndex at the moment of the event (passes on Vista).

svn path=/trunk/mcs/; revision=133510
2009-05-04 16:04:57 +00:00
Marek Habersack 8aa3c10397 2009-05-04 Marek Habersack <[email protected]>
* ThemeDirectoryBuildProvider.cs: use new AspGenerator constructor
	which takes AspComponentFoundery as its
	parameter. AspGenerator.RootBuilder isn't initialized until after
	the parser is initialized.

	* TemplateControlCompiler.cs: make sure to call
	ProcessGeneratedCode on each instance of ControlBuilder after it's
	fully generated. Fixes bug #500075

	* TemplateBuildProvider.cs: moved the directive regex to
	AspGenerator

	* BaseCompiler.cs: added two internal properties, BaseType and
	DerivedType, which are used in calls to
	ControlBuilder.ProcessGeneratedCode. Fixes bug #500075

	* AspGenerator.cs: implemented a work around for our parser
	limitation which is unable to extract the page/control's base type
	before parsing the actual file contents. This is necessary to
	support ASP.NET MVC's "generic" Inherits attribute. The reason we
	need to find out what the base type is before parsing the file is
	that we need to look at the type's custom attributes to see if a
	root control builder type is specified (which is what ASP.NET MVC
	does) and, if yes, use it instead of the default type. Fixes bug
	#500075

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

	* TemplateParser.cs: take RootBuilder from the associated
	generator.
	Allow the main page directive to be added twice if the parser
	needs it. Used by AspGenerator when extracting the inherited type
	name before actual parsing. Fixes bug #500075

	* FileLevelControlBuilderAttribute.cs,
	FileLevelPageControlBuilder.cs, FileLevelUserControlBuilder.cs:
	implemented

	* ControlBuilder.cs: added a new internal property,
	DataBindingMethod.
	Implemented ProcessGeneratedCode.

svn path=/trunk/mcs/; revision=133500
2009-05-04 13:29:32 +00:00
Zoltan Varga a5d6ab3bf5 2009-05-04 Zoltan Varga <[email protected]>
* aot-compiler.c (encode_patch_list): Simplify this considerably as we are
	no longer saving offsets, so just save the patch types along with the other
	info.
	* aot-runtime.c (load_patch_info): Update after the changes to
	encode_patch_list ().
	(decode_got_entry): Removed, merged into load_patch_info ().
	(is_shared_got_patch): Removed, call the same function from
	aot-compiler.c.

	* mini.h: Bump aot file format version.

svn path=/trunk/mono/; revision=133469
2009-05-04 06:26:44 +00:00
Zoltan Varga 1c0e69a8a1 2009-05-04 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Resurrect static linking support. Kill the
	half-finished no-dlsym code.

svn path=/trunk/mono/; revision=133467
2009-05-04 05:56:28 +00:00
Zoltan Varga 8c052d41c9 2009-05-04 Zoltan Varga <[email protected]>
* aot-runtime.c (load_method): Kill the old and bit-rotten use_loaded_code
	option.

svn path=/trunk/mono/; revision=133464
2009-05-04 05:07:31 +00:00
Zoltan Varga 66d373f27c 2009-05-04 Zoltan Varga <[email protected]>
* mini-<ARCH>.h mini-trampolines.c aot-runtime.c: Kill the
	MONO_ARCH_HAVE_CREATE_TRAMPOLINE_FROM_TOKEN define.

svn path=/trunk/mono/; revision=133463
2009-05-04 05:04:04 +00:00
Gonzalo Paniagua Javier 0ff61c4ace 2009-05-03 Gonzalo Paniagua Javier <[email protected]>
* TermInfoDriver.cs: replace Peek with DataAvailable.


svn path=/trunk/mcs/; revision=133461
2009-05-04 03:40:01 +00:00
Gonzalo Paniagua Javier 12f4ef3894 2009-05-03 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: we just need the address(es), not a host entry. This avoids
	querying the DNS server(s) when the target is an IP address.


svn path=/trunk/mcs/; revision=133459
2009-05-04 03:14:29 +00:00
Carlos Alberto Cortez 5f7c613c84 2009-05-03 Carlos Alberto Cortez <[email protected]>
* MonthCalendar.cs: In SetBoundsCore always do the bounds check to
	have valid values, even if BoundSpecified is not including
	Size/Height/Width - this is useful when we are in a control using Dock
	or Anchor.
	Fixes part of #483146.


svn path=/trunk/mcs/; revision=133441
2009-05-03 18:16:53 +00:00
Miguel de Icaza 2602bea504 Fix compiler build, make sure generated solutions include the actual HintPath so VS does not turn lib/basic/System.dll into GAC system.dll, so pass the entire relative path
svn path=/trunk/mono/; revision=133438
2009-05-03 18:03:02 +00:00
Miguel de Icaza 0dbf0040d6 Update to support the compiler buidl
svn path=/trunk/mono/; revision=133436
2009-05-03 17:52:22 +00:00
Miguel de Icaza 7ed2e32690 Update
svn path=/trunk/mono/; revision=133435
2009-05-03 17:18:09 +00:00
Sebastien Pouliot 82df4bb3d3 2009-05-03 Sebastien Pouliot <[email protected]>
* MethodInfoTest.cs: Add test cases from Joachim Ante for bug
	#500385.


svn path=/trunk/mcs/; revision=133428
2009-05-03 13:41:29 +00:00
Martin Baulig ccea1abae9 2009-05-03 Martin Baulig <[email protected]>
* debug-debugger.c (debugger_insert_source_breakpoint): Don't call
	mono_debugger_insert_method_breakpoint() since the class init
	handler we're inserting at the top of the method already gives us
	a notification.

svn path=/trunk/mono/; revision=133425
2009-05-03 12:46:27 +00:00
Atsushi Eno 812c8fcf61 2009-05-02 Atsushi Enomoto <[email protected]>
* CredentialCache.cs : implement all not-implemented methods.
	  Patch by Mineda Nozomi. Close bug #499556.

	* CredentialCacheTest.cs : new tests for get/add/remove.
	  Patch by Mineda Nozomi.


svn path=/trunk/mcs/; revision=133400
2009-05-02 19:55:48 +00:00
Miguel de Icaza 4b77d38b24 The support
svn path=/trunk/mcs/; revision=133397
2009-05-02 17:40:29 +00:00
Miguel de Icaza 065a808d99 Support the compiler
svn path=/trunk/mono/; revision=133396
2009-05-02 17:39:36 +00:00
Miguel de Icaza 6d7201caa3 For MCS, override csproj-local to report the right compiler
svn path=/trunk/mcs/; revision=133395
2009-05-02 17:26:59 +00:00
Miguel de Icaza b204672ea0 Forgot to commit this
svn path=/trunk/mono/; revision=133391
2009-05-02 16:05:58 +00:00
Miguel de Icaza 7aedd3b0cf This now builds System.Xml-basic
svn path=/trunk/mono/; revision=133390
2009-05-02 15:30:28 +00:00
Zoltan Varga 69fa7e57bb 2009-05-02 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_get_static_rgctx_trampoline): Increase the
	buffer length to work with AOT code.

svn path=/trunk/mono/; revision=133387
2009-05-02 14:55:29 +00:00
Sebastien Pouliot 348617482b In System.Security:
2009-05-02  Sebastien Pouliot  <[email protected]>

	* CodeAccessPermission.cs (ThrowSecurityException): Don't include
	CAS-specific information when throwing a SecurityException in
	NET_2_1

In System:
2009-05-02  Sebastien Pouliot  <[email protected]>

	* Console.cs: Remove Windows-specific p/invokes and SSC code
	from the NET_2_1 build.

In System.Security.Cryptography.X509Certificates:
2009-05-02  Sebastien Pouliot  <[email protected]>

	* X509Certificate.cs: Remove code to initialize from an handle
	in NET_2_1 since this is only possible from Windows and would be
	SC anyway.

In System.Reflection:
2009-05-02  Sebastien Pouliot  <[email protected]>

	* Assembly.cs: Exclude CAS-specific code for NET_2_1


svn path=/trunk/mcs/; revision=133384
2009-05-02 14:22:17 +00:00
Zoltan Varga aef787c83a 2009-05-02 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Handle loading errors in the
	ldfld/stfld opcodes.

svn path=/trunk/mono/; revision=133382
2009-05-02 13:59:16 +00:00
Miguel de Icaza ae9fe7714a Try this
svn path=/trunk/mono/; revision=133378
2009-05-02 06:36:24 +00:00
Miguel de Icaza eed9f68b78 Buidl jay as well
svn path=/trunk/mono/; revision=133377
2009-05-02 06:30:13 +00:00
Miguel de Icaza 60a92d8a8b Further tuneups
svn path=/trunk/mono/; revision=133376
2009-05-02 06:21:46 +00:00
Miguel de Icaza 951ce0078c Update
svn path=/trunk/mono/; revision=133375
2009-05-02 06:10:44 +00:00
Miguel de Icaza 81497c4738 fix
svn path=/trunk/mono/; revision=133374
2009-05-02 06:08:19 +00:00
Miguel de Icaza 48c9b30498 More generated files
svn path=/trunk/mono/; revision=133373
2009-05-02 06:05:19 +00:00
Miguel de Icaza 87790c766f Use new define: TARGET_X86 on VS as well
svn path=/trunk/mono/; revision=133372
2009-05-02 05:56:10 +00:00
Miguel de Icaza 487d950c90 Better debug
svn path=/trunk/mono/; revision=133371
2009-05-02 05:53:35 +00:00
Miguel de Icaza 42d6af035c Update
svn path=/trunk/mono/; revision=133370
2009-05-02 05:53:05 +00:00
Miguel de Icaza 3bff76f0df Move dead code
svn path=/trunk/mcs/; revision=133369
2009-05-02 05:30:59 +00:00
Veerapuram Varadhan 944bbef6a5 ChangeLog conflict changes
svn path=/trunk/mcs/; revision=133368
2009-05-02 05:25:09 +00:00
Veerapuram Varadhan 9751933242 2009-04-19 Veerapuram Varadhan <[email protected]>
* Tds.cs (InitExec): Move initialization of state variables here.  Useful
	in case of asynchronous queries.

svn path=/trunk/mcs/; revision=133367
2009-05-02 05:24:42 +00:00
Veerapuram Varadhan c72ca4ac21 2009-04-16 Veerapuram Varadhan <[email protected]>
* Tds.cs (ExecuteQuery): Reset all the variables related to LoadData when
	performing queries with SequentialAccess set to true.  Fixes incorrect
	handling of data retrieval when consecutive queries are run with
	SequentialAccess set to true.

svn path=/trunk/mcs/; revision=133366
2009-05-02 05:24:19 +00:00
Veerapuram Varadhan 0f8ab848a6 2009-04-14 Veerapuram Varadhan <[email protected]>
* Tds.cs (ExecuteQuery): Reset SequentialAccess read state variables
	in order to avoid blocking forever when two consecutive queries are
	executed with SequetialAccess set to true.

svn path=/trunk/mcs/; revision=133365
2009-05-02 05:23:52 +00:00
Miguel de Icaza 314ce8627c Add prebuild commands
svn path=/trunk/mono/; revision=133364
2009-05-02 05:04:38 +00:00
Miguel de Icaza 67e68c8c46 First two assemblies, will probably autogenerate this later
svn path=/trunk/mono/; revision=133347
2009-05-02 00:43:09 +00:00
Miguel de Icaza c3769a3b6b update
svn path=/trunk/mono/; revision=133346
2009-05-02 00:42:51 +00:00
Miguel de Icaza 49ce5e24f0 Fix some paths
svn path=/trunk/mono/; revision=133345
2009-05-02 00:42:15 +00:00
Miguel de Icaza ce0a5be4b3 Up
svn path=/trunk/mono/; revision=133342
2009-05-01 23:10:05 +00:00
Miguel de Icaza e934fc150e Upgrade to 2008
svn path=/trunk/mono/; revision=133341
2009-05-01 23:04:11 +00:00
Miguel de Icaza 77b76f6ea0 Copy
svn path=/trunk/mono/; revision=133340
2009-05-01 22:58:15 +00:00
Miguel de Icaza 16d0700cd3 Copy
svn path=/trunk/mono/; revision=133339
2009-05-01 22:58:14 +00:00
Miguel de Icaza d897e4d9f3 Copy
svn path=/trunk/mono/; revision=133338
2009-05-01 22:58:14 +00:00
Miguel de Icaza 937c2649d1 Copy
svn path=/trunk/mono/; revision=133337
2009-05-01 22:58:13 +00:00
Miguel de Icaza c45aa73e6e Copy
svn path=/trunk/mono/; revision=133336
2009-05-01 22:58:12 +00:00
Miguel de Icaza 81d51f6128 Copy
svn path=/trunk/mono/; revision=133335
2009-05-01 22:58:11 +00:00
Miguel de Icaza 3b9995130a Copy
svn path=/trunk/mono/; revision=133334
2009-05-01 22:58:11 +00:00
Miguel de Icaza de7d7320da Copy
svn path=/trunk/mono/; revision=133333
2009-05-01 22:58:10 +00:00
Miguel de Icaza bf68bcf075 Copy
svn path=/trunk/mono/; revision=133332
2009-05-01 22:58:09 +00:00
Miguel de Icaza 08e86bba5a Copy
svn path=/trunk/mono/; revision=133331
2009-05-01 22:58:08 +00:00
Miguel de Icaza c2efbee4f0 Copy
svn path=/trunk/mono/; revision=133330
2009-05-01 22:58:07 +00:00
Miguel de Icaza 543520dd65 Copy
svn path=/trunk/mono/; revision=133329
2009-05-01 22:58:07 +00:00
Miguel de Icaza 7f5d939201 Copy
svn path=/trunk/mono/; revision=133328
2009-05-01 22:58:06 +00:00
Miguel de Icaza 48bf1f9a27 Copy
svn path=/trunk/mono/; revision=133327
2009-05-01 22:58:05 +00:00
Miguel de Icaza c87a6b7dee Copy
svn path=/trunk/mono/; revision=133326
2009-05-01 22:58:04 +00:00
Miguel de Icaza 43b1f651b9 Copy
svn path=/trunk/mono/; revision=133325
2009-05-01 22:58:04 +00:00
Miguel de Icaza 354896ea7a Copy
svn path=/trunk/mono/; revision=133324
2009-05-01 22:58:03 +00:00
Miguel de Icaza d4d0997bb7 Copy
svn path=/trunk/mono/; revision=133323
2009-05-01 22:58:02 +00:00
Miguel de Icaza 9ab38c6192 Copy
svn path=/trunk/mono/; revision=133322
2009-05-01 22:58:01 +00:00
Miguel de Icaza ebc015c5a5 Copy
svn path=/trunk/mono/; revision=133321
2009-05-01 22:58:01 +00:00
Miguel de Icaza c199075875 Copy
svn path=/trunk/mono/; revision=133320
2009-05-01 22:57:59 +00:00
Miguel de Icaza 4ef62a4425 Copy
svn path=/trunk/mono/; revision=133319
2009-05-01 22:57:59 +00:00
Miguel de Icaza 8902a4ed0d Copy
svn path=/trunk/mono/; revision=133318
2009-05-01 22:57:58 +00:00
Miguel de Icaza 0abfb6350f Copy
svn path=/trunk/mono/; revision=133317
2009-05-01 22:57:57 +00:00
Miguel de Icaza 82ade42171 Copy
svn path=/trunk/mono/; revision=133316
2009-05-01 22:57:56 +00:00
Miguel de Icaza f660bc90d9 Copy
svn path=/trunk/mono/; revision=133315
2009-05-01 22:57:56 +00:00
Miguel de Icaza cb3ec7f4a9 Copy
svn path=/trunk/mono/; revision=133314
2009-05-01 22:57:55 +00:00
Miguel de Icaza 7b67e7aa5c Copy
svn path=/trunk/mono/; revision=133313
2009-05-01 22:57:54 +00:00
Miguel de Icaza f6edfe5125 Copy
svn path=/trunk/mono/; revision=133312
2009-05-01 22:57:53 +00:00
Miguel de Icaza a1bc526b87 Copy
svn path=/trunk/mono/; revision=133311
2009-05-01 22:57:52 +00:00
Miguel de Icaza c980a7fe0c Copy
svn path=/trunk/mono/; revision=133310
2009-05-01 22:57:52 +00:00
Miguel de Icaza b50613b6c7 Remove *.input files, put everything in a single XML file
svn path=/trunk/mono/; revision=133305
2009-05-01 22:53:43 +00:00
Miguel de Icaza 3ecf612b8d Remove .input files
svn path=/trunk/mono/; revision=133304
2009-05-01 22:49:34 +00:00
Zoltan Varga ee0315162c 2009-05-01 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Use mono_pagesize () instead of the
	PAGESIZE constant.

svn path=/trunk/mono/; revision=133302
2009-05-01 22:41:07 +00:00
Zoltan Varga 522c5027d9 2009-05-02 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_get_throw_exception_by_name): Simplify this
	as it is not used.

svn path=/trunk/mono/; revision=133299
2009-05-01 22:36:24 +00:00
Sebastien Pouliot 53d4863cd5 2009-05-01 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Don't include extra stuff into Moonlight (NET_2_1)


svn path=/trunk/mcs/; revision=133298
2009-05-01 22:24:03 +00:00
Zoltan Varga 7bd0a7c7f8 2009-05-02 Zoltan Varga <[email protected]>
* mini-llvm.c mini-x86.c: Implement 32 bit and x86 support.

	* ssa.c (mono_ssa_compute): Don't skip I8 values when using LLVM.

	* mini-llvm-cpp.cpp (mono_llvm_create_ee): Update to the latest
	LLVM API.

	* mini.c (mini_method_compile): Set the from_llvm flag in MonoJitInfo
	if needed. Don't decompose long operations when using llvm.

svn path=/trunk/mono/; revision=133297
2009-05-01 22:18:49 +00:00
Zoltan Varga 72543b3ade 2009-05-02 Zoltan Varga <[email protected]>
* domain-internals.h (struct _MonoJitInfo): Add a 'from_llvm' flag.

svn path=/trunk/mono/; revision=133296
2009-05-01 22:18:32 +00:00
Jonathan Pryor f80c179df7 * DiagnosticsConfigurationHandler.cs: Don't refer to TraceImpl member
while reading the .config file, instead cache the values and refer
	  to the cached values during initialization.  This prevents recursive
	  initialization calls (Trace.OnInit() ... Trace.Listeners.Add() ...
	  Trace.OnInit() ...), and associated duplicate parsing of .config file
	  sections.  Fixes bnc#499442.
	* TraceImpl.cs: Cope with DiagnosticsConfigurationHandler changes.
	* TraceListenerCollection.cs: Add internal 
	  Add(TraceListener,TraceImplSettings) method for adding
	  TraceListeners during DiagnosticsConfigurationHandler initialization
	  (which can't access TraceImpl, as we may still be reading the
	  .config file to determine the TraceImpl values).

svn path=/trunk/mcs/; revision=133291
2009-05-01 20:21:50 +00:00
Sebastien Pouliot d9819b6dcb 2009-05-01 Sebastien Pouliot <[email protected]>
* SecurityCriticalAttribute.cs: Add simpler version NET_2_1
	* SecuritySafeCriticalAttribute.cs: Remove MonoTODO for NET_2_1
	* SecurityTransparentAttribute.cs: Remove MonoTODO for NET_2_1


svn path=/trunk/mcs/; revision=133286
2009-05-01 19:43:33 +00:00
Sebastien Pouliot 354894ef6f 2009-05-01 Sebastien Pouliot <[email protected]>
* CodeAccessSecurityAttribute.cs, SecurityAction.cs, 
	SecurityAttribute.cs, SecurityPermissionAttribute.cs: Add [Obsolete]
	on NET_2_1 since CAS stuff is not available in Moonlight. Note that
	the types needs to be present because compiler insert them inside
	assemblies.


svn path=/trunk/mcs/; revision=133279
2009-05-01 18:21:16 +00:00
Sebastien Pouliot 8eb2d10f60 corlib_test.dll.sources: Add unit tests for AppDomainManager and SecurityState
svn path=/trunk/mcs/; revision=133276
2009-05-01 17:56:17 +00:00
Sebastien Pouliot f6d0f0003f 2009-05-01 Sebastien Pouliot <[email protected]>
* SecurityStateTest.cs: New. Unit tests for IsStateAvailable


svn path=/trunk/mcs/; revision=133275
2009-05-01 17:54:52 +00:00
Sebastien Pouliot e11bef3ff9 2009-05-01 Sebastien Pouliot <[email protected]>
* AppDomainManagerTest.cs: New. Unit test for CheckSecuritySettings


svn path=/trunk/mcs/; revision=133274
2009-05-01 17:53:16 +00:00
Sebastien Pouliot 11cffff961 SecurityState.cs: Implement IsStateAvailable (added in 2.0SP and part of SL API)
svn path=/trunk/mcs/; revision=133273
2009-05-01 17:51:43 +00:00
Sebastien Pouliot a2ca3fbb72 AppDomainManager.cs: Fix base class for NET_2_1 and implement CheckSecuritySettings (added in 2.0SP and part of SL API)
svn path=/trunk/mcs/; revision=133272
2009-05-01 17:49:30 +00:00
Zoltan Varga e9bfaf8827 2009-05-01 Zoltan Varga <[email protected]>
* aot-runtime.c (load_aot_module): Get rid of another mprotect call.

svn path=/trunk/mono/; revision=133262
2009-05-01 14:29:57 +00:00
Mark Probst 2920b86801 Don't set the domain in mono_gc_run_finalize() too late.
2009-05-01  Mark Probst  <[email protected]>

        * gc.c (mono_gc_run_finalize): Don't set the domain too late,
        because mono_delegate_free_ftnptr() needs it.

svn path=/trunk/mono/; revision=133261
2009-05-01 14:01:55 +00:00
Gonzalo Paniagua Javier 3d9877d93c 2009-05-01 Gonzalo Paniagua Javier <[email protected]>
* SqliteConnection.cs: implement Dispose for 2.0. It was leaking an fd
	in using().
	Bug #499864 fixed.


svn path=/trunk/mcs/; revision=133254
2009-05-01 04:28:28 +00:00
Gonzalo Paniagua Javier d4bd43145b 2009-04-30 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: return the last error if a connect to multiple addresses
	fails.


svn path=/trunk/mcs/; revision=133252
2009-05-01 03:28:42 +00:00
Jonathan Chambers 2de89fc2ef Fix typo.
svn path=/trunk/mono/; revision=133251
2009-05-01 01:31:30 +00:00
Miguel de Icaza ed4a6922c5 Try this
svn path=/trunk/mono/; revision=133250
2009-05-01 01:08:52 +00:00
Miguel de Icaza 51cd5bbc0b Add support for reference aliases
svn path=/trunk/mono/; revision=133247
2009-05-01 00:04:26 +00:00
Jonathan Chambers 390db18c70 Fix redirection of output.
svn path=/trunk/mono/; revision=133246
2009-04-30 23:46:54 +00:00
Miguel de Icaza bc5a063d9d More progress
svn path=/trunk/mono/; revision=133244
2009-04-30 23:24:41 +00:00
Rodrigo Kumpera 353e4600b1 2009-04-30 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for event map table.

	* assembly-with-events.cs: New test file for producing tests
	for cattr table.

	* Makefile: Add new dependency.

svn path=/trunk/mono/; revision=133243
2009-04-30 23:03:26 +00:00
Rodrigo Kumpera 224dde31ba 2009-04-30 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the eventmap table.

svn path=/trunk/mono/; revision=133242
2009-04-30 23:03:12 +00:00
Rodrigo Kumpera 85e6cd2c1e 2009-04-30 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for standalonesig table.

	* assembly-with-complex-type.cs: Added more stuff for
	field layout tests.

svn path=/trunk/mono/; revision=133241
2009-04-30 23:02:46 +00:00
Rodrigo Kumpera 1fb133472c 2009-04-30 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the standalonesig table.

svn path=/trunk/mono/; revision=133240
2009-04-30 23:02:27 +00:00
Rodrigo Kumpera eee8dd7914 2009-04-30 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for field layout table.

	* assembly-with-complex-type.cs: Added more stuff for
	field layout tests.

svn path=/trunk/mono/; revision=133239
2009-04-30 23:01:58 +00:00
Rodrigo Kumpera df3177738d 2009-04-30 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the field layout table.

svn path=/trunk/mono/; revision=133238
2009-04-30 23:01:40 +00:00
Rodrigo Kumpera 877a501ccc 2009-04-30 Rodrigo Kumpera <[email protected]>
* class.c (mono_type_get_name_recurse): Don't crash
	for ownerless generic params.

	* debug-helpers.c (mono_type_get_desc): Correct the format
	for ownerless generic params.

svn path=/trunk/mono/; revision=133237
2009-04-30 23:01:09 +00:00
Rodrigo Kumpera f5ffea4196 2009-04-30 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for class layout table.

	* assembly-with-complex-type.cs: Added more stuff for
	class layout tests.

svn path=/trunk/mono/; revision=133236
2009-04-30 23:00:40 +00:00
Rodrigo Kumpera b9b6e3b890 2009-04-30 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the class layout table.

svn path=/trunk/mono/; revision=133235
2009-04-30 23:00:23 +00:00
Rodrigo Kumpera 44d46f8d3f 2009-04-30 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for decl security table.

	* assembly-with-cas.cs: New test file for producing tests
	for cattr table.

	* Makefile: Add new dependencies and do some cleanup.

svn path=/trunk/mono/; revision=133234
2009-04-30 22:59:53 +00:00
Rodrigo Kumpera ab5b9254b7 2009-04-30 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the decl security table.

svn path=/trunk/mono/; revision=133233
2009-04-30 22:59:36 +00:00
Miguel de Icaza d3b503d6fe Move the scripts to a new location
svn path=/trunk/mono/; revision=133229
2009-04-30 22:05:30 +00:00
Miguel de Icaza 40f1241212 Move the scripts to a new location
svn path=/trunk/mcs/; revision=133229
2009-04-30 22:05:30 +00:00
Andrés G. Aragoneses fb30857ceb Use a better name for the test..
svn path=/trunk/mcs/; revision=133228
2009-04-30 21:56:51 +00:00
Andrés G. Aragoneses 6cbfb6084e changelog..
svn path=/trunk/mcs/; revision=133227
2009-04-30 21:53:04 +00:00
Miguel de Icaza fa5ac00a43 Add input files
svn path=/trunk/mono/; revision=133226
2009-04-30 21:50:07 +00:00
Andrés G. Aragoneses 6518491dae * Test/System.Windows.Forms/TabControlTest.cs: Add test for
bug#499887.

svn path=/trunk/mcs/; revision=133225
2009-04-30 21:49:03 +00:00
Miguel de Icaza 41d95d1d79 Change the model used
svn path=/trunk/mcs/; revision=133224
2009-04-30 21:38:34 +00:00
Miguel de Icaza 29bc8e19a8 Update csproj tool
svn path=/trunk/mcs/; revision=133223
2009-04-30 21:38:19 +00:00
Mark Probst 6eece07d2b Don't set domain if it's the same as the old one.
2009-04-30  Mark Probst  <[email protected]>

        * domain.c (mono_domain_set_internal_with_options): Don't do
        anything if the old domain is the same as the old one.  Fixes
        #499326.

svn path=/trunk/mono/; revision=133222
2009-04-30 21:31:51 +00:00
Miguel de Icaza 9c0eee76b3 Mistake, /debug:full is the same as /debug
svn path=/trunk/mcs/; revision=133217
2009-04-30 20:42:04 +00:00
Jonathan Pobst 4e5cbb8a55 Clean up MonoTodo messages.
svn path=/trunk/mcs/; revision=133215
2009-04-30 20:24:03 +00:00
Miguel de Icaza fb3f86db17 Actually, /debug:XX is handled in /debug:, ignore the configuration here
svn path=/trunk/mcs/; revision=133214
2009-04-30 20:17:57 +00:00
Miguel de Icaza 24fc1ca45e More flags for compatibility
svn path=/trunk/mcs/; revision=133213
2009-04-30 20:10:36 +00:00
Mark Probst f752613d0d Appdomain unloading for SGen.
2009-04-30  Mark Probst  <[email protected]>

        * appdomain.c: Deregister the reflection_info roots when unloading
        a domain.

        * sgen-gc.c, domain.c, gc-internal.h: mono_gc_clear_domain() nulls
        memory allocated by a domain and frees its disappearing links.

        * boehm-gc.c, null-gc.c: Empty implementation of
        mono_gc_clear_domain().

svn path=/trunk/mono/; revision=133212
2009-04-30 19:58:04 +00:00
Jonathan Pryor d1b77d0c67 * sqlmetal.exe.config: The MySQL provider should use ByteFX.Data's
MySQL connection types, as those are actually included with Mono
	  (unlike MySql.Data, which isn't included with Mono).

svn path=/trunk/mcs/; revision=133210
2009-04-30 19:28:00 +00:00
Mark Probst 305aa34f5e Free the static fields memory block.
2009-04-30  Mark Probst  <[email protected]>

        * appdomain.c (clear_cached_vtable): Free the static fields memory
        block.

svn path=/trunk/mono/; revision=133207
2009-04-30 19:11:13 +00:00
Mark Probst 35f93f16a3 Set the correct domain when invoking finalizers and creating threads.
2009-04-30  Mark Probst  <[email protected]>

        * gc.c: Set the correct domain when invoking finalizers.

        * appdomain.c: Set the correct domain when creating threads.

svn path=/trunk/mono/; revision=133202
2009-04-30 18:01:01 +00:00
Mark Probst c0d60124da Fix skip size for vectors in SGen.
2009-04-30  Mark Probst  <[email protected]>

        * sgen-gc.c: Fix skip size for vectors.

svn path=/trunk/mono/; revision=133186
2009-04-30 14:36:11 +00:00
Sebastien Pouliot 708e9ef50c minor NET_2_1 tweaks to remove 12 unneeded [SecuritySafeCritical] inside Moonlight 2
svn path=/trunk/mcs/; revision=133184
2009-04-30 14:03:27 +00:00
Sebastien Pouliot cbc63c7479 fix typo, thanks to Gert for quickly noticing
svn path=/trunk/mcs/; revision=133176
2009-04-30 12:56:15 +00:00
Jb Evain 8c580360bd 2009-04-30 Jb Evain <[email protected]>
* Mono.Cecil.Signatures/SignatureReader.cs: fix reading out extra mods.


svn path=/trunk/mcs/; revision=133174
2009-04-30 12:23:48 +00:00
Sebastien Pouliot 6c9ff1c39f 2009-04-30 Sebastien Pouliot <[email protected]>
* MarshalTest.cs: Fix building unit tests for NET_1_1


svn path=/trunk/mcs/; revision=133171
2009-04-30 12:11:06 +00:00
Marek Habersack dfdb975263 2009-04-30 Marek Habersack <[email protected]>
* BuildManager.cs: when BuildInner catches a compilation
	exception, wrap it in HttpException before re-throwing.

2009-04-30  Marek Habersack  <[email protected]>

	* TemplateParser.cs: removed the PageParserFilterTypeName
	property, the filter type name is looked up on demand now.

	* ApplicationFileParser.cs, MasterPageParser.cs,
	UserControlParser.cs: load config defaults explicitly after
	initializing the instance.

svn path=/trunk/mcs/; revision=133169
2009-04-30 10:53:41 +00:00
Zoltan Varga 90ae4088f3 2009-04-30 Zoltan Varga <[email protected]>
* AppDomainTest.cs: Add a test for #499013.

svn path=/trunk/mcs/; revision=133164
2009-04-30 07:36:45 +00:00
Zoltan Varga db77630d65 2009-04-30 Zoltan Varga <[email protected]>
* appdomain.c (ves_icall_System_AppDomain_GetAssemblies): Avoid
	returning refonly assemblies if refonly is FALSE. Fixes #499013.

svn path=/trunk/mono/; revision=133163
2009-04-30 07:35:50 +00:00
Miguel de Icaza 6939546d90 Doc update
svn path=/trunk/mono/; revision=133153
2009-04-30 03:18:20 +00:00
Jonathan Chambers 11e576a69f Apply patch from Tom Hindle for bug 496138 plus test case.
2009-04-29 Tom Hindle <[email protected]>

	* Marshal.cs: Improved GetExceptionForHR to return real 
	C# exceptions in certain cases instead of always COMException.


svn path=/trunk/mcs/; revision=133150
2009-04-30 01:40:52 +00:00
Marek Habersack ae9ca89d49 _really_ fix the build
svn path=/trunk/mcs/; revision=133149
2009-04-30 01:28:03 +00:00
Marek Habersack 1934076617 Fix the build
svn path=/trunk/mcs/; revision=133148
2009-04-30 01:17:44 +00:00
Miguel de Icaza 748e61f688 Hook to allow the caller to requested a call to csproj-local
svn path=/trunk/mcs/; revision=133098
2009-04-30 00:11:21 +00:00
Miguel de Icaza ad85a34432 Add helper
svn path=/trunk/mono/; revision=133097
2009-04-30 00:08:17 +00:00
Miguel de Icaza 708c5869ae Update
svn path=/trunk/mono/; revision=133096
2009-04-30 00:00:27 +00:00
Rodrigo Kumpera 8af42f9138 2009-04-29 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for field marshal table.

svn path=/trunk/mono/; revision=133094
2009-04-29 23:28:36 +00:00
Rodrigo Kumpera 2d0f559d4a 2009-04-29 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the custom field marshal table.

svn path=/trunk/mono/; revision=133093
2009-04-29 23:28:21 +00:00
Rodrigo Kumpera 2dbd3dfacb 2009-04-29 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for cattr table.

	* assembly-with-cattr.cs: New test file for producing tests
	for cattr table.

	* Makefile: Add new dependencies and do some cleanup.

svn path=/trunk/mono/; revision=133092
2009-04-29 23:28:02 +00:00
Rodrigo Kumpera 863ac6e12d 2009-04-29 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the custom attribute table.

svn path=/trunk/mono/; revision=133091
2009-04-29 23:27:51 +00:00
Rodrigo Kumpera a8c944d3bd 2009-04-29 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Close the image after using it.
	Force the runtime to initialize with 2.0.

svn path=/trunk/mono/; revision=133090
2009-04-29 23:27:30 +00:00
Zoltan Varga c73647b34d 2009-04-30 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_long_opts): Move the implementation of LNEG
	to mono_arch_decompose_long_opts () for x86 and arm.

svn path=/trunk/mono/; revision=133088
2009-04-29 23:25:44 +00:00
Chris Toshok 3688e9ff65 2009-04-29 Chris Toshok <[email protected]>
* AssemblyInfo.cs: in the 2.1 case we're InternalsVisibleTo
	System.Windows.Browser


svn path=/trunk/mcs/; revision=133087
2009-04-29 23:08:53 +00:00
Gonzalo Paniagua Javier 912cb17fab 2009-04-29 Gonzalo Paniagua Javier <[email protected]>
* sockets.c: don't display a warning when connect() fails because the
	socket was closed in another thread.


svn path=/trunk/mono/; revision=133031
2009-04-29 16:01:00 +00:00
Sebastien Pouliot a55f339a8f In Mono.Security.Cryptography:
2009-04-29  Sebastien Pouliot  <[email protected]>

	* PKCS1.cs: Make this work under NET_2_1 where SHA384 and SHA512
	are not available in the BCL.

In System.Security.Cryptography:
2009-04-29  Sebastien Pouliot  <[email protected]> 

	* DES.cs, DESCryptoServiceProvider.cs: Do not include in NET_2_1
	* HMACMD5.cs, HMACRIPEMD160.cs, HMACSHA384.cs, HMACSHA512.cs: Do 
	not include in NET_2_1
	* MACTripleDES.cs: Do not include in NET_2_1
	* RC2.cs, RC2CryptoServiceProvider.cs: Do not include in NET_2_1
	* Rijndael.cs, RijndaelManaged.cs, RijndaelManagedTransform.cs:
	Do not include in NET_2_1 (AES is available in System.Core.dll)
	* RIPEMD160.cs, RIPEMD160Managed.cs: Do not include in NET_2_1
	* SHA1CryptoServiceProvider.cs: Do not include in NET_2_1, however
	SHA1Managed is available.
	* SHA384.cs, SHA384Managed.cs: Do not include in NET_2_1
	* SHA512.cs, SHA512Managed.cs: Do not include in NET_2_1
	* TripleDES.cs, TripleDESCryptoServiceProvider.cs: Do not include
	in NET_2_1


svn path=/trunk/mcs/; revision=133013
2009-04-29 14:23:19 +00:00
Sebastien Pouliot e4dd723dbf 2009-04-29 Sebastien Pouliot <[email protected]>
* MD5Cng.cs, SHA1Cng.cs, SHA256Cng.cs, SHA256CryptoServiceProvider.cs,
	SHA384Cng.cs, SHA384CryptoServiceProvider.cs, SHA512Cng.cs,
	SHA512CryptoServiceProvider.cs: Regenerated to be excluded from
	NET_2_1


svn path=/trunk/mcs/; revision=133012
2009-04-29 14:07:09 +00:00
Sebastien Pouliot 0ba784e7fa 2009-04-29 Sebastien Pouliot <[email protected]>
* hashwrap.cs: Add "#if !NET_2_1 ... #endif" on wrappers so they
	don't get compiled for 2.1 (since mscorlib 2.1 lacks some 
	required types and the generated code is not part of SL2).


svn path=/trunk/mcs/; revision=133011
2009-04-29 14:05:33 +00:00
Marek Habersack 30140fbbfd 2009-04-29 Marek Habersack <[email protected]>
* MetaTable.cs: implemented the DataContextType,
    	DataContextPropertyName properties and the ToString method.

    	* MetaColumn.cs: implemented the Scaffold, DisplayName,
    	SortExpression, UIHint properties and the ToString method.

    	* DynamicField.cs: implemented

    	* DynamicDataManager.cs: partially implemented RegisterControl.
    	Added internal AutoFieldGenerator class, used by RegisterControl
    	when dealing with GridView.
    	Implemented some properties.

    	* DynamicDataExtensions.cs: implemented GetTable and FindMetaTable

    	* DynamicControl.cs: implemented parts of the class.

    2009-04-29  Marek Habersack  <[email protected]>

    	* DataBoundControl.cs: added InternalGetDataSource method, used by
    	DynamicData

    2009-04-29  Marek Habersack  <[email protected]>

    	* AssemblyInfo.cs: added InternalsVisibleTo for
    	System.Web.DynamicData

    2009-04-29  Marek Habersack  <[email protected]>

    	* Test/System.Web.DynamicData.ModelProviders/TableProviderTest.cs:
    	added

    	* System.Web.DynamicData_test.dll.sources: added
    	System.Web.DynamicData/DynamicDataManagerTest.cs,
    	System.Web.DynamicData/DynamicDataExtensionsTest.cs,
    	System.Web.DynamicData.ModelProviders/TableProviderTest.cs

    	* System.Web.DynamicData.dll.sources: added
    	System.Web.DynamicData.ModelProviders/DLinqAssociationProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqColumnProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqDataModelProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqTableProvider.cs and
    	removed
    	System.Web.DynamicData.ModelProviders/DLinqDataModelProviders.cs

    2009-04-29  Marek Habersack  <[email protected]>

    	* TableProvider.cs: implemented

    	* DLinqDataModelProvider.cs: renamed from
    	DLinqDataModelProviders.cs and moved some classes to separate
    	files.

    	* DLinqTableProvider.cs: moved to here from
    	DLinqDataModelProvider.cs

    	* DLinqColumnProvider.cs: moved to here from
    	DLinqDataModelProvider.cs

    	* DLinqAssociationProvider.cs: added

    2009-04-29  Marek Habersack  <[email protected]>

    	* DataBinder.cs: GetPropertyValue must throw also if propName is
    	empty.

    2009-04-23  Marek Habersack  <[email protected]>

    	* ContextConfiguration.cs: implemented all the methods and added a
    	parameterless constructor.

    2009-04-23  Marek Habersack  <[email protected]>

    	* System.Web.DynamicData_test.dll.sources: added
    	System.Web.DynamicData/ContextConfigurationTest.cs

    	* Makefile: tests need to be linked with
    	System.ComponentModel.DataAnnotations.dll

    2009-04-23  Marek Habersack  <[email protected]>

    	* AssociatedMetadataTypeTypeDescriptor.cs: added - doesn't add any
    	real functionality yet.

    	* AssociatedMetadataTypeTypeDescriptionProvider.cs: implemented
    	all the methods.

    2009-04-23  Marek Habersack  <[email protected]>

    	* System.ComponentModel.DataAnnotations_test.dll.sources: added

    	* System.ComponentModel.DataAnnotations.dll.sources: added
    	System.ComponentModel.DataAnnotations/AssociatedMetadataTypeTypeDescriptor.cs

    	* Makefile: enabled tests

    2009-04-23  Marek Habersack  <[email protected]>

    	* ContextConfigurationTest.cs: added

svn path=/trunk/mcs/; revision=133003
2009-04-29 13:17:39 +00:00
Sebastien Pouliot 3c4a82b399 In .:
2009-04-29  Sebastien Pouliot  <[email protected]>

	* corlib.dll.sources: Add CryptoConfig_2_1.cs (partial class) to
	the build

In System.Security.Cryptography:
2009-04-29  Sebastien Pouliot  <[email protected]>

	* CryptoConfig.cs: Change to partial class and don't include this
	part (#ifdef out) in the NET_2_1 build.
	* CryptoConfig_2_1.cs: Partial class that contains only what's 
	needed for Moonlight (NET_2_1). This disallow dynamically replacing
	cryptographic algorithms using machine.config


svn path=/trunk/mcs/; revision=132992
2009-04-29 12:12:36 +00:00
Zoltan Varga 8c829cb529 2009-04-29 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_regstate_alloc_int): Use __x86_64__ instead of
	TARGET_AMD64 here.

svn path=/trunk/mono/; revision=132977
2009-04-29 09:37:49 +00:00
Zoltan Varga fd30c83068 2009-04-28 Zoltan Varga <[email protected]>
* configure.in: Add an option to disable the solaris tar check.

svn path=/trunk/mono/; revision=132976
2009-04-29 09:37:42 +00:00
Marek Habersack c2e4fcd703 Unbreak TdsComm by removing a stray line
svn path=/trunk/mcs/; revision=132962
2009-04-29 07:41:32 +00:00
Gonzalo Paniagua Javier 22c4252482 fix test
svn path=/trunk/mcs/; revision=132956
2009-04-29 05:41:25 +00:00
Gonzalo Paniagua Javier b7212e074d 2009-04-29 Gonzalo Paniagua Javier <[email protected]>
* Enum.cs: return the value as an enum of the right type.


svn path=/trunk/mcs/; revision=132953
2009-04-29 05:27:36 +00:00
Gonzalo Paniagua Javier 2df642af6b 2009-04-28 Gonzalo Paniagua Javier <[email protected]>
* HttpContext.cs:
	* HttpWorkerRequest.cs:
	* HttpRuntime.cs: if other parts of the system are using the
	threadpool and we queue requests, once the threadpool is free we
	might still not get back to use it to the maximum extent possible.
	Adding a few more calls to QueuePendingRequest ensures that does not
	happen.


svn path=/trunk/mcs/; revision=132946
2009-04-29 03:18:16 +00:00
Gonzalo Paniagua Javier 0f28b744fd 2009-04-28 Gonzalo Paniagua Javier <[email protected]>
* Enum.cs: avoid exceptions from ToObject and use Try* instead.


svn path=/trunk/mcs/; revision=132944
2009-04-29 02:59:24 +00:00
Gonzalo Paniagua Javier 181d483558 2009-04-28 Gonzalo Paniagua Javier <[email protected]>
* SqlConnection.cs: if the error causes a disconnection from the
	server, close the data stream.


svn path=/trunk/mcs/; revision=132942
2009-04-29 02:54:36 +00:00
Gonzalo Paniagua Javier 451e9a4e75 2009-04-28 Gonzalo Paniagua Javier <[email protected]>
* TdsConnectionPool.cs: if GetConnection() fails to create a
	connection, try again several times and then throw. Improved
	ResetConnectionPool() so that it does not immediately close
	connections in use. Don't re-add connections that have been closed.

	* Tds.cs: Connected tests the socket connection too. Made Disconnect()
	not throw.

	* TdsComm.cs: set more socket options (timeout and NoDelay) and have a
	single entry point for reading from the stream.


svn path=/trunk/mcs/; revision=132939
2009-04-29 02:51:56 +00:00
Rodrigo Kumpera 4477845df9 2009-04-28 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Fix stream header calculation.

	* cli-tables-tests.md: Tests for constant.

	* assembly-with-constants.cs: New test file for producing tests
	for constant table.

	* Makefile: Add new dependencies and do some cleanup.

svn path=/trunk/mono/; revision=132937
2009-04-29 02:02:56 +00:00
Rodrigo Kumpera a24eb959f6 2009-04-28 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the constant table.

svn path=/trunk/mono/; revision=132936
2009-04-29 02:02:45 +00:00
Rodrigo Kumpera ae19855f14 2009-04-28 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for memberref.

svn path=/trunk/mono/; revision=132935
2009-04-29 02:02:15 +00:00
Rodrigo Kumpera 3a4ed3015b 2009-04-28 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the memberef table.

svn path=/trunk/mono/; revision=132934
2009-04-29 02:02:05 +00:00
Rodrigo Kumpera 810a81f413 2009-04-28 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (get_coded_index_token): Remove
	dead argument.

svn path=/trunk/mono/; revision=132933
2009-04-29 02:01:41 +00:00
Rodrigo Kumpera 69c4e4d234 2009-04-28 Rodrigo Kumpera <[email protected]>
* assembly-with-complex-type.cs: Add more types and methods to be used generating tests.

	* cli-tables-tests.md: Tests for interfaceimpl.

svn path=/trunk/mono/; revision=132932
2009-04-29 02:01:18 +00:00
Rodrigo Kumpera 645400953d 2009-04-28 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the interfaceimpl table.

svn path=/trunk/mono/; revision=132931
2009-04-29 02:01:03 +00:00
Rodrigo Kumpera 89c7a56b76 2009-04-28 Rodrigo Kumpera <[email protected]>
* valid_ldflda_owned_field_on_cctor.il: Fix visibility of .ctor.

svn path=/trunk/mono/; revision=132930
2009-04-29 02:00:40 +00:00
Rodrigo Kumpera 7f8a68150c 2009-04-28 Rodrigo Kumpera <[email protected]>
* verify.c: Improve error message.

	* debug-helpers.c (mono_type_get_desc): Harden the code that
	deals with VAR and MVAR.

svn path=/trunk/mono/; revision=132929
2009-04-29 02:00:25 +00:00
Miguel de Icaza b5ca4d7295 prop
svn path=/trunk/mcs/; revision=132902
2009-04-28 22:36:21 +00:00
Miguel de Icaza 7c146d57b7 Fox
svn path=/trunk/mcs/; revision=132901
2009-04-28 22:35:59 +00:00
Miguel de Icaza c850a978a8 Add targets
svn path=/trunk/mcs/; revision=132899
2009-04-28 22:00:44 +00:00
Miguel de Icaza 45d5b39703 Add proxy scripts
svn path=/trunk/mono/; revision=132898
2009-04-28 22:00:11 +00:00
Miguel de Icaza ab4caa1fbb csproj generator
svn path=/trunk/mcs/; revision=132897
2009-04-28 21:52:06 +00:00
Gonzalo Paniagua Javier f21ba58f85 2009-04-28 Gonzalo Paniagua Javier <[email protected]>
* DefaultModelBinder.cs: workaround for bug #499009.


svn path=/trunk/mcs/; revision=132896
2009-04-28 21:47:22 +00:00
Zoltan Varga 3556acd0a8 2009-04-28 Zoltan Varga <[email protected]>
* *.h *.c: Use TARGET_<ARCH> defines instead of __<arch>__ defines in the
	JIT code.

svn path=/trunk/mono/; revision=132895
2009-04-28 21:22:13 +00:00
Zoltan Varga bc65a470d5 2009-04-28 Zoltan Varga <[email protected]>
* configure.in: Define a TARGET_<ARCH> preprocessor symbol for some
	architectures.

svn path=/trunk/mono/; revision=132894
2009-04-28 21:22:05 +00:00
Martin Baulig 3a81f6741d Fix the ChangeLog to reflect what's actually in SVN.
svn path=/trunk/mono/; revision=132890
2009-04-28 21:05:24 +00:00
Atsushi Eno 9260e9a39f 2009-04-28 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : implement in-band dictionary support
	  in [MC-NMF] and [MC-NBFSE], used in duplex channels. Added some
	  comments for magic numbers based on [MC-NMF].

	* BinaryMessageEncodingBindingElementTest.cs, binary-message.raw:
	  new test files.

	* System.ServiceModel.dll_test.sources: added
	  BinaryMessageEncodingBindingElementTest.cs.


svn path=/trunk/mcs/; revision=132882
2009-04-28 18:55:59 +00:00
Atsushi Eno 044108b4ae 2009-04-28 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : implement part of in-band dictionary
	  support for [MC-NBFSE] record in [MC-NMF], in this class.


svn path=/trunk/mcs/; revision=132881
2009-04-28 18:50:16 +00:00
Atsushi Eno f453fbd9ea 2009-04-28 Atsushi Enomoto <[email protected]>
* BinaryMessageEncodingBindingElement.cs : clear extra public members.


svn path=/trunk/mcs/; revision=132880
2009-04-28 18:46:45 +00:00
Atsushi Eno ee3747a1cf 2009-04-27 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : several fixes;
	  - Name property was always empty.
	  - Value property was always empty for attributes.
	  - TextIndex node type was not supported.
	  - node reset at Read() was incomplete.
	  - attribute Prefix for single character had wrong value.
	  - namespace nodes did not appear as attribute nodes.
	  - attribute value node must be always single. Another text node
	    means a text child of the element, not the following attr value.
	  tests will go in sys.servicemodel.


svn path=/trunk/mcs/; revision=132879
2009-04-28 18:44:40 +00:00
Zoltan Varga 2c158ba586 2009-04-28 Zoltan Varga <[email protected]>
* image.c (mono_image_fixup_vtable): Avoid casting an lvalue. Fixes
	part of #498692.

svn path=/trunk/mono/; revision=132875
2009-04-28 18:11:45 +00:00
Zoltan Varga 0b0fe2059c 2009-04-28 Zoltan Varga <[email protected]>
* misc.c (GC_init): Avoid casting an lvalue. Fixes part of #498692.

svn path=/trunk/mono/; revision=132874
2009-04-28 18:11:37 +00:00
Zoltan Varga 49e2e5e089 2009-04-23 Tom Hindle <[email protected]>
* cominterop.c (ves_icall_System_Runtime_InteropServices_Marshal_ReleaseComObjectInternal):
	changed to match .Net behaviour of not aborting on additional calls to ReleaseComObject.

svn path=/trunk/mono/; revision=132872
2009-04-28 17:58:08 +00:00
Gonzalo Paniagua Javier e4d01de353 2009-04-28 Gonzalo Paniagua Javier <[email protected]>
* ConsoleTraceListener.cs: add an internal constructor that takes a
	string argument. Used when 'initializeData' is set.
	* DiagnosticsConfigurationHandler.cs: try internal constructors when
	the assembly is System.
	Fixes bug #498853.


svn path=/trunk/mcs/; revision=132868
2009-04-28 17:47:15 +00:00
Miguel de Icaza eb471c3252 Update
svn path=/trunk/mcs/; revision=132867
2009-04-28 17:46:09 +00:00
Miguel de Icaza f3182bb79c Update
svn path=/trunk/mono/; revision=132866
2009-04-28 17:28:42 +00:00
Miguel de Icaza e75f954969 Add more compat flags
svn path=/trunk/mcs/; revision=132864
2009-04-28 17:14:03 +00:00
Marek Safar df837ac87c New test.
svn path=/trunk/mcs/; revision=132862
2009-04-28 17:04:57 +00:00
Marek Safar 0d7ae3a7c9 2009-04-28 Marek Safar <[email protected]>
A fix for bug #495112
	* class.cs (IsUnmanagedType): Handle recursive unmanaged types using
	local cache.


svn path=/trunk/mcs/; revision=132861
2009-04-28 17:02:37 +00:00
Sebastien Pouliot cc6d045346 In Test/System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]> 

	* XmlReaderCommonTests.cs: Add test case for an empty string url

In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>  

	* XmlTextReader.cs (InitializeContext): Under NET_2_1 do not give
	a second change	using Path.GetFullPath. (GetStreamFromUrl) Add
	extra validations that would be missed in NET_2_1


svn path=/trunk/mcs/; revision=132856
2009-04-28 15:55:19 +00:00
Sebastien Pouliot 42f2df1f80 2009-04-28 Sebastien Pouliot <[email protected]>
* XmlReaderSettings.cs: Add MaxCharactersInDocument property for 
	NET_2_1 profile
	* XmlUrlResolver.cs: Cleanup #ifdef NET_2_1 inside this file 
	since this is not used anymore in Moonlight


svn path=/trunk/mcs/; revision=132855
2009-04-28 15:49:07 +00:00
Sebastien Pouliot 8d388ec068 In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]> 

	* XmlXapResolver.cs: Remove dependency on XmlUrlResolver. Small 
	fixes wrt new unit tests (inside moon-unit).

In .:
2009-04-28  Sebastien Pouliot  <[email protected]> 

	* net_2_1_raw_System.Xml.dll.sources: Remove XmlUrlResolver.cs 
	and the associated [SecuritySafeCritical] that it required


svn path=/trunk/mcs/; revision=132852
2009-04-28 15:36:50 +00:00
Sebastien Pouliot 31751dd12a In Test/System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* XmlResolverTest.cs: New. Unit tests for base features.

In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* XmlResolver.cs: Small fixes wrt new unit tests. Add SupportsType
	method for NET_2_1 profile.

In .:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* System.Xml_test.dll.sources: Add System.Xml/XmlResolverTest.cs to
	the unit tests


svn path=/trunk/mcs/; revision=132851
2009-04-28 15:23:37 +00:00
Miguel de Icaza 2f22695121 Update: +EXPR was never supported, just EXPR
svn path=/trunk/mono/; revision=132848
2009-04-28 14:53:29 +00:00
Sebastien Pouliot a338533425 2009-04-28 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Avoid redundant checks for platform code, 
	e.g. check for method and for class (very common) and check
	for class and outer class (less common)...


svn path=/trunk/mono/; revision=132844
2009-04-28 14:08:15 +00:00
Sebastien Pouliot d50faa0031 2009-04-28 Sebastien Pouliot <[email protected]>
* SocketException_2_1.cs: Remove extra ctor and property unused in 2.1


svn path=/trunk/mcs/; revision=132837
2009-04-28 12:35:47 +00:00
Marek Habersack db1c3a970d 2009-04-28 Marek Habersack <[email protected]>
* GridView.cs: implemented ColumnsGenerator and enabled its use in
	CreateColumns.

	* DetailsView.cs: implemented the RowsGenerator property and
	enabled its use in CreateFieldSet.

svn path=/trunk/mcs/; revision=132833
2009-04-28 12:14:16 +00:00
Marek Habersack 506b43f893 2009-04-28 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/LinkInHeadWithEmbeddedExpression.aspx

2009-04-28  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #498637

2009-04-28  Marek Habersack  <[email protected]>

	* AspGenerator.cs: ProcessTag doesn't process a tag which is not
	server-side and which has declarative expressions embedded. Fixes
	bug #498637

2009-04-28  Marek Habersack  <[email protected]>

	* NunitWebResources/LinkInHeadWithEmbeddedExpression.aspx: added

svn path=/trunk/mcs/; revision=132812
2009-04-28 08:39:43 +00:00
Raja R Harinath 4982670984 Handle 3.5 profile better. Fix the build too
* Makefile (NAME_SUFFIX): New.
(LIBRARY_NAME): Use it.
(TEST_MCS_FLAGS): Don't mention name of library.  Use NAME_SUFFIX
as appropriate when referring to other msbuild dlls.

svn path=/trunk/mcs/; revision=132811
2009-04-28 07:28:38 +00:00
Carlos Alberto Cortez f8539c2598 2009-04-27 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: When losing the focus, if our textbox is not null,
	close its auto complete list, if any.
	Fixes part of #489339.


svn path=/trunk/mcs/; revision=132804
2009-04-28 01:42:29 +00:00
Miguel de Icaza 7c343980b9 svn path=/trunk/mcs/; revision=132797 2009-04-27 23:33:46 +00:00
Miguel de Icaza ccf50c87c5 Only include the headers if available
svn path=/trunk/mono/; revision=132795
2009-04-27 23:07:17 +00:00
Sebastien Pouliot ed14746bea Makefile: Add missing Test/XmlFiles/496192.x* files to dist
svn path=/trunk/mcs/; revision=132788
2009-04-27 21:17:06 +00:00
Sebastien Pouliot 00a9a5e7ca 2009-04-27 Sebastien Pouliot <[email protected]>
* StreamReaderTest.cs: Fix build for NET_1_1


svn path=/trunk/mcs/; revision=132787
2009-04-27 21:12:30 +00:00
Andrés G. Aragoneses 5500e1e10f 2009-04-27 Andrés G. Aragoneses <[email protected]>
* ListView.cs: Make OnColumnClick +internal to be used by a11y.  


svn path=/trunk/mcs/; revision=132782
2009-04-27 20:32:41 +00:00
Brad Taylor 2ad6a0046f 2009-04-27 Brad Taylor <[email protected]>
* ToolStripButton.cs: Emit an internal event when CheckOnClick is
	changed.


svn path=/trunk/mcs/; revision=132781
2009-04-27 20:20:33 +00:00
Zoltan Varga c7c0d2bfc7 2009-04-27 Zoltan Varga <[email protected]>
* custom-attr.cs: Add a test for #498545.

svn path=/trunk/mono/; revision=132779
2009-04-27 20:06:04 +00:00
Zoltan Varga 3474aef344 2009-04-27 Zoltan Varga <[email protected]>
* reflection.c: Avoid returning random cattrs for synthetic methods.
	Fixes #498545.

svn path=/trunk/mono/; revision=132778
2009-04-27 20:05:55 +00:00
Zoltan Varga d8d55e7fee 2009-04-26 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_create_specific_trampoline): Add a stat for the
	number of trampolines used in full-aot mode.

	* aot-compiler.c: Add an ntrampolines option to set the number of
	trampolines emitted in full-aot mode.

svn path=/trunk/mono/; revision=132777
2009-04-27 20:05:43 +00:00
Sebastien Pouliot 1957b68645 In System.Security:
2009-04-27  Sebastien Pouliot  <[email protected]>

	* SecurityException.cs: Remove CAS-specific stuff from ToString
	* SecurityManager.cs: Do not include for NET_2_1 build
	* SecurityManager_2_1.cs: Alternate implementation for NET_2_1

In .:
2009-04-27  Sebastien Pouliot  <[email protected]>

	* corlib.dll.sources: Add new specific to 2.1 version of some 
	classes.

In System.Security.Policy:
2009-04-27  Sebastien Pouliot  <[email protected]>

	* Evidence.cs: Custom GetDefaultHostEvidence for NET_2_1
	* Hash.cs: Do not include for NET_2_1 build
	* HashMembershipCondition.cs: Do not include for NET_2_1 build
	* PolicyLevel.cs: Do not include for NET_2_1 build
	* PolicyLevel_2_1.cs: Alternate implementation for NET_2_1
	* Zone.cs: Do not include for NET_2_1 build
	* ZoneMembershipCondition.cs: Do not include for NET_2_1 build


svn path=/trunk/mcs/; revision=132774
2009-04-27 19:07:56 +00:00
Gonzalo Paniagua Javier 779b508819 2009-04-27 Gonzalo Paniagua Javier <[email protected]>
* assembly.c: assemblies in the GAC should never be shadow-copied.


svn path=/trunk/mono/; revision=132764
2009-04-27 16:33:52 +00:00
Ankit Jain 03341a095e * Engine.cs (BuildProjectFile): Set project's GlobalProperties to the
one passed as argument.

svn path=/trunk/mcs/; revision=132763
2009-04-27 16:20:09 +00:00
Atsushi Eno 856235b1c4 2009-04-27 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : implemented some channel methods.


svn path=/trunk/mcs/; revision=132757
2009-04-27 15:56:10 +00:00
Atsushi Eno 2694026ab9 2009-04-27 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : use XmlDictionary specified as [MC-NBFS].


svn path=/trunk/mcs/; revision=132756
2009-04-27 15:54:40 +00:00
Atsushi Eno 4a23fddcb7 2009-04-27 Atsushi Enomoto <[email protected]>
* DispatchRuntime.cs : some comment.
	* ChannelDispatcher.cs : ongoing changes to handle listeners and
	  accepted channels at more precise state. Listeners are opened,
	  without accepting channels. Some setup code is done at OnOpen(),
	  while some are done at OnOpened().

	* ServiceHost.cs : split dispatcher open from dispatcher loop start.
	  Use DispatchRuntime.Type to specify service type.

	* ChannelDispatcherTest.cs : added a couple of EndpointDispatcher
	  state tests.


svn path=/trunk/mcs/; revision=132739
2009-04-27 14:40:43 +00:00
Jb Evain f25edf9d62 2009-04-27 Jb Evain <[email protected]>
* sync with CodePlex r10923.

svn path=/trunk/mcs/; revision=132736
2009-04-27 14:33:12 +00:00
Ankit Jain c3cfbe5d6f Improve support for compiling vb.net projects.
In class/Microsoft.Build.Tasks:

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

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

	* CreateCSharpManifestResourceName.cs (GetResourceIdFromFileName): Move
	to ..
	* CreateManifestResourceName.cs: .. here.
	* CreateVisualBasicManifestResourceName.cs: Implement.

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

	* CreateVisualBasicManifestResourceNameTest.cs: New.

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

	* Sample.vb: New.

In tools/xbuild:

	* xbuild/Microsoft.VisualBasic.targets: Update to use
	CreateVisualBasicManifestResourceName task, and fix compiler params.

svn path=/trunk/mcs/; revision=132723
2009-04-27 11:42:12 +00:00
Ankit Jain 594b3b50a6 * Vbc.cs (AddResponseFileCommands): Escape DefineConstants as it can
contain double quotes itself. Fix /doc switch.
(EscapeDoubleQuotes): New.

svn path=/trunk/mcs/; revision=132722
2009-04-27 11:41:53 +00:00
Ankit Jain c435e556d8 * TaskEngine.cs (Prepare): Emit a useful error message property value
can't be converted to required type.

svn path=/trunk/mcs/; revision=132721
2009-04-27 11:41:38 +00:00
Ankit Jain 9d370c21e6 * ExpressionCollection.cs (ConvertToObject): Allow true/on/yes
as valid true values for bool, and corresponding for false.

svn path=/trunk/mcs/; revision=132720
2009-04-27 11:41:06 +00:00
Atsushi Eno 5cfb26f7d2 2009-04-27 Atsushi Enomoto <[email protected]>
* ChannelManagerBase.cs : implement Open/CloseTimeout correctly.


svn path=/trunk/mcs/; revision=132711
2009-04-27 08:28:29 +00:00
Carlos Alberto Cortez 14bbca71f7 2009-04-26 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: Properly support UTF8 when handling the
	SelectionRequest event - this is helpful supporting some window
	managers, such KDE, that explictly request the text in utf8, as
	opposed to gnome, that supports ascii.
	Fixes #489393.


svn path=/trunk/mcs/; revision=132698
2009-04-27 06:09:22 +00:00
Carlos Alberto Cortez 9948c3b1de 2009-04-26 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDownItem.cs: When assigning a new
	ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
	Capture duties performed by Application/ToolStripManager are handled
	nicely and we don't end up in an inconsisten stat.
	Fixes #492815.


svn path=/trunk/mcs/; revision=132696
2009-04-27 02:05:40 +00:00
Zoltan Varga fa856a85b5 2009-04-27 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Implement OP_CHECK_THIS using
	a volatile load. Get rid of get_tempname (), llvm assigns names
	automatically.

	* mini-llvm-cpp.cpp (mono_llvm_build_volatile_load): New instruction
	builder function.

svn path=/trunk/mono/; revision=132691
2009-04-26 22:39:33 +00:00
Zoltan Varga 882733a116 2009-04-27 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Don't call LLVMGetParam on
	a value.

	* abcremoval.c (REPORT_ABC_REMOVAL): Don't output messages at verbose
	level 1.

svn path=/trunk/mono/; revision=132690
2009-04-26 22:27:03 +00:00
Zoltan Varga 5b5fbbd70e 2009-04-27 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Prevent sreg1/dreg to be allocated
	to the same register as a fixed sreg2. Fixes #497271.

	* iltests.il.in: Add a new test.

svn path=/trunk/mono/; revision=132689
2009-04-26 22:13:51 +00:00
Zoltan Varga 32926168e8 2009-04-26 Zoltan Varga <[email protected]>
* mini-amd64.c: Use moves instead of pushes for passing arguments on the
	stack, since pushes complicate exception handling.

	* exceptions-amd64.c (mono_arch_find_jit_info): Don't pop the arguments of
	the stack if they are passed using moves.

svn path=/trunk/mono/; revision=132687
2009-04-26 18:34:15 +00:00
Zoltan Varga 17c70ed712 2009-04-26 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_llvm_vcall_trampoline): Add an assert.

	* method-to-ir.c (mono_method_to_ir): Disable fast virtual generic methods
	when using llvm.

	* mini-llvm.c (mono_llvm_emit_method): Call jit icall wrappers, not the
	icalls themselves. Convert arguments of FCOMPARE. Convert the destination
	of FMOVE if it is an R4.

svn path=/trunk/mono/; revision=132686
2009-04-26 18:31:57 +00:00
Mark Probst f352fe488f Disable track resurrection hashes if using SGen.
2009-04-26  Mark Probst  <[email protected]>

        * domain.c, domain-internals.h: Disable
        track_resurrection_{objects,handles}_hash in MonoDomain if using
        SGen.

svn path=/trunk/mono/; revision=132681
2009-04-26 10:04:27 +00:00
Miguel de Icaza c811d8c9d8 Add comment after much debate
svn path=/trunk/mcs/; revision=132672
2009-04-25 19:34:34 +00:00
Miguel de Icaza 1b774ddf6d 2009-04-25 Miguel de Icaza <[email protected]>
* TermInfoDriver.cs: Use the new StreamReader.DataAvailable to
	load all the data that was added into the `stdin' stream when we
	did the `Read'.

2009-04-25  Miguel de Icaza  <[email protected]>

	* StreamReader.cs (DataAvailable): New internal function to work
	around the fact that StreamReaders are now blocking on Peek(), and
	that our own Console.TermInfoDriver used Peek() as a way of
	probing if there was data on a stream before to avoid blocking. o


svn path=/trunk/mcs/; revision=132670
2009-04-25 19:32:34 +00:00
Miguel de Icaza 3dc05ad99e Apply Gonzalo's patch to fix TermInfoDriver after his StreamReader changes
svn path=/trunk/mcs/; revision=132667
2009-04-25 19:00:32 +00:00
Miguel de Icaza 8b1742d19b Reapply
svn path=/trunk/mcs/; revision=132666
2009-04-25 18:59:23 +00:00
Zoltan Varga 248d20fecc 2009-04-25 Zoltan Varga <[email protected]>
* mini-ops.h: Add OP_LLVM_OUTARG_VT opcode.

	* mini.h (LLVMCallInfo): New structure to store calling convention
	information for the LLVM back end similar to the CallInfo structures in
	the back-ends.

	* mini-amd64.c (mono_arch_get_llvm_call_info): New arch function to return
	call information in a format usable by LLVM.
	(mono_arch_emit_call): Move the LLVM handling code to mono_llvm_emit_call ().

	* method-to-ir.c (mono_emit_call_args): Emit calls using
	mono_llvm_emit_call () when compiling using LLVM.

	* mini-llvm.c: Implement support for passing/receiving valuetypes. Add
	comments to all functions. Fix memory leaks. Add a public init/cleanup
	function.

	* mini.c: Call the llvm init/cleanup functions in mini_init()/cleanup().

	* method-to-ir.c (handle_array_new): Disable llvm when calling the vararg
	mono_array_new_va () jit icall.

svn path=/trunk/mono/; revision=132665
2009-04-25 18:47:02 +00:00
Carlos Alberto Cortez 9e659e849e 2009-04-25 Carlos Alberto Cortez <[email protected]>
* ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
	any ToolStripDropDownItem when receiving a mouse down event in an
	empty area.


svn path=/trunk/mcs/; revision=132664
2009-04-25 16:50:06 +00:00
Sebastien Pouliot eb9be6e575 2009-04-25 Sebastien Pouliot <[email protected]>
* *.cs: Exclude the files for the NET_2_1 profile, since they are
	unneeded and adds a bunch (23) [SecuritySafeCritical] to audit for
	Moonlight


svn path=/trunk/mcs/; revision=132663
2009-04-25 15:57:46 +00:00
Sebastien Pouliot e2f2dba515 2009-04-24 Sebastien Pouliot <[email protected]>
* Environment.cs: #ifdef out code that use the registry for the 
	NET_2_1 profile and some other properties (2) that added
	[SecuritySafeCritical] methods to audit inside Moonlight.


svn path=/trunk/mcs/; revision=132662
2009-04-25 15:20:12 +00:00
Daniel Nauck 0ace9efc2a 2009-04-25 Daniel Nauck <[email protected]>
Fix bug #484649:
        * LoggerInfo.cs: fixed the parsing of the /logger: argument as described in
        http://msdn.microsoft.com/en-us/library/ms164311.aspx
        Added logger class detection if it's not explicit specified in the argument.


svn path=/trunk/mcs/; revision=132660
2009-04-25 14:43:42 +00:00
Jonathan Chambers 2006ec2530 2009-04-25 Jonathan Chambers <[email protected]>
* Makefile: Add Microsoft.Build.* to 3.5 profile.



svn path=/trunk/mcs/; revision=132649
2009-04-25 11:48:33 +00:00
Zoltan Varga 1c998683f8 2009-04-24 Kostyantyn Gushtin, Yevgen Kiruha, Serhiy Naumenko, Serhiy Stetskovych and Ian Dichkovsky <[email protected]>
* include/private/gcconfig.h: Changes to support 64-bit ABI on MIPS.
	Add an additional condition for a proper defining of  ALIGNMENT
	and CPP_WORDSZ.

svn path=/trunk/mono/; revision=132645
2009-04-25 03:39:40 +00:00
Jonathan Pryor e43cb181c3 * src/**/*: Add missing files (doh!). Fixes the build.
svn path=/trunk/mcs/; revision=132643
2009-04-25 00:52:17 +00:00
Miguel de Icaza 2291d2b9e4 2009-04-24 Miguel de Icaza <[email protected]>
* complete.cs: No idea how gonzalo got a null in the list, but
	avoid crashing.

svn path=/trunk/mcs/; revision=132641
2009-04-25 00:21:08 +00:00
Jonathan Pryor f77b5feb60 * src/**/*: Flush; syncs to DbLinq r1053. Adds
DataContext(string,MappingSource) support, the beginnings of object
	  tracking, more tests...

svn path=/trunk/mcs/; revision=132640
2009-04-24 23:47:48 +00:00
Miguel de Icaza c2545dcc09 Revert 132601, 132602 as it made the csharp console stop working
svn path=/trunk/mcs/; revision=132638
2009-04-24 23:43:12 +00:00
Miguel de Icaza 80f717c4ca Without this I am unable to install
svn path=/trunk/mono/; revision=132637
2009-04-24 22:38:55 +00:00
Rodrigo Kumpera db81167546 2009-04-24 Rodrigo Kumpera <[email protected]>
* get.c (dis_stringify_method_signature_full): Don't assert
	if no marshal info is found.

svn path=/trunk/mono/; revision=132636
2009-04-24 22:32:18 +00:00
Rodrigo Kumpera 1381550143 2009-04-24 Rodrigo Kumpera <[email protected]>
* assembly-with-params.cs: New test file with all sort of param kinds.

	* assembly-with-methods.cs: Added more stuff to test paramlist.

	* Makefile: Add new dependencies.

	* cli-tables-tests.md: Tests for methoddef's paramlist.
	Tests for the param table.

svn path=/trunk/mono/; revision=132635
2009-04-24 22:31:54 +00:00
Rodrigo Kumpera 2cb5d4a67b 2009-04-24 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the param table.

svn path=/trunk/mono/; revision=132634
2009-04-24 22:31:39 +00:00
Rodrigo Kumpera 9b22759895 2009-04-24 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Range check FieldList and
	MethodList.

	* metadata-verify.c (verify_method_table): Proper check the ParamList
	field.

svn path=/trunk/mono/; revision=132633
2009-04-24 22:31:09 +00:00
Rodrigo Kumpera 9dddcf6184 2009-04-24 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_method_table): Check for runtime
	implemented functions such as delegate .ctors. Remove spurious
	printf.

svn path=/trunk/mono/; revision=132632
2009-04-24 22:30:34 +00:00
Rodrigo Kumpera ae5736573f 2009-04-24 Rodrigo Kumpera <[email protected]>
* pedump.c: Proper initialize the runtime forcing the 2.0 profile.

svn path=/trunk/mono/; revision=132631
2009-04-24 22:29:52 +00:00
Miguel de Icaza 92603a2683 Update this
svn path=/trunk/mcs/; revision=132627
2009-04-24 21:41:32 +00:00
Miguel de Icaza a4a893ec00 Reapply this patch, but keep in mind, it does introduce
a new shift/reduce conflict which is bothering me:

625: shift/reduce conflict (shift 452, reduce 890) on COMPLETE_COMPLETION
state 625
	member_initializer : non_assignment_expression . opt_COMPLETE_COMPLETION  (452)
	opt_COMPLETE_COMPLETION : .  (890)

	COMPLETE_COMPLETION  shift 452
	CLOSE_BRACE  reduce 890
	COMMA  reduce 890

	opt_COMPLETE_COMPLETION  goto 807

2009-04-24  Miguel de Icaza  <[email protected]>

	* complete.cs (CompletionElementInitializer): New completion class
	to support completing inside a C# 3 element initializer, so this
	allows completion for Silverlight situations where it is very
	common to do:

	new TextBlock () { Fo<TAB>

	(CompletionSimpleName): Expose the prefix that was
	passed to the simple name.

	* cs-parser.jay (object_or_collection_initializer): Add support
	for element_initializers.

	* expression.cs (CollectionOrObjectInitializers.DoResolve):
	special case completion expressions as this method aggressively
	collects data before it operates, and errors were being thrown
	earlier than we were able to complete.



svn path=/trunk/mcs/; revision=132626
2009-04-24 21:30:34 +00:00
Andrés G. Aragoneses 3bcab9370c 2009-04-24 Andrés G. Aragoneses <[email protected]>
* ToolBarButton.cs: add UIA events for style and dropdownmenu changes.


svn path=/trunk/mcs/; revision=132625
2009-04-24 21:27:27 +00:00
Andrés G. Aragoneses f104e747c6 2009-04-24 Andrés G. Aragoneses <[email protected]>
* ToolBarButton.cs: rename a method to include UIA prefix.    


svn path=/trunk/mcs/; revision=132624
2009-04-24 21:23:28 +00:00
Andrés G. Aragoneses 52470b0bc9 doh, fix build
svn path=/trunk/mcs/; revision=132623
2009-04-24 21:21:31 +00:00
Bill Holmes 69fc48204d 2009-04-24 Bill Holmes <[email protected]>
Fixing the glib targets for Winx64.

	* libmono.vcproj, mono.vcproj: Correcting the ProgramDatabaseFile
	  value for the Winx64 glib build.

	* mono.sln: Enabling the glib targets for Winx64.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=132622
2009-04-24 21:20:07 +00:00
Andrés G. Aragoneses dab4ccd0fb 2009-04-24 Andrés G. Aragoneses <[email protected]>
* ToolBarButton.cs: change visibility of some UIA methods to private.


svn path=/trunk/mcs/; revision=132621
2009-04-24 21:19:25 +00:00
Marek Habersack 1368d48fa1 2009-04-24 Marek Habersack <[email protected]>
* TemplateParser.cs:
	AddImport ignores null/empty namespaces. Fixes bug #498118

svn path=/trunk/mcs/; revision=132619
2009-04-24 20:55:22 +00:00
Marek Habersack ebe41a28dd 2009-04-24 Marek Habersack <[email protected]>
* HtmlizedException.cs: make HtmlException derive from
	HttpException. System.Web.Mvc relies upon compile and parse
	exception being descendants of HttpException or otherwise it will
	catch and ignore compilation/parsing errors.

svn path=/trunk/mcs/; revision=132617
2009-04-24 20:44:18 +00:00
Marek Safar d38a025374 Reverted r132592
svn path=/trunk/mcs/; revision=132616
2009-04-24 20:05:01 +00:00
Carlos Alberto Cortez 2428f25869 2009-04-24 Carlos Alberto Cortez <[email protected]>
* ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
	fire OnDropDownOpened/OnDropDownClosed depending on the new
	visibility. This also ensures that any direct access to this instance
	will fire the mentioned events for the OwnerItem.
	* ToolStripDropDownItem.cs: Remove the invocations to
	OnDropDownOpened/OnDropDownClosed, since they are handled in
	ToolStripDropDown, as well as updating the
	OnDropDownHide/OnDropDownShow calls to be in the right order.
	Fixes #496193.


svn path=/trunk/mcs/; revision=132611
2009-04-24 19:20:09 +00:00
Bill Holmes e08c5c6745 2009-04-24 Bill Holmes <[email protected]>
* libmono.vcproj: Adding metadata/metadata-verify.c to the project.

	* runmdesc.bat: Fixing the argument order to genmdesc.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=132610
2009-04-24 19:10:39 +00:00
Marek Habersack a6ed4173aa 2009-04-24 Marek Habersack <[email protected]>
* System.Web_test.dll.sources: added
	System.Web.UI/PageParserFilterTest.cs

2009-04-24  Marek Habersack  <[email protected]>

	* TemplateParser.cs: PageParserFilter.Initialize now takes just
	one parameter.

	* PageParserFilter.cs: a few alignments for .NET compatibility in
	the default behavior.

2009-04-24  Marek Habersack  <[email protected]>

	* AspGenerator.cs: ProcessCode should _not_ stop processing the
	passed code string if the filter's ProcessCodeConstruct returns
	false. Fixes bug #497775

2009-04-24  Marek Habersack  <[email protected]>

	* PageParserFilterTest.cs: added

svn path=/trunk/mcs/; revision=132607
2009-04-24 18:54:29 +00:00
Gonzalo Paniagua Javier 4cc36d1481 2009-04-24 Gonzalo Paniagua Javier <[email protected]>
* StreamReaderTest.cs: new test. Using Peek() when we did a short read
	should block if needed.


svn path=/trunk/mcs/; revision=132602
2009-04-24 16:46:27 +00:00
Gonzalo Paniagua Javier ff67b08189 2009-04-24 Gonzalo Paniagua Javier <[email protected]>
* StreamReader.cs: if Peek() needs to block, do it.
	Fixes bug #496905.


svn path=/trunk/mcs/; revision=132601
2009-04-24 16:46:19 +00:00
Miguel de Icaza 053c2ce662 Remove debugging ToString, it did not compile with mcs anyways
svn path=/trunk/mcs/; revision=132598
2009-04-24 15:32:41 +00:00
Miguel de Icaza bbcf0ee13c Add tutorial for adding more completion types and added new completion
types:

2009-04-24  Miguel de Icaza  <[email protected]>

	* complete.cs (CompletionElementInitializer): New completion class
	to support completing inside a C# 3 element initializer, so this
	allows completion for Silverlight situations where it is very
	common to do:

	new TextBlock () { Fo<TAB>

	(CompletionSimpleName): Expose the prefix that was
	passed to the simple name.

	* cs-parser.jay (object_or_collection_initializer): Add support
	for element_initializers.

	* expression.cs (CollectionOrObjectInitializers.DoResolve):
	special case completion expressions as this method aggressively
	collects data before it operates, and errors were being thrown
	earlier than we were able to complete.


svn path=/trunk/mcs/; revision=132592
2009-04-24 15:04:11 +00:00
Paolo Molaro 5b5af18778 Fri Apr 24 16:44:08 CEST 2009 Paolo Molaro <[email protected]>
* Makefile.am, genmdesc.c, genmdesc.pl: tiny refactor to allow
	multiple machine description files to be specified.
	* mini-ops.h: fixes for cross-compilation.


svn path=/trunk/mono/; revision=132588
2009-04-24 14:46:07 +00:00
Raja R Harinath 2de0591229 Don't allocate MonoGenericInfo for ownerless generic params.
* class-internals.h (MonoGenericParam::info): Move field to ...
(MonoGenericParamFull): ... this.  New struct.
(MonoGenericContainer::type_params): Change type to
MonoGenericParamFull.
(MonoGenericParam, MonoGenericContainer): Update accessors.
* metadata.c (mono_metadata_parse_generic_param): Don't initialize
'info' field for ownerless generic param.
(mono_metadata_load_generic_params): Update to changes.
* reflection.c (mono_reflection_create_generic_class): Likewise.
(reflection_methodbuilder_to_mono_method): Likewise.
(mono_reflection_initialize_generic_parameter): Likewise.

svn path=/trunk/mono/; revision=132583
2009-04-24 13:38:59 +00:00
Jb Evain 8f672a486f 2009-04-24 Jb Evain <[email protected]>
* Mono.Tuner.dll.sources: adjusted
	* Mono.Tuner/FilterAttributes.cs: new step to remove some known
	undesirable custom attributes.


svn path=/trunk/mcs/; revision=132582
2009-04-24 13:18:23 +00:00
Ankit Jain 5245cb34bc * ToolTask.cs (RealExecute): Handle TypeLoadExceptions, compiler
crashes and report them. Borrow some tricks from md.
(LogEventsFromTextOutput): Ignore known non-error messages. Don't
log unknown lines, crashes get handled elsewhere.

svn path=/trunk/mcs/; revision=132569
2009-04-24 11:21:00 +00:00
Raja R Harinath ca596d070f Don't use MonoGenericParamInfo for ownerless generic params.
* class.c (get_anon_gparam_class, set_anon_gparam_class): New.  Don't
use ParamInfo class at all.
(mono_class_from_generic_parameter): Use them.
(make_generic_param_class): Fix a couple of instances where 'pinfo
== NULL' wasn't handle.

svn path=/trunk/mono/; revision=132549
2009-04-24 05:52:34 +00:00
Raja R Harinath 1481f2064e Refactor 'mono_class_from_generic_parameter'
* class.c (make_generic_param_class): Carve out of ...
(mono_class_from_generic_parameter): ... here.

svn path=/trunk/mono/; revision=132548
2009-04-24 05:52:11 +00:00
Raja R Harinath 96c6def8fd Simplify mono_class_from_generic_parameter
* class-internals.h (MonoGenericParamInfo::token): New field.
* metadata.c (mono_metadata_load_generic_params): Initialize it
from metadata.
* class.c (mono_class_from_generic_parameter): Use it instead of
searching through metadata.

svn path=/trunk/mono/; revision=132547
2009-04-24 05:51:47 +00:00
Sebastien Pouliot 54a2ea1120 add a few files back for S.R.S.dll - don't trust changes without a full, long and boring 'make clean'.
svn path=/trunk/mcs/; revision=132537
2009-04-24 00:55:48 +00:00
Rodrigo Kumpera 2c08253395 2009-04-23 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add verification of the method table.

svn path=/trunk/mono/; revision=132536
2009-04-24 00:36:44 +00:00
Rodrigo Kumpera 64737cef43 2009-04-23 Rodrigo Kumpera <[email protected]>
* assembly-with-methods.cs:
	* assembly-with-global-method.il: New test files with a global method.

	* assembly-with-complex-type.cs: Add more types and methods to be used generating tests.

	* cli-tables-tests.md: Tests for the methoddef table.

	* Makefile: Add new dependencies.

svn path=/trunk/mono/; revision=132535
2009-04-24 00:36:19 +00:00
Rodrigo Kumpera cad028b7f8 2009-04-23 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add read.ushort.

svn path=/trunk/mono/; revision=132534
2009-04-24 00:36:06 +00:00
Rodrigo Kumpera d86cc03273 2009-04-23 Rodrigo Kumpera <[email protected]>
* shared.c: Fix a bunch of memleaks.

svn path=/trunk/mono/; revision=132533
2009-04-24 00:35:51 +00:00
Rodrigo Kumpera 6ec5fba179 2009-04-23 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Fix memleak for the
	Delegate::Invoke optimization.

svn path=/trunk/mono/; revision=132532
2009-04-24 00:35:28 +00:00
Rodrigo Kumpera e5382e953b 2009-04-23 Rodrigo Kumpera <[email protected]>
* appdomain.c (mono_domain_create_appdomain_internal): Free the
	string returned by get_shadow_assembly_location_base.

	* appdomain.c (get_shadow_assembly_location_base): Add a comment
	about caller's ownership.

svn path=/trunk/mono/; revision=132531
2009-04-24 00:34:59 +00:00
Rodrigo Kumpera 041223a29f 2009-04-23 Rodrigo Kumpera <[email protected]>
* reflection.c: Add mono_reflection_cleanup_domain to cleanup
	reflection memory on domain unload.

	* domain.c (mono_domain_free): Don't free refobject_hash, let the
	reflection cleanup code do it.

	* domain-internals.h: Add mono_reflection_cleanup_domain.

	This fixes a memory leak for managed mirrors of reflection objects
	on domain unload.

svn path=/trunk/mono/; revision=132530
2009-04-24 00:34:35 +00:00
Rodrigo Kumpera 90fcc3ec3a 2009-04-22 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: More tests for the field table.

svn path=/trunk/mono/; revision=132529
2009-04-24 00:34:11 +00:00
Rodrigo Kumpera 303770f63d 2009-04-22 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement more verification of the field table.

svn path=/trunk/mono/; revision=132528
2009-04-24 00:33:59 +00:00
Rodrigo Kumpera ba126e3b86 2009-04-22 Rodrigo Kumpera <[email protected]>
* pedump.c (main): Init mono with mscorlib so it defaults to 2.0 and
	doesn't try to parse the input assembly, which can be broken.

svn path=/trunk/mono/; revision=132527
2009-04-24 00:33:30 +00:00
Rodrigo Kumpera 6ba99c28f3 2009-04-21 Rodrigo Kumpera <[email protected]>
* pedump.c: Fix a warning.

svn path=/trunk/mono/; revision=132526
2009-04-24 00:32:59 +00:00
Sebastien Pouliot 9226ab53e7 add back duplicated files since the circular, bootstrap, build needs them somehow
svn path=/trunk/mcs/; revision=132525
2009-04-23 23:31:39 +00:00
Miguel de Icaza a9a82471de Add man page
svn path=/trunk/mono/; revision=132512
2009-04-23 20:15:47 +00:00
Sebastien Pouliot 99b7295699 2009-04-23 Sebastien Pouliot <[email protected]>
* TimezoneInfo.cs: TimeZoneDirectory property should not be public


svn path=/trunk/mcs/; revision=132509
2009-04-23 19:41:14 +00:00
Andrés G. Aragoneses 328485e936 * linker/Mono.Linker/Driver.cs: Report error and exit if it cannot
resolve some type (useful to avoid an ugly TypeLoadException when
specifying an erroneus custom step).

svn path=/trunk/mcs/; revision=132508
2009-04-23 19:30:58 +00:00
Atsushi Eno a7be9938a5 2009-04-23 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : use quotas in binding element.
	  Implement WriteMessage().


svn path=/trunk/mcs/; revision=132501
2009-04-23 18:23:09 +00:00
Sebastien Pouliot 6118cb1165 2009-04-23 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.dll.sources: Remove some unneeded files.


svn path=/trunk/mcs/; revision=132492
2009-04-23 17:34:48 +00:00
Sebastien Pouliot 4f838e0e43 2009-04-23 Sebastien Pouliot <[email protected]>
* Regex.cs: Remove Compiler-related support for NET_2_1
	* RegexOptions.cs: Remove Compile from values available on NET_2_1


svn path=/trunk/mcs/; revision=132491
2009-04-23 17:34:25 +00:00
Sebastien Pouliot 0f4f4557f6 2009-04-23 Sebastien Pouliot <[email protected]>
* UriParser.cs: Don't use compiled regex on NET_2_1 (feature is
	not available)


svn path=/trunk/mcs/; revision=132490
2009-04-23 17:33:38 +00:00
Sebastien Pouliot 7daa73de8f 2009-04-23 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Remove InternalsVisibleTo on Mono.Moonlight 
	since it does not exists anymore


svn path=/trunk/mcs/; revision=132489
2009-04-23 17:23:35 +00:00
Mark Probst ecc4317f0d Track resurrection GCHandles in SGen.
2009-04-23  Mark Probst  <[email protected]>

        * boehm-gc.c, gc-internal.h, gc.c, monitor.c, null-gc.c,
        sgen-gc.c: Implement track resurrection in weak GC handles in SGen
        by using the lowest bit in the link to store whether the link is
        tracked.  Move the track_resurrection hashes into boehm-gc.c.

svn path=/trunk/mono/; revision=132485
2009-04-23 16:55:42 +00:00
Marek Habersack 0d6fd8d740 2009-04-23 Marek Habersack <[email protected]>
* AsyncPostBackTrigger.cs: HasTriggered () must look up the
	UniqueID of the control specified in the ControlID property or
	otherwise it may miss certain triggers.

svn path=/trunk/mcs/; revision=132482
2009-04-23 16:47:52 +00:00
Jb Evain fa3de9066b delete unused file
svn path=/trunk/mcs/; revision=132468
2009-04-23 13:59:38 +00:00
Jb Evain 493d3e3c53 2009-04-23 Jb Evain <[email protected]>
* scripts/Makefile.am: add a pdb2mdb script.


svn path=/trunk/mono/; revision=132466
2009-04-23 13:56:00 +00:00
Jb Evain 479563b1a4 2009-04-23 Jb Evain <[email protected]>
* Makefile: add pdb2mdb to the build.


svn path=/trunk/mcs/; revision=132464
2009-04-23 13:48:27 +00:00
Jb Evain c9d73bc09c 2009-04-23 Jb Evain <[email protected]>
* Makefile: disable moon. Tuning is done by moonlight, which
	will populate back the mcs tree with tuned assemblies for tests.


svn path=/trunk/mcs/; revision=132462
2009-04-23 13:47:06 +00:00
Jb Evain 5471a1cb5a add license file
svn path=/trunk/mcs/; revision=132461
2009-04-23 13:43:04 +00:00
Jb Evain 2ed5f86e49 2009-04-23 Jb Evain <[email protected]>
* pdb2mdb.exe.sources: added.
	* Makefile: update to the mcs build system.


svn path=/trunk/mcs/; revision=132460
2009-04-23 13:41:49 +00:00
Jb Evain 8d0348b70c Move managed version of pdb2mdb in mcs.
svn path=/trunk/mcs/; revision=132458
2009-04-23 13:30:25 +00:00
Raja R Harinath a69c682a0f fix typo
svn path=/trunk/mcs/; revision=132456
2009-04-23 12:57:07 +00:00
Jb Evain 212a395eac 2009-04-23 Jb Evain <[email protected]>
* Mono.Tuner/CheckVisibility.cs: check deep nested types.


svn path=/trunk/mcs/; revision=132449
2009-04-23 11:11:57 +00:00
Atsushi Eno 60d84817eb 2009-04-23 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs : reordered preferrence of created channel types,
	  and fixed to allow duplex channels without CallbackContractType
	  (which does not always exist for duplex channels).


svn path=/trunk/mcs/; revision=132448
2009-04-23 11:09:11 +00:00
Atsushi Eno 8ac98fb28a 2009-04-23 Atsushi Enomoto <[email protected]>
* DispatchOperation.cs : implement GetFormatter() at service side too.


svn path=/trunk/mcs/; revision=132447
2009-04-23 11:06:40 +00:00
Atsushi Eno bb0db7ef9b 2009-04-22 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : now Request() supports duplex ones too.


svn path=/trunk/mcs/; revision=132446
2009-04-23 11:05:23 +00:00
Atsushi Eno b7800c641d 2009-04-22 Atsushi Enomoto <[email protected]>
* DuplexChannelFactory.cs : remove todos. Implement CreateChannel().


svn path=/trunk/mcs/; revision=132445
2009-04-23 11:02:02 +00:00
Atsushi Eno cfb63579dc 2009-04-22 Atsushi Enomoto <[email protected]>
* PeerCustomResolverBindingElement.cs : do initialize field.


svn path=/trunk/mcs/; revision=132443
2009-04-23 10:48:51 +00:00
Miguel de Icaza 7e14548d77 2009-04-23 Miguel de Icaza <[email protected]>
* eval.cs: Make getcompletions silent and enable debugging output
	if the -v option is passed.

svn path=/trunk/mcs/; revision=132431
2009-04-23 05:48:19 +00:00
Miguel de Icaza 898900f5a0 2009-04-23 Miguel de Icaza <[email protected]>
* namespace.cs (NamespaceEntry.CompletionGetTypesStartingWith):
	Consider looking up the namespace that matches the prefix being
	used. 

	This is part of the support for allowing completions like:
	`System.Co<TAB>' to complete to System.Console.

	* complete.cs (CompletionSimpleName.AppendResults): Make this
	routine reusable.



svn path=/trunk/mcs/; revision=132430
2009-04-23 05:42:38 +00:00
Sebastien Pouliot 3af17243f6 2009-04-22 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Open up the internals to System.ServiceModel.Web, 
	e.g. calls to IDataContractSurrogate, JsonReader ...


svn path=/trunk/mcs/; revision=132429
2009-04-23 01:46:07 +00:00
Miguel de Icaza 51fe80bcf3 Add missing headers
svn path=/trunk/mono/; revision=132428
2009-04-22 23:59:25 +00:00
Miguel de Icaza b9e66f22b7 merge
svn path=/trunk/mono/; revision=132427
2009-04-22 23:59:10 +00:00
Sebastien Pouliot 8333dc1439 2009-04-22 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Open internals to System.ServiceModel.Web


svn path=/trunk/mcs/; revision=132426
2009-04-22 23:49:18 +00:00
Miguel de Icaza 016c4d07cf 2009-04-22 Miguel de Icaza <[email protected]>
* aot-runtime.c (make_writable): Use mono_mprotect to simplify
	some porting work.

svn path=/trunk/mono/; revision=132425
2009-04-22 23:33:57 +00:00
Miguel de Icaza 4348ddbcfb Portificate to the SLN setup
svn path=/trunk/mono/; revision=132424
2009-04-22 23:16:34 +00:00
Miguel de Icaza d69eacde0a 2009-04-22 Miguel de Icaza <[email protected]>
* Makefile.am: Split the console support in platform specific
        code and put together a framework for making this easy in the future so
        that we can start splitting code instead of having a mess of PLATFORM_WIN32


svn path=/trunk/mono/; revision=132422
2009-04-22 23:07:49 +00:00
Miguel de Icaza e2be6b2ab1 Add
svn path=/trunk/mono/; revision=132420
2009-04-22 22:56:30 +00:00
Miguel de Icaza 2d70e69f96 Add
svn path=/trunk/mono/; revision=132419
2009-04-22 22:56:23 +00:00
Miguel de Icaza e3890c3db5 Sort the files
svn path=/trunk/mono/; revision=132418
2009-04-22 22:51:56 +00:00
Miguel de Icaza 050353d660 Do not need signal.h here
svn path=/trunk/mono/; revision=132416
2009-04-22 22:34:52 +00:00
Miguel de Icaza 8a54df6ad0 Do not need signal.h here
svn path=/trunk/mono/; revision=132415
2009-04-22 22:34:31 +00:00
Miguel de Icaza 3a9fa26e06 Do not need signal.h here
svn path=/trunk/mono/; revision=132414
2009-04-22 22:33:53 +00:00
Miguel de Icaza 2645a134ad Update
svn path=/trunk/mono/; revision=132413
2009-04-22 22:32:07 +00:00
Sebastien Pouliot 5082fdbff3 2009-04-22 Sebastien Pouliot <[email protected]>
* System.Net.dll.sources: Remove the common Const, Locale and 
	MonoTODOAttribute since we can now get them from mscorlib.dll.
	Remove all System/System.Net.NetworkInformation/* types since
	Socket does not depend on them anymore.
	* DummySystemNet.cs: Add a dummy System.Net.NetworkInformation
	namespace to please compilers.


svn path=/trunk/mcs/; revision=132409
2009-04-22 21:53:22 +00:00
Sebastien Pouliot eeb4f00cae 2009-04-22 Sebastien Pouliot <[email protected]>
* Socket_2_1.cs: Use old-n-simple CheckProtocolSupport to implement
	OSSupportsIP[v4|v6] for Moonlight (NET_2_1 only) so we can avoid 
	including a bunch of types (22) from System.Net.NetworkInformation 
	and drop the number of [SecuritySafeCritical] methods to audit (the 
	same 22) and [SecurityCritical] (8) beside getting a smaller 
	System.Net.dll assembly :)


svn path=/trunk/mcs/; revision=132408
2009-04-22 21:50:40 +00:00
Sebastien Pouliot 1afdb9c729 2009-04-22 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.ServiceModel.Web.dll.sources: Remove the common
	Const, Locale and MonoTODO since we can now get them from mscorlib.dll


svn path=/trunk/mcs/; revision=132407
2009-04-22 21:32:30 +00:00
Sebastien Pouliot fb5333b0b0 2009-04-22 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: allow System.ServiceModel.Web access to mscorlib
	internals (e.g. non-generic System.Collections.*)


svn path=/trunk/mcs/; revision=132406
2009-04-22 21:32:17 +00:00
Miguel de Icaza 8501c39432 Up
svn path=/trunk/mono/; revision=132404
2009-04-22 21:24:26 +00:00
Gonzalo Paniagua Javier 7a01b00781 2009-04-22 Gonzalo Paniagua Javier <[email protected]>
* Win32Exception.cs: made W32ErrorMessage internal.


svn path=/trunk/mcs/; revision=132394
2009-04-22 19:01:09 +00:00
Gonzalo Paniagua Javier c8928818b7 2009-04-22 Gonzalo Paniagua Javier <[email protected]>
* Microsoft.CSharp/CSharpCodeCompiler.cs:
	* Microsoft.VisualBasic/VBCodeCompiler.cs: better error when there's a
	problem running the specified exec.


svn path=/trunk/mcs/; revision=132387
2009-04-22 18:35:40 +00:00
Miguel de Icaza 1f781d02dc Move two other documents to the Wiki
svn path=/trunk/mono/; revision=132386
2009-04-22 18:22:37 +00:00
Jeffrey Stedfast 87f46ffb33 2009-04-22 Jeffrey Stedfast <[email protected]>
* configure.in: Check for a stable version of glib-2.0 as opposed
	to an unstable development version (we don't want people
	unfamiliar with glib versioning to install an unstable development
	version of glib).


svn path=/trunk/mono/; revision=132384
2009-04-22 18:09:44 +00:00
Jb Evain 19ae150552 refactor
svn path=/trunk/mcs/; revision=132378
2009-04-22 16:55:54 +00:00
Jb Evain 6684c55390 that reads better
svn path=/trunk/mcs/; revision=132377
2009-04-22 16:48:01 +00:00
Jb Evain 96e26f0692 2009-04-22 Jb Evain <[email protected]>
* Mono.Tuner/CheckVisibility.cs: take InternalsVisibleTo into account.


svn path=/trunk/mcs/; revision=132376
2009-04-22 16:45:12 +00:00
Jb Evain 458fcba073 2009-04-22 Jb Evain <[email protected]>
* Mono.Tuner/CheckVisibility.cs: take FamAndAssem into account.


svn path=/trunk/mcs/; revision=132371
2009-04-22 15:51:27 +00:00
Jb Evain 6972ece2d8 2009-04-22 Jb Evain <[email protected]>
* AdjustVisibility.cs: we're now turning non exposed fields and
	methods (API wise) that are `protected` into `protected and internal`.

svn path=/trunk/mcs/; revision=132370
2009-04-22 15:41:53 +00:00
Marek Habersack 8b9834bc9c 2009-04-22 Marek Habersack <[email protected]>
* TemplateParser.cs: create the imports ArrayList before
	attempting to use it. Fixes bug #497174

svn path=/trunk/mcs/; revision=132366
2009-04-22 14:27:34 +00:00
Zoltan Varga da6a440479 2009-04-22 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Force init_locals to be TRUE
	to prevent asserts in various passes. Fixes #497220.

svn path=/trunk/mono/; revision=132364
2009-04-22 13:04:52 +00:00
Marek Safar c5d9185103 Updated
svn path=/trunk/mcs/; revision=132355
2009-04-22 09:38:36 +00:00
Atsushi Eno fb729447e3 2009-04-22 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : quick fix for bug #496205. Reset xsi:type
	  and endelement.

	* XmlSchemaValidatorTests.cs : added test for bug #496192 and #496205.

	* 496192.xml, 496192.xsd : new test files.


svn path=/trunk/mcs/; revision=132351
2009-04-22 08:08:52 +00:00
Atsushi Eno 8a93fd5b62 bug # correction.
svn path=/trunk/mcs/; revision=132348
2009-04-22 05:44:56 +00:00
Atsushi Eno 0e439d038d 2009-04-22 Atsushi Enomoto <[email protected]>
* XmlQualifiedName.cs : added Parse() overload that is used for
	  xsd validation.

	* XmlSchemaValidator.cs, BuiltInDatatype.cs, XmlAtomicValue.cs:
	  use xsd-supported version of XmlQualifiedName.Parse().
	  Fixed bug #496205.


svn path=/trunk/mcs/; revision=132347
2009-04-22 05:43:28 +00:00
Atsushi Eno 6ffb2498cf 2009-04-22 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : when the node to be inserted has owner
	  element _but_ is identical to that of this collection, do not
	  reject it to raise an error. Fixed bug #496022.

	* XmlAttributeCollectionTests.cs : added test for bug #496022.


svn path=/trunk/mcs/; revision=132344
2009-04-22 04:46:09 +00:00
Gonzalo Paniagua Javier b2c1e349f2 2009-04-21 Gonzalo Paniagua Javier <[email protected]>
* HttpSoapWebServiceHandler.cs: provide the full stack trace instead
	of just the Message to aid in debugging web service problems.
	Bug #496758 fixed.


svn path=/trunk/mcs/; revision=132335
2009-04-21 22:41:32 +00:00
Andrés G. Aragoneses a6b6e50203 MD misplaced the changelog entry..
svn path=/trunk/mcs/; revision=132326
2009-04-21 21:33:10 +00:00
Andrés G. Aragoneses 1383d66d0d * linker/Mono.Linker/Driver.cs: Postprocess custom steps in order to
make them able to find steps determined by the resolve step. Fixes
  #493702.

svn path=/trunk/mcs/; revision=132325
2009-04-21 21:30:32 +00:00
Marek Habersack 5a6359d9f0 2009-04-21 Marek Habersack <[email protected]>
* Makefile: fixed resource ID generation.

svn path=/trunk/mcs/; revision=132323
2009-04-21 21:16:24 +00:00
Rodrigo Kumpera 00e11d494c 2009-04-21 Rodrigo Kumpera <[email protected]>
* verify.c (mono_delegate_type_equal): Compare valuetypes using
	mono_class_from_mono_type to avoid bad interactions with the dual representation
	of the generic type definition.

svn path=/trunk/mono/; revision=132318
2009-04-21 20:36:23 +00:00
Rodrigo Kumpera 9d38ffdec9 2009-04-21 Rodrigo Kumpera <[email protected]>
* verify.c (do_invoke_method): Use mono_class_from_mono_type to
	get the MonoClass for the call context type as it might be a generic
	instance.

	Fixes #491483.

svn path=/trunk/mono/; revision=132317
2009-04-21 20:35:55 +00:00
Rodrigo Kumpera e6d98ba261 2009-04-20 Rodrigo Kumpera <[email protected]>
* verify.c (do_newobj): Improve error message.

svn path=/trunk/mono/; revision=132316
2009-04-21 20:35:27 +00:00
Marek Habersack a277d5477f 2009-04-21 Marek Habersack <[email protected]>
* PageCompiler.cs: implemented new way of setting output cache
	parameters in the 2.0 profile. The generated code is now the same
	as on .NET and uses the OutputCacheParameters class to pass
	settings to InitOutputCache.

2009-04-21  Marek Habersack  <[email protected]>

	* Page.cs: added support for OutputCacheParameters.NoStore to
	InitOutputCache.

	* TemplateParser.cs:
	Added support for the SqlDependency, NoStore and CacheProfile
	attributes of the OutputCache directive. Fixes bug #496951

svn path=/trunk/mcs/; revision=132312
2009-04-21 19:56:57 +00:00
Mark Probst d011576caf The execution context is now ThreadStatic in the Thread class.
2009-04-21  Mark Probst  <[email protected]>

        * object-internals.h: The Thread object has no execution_context
        member anymore.

        * threads.c, threadpool.c, threads-types.h: Accessor functions for
        the execution context.

        * appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=132309
2009-04-21 18:41:19 +00:00
Mark Probst 322f82badc 2009-04-21 Mark Probst <[email protected]>
* Thread.cs: Make the execution context field thread-static to
        avoid it being shared between app domains.

2009-04-21  Mark Probst  <[email protected]>

        * Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=132308
2009-04-21 18:39:48 +00:00
Carlos Alberto Cortez bacaea635e 2009-04-21 Carlos Alberto Cortez <[email protected]>
* Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
	shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
	event is the same as the owner of the menu item. Also set properly 
	SourceControl for ContextMenuStrip, as well as add an internal field to 
	contain the control that owns the ContextMenuStrip (we need to know this 
	even before the public property is assigned).
	Fixes bits of #393775.


svn path=/trunk/mcs/; revision=132303
2009-04-21 18:05:45 +00:00
Marek Habersack 1c50013daa 2009-04-21 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: retrieve CompilationSection from the
	appropriate web.config file.

	* BaseParser.cs: moved the internal property VirtualPath from
	TemplateParser to here and added an internal method
	GetConfigSection to retrieve sections from the correct web.config
	file on 2.0 applications. Fixes bug #494245

	* PageParser.cs: use the new GetConfigSection method to retrieve
	ClientTargetSection.

	* TemplateParser.cs: moved the VirtualPath property to
	BaseParser.
	PagesConfig now uses the new GetConfigSection method. Fixes bug
	#494245

svn path=/trunk/mcs/; revision=132300
2009-04-21 17:54:02 +00:00
Zoltan Varga d5fe5d6be6 2009-04-21 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_generic_class_init_trampoline): Remove
	a racy assert.

svn path=/trunk/mono/; revision=132299
2009-04-21 17:51:43 +00:00
Gonzalo Paniagua Javier 35c3b48ade 2009-04-21 Gonzalo Paniagua Javier <[email protected]>
* DnsTest.cs: new IP for go-mono and fix AsyncResolve test.


svn path=/trunk/mcs/; revision=132294
2009-04-21 17:01:42 +00:00
Sebastien Pouliot fff39c9fea remove more code duplication for 2.1 and fix the build
svn path=/trunk/mcs/; revision=132291
2009-04-21 16:44:06 +00:00
Sebastien Pouliot 122099a611 remove more code duplication for 2.1 and fix the build
svn path=/trunk/mcs/; revision=132290
2009-04-21 16:43:28 +00:00
Sebastien Pouliot a9d09a6678 In System.Xml.Schema:
In .:
2009-04-21  Sebastien Pouliot  <[email protected]> 

	* System.Xml.Schema/*: Remove (not needed for 2.1 anymore)
	* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove 
	more code duplication for 2.1 and fix the build


svn path=/trunk/mcs/; revision=132289
2009-04-21 16:43:26 +00:00
Sebastien Pouliot d37ae0362a 2009-04-21 Sebastien Pouliot <[email protected]>
* XmlSchema_2_1.cs: Add internal fields needed by S.R.S.dll


svn path=/trunk/mcs/; revision=132287
2009-04-21 16:39:44 +00:00
Sebastien Pouliot 25bee8c85b net_2_1_raw_System.ServiceModel.dll.sources: Remove MonoTODOAttribute since we can get it from mscorlib.dll
svn path=/trunk/mcs/; revision=132284
2009-04-21 16:20:57 +00:00
Sebastien Pouliot 27aa9ff79a 2009-04-21 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove
	MonoTODOAttribute since we get it from mscorlib (fix build too).
	Remove System.Xml.Schema/XmlSchema.cs from build since we can
	get the fields directly from System.Xml.dll


svn path=/trunk/mcs/; revision=132283
2009-04-21 16:19:26 +00:00
Sebastien Pouliot 66ee57808b net_2_1_raw_System.Xml.dll.sources: Remove MonoTODOAttribute.cs since we can get it from mscorlib.dll
svn path=/trunk/mcs/; revision=132282
2009-04-21 16:18:23 +00:00
Sebastien Pouliot 9067c22b8a 2009-04-21 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Open internals to System.Runtime.Serialization
	since it needs some stuff from XmlSchema


svn path=/trunk/mcs/; revision=132281
2009-04-21 16:16:38 +00:00
Sebastien Pouliot 76efdedf4a 2009-04-21 Sebastien Pouliot <[email protected]>
* ClientBase.cs (NET_2_1): Change cctor not to require being 
	[SecuritySafeCritical] and drop IDisposable.


svn path=/trunk/mcs/; revision=132269
2009-04-21 15:30:16 +00:00
Raja R Harinath 5eea1c9dcc * cs-parser.jay (GetTokenName): Mark GENERATE_COMPLETION and COMPLETE_COMPLETION as internal.
svn path=/trunk/mcs/; revision=132268
2009-04-21 15:15:23 +00:00
Zoltan Varga 8db495518c 2009-04-21 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Emit the unwind info into a separate
	table to avoid duplicates.

	* mini.h (MONO_AOT_FILE_VERSION): Bump this.

svn path=/trunk/mono/; revision=132267
2009-04-21 15:04:44 +00:00
Zoltan Varga c72b0c25a3 2009-04-21 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Avoid writing symbols if the nodebug
	option is used.

svn path=/trunk/mono/; revision=132266
2009-04-21 15:04:35 +00:00
Sebastien Pouliot dad9d54180 2009-04-21 Sebastien Pouliot <[email protected]>
* UriParserTest.cs: Ensure "tcp" is not a registred scheme
	* UriTest2.cs: Make sure GetComponents and IsBaseOf do not throw
	NRE is no UriParser was registred for the URI scheme


svn path=/trunk/mcs/; revision=132265
2009-04-21 14:50:46 +00:00
Sebastien Pouliot 5b01ed5820 2009-04-21 Sebastien Pouliot <[email protected]>
* DefaultUriParser.cs: Add special case for schema
	* Uri.cs: Make sure we can use a default parser if none was
	registred for the URI schema.
	* UriParser.cs: Handle "*" as a special schema for "anything"
	[Fix bug #496783]


svn path=/trunk/mcs/; revision=132264
2009-04-21 14:48:53 +00:00
Sebastien Pouliot b44905b775 2009-04-21 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: allow System.ServiceModel access to mscorlib
	internals (e.g. non-generic System.Collections.*)


svn path=/trunk/mcs/; revision=132263
2009-04-21 14:42:11 +00:00
Sebastien Pouliot 6d40ddb441 2009-04-21 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Remove extra attributes for 2.1. Open up the 
	internals to System.ServiceModel, e.g. to call the ctor of
	System.Xml.XmlDictionaryReaderQuotas


svn path=/trunk/mcs/; revision=132261
2009-04-21 14:09:37 +00:00
Jb Evain f86e281358 2009-04-21 Jb Evain <[email protected]>
* Mono.Cecil.Cil/SymbolStoreHelper.cs: look for the assembly in the GAC
	as well if it's not local.


svn path=/trunk/mcs/; revision=132257
2009-04-21 13:47:10 +00:00
Atsushi Eno 3d1ecb35bf 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerNode.cs : remove extra field.

	* PeerCustomResolverSettings.cs : added Clone().

	* PeerCustomResolverBindingElement.cs :
	  implement full custom resolver.


svn path=/trunk/mcs/; revision=132255
2009-04-21 12:59:56 +00:00
Atsushi Eno 1218218614 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs, PeerChannelListener.cs,
	  PeerOutputChannel.cs, PeerCustomResolverBindingElement.cs,
	  PeerChannelFactory.cs : ongoing p2p channel implementation.


svn path=/trunk/mcs/; revision=132250
2009-04-21 12:05:07 +00:00
Atsushi Eno 3e5afeb94d 2009-04-21 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : setup IChannel instance at construction
	  time, so that it can GetProperty<T>() immediately after
	  ChannelFactory.CreateChannel().
	  Implement some properties.


svn path=/trunk/mcs/; revision=132249
2009-04-21 12:03:36 +00:00
Atsushi Eno 48a7c35e96 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerNode.cs : update API to the latest .NET amd implement some.


svn path=/trunk/mcs/; revision=132248
2009-04-21 12:01:26 +00:00
Sebastien Pouliot e3dfffb6ce 2009-04-21 Sebastien Pouliot <[email protected]>
* System_test.dll.sources: Add EndPointTest.cs


svn path=/trunk/mcs/; revision=132247
2009-04-21 12:00:01 +00:00
Sebastien Pouliot 3aef2f5503 2009-04-21 Sebastien Pouliot <[email protected]>
* EndPointTest.cs: New


svn path=/trunk/mcs/; revision=132246
2009-04-21 11:59:15 +00:00
Atsushi Eno fc63af5a71 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerTransportBindingElementTest.cs : test PeerNode property too.


svn path=/trunk/mcs/; revision=132245
2009-04-21 11:59:06 +00:00
Sebastien Pouliot 5b3ae86a8f 2009-04-21 Sebastien Pouliot <[email protected]>
* EndPoint.cs: Throw NotImplementedException instead of 
	NotSupportedException
	* IPEndPoint.cs: Fix some validations.


svn path=/trunk/mcs/; revision=132244
2009-04-21 11:58:26 +00:00
Atsushi Eno 68dcbd34df 2009-04-21 Atsushi Enomoto <[email protected]>
* NetPeerTcpBindingTest.cs : fix build.


svn path=/trunk/mcs/; revision=132243
2009-04-21 11:58:12 +00:00
Sebastien Pouliot fdd8e601dc 2009-04-21 Sebastien Pouliot <[email protected]>
* UriTest2.cs: More constructor test cases


svn path=/trunk/mcs/; revision=132242
2009-04-21 11:56:09 +00:00
Sebastien Pouliot 50b3e831bd 2009-04-21 Sebastien Pouliot <[email protected]>
* Uri.cs: Fix some issues found with Moonlight (see new unit
	tests)


svn path=/trunk/mcs/; revision=132239
2009-04-21 11:54:56 +00:00
Atsushi Eno d0031fea42 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerResolver.cs, PeerResolverImpl.cs :
	  update API to the latest .NET.

	* PnrpPeerResolverBindingElement.cs : sync with PeerResolver changes.


svn path=/trunk/mcs/; revision=132237
2009-04-21 11:37:19 +00:00
Atsushi Eno 9191ff0633 2009-04-21 Atsushi Enomoto <[email protected]>
* BinaryMessageEncodingBindingElement.cs, ChannelBase.cs,
	  ChannelFactoryBase.cs, WindowsStreamSecurityBindingElement.cs :
	  implement GetProperty<T>(). Return documented objects or null.


svn path=/trunk/mcs/; revision=132235
2009-04-21 11:29:22 +00:00
Miguel de Icaza bd46200522 2009-04-16 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Add System.IO.IsolatedStorage/
	MoonIsolatedStorage.cs to the build

2009-02-07  Zoltan Varga  <[email protected]>

	* Makefile: Add Test/resources/Fergie.GED to EXTRA_DIST.

2009-01-30  Atsushi Enomoto  <[email protected]>

svn path=/trunk/mcs/; revision=132223
2009-04-21 05:03:04 +00:00
Gonzalo Paniagua Javier b252d1787c 2009-04-21 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: End* methods can only be called once per IAsyncResult.
	Bug #466031 fixed.


svn path=/trunk/mcs/; revision=132221
2009-04-21 04:48:42 +00:00
Gonzalo Paniagua Javier 9cef28ffa2 2009-04-21 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs:
	* HttpWebRequest.cs: provide more information on why the connection
	could not be established.


svn path=/trunk/mcs/; revision=132220
2009-04-21 04:24:42 +00:00
Zoltan Varga d05914a121 2009-04-20 Zoltan Varga <[email protected]>
* virtual-sync.cs: Remove this, there is already a test for this in
	synchronized.cs.

svn path=/trunk/mono/; revision=132213
2009-04-20 22:40:11 +00:00
Rodrigo Kumpera 5687928761 2009-04-20 Rodrigo Kumpera <[email protected]>
* mini.c (mini_method_verify): Fail fulltrust code if the exception
	is for method or field access.

svn path=/trunk/mono/; revision=132212
2009-04-20 22:24:44 +00:00
Rodrigo Kumpera 5f5ed99240 2009-04-20 Rodrigo Kumpera <[email protected]>
* valid_nested_eh_in_try_of_try_filter_block.il:  Regression
	test for #495656.

svn path=/trunk/mono/; revision=132208
2009-04-20 20:25:55 +00:00
Rodrigo Kumpera 5963be6a96 2009-04-20 Rodrigo Kumpera <[email protected]>
* verify.c (verify_clause_relationship): Only mask as an error if the exception clause
	is nested in the filter block.

	* verify.c (verify_clause_relationship): The disjoint check must verify if the exception
	block is not fully nested.

	Fixes #495656.

svn path=/trunk/mono/; revision=132207
2009-04-20 20:25:39 +00:00
Miguel de Icaza 4f3c6d1162 Fix man page
svn path=/trunk/mono/; revision=132205
2009-04-20 19:35:58 +00:00
Carlos Alberto Cortez 1b3759cdc8 2009-04-20 Carlos Alberto Cortez <[email protected]>
* StatusStrip.cs: Use the same icon as .net when the mouse is over the
	size grip.
	Fixes #492828.


svn path=/trunk/mcs/; revision=132195
2009-04-20 18:20:47 +00:00
Carlos Alberto Cortez 726f56a423 2009-04-20 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: When calculating the height of the ComboListBox,
	specially for the 2.0 profile, use MaxDropDownItems if the
	DropDownHeight property hasn't been set, and use the later if it has
	been set. This way we support both properties.
	Fixes #493308.


svn path=/trunk/mcs/; revision=132188
2009-04-20 16:24:32 +00:00
Rodrigo Kumpera 9433af5ee3 2009-04-20 Rodrigo Kumpera <[email protected]>
* valid_initobj_this.cs: Regression test for #496175.

svn path=/trunk/mono/; revision=132187
2009-04-20 16:04:59 +00:00
Rodrigo Kumpera f335429f0d 2009-04-20 Rodrigo Kumpera <[email protected]>
* verify.c (verify_type_compatibility_full): Compare MonoClass and
	not MonoType to check for equality of valuetypes as the generic type
	definition allows for two different encodings: the generic type definition
	class or a generic instance over the GTD arguments.

	Fixes #496175.

svn path=/trunk/mono/; revision=132185
2009-04-20 16:02:38 +00:00
Rodrigo Kumpera 6db1369ced 2009-04-20 Rodrigo Kumpera <[email protected]>
* verify.c (dump_stack_value): Fix compilation with extra debug turned on.

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

svn path=/trunk/mono/; revision=132184
2009-04-20 16:01:56 +00:00
Zoltan Varga fc22ebaa26 2009-04-20 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (mono_llvm_dump_value): New helper function to print
	a Value to stdout.

	* mini-llvm.c (mono_llvm_emit_method): Use it.

svn path=/trunk/mono/; revision=132183
2009-04-20 15:51:09 +00:00
Rodrigo Kumpera e505d3e6d6 2009-04-20 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Enable pe verification as the issue with #496453
	is that the authenticode data directory have a different unspecified
	format. Ignore it for now.

	* pedump.c: Run the metadata verifier together with the IL verifier.

	Fixes ##496453.

svn path=/trunk/mono/; revision=132170
2009-04-20 14:33:59 +00:00
Zoltan Varga 1f557ffadf 2009-04-20 Zoltan Varga <[email protected]>
* mini-llvm.c (type_to_llvm_type): Fix the mapping of enums.
	(mono_llvm_emit_method): Add support for CAS. Fix handling of CSET opcodes
	on volatile values.

	* mini-trampolines.c (mono_llvm_vcall_trampoline): Add support for
	synchronized methods.

	* mini.c (mini_method_compile): Disable LLVM for dynamic methods.

svn path=/trunk/mono/; revision=132169
2009-04-20 13:59:16 +00:00
Rolf Bjarne Kvinge 42a3e10016 2009-04-20 Rolf Bjarne Kvinge <[email protected]>
* Thread.cs: For 2.1 ensure exceptions in threads are handled using the
	UnhandledException event mechanism in System.Windows.Application instead
	of crashing the application.


svn path=/trunk/mcs/; revision=132166
2009-04-20 12:57:02 +00:00
Rolf Bjarne Kvinge 70017fa7c1 2009-04-20 Rolf Bjarne Kvinge <[email protected]>
* metadata-verify.c: Temporarily disable pe verification due to #496453.


svn path=/trunk/mono/; revision=132159
2009-04-20 12:48:24 +00:00
Atsushi Eno 1f9a2160f1 ongoing PeerTransportBindingElement implementation.
svn path=/trunk/mcs/; revision=132146
2009-04-20 12:16:39 +00:00
Atsushi Eno cebf19a73a 2009-04-20 Atsushi Enomoto <[email protected]>
* ScriptCompilerInfo.cs, MSXslScriptManager.cs :
	  Cache compiled msxsl:script.
	  Close bug #495918. Patch by Tor Lillqvist.


svn path=/trunk/mcs/; revision=132118
2009-04-20 08:37:45 +00:00
Miguel de Icaza 11fbf68130 2009-04-20 Miguel de Icaza <[email protected]>
* Enum.cs (MonoEnumInfo): Compare bytes, shorts, ints and longs as
	unsigned values as specified and to fix 371559, from the bug:

		So the actual difference is that MSFT's Enum.GetValues
		orders the members as unsigned even when the underlying
		type is int.  See the following.  Perhaps that's what's
		being implied by "binary values" in that Enum.GetValues
		MSDN quote above.


svn path=/trunk/mcs/; revision=132113
2009-04-20 06:19:04 +00:00
Ankit Jain 9575d2ff2a In ilasm/codegen:
Fix bug #494221
	* MethodDef.cs (BeginLocalsScope): New.
	(EndLocalsScope): New.
	(AddLocals):
	(GetNamedLocal): Support scoping for .locals

In ilasm/parser:
	Fix bug #494221.
	* ILParser.jay (scope_block_begin): Mark begin .locals scope.
	(scope_block): Mark end .locals scope.

svn path=/trunk/mcs/; revision=132111
2009-04-20 04:07:22 +00:00
Miguel de Icaza 401337e297 2009-04-19 Miguel de Icaza <[email protected]>
* Process.cs: Do not crash if GetProcesses_internal returns null
	This happens on operating systems where we have not implemented

svn path=/trunk/mcs/; revision=132110
2009-04-20 03:57:44 +00:00
Zoltan Varga f549ba4f01 2009-04-20 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Enable ABCREM when running with LLVM.

	* mini-llvm.c (mono_llvm_emit_method): Add support for OP_LOADI4_MEM/
	OP_LOADI8_MEM.

svn path=/trunk/mono/; revision=132106
2009-04-20 02:05:16 +00:00
Zoltan Varga f8c4a9e973 2009-04-20 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add a MONO_LLVM env variable
	allowing some options to be set dynamically.

svn path=/trunk/mono/; revision=132105
2009-04-20 01:35:50 +00:00
Zoltan Varga dd91f74f60 2009-04-19 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Handle compares followed by an
	unconditional branch.

	* mini.h (MonoTrampolineType): Add new trampoline type
	'MONO_TRAMPOLINE_LLVM_VCALL' which handles virtual calls made from LLVM
	compiled code.

	* mini-trampolines.c (mono_llvm_vcall_trampoline): New C trampoline
	function.

	* mini-trampolines.c (mono_create_llvm_vcall_trampoline): New trampoline
	creation function.

	* mini.c (mini_init): Avoid using the common vtable trampoline when LLVM
	is enabled. Instead, use the llvm vcall trampoline.

svn path=/trunk/mono/; revision=132104
2009-04-19 21:36:17 +00:00
Jonathan Pryor ee29be6a86 * Mono.Documentation/webdoc.cs: Change -o semantics to be a directory
prefix, e.g. `mdoc export-html-webdoc -o cache.new foo.tree` will
	  output files into `cache.new/foo` instead of directly into
	  `cache.new`.  This makes it easier to specify more than one
	  .tree/.zip file on the command line.

svn path=/trunk/mcs/; revision=132103
2009-04-19 19:00:10 +00:00
Jonathan Pryor 1dc7fdc1ba * Mono.Options/Options.cs: GetLineEnd() shouldn't skip the start
character, as it may contain '\n' (thus preventing the following text 
	  from being properly indented).
	* Test/Mono.Options/OptionSetTest.cs: Add test to check \n\n 
	  Option.Description handling.

svn path=/trunk/mcs/; revision=132102
2009-04-19 18:35:56 +00:00
Rodrigo Kumpera a942caf979 2009-04-17 Rodrigo Kumpera <[email protected]>
* class.c (can_access_type): Check visibility against
	the element type for pointers and arrays.

	Fixes #496150.

svn path=/trunk/mono/; revision=132101
2009-04-19 18:27:50 +00:00
Rodrigo Kumpera e1cf18869f 2009-04-17 Rodrigo Kumpera <[email protected]>
* class.c (can_access_type): Check visibility against
	the element type for pointers and arrays.

	Fixes #496150.

svn path=/trunk/mono/; revision=132100
2009-04-19 18:27:37 +00:00
Rodrigo Kumpera 09e65367d6 2009-04-17 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Fix cli and table verification to use information
	from the MonoImage. A lot of duplicated code got killed.

svn path=/trunk/mono/; revision=132099
2009-04-19 18:26:16 +00:00
Rodrigo Kumpera f656f0594c 2009-04-17 Rodrigo Kumpera <[email protected]>
This patch starts to integrate the metadata verifier with the runtime code.

	This patch causes major regression in functionality for the metadata verifier
	as cli and table verification are disabled since they require to be ported to
	use MonoImage information.

	* image.c (do_mono_image_load): Split the code in this function
	into mono_image_load_pe_data and mono_image_load_cli_data.
	Add	care_about_pecoff parameter to not load pecoff data.
	Call into the metadata verifier for pecoff and cli verification.

	* image.c (mono_image_open_raw): New function that doesn't perform
	any parsing of the image contents.

	The reason for the 3 new functions is to give pedump better control
	into the interaction with the verifier.

	* metadata-internals.h: Add new functions from image.c as part of the
	internal mono API.

	* metadata-verify.c: Split mono_image_verify into mono_verifier_verify_pe_data,
	mono_verifier_verify_cli_data and mono_verifier_verify_table_data. Prepare
	to make those functions work together with the runtime.

	* verify.c: Add mono_verifier_is_enabled_for_image function that returns
	true if the image needs to be verified.

	* verify-internals.h: Export new functions from metadata-verify.c and verify.c.

	* pedump.c: Use new metadata verifier API.

svn path=/trunk/mono/; revision=132098
2009-04-19 18:25:23 +00:00
Zoltan Varga 617abf83c9 2009-04-19 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_get_vcall_slot_addr): New helper function.

	* mini-trampolines.c tramp-amd64.c tramp-x86.c: Use it.

	* mini-<ARCH>.c: Get rid of the identical mono_arch_get_vcall_slot_addr ()
	functions.

svn path=/trunk/mono/; revision=132097
2009-04-19 18:21:34 +00:00
Zoltan Varga 8db5351b4f 2009-04-19 Zoltan Varga <[email protected]>
* mini-<ARCH>.h mini-trampolines.c mini.c: Get rid of
	MONO_ARCH_COMMON_VTABLE_TRAMPOLINE, it is supported by all archs.

svn path=/trunk/mono/; revision=132096
2009-04-19 18:21:25 +00:00
Zoltan Varga e0ab07d55d Revert "In metadata/"
This reverts commit e2a22d86069b7fa0e63c426303e2822ea201714c.

svn path=/trunk/mono/; revision=132095
2009-04-19 17:48:23 +00:00
Zoltan Varga 087cb54b86 2009-04-19 Zoltan Varga <[email protected]>
* mini-ia64.c (mono_arch_lowering_pass): Null out the sregs of the
	OP_IA64_CSET opcode.

svn path=/trunk/mono/; revision=132093
2009-04-19 12:05:28 +00:00
Zoltan Varga ebcc023ea7 2009-04-19 Zoltan Varga <[email protected]>
* mini.c: Fix a warning.

svn path=/trunk/mono/; revision=132092
2009-04-19 10:55:41 +00:00
Zoltan Varga 2ac7e7c2c6 Add more debug code to help diagnose a buildbot failure.
svn path=/trunk/mono/; revision=132091
2009-04-19 10:40:40 +00:00
Zoltan Varga f63bcce82f Add more debug code to diagnose the buildbot failure.
svn path=/trunk/mono/; revision=132082
2009-04-18 23:35:42 +00:00
Zoltan Varga 3acc0d0035 In metadata/
2009-04-19  Zoltan Varga  <[email protected]>

	* object.c (mono_install_vtable_trampoline): Make this receive a
	trampoline creation function instead of trampoline, allowing the JIT
	to use a different trampoline for each vtable.

In mini/

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

	* mini.c (mini_create_vtable_trampoline): Make this receive a
	vtable argument, not yet used.

svn path=/trunk/mono/; revision=132081
2009-04-18 22:21:55 +00:00
Zoltan Varga d7aac9eaa4 Add some more debug code.
svn path=/trunk/mono/; revision=132080
2009-04-18 22:17:12 +00:00
Zoltan Varga 2236fb13f0 2009-04-19 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Convert arguments of SWITCH and
	THROW to the appropriate llvm type.

svn path=/trunk/mono/; revision=132079
2009-04-18 22:13:07 +00:00
Zoltan Varga 290ea77a90 Add some debug code to help diagnose a buildbot failure.
svn path=/trunk/mono/; revision=132078
2009-04-18 20:59:35 +00:00
Mark Probst 1781fabf10 Don't reset thread abort exception state when raising an exception.
2009-04-18  Mark Probst  <[email protected]>

	* object.c (mono_raise_exception): Don't reset the thread abort
	exception state here.

svn path=/trunk/mono/; revision=132076
2009-04-18 14:25:21 +00:00
Jonathan Pryor ee4bf1106b * Mono.Options/Options.cs: Viktor Lundgren reported that
Option.Description text of `"aaa." . "a" x 64` (that is, "aaa." 
	  followed by 64 "a"s) would cause GetLines() to go into an infinite 
	  loop and (eventually) die from an OutOfMemoryException.  Oops.  
	  Fix this, simplify the logic, and turn GetLines() into an 
	  IEnumerable<string>.
	* Test/Mono.Options/OptionSetTest.cs: Add additional line breaking 
	  tests.  Remove [Category("NotWorking")], as they work for me.

svn path=/trunk/mcs/; revision=132074
2009-04-18 03:31:21 +00:00
Zoltan Varga f24bae90e4 Add some debug code to help diagnose a buildbot failure.
svn path=/trunk/mono/; revision=132073
2009-04-18 02:10:34 +00:00
Zoltan Varga e7f8eba6ac 2009-04-18 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Add statistics for methods JITted
	with/without LLVM.

svn path=/trunk/mono/; revision=132072
2009-04-18 01:22:41 +00:00
Mark Probst 7466b0e42e 2009-04-18 Mark Probst <[email protected]>
* NumberFormatter.cs: Keep the current thread's number formatter
        as a ThreadStatic member.

2009-04-18  Mark Probst  <[email protected]>

        * Thread.cs: Don't keep the current number formatter here
        because it's shared between app domains.

svn path=/trunk/mcs/; revision=132067
2009-04-17 23:32:33 +00:00
Mark Probst 0316477932 2009-04-18 Mark Probst <[email protected]>
* RemotingServices.cs (GetDomainProxy): Make a copy of the array
        created in the other app domain so as not to pollute our own.

svn path=/trunk/mcs/; revision=132066
2009-04-17 23:30:57 +00:00
Miguel de Icaza 01e9954098 2009-04-17 Miguel de Icaza <[email protected]>
* complete.cs: Include namespace resolution in simple names as
	well as global types and types in the using scope in the
	resolution. 

	* namespace.cs: Supporting infrastrcture to provide completions
	based on the current using scope. 



svn path=/trunk/mcs/; revision=132065
2009-04-17 23:20:07 +00:00
Mark Probst cb84eabfc8 Proper app domain separation regarding thread abort exception state.
2009-04-18  Mark Probst  <[email protected]>

        * icall-def.h: New icall for getting the thread abort exception
        state for a thread.

        * object.c, thread.c, object-internals.h: A thread's abort
        exception state is now a GC handle.  To get the object it stands
        for, we must move it into the current app domain, if it's
        different than the one where it originated from.

        * appdomain.c: Bump corlib version.

        * domain.c, domain-internals.h: New function for setting the
        domain and migrate the thread abort exception or not.

2009-04-18  Mark Probst  <[email protected]>

        * appdomain-thread-abort.cs: New tests for thread aborts across
        app domains.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=132064
2009-04-17 23:01:23 +00:00
Mark Probst 88270f8ee7 Proper app domain separation regarding thread abort exception state.
2009-04-18  Mark Probst  <[email protected]>

        * Thread.cs: Make the abort exception state a GC handle, to
        properly separate AppDomains.  Add internal method for getting the
        state object.

        * ThreadAbortException.cs: Get the abort exception state via the
        method in Thread.

2009-04-18  Mark Probst  <[email protected]>

        * Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=132063
2009-04-17 23:01:02 +00:00
Zoltan Varga c8a69dab9a 2009-04-17 Zoltan Varga <[email protected]>
* method-to-ir.c: Fix the computation of ins_sreg_counts for ia64
	OP_IA64_CMP_<cond>_IMM opcodes.

svn path=/trunk/mono/; revision=132058
2009-04-17 21:55:23 +00:00
Zoltan Varga f2495a8ab7 2009-04-17 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_get_static_rgctx_trampoline): Fix AOT
	support.

svn path=/trunk/mono/; revision=132057
2009-04-17 21:55:10 +00:00
Miguel de Icaza 632de6a042 Initial support to provide code completion facilities to consumers
of the evaluator API.
	
	* cs-tokenizer.cs (CompleteOnEOF): this new property is used to
	support the completion engine.   When we reach the end of the
	input stream instead of returning EOF, when this flag is true the
	tokenizer instead produces:

		One GENERATE_COMPLETION token: this token then must be
		handled in the grammar at every point where the user
		would likely request a completion.

		As many COMPLETE_COMPLETION tokens as necessary.   These
		tokens are generated to assist the parser in unwinding and
		producing a valid parse tree.    

	The parser rules do not have to be perfect, the parser needs to be
	augmented with judicious use of GENERATE_COMPLETION tokens to
	improve the areas where we can provide completion and the parser
	needs to add support for COMPLETE_COMPLETION tokens in productions
	to make them work.

	It is common to not have enough support for COMPLETE_COMPLETION
	under certain rules and that even if we generated the
	GENERATE_COMPLETION token that the resulting tree will be invalid
	due to the missing rules that support COMPLETE_COMPLETION.

	The final EOF token is produced by having the parser notify the
	tokenizer when it reaches the root production that the next token
	should be EOF.

	* support.cs (CompletionResult): New Exception.   This exception
	is thrown to return the completion results when one of the special
	completion expressions is reached.

	This exception is thrown by the completing ExpressionStatements
	classes that live in complete.cs

	* complete.cs (CompletingExpression): a new base class for
	completing expressions.   This derives from the
	ExpressionStatement class and not from Expression as it allows
	completion to happen not only where expressions are expected in
	the grammar, but also where statements are expected.

	(CompletionSimpleName): A new class used to provide completions
	for SimpleNames.     This currently only resolves to local
	variables from the evaluator context (GetVars call).

	(CompletionMemberAccess): Implements support for completing member
	access patterns. 

	* cs-parser.jay: Add support for completion in a few places. 

	* eval.cs (GetCompletions): New public API for the evaluator that
	returns a list of possible completions given the input.   The
	return value is an array of completions 

	* anonymous.cs (Compatible): If the exception thrown from the
	resolved expression is a CompletionResult exception let that one
	through instead of printing a diagnostic error in the try/catch. 

svn path=/trunk/mcs/; revision=132052
2009-04-17 21:11:57 +00:00
Miguel de Icaza 75459d5b4d 2009-04-17 Miguel de Icaza <[email protected]>
* Makefile: Make this build using csharplib instead of referencing
	the gmcs.exe that was just built.


svn path=/trunk/mcs/; revision=132051
2009-04-17 21:11:12 +00:00
Zoltan Varga 806432053a 2009-04-17 Zoltan Varga <[email protected]>
* mini-llvm.c (emit_cond_system_exception): Implement throwing of
	corlib exceptions.

svn path=/trunk/mono/; revision=132050
2009-04-17 21:08:56 +00:00
Zoltan Varga b038583ce6 2009-04-17 Zoltan Varga <[email protected]>
* dwarfwriter.c (mono_dwarf_writer_emit_method): Handle --regression
	correctly.

	* mini-llvm.c (type_to_llvm_type): Avoid accessing t->data.klass for
	GENERICINST.

svn path=/trunk/mono/; revision=132045
2009-04-17 20:38:13 +00:00
Atsushi Eno 021f8cf328 2009-04-17 Atsushi Enomoto <[email protected]>
* mini-exceptions.c : add thread id to EXCEPTION trace message.


svn path=/trunk/mono/; revision=132034
2009-04-17 19:10:09 +00:00
Miguel de Icaza f574568932 2009-03-22 Miguel de Icaza <[email protected]>
Initial support to provide code completion facilities to consumers
	of the evaluator API.
	
	* cs-tokenizer.cs (CompleteOnEOF): this new property is used to
	support the completion engine.   When we reach the end of the
	input stream instead of returning EOF, when this flag is true the
	tokenizer instead produces:

		One GENERATE_COMPLETION token: this token then must be
		handled in the grammar at every point where the user
		would likely request a completion.

		As many COMPLETE_COMPLETION tokens as necessary.   These
		tokens are generated to assist the parser in unwinding and
		producing a valid parse tree.    

	The parser rules do not have to be perfect, the parser needs to be
	augmented with judicious use of GENERATE_COMPLETION tokens to
	improve the areas where we can provide completion and the parser
	needs to add support for COMPLETE_COMPLETION tokens in productions
	to make them work.

	It is common to not have enough support for COMPLETE_COMPLETION
	under certain rules and that even if we generated the
	GENERATE_COMPLETION token that the resulting tree will be invalid
	due to the missing rules that support COMPLETE_COMPLETION.

	The final EOF token is produced by having the parser notify the
	tokenizer when it reaches the root production that the next token
	should be EOF.

	* support.cs (CompletionResult): New Exception.   This exception
	is thrown to return the completion results when one of the special
	completion expressions is reached.

	This exception is thrown by the completing ExpressionStatements
	classes that live in complete.cs

	* complete.cs (CompletingExpression): a new base class for
	completing expressions.   This derives from the
	ExpressionStatement class and not from Expression as it allows
	completion to happen not only where expressions are expected in
	the grammar, but also where statements are expected.

	(CompletionSimpleName): A new class used to provide completions
	for SimpleNames.     This currently only resolves to local
	variables from the evaluator context (GetVars call).

	(CompletionMemberAccess): Implements support for completing member
	access patterns. 

	* cs-parser.jay: Add support for completion in a few places. 

	* eval.cs (GetCompletions): New public API for the evaluator that
	returns a list of possible completions given the input.   The
	return value is an array of completions 

	* anonymous.cs (Compatible): If the exception thrown from the
	resolved expression is a CompletionResult exception let that one
	through instead of printing a diagnostic error in the try/catch. 
	


svn path=/trunk/mcs/; revision=132033
2009-04-17 18:35:35 +00:00
Miguel de Icaza bcd1c1e644 Improve documentation
svn path=/trunk/mcs/; revision=132032
2009-04-17 18:24:49 +00:00
Geoff Norton 5d08d5f73f 2009-04-17 Geoff Norton <[email protected]>
* ChannelFactory.cs: Ensure we create and open a factory here,
        avoids a NRE regression in
        System.ServiceModel.ClientRuntimeChannel.SetupRequestChannel ()

svn path=/trunk/mcs/; revision=132023
2009-04-17 17:04:46 +00:00
Miguel de Icaza 1df9c1b824 Update man pages
svn path=/trunk/mono/; revision=132018
2009-04-17 15:50:36 +00:00
Miguel de Icaza c9ba025db8 2009-04-17 Miguel de Icaza <[email protected]>
* repl.cs: Support executing files that were specified in the
	command line. 

2009-04-17  Miguel de Icaza  <[email protected]>

	* eval.cs: Introduce an entry point that allows for initialization
	to return a list of the files passed on the command line.



svn path=/trunk/mcs/; revision=132017
2009-04-17 15:48:51 +00:00
Atsushi Eno bc42f808f3 2009-04-17 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs, ClientRuntimeChannel.cs : implemented
	  CreateFactory() and moved corresponding code from latter to
	  former. Made implementation closer to .NET behavior.


svn path=/trunk/mcs/; revision=132016
2009-04-17 15:08:58 +00:00
Sebastien Pouliot c7952a2e15 2009-04-17 Sebastien Pouliot <[email protected]>
* coreclr-security.cs: Add test case for the "special" case about
	a default ctor being SSC on a transparent type (e.g. WebClient)


svn path=/trunk/mono/; revision=132010
2009-04-17 13:57:54 +00:00
Zoltan Varga a8e21b6664 2009-04-17 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_get_unbox_trampoline): Implement static
	rgctx invoke trampolines for x86.

svn path=/trunk/mono/; revision=131989
2009-04-17 10:17:51 +00:00
Zoltan Varga af5b0d1281 2009-04-17 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_get_unbox_trampoline): Implement static
	rgctx invoke trampolines for x86.

svn path=/trunk/mono/; revision=131988
2009-04-17 10:17:36 +00:00
Zoltan Varga 8ccf0f424f 2009-04-17 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Add a few nops before
	indirect calls to simplify get_vcall_slot_addr (). Fixes #494567.
	(mono_arch_get_vcall_slot): Simplify this.

svn path=/trunk/mono/; revision=131987
2009-04-17 10:11:18 +00:00
Marek Habersack f84da3a92c 2009-04-17 Marek Habersack <[email protected]>
* CSharpCodeCompiler.cs: pass current application's domain
	PrivateBinPath to gmcs using its /lib parameter and put the same
	value in the MONO_PATH environment variable. Fixes bug #493874

svn path=/trunk/mcs/; revision=131983
2009-04-17 09:39:00 +00:00
Marek Habersack 3a9971ab23 2009-04-17 Marek Habersack <[email protected]>
* AspGenerator.cs: if thead/tbody are parsed as children of a
	server-side table control, ignore them. Fixes bug #481622

svn path=/trunk/mcs/; revision=131977
2009-04-17 07:41:09 +00:00
Rodrigo Kumpera 610b32b9b4 2009-04-16 Rodrigo Kumpera <[email protected]>
* assembly-with-complex-type.cs: Add stuff to
	fill constant, field rva and field marshal tables.

	* cli-tables-tests.md: Initial tests for the field table.

	* gen-md-tests.c: Add or-byte and or-ushort effects. Fix
	documentation.

svn path=/trunk/mono/; revision=131963
2009-04-17 02:23:13 +00:00
Rodrigo Kumpera fd8610df44 2009-04-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add initial verification of the
	field table.

svn path=/trunk/mono/; revision=131962
2009-04-17 02:23:00 +00:00
Rodrigo Kumpera 3ba80fbe4f 2009-04-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add a macro to conditionally enable
	dumping of verification information. Add  make_coded_token
	and search_sorted_table to enable search sorted tables
	by a given coded token.

svn path=/trunk/mono/; revision=131961
2009-04-17 02:22:39 +00:00
Rodrigo Kumpera 9909d386a3 2009-04-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add array mapping from table index
	to description offset. Add get_col_offset and get_col_size
	functions.

svn path=/trunk/mono/; revision=131960
2009-04-17 02:22:21 +00:00
Rodrigo Kumpera 741f0d0770 2009-04-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add remaining table descriptions offsets.
	Add remaining coded index descriptions.

svn path=/trunk/mono/; revision=131959
2009-04-17 02:21:56 +00:00
Rodrigo Kumpera 986ac66ef3 2009-04-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Fixed constant table description.
	Fixed calculation of HasCustomAttribute coded index size.
	Fixed calculation of size for many table indexes.

svn path=/trunk/mono/; revision=131958
2009-04-17 02:21:31 +00:00
Rodrigo Kumpera 11904001bd 2009-04-16 Rodrigo Kumpera <[email protected]>
* dump.c: Add dump_table_fieldrva.

	* dump.h: Same.

	* main.c: Add the option to dump the field rva table.

svn path=/trunk/mono/; revision=131957
2009-04-17 02:21:06 +00:00
Rodrigo Kumpera 3b07789940 2009-04-16 Rodrigo Kumpera <[email protected]>
* pedump.c (dump_metadata): Dump table offset instead
	of useless pointer in memory.

svn path=/trunk/mono/; revision=131956
2009-04-17 02:20:54 +00:00
Rodrigo Kumpera 5dee141268 2009-04-16 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for the method list of the typedef table.

svn path=/trunk/mono/; revision=131955
2009-04-17 02:20:31 +00:00
Rodrigo Kumpera fdea08fec7 2009-04-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Add tests for MethodList.

svn path=/trunk/mono/; revision=131954
2009-04-17 02:20:20 +00:00
Jonathan Pryor fd8dba7d2f * Monodoc/man-provider.cs: NEVER return a non-null string from
HelpSource.GetText() unless *useful* content is being returned, as
	  when non-null is returned RootTree.RenderUrl() assumes that the url
	  was handled and won't try any other HelpSources.  In this case, we
	  can (and do) have multiple ManHelpSources present, but since
	  ManHelpSource.GetText() was returning "<html>url was null</html>",
	  RootTree thought it was handled...when it wasn't.  Fix.

svn path=/trunk/mcs/; revision=131934
2009-04-16 20:09:40 +00:00
Jonathan Pryor c8c7416a5c * Mono.Documentation/monodocs2slashdoc.cs: Code refactor; use
EcmaDoc.GetCref() to generate //member/@name values.
	* Mono.Documentation/dump.cs: Add -f=FORMAT support, so that we can
	  load an appropriate HelpSource (if supplied) so that an appropriate
	  Node.PublicUrl can be displayed in the output.

svn path=/trunk/mcs/; revision=131927
2009-04-16 18:59:05 +00:00
Sebastien Pouliot f34ba6ef30 2009-04-16 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Xml.dll.sources: Remove corlib's files since 
	System.Xml can now access, for 2.1 (moonlight) corlib's internals.


svn path=/trunk/mcs/; revision=131926
2009-04-16 18:51:35 +00:00
Sebastien Pouliot b7a50fd104 2009-04-16 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.dll.sources: Remove corlib's files since System
	can now access, for 2.1 (moonlight) corlib's internals.


svn path=/trunk/mcs/; revision=131925
2009-04-16 18:50:47 +00:00
Sebastien Pouliot 19adbea4af 2009-04-16 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: allow System, System.Xml and Mono.
	CompilerServices.SymbolWriter access to mscorlib internals
	for 2.1 (Moonlight) so they can access internalized types
	like non-generic System.Collections


svn path=/trunk/mcs/; revision=131924
2009-04-16 18:48:43 +00:00
Jonathan Pryor fc372b9e8d * Monodoc/provider.cs: Overview: MonoDevelop loads monodoc.dll into
it's own process, and spawns monodoc GUI into a separate process,
	  then sends Node.URL values (obtained from the MonoDevelop process)
	  to load the documentation into the monodoc GUI.  Problem:
	  occasionally the requested documentation isn't loaded, but instead
	  some completely unrelated documentation is shown instead.  This is
	  because the Node.URL value contains HelpSource-dependent data, e.g.
	  a Node.URL value of "ecma:0#Foo/" will specify the 1st file
	  within...whatever HelpSource is first consulted by monodoc (which
	  can vary between monodoc runs, the phase of the moon, etc.).
	  Solution: Add a Node.PublicUrl property which returns _stable_ URLs
	  which aren't specific to a given HelpSource.
	  - Add Node.PublicUrl property, which delegates to
	    Provider.GetPublicUrl(string), so that a Provider can generate a
	    Provider-independent URL (if possible).
	  - Print PublicUrl from Node.PrintTree().
	  - Add RootTree.GetSupportedFormats(), RootTree.GetProvider()
	    methods.
	  - Make RootTree.GetHelpSource() public.
	* Monodoc/ecma-provider.cs: Add EcmaDoc.GetCref() method (generates an
	  XML documentation //see/@cref value), override
	  Provider.GetPublicUrl() (which will return cref's if possible).

svn path=/trunk/mcs/; revision=131923
2009-04-16 18:42:32 +00:00
Geoff Norton 571d214c11 2009-04-16 Geoff Norton <[email protected]>
* ResourceWriter.cs: The magic internal type here is required to match
        Microsofts for SL2 resource deserialization.

svn path=/trunk/mcs/; revision=131919
2009-04-16 17:50:38 +00:00
Zoltan Varga e61848bca9 2009-04-16 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Move the calls to
	mono_debug_add_delegate_trampoline () to get_delegate_invoke_impl ().

svn path=/trunk/mono/; revision=131908
2009-04-16 15:44:11 +00:00
Sebastien Pouliot 52531b6daa In .:
2009-04-16  Sebastien Pouliot  <[email protected]>

	* corlib.dll.sources: Add System.IO.IsolatedStorage/
	MoonIsolatedStorage.cs to the build

In System.IO.IsolatedStorage:
2009-04-16  Sebastien Pouliot  <[email protected]> 

	* MoonIsolatedStorage.cs: New. Manage the shared (location, quota)
	information about Moonlight isolated storage.
	* MoonIsolatedStorageFile.cs: Adjust with new MoonIsolatedStorage.
	Implement IncreaseQuotaTo UI.
	* MoonIsolatedStorageFileStream.cs: Adjust with MoonIsolatedStorage.


svn path=/trunk/mcs/; revision=131903
2009-04-16 15:25:45 +00:00
Atsushi Eno bc211b721b 2009-04-16 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs, ClientBase.cs,
	  ChannelFactory_1.cs :
	  Sort of reverted internal client channel type changes from
	  February, but to work fine in SL2 too. Now ChannelFactory<T>
	  can handle combined interface of IClientChannel and the contract.


svn path=/trunk/mcs/; revision=131899
2009-04-16 14:33:40 +00:00
Sebastien Pouliot 74a8225158 2009-04-16 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Rework the throwing of NIE so gui-compare
	does not report them (since they are the "right" behavior)
	* WebClient_2_1.cs: Fix BaseAddress property to return the URI to 
	the XAP file. Implement protected GetWebRequest which will make an
	absolute URI from a relative one (using BaseAddress). That remove
	the need of the previous hack.
	* WebRequest_2_1.cs: Remove previous hack


svn path=/trunk/mcs/; revision=131897
2009-04-16 14:29:45 +00:00
Sebastien Pouliot b8a69ca467 2009-04-16 Sebastien Pouliot <[email protected]>
* certmgr.cs: Don't throw if we're missing an argument. Fix by
	Romain Tartiere (bug #464765). Updated help to specify that 
	"option type" is mandatory in some cases.


svn path=/trunk/mcs/; revision=131892
2009-04-16 13:01:04 +00:00
Marek Habersack d7fb90cfca 2009-04-16 Marek Habersack <[email protected]>
* HttpContext.cs: local resources code now uses the custom
	resource provider factory, just like the global resources
	code. Fixes bug #493263

2009-04-16  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs:
	AssignPropertyFromResources now checks whether the field/property
	passed to it is decorated with the Localizable custom attribute
	and whether the resource provider contains an entry for that
	property.

svn path=/trunk/mcs/; revision=131888
2009-04-16 12:26:14 +00:00
Sebastien Pouliot 50fb5fadf9 2009-04-16 Sebastien Pouliot <[email protected]>
* IsolatedStorageFile.cs: Fix thread-safety issue at creation time.
	[Fix bug #431039]
	* IsolatedStorageFileStream.cs: Fix missing path check in Verify.
	[Fix bug #487659]


svn path=/trunk/mcs/; revision=131886
2009-04-16 12:03:19 +00:00
Marek Habersack c503734d12 2009-04-16 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: using a regexp to check whether an
	expression is a Bind one. Fixes bug #493639

2009-04-16  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/NoBindForMethodsWithBindInName.aspx

2009-04-16  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #493639

svn path=/trunk/mcs/; revision=131874
2009-04-16 09:51:12 +00:00
Atsushi Eno 80a6bd4091 2009-04-16 Atsushi Enomoto <[email protected]>
* DuplexChannelFactory.cs : a bit of constructor implementation.


svn path=/trunk/mcs/; revision=131872
2009-04-16 09:42:47 +00:00
Stephane Delcroix 913d528025 minor issues in documentation
svn path=/trunk/mcs/; revision=131870
2009-04-16 09:18:28 +00:00
Jonathan Pryor 3ac2bcedbf * Mono.Documentation/webdoc.cs: Remove console debug spew. If you run
with `mdoc -v`, each URL will be printed as it's processed.

svn path=/trunk/mcs/; revision=131858
2009-04-16 03:08:40 +00:00
Rodrigo Kumpera 2dbb10f71a 2009-04-15 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for the field list of the typedef table.

	* assembly-with-complex-type.cs: New assembly source.

	* Makefile: Compile the new assembly source.

svn path=/trunk/mono/; revision=131856
2009-04-16 01:40:02 +00:00
Rodrigo Kumpera b38ed1e991 2009-04-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Add tests for FieldList and
	a missing of for interface types.

svn path=/trunk/mono/; revision=131855
2009-04-16 01:39:52 +00:00
Rodrigo Kumpera 4de386edf6 2009-04-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_pe_optional_header): Add comment of why
	the code is commented.

	* metadata-verify.c (verify_resources_table): Remove spurious printf
	and don't fail if there are unmanaged resources. Gmcs generates a useless
	one	for all assemblies - I bet it's some MS compatibility junk.

svn path=/trunk/mono/; revision=131854
2009-04-16 01:39:36 +00:00
Rodrigo Kumpera 55ad3e4ab9 2009-04-15 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for the extends field of the typedef table.

svn path=/trunk/mono/; revision=131853
2009-04-16 01:39:21 +00:00
Rodrigo Kumpera ef84931a53 2009-04-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Verify the extends field.

	* metadata-verify.c (mono_image_verify): Add a is_corlib.

	* verify-internals.h: Same.

	* pedump.c: Fix for mono_image_verify new signature.

svn path=/trunk/mono/; revision=131852
2009-04-16 01:39:12 +00:00
Rodrigo Kumpera 3656dcab98 2009-04-15 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: More tests for the typedef table.

svn path=/trunk/mono/; revision=131850
2009-04-16 01:38:53 +00:00
Rodrigo Kumpera 46b77f141c 2009-04-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_typedef_table): Verify for some invalid
	flags combinations.

svn path=/trunk/mono/; revision=131849
2009-04-16 01:38:43 +00:00
Rodrigo Kumpera c15d2e1f9a 2009-04-15 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_module_table): Ignore the generation field.

svn path=/trunk/mono/; revision=131848
2009-04-16 01:38:29 +00:00
Rodrigo Kumpera 74f3e47950 2009-04-15 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add the or-uint effect.

svn path=/trunk/mono/; revision=131847
2009-04-16 01:38:14 +00:00
Rodrigo Kumpera 61ee4824ae 2009-04-15 Rodrigo Kumpera <[email protected]>
* data-directory-tests.md:
	* header-tests.md:
	* resources-tests.md: Add comments related to faulty verification
	semantics on MS.

svn path=/trunk/mono/; revision=131846
2009-04-16 01:38:05 +00:00
Jonathan Pryor 960e988920 * Mono.Documentation/webdoc.cs: When extracting files from the .zip
file, ensure that the output file is closed.  Properly pre-render
	  ecma namespace documentation.

svn path=/trunk/mcs/; revision=131845
2009-04-16 00:45:43 +00:00
Jonathan Pryor 3f134c1d5f * Monodoc/ecma-provider.cs: EcmaHelpSource.GetText() doesn't need to
call GetCachedText() twice.

svn path=/trunk/mcs/; revision=131844
2009-04-16 00:41:28 +00:00
Jonathan Pryor 25b54475df * Monodoc/provider.cs: Correct UseWebdocCache logic.
* Monodoc/xhtml-provider.cs: Use GetCachedText().

svn path=/trunk/mcs/; revision=131843
2009-04-16 00:21:29 +00:00
Jonathan Pryor 6b2b2a1f2c * Makefile: Add reference to ICSharpCode.SharpZipLib.dll.
* mdoc.exe.sources: Add Mono.Rocks/ObjectRocks.cs,
	  Mono.Rocks/StreamRocks.cs.
	* Mono.Documentation/webdoc.cs: Refactor into smaller methods.  Extract 
	  ZIP file contents in addition to generating HTML output.  Use
	  monodoc helper methods to determine cache directory.
	* Mono.Documentation/ObjectRocks.cs: Rename to
	  Mono.Rocks/ObjectRocks.cs.
	* Mono.Rocks/ObjectRocks.cs: Add Check.Destination().
	* Mono.Rocks/StreamRocks.cs: Added; extension methods for Streams.

svn path=/trunk/mcs/; revision=131831
2009-04-15 21:12:18 +00:00
Jonathan Pryor 2144484451 * Monodoc/provider.cs: UseWebdocCache is a better name that
IgnoreCache (considering that cache is disabled by default).

svn path=/trunk/mcs/; revision=131829
2009-04-15 21:01:23 +00:00
Jonathan Pryor ae147c161c * Monodoc/provider.cs:
- Add HelpSource.IgnoreCache field, so that if the cache is present 
	    it will be ignored.  (Required by 'mdoc export-html-webdoc' so it 
	    gets "fresh" content to generate the cache, and by monodoc GUI as 
	    it can't use the cache'd HTML; cache'd HTML is for ASP.NET 
	    webdoc only.)
	  - Alter the cache directory from e.g. sources/netdocs to 
	    sources/cache/netdocs (as defined by 
	    XmlDocUtils.GetCacheDirectory()).
	  - Add HelpSource.GetCachedText() method which will return the 
	    contents of the cache for an id.
	* Monodoc/addins-provider.cs, Monodoc/ecma-provider.cs, 
	  Monodoc/error-provider.cs, Monodoc/man-provider.cs, 
	  Monodoc/simple-provider.cs: Use GetCachedText().
	* Mono.Documentation/XmlDocUtils.cs: Add GetCacheDirectory(),
	  GetCacheFileName() methods.

svn path=/trunk/mcs/; revision=131828
2009-04-15 20:59:04 +00:00
Martin Baulig 3bb7dd821d Move 'ISourceFile', 'ICompileUnit' and 'IMethodDef' from MonoSymbolWriter.cs into MonoSymbolFile.cs.
svn path=/trunk/mcs/; revision=131819
2009-04-15 19:34:34 +00:00
Atsushi Eno 08a74ed398 2009-04-15 Atsushi Enomoto <[email protected]>
* XmlMtomDictionaryReader.cs : new.
	* XmlDictionaryReader.cs : implemented CreateMtomReader().

	* System.Runtime.Serialization.dll.sources : added mtom reader.


svn path=/trunk/mcs/; revision=131809
2009-04-15 18:30:49 +00:00
Martin Baulig eb9fc25970 Ignore unknown extended opcodes in the line number table if they're between 0x40 and 0x7f.
2009-04-15  Martin Baulig  <[email protected]>

	* MonoSymbolTable.cs
	(LineNumberTable.DW_LNE_MONO__extensions_start): New const.
	(LineNumberTable.DW_LNE_MONO__extensions_end): New const.
	(LineNumberTable.DoRead): Ignore unknown extended opcodes if
	they're within the Mono extension range.

svn path=/trunk/mcs/; revision=131801
2009-04-15 17:50:49 +00:00
Martin Baulig 91b62657da Don't print a warning for unknown extended opcodes in the line number table if they're between 0x40 and 0x7f.
2009-04-15  Martin Baulig  <[email protected]>

	* debug-mono-symfile.c
	(mono_debug_symfile_lookup_location): Don't print a warning for
	unknown extended opcodes if they're within 0x40 and 0x7f.

svn path=/trunk/mono/; revision=131800
2009-04-15 17:48:06 +00:00
Jonathan Pryor 6b6ce82ef7 * Mono.Documentation/webdoc.cs: The timestamp logic was wrong it the
output directory didn't exist.  Fix.

svn path=/trunk/mcs/; revision=131773
2009-04-15 14:30:49 +00:00
Jonathan Pryor 354af09726 * Mono.Documentation/webdoc.cs: Do as make(1) does: if the
target directory already exists and is newer than the source files, 
	  don't regenerate output.  (Greatly speeds things up if nothing has
	  changed.)  Add a --force-update option to disable this behavior.

svn path=/trunk/mcs/; revision=131770
2009-04-15 13:41:13 +00:00
Marek Habersack c2a841d9f8 2009-04-15 Marek Habersack <[email protected]>
* TemplateParser.cs: use generic lists for import, namespace and
	interface caches. If a namespace is added (e.g. by parsing the
	Import directive), find the assembly in which namespace is
	defined.

2009-04-15  Marek Habersack  <[email protected]>

	* BuildManager.cs: do not add all assemblies in bin/ when serving
	a precompiled site. Fixes bug #493873
	When serving a precompiled site, check if the bin/ directory
	contains certain well-known assemblies and load them if present.

svn path=/trunk/mcs/; revision=131768
2009-04-15 13:32:47 +00:00
Jonathan Pryor fc41476110 * Mono.Documentation/webdoc.cs: Change the default -o value to
include a "cache" intermediate directory.  This makes it easier to
	  kill the entire cache at once.

svn path=/trunk/mcs/; revision=131765
2009-04-15 13:09:33 +00:00
Atsushi Eno a7fcf5ac3c 2009-04-15 Atsushi Enomoto <[email protected]>
* jis.table : regenerated. Fixed bug #491799.

        * I18N.CJK.Test.cs : added test for bug #491799.


svn path=/trunk/mcs/; revision=131758
2009-04-15 11:26:42 +00:00
Atsushi Eno e1a763898c 2009-04-15 Atsushi Enomoto <[email protected]>
* uni2tab.c : don't use obsoleted shiftjis.txt.


svn path=/trunk/mcs/; revision=131755
2009-04-15 11:19:20 +00:00
Atsushi Eno cc94f89953 2009-04-15 Atsushi Enomoto <[email protected]>
* table_from.cs, table_to.cs : fix misuse of indexers (invalid
          code).


svn path=/trunk/mcs/; revision=131754
2009-04-15 11:18:18 +00:00
Marek Habersack 6ccfcecc4d 2009-04-15 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: if a notification is received from a
	FileSystemWatcher which was configured to watch for
	subdirectories, uses a filter (currently we have just one such
	watcher - waiting for changes to '?eb.?onfig') and the event
	doesn't match the filter, ignore the event. Fixes bug #495011

svn path=/trunk/mcs/; revision=131752
2009-04-15 11:11:13 +00:00
Atsushi Eno b93975eaba oops, I happened to commit every pending ones and missed ChangeLog here :(
svn path=/trunk/mcs/; revision=131739
2009-04-15 08:56:38 +00:00
Atsushi Eno d54e48a2c1 2009-04-15 Atsushi Enomoto <[email protected]>
* Expression.cs : extensions could return null and it should be
	  regarded as empty node-set, not an error.


svn path=/trunk/mcs/; revision=131738
2009-04-15 08:54:10 +00:00
Atsushi Eno a7cbc14542 2009-04-15 Atsushi Enomoto <[email protected]>
* ServiceDocument.cs : remove Utility class. It is not precise
	  implementation to write extensions.
	* ServiceDocumentFormatter.cs : virtual extension writer methods
	  should call possibly overriden Write[Element/Attribute]Extensions()
	  in possibly derived document item classes.
	  Implemented LoadElementExtensions().
	* AtomPub10CategoriesDocumentFormatter.cs,
	  AtomPub10ServiceDocumentFormatter.cs : Implemented GetSchema().

	* AtomPub10CategoriesDocumentFormatterTest.cs,
	  AtomPub10ServiceDocumentFormatterTest.cs : aded GetSchema() and
	  WriteElementExtensions() tests.


svn path=/trunk/mcs/; revision=131737
2009-04-15 08:18:12 +00:00
Ankit Jain b5d5cc57c8 Fix bug #494219.
In ilasm/codegen:

	* MethodDef.cs (GetNamedLocalSlot): Return -1 if local var not found.

In ilasm/parser:

	* ILParser.jay (instr): Handle unidentified local var id.

In ilasm/scanner:

	* StringHelper.cs (startIdChars): New. Set of chars that can start an
	identifier.
	(Start): Use startIdChars instead of idchars.

svn path=/trunk/mcs/; revision=131736
2009-04-15 07:56:30 +00:00
Marek Habersack 988d663bae Micro optimization - don't call Page twice
svn path=/trunk/mcs/; revision=131734
2009-04-15 07:19:42 +00:00
Gonzalo Paniagua Javier eec30e3beb 2009-04-15 Gonzalo Paniagua Javier <[email protected]>
* HtmlInputText.cs: make sure we're inside a Page before dereferencing
	it.


svn path=/trunk/mcs/; revision=131730
2009-04-15 05:41:41 +00:00
Jonathan Pryor 2c1b1cc05b * Mono.Documentation/webdoc.cs: Provide nice default -o value.
svn path=/trunk/mcs/; revision=131729
2009-04-15 04:58:07 +00:00
Jonathan Pryor da56b5b701 * Mono.Documentation/webdoc.cs: Load documentation through a
HelpSource, not through the RootTree, as URLs of the form
	  "ecma:0#AvoidExtensionMethodOnSystemObjectRule/" use the number (0
	  in this case) as a HelpSource-relative identifier.  Result: you get
	  the wrong documentation if you go through RootTree.

svn path=/trunk/mcs/; revision=131728
2009-04-15 04:43:40 +00:00
Jonathan Pryor 4e400cb0b2 * Makefile: Add reference to System.Web.dll, for HttpUtility.
* mdoc.exe.sources: Add ObjectRocks.cs, webdoc.cs to the build.
	* Mono.Documentation/mdoc.cs: Add export-html-webdoc command, which
	  "pre-renders" HTML for use by the webdoc ASP.NET renderer.
	* Mono.Documentation/webdoc.cs: Added; MDocExportWebdocHtml
	  implementation; attempts to pre-render HTML based on .tree/.zip
	  file contents.
	* Mono.Documentation/ObjectRocks.cs: Added; extension methods for tree
	  traversal (from Mono.Rocks).  For use in webdoc.cs.

svn path=/trunk/mcs/; revision=131727
2009-04-15 04:19:02 +00:00
Rodrigo Kumpera 4fde95afc8 2009-04-14 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Initial tests for the typedef table.

svn path=/trunk/mono/; revision=131726
2009-04-15 00:40:53 +00:00
Rodrigo Kumpera eec214cfae 2009-04-14 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Initial code to verify the typedef table.

svn path=/trunk/mono/; revision=131725
2009-04-15 00:40:43 +00:00
Zoltan Varga 99e89562a0 2009-04-15 Zoltan Varga <[email protected]>
* runtime-invoke.cs: Add a test for #494847.

svn path=/trunk/mono/; revision=131720
2009-04-14 23:40:33 +00:00
Zoltan Varga df5ff666da 2009-04-15 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke_sig): Don't share runtime
	invoke signatures returning an enum. Fixes #494847.

svn path=/trunk/mono/; revision=131719
2009-04-14 23:40:24 +00:00
Rodrigo Kumpera c33abd0990 2009-04-14 Rodrigo Kumpera <[email protected]>
* valid_br_before_try_block.il: Regression test for #494812.

svn path=/trunk/mono/; revision=131705
2009-04-14 20:16:21 +00:00
Rodrigo Kumpera 3bac8e8e63 2009-04-14 Rodrigo Kumpera <[email protected]>
* verify.c (mono_method_verify): Don't fail if an unconditional branch
	with non empty stack happens before the beginning of a try block.

	Fixes #494812.

svn path=/trunk/mono/; revision=131704
2009-04-14 20:15:59 +00:00
Rodrigo Kumpera 4b18ea3c24 2009-04-14 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: More tests for the typeref table.

svn path=/trunk/mono/; revision=131703
2009-04-14 20:15:38 +00:00
Rodrigo Kumpera 063dee9520 2009-04-14 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify typename and typenamespace fields of
	the typeref table.

svn path=/trunk/mono/; revision=131701
2009-04-14 20:15:18 +00:00
Rodrigo Kumpera 89694115ad 2009-04-13 Rodrigo Kumpera <[email protected]>
* invalid_backward_branch.il: Fix typo.

svn path=/trunk/mono/; revision=131700
2009-04-14 20:14:51 +00:00
Rodrigo Kumpera 2d59a830f1 2009-04-13 Rodrigo Kumpera <[email protected]>
* Makefile: Fix build of gen-md-tests.

	* cli-tables-tests.md: Tests for the typeref table.

svn path=/trunk/mono/; revision=131699
2009-04-14 20:14:28 +00:00
Rodrigo Kumpera d2b12be3c7 2009-04-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Initial code to verify the typeref table.

svn path=/trunk/mono/; revision=131698
2009-04-14 20:14:05 +00:00
Rodrigo Kumpera d51397ff50 2009-04-13 Rodrigo Kumpera <[email protected]>
* verify.c (verify_delegate_compatibility): Fix error message.

svn path=/trunk/mono/; revision=131697
2009-04-14 20:13:33 +00:00
Zoltan Varga dcd5d970fa 2009-04-14 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoClassPrinter.to_string): Add a MonoClass* pretty
	printer.

svn path=/trunk/mono/; revision=131695
2009-04-14 20:07:00 +00:00
Zoltan Varga 8f31ab70c4 2009-04-14 Zoltan Varga <[email protected]>
* aot-compiler.c tramp-arm.c mini-arm.c: Implement static rgctx
	trampolines for ARM. Add full-aot support for delegate invokes for ARM.

svn path=/trunk/mono/; revision=131688
2009-04-14 19:10:14 +00:00
Sebastien Pouliot 49ac5b8642 2009-04-14 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Fix typo


svn path=/trunk/mono/; revision=131683
2009-04-14 17:41:35 +00:00
Sebastien Pouliot a66b7527e9 2009-04-14 Sebastien Pouliot <[email protected]>
* UriTest2.cs: More test cases for the handling of %2f and %5c


svn path=/trunk/mcs/; revision=131682
2009-04-14 17:35:01 +00:00
Sebastien Pouliot 07b5e47468 2009-04-14 Sebastien Pouliot <[email protected]>
* Uri.cs: Fix processing of %2f and %5c in paths. Avoid a few
	computation where the result is not used (overwritten)


svn path=/trunk/mcs/; revision=131681
2009-04-14 17:33:03 +00:00
Jonathan Pryor f134cbcfe4 * Monodoc/provider.cs: Fix NullReferenceException in 'mdoc dump-tree'.
svn path=/trunk/mcs/; revision=131678
2009-04-14 16:03:20 +00:00
Zoltan Varga 1f8ad5a430 2009-04-14 Zoltan Varga <[email protected]>
* marshal.c (delegate_hash_table_add): Make delegate_target_locations
	a MonoGHashTable to keep its values alive.
	(emit_marshal_boolean): Fix a warning.

svn path=/trunk/mono/; revision=131667
2009-04-14 14:24:12 +00:00
Carlos Alberto Cortez 38b5978951 2009-04-14 Carlos Alberto Cortez <[email protected]>
* ThreadExceptionDialog.cs: Draw the error icon, previously missing.
	Fixes #474253.


svn path=/trunk/mcs/; revision=131658
2009-04-14 12:03:28 +00:00
Carlos Alberto Cortez 86cdd137f9 2009-04-14 Carlos Alberto Cortez <[email protected]>
* ContainerControl.cs: Implement support for Control.CausesValidation,
	by adding a pending list of controls to be validated in the top
	container control, and postpone validation as needed. 
	Also remove any control in the validation chain in case it gets removed 
	from its owner before the pending validation actually happens.
	Fixes #457170.


svn path=/trunk/mcs/; revision=131656
2009-04-14 11:15:03 +00:00
Zoltan Varga 711fda3989 2009-04-14 Zoltan Varga <[email protected]>
* marshal.c (mono_delegate_to_ftnptr): Use mono_gc_alloc_fixed () for
	allocating the location holding the this argument to prevent
	'too many root sets' errors.

svn path=/trunk/mono/; revision=131655
2009-04-14 11:06:35 +00:00
Zoltan Varga 03f960ca71 2009-04-14 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_magic_trampoline): Fix the build.

svn path=/trunk/mono/; revision=131654
2009-04-14 11:04:11 +00:00
Marek Safar e0a612c6bc New test.
svn path=/trunk/mcs/; revision=131652
2009-04-14 09:01:16 +00:00
Marek Safar 53edf44fe2 2009-04-14 Marek Safar <[email protected]>
A fix for bug #494243
	* report.cs (SymbolRelatedToPreviousError): Fixed NRE.


svn path=/trunk/mcs/; revision=131651
2009-04-14 09:00:56 +00:00
Gonzalo Paniagua Javier 391d58c925 2009-04-13 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: don't return IPv4/IPv6 addresses if the machine does
	not have any interface configured for IPv4/IPv6.


svn path=/trunk/mono/; revision=131639
2009-04-14 03:36:16 +00:00
Gonzalo Paniagua Javier c70cd495d6 2009-04-13 Gonzalo Paniagua Javier <[email protected]>
* assembly.c: fix typo in error message.


svn path=/trunk/mono/; revision=131638
2009-04-14 03:34:32 +00:00
Zoltan Varga 28f9b0404b .gitignore.
svn path=/trunk/mono/; revision=131626
2009-04-13 22:14:40 +00:00
Zoltan Varga eafe6dc7aa 2009-04-14 Zoltan Varga <[email protected]>
* thread-static.cs: Add a test for accesses through reflection.

svn path=/trunk/mono/; revision=131625
2009-04-13 22:12:28 +00:00
Zoltan Varga 411e40ce85 2009-04-14 Zoltan Varga <[email protected]>
* liveness.c (visit_bb): Remove a needless assert.

svn path=/trunk/mono/; revision=131624
2009-04-13 22:12:21 +00:00
Zoltan Varga 2d9af8e900 2009-04-14 Zoltan Varga <[email protected]>
* object.c (mono_class_create_runtime_vtable): Set field->offset to -1
	to mark fields as special static.
	(mono_field_static_get_value): Handle special static fields.
	(mono_field_static_set_value): Ditto.

	* class-internals.h (struct _MonoClassField): Document this.

svn path=/trunk/mono/; revision=131623
2009-04-13 22:12:14 +00:00
Bill Holmes 977d03c4ce 2009-04-13 Bill Holmes <[email protected]>
* cominterop.c (mono_cominterop_emit_marshal_com_interface): Assigning
	  the argument a value of null for the MARSHAL_ACTION_MANAGED_CONV_OUT
	  case.  This will handle when managed code returns null to native code.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=131622
2009-04-13 21:16:55 +00:00
Bill Holmes 29ec96285f 2009-04-13 Bill Holmes <[email protected]>
* object.c (build_imt_slots): Changing a free to a g_free to match
	  the g_malloc0 in add_imt_builder_entry that allocated this memory.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=131621
2009-04-13 21:07:26 +00:00
Bill Holmes 99fb69be80 2009-04-13 Bill Holmes <[email protected]>
* Makefile.am: Adding marshalbool.cs.

	* libtest.c: Adding native code for marshalbool.cs tests.

	* marshalbool.cs: Adding tests for emit_marshal_boolean.

	Contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=131619
2009-04-13 20:41:07 +00:00
Bill Holmes 8d21b8228e 2009-04-13 Bill Holmes <[email protected]>
* marshal.c (emit_marshal_boolean): Adding code to ensure that
	  the correct TRUE value is passed through the marshaling layer.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=131618
2009-04-13 20:38:45 +00:00
Zoltan Varga a6d3fe6359 2009-04-13 Zoltan Varga <[email protected]>
* pinvoke2.cs: Add a test for #492330.

svn path=/trunk/mono/; revision=131617
2009-04-13 20:08:15 +00:00
Zoltan Varga eebf732e45 2009-04-13 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_emit_managed_wrapper): Handle closed delegates
	correctly. Fixes #492330.

svn path=/trunk/mono/; revision=131616
2009-04-13 20:08:08 +00:00
Zoltan Varga fe4200ee34 2009-04-13 Zoltan Varga <[email protected]>
* marshal.c: Fix the embedding of object pointers into JITted code in
	the native-to-managed wrappers by allocating some GC tracked memory, and
	embedding the address of that.

svn path=/trunk/mono/; revision=131614
2009-04-13 19:51:41 +00:00
Zoltan Varga b9c4ed2c2e 2009-04-13 Zoltan Varga <[email protected]>
* marshal.c: Fix the embedding of object pointers into JITted code in
	the native-to-managed wrappers by allocating some GC tracked memory, and
	embedding the address of that.

svn path=/trunk/mono/; revision=131613
2009-04-13 19:51:32 +00:00
Zoltan Varga 5813deb90e 2009-04-13 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_create_delegate_trampoline): Delegate the
	full aot support to the arch specific code.

	* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Add full-aot support.

	* aot-compiler.c (emit_trampolines): Emit delegate invoke impl trampolines.

	* aot-compiler.c (emit_named_code): Rename this to 'emit_trampoline'.

	* mini-amd64.c (mono_arch_get_delegate_invoke_impls): New function to
	collect information about the delegate invoke impl trampolines.

	* mini.h (MonoAotTrampInfo): New structure collecting the information needed
	to save trampolines during full-aot mode.

svn path=/trunk/mono/; revision=131612
2009-04-13 19:51:19 +00:00
Jonathan Pryor 5ebb3b6c77 * sys-time.c: Properly set the modification time, instead of using the
access time as the modification time.  Fixes #494253.

svn path=/trunk/mono/; revision=131601
2009-04-13 16:44:08 +00:00
Gonzalo Paniagua Javier 78e3cbb1a5 2009-04-13 Gonzalo Paniagua Javier <[email protected]>
* HttpUtility.cs: the collection returned from ParseQueryString knows
	how to convert the key/value pairs to a string.


svn path=/trunk/mcs/; revision=131599
2009-04-13 16:28:20 +00:00
Marek Safar 4783823c8a Better test.
svn path=/trunk/mcs/; revision=131589
2009-04-13 13:19:38 +00:00
Marek Safar 0e23ea4a04 2009-04-13 Marek Safar <[email protected]>
A fix for bug #493887
	* statement.cs: Don't skip string multi-section with default or
	null label when populating string hashtable.


svn path=/trunk/mcs/; revision=131588
2009-04-13 13:19:10 +00:00
Zoltan Varga 2cb5f80d60 2009-04-13 Zoltan Varga <[email protected]>
* configure.in: Quiet 'copying selected object files' messages from
	newer libtool versions as well.

svn path=/trunk/mono/; revision=131570
2009-04-13 11:16:02 +00:00
Zoltan Varga f2e4b1404e 2009-04-13 Zoltan Varga <[email protected]>
* configure.in: Disable AC_PROG_CXX for now to fix the windows build.

	In mono/mini:

	* Makefile.am: Comment out the cpp files as f@#%$ automake complains even
	if they are inside a conditional.

svn path=/trunk/mono/; revision=131565
2009-04-13 09:59:02 +00:00
Zoltan Varga 032d17e6e3 Fix the build.
svn path=/trunk/mono/; revision=131563
2009-04-13 09:43:40 +00:00
Zoltan Varga cb7d2f5212 2009-04-13 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_create_static_rgctx_trampoline): New trampoline
	creation function which returns a trampoline which sets the rgctx
	argument.
	(mono_magic_trampoline): Use the rgctx trampoline instead of an rgctx
	wrapper if possible.
	(mono_delegate_trampoline): Ditto.

	* mini.c (mono_jit_runtime_invoke): Ditto.

	* tramp-amd64.c: Add an implemention of static rgctx trampolines for AMD64.

	* aot-compiler.c aot-runtime.c: Add support for static rgctx trampolines.

	* mini.h (MONO_AOT_FILE_VERSION): Bump this.

svn path=/trunk/mono/; revision=131555
2009-04-12 22:11:36 +00:00
Zoltan Varga e6528844af 2009-04-12 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoMethodPrinter.to_string): Add a MonoMethod* pretty
	printer.

svn path=/trunk/mono/; revision=131553
2009-04-12 21:01:49 +00:00
Gonzalo Paniagua Javier 6ea7633b75 2009-04-12 Gonzalo Paniagua Javier <[email protected]>
* System.Threading/WaitHandle.cs: implemented 2 missing WaitAny overloads.
	* corlib.dll.sources: add GCNotificationStatus.
	* System/GCNotificationStatus.cs: new enum.


svn path=/trunk/mcs/; revision=131542
2009-04-12 14:11:18 +00:00
Zoltan Varga 29dd1b0cf7 2009-04-12 Zoltan Varga <[email protected]>
* mini-ia64.c (mono_arch_lowering_pass): Use NULLIFY_INS instead of
	just setting the opcode to OP_NOP.

svn path=/trunk/mono/; revision=131541
2009-04-12 14:01:42 +00:00
Gonzalo Paniagua Javier 9149539dde update MonoTODO
svn path=/trunk/mcs/; revision=131540
2009-04-12 13:53:48 +00:00
Zoltan Varga 77d7c11eee 2009-04-11 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Put the last change inside an
	#ifdef MONO_ARCH_HAVE_LIVERANGE_OPS.

svn path=/trunk/mono/; revision=131529
2009-04-11 20:39:40 +00:00
Zoltan Varga 12c3006e7f 2009-04-11 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Disable sharing of stack slots/registers
	and extend live ranges to cover the whole method when using xdb.

svn path=/trunk/mono/; revision=131528
2009-04-11 20:37:16 +00:00
Zoltan Varga 4b476e8c24 2009-04-11 Zoltan Varga <[email protected]>
* jit-icalls.c (ldvirtfn_internal): Avoid creating rgctx wrappers here,
	do it in the trampolines.

	* mini-trampolines.c (mono_magic_trampoline): Add an rgctx wrapper if
	needed.

	* mini-trampolines.c (mono_delegate_trampoline): Ditto.

svn path=/trunk/mono/; revision=131527
2009-04-11 19:59:53 +00:00
Sebastien Pouliot 73bdc9ae32 2009-04-11 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: WebClient allows relative URI...
	* WebRequest_2_1.cs: ...while WebRequest does not by default. 
	Also uncomment a few checks for new test cases


svn path=/trunk/mcs/; revision=131518
2009-04-11 16:12:48 +00:00
Zoltan Varga a56ec16cc5 2009-04-11 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Avoid using the fast virtual method
	call code in full-aot mode since IMT is disabled there.
	(mono_method_to_ir): Inline ldfld wrappers which return structures too, the
	new JIT no longer has that restriction.

svn path=/trunk/mono/; revision=131517
2009-04-11 14:34:09 +00:00
Zoltan Varga ba8c51c704 2009-04-11 Zoltan Varga <[email protected]>
* object.c (mono_class_create_runtime_vtable): Avoid putting MonoMethod
	pointers into the vtable.

svn path=/trunk/mono/; revision=131516
2009-04-11 14:34:01 +00:00
Marek Habersack b0ef88b86f 2009-04-11 Marek Habersack <[email protected]>
* UpdatePanel.cs: implemented SingleChildControlCollection to be
	used in CreateControlCollection ().
	RequiresUpdate not only checks the update mode and explicit update
	requests, but also looks if any triggers fired.
	Initialize () initializes triggers only if partial rendering is
	supported by the ScriptManager.
	IsInPartialRendering property no longer returns the value of
	ScriptManager.IsInPartialRendering. Instead, it relies on the
	value of instance field which can be set using new internal
	SetInPartialRendering () method (called from
	ScriptManager.RenderPageCallback ())
	Simplified the logic in RenderChildren ().

	* ScriptManager.cs: no need to register panels for refresh in
	OnPreRenderComplete, this is now done in RenderPageCallback.
	Modified HasBeenRendered () so that it doesn't query whether the
	panel has been explicitly updated by the user, but checks whether
	panel is in the list of panels to refresh.
	RaisePostDataChangedEvent () doesn't update the panel whose id is
	named in the POST request for refresh. This is handled in
	RenderPageCallback.
	Reverted the changes to WriteCallbackPanel and RenderFormCallback
	committed in r129774.
	RenderPageCallback now correctly detects panels to be refreshed
	(and thus included in the async response).

	* AsyncPostBackTrigger.cs, PostBackTrigger.cs: implemented
	HasTriggered ().

svn path=/trunk/mcs/; revision=131511
2009-04-11 13:36:46 +00:00
Sebastien Pouliot c6cc517200 2009-04-11 Sebastien Pouliot <[email protected]>
* DnsEndPoint_2_1.cs: Adjust exceptions wrt unit tests
	* HttpWebRequest_2_1.cs: Fix Headers property wrt unit tests: 
	* WebClient_2_1.cs: Fix some properties
	* WebHeaderCollection_2_1.cs: Adjust exceptions wrt unit tests
	* WebRequest_2_1.cs: Add RegisterPrefix functionality and add
	missing checks (fix unit tests)


svn path=/trunk/mcs/; revision=131507
2009-04-11 13:16:44 +00:00
Zoltan Varga 5cacc5ee48 2009-04-11 Zoltan Varga <[email protected]>
* mini.h (MONO_AOT_FILE_VERSION): Bump this.

	* aot-compiler.c (emit_extra_methods): Emit the wrapper method names in
	a more compact format.
	(mono_aot_wrapper_name): New function to return a unique name for a
	wrapper method, also used by the AOT runtime.

	* aot-runtime.c (find_extra_method_in_amodule): Update after the changes to
	aot-compiler.c.

svn path=/trunk/mono/; revision=131502
2009-04-11 04:48:44 +00:00
Zoltan Varga 409cc50c9c 2009-04-11 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_class): Add the helper methods from T[]
	when a ICollection<T> etc is encountered.
	(add_generic_instances): Process method arguments/locals too.
	(emit_trampolines): Emit unbox trampolines for extra methods too. Shorten
	trampoline names.

	* aot-runtime.c (mono_aot_get_unbox_trampoline): Handle extra methods too.

svn path=/trunk/mono/; revision=131501
2009-04-11 04:47:22 +00:00
Zoltan Varga 04b076d061 2009-04-10 Zoltan Varga <[email protected]>
* aot-compiler.c: Disable the AOT compiler if the JIT is disabled.

svn path=/trunk/mono/; revision=131480
2009-04-10 17:44:25 +00:00
Zoltan Varga 2e7aadd063 2009-04-10 Zoltan Varga <[email protected]>
* mono-gdb.py: Update to the latest archer api.

svn path=/trunk/mono/; revision=131479
2009-04-10 17:44:14 +00:00
Mark Probst 067cc45a87 Test case for invoking a proxy whose server's domain was unloaded.
2009-04-10  Mark Probst  <[email protected]>

        * appdomain-unload.cs: Test for invoking on a proxy whose server
        domain was unloaded.

svn path=/trunk/mono/; revision=131473
2009-04-10 15:00:10 +00:00
Zoltan Varga b5a53bc535 2009-04-10 Zoltan Varga <[email protected]>
* include/private/gc_locks.h (GC_test_and_set): Merge a change from libgc
	7.1's libatomic-ops to fix the ppc build with gcc 4.4.

svn path=/trunk/mono/; revision=131471
2009-04-10 14:32:31 +00:00
Zoltan Varga dbbe281755 2009-04-10 Zoltan Varga <[email protected]>
* ArrayTest.cs: Add a test for ICollection:IsReadOnly on generic arrays.

svn path=/trunk/mcs/; revision=131470
2009-04-10 14:29:01 +00:00
Zoltan Varga 35672d61e1 2009-04-10 Zoltan Varga <[email protected]>
* Array.cs: Make some of the InternalArray methods non-generic to cut down
	on the number of instantiations. Add implementation for
	ICollection:IsReadOnly.

svn path=/trunk/mcs/; revision=131469
2009-04-10 14:28:50 +00:00
Zoltan Varga 0f1c4d4962 2009-04-10 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_type): Emit byref to reference types as 'int' for now.

svn path=/trunk/mono/; revision=131468
2009-04-10 13:18:04 +00:00
Gonzalo Paniagua Javier b06eb40dd7 2009-04-10 Gonzalo Paniagua Javier <[email protected]>
* HttpResponseStream.cs: use the unsafe version when copying buffers.


svn path=/trunk/mcs/; revision=131451
2009-04-10 04:47:18 +00:00
Jonathan Pryor 6166db125b * mdoc-update.1: Document -L, -r options.
svn path=/trunk/mono/; revision=131449
2009-04-10 02:06:01 +00:00
Jonathan Pryor e6e5024d26 * Mono.Documentation/monodocer.cs: Using a single IAssemblyResolver is
an improvement, but doesn't fix all problems.  In particular, some
	  assemblies will depend upon other assemblies to load (e.g. 3rd party
	  assemblies) but these dependent assemblies shouldn't be documented.
	  Add support for -r:ASSEMBLY and -L:DIRECTORY arguments to allow the
	  user to manually add to the assembly search path so that assemblies
	  can be found.  Assemblies added via -r will NOT be documented.

svn path=/trunk/mcs/; revision=131447
2009-04-10 01:49:42 +00:00
Zoltan Varga 25101d5aef 2009-04-10 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_opcode): Make this return a MonoInst*
	representing the result of the decomposition. Nullify instructions
	instead of setting them to OP_NOP since nops can't have registers
	set.

svn path=/trunk/mono/; revision=131445
2009-04-10 00:29:55 +00:00
Rodrigo Kumpera e758fc4a00 2009-04-09 Rodrigo Kumpera <[email protected]>
* valid_delegate_signature_with_generics.cs: Test for the compatibility
	of delegate arguments when a function has a non generic type argument
	and the delegate has a generic one.

svn path=/trunk/mono/; revision=131437
2009-04-09 22:33:02 +00:00
Rodrigo Kumpera be16286219 2009-04-09 Rodrigo Kumpera <[email protected]>
* verify.c (mono_delegate_type_equal): Proper check MONO_TYPE_CLASS.

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

svn path=/trunk/mono/; revision=131436
2009-04-09 22:32:52 +00:00
Zoltan Varga b912364ced 2009-04-09 Zoltan Varga <[email protected]>
* thread6.cs: Fix race added by the last change.

svn path=/trunk/mono/; revision=131424
2009-04-09 20:42:28 +00:00
Bill Holmes 19ebb84311 2009-04-09 Bill Holmes <[email protected]>
* finalizer-abort.cs, finalizer-exception.cs, finalizer-exit.cs :
	  Adding a sleep to the waiting thread to give Mono on Windows an
	  opportunity to interrupt the thread via QueueUserAPC.

	Contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=131423
2009-04-09 20:36:38 +00:00
Zoltan Varga 862fb7023e 2009-04-09 Zoltan Varga <[email protected]>
* Makefile.am: Disable the finalizer tests which only work under sgen.

svn path=/trunk/mono/; revision=131422
2009-04-09 20:16:57 +00:00
Zoltan Varga 8640005975 2009-04-09 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Split this huge function into
	smaller parts. Add 'nodebug' option to prevent generation of DWARF debug
	info. Strip 'mapping symbols' on ARM.

	* iltests.il.in (test_0_fconv_to_i): Disable this on ARM too.

svn path=/trunk/mono/; revision=131421
2009-04-09 19:43:53 +00:00
Carlos Alberto Cortez 55c2581716 2009-04-09 Carlos Alberto Cortez <[email protected]>
* ListBox.cs: The default instance StringFormat field used to draw our
	items should use the StringFormatFlags.NoWrap value, so it doesn't try
	to put in a different line the text that doesn't fit our bounds, but
	show it partially.
	Fixes #475581.


svn path=/trunk/mcs/; revision=131415
2009-04-09 18:33:37 +00:00
Raja R Harinath d8bd02b6dc * reflection.c (my_mono_class_from_mono_type): Remove.
svn path=/trunk/mono/; revision=131414
2009-04-09 18:26:11 +00:00
Raja R Harinath fb00e30e42 Prepare to reduce memory usage of owner-less generic parameters (1/n)
* metadata/class-internals.h (MonoGenericParam): Carve out pklass, name, flags
and constraints fields into ...
(MonoGenericParamInfo): ... this.
(mono_generic_param_info, mono_generic_container_get_param_info): New accessors.
* metadata/{class.c, debug-helpers.c, icall.c}: Update to changes.
* metadata/{metadata.c, reflection.c, verify.c}: Likewise.
* dis/get.c: Use new MonoGenericParamInfo accessors.

svn path=/trunk/mono/; revision=131413
2009-04-09 18:25:49 +00:00
Zoltan Varga 186d828a1c 2009-04-09 Zoltan Varga <[email protected]>
* genmdesc.pl: Applied patch by Martin Fuzzey ([email protected]). Sync
	this with the native genmdesc.

svn path=/trunk/mono/; revision=131412
2009-04-09 18:05:32 +00:00
Jonathan Pryor 68272e87a2 * executable.make, library.make: Move the include for tests.make so
that DISTFILES can be properly set (and thus properly distribute the
	  *_test.dll.sources file).  This allows unit tests to actually build
	  and run when building from the tarball.

svn path=/trunk/mcs/; revision=131409
2009-04-09 17:52:52 +00:00
Rusty Howell 5b83837bcd * Update --help output. Now shows default values
svn path=/trunk/mono/; revision=131406
2009-04-09 16:49:59 +00:00
Carlos Alberto Cortez 06a2bf67e1 2009-04-09 Carlos Alberto Cortez <[email protected]>
* CheckedListbox.cs: When executing OnItemClick check that the index
	is different to -1 before trying to retrieve an item using that value.
	Fixes a ArgumentOutOfRangeException thrown when the horizontal
	scrollbar was visible but not needed, and then a clicked was received
	on its area.


svn path=/trunk/mcs/; revision=131404
2009-04-09 16:40:26 +00:00
Sebastien Pouliot 85fbebbc99 In .:
2009-04-09  Sebastien Pouliot  <[email protected]> 

	* System.Net.dll.sources: Remove some unneeded files for the
	build. Add the SL2 specific enums, instead of using the existing
	ones from System.dll. Include Socket_2_1.cs (from System) and use
	the AssemblyInfo.cs for this assembly

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

	* DnsEndPoint_2_1.cs: Fix header.
	* HttpStatusCode_2_1.cs: New. SL2 (short) version of the enum
	* HttpWebRequest_2_1.cs: Add missing members
	* WebExceptionStatus_2_1.cs: New. SL2 (short) version of the enum
	* WebHeaderCollection_2_1.cs: Implement S.C.IEnumerable


svn path=/trunk/mcs/; revision=131400
2009-04-09 15:52:58 +00:00
Zoltan Varga 9f02df64ad 2009-04-09 Zoltan Varga <[email protected]>
* debug-helpers.c (dis_one): Fix decoding of strings in dynamic images.

svn path=/trunk/mono/; revision=131399
2009-04-09 15:42:20 +00:00
Sebastien Pouliot c3ff040f82 2009-04-09 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Adjust attributes for 2.1


svn path=/trunk/mcs/; revision=131398
2009-04-09 15:35:21 +00:00
Zoltan Varga c47090b0dc 2009-04-09 Zoltan Varga <[email protected]>
* marshal.c (get_runtime_invoke_type): Share enums with their base types.

svn path=/trunk/mono/; revision=131397
2009-04-09 15:31:54 +00:00
Sebastien Pouliot 0d0f61ab9f Remove classes that are not in the final SL2 release. Add some SL2 short-versions of FX enums.
svn path=/trunk/mcs/; revision=131394
2009-04-09 15:22:34 +00:00
Sebastien Pouliot 68dd206d83 In System.Net.Sockets:
2009-04-09  Sebastien Pouliot  <[email protected]>

	* Socket.cs: Split socket class into two files (this one and the
	new Socket_2_1.cs). This let us remove (some) existing #if in the
	sources and avoid (a lot) of new ones for Moonlight.
	* Socket_2_1.cs: Just enough of socket for NET_2_1. This helps
	the tuner not to bring a lot of extra stuff (some visible)
	into Moonlight.
	* SocketAsyncEventArgs.cs: Ifdef out some cases for NET_2_1 so 
	Moonlight can use it's own (smaller) SocketAsyncOperation enum

In .:
2009-04-09  Sebastien Pouliot  <[email protected]>

	* System.dll.sources: Add System.Net.Sockets/Socket_2_1.cs


svn path=/trunk/mcs/; revision=131392
2009-04-09 15:06:42 +00:00
Zoltan Varga 1751e422ff 2009-04-09 Zoltan Varga <[email protected]>
* marshal.c (get_runtime_invoke_type): Share pointers with ints and
	booleans with sbytes.

svn path=/trunk/mono/; revision=131386
2009-04-09 13:45:43 +00:00
Gonzalo Paniagua Javier 085aeed9f4 2009-04-09 Gonzalo Paniagua Javier <[email protected]>
* ecma-provider.cs: remove 'using'.
	* provider.cs: if there's a directory with the base name, read the
	files from there instead of from the .zip file.


svn path=/trunk/mcs/; revision=131376
2009-04-09 05:22:27 +00:00
Rodrigo Kumpera a6d233451f 2009-04-08 Rodrigo Kumpera <[email protected]>
* valid_nested_access_with_multi_array_instance.cs:
	* valid_nested_access_with_array_instance.cs: Regression tests for
	#493068.

svn path=/trunk/mono/; revision=131373
2009-04-09 00:45:20 +00:00
Rodrigo Kumpera 54216914c3 2009-04-08 Rodrigo Kumpera <[email protected]>
* class.c (can_access_instantiation): Verify accesibility of element types
	for arrays and pointers.

	* class.c (can_access_type): Return true if the target class is VAR or MVAR.

	* class.c (mono_method_can_access_method_full): Fix typos in the documentation.

	Fixes #493068.

svn path=/trunk/mono/; revision=131372
2009-04-09 00:45:04 +00:00
Rodrigo Kumpera 28a0aea3c6 2009-04-08 Rodrigo Kumpera <[email protected]>
* verify.c (do_invoke_method): Improve error messages.

svn path=/trunk/mono/; revision=131371
2009-04-09 00:44:49 +00:00
Jonathan Pryor fdc4781276 * Mono.Documentation/monodocer.cs: Use a single IAssemblyResolver
shared amongst all AssemblyDefinitions to resolve assembly/type
	  references with Cecil.  Otherwise, if we have deeply nested
	  directories with cross-directory assembly dependencies, then Cecil
	  won't find the necessary assemblies (e.g. b/bin/Debug/b.dll has a
	  type which inherits from a/bin/Debug/a.dll -- here, we'll have two
	  separate AssemblyDefinitions, and when b.dll's AssemblyDefinition
	  tries to resolve types from a.dll, it fails).
	  See: http://lists.ximian.com/pipermail/mono-devel-list/2009-April/031646.html

svn path=/trunk/mcs/; revision=131370
2009-04-09 00:03:36 +00:00
Jonathan Pryor 43b20cee91 * AssemblyInfo.cs: Building against the local AssemblyInfo.cs broke
sqlmetal, as it couldn't find an IProcessor implementation (as the
	  local AssemblyInfo.cs was missing a [assembly: DbLinq] attribute).
	  Fix so that sqlmetal works again.
	* Makefile: Actually enable NUnit tests.

svn path=/trunk/mcs/; revision=131358
2009-04-08 20:31:14 +00:00
Bill Holmes b6db47a8a9 2009-04-08 Bill Holmes <[email protected]>
* verify.c:  Fixing the MSVC build.

	* aot-runtime.c:  Fixing the MSVC build.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=131356
2009-04-08 20:12:23 +00:00
Bill Holmes 598d0ee0a0 2009-04-08 Bill Holmes <[email protected]>
* libmono.vcproj : Adding mini/mini-gc to the project.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=131355
2009-04-08 20:08:40 +00:00
Jonathan Pryor a5974c2487 * **/* (svn:ignore): Ignore generated files and directories.
* src/**/*: Flush; syncs to DbLinq r1043.

svn path=/trunk/mcs/; revision=131354
2009-04-08 20:07:26 +00:00
Andrés G. Aragoneses fc07b8672b * tuner/Mono.Tuner.csproj:
* linker/Mono.Linker.csproj: Update.

svn path=/trunk/mcs/; revision=131352
2009-04-08 19:42:32 +00:00
Andrés G. Aragoneses e47ecf91aa * tuner/Mono.Tuner.csproj:
* linker/Mono.Linker.csproj: Update.

svn path=/trunk/mcs/; revision=131346
2009-04-08 19:36:25 +00:00
Carlos Alberto Cortez 8092c47ece 2009-04-08 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: If Insert is pressed, change the internal
	overwrite mode for our default value.
	Fixes some bits of #477395.


svn path=/trunk/mcs/; revision=131344
2009-04-08 18:35:01 +00:00
Sebastien Pouliot 8dc7495bbd 2009-04-08 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Simplify get_reflection_caller not to call
	mono_method_get_last_managed (another stack walk) and adjust the
	callers to handle a (should not happen) NULL return value.


svn path=/trunk/mono/; revision=131339
2009-04-08 17:42:08 +00:00
Zoltan Varga 29e8ded9b3 2009-04-08 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Pass i1/i2 arguments as i4 since
	JITted code depends on it.

svn path=/trunk/mono/; revision=131328
2009-04-08 14:53:08 +00:00
Raja R Harinath b196696d61 Add accessors to some MonoGenericParam fields
* dis/get.c: Use new MonoGenericParam accessors.
* metadata/class-internals.h (mono_generic_param_owner): New accessor.
(mono_generic_param_num): Likewise.
(mono_type_get_generic_param_owner): New helper.
(mono_type_get_generic_param_num): New helper.
* metadata/{class.c, icall.c, metadata.c, reflection.c, verify.c}: Use them.
* mini/aot-compiler.c: Use new MonoGenericParam accessors.

svn path=/trunk/mono/; revision=131315
2009-04-08 11:32:16 +00:00
Marek Habersack 251c073ea0 2009-04-08 Marek Habersack <[email protected]>
* ScriptComponentDescriptor.cs: properties/events/references must
	be serialized in alphabetical order. This matches what .NET
	does. Some 3rd party controls depend upon this fact.

svn path=/trunk/mcs/; revision=131314
2009-04-08 11:32:08 +00:00
Raja R Harinath 4c130e355a Reduce memory usage and improve correctness wrt MonoGenericParam
* aot-runtime.c (decode_klass_ref): Simplify generic parameter
handing.  Avoid allocating MonoGenericParams, but use the ones in
the container itself.

svn path=/trunk/mono/; revision=131295
2009-04-08 05:33:06 +00:00
Raja R Harinath 66e02a383a Add a wrapper for MonoGenericContainer.type_params field
* dis/get.c: Use MonoGenericContainer accessor to get the contained
MonoGenericParam.
* metadata/class-internals.h (mono_generic_container_get_param): New wrapper.
* metadata/{class.c, icall.c, metadata.c, verify.c}: Use it.

svn path=/trunk/mono/; revision=131294
2009-04-08 05:32:45 +00:00
Atsushi Eno 96bc4d9560 2009-04-08 Atsushi Enomoto <[email protected]>
* CodeWriter.cs : move into namespace.


svn path=/trunk/mcs/; revision=131285
2009-04-08 04:13:56 +00:00
Atsushi Eno 193b2ab636 2009-04-08 Atsushi Enomoto <[email protected]>
* IdentityElement.cs, NetPeerTcpBindingElement.cs: implemented
	  OnApplyConfiguration().


svn path=/trunk/mcs/; revision=131282
2009-04-08 03:45:57 +00:00
Atsushi Eno 95ba1a6bdb 2009-04-08 Atsushi Enomoto <[email protected]>
* NetTcpBindingTest.cs : fix wrong value expectation.


svn path=/trunk/mcs/; revision=131281
2009-04-08 03:45:22 +00:00
Atsushi Eno 2653dfd944 2009-04-08 Atsushi Enomoto <[email protected]>
* NetPeerTcpBinding.cs : ListenIPAddress is IPAddress here too.


svn path=/trunk/mcs/; revision=131280
2009-04-08 03:44:14 +00:00
Atsushi Eno 05467881a1 2009-04-08 Atsushi Enomoto <[email protected]>
* PeerTransportBindingElement.cs : ListenIPAddress is IPAddress.


svn path=/trunk/mcs/; revision=131279
2009-04-08 03:43:02 +00:00
Atsushi Eno 05189ec264 2009-04-08 Atsushi Enomoto <[email protected]>
* PeerTransportSecuritySettings.cs : new.
	* PeerSecuritySettings.cs : Transport was missing.

	* System.ServiceModel.dll.sources:
	  added PeerTransportSecuritySettings.cs.
	* Makefile: use -r:System.Core in non-2.1 build too.


svn path=/trunk/mcs/; revision=131278
2009-04-08 03:40:15 +00:00
Raja R Harinath 7af86c61db Revert r131263 which caused regressions
svn path=/trunk/mono/; revision=131276
2009-04-08 03:03:17 +00:00
Raja R Harinath 919c57d8b7 Fix gtest-252.cs
* verify.c (mono_type_is_valid_type_in_context): Rewrite to use
the standard case/loop.  In particular, don't complain about
references to generic type definitions.

svn path=/trunk/mono/; revision=131270
2009-04-08 01:50:09 +00:00
Raja R Harinath 21b1508485 update known issues
svn path=/trunk/mcs/; revision=131268
2009-04-08 00:24:14 +00:00
Miguel de Icaza dad6a4160c 2009-04-07 Miguel de Icaza <[email protected]>
* tasklets.c: Return exceptions in the out argument.

svn path=/trunk/mono/; revision=131267
2009-04-07 23:54:59 +00:00
Miguel de Icaza 9171a3ab9c 2009-04-07 Miguel de Icaza <[email protected]>
* Mono.Tasklets/Mono.Tasklets/Continuation.cs: Implement
	IDisposable.

svn path=/trunk/mcs/; revision=131266
2009-04-07 23:43:19 +00:00
Zoltan Varga a50a4f95c0 2009-04-08 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Fix alignment in the LOCALLOC_IMM
	opcode. Use pointer types in more places instead of casting them to
	integers.

	* mini-llvm-cpp.cpp (mono_llvm_create_ee): Create a pass manager to run
	optimizations.
	(mono_llvm_optimize_method): New helper function to optimize a method.

	* method-to-ir.c (mono_emit_widen_call_res): Extract the call result
	widening code so it could be called from more places.
	(mono_method_to_ir): Call mono_emit_widne_call_res () in several more
	code paths in the call opcodes.

svn path=/trunk/mono/; revision=131265
2009-04-07 22:52:38 +00:00
Rodrigo Kumpera def054f2f1 2009-04-07 Rodrigo Kumpera <[email protected]>
* loader.c (method_from_memberref): If ít's a memberref to a typespec inflate
	the signature and search the inflated type.

	We can't blindly search the generic type definition or expect that the signature
	will be inflated as both options can happen. The only solution is to search the
	inflated type against the inflated signature.

	Fixes #492778.

svn path=/trunk/mono/; revision=131263
2009-04-07 22:30:00 +00:00
Miguel de Icaza 0b6b21ada6 Add to the build
svn path=/trunk/mcs/; revision=131262
2009-04-07 22:13:52 +00:00
Zoltan Varga 9bb9f96f12 2009-04-07 Zoltan Varga <[email protected]>
* debug-helpers.c (dis_one): Decode string arguments.

svn path=/trunk/mono/; revision=131261
2009-04-07 21:49:54 +00:00
Zoltan Varga c55806f052 2009-04-07 Zoltan Varga <[email protected]>
* mono-gdb.py (ObjectPrinter.__init__): Update to latest archer api.

svn path=/trunk/mono/; revision=131255
2009-04-07 20:00:13 +00:00
Ankit Jain fd1dd883c0 Fix bug #491828.
* ToolTask.cs (LogEventsFromTextOutput): Log even in case of
unrecognized errors.

svn path=/trunk/mcs/; revision=131250
2009-04-07 19:04:23 +00:00
Ankit Jain 3d1aae67eb Fix bug #487155.
* StringHelper.cs: Handle octal values in strings.
Patch from  Stephen Gennard ([email protected])

svn path=/trunk/mcs/; revision=131249
2009-04-07 18:34:18 +00:00
Paolo Molaro 0cf0bbc5e0 Mon Apr 6 14:19:54 CEST 2009 Paolo Molaro <[email protected]>
* exceptions-amd64.c, mini-amd64.h: amd64 support code for continuations.


svn path=/trunk/mono/; revision=131239
2009-04-07 15:59:02 +00:00
Rodrigo Kumpera c8c14f8fa6 2009-04-07 Rodrigo Kumpera <[email protected]>
* pedump.c (dump_verify_info): Dump type name correctly.

svn path=/trunk/mono/; revision=131235
2009-04-07 15:00:14 +00:00
Rodrigo Kumpera 3591295aef 2009-04-07 Rodrigo Kumpera <[email protected]>
* valid_eh_block_with_no_instructions_after.il: Regression test
	for #492494.

svn path=/trunk/mono/; revision=131234
2009-04-07 14:35:47 +00:00
Rodrigo Kumpera 6173c243c4 2009-04-07 Rodrigo Kumpera <[email protected]>
* verify.c (mono_method_verify): Don't init code slots for exception boundaries if they
	are larger than code size.

	This can happen in valid code if the try/catch block is not followed by any instruction
	and do a backward branch on the leave instruction.

	Fixes #492494.

svn path=/trunk/mono/; revision=131233
2009-04-07 14:35:36 +00:00
Marek Habersack a8532b94ed 2009-04-07 Marek Habersack <[email protected]>
* ScriptComponentDescriptor.cs: new values replace old in
	AddEntry.

svn path=/trunk/mcs/; revision=131225
2009-04-07 13:05:43 +00:00
Atsushi Eno e596ffbe11 2009-04-07 Atsushi Enomoto <[email protected]>
* TcpTransportBindingElement.cs : check build-ability before
	  actually building channels.
	* ConnectionOrientedTransportBindingElement.cs : fixed build-ability
	  conditions according to MSDN.

	* TcpTransportBindingElementTest.cs : more can-build tests.

	* NetTcpBindingTest.cs : new test.

	* System.ServiceModel_test.dll.sources: added NetTcpBindingTest.cs.


svn path=/trunk/mcs/; revision=131222
2009-04-07 12:11:53 +00:00
Atsushi Eno b08e4e6b06 2009-04-07 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : add duplex channels as channel candidates.


svn path=/trunk/mcs/; revision=131221
2009-04-07 12:07:05 +00:00
Atsushi Eno 6503ca01ab added IOnlineStatus.
svn path=/trunk/mcs/; revision=131220
2009-04-07 12:05:46 +00:00
Atsushi Eno ca354a4d73 2009-04-07 Atsushi Enomoto <[email protected]>
* IPeerResolverContract.cs: fix SessionMode value.

	(bah, bad manner; no ChangeLog previously.)

	* CustomPeerResolverServiceTest.cs : added contract check.


svn path=/trunk/mcs/; revision=131219
2009-04-07 12:02:21 +00:00
Raja R Harinath dbf39ce7fb disable nunit tests till they compile
svn path=/trunk/mcs/; revision=131217
2009-04-07 11:10:14 +00:00
Raja R Harinath 1d50386bfb Ensure Test/ exists in dist tarballs and checkouts
svn path=/trunk/mcs/; revision=131216
2009-04-07 11:06:59 +00:00
Marek Habersack 5a503b40b1 2009-04-07 Marek Habersack <[email protected]>
* Control.cs: ApplyTheme - make sure Page is not null before using
	it. Fixes bug #492666

svn path=/trunk/mcs/; revision=131214
2009-04-07 10:56:27 +00:00
Marek Habersack 53b225fc4b 2009-04-07 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: GenerateExpressionFromString doesn't
	assume that the passed member is a property anymore. Fixes bug
	#492252

svn path=/trunk/mcs/; revision=131210
2009-04-07 10:44:56 +00:00
Atsushi Eno b4731ac3cc 2009-04-07 Atsushi Enomoto <[email protected]>
* XmlDictionaryReaderQuotasElement.cs, NetTcpBindingElement.cs:
	  implement OnApplyConfiguration().


svn path=/trunk/mcs/; revision=131202
2009-04-07 08:57:40 +00:00
Marek Habersack 8791646ca9 Code formatting
svn path=/trunk/mcs/; revision=131201
2009-04-07 08:44:21 +00:00
Marek Habersack a8ecbec688 2009-04-07 Marek Habersack <[email protected]>
* TreeView.js: removed nodeText parameter from the JS calls.

	* TreeView.cs: encode | characters into U+007C, so that
	RaiseCallbackEvent doesn't get confused.
	Removed nodeText parameter from the JS calls.

svn path=/trunk/mcs/; revision=131196
2009-04-07 07:05:06 +00:00
Gonzalo Paniagua Javier 6b9583ba66 2009-04-07 Gonzalo Paniagua Javier <[email protected]>
* ClientProxyHandler.cs: set cacheability to public.


svn path=/trunk/mcs/; revision=131195
2009-04-07 06:56:55 +00:00
Gonzalo Paniagua Javier 1b8ce0ac74 remove CWL
svn path=/trunk/mcs/; revision=131187
2009-04-07 03:38:57 +00:00
Gonzalo Paniagua Javier de03d6a600 2009-04-06 Gonzalo Paniagua Javier <[email protected]>
* TreeNode.cs: reset the path data for all child nodes too.
	* TreeView.cs: HtmlAttribute encode the node text. When rebuilding the
	node tree, set the correct index for the nodes so that the Path is
	correct.


svn path=/trunk/mcs/; revision=131186
2009-04-07 03:38:00 +00:00
Jonathan Pryor 5b34835c42 * . (svn:ignore): Ignore generated files.
* AssemblyInfo.cs: Added; Assembly-level attributes for sqlmetal.exe.
	* Makefile: Correct the "namespace" of the embedded resource files;
	  build NUnit tests for sqlmetal.exe.
	* sqlmetal.exe.sources: Build against the local AssemblyInfo.cs, not
	  DbMetal's AssemblyInfo.cs file.
	* sqlmetal_test.dll.sources: Added; source files for the NUnit test.
	* Test/AssemblyInfo.cs: Added; Assembly-level attributes for the NUnit
	  test assembly.

svn path=/trunk/mcs/; revision=131184
2009-04-07 01:23:14 +00:00
Gonzalo Paniagua Javier 5159f09ae4 2009-04-06 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: send REST after PASV to avoid some servers
	forgetting aboout it.
	Bug #491590 fixed.


svn path=/trunk/mcs/; revision=131180
2009-04-07 00:05:35 +00:00
Rodrigo Kumpera cbb555bb88 2009-04-06 Rodrigo Kumpera <[email protected]>
* unverifiable_throw_with_unboxed_generic_argument.il: Regression test
	for #487738.

svn path=/trunk/mono/; revision=131175
2009-04-06 22:54:50 +00:00
Rodrigo Kumpera 1db0ab83ff 2009-04-06 Rodrigo Kumpera <[email protected]>
* verify.c (do_throw): Don't allow an unboxed generic param ar argument.

	Fixes #487738.

svn path=/trunk/mono/; revision=131174
2009-04-06 22:54:34 +00:00
Gonzalo Paniagua Javier 56ee8f4fb5 Contribute
svn path=/trunk/mcs/; revision=131166
2009-04-06 21:41:57 +00:00
Carlos Alberto Cortez 5bb916f237 2009-04-06 Carlos Alberto Cortez <[email protected]>
* ListView.cs: In EnsureVisible avoid any direct access to items if we
	are using virtual mode - otherwise use the bounds stored in a specific
	item in a given index. This is specially important when using groups
	or when items are re-arranged, since the position in the items
	collection can be different than that one being displayed.
	Fixes the rest of ##491978.


svn path=/trunk/mcs/; revision=131163
2009-04-06 21:08:30 +00:00
Sebastien Pouliot 5974be4cc0 2009-04-06 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Remove AllowPartiallyTrustedCallers from NET_2_1
	build (not in SL2) and open our internals to System.Xml.Serialization
	(only in NET_2_1) since MS SL2 SDK requires it.	Test case @
	http://demos.devexpress.com/AgDataGridDemos/


svn path=/trunk/mcs/; revision=131162
2009-04-06 20:53:24 +00:00
Zoltan Varga 9fff2d12d7 2009-04-06 Zoltan Varga <[email protected]>
* test-xdb.py: New file, tester script for xdb.

svn path=/trunk/mono/; revision=131161
2009-04-06 20:52:45 +00:00
Zoltan Varga d526d18756 2009-04-06 Zoltan Varga <[email protected]>
* mono-gdb.py (stringify_class_name): Handle classes without a namespace
	correctly.

svn path=/trunk/mono/; revision=131160
2009-04-06 20:52:39 +00:00
Zoltan Varga f457b9ab02 Add .so files generated by AOT.
svn path=/trunk/mono/; revision=131159
2009-04-06 20:44:24 +00:00
Zoltan Varga ffd56e6434 2009-04-06 Zoltan Varga <[email protected]>
* mono-gdb.py: Update after the changes to dwarfwriter.c.

svn path=/trunk/mono/; revision=131158
2009-04-06 20:42:42 +00:00
Zoltan Varga 89c0ea6ce4 2009-04-06 Zoltan Varga <[email protected]>
* dwarfwriter.c: Use _ to separate class name
	components as gdb can't handle '.'. Represent reference variables
	as 'class <NAME>&'.

svn path=/trunk/mono/; revision=131157
2009-04-06 20:42:33 +00:00
Jonathan Pryor bbed2cf5d2 * mdoc.5: Document //code/@src attribute.
svn path=/trunk/mono/; revision=131156
2009-04-06 20:36:21 +00:00
Sebastien Pouliot e16cb8005d 2009-04-06 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Fix typo while comparing second method names
	in can_avoid_corlib_reflection_delegate_optimization


svn path=/trunk/mono/; revision=131152
2009-04-06 19:53:11 +00:00
Rodrigo Kumpera 9d79b22498 2009-04-06 Rodrigo Kumpera <[email protected]>
* metadata.c (do_mono_metadata_parse_type): Fail if we are decoding
	a MVAR using a class context.

	Fixes #490335.

svn path=/trunk/mono/; revision=131149
2009-04-06 19:43:07 +00:00
Carlos Alberto Cortez 68cb16acfc 2009-04-06 Carlos Alberto Cortez <[email protected]>
* ThemeWin32Classic.cs: Include the previous check for ListView in a
	2.0 define as needed.


svn path=/trunk/mcs/; revision=131148
2009-04-06 19:42:07 +00:00
Carlos Alberto Cortez af2522db47 2009-04-06 Carlos Alberto Cortez <[email protected]>
* ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
	Fixes part of #491978.


svn path=/trunk/mcs/; revision=131145
2009-04-06 18:48:59 +00:00
Carlos Alberto Cortez 348074abaf 2009-04-06 Carlos Alberto Cortez <[email protected]>
* ToolTip.cs: New fields to store the title/icon information.
	* ThemeWin32Classic.cs: Implement support for tooltip's title and
	icon.
	Fixes #491978.


svn path=/trunk/mcs/; revision=131143
2009-04-06 18:26:24 +00:00
Marek Habersack b31a989a87 2009-04-06 Marek Habersack <[email protected]>
* BuildManager.cs: make sure that precompiled is not null before
	using it in GetPrecompiledType.

svn path=/trunk/mcs/; revision=131138
2009-04-06 18:03:04 +00:00
Marek Habersack 6026f7a60a 2009-04-06 Marek Habersack <[email protected]>
* HttpRuntime.cs: added a new internal static property
	IsDebuggingEnabled

	* HttpContext.cs: IsDebuggingEnabled now calls
	HttpRuntime.IsDebuggingEnabled

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

	* Page.cs: ProcessRaiseCallbackEvent and ProcessGetCallbackResult
	now return full exception trace if one is caught and we're running
	in debugging mode.

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

	* TreeView.js: TreeView_ToggleExpand now takes more parameters - a
	full definition of treeview's node contents.
	Added new function, TreeView_PopulateNode, which partially takes
	over role of the PopulateNode function generated in
	TreeView.OnPreRender (see below). Fixes bug #492307

	* TreeView.cs: RaiseCallbackEvent needs to recreate the event
	target's parental tree all the way from the root to the node and
	populate only the leaf (requested) node. This avoids calling the
	TreeNodePopulate handler more times than needed. Fixes bug #492307
	OnPreRender: moved the script code to constants and the script
	body is now generated using StringBuilder instead of a series of
	String.Format calls.
	GetClientExpandEvent: adjusted code for new TreeView JavaScript
	API.

svn path=/trunk/mcs/; revision=131137
2009-04-06 18:02:20 +00:00
Atsushi Eno 7dd3ce9331 2009-04-06 Atsushi Enomoto <[email protected]>
* ServiceDocumentFormatter.cs
	  Workspace.cs
	  Atom10FeedFormatter.cs
	  AtomPub10ServiceDocumentFormatter.cs
	  ResourceCollectionInfo.cs
	  CategoriesDocument.cs
	  ServiceDocument.cs : implemented most of reader parts.

	* AtomPub10ServiceDocumentFormatterTest.cs : add ReadFrom() test.


svn path=/trunk/mcs/; revision=131133
2009-04-06 16:43:50 +00:00
Zoltan Varga 847648a2ce 2009-04-06 Zoltan Varga <[email protected]>
* object.c (mono_class_compute_gc_descriptor): Make this non-static.

	* domain-internals.h (struct _MonoJitInfo): Add a 'gc_info' field.

	* gc-internal.h (MonoGCCallbacks): New stucture containing the callback
	functions supplied by the JIT for the SGEN GC.

	* sgen-gc.c: Call the callbacks supplied by the JIT to do stack marking.

svn path=/trunk/mono/; revision=131132
2009-04-06 15:28:03 +00:00
Zoltan Varga 02547ee785 2009-04-06 Zoltan Varga <[email protected]>
* mini.h (MonoCompile): Add locals_min_stack_offset/locals_max_stack_offset.

	* mini-amd64.c (mono_arch_allocate_vars): Save min/max stack offset.
	
	* mini-gc.c: New file, contains the SGEN GC related parts of the JIT.

	* gc-test.cs: New file with GC stack marking tests.

svn path=/trunk/mono/; revision=131131
2009-04-06 15:24:48 +00:00
Zoltan Varga 9808b5eefc 2009-04-06 Zoltan Varga <[email protected]>
* mini.h (MonoCompile): Add locals_min_stack_offset/locals_max_stack_offset.

	* mini-amd64.c (mono_arch_allocate_vars): Save min/max stack offset.
	
	* mini-gc.c: New file, contains the SGEN GC related parts of the JIT.

	* gc-test.cs: New file with GC stack marking tests.

svn path=/trunk/mono/; revision=131130
2009-04-06 15:24:35 +00:00
Zoltan Varga 9897125f96 2009-04-06 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_output_basic_block): Fix int->float conversion of
	negative numbers for vfp.

	* basic-float.cs: Add a test.

svn path=/trunk/mono/; revision=131127
2009-04-06 15:14:46 +00:00
Zoltan Varga 05dc29d30a 2009-04-06 Zoltan Varga <[email protected]>
* arm/arm-vfp-codegen.h: Add ARM_FSITOS/ARM_FSITOD.

svn path=/trunk/mono/; revision=131125
2009-04-06 15:09:57 +00:00
Massimiliano Mantione ac8634ec12 Added monitor contention profiling.
svn path=/trunk/mono/; revision=131123
2009-04-06 13:37:32 +00:00
Massimiliano Mantione c7300cb77c Added calls to profile monitor contentions.
svn path=/trunk/mono/; revision=131122
2009-04-06 13:37:26 +00:00
Massimiliano Mantione 9bb7237fe7 Added support for profiling monitor contentions.
svn path=/trunk/mono/; revision=131121
2009-04-06 13:37:14 +00:00
Paolo Molaro 123970fb9f Mon Apr 6 14:37:32 CEST 2009 Paolo Molaro <[email protected]>
* Makefile, Mono.Tasklets: managed part of continuation support.


svn path=/trunk/mcs/; revision=131112
2009-04-06 12:38:44 +00:00
Atsushi Eno b3852bc8a5 2009-04-06 Atsushi Enomoto <[email protected]>
* Workspace.cs, ResourceCollectionInfo.cs,
	  CategoriesDocument.cs, ServiceDocument.cs : use common internal
	  SyndicationExtension class for extensions.


svn path=/trunk/mcs/; revision=131111
2009-04-06 12:37:50 +00:00
Paolo Molaro 5fd393035d Mon Apr 6 14:12:10 CEST 2009 Paolo Molaro <[email protected]>
* exceptions-x86.c, mini-x86.h: x86 support code for continuations.


svn path=/trunk/mono/; revision=131110
2009-04-06 12:13:24 +00:00
Paolo Molaro 0be4b9d8f7 Mon Apr 6 14:09:53 CEST 2009 Paolo Molaro <[email protected]>
* tasklets.h, tasklets.c, mini.h, mini.c, Makefile.am: arch-indep
	part of tasklet/continuation support.


svn path=/trunk/mono/; revision=131109
2009-04-06 12:12:28 +00:00
Atsushi Eno 3d7552a35f 2009-04-06 Atsushi Enomoto <[email protected]>
* AtomPub10CategoriesDocumentFormatter.cs, Atom10FeedFormatter.cs,
	  CategoriesDocument.cs : ongoing implementation (handle categories).

	* AtomPub10CategoriesDocumentFormatterTest.cs : new test.
	* AtomPub10ServiceDocumentFormatterTest.cs : add reader tests.

	* System.ServiceModel.Web_test.dll.sources : added
	  AtomPub10CategoriesDocumentFormatterTest.


svn path=/trunk/mcs/; revision=131105
2009-04-06 10:37:45 +00:00
Marek Safar d51d6de1a7 New tests.
svn path=/trunk/mcs/; revision=131104
2009-04-06 10:36:12 +00:00
Marek Safar bdd0072aee 2009-04-06 Marek Safar <[email protected]>
A fix for bug #492329
	* expression.cs (New): Load variable when assigning type parameter
	to ref variable.


svn path=/trunk/mcs/; revision=131102
2009-04-06 10:35:45 +00:00
Marek Safar 112be08211 2009-04-06 Marek Safar <[email protected]>
A fix for bug #488960
	* decl.cs: Compare MVAR types using non-null values.


svn path=/trunk/mcs/; revision=131098
2009-04-06 09:04:19 +00:00
Miguel de Icaza 78d06c6587 2009-04-05 Miguel de Icaza <[email protected]>
* src/gpath.c: Avoid situations where we add the separator if one
	of the elements is the separator.

svn path=/trunk/mono/; revision=131083
2009-04-06 00:11:54 +00:00
Jonathan Pryor fe78acafcb * executable.make: Support HAS_NUNIT_TEST variable; if set, will build
an NUnit test assembly during 'make test' and will run the tests
	  within the NUnit test assembly during 'make run-test'.
	* library.make: Split out NUnit test rules/logic into tests.make.
	* Makefile: Distribute tests.make.
	* README.makefiles: Document HAS_NUNIT_TEST for executable.make,
	  documenting how to have NUnit tests for executables.
	* tests.make: Added; NUnit test logic rules.

svn path=/trunk/mcs/; revision=131072
2009-04-05 13:33:36 +00:00
Zoltan Varga a01bd7e478 2009-04-05 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Move the handling of
	amd64 opcodes inside an ifdef.

svn path=/trunk/mono/; revision=131068
2009-04-05 11:44:02 +00:00
Zoltan Varga 5a29ed094d 2009-04-04 Zoltan Varga <[email protected]>
* mini-llvm-cpp.h: New header file for mini-llvm-cpp.cpp.

svn path=/trunk/mono/; revision=131067
2009-04-05 11:39:19 +00:00
Zoltan Varga c185e1b4ef 2009-04-05 Zoltan Varga <[email protected]>
* mono-gdb.py: Handle superclasses in the pretty printer.

svn path=/trunk/mono/; revision=131063
2009-04-05 00:28:01 +00:00
Zoltan Varga a9fdac157f 2009-04-05 Zoltan Varga <[email protected]>
* dwarfwriter.c: Emit inheritance information for classes, emit fields
	of complex types.

svn path=/trunk/mono/; revision=131061
2009-04-05 00:27:55 +00:00
Zoltan Varga 2a707a2b94 2009-04-05 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_type): Emit the class info for classes.

svn path=/trunk/mono/; revision=131060
2009-04-04 23:57:27 +00:00
Gonzalo Paniagua Javier 69a764bab3 fix the 1.1 build
svn path=/trunk/mcs/; revision=131056
2009-04-04 20:30:28 +00:00
Gonzalo Paniagua Javier 6ab8340897 2009-04-04 Gonzalo Paniagua Javier <[email protected]>
* AssemblyResourceLoader.cs: MS sets cacheability to public. Add
	Last-Modified header and return 304 if validating max-age=0 or
	If-Modified-Since succeeds.


svn path=/trunk/mcs/; revision=131053
2009-04-04 19:53:26 +00:00
Miguel de Icaza 2462ce6dd4 2009-04-03 Miguel de Icaza <[email protected]>
* mono-filemap.c: Move mono_file_unmap for the not-mmap case to
	the mono-filemap.c file so it can be plugged in platform-specific
	code as well. 

svn path=/trunk/mono/; revision=131031
2009-04-03 23:26:35 +00:00
Rodrigo Kumpera 7695f4e618 2009-04-03 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Fix table offset calculation.

	* cli-tables-tests.md: Add more tests for the module table.

svn path=/trunk/mono/; revision=131027
2009-04-03 22:27:03 +00:00
Rodrigo Kumpera 1487d371b3 2009-04-03 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the modules table.

svn path=/trunk/mono/; revision=131026
2009-04-03 22:26:50 +00:00
Rodrigo Kumpera c98cbbadf5 2009-04-03 Rodrigo Kumpera <[email protected]>
* strenc.h:
	* strenc.c: Add mono_utf8_validate_and_len_with_bounds.

svn path=/trunk/mono/; revision=131025
2009-04-03 22:26:38 +00:00
Zoltan Varga cc66aca9e7 2009-04-04 Zoltan Varga <[email protected]>
* Makefile.am (AM_CXXFLAGS): Add GLIB_CFLAGS to this.

	* mini-llvm-cpp.h: New header file for mini-llvm-cpp.cpp.

	* mini-llvm.c: Remove unused fields from EmitContext, fix memory leaks.

svn path=/trunk/mono/; revision=131024
2009-04-03 22:24:29 +00:00
Zoltan Varga b74cae6b7d 2009-04-04 Zoltan Varga <[email protected]>
* ssa.c (mono_ssa_compute): Fix some memory leaks.

svn path=/trunk/mono/; revision=131023
2009-04-03 22:24:16 +00:00
Andrés G. Aragoneses a783dc62d6 oops
svn path=/trunk/mono/; revision=131020
2009-04-03 21:55:50 +00:00
Andrés G. Aragoneses 9e9f4d421c 2009-04-03 Andrés G. Aragoneses <[email protected]>
* monolinker.1: Document -m modifier.


svn path=/trunk/mono/; revision=131017
2009-04-03 21:42:37 +00:00
Andrés G. Aragoneses 966c5ee902 2009-04-03 Andrés G. Aragoneses <[email protected]>
* Mono.Tuner/InjectSecurityAttributes.cs: Show a warning
	when the secattr file is not found.


svn path=/trunk/mcs/; revision=131014
2009-04-03 21:15:08 +00:00
Gert Driesen cdf08abc9d * HttpRuntime.cs: Avoid ANE on Windows when HttpRuntime is used
outside of ASP.NET. Fixed compiler warning by setting
assemblyMappingEnabled.

svn path=/trunk/mcs/; revision=131007
2009-04-03 19:37:23 +00:00
Atsushi Eno 44bbb1719b 2009-04-03 Atsushi Enomoto <[email protected]>
* ServiceDocumentFormatter.cs
	  Workspace.cs
	  AtomPub10ServiceDocumentFormatter.cs
	  ResourceCollectionInfo.cs
	  CategoriesDocument.cs
	  ServiceDocument.cs : ongoing implementation.

	* System.ServiceModel.Web_test.dll.sources : added
	  ServiceDocumentTest and AtomPub10ServiceDocumentFormatterTest.


svn path=/trunk/mcs/; revision=130991
2009-04-03 17:35:11 +00:00
Marek Habersack 36b91af2a3 2009-04-03 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: don't throw NREX when the passed type
	doesn't have a parameterless constructor in
	ShouldGenerateScript. Fixes bug #485435

svn path=/trunk/mcs/; revision=130982
2009-04-03 16:38:25 +00:00
Marek Habersack 6621e0b2f2 2009-04-03 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: CustomValidatorEvaluateIsValid calls the
	client-side evaluation function even if ControlToValidate is not
	set. Fixes bug #485458

svn path=/trunk/mcs/; revision=130979
2009-04-03 16:02:03 +00:00
Marek Habersack ca5554b9ec 2009-04-03 Marek Habersack <[email protected]>
* SessionSQLServerHandler.cs: recreate connection after database
	became unavailable but the session handler is still alive. Fixes
	bug #491508. Patch from Hubert Fongarnand
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=130972
2009-04-03 14:49:12 +00:00
Marek Habersack 505ca45601 2009-04-03 Marek Habersack <[email protected]>
* AspParser.cs: local copy of checksum generated by the tokenizer
	is made right after parsing is done.

	* AspGenerator.cs: set tparser.MD5Checksum in Parse instead of in
	InitParser. Avoids empty checksums in #pragma checksum.

svn path=/trunk/mcs/; revision=130971
2009-04-03 14:34:36 +00:00
Zoltan Varga 853c9573cd 2009-04-03 Zoltan Varga <[email protected]>
* mini.c mini-amd64.c method-to-ir.c: Use COMPILE_LLVM in a few more places.

	* mini-llvm.c: Update comments.

svn path=/trunk/mono/; revision=130969
2009-04-03 14:16:58 +00:00
Zoltan Varga 3052156660 2009-04-03 Zoltan Varga <[email protected]>
* mini.h (COMPILE_LLVM): New macro.

	* decompose.c (mono_decompose_opcode): Use the COMPILE_LLVM macro.

	* ssa.c (mono_ssa_compute): Ditto.

	* unwind.c (mono_unwind_get_ops_from_fde): New helper function to extract
	the unwind ops from a DWARF FDE.

	* mini-llvm.c: Implement generation of unwind info for LLVM compiled
	methods by extracting the dwarf unwind ops from the unwind info generated
	by LLVM.

svn path=/trunk/mono/; revision=130967
2009-04-03 14:06:27 +00:00
Jb Evain 757dbaa5f4 2009-04-03 Jb Evain <[email protected]>
* EnumerableTest.cs: test for bug 491841.


svn path=/trunk/mcs/; revision=130963
2009-04-03 10:58:05 +00:00
Jb Evain db2a0eb2fb 2009-04-03 Jb Evain <[email protected]>
* Enumerable.cs (Cast): fix for when casted enumerator is already
	of the appropriate type.


svn path=/trunk/mcs/; revision=130961
2009-04-03 10:48:28 +00:00
Zoltan Varga 556928a589 2009-04-03 Zoltan Varga <[email protected]>
* scripts/patch-quiet.sh: Process LTCXXCOMPILE too.

svn path=/trunk/mono/; revision=130958
2009-04-03 09:59:44 +00:00
Atsushi Eno dedaea465d add MIT lines.
svn path=/trunk/mcs/; revision=130955
2009-04-03 09:23:11 +00:00
Atsushi Eno 65d54b9889 2009-04-03 Atsushi Enomoto <[email protected]>
* ServiceDocumentFormatter.cs
	  InlineCategoriesDocument.cs
	  AtomPub10ServiceDocumentFormatter_1.cs
	  Workspace.cs
	  AtomPub10CategoriesDocumentFormatter.cs
	  ReferencedCategoriesDocument.cs
	  CategoriesDocumentFormatter.cs
	  AtomPub10ServiceDocumentFormatter.cs
	  ResourceCollectionInfo.cs
	  CategoriesDocument.cs
	  ServiceDocument.cs : stubs (new in 3.5 SP1).

	* System.ServiceModel.Web.dll.sources : added 3.5 SP1 atompp stuff.


svn path=/trunk/mcs/; revision=130946
2009-04-03 08:20:01 +00:00
Federico Di Gregorio 97ce63b31e XDocumentType SYSTEMID fix
svn path=/trunk/mcs/; revision=130943
2009-04-03 07:37:19 +00:00
Jb Evain 6529ceed53 oos, forgot a part of the patch
svn path=/trunk/mcs/; revision=130942
2009-04-03 07:21:25 +00:00
Carlos Alberto Cortez ed038c79d7 2009-04-03 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: When removing a tab that was previously selected, set
	internally the value of selected_index to -1, to avoid trying to
	access the previous one when trying to set the new one (and was
	already removed from the collection). This is what .net seems to do
	too.
	Fixes #490937.


svn path=/trunk/mcs/; revision=130931
2009-04-03 04:15:18 +00:00
Zoltan Varga b7b2bf505c 2009-04-03 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Enable support for non-IMT virtual
	calls.

	* mini-amd64.c (mono_arch_get_vcall_slot): Handle more kinds of the SIB
	addressing modes.

svn path=/trunk/mono/; revision=130911
2009-04-02 22:37:48 +00:00
Zoltan Varga 47068c212a 2009-04-03 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h: Add macros for decoding the SIB byte.

svn path=/trunk/mono/; revision=130910
2009-04-02 22:37:35 +00:00
Marek Habersack 7766743366 2009-04-03 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: added code in the static constructor
	to enable retrieving application settings via
	ApplicationSettingsBase from within asp.net applications. Fixes
	bug #491531

	* ApplicationSettingsConfigurationFileMap.cs: added.

2009-04-03  Marek Habersack  <[email protected]>

	* CustomizableFileSettingsProvider.cs: added a way for System.Web
	to specify path to the current Web.config. Fixes bug #491531

svn path=/trunk/mcs/; revision=130909
2009-04-02 22:35:28 +00:00
Jb Evain 676ee8cc81 2009-04-03 Jb Evain <[email protected]>
* Mono.Cecil.Metadata/BlobHeap.cs
	* Mono.Cecil.Metadata/MetadataWriter.cs:
		do a better job at emitting a blob heap.


svn path=/trunk/mcs/; revision=130908
2009-04-02 22:30:20 +00:00
Carlos Alberto Cortez d4a62261a2 2009-04-02 Carlos Alberto Cortez <[email protected]>
* ClipboardTest.cs: New rrich text format test, and also re-name the 
	previous test to be a little more informative. Also clear the data 
	we have put in the clipboard before returning.


svn path=/trunk/mcs/; revision=130903
2009-04-02 20:44:03 +00:00
Carlos Alberto Cortez a4f6c0d819 2009-04-02 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
	separated, and we cannot fallback on Text if Rtf is requested but not
	present.
	* Clipboard.cs: Actually use the format specified by our user when
	putting data.


svn path=/trunk/mcs/; revision=130902
2009-04-02 20:40:48 +00:00
Zoltan Varga 02804ba969 2009-04-02 Zoltan Varga <[email protected]>
* Makefile.am (llvm_sources): Enable this.

svn path=/trunk/mono/; revision=130899
2009-04-02 19:56:47 +00:00
Zoltan Varga 9b4d0b4678 2009-04-02 Zoltan Varga <[email protected]>
* configure.in: Move the call to AC_PROG_CXX earlier and enable it again.

svn path=/trunk/mono/; revision=130898
2009-04-02 19:56:40 +00:00
Zoltan Varga 7a36b81b54 2009-04-02 Zoltan Varga <[email protected]>
* configure.in: Disable the call to AC_PROG_CXX for now.

svn path=/trunk/mono/; revision=130896
2009-04-02 19:15:30 +00:00
Zoltan Varga 1638bd8828 2009-04-02 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Add support for compiling with LLVM,
	failing back to the JIT if something cannot be handled.

	* mini-amd64.c (mono_arch_emit_call): Emit the arguments more simple when
	compiling with LLVM.

	* decompose.c (mono_decompose_opcode): Avoid decomposing some opcodes when
	compiling with LLVM.

	* method-to-ir.c (mono_method_to_ir): Avoid decomposing SWITCH when
	compiling with LLVM.

	* mini-ops.h: Add a few opcodes needed by LLVM.

	* dwarfwriter.c (mono_dwarf_writer_emit_method): Avoid crashes if the method
	has no unwind info.

	* mini-llvm.c mini-llvm-cpp.cpp: New files containing the experimental llvm
	backend.

svn path=/trunk/mono/; revision=130895
2009-04-02 19:06:12 +00:00
Zoltan Varga ef718e56f1 2009-04-02 Zoltan Varga <[email protected]>
* configure.in: Add an ENABLE_LLVM autoconf define.

svn path=/trunk/mono/; revision=130894
2009-04-02 19:06:05 +00:00
Zoltan Varga ff5c070a32 2009-04-02 Zoltan Varga <[email protected]>
* configure.in: Add --enable-llvm argument to enable the experimental
	LLVM back end.

svn path=/trunk/mono/; revision=130893
2009-04-02 19:05:58 +00:00
Marek Habersack 43d71e76c6 2009-04-02 Marek Habersack <[email protected]>
* data/Makefile.am: added system.web.mvc.pc{.in}

	* configure.in: added data/system.web.mvc.pc to AC_OUTPUT

	* data/system.web.mvc.pc.in: added

svn path=/trunk/mono/; revision=130891
2009-04-02 18:59:04 +00:00
Jb Evain e8d5dfcfd1 optimize a bit the fix to avoid double checking
svn path=/trunk/mcs/; revision=130886
2009-04-02 17:39:17 +00:00
Jb Evain 65f396a229 2009-04-02 Jb Evain <[email protected]>
* DictionaryTest.cs: add test for bug #328036.


svn path=/trunk/mcs/; revision=130885
2009-04-02 17:33:53 +00:00
Jb Evain c0deaf8193 2009-04-02 Jb Evain <[email protected]>
* Dictionary.cs (ValueCollection.CopyTo): fix for copying to
	an object array. Based on a patch by Tobias Grimm <[email protected]>.
	Fixes bug #328036.


svn path=/trunk/mcs/; revision=130884
2009-04-02 17:33:12 +00:00
Sebastien Pouliot e4683bfeab 2009-04-02 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: allow System.Runtime.Serialization to see 
	mscorlib's internals. Fix Encoding.get_CodeBase (and likely
	others too)


svn path=/trunk/mcs/; revision=130879
2009-04-02 15:47:39 +00:00
Marek Habersack 1dca373f1f 2009-04-02 Marek Habersack <[email protected]>
* CompilationException.cs: skip warnings in ErrorMessage and
	ErrorLines

	* BuildManager.cs: when an error occurs while compiling the
	requested virtual path, throw the exception, do not attempt to
	build again.

	* TemplateControlCompiler.cs: implemented missing converter for
	the ExpandDepth property. Fixes bug #490860

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

	* HttpException.cs: if there are more lines with errors, display
	them all.

svn path=/trunk/mcs/; revision=130876
2009-04-02 15:25:03 +00:00
Rodrigo Kumpera 1bba21255d 2009-04-02 Rodrigo Kumpera <[email protected]>
* valid_candidate_contraint_is_inflated_using_global_context.cs:
        New test for cases where the candidate constraint type refers to the
        global generic context.

        We have to use it because it might be the case the the global context
        has more arguments than the local one.

svn path=/trunk/mono/; revision=130873
2009-04-02 14:53:40 +00:00
Rodrigo Kumpera c6ecf039d2 2009-04-02 Rodrigo Kumpera <[email protected]>
* verify.c (mono_generic_param_is_constraint_compatible): Inflate the candidate
	using the context of the method been verifier and not of the method been called.

	* verify.c: Add verifier_inflate_type and mono_type_is_valid_type_in_context to
	safely inflate generic types.

svn path=/trunk/mono/; revision=130872
2009-04-02 14:53:28 +00:00
Marek Habersack 2e6df1aabe Unbreak the build
svn path=/trunk/mcs/; revision=130871
2009-04-02 14:17:17 +00:00
Marek Habersack 9e44bd06ee 2009-04-02 Marek Habersack <[email protected]>
* Initial import of ASP.NET MVC 1.0

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

	* AssemblyInfo.cs: added Mono specific attributes to delay-sign
	the assembly with the winfx.pub key.

svn path=/trunk/mcs/; revision=130868
2009-04-02 13:53:49 +00:00
Marek Habersack 9ab17f93d4 Import of the original ASP.NET MVC sources v1.0
svn path=/trunk/mcs/; revision=130867
2009-04-02 13:52:18 +00:00
Sebastien Pouliot f4768988b8 2009-04-02 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Change the strategy for checking the 
	"reflection using delegates optimization" to avoid unneeded 
	attributes in multiple class libraries.


svn path=/trunk/mono/; revision=130865
2009-04-02 13:03:51 +00:00
Mark Probst c9257a3149 2009-04-02 Mark Probst <[email protected]>
* sgen-gc.c: Remove object element in the disappearing link
        struct by storing the object pointer in the link.

svn path=/trunk/mono/; revision=130863
2009-04-02 12:05:54 +00:00
Atsushi Eno 02a3560fa3 2009-04-02 Atsushi Enomoto <[email protected]>
* XmlMtomDictionaryWriter.cs : new.
	* XmlDictionaryWriter.cs : implement CreateMtomWriter().

	* XmlMtomDictionaryWriterTest.cs : new.

	* System.Runtime.Serialization.dll.sources : added mtom writer.
	* System.Runtime.Serialization_test.dll.sources : added mtom writer test.


svn path=/trunk/mcs/; revision=130849
2009-04-02 09:58:04 +00:00
Atsushi Eno 59c4c3dbd2 2009-04-02 Atsushi Enomoto <[email protected]>
* ContentType.cs : when there are especials, quote parameter values.

	* ContentTypeTest.cs : add quotation test for especials.


svn path=/trunk/mcs/; revision=130842
2009-04-02 08:22:05 +00:00
Zoltan Varga d81136724b 2009-04-02 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_output_basic_block): Fix the ARM_FPU_NONE build.

svn path=/trunk/mono/; revision=130819
2009-04-02 01:52:50 +00:00
Zoltan Varga 8a5f9cf551 2009-04-02 Zoltan Varga <[email protected]>
* mini-arm.h mini-arm.c cpu-arm.md: Finish VFP support.

svn path=/trunk/mono/; revision=130818
2009-04-02 00:51:43 +00:00
Zoltan Varga 40666f42d6 2009-04-02 Zoltan Varga <[email protected]>
* arm/arm-vfp-codegen.h: Add missing VFP codegen macros.

svn path=/trunk/mono/; revision=130817
2009-04-02 00:50:47 +00:00
Miguel de Icaza 4b3ce3d739 Add guards
svn path=/trunk/mcs/; revision=130816
2009-04-02 00:01:08 +00:00
Marek Habersack 58caa86044 2009-04-02 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: implemented missing converter for
	the ExpandDepth property. Fixes bug #490860

svn path=/trunk/mcs/; revision=130813
2009-04-01 22:31:58 +00:00
Mark Probst efaf33e423 Make vassign members gint32 to fix ridiculously large methods.
2009-04-01  Mark Probst  <[email protected]>

	* regalloc.h, mini-codegen.c: Make vassign members gint32 to fix
	ridiculously large methods.

svn path=/trunk/mono/; revision=130798
2009-04-01 20:50:30 +00:00
Atsushi Eno 09df6338c2 2009-04-01 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs : more hack to handle empty
          element nicely.


svn path=/trunk/mcs/; revision=130779
2009-04-01 18:22:52 +00:00
Marek Habersack a136d79b68 2009-04-01 Marek Habersack <[email protected]>
* AssemblyBuilder.cs: CSharpCodePragmaGenerator.ReserveSpace:
	added the 2 extra chars to pragmaChecksumStaticCount constant (the
	ones added by Gonzalo below) and removed one NewLine to account
	for Martin's change below.
	VBCodePragmaGenerator.ReserveSpace - one newline follows
	#ExternalSource.
	VBCodePragmaGenerator.DecorateFile - one newline follows
	#ExternalSource.

svn path=/trunk/mcs/; revision=130763
2009-04-01 16:07:02 +00:00
Martin Baulig b902657bcf Don't emit a blank line after '#line' as this would cause all line numbers to be off by 1.
svn path=/trunk/mcs/; revision=130755
2009-04-01 14:39:05 +00:00
Jb Evain 297a55cea1 2009-04-01 Jb Evain <[email protected]>
* Mono.Cecil/ModuleDefinition.cs (Import): add overloads
	taking a MethodDefinition as a generic context.


svn path=/trunk/mcs/; revision=130748
2009-04-01 12:32:08 +00:00
Jb Evain c3173c8939 2009-04-01 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionHelper.cs: throw proper exception
	when importing in an invalid context.


svn path=/trunk/mcs/; revision=130747
2009-04-01 12:30:19 +00:00
Jb Evain b2845025d9 whitespace
svn path=/trunk/mcs/; revision=130746
2009-04-01 12:28:18 +00:00
Jb Evain 1cf70c7fb5 oops
svn path=/trunk/mcs/; revision=130744
2009-04-01 12:07:38 +00:00
Atsushi Eno 6f7bce2a5e 2009-04-01 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : add ReadStartElement() overload.


svn path=/trunk/mcs/; revision=130733
2009-04-01 08:28:07 +00:00
Atsushi Eno a7ab985979 2009-04-01 Atsushi Enomoto <[email protected]>
* UniqueId.cs : add missing security attributes.
        * XmlDictionaryReader.cs : cleanup extra TODOs.
        * XmlBinaryDictionaryReader.cs : iplement IsArray.


svn path=/trunk/mcs/; revision=130732
2009-04-01 08:11:07 +00:00
Atsushi Eno 75075e36f8 2009-04-01 Atsushi Enomoto <[email protected]>
* OperationInvokeHandler.cs : replace MS copycat exception
          message.


svn path=/trunk/mcs/; revision=130721
2009-04-01 05:03:44 +00:00
Gonzalo Paniagua Javier fec458c0ba 2009-03-31 Gonzalo Paniagua Javier <[email protected]>
* AssemblyBuilder.cs: the guid has to be quoted.


svn path=/trunk/mcs/; revision=130720
2009-04-01 03:50:10 +00:00
Veerapuram Varadhan 7ed3e19925 2009-03-31 Veerapuram Varadhan <[email protected]>
* Fixes rest of #480377
	* DataContainer.cs (GetContainerData, GetExplicitValue): Added to handle cases
	where passed type overloads an explicit operator for conversion of values.

svn path=/trunk/mcs/; revision=130709
2009-03-31 21:59:48 +00:00
Veerapuram Varadhan 02f82de85b 2009-03-31 Veerapuram Varadhan <[email protected]>
* Fixes rest of #480377
	* DataContainer.cs (GetContainerData, GetExplicitValue): Added to handle cases
	where passed type overloads an explicit operator for conversion of values.

svn path=/trunk/mcs/; revision=130708
2009-03-31 21:58:38 +00:00
Jonathan Pryor 4789af4bc6 * Makefile: Remove make warning about overriding dist-local.
svn path=/trunk/mcs/; revision=130704
2009-03-31 20:05:31 +00:00
Atsushi Eno a4291bc5a8 2009-03-13 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : do not bork at some unimplemented
          bits.


svn path=/trunk/mcs/; revision=130701
2009-03-31 19:11:46 +00:00
Rodrigo Kumpera 01d9f874df 2009-03-31 Rodrigo Kumpera <[email protected]>
* pedump.c (dump_verify_info): Don't crash if signature decoding fails.

svn path=/trunk/mono/; revision=130700
2009-03-31 19:03:40 +00:00
Rodrigo Kumpera 656030fe76 2009-03-31 Rodrigo Kumpera <[email protected]>
* verify.c (verifier_load_field): Fail if the field parent could not be loaded.

	* verify.c (mono_method_verify): Do proper bounds checking of exception
	clause ranges.

svn path=/trunk/mono/; revision=130699
2009-03-31 19:03:21 +00:00
Rodrigo Kumpera fc24c9fef9 2009-03-31 Rodrigo Kumpera <[email protected]>
* loader.c (mono_field_from_token): Don't crash if the field parent could
	not be decoded.

svn path=/trunk/mono/; revision=130698
2009-03-31 19:03:01 +00:00
Rodrigo Kumpera d4ae49237f 2009-03-31 Rodrigo Kumpera <[email protected]>
* invalid_catch_block_out_of_bounds.il
	* invalid_try_block_out_of_bounds.il: Tests for proper bounds
	check of exception clauses.

svn path=/trunk/mono/; revision=130697
2009-03-31 19:02:42 +00:00
Marek Habersack 91053b46db 2009-03-31 Marek Habersack <[email protected]>
* Page.cs: SavePageViewState saves the list of controls which
	require post back regardless of whether view state is disabled or
	not. Fixes bug #490753

svn path=/trunk/mcs/; revision=130694
2009-03-31 18:47:53 +00:00
Rodrigo Kumpera 2c9c2deebc 2009-03-31 Rodrigo Kumpera <[email protected]>
* MethodDef.cs (WriteCode): Emit labels which use offsets as absolute PEAPI
	CilLabels.

svn path=/trunk/mcs/; revision=130692
2009-03-31 18:32:36 +00:00
Rodrigo Kumpera 36cbd6f5f2 2009-03-31 Rodrigo Kumpera <[email protected]>
* Code.cs (CILLabel): Add new constructor to signal that
	a label is an absolute il offset. This is required by exception
	handling declarations that use offsets and not labels.

svn path=/trunk/mcs/; revision=130691
2009-03-31 18:31:56 +00:00
Rodrigo Kumpera 9e52218c78 2009-03-31 Rodrigo Kumpera <[email protected]>
* ILParser.jay: Fix integer labels in handler blocks.

svn path=/trunk/mcs/; revision=130690
2009-03-31 18:31:05 +00:00
Marek Habersack fdd27dcf55 ChangeLog update
svn path=/trunk/mcs/; revision=130683
2009-03-31 17:27:49 +00:00
Marek Habersack f84af0fae9 2009-03-31 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: use glob patterns to watch for
	changes to global.asax and web.config files.
	Set up recursive watch on web.config in a separate thread, to
	minimize application startup delay. Fixes bug #490497

svn path=/trunk/mcs/; revision=130682
2009-03-31 17:27:31 +00:00
Carlos Alberto Cortez 216bbfa7e5 2009-03-31 Carlos Alberto Cortez <[email protected]>
* X11Clipboard.cs: Actually look for the RtfText format when calling
	GetRftText in our clipboard formats list, instead of using the
	generical Text format.


svn path=/trunk/mcs/; revision=130681
2009-03-31 17:08:56 +00:00
Jonathan Pryor 5dce320e24 * mdoc-update.1: Fix --out=DIRECTORY formatting. (It was causing the
remaining text to be bolded within monodoc).

svn path=/trunk/mono/; revision=130679
2009-03-31 16:39:07 +00:00
Mark Probst 6ba976282c Execute critical finalizers after regular finalizers.
2009-03-31  Mark Probst  <[email protected]>

        * sgen-gc.c: Execute critical finalizers after ordinary
        finalizers.

        * class-internals.h, domain.c: Add CriticalFinalizerObject to
        mono_defaults.

2009-03-31  Mark Probst  <[email protected]>

        * critical-finalizers.cs: Test case for critical finalizers.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=130677
2009-03-31 15:55:53 +00:00
Jb Evain 6ca28ea47e 2009-03-31 Jb Evain <[email protected]>
* verify.c (do_ldstr): don't check if a string is in the user strings
	heap if the current image is dynamic.

svn path=/trunk/mono/; revision=130676
2009-03-31 15:42:07 +00:00
Mark Probst d989585f33 Wait for the last finalizer to finish executing for WaitForPendingFinalizers.
2009-03-31  Mark Probst  <[email protected]>

        * sgen-gc.c: Wait until the last finalizer has executed when
        returning from WaitForPendingFinalizers.

2009-03-31  Mark Probst  <[email protected]>

        * finalizer-wait.cs: Test case for WaitForPendingFinalizers.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=130670
2009-03-31 15:20:05 +00:00
Marek Habersack 9fd3570401 2009-03-31 Marek Habersack <[email protected]>
* DefaultWsdlHelpGenerator.aspx: the link element in <head> must
	be created using Response.Write, as the code expression in the
	href attribute is otherwise treated verbatim. This is the same as
	with .NET. Fixes bug #490497

svn path=/trunk/mono/; revision=130667
2009-03-31 15:01:57 +00:00
Marek Habersack 433193ce48 Typo fix
svn path=/trunk/mcs/; revision=130666
2009-03-31 15:01:34 +00:00
Marek Habersack e9a0173141 2009-03-31 Marek Habersack <[email protected]>
* All of the below are part of the fix for bug #489687

	* ThemeDirectoryCompiler.cs: pass VirtualPath instances to parser
	constructors.

	* BuildProvider.cs: associated virtual path is stored internally
	as an instance of VirtualPath, accessible via new
	VirtualPathInternal property.

	* BuildManagerDirectoryBuilder.cs: VirtualPath.IsFake is used to
	detect fake virtual paths.
	GetBuildProvider now takes a VirtualPath instead of string for the
	virtualPath parameter. The passed VirtualPath instance is passed
	unchanged to BuildProvider.

	* BuildManager.cs: AssertVirtualPathExists now uses
	VirtualPath.IsFake to check for fake virtual paths.

	* ApplicationFileBuildProvider.cs, GenericBuildProvider.cs,
	MasterPageBuildProvider.cs, PageBuildProvider.cs,
	ThemeBuildProvider.cs, UserControlBuildProvider.cs,
	WebHandlerBuildProvider.cs, WebServiceBuildProvider.cs:
	CreateParser overloads now take a VirtualPath instead of a string
	for the virtualPath parameter.

	* ThemeBuildProvider.cs: use new parser constructors which take
	VirtualPath instances instead of strings.

2009-03-31  Marek Habersack  <[email protected]>

	* VirtualPath.cs: added code to detect whether the VirtualPath
	instance represents a fake virtual path (IsFake property).
	Added new property DirectoryNoNormalize which returns
	non-normalized directory for the VirtualPath instance.
	Made ToString () a bit more friendly and well-behaved.

2009-03-31  Marek Habersack  <[email protected]>

	* ApplicationFileParser.cs, MasterPageParser.cs, PageParser.cs,
	PageThemeFileParser.cs, PageThemeParser.cs, UserControlParser.cs,
	WebHandlerParser.cs, WebServiceParser.cs: 2.0 constructors take a
	VirtualPath instance for the virtualPath parameter, instead of a
	string.

svn path=/trunk/mcs/; revision=130665
2009-03-31 15:01:21 +00:00
Marek Habersack 20242bfa98 2009-03-30 Marek Habersack <[email protected]>
* AspTokenizer.cs: UpdateChecksum - fixed off-by-one bug when
	processing the checksum buffer.

svn path=/trunk/mcs/; revision=130664
2009-03-31 15:01:08 +00:00
Martin Baulig 6fc5710a25 Bump debugger version to 81.2.
2009-03-31  Martin Baulig  <[email protected]>

	* mono-debug.h (MONO_DEBUGGER_MINOR_VERSION): Bump to 2.

svn path=/trunk/mono/; revision=130660
2009-03-31 14:25:46 +00:00
Martin Baulig 182c30d157 Notify the debugger about newly created appdomains and their shadow copy path.
2009-03-31  Martin Baulig  <[email protected]>

	* mono-debug-debugger.h (MonoDebuggerEvent): Add
	`MONO_DEBUGGER_EVENT_CREATE_APPDOMAIN' and
	`MONO_DEBUGGER_EVENT_UNLOAD_APPDOMAIN'.
	(mono_debugger_event_create_appdomain): New function.
	(mono_debugger_event_unload_appdomain): New function.

	* appdomain.c (mono_domain_create_appdomain_internal): Call
	mono_debugger_event_create_appdomain().

svn path=/trunk/mono/; revision=130659
2009-03-31 14:25:30 +00:00
Martin Baulig e431478764 Also register the class init callback if the class is already initialized to make things work with shadow copied assemblies.
2009-03-31  Martin Baulig  <[email protected]>

	* debug-debugger.c (debugger_remove_breakpoint): Call
	mono_debugger_remove_class_init_callback ().

2009-03-31  Martin Baulig  <[email protected]>

	* mono-debug-debugger.c
	(mono_debugger_register_class_init_callback): Also register the
	class init callback if the class is already initialized to make
	things work with shadow copied assemblies.

svn path=/trunk/mono/; revision=130658
2009-03-31 14:25:16 +00:00
Atsushi Eno b739f433af 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlDictionaryWriter.cs :
	  a couple of fixes to reflect correct values for node properties
	  on each read step.

	* XmlBinaryDictionaryReaderTest.cs: make tests more doubtful on
	  state.


svn path=/trunk/mcs/; revision=130655
2009-03-31 14:17:05 +00:00
Sebastien Pouliot a1916333ca 2009-03-31 Sebastien Pouliot <[email protected]>
* security-core-clr.c
	(mono_security_core_clr_ensure_reflection_access_field): Let 
	critical code access the field (just like we do for methods). Use
	check_field_access helper.
	(mono_security_core_clr_ensure_reflection_access_method): Use 
	check_field_access helper.


svn path=/trunk/mono/; revision=130652
2009-03-31 13:50:51 +00:00
Gonzalo Paniagua Javier c2f73df9b2 fix build
svn path=/trunk/mono/; revision=130651
2009-03-31 13:35:42 +00:00
Mark Probst 1c240c885e Remove data from FinalizeEntry.
2009-03-31  Mark Probst  <[email protected]>

        * sgen-gc.c: Remove data (callback) element from FinalizeEntry
        * and
        call the run-finalize function directly.

        * gc.c, gc-internal.h: Make run_finalize() non-static.

svn path=/trunk/mono/; revision=130650
2009-03-31 13:09:37 +00:00
Mark Probst 9debd698e6 Use a separate struct for disappearing links.
2009-03-31  Mark Probst  <[email protected]>

        * sgen-gc.c: Use a separate struct for disappearing links.

svn path=/trunk/mono/; revision=130649
2009-03-31 13:08:48 +00:00
Atsushi Eno 412021f75a 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs :
	  support array operation (0x03) on reader too.

	* XmlBinaryDictionaryReaderTest.cs: test array reader.


svn path=/trunk/mcs/; revision=130644
2009-03-31 11:33:34 +00:00
Atsushi Eno 525fe83335 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : removed lots of unused part.


svn path=/trunk/mcs/; revision=130635
2009-03-31 10:34:42 +00:00
Atsushi Eno dfa167b164 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriterAutoGen.cs : generated code.
	* XmlBinaryFormat.cs, XmlBinaryDictionaryWriter.cs :
	  support array operation (0x03) and a bunch of WriteArray() methods.

	* XmlBinaryDictionaryWriterTest.cs : added test for array operation.

	* binary-writer-method-gen.cs : another easy code writer for binary
	  xml writer methods.
	* System.Runtime.Serialization.dll.sources : added autogenerated code.


svn path=/trunk/mcs/; revision=130630
2009-03-31 09:21:37 +00:00
Jb Evain dad585fb8d 2009-03-31 Jb Evain <[email protected]>
* data: Remove smcs, which is handled by moon now.

svn path=/trunk/mono/; revision=130622
2009-03-31 07:42:26 +00:00
Jb Evain 95b6b4ae31 2009-03-31 Jb Evain <[email protected]>
* scripts: Remove smcs, which is handled by moon now.

svn path=/trunk/mono/; revision=130621
2009-03-31 07:39:50 +00:00
Atsushi Eno 6110c12288 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryDictionaryWriter.cs
	  XmlBinaryFormat.cs : implemented element with short prefix.

	* XmlBinaryDictionaryReaderTest.cs,
	  XmlBinaryDictionaryWriterTest.cs : added test for element with
	  short prefix.


svn path=/trunk/mcs/; revision=130617
2009-03-31 07:24:52 +00:00
Gonzalo Paniagua Javier 186c49e3ae 2009-03-31 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: don't fail if the SocketOptionsFlag has Partial or
	* MaxIOVectorLength enabled, just ignore them.
	Fixes bug #349688.


svn path=/trunk/mono/; revision=130613
2009-03-31 06:24:49 +00:00
Jonathan Pryor cccd6f36bb * mdoc-update.1: Add new --exceptions=added functionality.
svn path=/trunk/mono/; revision=130604
2009-03-31 03:24:49 +00:00
Zoltan Varga fe618626ca 2009-03-31 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Call img_writer_emit_start ()
	right before emitting code, not at the start.

	* mini.c (mono_postprocess_patches): Extract this into a separate function
	from mono_codegen ().

	* ssa.c (mono_ssa_compute): Set ins->klass for every PHI node, handle
	byref types correctly.

svn path=/trunk/mono/; revision=130585
2009-03-30 22:31:16 +00:00
Rodrigo Kumpera 7e0b296b5d 2009-03-30 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Parse the source assembly using the runtime
	metadata routines.

	* gen-md-tests.c: Add table-row function.

	* Makefile: like gen-md-tests with the runtime.

	* cli-tables-tests.md: Add initial tests for the module table.

svn path=/trunk/mono/; revision=130581
2009-03-30 21:44:31 +00:00
Rodrigo Kumpera 20df680d2e 2009-03-30 Rodrigo Kumpera <[email protected]>
assembly-with-resource.cs: Add missing file.

svn path=/trunk/mono/; revision=130580
2009-03-30 21:44:08 +00:00
Rodrigo Kumpera 0dbebe6e63 2009-03-30 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Fix eglib build.

svn path=/trunk/mono/; revision=130579
2009-03-30 21:37:22 +00:00
Carlos Alberto Cortez d4635d2074 2009-03-30 Carlos Alberto Cortez <[email protected]>
* TextBox.cs: Process auto completion properly when we are using the
	internal source provided by ComboBox, and also remove some repeated
	checks.
	Fixes #489339.


svn path=/trunk/mcs/; revision=130573
2009-03-30 20:35:56 +00:00
Ivan Zlatev 69fb3ed861 2009-03-30 Tom Hindle <[email protected]>
* DataGridView added Support for Invisible Columns to
	AutoFillColumnsInternal method.

svn path=/trunk/mcs/; revision=130572
2009-03-30 20:23:45 +00:00
Marek Habersack 65f9434933 2009-03-30 Marek Habersack <[email protected]>
* AssemblyBuilder.cs: introduced a kludge to add #pragma checksum
	and #pragma lines (or its vb equivalent - #ExternalSource) to
	code-behind files named in the CodeFile/Src directives while
	copying them to the dynamic directory for compilation. The kludge
	works by recognizing the .cs and .vb extensions and wrapping the
	file contents in the appropriate directives. This is done in this
	way because the other possible way, using the
	CodeSnippetCompileUnit, requires the entire file to be read in
	memory and then passed to CodeDOM. We fall back to this way when
	the file being copied is neither C# or VB.

svn path=/trunk/mcs/; revision=130566
2009-03-30 18:24:34 +00:00
Jonathan Pryor ff693e990f * System.Data.Linq.dll.sources: Remove
src/DbLinq/Factory/Implementation/AbstractObjectFactory.cs, add 
	  src/DbLinq/Data/Linq/SqlClient/Sql2008Provider.cs.
	* src/**/*: Flush; syncs to DbLinq r1038, fixes
	  System.Data.Linq.SqlClient.Sql200?Provider cor-compare differences,
	  unit test execution order dependency issues, namespace names within
	  tests, etc.

svn path=/trunk/mcs/; revision=130561
2009-03-30 17:09:45 +00:00
Zoltan Varga 28fd8ba48b 2009-03-30 Zoltan Varga <[email protected]>
* dwarfwriter.c (mono_dwarf_writer_emit_method): Fix a crash introduced
	by the last change.

svn path=/trunk/mono/; revision=130556
2009-03-30 15:31:27 +00:00
Jonathan Pryor 13260246d5 * Mono.Documentation/exceptions.cs: Add
ExceptionLocations.AddedMember, used for --exceptions=added support.
	* Mono.Documentation/monodocer.cs: Add --exceptions=added, which will 
	  only add <exception/> elements for newly added elements.  This is
	  useful for updating documentation for established projects which
	  already have <exception/> corrections (e.g. *removal* of
	  <exception/> elements because the exceptions weren't actually
	  possible), so only new members should have <exception/> created.

svn path=/trunk/mcs/; revision=130551
2009-03-30 13:11:55 +00:00
Marek Safar 2e32e70305 Use TypeManager wrapper
svn path=/trunk/mcs/; revision=130545
2009-03-30 10:30:12 +00:00
Zoltan Varga 16df740a9d 2009-03-30 Zoltan Varga <[email protected]>
* threads-types.h: Fix the win32 build.

svn path=/trunk/mono/; revision=130541
2009-03-30 09:37:30 +00:00
Carlos Alberto Cortez 03bf1cb244 2009-03-30 Carlos Alberto Cortez <[email protected]>
* System.Windows.Forms.dll.sources: Add X11Clipboard.cs to the build.


svn path=/trunk/mcs/; revision=130538
2009-03-30 07:40:53 +00:00
Carlos Alberto Cortez 475a5dc66e * X11Structs:
* X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
	its own file, since it is adding some functionality and thus is not a
	simple struct as before.
	* XplatUIX11.cs: Add support to store different formats that could
	have been specified by the user when puting data in the Clipboard -
	this is important when more than one format is supported (such plain
	text and rtf text). Update in the needed places, as well as simplify
	the code.
	Fixes #489625.

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


svn path=/trunk/mcs/; revision=130537
2009-03-30 07:40:48 +00:00
Carlos Alberto Cortez bb93111ec9 2009-03-30 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: When handling the SelectionRequest event, use
	SelectionRequestEvent instead of SelectionEvent, so we get the right
	data for the app asking for clipboard data. Set the member of
	SelectioneEvent.property to indicate the place where we are storing
	the information as well - this is specially important for gnome/kde
	apps using the TARGETS atom to ask for the supported permission before
	actually asking for a specific format.
	Fixes #489393.


svn path=/trunk/mcs/; revision=130531
2009-03-30 04:58:02 +00:00
Zoltan Varga 36e8e4a3a4 2009-03-29 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Emit a few nops before
	indirect calls, this avoids problems where get_vcall_slot () would get
	confused by the native code for the instruction preceeding the call.
	(mono_arch_get_vcall_slot): Simplify this.
	(mono_arch_emit_imt_argument): Remove this, it is no longer needed.

svn path=/trunk/mono/; revision=130505
2009-03-29 16:47:09 +00:00
Zoltan Varga e3ff010fe3 2009-03-29 Zoltan Varga <[email protected]>
* mini-ops.h: Fix the definitions of the OP_IA64 opcodes, since the local
	register allocator now seems to depend on them instead of the data in
	cpu-<ARCH>.md.

svn path=/trunk/mono/; revision=130491
2009-03-29 05:36:01 +00:00
Veerapuram Varadhan 90a2705cf5 2009-03-29 Veerapuram Varadhan <[email protected]>
* Fixes #480377
		* OciCalls.cs:
		* OciDataType.cs:
		* OciDefineHandle.cs:
		* OciHandle.cs:
		* OciIntervalDescriptor.cs:
		* OciParameterDescriptor.cs: Implement INTERVAL_YEAR_TO_MONTH and
		INTERVAL_DAY_TO_SECOND OCI types.

svn path=/trunk/mcs/; revision=130490
2009-03-29 03:48:36 +00:00
Veerapuram Varadhan 0cff3be341 New: IntervalDescriptor implementation file
Implements OCI calls that are required for basic OciInterval types handling

svn path=/trunk/mcs/; revision=130489
2009-03-29 03:48:15 +00:00
Veerapuram Varadhan d5d4cf26ee INTERVAL_DAY_TO_SECOND and INTERVAL_YEAR_TO_MONTH implementations
svn path=/trunk/mcs/; revision=130488
2009-03-29 03:47:56 +00:00
Veerapuram Varadhan 256eaefdb3 OciInterval implementation
svn path=/trunk/mcs/; revision=130487
2009-03-29 03:47:35 +00:00
Zoltan Varga 78b79b878e 2009-03-29 Zoltan Varga <[email protected]>
* remoting4.cs: Fix the last change.

svn path=/trunk/mono/; revision=130486
2009-03-29 02:44:36 +00:00
Zoltan Varga 2813a09b59 2009-03-29 Zoltan Varga <[email protected]>
* CodeGenerator.cs: Add synchronization as SRE is not thread safe.

svn path=/trunk/mcs/; revision=130484
2009-03-29 02:29:29 +00:00
Zoltan Varga 4b0675c572 2009-03-29 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Throw the correct type of exception if
	mono_method_get_header () fails because of a loading error.

svn path=/trunk/mono/; revision=130483
2009-03-29 01:34:36 +00:00
Jb Evain a2cf970c02 fixed
svn path=/trunk/mcs/; revision=130479
2009-03-28 21:57:41 +00:00
Jb Evain cc2c56a916 2009-03-28 Jb Evain <[email protected]>
* Enumerable.cs: fix Intersect.


svn path=/trunk/mcs/; revision=130478
2009-03-28 21:55:24 +00:00
Jb Evain 31192936a0 2009-03-28 Jb Evain <[email protected]>
* EnumerableTest.cs: add test for bug #490016.


svn path=/trunk/mcs/; revision=130477
2009-03-28 21:48:57 +00:00
Zoltan Varga c142e39cae In mini/
* mini.c (mini_method_compile): Clear the loader error if the method
	header cannot be decoded.

In tests/

	* load-exceptions.cs: Add a test for missing locals.

svn path=/trunk/mono/; revision=130476
2009-03-28 19:55:47 +00:00
Zoltan Varga a4c7031732 In mini/
* mini-trampolines.c (mono_magic_trampoline): Handle generic virtual
	interface methods on proxies correctly.

In tests/

2009-03-28  Zoltan Varga  <[email protected]>

	* remoting4.cs: Add a test for generic virtual interface methods on proxies.

svn path=/trunk/mono/; revision=130474
2009-03-28 19:02:04 +00:00
Sebastien Pouliot 205287dd4d 2009-03-28 Sebastien Pouliot <[email protected]>
* coreclr-security.cs: Add more override test cases.


svn path=/trunk/mono/; revision=130465
2009-03-28 14:14:59 +00:00
Sebastien Pouliot fd48a5de6b 2009-03-28 Sebastien Pouliot <[email protected]>
* class.c: move coreclr inheritance/override checks to 
	security-core.clr.c
	* security-core.clr.c|h: add code from class.c with additional
	documentation. Fix override check when the method is not critical.


svn path=/trunk/mono/; revision=130464
2009-03-28 14:14:47 +00:00
Zoltan Varga f43f7d0ca5 2009-03-28 Zoltan Varga <[email protected]>
* dwarfwriter.c (mono_dwarf_writer_emit_method): Fix handling of the
	this argument for vtype methods. Add precise liveness info for arguments.

svn path=/trunk/mono/; revision=130460
2009-03-28 08:16:56 +00:00
Zoltan Varga 70c2c70f27 2009-03-28 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_print_ins_index): Print the vreg of the
	LIVERANGE_START/END opcodes.

	* method-to-ir.c (mono_spill_global_vars): Fix liverange calculation
	for arguments and values in registers.

svn path=/trunk/mono/; revision=130459
2009-03-28 08:16:49 +00:00
Zoltan Varga 7294f8a646 2009-03-28 Zoltan Varga <[email protected]>
* debug-helpers.c (mono_method_desc_match): Make '*' match anything.
	(match_class): Ditto.

svn path=/trunk/mono/; revision=130458
2009-03-28 05:01:51 +00:00
Ivan Zlatev 22e99e7a46 2009-03-28 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: We don't support drawing all types of cell borders,
	so fallback and at least draw something instead of nothing.

svn path=/trunk/mcs/; revision=130449
2009-03-28 00:15:38 +00:00
Ivan Zlatev 31a9c0f14d 2009-03-27 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: If the column header isn't visible allow resizing
	using the cell column border. Also be sure to reset the cursor properly.
	[Fixes bug #489929]

svn path=/trunk/mcs/; revision=130446
2009-03-27 23:32:30 +00:00
Jonathan Chambers e610ce8f68 2009-03-27 Jonathan Chambers <[email protected]>
* BuildWhen.cs: Add basic implementation.
        * BuildChoose.cs: Add basic implementation.
        * BuildItem.cs (AddEvaluatedItem): Add BuiltItem to
        EvaluatedItemsIgnoringCondition.
        * GroupingCollection.cs: Add evaluation of BuildChoose items.


svn path=/trunk/mcs/; revision=130445
2009-03-27 23:19:43 +00:00
Rodrigo Kumpera 38e06db204 2009-03-27 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for total table sizes.

svn path=/trunk/mono/; revision=130444
2009-03-27 22:50:21 +00:00
Rodrigo Kumpera d87ef65a34 2009-03-27 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Rename bounds_check_offset to bounds_check_datadir.

	* metadata-verify.c: Implement table layout row size calculation. Verify
	the total size of the tables.

svn path=/trunk/mono/; revision=130443
2009-03-27 22:50:20 +00:00
Rodrigo Kumpera 5efed1da27 2009-03-27 Rodrigo Kumpera <[email protected]>
* cli-tables-tests.md: Tests for heap sizes and minumum #~ size
	to decode row counts.

svn path=/trunk/mono/; revision=130442
2009-03-27 22:48:13 +00:00
Rodrigo Kumpera 934a2a3c68 2009-03-27 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify heap sizes and size to decode row counts.

svn path=/trunk/mono/; revision=130441
2009-03-27 22:48:12 +00:00
Gonzalo Paniagua Javier c09ac13431 2009-03-27 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c:
	* console-io.[ch]: added new mono_console_init() to make sure that
	file descriptors 0, 1 and 2 are opened.
	Bug #489019 fixed.


svn path=/trunk/mono/; revision=130424
2009-03-27 20:04:49 +00:00
Jonathan Pryor 0017f47bc6 * src/DbLinq.sln,
src/DbLinq.SqlServer/Test/DbLinq.SqlServer_test_ndb.csproj: Flush;
	  syncs to DbLinq r1029.
	* src/DbLinq.suo: Delete.
	* src (svn:ignore): Ignore DbLinq.suo.
	* src/DbLinq/Test/NullProvider.cs: Default initialize the
	  ConnectionString to "" so that the MsSqlDataContextTest tests pass.
	* System.Data.Linq_test.dll.sources: Add 
	  src/DbLinq.SqlServer/Test/MsSqlDataContextTest.cs.

svn path=/trunk/mcs/; revision=130422
2009-03-27 19:30:04 +00:00
Atsushi Eno 1362b62020 2009-03-27 Atsushi Enomoto <[email protected]>
* XmlBinaryFormat.cs, XmlBinaryDictionaryWriter.cs :
	  resolved all namespace and QName issues.

	* XmlBinaryDictionaryWriterTest.cs : enabled QName test parts.


svn path=/trunk/mcs/; revision=130419
2009-03-27 18:41:25 +00:00
Marek Safar cd5d5a8abe 2009-03-27 Marek Safar <[email protected]>
* typemanager.cs, expression.cs: Removed unused nullable checks.


svn path=/trunk/mcs/; revision=130410
2009-03-27 17:13:46 +00:00
Marek Safar b1d9489d43 New tests.
svn path=/trunk/mcs/; revision=130405
2009-03-27 16:22:29 +00:00
Marek Safar c4274ee9e8 2009-03-27 Marek Safar <[email protected]>
* *.cs: Removed some gmcs conditionals.


svn path=/trunk/mcs/; revision=130404
2009-03-27 16:21:36 +00:00
Gonzalo Paniagua Javier 3b549a3056 2009-03-27 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: disable the test form
	when only Soap is supported.
	Bug #342073 fixed.


svn path=/trunk/mono/; revision=130400
2009-03-27 15:51:43 +00:00
Zoltan Varga ab0fea6926 2009-03-27 Zoltan Varga <[email protected]>
* mono-gdb.py (StringPrinter.to_string): Fix support for non-ascii characters.

svn path=/trunk/mono/; revision=130399
2009-03-27 15:39:55 +00:00
Atsushi Eno d16e9ef34b 2009-03-27 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : further namespace refactory.
	  namespaces are managed by its own (to work fine for both string
	  and dictionary string).


svn path=/trunk/mcs/; revision=130396
2009-03-27 14:44:32 +00:00
Zoltan Varga a3af68f0ef 2009-03-27 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Disable tail calls for calls which
	return a valuetype. Fixes #487518.

	* iltests.il: Add a test.

svn path=/trunk/mono/; revision=130390
2009-03-27 14:07:28 +00:00
Sebastien Pouliot 5545f01f97 2009-03-27 Sebastien Pouliot <[email protected]>
* appdomain.h: Export a new callback type and a new function to
	set this callback. This allow a mono host to provide it's own
	definition for "platform code".
	* metadata-internals.h: Add a core_clr_platform_code flag on 
	_MonoImage to (cache and) know if it is representing platform 
	code.
	* image.c (do_mono_image_open): Set core_clr_platform_code flag 
	on platform code images.
	* security-core-clr.c|h	
	(mono_security_set_core_clr_platform_callback): Allow the host
	to provide it's own platform check definition.
	(mono_security_core_clr_determine_platform_image): Detect if an 
	image is platform code (using the specified callback).
	(mono_security_core_clr_is_platform_image): Return cached value 
	for platform code.


svn path=/trunk/mono/; revision=130389
2009-03-27 14:00:09 +00:00
Zoltan Varga 407d6d81e8 2009-03-27 Zoltan Varga <[email protected]>
* DelegateTest.cs: Mark a test as working.

svn path=/trunk/mcs/; revision=130386
2009-03-27 13:37:39 +00:00
Zoltan Varga 5b9e83c623 In io-layer/
2009-03-27  Zoltan Varga  <[email protected]>

	* threads.h: Add a comment to CreateThread.

In metadata/

2009-03-27  Zoltan Varga  <[email protected]>

	* threads.c (mono_create_thread): New helper function to wrap CreateThread
	which has different parameter types for the 'tid' argument in windows and
	the io-layer.

	* appdomain.c attach.c threads.c: Use the new helper.

In mini/

2009-03-27  Zoltan Varga  <[email protected]>

	* aot-compiler.c: Use mono_thread_create () to create helper threads.

svn path=/trunk/mono/; revision=130385
2009-03-27 13:35:45 +00:00
Zoltan Varga 6e654c8f5c 2009-03-27 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_delegate_trampoline): Handle static delegates
	closed over a null reference correctly.

svn path=/trunk/mono/; revision=130384
2009-03-27 13:35:25 +00:00
Atsushi Eno d6b718ad37 2009-03-27 Atsushi Enomoto <[email protected]>
* XmlBinaryFormat.cs, XmlBinaryDictionaryReader.cs,
	  XmlBinaryDictionaryWriter.cs : improved shorthanded prefix
	  support. Not only autocreated prefixes but also explicitly-
	  specified 'a' .. 'z' prefixes are mapped as shorthand.
	  Some significant (and ongoing) namespace support changes.

	* XmlBinaryDictionaryWriterTest.cs: added test for shorthand
	  prefixed attributes.


svn path=/trunk/mcs/; revision=130381
2009-03-27 13:20:47 +00:00
Raja R Harinath 51b061301f * Makefile (net_2_0_dirs): Build System.Runtime.Serialization
before System.Data.Linq.

svn path=/trunk/mcs/; revision=130375
2009-03-27 11:40:23 +00:00
Rodrigo Kumpera 2b4556a637 2009-03-26 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add tables-header and set-bit helpers.

	* cli-tables-tests.md: New tests for the cli tables.

	* Makefile: Add new tests.

svn path=/trunk/mono/; revision=130349
2009-03-26 23:46:51 +00:00
Rodrigo Kumpera a2461c033d 2009-03-26 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify valid table bits.

svn path=/trunk/mono/; revision=130348
2009-03-26 23:46:48 +00:00
Rodrigo Kumpera da69907d30 2009-03-26 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_metadata_header): Store size in the size field.

	* metadata-verify.c: Add initial table schema verification.

svn path=/trunk/mono/; revision=130347
2009-03-26 23:46:27 +00:00
Jonathan Pryor 103cbe03fd * src/DbLinq/Data/Linq/Table.cs: Add an explicit
IEnumerable<TEntity>.GetEnumerator() implementation to Table<TEntity>.
	  This is done for cor-compare compatibility with .NET.

svn path=/trunk/mcs/; revision=130333
2009-03-26 20:04:06 +00:00
Carlos Alberto Cortez 5c7308bc4d 2009-03-26 Carlos Alberto Cortez <[email protected]>
* ToolStripTest.cs:
	* ToolStripItemTest.cs: Update our Dispose tests.


svn path=/trunk/mcs/; revision=130332
2009-03-26 19:59:32 +00:00
Carlos Alberto Cortez 1fe09c4433 2009-03-26 Carlos Alberto Cortez <[email protected]>
* ToolStrip.cs: When disposing, iterate over the items in reverse
	order, since disposing the items modifies the collection.
	* ToolStripItem.cs: Remove from the owner when disposing.
	Fixes #485769.


svn path=/trunk/mcs/; revision=130331
2009-03-26 19:57:27 +00:00
Ivan Zlatev 8b99afe5f4 2009-03-26 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No
	longer throws a NotImplementedException.
	  Based on a patch by Tom Hindle <[email protected]>
	[Fixes bug #488319]

svn path=/trunk/mcs/; revision=130327
2009-03-26 19:07:42 +00:00
Jb Evain 67740ff767 complete test
svn path=/trunk/mcs/; revision=130325
2009-03-26 18:54:25 +00:00
Jb Evain c8b937ba5e 2009-03-26 Jb Evain <[email protected]>
* Delegate.cs (CreateDelegate): Support for delegates
	on static methods closed on a null target.


svn path=/trunk/mcs/; revision=130324
2009-03-26 18:46:56 +00:00
Ivan Zlatev 33fa30c827 2009-03-26 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Implement IsCurrentRowDirty. No longer throws
	NotImplementedException.

svn path=/trunk/mcs/; revision=130320
2009-03-26 18:18:42 +00:00
Ivan Zlatev a38493f6d9 2009-03-26 Ivan N. Zlatev <[email protected]>
* DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs:
	Fix SortMode clash handling.
	[Fixes bug #488263]

svn path=/trunk/mcs/; revision=130319
2009-03-26 18:13:14 +00:00
Ivan Zlatev 8825de9365 2009-03-26 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Do not show the vertical scrollbar if there is only
	one row or less. For the sake of MSNET compatibility.
	[Fixes bug #487988]

svn path=/trunk/mcs/; revision=130318
2009-03-26 17:35:49 +00:00
Jonathan Pryor 1f0a2d7e78 * Test/: Added (though empty), to allow building unit tests located in
src/*/Test/**.
	* System.Data.Linq_test.dll.sources: Added; database-less unit tests.

svn path=/trunk/mcs/; revision=130317
2009-03-26 17:26:16 +00:00
Marek Safar 131d04f1ef 2009-03-26 Marek Safar <[email protected]>
* generic.cs, support.cs: Moved generics stuff out of support.cs


svn path=/trunk/mcs/; revision=130316
2009-03-26 17:20:40 +00:00
Jonathan Pryor f2a3e4abcb * src/DbLinq/System.Data.Linq/Binary.cs: Update to pass the unit tests.
* Makefile: Build against System.Runtime.Serialization.dll so that
	  Binary can use the [DataContract] attribute.

svn path=/trunk/mcs/; revision=130306
2009-03-26 16:01:10 +00:00
Jonathan Chambers 4d00ac70fd 2009-03-26 Jonathan Chambers <[email protected]>
* TaskDatabase.cs (RegisterTask): Search for class by name
        if task was not found using GetType (which uses namespace).



svn path=/trunk/mcs/; revision=130305
2009-03-26 15:47:25 +00:00
Jonathan Pryor 455e8d330a * **/*: Flush. (Updates to sync with DbLinq r1026, correcting tests
so that they build under Mono for testing System.Data.Linq.dll.)

svn path=/trunk/mcs/; revision=130303
2009-03-26 15:39:53 +00:00
Jonathan Pryor 21b3da52b4 * **/*: Flush. (Updates to sync with DbLinq r1020, adding additional
tests generated from gui-compare differences.)

svn path=/trunk/mcs/; revision=130301
2009-03-26 15:09:07 +00:00
Zoltan Varga 542acfa591 In class/corlib/System.Reflection/
2009-03-26  Zoltan Varga  <[email protected]>

	* ParameterInfoTest.cs: Add a test for #488383.

In class/corlib/System/

2009-03-26  Zoltan Varga  <[email protected]>

	* Environment.cs: Bump corlib version.

In class/corlib/Test/System.Reflection/

2009-03-26  Zoltan Varga  <[email protected]>

	* ParameterInfoTest.cs: Add a test for #488383.

svn path=/trunk/mcs/; revision=130298
2009-03-26 14:32:42 +00:00
Zoltan Varga 0e066dcb2f 2009-03-26 Zoltan Varga <[email protected]>
* icall.c (ves_icall_get_parameter_info): Add a 'member' argument, used to
	obtain the refclass argument needed by mono_param_get_objects (). Fixes
	#488383.

	* reflection.c (mono_param_get_objects_internal): Add a 'refclass' argument.

	* appdomain.c (MONO_CORLIB_VERSION): Bump this.

svn path=/trunk/mono/; revision=130297
2009-03-26 14:29:46 +00:00
Zoltan Varga eaacec9711 2009-03-26 Zoltan Varga <[email protected]>
* icall.c (ves_icall_get_parameter_info): Add a 'member' argument, used to
	obtain the refclass argument needed by mono_param_get_objects (). Fixes
	#488383.

	* reflection.c (mono_param_get_objects_internal): Add a 'refclass' argument.

	* appdomain.c (MONO_CORLIB_VERSION): Bump this.

svn path=/trunk/mono/; revision=130296
2009-03-26 14:29:38 +00:00
Sebastien Pouliot b0970951c2 oops, fix wrong copy-pasted doc
svn path=/trunk/mono/; revision=130295
2009-03-26 14:27:48 +00:00
Marek Habersack d41859f73d 2009-03-26 Marek Habersack <[email protected]>
* HttpWorkerRequest.cs: use a generic dictionary to keep header
	names in 2.0+.
	GetKnown{Request,Response}HeaderIndex doesn't use the switch
	anymore.

	* HttpResponse.cs: WriteHeaders now checks whether a header to be
	sent is a known one or not and uses the appropriate method to send
	that header. Partial fix for bug #488702

svn path=/trunk/mcs/; revision=130292
2009-03-26 14:13:53 +00:00
Sebastien Pouliot 445567c31c 2009-03-26 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Add/update documentation


svn path=/trunk/mono/; revision=130291
2009-03-26 14:03:31 +00:00
Atsushi Eno febbd23e28 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryFormat.cs, XmlBinaryDictionaryWriter.cs :
	  added some incomplete code for QName support.

	* XmlBinaryDictionaryWriterTest.cs: added QName test part, but
	  disable since it does not work yet.


svn path=/trunk/mcs/; revision=130290
2009-03-26 13:37:43 +00:00
Zoltan Varga 367bba6f7a 2009-03-26 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_handle_global_vregs): Fix support for ternary ops.

svn path=/trunk/mono/; revision=130289
2009-03-26 13:36:44 +00:00
Sebastien Pouliot 030a5e084f 2009-03-26 Sebastien Pouliot <[email protected]>
* X509ChainPolicyTest.cs: Add a small sleep between the Reset and
	the second VerificationTime check since it would be possible, on
	fast hardware, to get the same value (and assert).


svn path=/trunk/mcs/; revision=130282
2009-03-26 11:37:05 +00:00
Atsushi Eno a730c50bc0 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs :
	  handle utf16 typed nodes. (not sure if it is used in writer.)


svn path=/trunk/mcs/; revision=130281
2009-03-26 11:35:32 +00:00
Atsushi Eno d64014a0bd 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : oops, fix build.


svn path=/trunk/mcs/; revision=130280
2009-03-26 11:32:30 +00:00
Atsushi Eno b41232c057 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs, XmlBinaryDictionaryReader.cs,
	  XmlBinaryFormat.cs, : reverted Uuid change (UniqueId is different).
	  Updated TODO status. Removed extra BinaryReader type.


svn path=/trunk/mcs/; revision=130279
2009-03-26 10:55:51 +00:00
Atsushi Eno f9c37f5f72 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryDictionaryWriter.cs,
	  XmlBinaryFormat.cs : fixed couple of issues regarding text and
	  base64 fixed-length buffers (their sizes are not variant).
	  Some ongoing changes on reading dummy-prefixed attributes.


svn path=/trunk/mcs/; revision=130278
2009-03-26 10:30:43 +00:00
Geoff Norton a6e5f0c04e fix the 1.1 build
svn path=/trunk/mcs/; revision=130269
2009-03-26 03:10:02 +00:00
Geoff Norton a2c3e1f406 2009-03-25 Geoff Norton <[email protected]>
* XmlTextReader.cs: Create the uri as relativeorabsolute.

svn path=/trunk/mcs/; revision=130268
2009-03-26 02:54:01 +00:00
Ivan Zlatev 0d17f7f220 2009-03-26 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: When the current cell is moved out of the editing row
	be sure to reset it back to a place holder row.

svn path=/trunk/mcs/; revision=130267
2009-03-26 01:43:07 +00:00
Zoltan Varga ce78379151 2009-03-26 Zoltan Varga <[email protected]>
* pinvoke2.cs: Add a test for #488670.

svn path=/trunk/mono/; revision=130257
2009-03-25 23:45:55 +00:00
Zoltan Varga 032ebf9e28 2009-03-26 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_object): Generate code to throw an exception
	instead of throwing it. Fixes #488670.

svn path=/trunk/mono/; revision=130256
2009-03-25 23:45:47 +00:00
Mark Probst 60a6620327 Fix register allocation bug for ternary ops.
2009-03-25  Mark Probst  <[email protected]>

        * mini-codegen.c (mono_local_regalloc): Don't let sregs get
        allocated to the same registers as fixed sregs.

2009-03-25  Mark Probst  <[email protected]>

        * interlocked-4.2.cs: New CompareExchange test (triggered
        * register
        allocation bug on x86 and amd64).

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=130247
2009-03-25 22:41:17 +00:00
Jb Evain 5c5b5fe42c 2009-03-25 Jb Evain <[email protected]>
* DelegateTest.cs: add new CreateDelegate test.


svn path=/trunk/mcs/; revision=130246
2009-03-25 21:33:18 +00:00
Marek Habersack 8b21628c27 2009-03-25 Marek Habersack <[email protected]>
* AspTokenizer.cs: MD5 checksum calculation happens here. It's
	done incrementally as characters are read.

	* AspParser.cs: the MD5 checksum is no longer computed here. Moved
	to AspTokenizer.
	After parsing, both the tokenizer and the string reader are
	disposed of.

svn path=/trunk/mcs/; revision=130245
2009-03-25 21:20:50 +00:00
Marek Habersack f56fae0f58 2009-03-25 Marek Habersack <[email protected]>
* AssemblyBuilder.cs: renamed CopyFile to CopyFileWithChecksum, in
	prepration for future inclusion of checksum and line pragmas in
	the file being copied.
	Files are copied chunk by chunk, not by reading the entire
	contents.

svn path=/trunk/mcs/; revision=130244
2009-03-25 21:20:39 +00:00
Atsushi Eno c20202ef7c 2009-03-25 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs,
	  XmlBinaryDictionaryWriter.cs : couple of enhancements to support
	  missing types, Dictionary string lookups and indexing fixes.
	  Also reflect some correction by [MC-NBFX] (MS OSPed document).
	* XmlBinaryReaderSession.cs : implemented.

	* XmlBinaryDictionaryReaderTest.cs : enable reader-session dependent
	  tests.
	* XmlBinaryDictionaryReaderTest.cs : enable dummy-prefixed attributes
	  tests.


svn path=/trunk/mcs/; revision=130231
2009-03-25 18:48:24 +00:00
Gert Driesen 978309f0b2 * HttpResponseTest.cs: Added tests for bug #485557 and #488702.
Return meaningful value for GetUriPath () in FakeHttpWorkerRequest2
to allow tests to pass on MS.

svn path=/trunk/mcs/; revision=130215
2009-03-25 14:03:36 +00:00
Sebastien Pouliot 01d423c9a1 2009-03-25 Sebastien Pouliot <[email protected]>
* appdomain.c: Bump MONO_CORLIB_VERSION to 73
	* icall.c (ves_icall_System_Delegate_CreateDelegate_internal): Add
	an extra 'throwOnBindFailure' parameter to the icall. Remove FIXME
	and add a call to mono_security_core_clr_ensure_delegate_creation
	to do the extra checks required by CoreCLR.
	* security-core-clr.c|h: Add function to check delegate creation,
	both in the binding and accessibility, under CoreCLR.


svn path=/trunk/mono/; revision=130214
2009-03-25 13:51:05 +00:00
Sebastien Pouliot 9c55fa1106 2009-03-25 Sebastien Pouliot <[email protected]>
* Delegate.cs: Add new parameter to CreateDelegate_internal (icall)
	* Environment.cs: Bump mono_corlib_version to 73


svn path=/trunk/mcs/; revision=130213
2009-03-25 13:51:01 +00:00
Sebastien Pouliot 95446aaeca 2009-03-25 Sebastien Pouliot <[email protected]>
* reflection.c (mono_reflection_create_dynamic_method): when 
	coreclr is enabled make sure that every resolved object are
	checked (e.g. field and method access).
	* security-core-clr.c|h: Add function to check objects resolved
	when a dynamic method is created.


svn path=/trunk/mono/; revision=130206
2009-03-25 12:44:58 +00:00
Raja R Harinath df3d505c6e update known issues
svn path=/trunk/mcs/; revision=130190
2009-03-25 05:21:30 +00:00
Gonzalo Paniagua Javier 1f0cd4174b 2009-03-25 Gonzalo Paniagua Javier <[email protected]>
* HttpResponse.cs: ClearHeaders() also resets cacheability.
	Bug #485557 fixed.


svn path=/trunk/mcs/; revision=130188
2009-03-25 05:18:32 +00:00
Ivan Zlatev ac0846fe54 2009-03-25 Ivan N. Zlatev <[email protected]>
* DataView.cs: Fire ListChanged when the RowFilter changes.
	[Fixes bug #479405]

svn path=/trunk/mcs/; revision=130179
2009-03-25 03:37:52 +00:00
Jb Evain 0c6dbc4174 2009-03-25 Jb Evain <[email protected]>
* DelegateTest.cs: add CreateDelegate tests for valuetype -> object
	conversion for arguments and return types.


svn path=/trunk/mcs/; revision=130176
2009-03-24 23:37:53 +00:00
Jb Evain 36a8c6aa35 2009-03-25 Jb Evain <[email protected]>
* Delegate.cs (CreateDelegate): fix checks to deal with
	valuetypes -> obj conversions for arguments, and avoid
	issues with such unallowed conversion for return types.


svn path=/trunk/mcs/; revision=130175
2009-03-24 23:37:13 +00:00
Rodrigo Kumpera 663468fd81 2009-03-24 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add stream-header and cli-metadata
	helpers.

	* cli-metadata-tests.md: New tests for the cli metadata header
	and streams.

	* Makefile: Add new tests.

svn path=/trunk/mono/; revision=130173
2009-03-24 22:58:15 +00:00
Rodrigo Kumpera 47f3dc7753 2009-03-24 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Cache directory rva translations.

	* metadata-verify.c: Add cli-header and streams verification.

svn path=/trunk/mono/; revision=130172
2009-03-24 22:58:13 +00:00
Rodrigo Kumpera cc023d623b 2009-03-24 Rodrigo Kumpera <[email protected]>
* image.c (load_metadata_ptrs): We decode MonoImage::md_version_minor at
	the wrong offset (8 instead of 6).

svn path=/trunk/mono/; revision=130171
2009-03-24 22:57:51 +00:00
Mark Probst 68074a6313 Forgot to add tests/interlocked-3.cs.
svn path=/trunk/mono/; revision=130167
2009-03-24 22:42:39 +00:00
Gonzalo Paniagua Javier abfa80f6bd 2009-03-24 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: we were sending CWD instead of PWD.
	Bug #486703 fixed.


svn path=/trunk/mcs/; revision=130157
2009-03-24 21:07:44 +00:00
Gonzalo Paniagua Javier db1184228b 2009-03-24 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: MacOS has different arguments for ping.
	Bug #486904 fixed.


svn path=/trunk/mcs/; revision=130154
2009-03-24 21:00:01 +00:00
Mark Probst d4e5947ea8 ATOMIC_CAS with 3 sregs.
2009-03-24  Mark Probst  <[email protected]>

        * mini-ops.h: New ternary ATOMIC_CAS ops replace the old
        ATOMIC_CAS_IMM ops.

        * method-to-ir.c: Handle more cases for
        Interlocked.CompareExchange.

        * cpu-x86.md, mini-x86.c, mini-x86.h, cpu-amd64.md,
        * mini-amd64.c,
        mini-amd64.h, cpu-ppc.md, cpu-ppc64.md, mini-ppc.c, mini-ppc.h:
        ATOMIC_CAS implementations for x86, AMD64, PPC and PPC64.

2009-03-24  Mark Probst  <[email protected]>

        * interlocked-3.cs: New CompareExchange test.

        * Makefile.am: Test added.

svn path=/trunk/mono/; revision=130153
2009-03-24 20:33:21 +00:00
Marek Safar bc3762a407 2009-03-24 Marek Safar <[email protected]>
* ecore.cs, expression.cs: Use queried type for MethodGroupExpr
	DeclaringType.


svn path=/trunk/mcs/; revision=130138
2009-03-24 16:11:04 +00:00
Zoltan Varga ea17d8f05b 2009-03-24 Zoltan Varga <[email protected]>
* thread6.cs: Add back a sleep to avoid a race.

svn path=/trunk/mono/; revision=130126
2009-03-24 14:16:23 +00:00
Marek Habersack fe15b22c9e Revert r130049
svn path=/trunk/mcs/; revision=130110
2009-03-24 08:48:23 +00:00
Marek Habersack 55996fb2be Revert "Forgotten ChangeLog entry"
svn path=/trunk/mcs/; revision=130109
2009-03-24 08:48:06 +00:00
Atsushi Eno 35ebdc3bc4 2009-03-24 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, XmlFormatterDeserializer.cs:
          empty collection deserialization resulted in extra
          consumption of the next xml node.


svn path=/trunk/mcs/; revision=130108
2009-03-24 07:50:24 +00:00
Zoltan Varga 03f8d1a689 2009-03-23 Zoltan Varga <[email protected]>
* Makefile.am (libmonoutils_la_SOURCES): Fix make dist.

svn path=/trunk/mono/; revision=130095
2009-03-23 22:01:14 +00:00
Zoltan Varga bc1fec26b1 2009-03-23 Zoltan Varga <[email protected]>
* PageCompiler.cs: Fix the build.

svn path=/trunk/mcs/; revision=130093
2009-03-23 21:58:58 +00:00
Marek Habersack 73f04c137f 2009-03-23 Marek Habersack <[email protected]>
* TemplateBuildProvider.cs: add values of the CodeFile and Src
	page/master/control directives to the list of file dependencies.
	Extract language also for master/page, not only for controls.

	* PageCompiler.cs: CreateConstructors now triggers master page
	build, if the current page is using one. Fixes bug #487857

svn path=/trunk/mcs/; revision=130082
2009-03-23 19:58:36 +00:00
Veerapuram Varadhan f71d07b3df Properly handle TDS 8 BigInt type
Proper handling of TDS 8 BigInt type

svn path=/trunk/mcs/; revision=130081
2009-03-23 19:33:59 +00:00
Gonzalo Paniagua Javier c91a6cee78 Patch from Matthew Metnestsky
svn path=/trunk/mcs/; revision=130076
2009-03-23 17:36:28 +00:00
Marek Safar 4853808430 New test.
svn path=/trunk/mcs/; revision=130075
2009-03-23 16:16:57 +00:00
Marek Safar 7e75d50b88 2009-03-23 Marek Safar <[email protected]>
* attribute.cs: Consider all members for error reporting when
	checking named arguments.


svn path=/trunk/mcs/; revision=130074
2009-03-23 16:16:45 +00:00
Marek Safar 46ef347166 Removed obsolete test
svn path=/trunk/mcs/; revision=130066
2009-03-23 15:29:56 +00:00
Marek Safar fdc0c0a750 New test.
svn path=/trunk/mcs/; revision=130061
2009-03-23 15:05:00 +00:00
Marek Safar 3595e78016 2009-03-23 Marek Safar <[email protected]>
A fix for bug #487625
	* namespace.cs: Use a warning for all predefined type conflicts.


svn path=/trunk/mcs/; revision=130060
2009-03-23 15:04:42 +00:00
Zoltan Varga c1279acebe In metadata/
2009-03-23  Zoltan Varga  <[email protected]>

	* marshal.c (mono_delegate_to_ftnptr): For delegates wrapping pinvoke
	methods, return the native function address itself. Fixes
	#487758.

In tests/

2009-03-23  Zoltan Varga  <[email protected]>

	* pinvoke-2.2.cs libtest.c: Add a test for #487758.

svn path=/trunk/mono/; revision=130057
2009-03-23 14:39:12 +00:00
Jonathan Pryor 94d1b3712c * UnixDriveInfo.cs: UnixDriveInfo.AvailableFreeSpace needs to return
stat.f_bavail * stat.f_frsize, NOT f_bavail*f_bsize, as on some
	  platforms (Solaris) bsize is the preferred block I/O size, while
	  f_frsize is the *actual* filesystem block size.  Thus, to get proper
	  disk under Solaris, we need to s/f_bsize/f_frsize/g.

svn path=/trunk/mcs/; revision=130055
2009-03-23 14:34:17 +00:00
Zoltan Varga a7c54390c3 2009-03-23 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_method_ref): Fix a warning.

	* unwind.c (mono_unwind_frame): Ditto.

svn path=/trunk/mono/; revision=130054
2009-03-23 14:16:26 +00:00
Marek Habersack 807830905f Forgotten ChangeLog entry
svn path=/trunk/mcs/; revision=130050
2009-03-23 12:57:17 +00:00
Marek Habersack 82bbdb387b 2009-03-23 Marek Habersack <[email protected]>
* ConsoleTest.cs: added a bunch of tests for the standard input,
	output and error stream properties.

2009-03-23  Marek Habersack  <[email protected]>

	* FileStreamTest.cs: added a bunch of tests for SafeFileHandle
	constructors

2009-03-23  Marek Habersack  <[email protected]>

	* Console.cs: OpenStandard{Input,Output,Error} no longer use
	FileStream on 2.0+. The reason is that SafeFileHandle used in the
	stream doesn't allow handles with values <= 0, and on Unix stdin
	is 0 which would break the Console class. Instead of FileStream,
	introduced a simple internal specialized stream which is used in
	this scenario.

2009-03-23  Marek Habersack  <[email protected]>

	* FileStream.cs: implemented full support for SafeFileHandle in
	2.0. The obsolete constructors taking an IntPtr now wrap it in a
	SafeFileHandle.

2009-03-23  Marek Habersack  <[email protected]>

	* SafeHandle.cs: added an internal property, OwnsHandle, used by
	FileStream.

svn path=/trunk/mcs/; revision=130049
2009-03-23 12:57:04 +00:00
Marek Safar 50d3a6417b 2009-03-23 Marek Safar <[email protected]>
A fix for bug #485706
	* statement.cs: Explicitly type catch type argument to pass verifier
	check.


svn path=/trunk/mcs/; revision=130048
2009-03-23 12:43:54 +00:00
Marek Safar 6f2b5cd69f New test.
svn path=/trunk/mcs/; revision=130047
2009-03-23 12:42:57 +00:00
Zoltan Varga 9a7ea4a60a 2009-03-23 Zoltan Varga <[email protected]>
* StringTest.cs (LastIndexOfStringComparison): Add a test for #486234.

svn path=/trunk/mcs/; revision=130038
2009-03-23 11:20:30 +00:00
Zoltan Varga 40ac954554 2009-03-23 Zoltan Varga <[email protected]>
* String.cs (LastIndexOf): Handle empty strings correctly. Fixes #486234.

svn path=/trunk/mcs/; revision=130037
2009-03-23 11:20:08 +00:00
Massimiliano Mantione e9fca61eae Updated the profiler documentation.
svn path=/trunk/mono/; revision=130030
2009-03-23 09:46:24 +00:00
Massimiliano Mantione 9f1f22809a mono-profiler-logging.c: Removed useless "gc-signal" option (the newer "heap=<SIGNAL>" format of the "heap" option does the same thing).
svn path=/trunk/mono/; revision=130029
2009-03-23 09:46:21 +00:00
Gonzalo Paniagua Javier f0fc8c02dc 2009-03-23 Gonzalo Paniagua Javier <[email protected]>
* console-io.c: some of the values for control characters might not be
	present.


svn path=/trunk/mono/; revision=130024
2009-03-23 04:39:10 +00:00
Zoltan Varga 811ef67163 2009-03-22 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_unbox_trampoline): Fix the binary writer support.
	(mono_compile_assembly): Enable the binary writer for full-aot as well.

	* image-writer.c (do_reloc): Add support for the JUMP24 relocation,
	fix the handling of large values in the ALU_PC_G0_NC relocation.

svn path=/trunk/mono/; revision=130003
2009-03-22 18:34:24 +00:00
Marek Habersack 12b3308fec 2009-03-22 Marek Habersack <[email protected]>
* FileStream.cs: implemented the SafeFileHandle property.

svn path=/trunk/mcs/; revision=130002
2009-03-22 18:27:08 +00:00
Miguel de Icaza c32d295832 2009-03-22 Miguel de Icaza <[email protected]>
* driver.cs (Main): Use Environment.Exit to quit quickly and
	prevent the compiler from doing the usual wait for helper thread
	to terminate.  

	This is to prevent a slowdown that was reported by Gonzalo on
	ASP.NET 

svn path=/trunk/mcs/; revision=129990
2009-03-22 17:24:44 +00:00
Zoltan Varga 55a5425a4f 2009-03-22 Zoltan Varga <[email protected]>
* local-propagation.c method-to-ir.c local-propagation.c: Fix warnings.

svn path=/trunk/mono/; revision=129989
2009-03-22 17:10:06 +00:00
Zoltan Varga 29bbcbf27f 2009-03-22 Zoltan Varga <[email protected]>
* gc_wrapper.h: Disable thread local allocation for ARM too because of
	incomplete support in libgc.

svn path=/trunk/mono/; revision=129988
2009-03-22 16:06:05 +00:00
Mark Probst aec27b213a Spilling for ternary ops.
2009-03-22  Mark Probst  <[email protected]>

        * method-to-ir.c (mono_spill_global_vars): Support for ternary
        ops.

svn path=/trunk/mono/; revision=129987
2009-03-22 15:56:03 +00:00
Mark Probst c76f08810f Small ternary ops fixes.
2009-03-22  Mark Probst  <[email protected]>

        * method-to-ir.c: MINI_OP3 needs a comma.

        * method-to-ir.c, mini.h, mini.c: Remove
        mono_init_op_sreg_counts ().

svn path=/trunk/mono/; revision=129986
2009-03-22 15:54:56 +00:00
Zoltan Varga 40cc71d8e0 2009-03-22 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_output_basic_block): Fix aot support in
	OP_JMP.

svn path=/trunk/mono/; revision=129985
2009-03-22 15:12:03 +00:00
Jonathan Pryor 30cd77c3a7 * Mono.Documentation/monodocs2html.cs: Perform the timestamp check for
the top-level and namespace-level index files.

svn path=/trunk/mcs/; revision=129970
2009-03-22 03:48:16 +00:00
Zoltan Varga de3611277e 2009-03-22 Zoltan Varga <[email protected]>
* mini-ops.h: Fix arguments of the MEMINDEX opcodes.

svn path=/trunk/mono/; revision=129969
2009-03-22 03:16:23 +00:00
Zoltan Varga 80d9f909ec 2009-03-22 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_build_imt_thunk): Disable the !fail_tramp
	assertion.

	* mini-ops.h: Fix arguments of the MEMINDEX opcodes.

svn path=/trunk/mono/; revision=129968
2009-03-22 03:02:29 +00:00
Zoltan Varga d855998471 2009-03-22 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_build_imt_thunk): Simplify the fail handling
	code somewhat.

svn path=/trunk/mono/; revision=129967
2009-03-22 02:32:24 +00:00
Daniel Nauck 808765cc61 2009-03-22 Daniel Nauck <[email protected]>
* GenerateResource.cs: Set BasePath property of
                ResXResourceReader class.
                See: http://lists.ximian.com/pipermail/mono-devel-list/2009-March/031459.html


svn path=/trunk/mcs/; revision=129966
2009-03-21 23:27:45 +00:00
Sebastien Pouliot de24b807f5 2009-03-21 Sebastien Pouliot <[email protected]>
* exception.c|h: Add helpers to create [Field|Method]AccessException
	* icall.c: Add required coreclr check calls for field reflection.
	Move the existing (method) check logic into security-core-clr.c
	* security-core-clr.c: Add functions to check if the access of a
	field or method is allowed when reflecting under coreclr. This is
	mostly done using a stack walk to find the "real" caller: i.e. the
	code that is calling the reflection


svn path=/trunk/mono/; revision=129959
2009-03-21 14:41:46 +00:00
Mark Probst 0e93962a24 Ternary IR ops in mini.
2009-03-21  Mark Probst  <[email protected]>

        * cfold.c, cprop.c, decompose.c, genmdesc.c, helpers.c, ir-emit.h,
        liveness.c, local-propagation.c, method-to-ir.c, mini-codegen.c,
        mini.c, mini.h, simd-intrinsics.c, ssa.c: Support for ternary IR
        operations.

svn path=/trunk/mono/; revision=129944
2009-03-21 08:04:35 +00:00
Jonathan Pryor 11600ea1c2 * Mono.Documentation/monodocer.cs: Be nice to make,
mdoc-export-html, and other apps that use file timetamps: if the 
	  file contents haven't changed after the update, don't replace the
	  "original" file.  This preserves file timestamps, thus allowing
	  other apps to behave nicely (e.g. mdoc-export-html won't update all
	  documentation after running mdoc-update, as the files won't change
	  unless something has *actually* changed).

svn path=/trunk/mcs/; revision=129940
2009-03-21 04:04:11 +00:00
Jonathan Pryor 83657c1193 * mdoc-export-html.1: Document --force-update parameter.
svn path=/trunk/mono/; revision=129937
2009-03-21 02:54:43 +00:00
Jonathan Pryor d1e415e292 * Mono.Documentation/monodocs2html.cs: Do as make(1) does: if the
target file already exists and is newer than the source file, don't
	  regenerate it.  (Greatly speeds things up if only a few .xml files
	  changed.)  Add a --force-update option to disable this behavior.

svn path=/trunk/mcs/; revision=129936
2009-03-21 02:49:24 +00:00
Marek Habersack e47e456963 2009-03-21 Marek Habersack <[email protected]>
* HttpSessionState.cs: implemented the CookieMode property.

svn path=/trunk/mcs/; revision=129934
2009-03-21 02:12:29 +00:00
Marek Habersack 505af21987 2009-03-21 Marek Habersack <[email protected]>
* HttpResponse.cs: added two missing 3.0+ properties -
	SubStatusCode and TrySkipIisCustomErrors.

svn path=/trunk/mcs/; revision=129933
2009-03-21 02:06:03 +00:00
Marek Habersack 1de077ed1a Fix the build
svn path=/trunk/mono/; revision=129930
2009-03-20 22:52:33 +00:00
Zoltan Varga 65e199715c 2009-03-20 Zoltan Varga <[email protected]>
* mono/os: Remove this now empty directory.
	
	* mono/Makefile.am (SUBDIRS): Remove 'os'.

svn path=/trunk/mono/; revision=129929
2009-03-20 21:38:56 +00:00
Zoltan Varga 0957f1ab66 2009-03-20 Zoltan Varga <[email protected]>
* os/gc-internal.h: Move this to 'utils'.


svn path=/trunk/mono/; revision=129928
2009-03-20 21:37:08 +00:00
Zoltan Varga 2b6498793d 2009-03-20 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_find_block_region): Handle try clauses nested
	inside finally clauses correctly. Fixes #485721.

	* mini.c (mono_find_spvar_for_region): This needs to handle try regions
	after the change above.

	* exceptions.cs: Add a test.

svn path=/trunk/mono/; revision=129927
2009-03-20 21:31:14 +00:00
Zoltan Varga d5b0cad8e9 2009-03-20 Zoltan Varga <[email protected]>
* mono-gdb.py: Update for the latest python API on the archer branch.

svn path=/trunk/mono/; revision=129926
2009-03-20 21:04:50 +00:00
Zoltan Varga c552fc684b 2009-03-20 Zoltan Varga <[email protected]>
* thread6.cs: Use a monitor to avoid sleeping which doesn't work on slow
	machines.

svn path=/trunk/mono/; revision=129925
2009-03-20 21:04:00 +00:00
Jonathan Pryor 8165d2eaf5 * x-struct-str.c: It's possible for struct members to be NULL, so make
sure we don't pass NULL to strlen(3).

svn path=/trunk/mono/; revision=129882
2009-03-20 16:32:43 +00:00
Sebastien Pouliot f65c498eff 2009-03-20 Sebastien Pouliot <[email protected]>
* class.c: Simplification to coreclr checks for overrides that
	makes it easier to set breakpoints.


svn path=/trunk/mono/; revision=129880
2009-03-20 16:24:39 +00:00
Zoltan Varga 6708c4454e 2009-03-20 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_find_block_region): Handle try clauses nested
	inside finally clauses correctly. Fixes #485721.

	* mini.c (mono_find_spvar_for_region): This needs to handle try regions
	after the change above.

	* exceptions.cs: Add a test.

svn path=/trunk/mono/; revision=129877
2009-03-20 15:53:35 +00:00
Sebastien Pouliot 6f2cceca57 2009-03-20 Sebastien Pouliot <[email protected]>
* EventInfo.cs, MonoProperty.cs: Ensure the delegate optimization 
	works correctly, i.e. throw the right exception, with Moonlight.


svn path=/trunk/mcs/; revision=129872
2009-03-20 14:02:16 +00:00
Sebastien Pouliot 46bf0c89fe 2009-03-20 Sebastien Pouliot <[email protected]>
* DynamicMethod.cs (Invoke): Wrap a MethodAccessException inside a
	TargetInvocationException (required for Moonlight 2).


svn path=/trunk/mcs/; revision=129871
2009-03-20 13:48:57 +00:00
Sebastien Pouliot 767890620a 2009-03-20 Sebastien Pouliot <[email protected]>
* security-core-clr.c|h: (mono_security_core_clr_class_level, 
	mono_security_core_clr_method_level): Avoid potential 
	MonoCustomAttrInfo allocation for transparent assemblies (e.g. 
	user/application code) and make it easier to set breakpoints


svn path=/trunk/mono/; revision=129866
2009-03-20 13:10:43 +00:00
Daniel Morgan a5de0a51df 2009-03-20 Daniel Morgan <[email protected]>
* OracleCommand.cs: fix suggested by Thracx <[email protected]>
	where the parameter was always item zero for an out parameter.

svn path=/trunk/mcs/; revision=129864
2009-03-20 11:11:57 +00:00
Rodrigo Kumpera c3fd9db3d5 2009-03-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Reject cli header tables that mono don't handle.

svn path=/trunk/mono/; revision=129835
2009-03-19 22:32:11 +00:00
Rodrigo Kumpera 61a1071083 2009-03-19 Rodrigo Kumpera <[email protected]>
* cli-header-tests.md: More tests for the cli header.

svn path=/trunk/mono/; revision=129834
2009-03-19 22:32:03 +00:00
Rodrigo Kumpera e75f2aa853 2009-03-19 Rodrigo Kumpera <[email protected]>
* pedump.c: Fix CLI header dumping.

svn path=/trunk/mono/; revision=129833
2009-03-19 22:32:01 +00:00
Rodrigo Kumpera 5bcd8059fe 2009-03-19 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: More CLI header verification.

svn path=/trunk/mono/; revision=129832
2009-03-19 22:31:53 +00:00
Rodrigo Kumpera 7993c2e3d5 2009-03-19 Rodrigo Kumpera <[email protected]>
* gen-md-tests.c: Add cli-header variable to make tests
	more readable.

svn path=/trunk/mono/; revision=129831
2009-03-19 22:31:46 +00:00
Zoltan Varga aad1c133fa 2009-03-19 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_ops_encode): Increase the size of the encode buffer.

	* mini-amd64.c (mono_arch_emit_epilog): Remove the encoding of stack size
	into cfg->used_int_regs, it is not needed with the dwarf unwinder.
	(mono_arch_compute_omit_fp): Remove the emit_epilog () workaround.

svn path=/trunk/mono/; revision=129826
2009-03-19 21:18:52 +00:00
Zoltan Varga 816b76c13e 2009-03-19 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_compute_omit_fp): Add another check to avoid hitting
	the stack_alloc_size < (1 << 16) assertion in emit_prolog ().

svn path=/trunk/mono/; revision=129824
2009-03-19 21:08:18 +00:00
Jonathan Pryor fd45105d28 * src/DbLinq/Data/Linq/Database/Implementation/TransactionalCommand.cs,
src/DbLinq.Firebird/FirebirdDataContext.cs,
	  src/DbLinq.Ingres/IngresDataContext.cs,
	  src/DbLinq.MySql/MysqlDataContext.cs,
	  src/DbLinq.Oracle/OracleDataContext.cs,
	  src/DbLinq.PostgreSql/PgsqlDataContext.cs,
	  src/DbLinq.Sqlite/Schema/DataCommand.cs,
	  src/DbLinq.Sqlite/SqliteDataContext.cs,
	  src/DbLinq.SqlServer/SqlServerDataContext.cs,
	  src/DbLinq/Util/ReflectionUtility.cs: Make types internal so that
	  they aren't exported from System.Data.Linq.dll.

svn path=/trunk/mcs/; revision=129823
2009-03-19 21:00:27 +00:00
Ivan Zlatev ff4843aeab 2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: If IsHandleCreated and the very first row is added
	to the grid in a non-databound scenario - select the first cell.2009-03-19  Ivan N. Zlatev  <[email protected]>
	* DataGridViewTest.cs: Add tests to verify that the current cell changes
	if IsHandleCreated and the first row is added in a non-databound scenario.
	[Fixes bug #486881]

svn path=/trunk/mcs/; revision=129815
2009-03-19 18:59:57 +00:00
Marek Safar 65ba363481 2009-03-19 Marek Safar <[email protected]>
* ecore.cs: Load build-in types directly instead of accessing
	an internal field.


svn path=/trunk/mcs/; revision=129812
2009-03-19 18:44:28 +00:00
Sebastien Pouliot 971236a989 2009-03-19 Sebastien Pouliot <[email protected]>
* method-to-ir.c: Allow CoreCLR to throw FieldAccessException. 
	Simplify logic for ensure_method_is_allowed_to_call_method. 
	Handle wrappers on callers.


svn path=/trunk/mono/; revision=129810
2009-03-19 18:38:42 +00:00
Ivan Zlatev b7a4136f89 2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
	DataGridView. They do not belong to a DataGridView.
	* DataGridViewTest.cs, DataGridViewColumnTest.cs: Add tests for
	Row/CellTemplates being always null.
	[Fixes bug #486645]

svn path=/trunk/mcs/; revision=129806
2009-03-19 18:10:03 +00:00
Ivan Zlatev 55953cbcb5 2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs:
	Set indices and associate with DataGridView only after the item is
	add to the internal list.
	[Fixes part of bug #486645]

svn path=/trunk/mcs/; revision=129805
2009-03-19 18:09:59 +00:00
Ivan Zlatev 52a121eb03 2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount.
	FullRowTemplate already contains all the cells.
	[Fixes part of bug #486645]

svn path=/trunk/mcs/; revision=129804
2009-03-19 18:09:54 +00:00
Ivan Zlatev 27894abb99 2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal
	to perform Pre and Post removal actions to allow the current cell to be
	moved and all events fired properly before the column is removed.

svn path=/trunk/mcs/; revision=129803
2009-03-19 18:09:38 +00:00
Zoltan Varga 2c669dd396 2009-03-19 Zoltan Varga <[email protected]>
* Makefile.am (fullaotcheck): Don't run the generics tests, some of
	them don't run yet.

svn path=/trunk/mono/; revision=129802
2009-03-19 17:58:09 +00:00
Zoltan Varga 5b81c7b8d2 2009-03-19 Zoltan Varga <[email protected]>
* basic-simd.cs: Fix the names of some test methods.

svn path=/trunk/mono/; revision=129801
2009-03-19 17:57:04 +00:00
Zoltan Varga 84f8db78ea 2009-03-19 Zoltan Varga <[email protected]>
* locales.c (get_current_locale_name): Use g_malloc instead of malloc.

svn path=/trunk/mono/; revision=129798
2009-03-19 17:42:53 +00:00
Marek Habersack bf6f68cf2d 2009-03-19 Marek Habersack <[email protected]>
* ScriptManager.cs: WriteCallbackPanel is called from
	UpdatePanel.RenderChildren and should not output anything for
	panels registered as the ones to refresh. If such a panel calls
	this method, its output is stored in a dictionary to be used later
	in RenderFormCallback.
	RenderFormCallback first renders all the form controls. In that
	process UpdatePanel instances, if any, may call
	WriteCallbackPanel. After that, if there are panels registered for
	refresh, another loop over the list is made this time checking
	whether any panels left their output in WriteCallbackPanel. If a
	panel hasn't done it it is rendered. And last, another check is
	done to see if the loop described above caused any panels to leave
	output in WriteCallbackPanel. If yes, the output is written to the
	text writer.

svn path=/trunk/mcs/; revision=129774
2009-03-19 13:44:14 +00:00
Sebastien Pouliot bdf2e3d53c 2009-03-19 Sebastien Pouliot <[email protected]>
* SecurityManager.cs: Remove VerificationException (not used from
	the runtime anymore) and add FieldAccessException (which is now, 
	or soon will be, required/used by the runtime).


svn path=/trunk/mcs/; revision=129771
2009-03-19 12:05:13 +00:00
Atsushi Eno d0a12f275e 2009-03-19 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs, XmlFormatterDeserializer.cs :
          to infer type from xml qname, consider DataContractAttribute
          names.


svn path=/trunk/mcs/; revision=129764
2009-03-19 08:12:07 +00:00
Ankit Jain b9c43ff152 Fix bugs #323833 and #484384.
* AssemblyResolver.cs (GatherGacAssemblies): Handle duplicate entries.
These seem to be old copies of the assemblies with old keys. Pick
the one with the latest timestamp.

svn path=/trunk/mcs/; revision=129760
2009-03-19 01:09:56 +00:00
Ankit Jain e4baa57b8e Fix bug #484773.
* Main.cs (Execute): Check whether the project file exists or not.
* Parameters.cs (ParseArguments): Handle absolute paths too.

svn path=/trunk/mcs/; revision=129759
2009-03-19 00:58:12 +00:00
Ivan Zlatev 64324bccab 2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and
	Post removal action to allow the current cell to be moved and all events fired
	properly before the row is removed.

svn path=/trunk/mcs/; revision=129757
2009-03-19 00:26:30 +00:00
Ivan Zlatev cc3a0049dc 2009-03-18 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
	[Fixes bug #486640]

svn path=/trunk/mcs/; revision=129747
2009-03-18 23:19:50 +00:00
Rodrigo Kumpera 94071d0c67 2009-03-18 Rodrigo Kumpera <[email protected]>
* cli-header-tests.md: New file with cli header tests.

	* Makefile: Add new tests.

svn path=/trunk/mono/; revision=129743
2009-03-18 22:33:28 +00:00
Rodrigo Kumpera 80dd1b75b1 2009-03-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Initial verification of the CLI header.

svn path=/trunk/mono/; revision=129742
2009-03-18 22:33:26 +00:00
Rodrigo Kumpera a7d8eba483 2009-03-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (verify_resources_table): Fix verification of zero
	sized resource section and id entries count.

svn path=/trunk/mono/; revision=129741
2009-03-18 22:33:19 +00:00
Geoff Norton ab07b0dc5c 2009-03-18 Geoff Norton <[email protected]>
* mini.c: Only chain sigfpe if it wasn't generated in mangaed code.

svn path=/trunk/mono/; revision=129736
2009-03-18 19:29:33 +00:00
Marek Safar 9926422d2c Update.
svn path=/trunk/mcs/; revision=129721
2009-03-18 17:38:06 +00:00
Marek Safar acfe0fd967 2009-03-18 Marek Safar <[email protected]>
* ecore.cs: Always use unbox.any when available.


svn path=/trunk/mcs/; revision=129719
2009-03-18 17:36:46 +00:00
Marek Safar 7f33c2d6ec New tests.
svn path=/trunk/mcs/; revision=129715
2009-03-18 17:17:58 +00:00
Marek Safar 290a9b551f 2009-03-18 Marek Safar <[email protected]>
* class.cs: Always set TypeAttributes.BeforeFieldInit conditionally.


svn path=/trunk/mcs/; revision=129714
2009-03-18 17:17:43 +00:00
Jonathan Pobst ee954954e2 2009-03-18 Jonathan Pobst <[email protected]>
* XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
	placement of popup windows on OSX.

svn path=/trunk/mcs/; revision=129699
2009-03-18 14:46:47 +00:00
Zoltan Varga 00b8b75249 2009-03-18 Zoltan Varga <[email protected]>
* TypeTest.cs: Add more tests for user types.

svn path=/trunk/mcs/; revision=129693
2009-03-18 14:15:57 +00:00
Zoltan Varga 49175a55fe 2009-03-18 Zoltan Varga <[email protected]>
* TypeBuilder.cs (GetGenericTypeDefinition): Call the icall instead of
	the base method which now throws an exception.

svn path=/trunk/mcs/; revision=129692
2009-03-18 14:15:30 +00:00
Zoltan Varga c9dc5502c1 2009-03-18 Zoltan Varga <[email protected]>
* Type.cs (GetGenericTypeDefinition): Make this throw an exception to be
	consistent with MS.NET. Move the real implementation to MonoType.

svn path=/trunk/mcs/; revision=129691
2009-03-18 14:14:44 +00:00
Zoltan Varga d06e4de838 2009-03-18 Zoltan Varga <[email protected]>
* icall.c: Handle user types in many Type icalls. Fixes #486303.

svn path=/trunk/mono/; revision=129689
2009-03-18 14:08:04 +00:00
Zoltan Varga 16a7a24122 2009-03-18 Zoltan Varga <[email protected]>
* dwarfwriter.c (token_handler): Fix a crash caused by the last change.

svn path=/trunk/mono/; revision=129688
2009-03-18 13:24:02 +00:00
Marek Safar 590aaf0276 2009-03-18 Marek Safar <[email protected]>
* Decimal.cs: Initialize all fields.


svn path=/trunk/mcs/; revision=129686
2009-03-18 12:42:54 +00:00
Marek Habersack 99b5e370f6 2009-03-18 Marek Habersack <[email protected]>
* Control.cs: AppRelativeResourceDirectory no longer returns a
	hard-coded "~/" when template control's virtual path cannot be
	determined. It returns application relative version of
	TemplateSourceDirectory instead.

svn path=/trunk/mcs/; revision=129676
2009-03-18 08:08:19 +00:00
Atsushi Eno 52197296f0 2009-03-18 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : more not-understandable bits.


svn path=/trunk/mcs/; revision=129675
2009-03-18 07:19:33 +00:00
Atsushi Eno 0ad299bd14 2009-03-18 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : implemented ReadFullStartElement (full??).


svn path=/trunk/mcs/; revision=129674
2009-03-18 07:04:30 +00:00
Atsushi Eno 273288d6d0 2009-03-18 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : implemented missing && understandable
	  members.


svn path=/trunk/mcs/; revision=129673
2009-03-18 06:51:59 +00:00
Atsushi Eno 87dcaba14c 2009-03-18 Atsushi Enomoto <[email protected]>
* XmlReader.cs : handle DateTimeOffset in typed reader methods.


svn path=/trunk/mcs/; revision=129672
2009-03-18 06:36:24 +00:00
Neville Gao 729e866f15 Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
[Fixes bug #482690]. Committed for Matt Guo.

svn path=/trunk/mcs/; revision=129669
2009-03-18 02:53:24 +00:00
Ivan Zlatev 8929f67f06 2009-03-18 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Implement the CellMouseDoubleClick event.
	[Fixes bug #486262]

svn path=/trunk/mcs/; revision=129661
2009-03-18 01:37:02 +00:00
Ivan Zlatev 082eac3859 2009-03-18 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix scrolling to take into account that the
	scrollbars are actually inside the client area of the datagridview.

svn path=/trunk/mcs/; revision=129657
2009-03-18 01:03:25 +00:00
Ivan Zlatev 93ef282358 2009-03-18 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Implement mouse wheel scrolling.
	[Fixes bug #486159]

svn path=/trunk/mcs/; revision=129656
2009-03-18 01:03:20 +00:00
Ivan Zlatev 9db7d14fdb 2009-03-17 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: When DataSource changes the rebinding should happen
	not if IsHandleCreated but if BindingContext != null.
	* DataGridViewTest.cs: Add tests for the relevance of IsHandleCreated and
	the BindingContext for the databound state of the DataGridView.
	[Fixes bug #486013]

svn path=/trunk/mcs/; revision=129651
2009-03-17 23:54:18 +00:00
Ivan Zlatev 468e45887c 2009-03-17 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Browsable(false) properties should be skipped when
	autogenerating the columns.
	* DataGridViewTest.cs: Add a test for Browsable(false) columns.
	[Fixes bug #486021]

svn path=/trunk/mcs/; revision=129637
2009-03-17 22:33:08 +00:00
Jb Evain 53910cb127 2009-03-17 Jb Evain <[email protected]>
* driver.c: remove now uneeded call to mono_gc_base_init before
	mono_profiler_load.


svn path=/trunk/mono/; revision=129635
2009-03-17 22:18:07 +00:00
Jb Evain 591a8a6afa 2009-03-17 Jb Evain <[email protected]>
* profiler.c: call mono_gc_base_init from mono_profiler_load.


svn path=/trunk/mono/; revision=129634
2009-03-17 22:16:48 +00:00
Jb Evain 8e320e7547 2009-03-17 Jb Evain <[email protected]>
* dwarfwriter.c (token_handler): handle more cases.


svn path=/trunk/mono/; revision=129633
2009-03-17 22:15:09 +00:00
Zoltan Varga ac07d9f2f5 2009-03-17 Zoltan Varga <[email protected]>
* sgen-gc.c (mono_gc_make_descr_for_object): Fix 64 bit support.
	(mono_gc_make_descr_for_array): Ditto.

svn path=/trunk/mono/; revision=129628
2009-03-17 21:08:17 +00:00
Marek Habersack 5a63ec5da9 2009-03-17 Marek Habersack <[email protected]>
* Unit.cs: introduced a field to tell the difference between empty
	(as in Unit.Empty) and 0px units.

2009-03-17  Marek Habersack  <[email protected]>

	* UnitTest.cs: added a test for equality with Unit.Empty

svn path=/trunk/mcs/; revision=129620
2009-03-17 19:01:30 +00:00
Marek Safar 9d23552efb 2009-03-17 Marek Safar <[email protected]>
* generic.cs: Removed obsolete version of type inference.

svn path=/trunk/mcs/; revision=129605
2009-03-17 16:43:24 +00:00
Sebastien Pouliot 463f42eeed 2009-03-17 Sebastien Pouliot <[email protected]>
* verify.c (mono_verifier_is_class_full_trust): Add support for
	CoreCLR security mode where trusted assemblies are defined as
	"platform code".


svn path=/trunk/mono/; revision=129588
2009-03-17 14:39:37 +00:00
Sebastien Pouliot cc9174c060 2009-03-17 Sebastien Pouliot <[email protected]>
* method-to-ir.c: Remove more dead code (that was required only
	because of method_is_safe). Fix compiler warnings.


svn path=/trunk/mono/; revision=129585
2009-03-17 14:00:56 +00:00
Sebastien Pouliot 7eab314716 2009-03-17 Sebastien Pouliot <[email protected]>
* method-to-ir.c: Remove unneeded/useless method_is_safe
	http://lists.ximian.com/archives/public/mono-devel-list/2009-March/031404.html


svn path=/trunk/mono/; revision=129583
2009-03-17 13:36:00 +00:00
Marek Habersack 9ccd39fb07 2009-03-17 Marek Habersack <[email protected]>
* JavaScriptSerializer.cs: if conversion of IDictionary or
	IDictionary <K,V> to an object is requested, make sure that a
	concrete type is used (in both cases Dictionary <string, object>).
	Make sure that if the target type is an IDictionary<K,V> that the
	key is either an object or a string.

2009-03-17  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: added tests for conversion to
	IDictionary and IDictionary <K,V> types.

svn path=/trunk/mcs/; revision=129580
2009-03-17 13:21:57 +00:00
Atsushi Eno efb1509fd7 2009-03-17 Atsushi Enomoto <[email protected]>
* Expression.cs : gave up another optimization for bug #443090.

	* SelectNodesTests.cs : added 2nd test for bug #443490.


svn path=/trunk/mcs/; revision=129574
2009-03-17 11:29:32 +00:00
Atsushi Eno 40a7f089a1 2009-03-17 Atsushi Enomoto <[email protected]>
* XPathExpression.cs : eliminate use of ExpressionCache and lose
	  significant performance in some use for the sake of multithreaded
	  use. Fixed bug #477049.


svn path=/trunk/mcs/; revision=129545
2009-03-17 08:54:09 +00:00
Atsushi Eno 65f82e7013 2009-03-17 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : some weird TextWriter has null Encoding.
	  Fixed bug #372525.


svn path=/trunk/mcs/; revision=129534
2009-03-17 07:56:21 +00:00
Atsushi Eno 19813940cf 2009-03-17 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : check identity constraints on default or
	  fixed attributes too.


svn path=/trunk/mcs/; revision=129532
2009-03-17 07:34:10 +00:00
Carlos Alberto Cortez 0bf6e9d56b 2009-03-16 Carlos Alberto Cortez <[email protected]>
* DomainUpDown.cs: When ReadOnly is true, all the text entered by the
	user should use a different handling, trying to use every pressed char
	as a unique and only one prefix to compare against the items. Also,
	refactor some input check code to avoid duplication.
	Fixes #458607.


svn path=/trunk/mcs/; revision=129531
2009-03-17 03:59:34 +00:00
Rodrigo Kumpera cc243d905c 2009-03-16 Rodrigo Kumpera <[email protected]>
* resources-tests.md: New file with pecoff tests.

	* Makefile: Add new tests.

	* header-tests.md: Update some tests.

svn path=/trunk/mono/; revision=129519
2009-03-17 01:48:29 +00:00
Rodrigo Kumpera 4515268d26 2009-03-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add minimal PECOFF resource verification.

svn path=/trunk/mono/; revision=129518
2009-03-17 01:48:28 +00:00
Rodrigo Kumpera db063855cc 2009-03-16 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Be less restrictive with some coff fields.

svn path=/trunk/mono/; revision=129517
2009-03-17 01:48:20 +00:00
Rodrigo Kumpera cd20ae8474 2009-03-16 Rodrigo Kumpera <[email protected]>
* verify.c (init_stack_with_value_at_exception_boundary): Init generic
	params as boxed values on stack. Fixes #485706.

svn path=/trunk/mono/; revision=129516
2009-03-17 01:48:09 +00:00
Rodrigo Kumpera 493eb2caae 2009-03-16 Rodrigo Kumpera <[email protected]>
* invalid_generic_generic_object_is_boxed.il: Regression test
	for #485706.

svn path=/trunk/mono/; revision=129515
2009-03-17 01:48:00 +00:00
Rodrigo Kumpera 98510299ea 2009-03-16 Rodrigo Kumpera <[email protected]>
* mini.c (mini_method_compile): Print the method been compiled with
	verbose level 1 instead of 3 as this helps a lot debugging JIT crashes
	for people not familiar with the runtime.

svn path=/trunk/mono/; revision=129514
2009-03-17 01:47:58 +00:00
Zoltan Varga 242332de32 2009-03-17 Zoltan Varga <[email protected]>
* mini-exceptions.c (get_generic_info_from_stack_frame): Avoid returning
	a managed object which is later put into a GList. Return its class instead.

	* mini.c (mono_allocate_stack_slots_full): Avoid sharing ref and non-ref
	stack slots when using sgen.

svn path=/trunk/mono/; revision=129509
2009-03-16 23:19:32 +00:00
Ivan Zlatev 1ebefddf73 2009-03-16 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: In OwningColumng Handle invalid column index
	silently.
	[Fixes bug #485278]

svn path=/trunk/mcs/; revision=129506
2009-03-16 22:30:56 +00:00
Ivan Zlatev 12c457070d 2009-03-16 Ivan N. Zlatev <[email protected]>
* DataGridViewBand.cs: Update our State whenever a property changes.
	* DataGridView.cs: Don't be so generous in reseting Displayed, because
	it will spawn lots and lots of unneeded State changed events.
	[Fixes bug #484989]

svn path=/trunk/mcs/; revision=129501
2009-03-16 21:47:55 +00:00
Ivan Zlatev f2d9513668 2009-03-16 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs:
	Add support for invisible rows and columns.
	[Fixes bug #484951]

svn path=/trunk/mcs/; revision=129496
2009-03-16 20:46:13 +00:00
Ivan Zlatev aa798acb87 2009-03-16 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: Escape literal { in ToString.
	* DataGridViewTextBoxCell.cs: Fix ToString.
	[Fixes bug #484923]

svn path=/trunk/mcs/; revision=129494
2009-03-16 19:16:17 +00:00
Marek Habersack 549f07d36b 2009-03-16 Marek Habersack <[email protected]>
* AspGenerator.cs:
	TagParsed now better handles <script> tags. For both server and
	client tags ProcessScript is called and the input text, in case of
	client tags, is read verbatim to be processed when ProcessScript
	is called to close the tag. At this point the verbatim text is
	checked whether it contains server-side tags and/or expressions.

svn path=/trunk/mcs/; revision=129491
2009-03-16 18:54:17 +00:00
Raja R Harinath f7f734bc1d Reduce dependence of UriParser on Uri
* UriParser.cs (GetComponents): Don't refer to fields of Uri to
extract components.  Use a pair of regexes instead on
Uri.OriginalString.
* Uri.cs (OriginalString): Make available as an internal property
in the NET_1_1 profile.

svn path=/trunk/mcs/; revision=129488
2009-03-16 18:41:24 +00:00
Marek Safar 9eec5fe8d4 2009-03-16 Marek Safar <[email protected]>
* typemanager.cs, decl.cs, roottypes.cs, anonymous.cs, nullable.cs,
	expression.cs, rootcontext.cs, namespace.cs, ecore.cs, class.cs,
	delegate.cs, flowanalysis.cs, cs-parser.jay, driver.cs,
	attribute.cs, codegen.cs: Changed RootTypes to be ModuleContainer.


svn path=/trunk/mcs/; revision=129485
2009-03-16 18:20:22 +00:00
Atsushi Eno af866ca922 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlParserContext.cs : .NET has weird nametable initialization.
	  Fixed bug #484519.

	* XmlParserContextTests.cs : added test for bug #484519.


svn path=/trunk/mcs/; revision=129483
2009-03-16 18:04:51 +00:00
Atsushi Eno c45153282b 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlReader.cs : (ReadToFollowing) check LocalName, not Name.
	  Fixed bug #478506.


svn path=/trunk/mcs/; revision=129474
2009-03-16 17:27:32 +00:00
Carlos Alberto Cortez ef0bbe89d1 2009-03-16 Carlos Alberto Cortez <[email protected]>
* MenuAPI.cs: When navigating items using the keyboard properly handle
	the case when no item is selected - this way we should try to select
	the first or the last item depending on the direction, but no the
	second or third one, etc.


svn path=/trunk/mcs/; revision=129472
2009-03-16 17:22:26 +00:00
Gonzalo Paniagua Javier 4b40d68f1b windows stub fix
svn path=/trunk/mono/; revision=129466
2009-03-16 16:16:03 +00:00
Atsushi Eno fea31fd77d 2009-03-16 Atsushi Enomoto <[email protected]>
* DTDRreader.cs : read up all DTD stream so that we don't have to
	  see bugs like #469317 many times.


svn path=/trunk/mcs/; revision=129465
2009-03-16 16:14:31 +00:00
Atsushi Eno 45e218154c 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : check identities for untyped attributes.
	  Attribute keyfield test must adjust depth, or it never matches.
	  Missing braces for IgnoreIdentity test.


svn path=/trunk/mcs/; revision=129464
2009-03-16 16:13:56 +00:00
Zoltan Varga 2151df9f44 2009-03-15 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

	* Makefile.am (test_platform): Enable testbundle for ppc.

svn path=/trunk/mono/; revision=129461
2009-03-16 15:40:30 +00:00
Zoltan Varga 53a3992e41 2009-03-15 Steven Munroe <[email protected]>
This patch is contributed under the terms of the MIT/X11 license

	* mkbundle.cs (WriteSymbol): Use .p2align 5 instead of .align 32
	to get consistent results on all platforms.

svn path=/trunk/mcs/; revision=129460
2009-03-16 15:38:32 +00:00
Zoltan Varga ba910168a5 2009-03-16 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): Really fix the eglib build.

svn path=/trunk/mono/; revision=129457
2009-03-16 15:30:16 +00:00
Gonzalo Paniagua Javier 40570d9c6d fix
svn path=/trunk/mcs/; revision=129452
2009-03-16 15:02:29 +00:00
Gonzalo Paniagua Javier 5e386d804e 2009-03-16 Gonzalo Paniagua Javier <[email protected]>
* console-io.c: the termios values may vary in different flavors of unix.


svn path=/trunk/mono/; revision=129451
2009-03-16 15:02:14 +00:00
Marek Habersack 5d92b0cb21 2009-03-16 Marek Habersack <[email protected]>
* AspGenerator.cs: when parsing nested tags (includes tags inside
	client-side javascript script blocks) pass the closing tag up to
	the containing parser.
	Instead of parsing the whole plain text contents, plus the two
	constructs we're interested in from it using regexs. This is
	necessary as we might be passed JavaScript code and without
	understanding its syntax we'll confuse the '<' character for the
	start of a tag.

svn path=/trunk/mcs/; revision=129449
2009-03-16 14:54:44 +00:00
Gonzalo Paniagua Javier 292db8ebdd wrong bug
svn path=/trunk/mcs/; revision=129447
2009-03-16 14:24:48 +00:00
Gonzalo Paniagua Javier a79db82930 update corlib version
svn path=/trunk/mono/; revision=129446
2009-03-16 14:24:17 +00:00
Gonzalo Paniagua Javier 19447c259b 2009-03-16 Gonzalo Paniagua Javier <[email protected]>
* console-io.[ch]: return the entire set of control characters when
	initializing the terminal.


svn path=/trunk/mono/; revision=129445
2009-03-16 14:23:35 +00:00
Gonzalo Paniagua Javier 37420fee4f 2009-03-16 Gonzalo Paniagua Javier <[email protected]>
* ConsoleDriver.cs:
	* TermInfoDriver.cs: handle Ctrl-D (or similar) in ReadLine.
	Fixes bug #483268.

	* ControlCharacters.cs: index to the control characters list.
	* Environment.cs: bumped corlib version.


svn path=/trunk/mcs/; revision=129444
2009-03-16 14:23:33 +00:00
Atsushi Eno aff31f7ba1 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlSchemaUtil.cs, XmlSchemaValidator.cs : predefined non-primitive
	  xml schema types now validate fixed values as expected.


svn path=/trunk/mcs/; revision=129443
2009-03-16 14:13:28 +00:00
Atsushi Eno 0da8b35274 switch mono-xmltool here too.
svn path=/trunk/mcs/; revision=129442
2009-03-16 13:08:27 +00:00
Atsushi Eno 71b85d0b6f 2009-03-16 Atsushi Enomoto <[email protected]>
* BuiltInDatatype.cs, XmlSchemaDatatype.cs : some equality comparison
	  failed because it anyType is not used as singleton.


svn path=/trunk/mcs/; revision=129440
2009-03-16 12:47:49 +00:00
Atsushi Eno e611c439c1 2009-03-16 Atsushi Enomoto <[email protected]>
* scripts/Makefile.am : mono-xmltool uses 2.0.

svn path=/trunk/mono/; revision=129436
2009-03-16 12:15:05 +00:00
Gonzalo Paniagua Javier f26078f156 Found this lingering in my ChangeLog
svn path=/trunk/mono/; revision=129434
2009-03-16 12:12:30 +00:00
Atsushi Eno 0a10c61c49 2009-03-16 Atsushi Enomoto <[email protected]>
* xmltool.cs: added --validate-xsd2 option to validate with xsd
	  but with new validator in 2.0.


svn path=/trunk/mcs/; revision=129427
2009-03-16 11:49:22 +00:00
Massimiliano Mantione 4f6608613d When checking if an elf file is valid, avoid mapping it in memory.
svn path=/trunk/mono/; revision=129416
2009-03-16 10:43:46 +00:00
Paolo Molaro 301307fd95 Mon Mar 16 11:11:26 CET 2009 Paolo Molaro <[email protected]>
* mono-perfcounters.c: added support for in-process custom
	performance counters.


svn path=/trunk/mono/; revision=129415
2009-03-16 10:13:38 +00:00
Marek Habersack 309c9647cd 2009-03-16 Marek Habersack <[email protected]>
* AspGenerator.cs: when parsing nested tags (includes tags inside
	client-side javascript script blocks) pass the closing tag up to
	the containing parser.

svn path=/trunk/mcs/; revision=129412
2009-03-16 09:54:48 +00:00
Atsushi Eno 68389cd912 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlReaderBinarySupport.cs : ReadContentsAsBase64() could skip
	  EndElement at the next XmlReader.Read(). Fixed bug #480066.

	* XmlReaderCommonTests.cs : added test for bug #480066.


svn path=/trunk/mcs/; revision=129404
2009-03-16 07:37:44 +00:00
Atsushi Eno c7a471732a 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : only bogus v1 XmlTextWriter ignores null
	  namespace for conflict check. Fixed bug #479725.

	* XmlWriterTests.cs : only bogus XmlTextWriter ignores null namespace
	  for namespae conflict check.


svn path=/trunk/mcs/; revision=129398
2009-03-16 06:48:19 +00:00
Carlos Alberto Cortez 5029abc940 2209-03-15 Carlos Alberto Cortez <[email protected]>
* Form.cs: When calling ProcessCmdKey, just after checking for any
	MainMenu, check if there's an active ContextMenu that is *not* owned
	by the form - this is needed when a non-focusable control owns a
	ContextMenu but its ProcessCmdKey method can't be called since it
	can't receive any input.
	Fixes #477655.


svn path=/trunk/mcs/; revision=129395
2009-03-16 03:13:05 +00:00
Gert Driesen d401e17752 * app-net_1.1.config: Added ClientVersion to Engine section. Added
SQL Server 2000 config.
* app-net_2.0.config: Spaces to tabs.

svn path=/trunk/mcs/; revision=129380
2009-03-15 13:32:32 +00:00
Veerapuram Varadhan e7bd61cb60 Fix for 463011
In Tds70:Reset, call base.Rest() to update the database being used

svn path=/trunk/mcs/; revision=129377
2009-03-15 10:43:39 +00:00
Veerapuram Varadhan 65b1eb239b Support for Partlentype type-info in TDS 7
Partlentype is a TDS 9 feature and a < TDS 9 client requires a special handling for such cases.

svn path=/trunk/mcs/; revision=129376
2009-03-15 10:43:00 +00:00
Veerapuram Varadhan 124c0ce55f Avoid creation of temporary byte arrays
Directly manipulate lsb/msb of short/int/long instead of using BitConverter.GetBytes() and swapping the resultant byte array using Swap() to reduce array allocations which, improves overall performance of Mono's TDS implementation.

svn path=/trunk/mcs/; revision=129375
2009-03-15 10:42:16 +00:00
Gert Driesen 2c09f50906 * ConvertTest.cs: Avoid false positive in ChangeType test.
svn path=/trunk/mcs/; revision=129374
2009-03-15 09:48:26 +00:00
Miguel de Icaza e514e8522d 2009-03-14 Miguel de Icaza <[email protected]>
* Convert.cs (ToType): Control whether this internal function will
	call an IConvertible.ToType method or not.  

	Classes and structs implementing IConvertible in mscorlib (the
	only callers that can access Convert.ToType) must pass false to
	avoid a infinite recursion problem and callers from the public
	Convert API must call it with true.

	This fixes the regression reported in #485377 that was introduced
	by the fix for #481687.

	* Int16.cs, UInt64.cs, Double.cs, Enum.cs, SByte.cs, UInt16.cs,
	Byte.cs, Decimal.cs, Int32.cs, String.cs, Int64.cs, Char.cs,
	Boolean.cs, Single.cs, UInt32.cs: Update the call sites.



svn path=/trunk/mcs/; revision=129367
2009-03-14 18:56:43 +00:00
Zoltan Varga 26d510deeb 2009-03-14 Zoltan Varga <[email protected]>
* local-propagation.c (reg_is_softreg_no_fpstack): Use >= instead of
	> so it works on the first vreg as well.

svn path=/trunk/mono/; revision=129353
2009-03-14 02:19:07 +00:00
Rodrigo Kumpera abe0e9ba96 small todo item
svn path=/trunk/mono/; revision=129352
2009-03-14 02:16:14 +00:00
Rodrigo Kumpera e831c9f2b0 2009-03-13 Rodrigo Kumpera <[email protected]>
* data-directory-tests.md: New tests for IAT directory entry.

2009-03-13 Rodrigo Kumpera  <[email protected]>

	* metadata-verify.c: Small cleanup and add comment for IAT directory entry.

svn path=/trunk/mono/; revision=129351
2009-03-14 02:16:12 +00:00
Rodrigo Kumpera da30bfbde7 2009-03-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify the data pointed by the import table.

2009-03-13 Rodrigo Kumpera  <[email protected]>

	* data-directory-tests.md: New tests for import table name, ilt and iat.

svn path=/trunk/mono/; revision=129350
2009-03-14 02:16:04 +00:00
Rodrigo Kumpera 0bd6847494 2009-03-13 Rodrigo Kumpera <[email protected]>
* data-directory-tests.md: New tests for import table.

	* gen-md-tests.c: Added translate.rva and translate.rva.ind functions.

2009-03-13 Rodrigo Kumpera  <[email protected]>

	* metadata-verify.c (load_data_directories): Store data
	directory contents.

	* metadata-verify.c: Verify the import table.

svn path=/trunk/mono/; revision=129349
2009-03-14 02:15:57 +00:00
Miguel de Icaza b3785f96ea Try to improve the logging profiler documentation
svn path=/trunk/mono/; revision=129337
2009-03-13 21:20:40 +00:00
Zoltan Varga fffed19111 Fix the build.
svn path=/trunk/mono/; revision=129332
2009-03-13 20:40:35 +00:00
Miguel de Icaza 6b4dfed918 Add Copyright notices
svn path=/trunk/mono/; revision=129316
2009-03-13 18:42:25 +00:00
Mark Probst ccc2270475 Test for CoreCLR security wrapper bug.
2009-03-13  Mark Probst  <[email protected]>

	* coreclr-security.exe: Added a test for calling via a
	MANAGED_TO_MANAGED wrapper.

svn path=/trunk/mono/; revision=129300
2009-03-13 16:39:39 +00:00
Atsushi Eno db25126624 2009-03-13 Atsushi Enomoto <[email protected]>
* CrossDomainAccessManager.cs: temporarily disable
          access checker to just warn invalid access for now.


svn path=/trunk/mcs/; revision=129293
2009-03-13 15:41:10 +00:00
Atsushi Eno aef46c7bed 2009-03-13 Atsushi Enomoto <[email protected]>
* XmlRootAttribute.cs : it is also expected to have
          internal property for SL2.



svn path=/trunk/mcs/; revision=129290
2009-03-13 15:22:10 +00:00
Zoltan Varga 4bcd5b5495 2009-03-13 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): Disable an assert which seems to
	trigger randomly.

	* aot-compiler.c: Get rid of xdebug_lock (), use the loader lock instead.
	
	* dwarfwriter.c (emit_line_number_info): Fix eglib build as eglib doesn't
	implement GArray.

svn path=/trunk/mono/; revision=129278
2009-03-13 13:16:38 +00:00
Ankit Jain 568b0bb8cf * Main.cs (Execute): Build the project/sln with current directory set to
the project file's dir.
* SolutionParser.cs (ParseSolution): Project paths are relative to
solution directory.

svn path=/trunk/mcs/; revision=129251
2009-03-13 09:32:37 +00:00
Zoltan Varga 32a75cabc3 2009-03-13 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): Fix eglib build as eglib doesn't
	implement GArray.

svn path=/trunk/mono/; revision=129249
2009-03-13 08:01:50 +00:00
Atsushi Eno ed25b28b95 2009-03-13 Atsushi Enomoto <[email protected]>
* XmlArrayItemAttribute.cs, XmlElementAttribute.cs,
	  XmlAnyElementAttribute.cs : added more 2.1 obstacles.


svn path=/trunk/mcs/; revision=129247
2009-03-13 07:28:04 +00:00
Atsushi Eno 00eeda36b0 2009-03-13 Atsushi Enomoto <[email protected]>
* XmlChoiceIdentifierAttribute.cs : added internal MemberInfo
	  property for SL2.


svn path=/trunk/mcs/; revision=129245
2009-03-13 07:16:28 +00:00
Atsushi Eno 8c18de8f16 2009-03-13 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : added ToUri() (extraneous in 2.0; used only from
	  2.1 S.X.Serialization.dll in MS SDK).


svn path=/trunk/mcs/; revision=129244
2009-03-13 07:05:06 +00:00
Atsushi Eno 019345956c 2009-03-13 Atsushi Enomoto <[email protected]>
* SerializationSource.cs, KeyHelper.cs : split out KeyHelper from
	  SerializationSource as the class is going to be used in 2.1 too.
	* XmlRootAttribute.cs : use KeyHelper above to add internal Key
	  property that is used in SL2 System.Xml.Serialization.dll.

	* System.Xml.dll.sources, net_2_1_raw_System.Xml.dll.sources :
	  added KeyHelper.cs.


svn path=/trunk/mcs/; revision=129243
2009-03-13 06:59:28 +00:00
Neville Gao 834e153517 Add UIA Framework property UIAVisible.
svn path=/trunk/mcs/; revision=129241
2009-03-13 04:04:07 +00:00
Andreia Gaita ae2770b9c3 2009-03-13 Andreia Gaita <[email protected]>
* JsonReader.cs: fix depth calculation
	* JsonReaderTest.cs: test for skip and depth (if depth fails, skip is affected)

svn path=/trunk/mcs/; revision=129240
2009-03-13 03:09:30 +00:00
Geoff Norton a1f68e10a2 whoops
svn path=/trunk/mcs/; revision=129238
2009-03-13 01:09:50 +00:00
Jonathan Pryor 29272a265d * Makefile: Also distribute .txt files.
svn path=/trunk/mcs/; revision=129236
2009-03-13 00:56:01 +00:00
Marek Habersack c2fd4b2317 2009-03-13 Marek Habersack <[email protected]>
* Control.cs: clear the controls cache on control removal. This
	ensures that a subsequent FindControl call won't return the
	removed control.

svn path=/trunk/mcs/; revision=129234
2009-03-13 00:48:58 +00:00
Geoff Norton e26db4576d 2009-03-12 Geoff Norton <[email protected]>
* TypeMap.cs: Avoid checking the getter/setter information until after
        checking if we have the required attribute decorated.

svn path=/trunk/mcs/; revision=129232
2009-03-13 00:09:51 +00:00
Andreia Gaita 4302acae88 2009-03-12 Andreia Gaita <[email protected]>
* JsonReaderWriterFactory.cs: try to auto-detect encoding for streams
	without BOM

svn path=/trunk/mcs/; revision=129226
2009-03-12 23:40:03 +00:00
Rodrigo Kumpera c48dd452e7 2009-03-12 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Verify data directories.

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

        * gen-md-tests.c (parse_test_entry): Fix multi effect rules.

        * Makefile: Add rules for data-directory-tests.md.

        * data-directory-tests.md: New tests for data directories.

svn path=/trunk/mono/; revision=129220
2009-03-12 23:12:29 +00:00
Rodrigo Kumpera 17fd8cd9d7 2009-03-12 Rodrigo Kumpera <[email protected]>
* section-table-tests.md: Test for flags.

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

	* metadata-verify.c: Check section header flags.

svn path=/trunk/mono/; revision=129219
2009-03-12 23:12:21 +00:00
Jonathan Pryor 77c5e7353a * src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.cs:
There is no System.Vendor namespace, so don't generate one.

svn path=/trunk/mcs/; revision=129218
2009-03-12 23:07:44 +00:00
Jonathan Pryor 8f4bbb2ad0 * Makefile: Add a dist-local target and distribute all DbLinq sources.
We can't just rely on the normal System.Data.Linq.dll.sources
	  handling because ../../tools/sqlmetal also uses these sources.

svn path=/trunk/mcs/; revision=129217
2009-03-12 22:59:34 +00:00
Gonzalo Paniagua Javier 6519628287 2009-03-12 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: if the assembly name is a shadow-copied file, return
	TRUE from mono_is_shadow_copy_enabled but don't actually do anything
	in mono_make_shadow_copy.
	* icall.c: if the assembly name is a shadow-copied file, replace it
	with the original assembly path.

	Bug #484244 fixed. NUnit tests for corlib can be run without
	--noshadow now.


svn path=/trunk/mono/; revision=129210
2009-03-12 22:36:16 +00:00
Zoltan Varga dae3e57aeb 2009-03-12 Zoltan Varga <[email protected]>
* sgen-gc.c (add_to_global_remset): Fix the handling of root global remset
	entries when the table is reallocated.

svn path=/trunk/mono/; revision=129204
2009-03-12 21:06:20 +00:00
Zoltan Varga 186ca2bc95 2009-03-12 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): Optimize the computation of the
	native->IL offset mapping.

svn path=/trunk/mono/; revision=129200
2009-03-12 20:37:38 +00:00
Marek Habersack 29116a074f 2009-03-12 Marek Habersack <[email protected]>
* EditCommandColumnTest.cs: ignore two tests, most likely broken.

svn path=/trunk/mcs/; revision=129198
2009-03-12 20:23:23 +00:00
Jonathan Pryor c1fdbfc6ea * scripts/Makefile.am: Add sqlmetal.
svn path=/trunk/mono/; revision=129196
2009-03-12 20:16:11 +00:00
Jb Evain 67320f10a5 2009-03-12 Jb Evain <[email protected]>
* cilstrip.cs: unwrap TargetInvocationException.


svn path=/trunk/mcs/; revision=129193
2009-03-12 20:05:47 +00:00
Jb Evain 5fb61f686b 2009-03-12 Jb Evain <[email protected]>
* Mono.Cecil/AssemblyStripper.cs (PatchHeap): don't crash
	if the assembly doesn't contain a specific metadata heap.


svn path=/trunk/mcs/; revision=129191
2009-03-12 19:58:16 +00:00
Jonathan Pryor 0dff9169b3 * Makefile: Add sqlmetal to the build.
* sqlmetal/ChangeLog, sqlmetal/Makefile, sqlmetal/sqlmetal.exe.config, 
	  sqlmetal/sqlmetal.exe.sources: Added; builds `sqlmetal.exe', which is 
	  the Mono version of DbLinq's DbMetal.exe program (which in turn is 
	  modeled on .NET's SQLMETAL tool), "tuned" to depend only on Mono's 
	  System.Data.Linq.

svn path=/trunk/mcs/; revision=129189
2009-03-12 19:48:29 +00:00
Jonathan Pryor b5f3e00eed * src/DbLinq/System.Data.Linq/Assembly/AssemblyInfo.cs: Allow
sqlmetal.exe to access the System.Data.Linq.dll internals, as
	  sqlmetal.exe is DbMetal.exe, and needs access to (normally public)
	  DbLinq.dll types.

svn path=/trunk/mcs/; revision=129187
2009-03-12 19:43:32 +00:00
Jonathan Pryor 76dcaa699e * System.Data.Linq.dll.sources: Sort filenames (to more easily see
which DbLinq files are being excluded from the build), and add
	  additional files to the build, specifically the *SchemaLoader and
	  *DataContext types.
	* src/**: Flush to DbLinq r1013 (which allows the *SchemaLoader and
	  *DataContext types to build under MONO_STRICT).

svn path=/trunk/mcs/; revision=129185
2009-03-12 19:37:33 +00:00
Jonathan Pryor ce2c2fc5a8 Flush (should have been doing this before...).
svn path=/trunk/mcs/; revision=129183
2009-03-12 19:35:24 +00:00
Dean Brettle c179d76e68 2009-03-12 Dean Brettle <[email protected]>
* nBrowser/Build.cs: made Browser() method thread-safe and moved the
	actual tree creation to a private InitializeTree() method for clarity.


svn path=/trunk/mcs/; revision=129176
2009-03-12 18:36:25 +00:00
Carlos Alberto Cortez 329e4d0d14 2009-03-12 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
	WM_HELP message for the associated window, don't call
	NativeWindow.WndProc *at all*, since this could send a WM_*
	key-related to Control.WndProc. Also, return the keypress message, in
	case it needs to be preprocessed for any menu.
	Fixes #478476.


svn path=/trunk/mcs/; revision=129170
2009-03-12 18:14:03 +00:00
Zoltan Varga 9d8de658a5 2009-03-12 Zoltan Varga <[email protected]>
* icall.c: Allocate the memory used by the mono_ptr_array macros using
	mono_gc_alloc_fixed () since it contains GC refs.

svn path=/trunk/mono/; revision=129166
2009-03-12 17:55:03 +00:00
Atsushi Eno a925966529 2009-03-12 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : make generic type parsing sloppy.
          because we don't know some cryptic hash algorithm:
          http://jeffbarnes.net/portal/blogs/jeff_barnes/archive/2007/05/10/wcf-serialization-and-generics.aspx


svn path=/trunk/mcs/; revision=129155
2009-03-12 16:25:48 +00:00
Jb Evain 37bdbf1395 2009-03-12 Jb Evain <[email protected]>
* get.c (get_token): add support for METHOD_SPEC tokens.


svn path=/trunk/mono/; revision=129147
2009-03-12 14:34:10 +00:00
Marek Habersack 39c6840184 2009-03-12 Marek Habersack <[email protected]>
* BuildManager.cs, BuildManagerDirectoryBuilder.cs,
	BuildProvider.cs, TemplateBuildProvider.cs: dependencies are
	returned as an IDictionary <string, bool>. Dependencies must be
	compared case-insensitively.

svn path=/trunk/mcs/; revision=129142
2009-03-12 14:27:12 +00:00
Marek Habersack 709407a75f 2009-03-12 Marek Habersack <[email protected]>
* TemplateBuildProvider.cs: ExtractReferenceDependencies must also
	extract the value of the Page attribute.

svn path=/trunk/mcs/; revision=129141
2009-03-12 14:27:01 +00:00
Atsushi Eno 444737022e 2009-03-12 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs :
	  support CollectionDataContract-based dictionary too.

	* XmlObjectSerializerTest.cs : added test for dictionary with
	  CollectionDataContractAttribute.


svn path=/trunk/mcs/; revision=129128
2009-03-12 09:29:40 +00:00
Atsushi Eno 2fc4ce96e5 2009-03-12 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs :
	  added support for dictionary serialization (not for
	  CollectionDataContract-attributed dictionary yet).

	* XmlObjectSerializerTest.cs : added tests for IDictionary
	  serialization (both generic and non-generic).


svn path=/trunk/mcs/; revision=129125
2009-03-12 08:37:33 +00:00
Atsushi Eno d9e90b8d10 2009-03-12 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : cosmetic !NET_2_1 fix (no effect).
	* KnownTypeCollection.cs : use ICollection<> and IList instead of
	  IEnumerable. This causes confusion for dictionary.


svn path=/trunk/mcs/; revision=129124
2009-03-12 04:31:01 +00:00
Jonathan Pryor 6aef4589ff Remove generated directories.
svn path=/trunk/mcs/; revision=129117
2009-03-12 00:49:24 +00:00
Jonathan Pryor 1bf78074ea Add the DbMetal and VisualMetal sources from DbLinq, so that we can add a
`sqlmetal' tool which uses the DbMetal sources.

svn path=/trunk/mcs/; revision=129116
2009-03-12 00:46:32 +00:00
Gonzalo Paniagua Javier 0fff03b008 2009-03-11 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: don't send events when a directory is created
	unless it matches the pattern.  Fixes bug #484082.


svn path=/trunk/mcs/; revision=129112
2009-03-12 00:20:55 +00:00
Jonathan Pryor 31f53b4843 Flush. (Updates to sync with DbLinq r1009, fixes IVendor lookup within
System.Data.Linq.dll, add unit tests -- which aren't hooked up to Mono's build
system -- various bug fixes, etc.)

svn path=/trunk/mcs/; revision=129090
2009-03-11 20:06:10 +00:00
Marek Safar d1ec514016 New test.
svn path=/trunk/mcs/; revision=129086
2009-03-11 19:00:40 +00:00
Marek Safar e8ac873bbe 2009-03-11 Marek Safar <[email protected]>
A fix for bug #482996
	* anonymous.cs: Make sure we are not infering return type when
	checking type compatibility.


svn path=/trunk/mcs/; revision=129085
2009-03-11 18:55:51 +00:00
Zoltan Varga dfb2da7976 2009-03-11 Zoltan Varga <[email protected]>
* SortedListTest.cs: Add tests for #483985.

svn path=/trunk/mcs/; revision=129078
2009-03-11 16:51:19 +00:00
Rolf Bjarne Kvinge bbe5d30c03 2009-03-11 Rolf Bjarne Kvinge <[email protected]>
* WebClient_2_1.cs: OnOpenReadCompleted and OnDownloadStringCompleted:
	make sure we don't pass any exceptions back to native code.


svn path=/trunk/mcs/; revision=129077
2009-03-11 16:49:50 +00:00
Zoltan Varga bacf99dcd2 2009-03-11 Zoltan Varga <[email protected]>
* SortedList.cs: Add version checking to the Key/Value enumerators +
	implement support for Reset (). Fixes #483985.

svn path=/trunk/mcs/; revision=129076
2009-03-11 16:49:43 +00:00
Zoltan Varga 2ac318ebfe 2009-03-11 Zoltan Varga <[email protected]>
* BinderTests.cs: Add a test for #484294.

svn path=/trunk/mcs/; revision=129070
2009-03-11 15:14:36 +00:00
Zoltan Varga f92f37b5ba 2009-03-11 Zoltan Varga <[email protected]>
* Binder.cs: Allow conversions from T to T?. Fixes #484294.

svn path=/trunk/mcs/; revision=129069
2009-03-11 15:10:29 +00:00
Atsushi Eno f936428455 2009-03-11 Atsushi Enomoto <[email protected]>
* XmlFormatterSerializer.cs, XmlObjectSerializer.cs,
	  XmlFormatterDeserializer.cs, KnownTypeCollection.cs :
	  add more xsi:type to cover collection items.

	* XmlObjectSerializerTest.cs : test for generic IList of
	  DictionaryEntry. (no Hashtable serialization yet.)


svn path=/trunk/mcs/; revision=129068
2009-03-11 15:03:02 +00:00
Marek Safar 1f5e677800 This should not go in.
svn path=/trunk/mcs/; revision=129065
2009-03-11 14:28:58 +00:00
Zoltan Varga 309720b294 2009-03-11 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Fix % 1. Fixes #484323.

	* basic.cs: Add a test.

svn path=/trunk/mono/; revision=129063
2009-03-11 14:27:10 +00:00
Marek Safar e8b2549228 2009-03-11 Marek Safar <[email protected]>
* typemanager.cs, generic.cs, parameter.cs, decl.cs, const.cs,
	rootcontext.cs, namespace.cs, class.cs, delegate.cs, driver.cs,
	generic-mcs.cs, attribute.cs, codegen.cs: Maintain predefined
	attributes in their own structure. Needed when accessing their
	properties before they are resolved.


svn path=/trunk/mcs/; revision=129061
2009-03-11 14:18:02 +00:00
Mark Probst 9f363d6e61 Make sure x86 ATOMIC_CAS doesn't overwrite its own operands.
2009-03-11  Mark Probst  <[email protected]>

	* mini-x86.c (mono_arch_output_basic_block): Use different
	registers in case the ones we want to overwrite are used by the
	other operand.  Fixes regression in #480807.

svn path=/trunk/mono/; revision=129058
2009-03-11 14:15:49 +00:00
Atsushi Eno 9259c423b0 2009-03-11 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : fix generic argument names in xml.
	  They should use xmlized names instead of raw type name.
	* XmlFormatterDeserializer.cs : remove extra Console.WriteLine.

	* XmlObjectSerializerTest.cs : test for generic IList of KeyValuePair
	  (it is still different from full IDictionary support...!).


svn path=/trunk/mcs/; revision=129055
2009-03-11 11:52:34 +00:00
Atsushi Eno 4c9b51db6d 2009-03-11 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : eliminate whitespace misuses.


svn path=/trunk/mcs/; revision=129053
2009-03-11 09:37:01 +00:00
Atsushi Eno db1aa31255 2009-03-11 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : actually it could just be
          ICollection<T>.


svn path=/trunk/mcs/; revision=129051
2009-03-11 09:06:06 +00:00
Atsushi Eno 4906f1a6b3 2009-03-11 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : implemented generic IList
          deserialization.


        * XmlObjectSerializerTest.cs : test for generic IList
          serialization.

        * Makefile: added -r:System.Core.



svn path=/trunk/mcs/; revision=129045
2009-03-11 06:26:09 +00:00
Jackson Harper 9818184c46 * Uri.cs: 2.1 Uris do get a UriTypeConverter.
svn path=/trunk/mcs/; revision=129023
2009-03-10 21:39:10 +00:00
Zoltan Varga 256ce3146e 2009-03-10 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Make the output less verbose.

svn path=/trunk/mono/; revision=129022
2009-03-10 21:38:35 +00:00
Zoltan Varga 68f5bf552b 2009-03-10 Zoltan Varga <[email protected]>
* TypeBuilderTest.cs: Add a test for #483852.

svn path=/trunk/mcs/; revision=129011
2009-03-10 19:51:16 +00:00
Zoltan Varga 023a1a8181 2009-03-10 Zoltan Varga <[email protected]>
* reflection.c (ensure_complete_type): New helper function to call
	type resolve handlers for unfinished dynamic types.
	(resolve_object): Call it for MonoClassFields. Fixes #483852.

svn path=/trunk/mono/; revision=129009
2009-03-10 19:45:41 +00:00
Atsushi Eno 92713f5d7c 2009-03-10 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : fix for generic serialization.

	* XmlObjectSerializerTest.cs : test for generic type serialization.


svn path=/trunk/mcs/; revision=129001
2009-03-10 18:21:07 +00:00
Miguel de Icaza cef6453d5b Clarify
svn path=/trunk/mono/; revision=128995
2009-03-10 17:20:50 +00:00
Zoltan Varga ab92e1dda4 2009-03-10 Zoltan Varga <[email protected]>
* README: Remove the comment about --with-moonlight being pre-alpha.

svn path=/trunk/mono/; revision=128990
2009-03-10 16:47:37 +00:00
Marek Habersack 3aa7a57e81 2009-03-10 Marek Habersack <[email protected]>
* UrlAuthorizationModule.cs: OnAuthorizeRequest must use the
	configuration from <location> elements in the config. Fixes bug
	#467221

svn path=/trunk/mcs/; revision=128972
2009-03-10 14:21:42 +00:00
Marek Habersack 9f34a3140d Cosmetics
svn path=/trunk/mcs/; revision=128971
2009-03-10 14:21:26 +00:00
Jb Evain e276786c9e 2009-03-10 Jb Evain <[email protected]>
* Mono.Tuner/MoonlightAssemblyStep.cs: don't remove
	the LoadReferencesStep for specific Moonlight tuning.


svn path=/trunk/mcs/; revision=128966
2009-03-10 12:31:57 +00:00
Atsushi Eno c59c5611fa 2009-03-10 Atsushi Enomoto <[email protected]>
* scripts/Makefile.am : added svcutil.


svn path=/trunk/mono/; revision=128954
2009-03-10 08:26:50 +00:00
Atsushi Eno 34386abbd0 2009-03-10 Atsushi Enomoto <[email protected]>
* Makefile: add svcutil to the build.


svn path=/trunk/mcs/; revision=128952
2009-03-10 08:24:57 +00:00
Zoltan Varga 944140d872 2009-03-10 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): The line number info for
	IL code was off by one. Fix that.

svn path=/trunk/mono/; revision=128931
2009-03-10 01:19:20 +00:00
Zoltan Varga 2a834f900b 2009-03-10 Zoltan Varga <[email protected]>
* mini-s390x.c: Fix support for vtypes whose addresses are passed on the
	stack.

svn path=/trunk/mono/; revision=128924
2009-03-10 00:19:58 +00:00
Mark Probst bb0a92c4b3 Fix LOADI4_MEMINDEX on PPC64.
2009-03-09  Mark Probst  <[email protected]>

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

        * mini-ppc.c: Correct handling of OP_LOADI4_MEMINDEX for ppc64.
        Fixes #483462.

svn path=/trunk/mono/; revision=128904
2009-03-09 20:00:18 +00:00
Martin Baulig 186d30c030 Author: Martin Baulig <[email protected]>
Date:   Thu Mar 5 17:47:30 2009 +0100

    Add CompileUnitEntry.IncludeFiles.

    2009-03-05  Martin Baulig  <[email protected]>

    	* MonoSymbolTable.cs
    	(CompileUnitEntry.IncludeFiles): New public property.
    	(CompileUnitEntry.ReadData): Also read include files.

svn path=/trunk/mcs/; revision=128890
2009-03-09 15:11:17 +00:00
Marek Safar 104b5ae607 2009-03-09 Marek Safar <[email protected]>
* cs-tokenizer.cs: Optimized GetKeyword using an array instead of
	hashtable (~10x faster).
	
	* driver.cs: Removed wrong Reset.


svn path=/trunk/mcs/; revision=128884
2009-03-09 14:29:42 +00:00
Martin Baulig 5482c75a0a Add .gitignore's.
svn path=/trunk/mcs/; revision=128880
2009-03-09 14:14:56 +00:00
Zoltan Varga 0da31f7713 2009-03-09 Zoltan Varga <[email protected]>
* custom-attr.cs: Add a test for #483247.

svn path=/trunk/mono/; revision=128865
2009-03-09 10:38:11 +00:00
Zoltan Varga 76b6f7043c 2009-03-09 Zoltan Varga <[email protected]>
* reflection.c (mono_custom_attrs_has_attr): Handle interfaces. Fixes
	#483247.

svn path=/trunk/mono/; revision=128864
2009-03-09 10:37:22 +00:00
Zoltan Varga 6920a0e8e4 2009-03-08 Zoltan Varga <[email protected]>
* dwarfwriter.c (token_handler): Decode method references in non-wrappers
	as well.

svn path=/trunk/mono/; revision=128856
2009-03-08 21:42:41 +00:00
Marek Safar eca88b66e8 New tests.
svn path=/trunk/mcs/; revision=128855
2009-03-08 19:16:20 +00:00
Rodrigo Kumpera 3c1339e749 2009-03-04 Rodrigo Kumpera <[email protected]>
* appdomain.c (get_shadow_assembly_location): Fix memleak.

svn path=/trunk/mono/; revision=128853
2009-03-08 19:15:41 +00:00
Marek Safar 7eb12f3aea 2009-03-08 Marek Safar <[email protected]>
* class.cs: Use correct common base type for unmanaged delayed
	check.

	* rootcontext.cs: Wrap unhandled exception.


svn path=/trunk/mcs/; revision=128852
2009-03-08 19:15:25 +00:00
Zoltan Varga ceed087438 2009-03-08 Zoltan Varga <[email protected]>
* gchandles.cs: New test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=128850
2009-03-08 18:33:24 +00:00
Zoltan Varga 02a6e0c29d 2009-03-08 Zoltan Varga <[email protected]>
* domain-internals.h (struct _MonoDomain): Add new hash tables mapping
	between GCHandles of type WeakTrackResurrection and the objects they
	point to.

	* gc.c: Partly implement the sematics of GCHandles of type 
	WeakTrackResurrection: these handles should only be cleared after the
	finalizer of the object they are pointing to has ran.

svn path=/trunk/mono/; revision=128849
2009-03-08 18:18:45 +00:00
Ivan Zlatev ee7aace234 2009-03-08 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: When removing the first displayed row and moving
	the current cell up one we must invalidate the first displayed row
	index before calculating the row heights, etc.
	* DataGridViewTest.cs: Add tests for CurrentCell.
	[Fixes bug #483202]

svn path=/trunk/mcs/; revision=128845
2009-03-08 12:48:22 +00:00
Ivan Zlatev ebaea56f6d 2009-03-08 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix three column bugs:
	   - Rows should be cleared (but not removed) if columns become 0.
	   - The current cell should get moved
	   - ColumnCount increase was adding too many columns.
	* DataGridViewTest.cs: Add tests for ColumnCount.

svn path=/trunk/mcs/; revision=128844
2009-03-08 12:48:05 +00:00
Ivan Zlatev 505ef1145a 2009-03-07 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix RowCount decrease which wasn't working well
	in both scenarions - with and without editing row.
	* DataGridViewTest.cs: Add more tests for the RowCount property.

svn path=/trunk/mcs/; revision=128833
2009-03-07 13:59:55 +00:00
Raja R Harinath 286afd095b Make SeekableStreamReader self-tuning and arbitrarily seekable
* support.cs (SeekableStreamReader.ResetStream): New.  Allocates the buffer.
(SeekableStreamReader.Position.set): Use it.  Simplify logic
which, as a side-effect, makes it arbitrarily-seekable.  Tune the
buffer size when the stream needs to be re-read from the beginning.

svn path=/trunk/mcs/; revision=128831
2009-03-07 11:05:59 +00:00
Gert Driesen 8e8bf56a3f * Convert.cs: Do not throw InvalidCastException if IConvertible.ToType
returns null.
* ConvertTest.cs: Merged and improved test for bug #481687.
* ConvertTest2.cs: Merged into ConvertTest.cs.

svn path=/trunk/mcs/; revision=128830
2009-03-07 09:10:04 +00:00
Marek Safar a3c6490548 Add missing const.
svn path=/trunk/mcs/; revision=128829
2009-03-07 08:29:56 +00:00
Mark Probst a13b12d848 Partially revert r126631 because it's no longer needed.
2009-03-06  Mark Probst  <[email protected]>

	* icall.c: Partially revert r126631 because using the jump
	trampolines for generic shared methods makes it superfluous.

svn path=/trunk/mono/; revision=128828
2009-03-07 06:38:49 +00:00
Gonzalo Paniagua Javier bf33585141 2009-03-06 Gonzalo Paniagua Javier <[email protected]>
* ResourceSet.cs: for custom resource sets without a reader, pretende
	that's we've already read the stream.


svn path=/trunk/mcs/; revision=128814
2009-03-07 00:06:04 +00:00
Andrés G. Aragoneses c47a1e40f0 2009-03-06 Andrés G. Aragoneses <[email protected]>
* Convert.cs: Correct typo in exception message.


svn path=/trunk/mcs/; revision=128812
2009-03-06 23:34:37 +00:00
Miguel de Icaza f7b7dfb893 2009-02-24 Sebastien Pouliot <[email protected]>
* SafeHandle.cs: Add default ctor in 2.1 profile (needed to compile

svn path=/trunk/mcs/; revision=128810
2009-03-06 23:32:09 +00:00
Miguel de Icaza a455aae0ef 2009-03-06 Miguel de Icaza <[email protected]>
* Convert.cs: Apply patch from Tom Hindle that uses
	IConvertible.ToType if there are no other possible conversions
	defined. 

	Fixes: #481687

svn path=/trunk/mcs/; revision=128807
2009-03-06 23:22:57 +00:00
Ivan Zlatev 1176505c1e 2009-03-06 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Be compatible with MS in that the scroll to
	selection has a synchronous effect. The trick here is that in
	order to avoid unnecessary calculations each time a row/column
	is added/removed we recalculate the whole grid size just before
	just before the scroll to selection.
	[Fixes bug #482478]

svn path=/trunk/mcs/; revision=128806
2009-03-06 23:13:37 +00:00
Miguel de Icaza e1217c7696 Update docs
svn path=/trunk/mcs/; revision=128805
2009-03-06 23:08:49 +00:00
Marek Habersack 1dfc535d36 2009-03-06 Marek Habersack <[email protected]>
* JsonDeserializer.cs: unquoted key values must ignore leading
	and trailing whitespace

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

	* JavaScriptSerializerTest.cs: added a test for unquoted tests
	surrounded with spaces.

svn path=/trunk/mcs/; revision=128801
2009-03-06 22:16:37 +00:00
Marek Habersack 2635b11be8 2009-03-06 Marek Habersack <[email protected]>
* XPathBinder.cs: use the pased namespace manager

svn path=/trunk/mcs/; revision=128799
2009-03-06 21:29:46 +00:00
Jb Evain 02f98668f6 remove dead files
svn path=/trunk/mcs/; revision=128798
2009-03-06 21:04:34 +00:00
Marek Habersack bf41db70d0 2009-03-06 Marek Habersack <[email protected]>
* ControlBuilder.cs: BindingContainerType - if control type of the
	containing builder is null, return typeof (Control)

svn path=/trunk/mcs/; revision=128796
2009-03-06 20:54:40 +00:00
Rodrigo Kumpera 9dfd018a50 2009-03-06 Rodrigo Kumpera <[email protected]>
* MonoType.cs (MonoTypeInfo): Add default_ctor field.

	* MonoType.cs: Add GetDefaultConstructor that caches using
	type_info.default_ctor.

	* MonoType.cs (FullName): Protects against type_info been replaced
	under the hood.

	* Activator.cs (CreateInstance): If the type is a MonoType resolve the
	default constructor using the new method from MonoType.

	Improves Activator::CreateInstance performance by at least 30%, reduces object churn
	and domain lock contention.

svn path=/trunk/mcs/; revision=128795
2009-03-06 20:42:41 +00:00
Marek Habersack eb697118c9 2009-03-06 Marek Habersack <[email protected]>
* WebControl.cs: if savedState is not an instance of Pair in
	LoadViewState, do not attempt to load from it.

svn path=/trunk/mcs/; revision=128793
2009-03-06 20:04:54 +00:00
Carlos Alberto Cortez 8ac1a60450 2009-03-06 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: LoadFile(string path) should pass by default
	RichTextBoxStreamType.RichText, without caring about the detection or
	extension of the file.


svn path=/trunk/mcs/; revision=128791
2009-03-06 17:00:08 +00:00
Carlos Alberto Cortez ffcb2c2896 2009-03-06 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When calling LoadFile, remove the extra EOL
	introduced by StreamReader, since it will convert the EOF to an EOL.
	Fixes #479646.


svn path=/trunk/mcs/; revision=128788
2009-03-06 16:26:55 +00:00
Jonathan Pobst 490f1e08be 2009-03-06 Jonathan Pobst <[email protected]>
* ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
	preferred size twice.

svn path=/trunk/mcs/; revision=128786
2009-03-06 15:57:53 +00:00
Zoltan Varga fa4e6773cb 2009-03-06 Zoltan Varga <[email protected]>
* arm/tramp.c: Include a change from the debian patches. Avoid #include-ing
	a file in the middle of a function.

svn path=/trunk/mono/; revision=128782
2009-03-06 15:55:12 +00:00
Jonathan Pobst 203c394283 2009-03-06 Jonathan Pobst <[email protected]>
* ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
	string if we aren't on a ToolStripDropDownMenu.

svn path=/trunk/mcs/; revision=128780
2009-03-06 15:46:39 +00:00
Zoltan Varga 25bb091e91 2009-03-06 Zoltan Varga <[email protected]>
* load-exceptions.cs load-missing.il: Add a test for #482638.

svn path=/trunk/mono/; revision=128779
2009-03-06 15:24:42 +00:00
Zoltan Varga 5c338a2cd4 2009-03-06 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Check for type load exceptions in
	the delegate ctor handling code. Fixes #482638.

svn path=/trunk/mono/; revision=128778
2009-03-06 15:22:16 +00:00
Jonathan Pobst 1e4e08a315 2009-03-06 Jonathan Pobst <[email protected]>
* ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
	code from Item to Button.  Patch from Alex Shulgin.

svn path=/trunk/mcs/; revision=128777
2009-03-06 15:12:04 +00:00
Ankit Jain 2be5adb1ae Fix bug #481336.
* SolutionParser.cs (AddWarningForMissingProjectConfiguration): New.
(AddProjectTargets): Emit warning for missing project configurations.

svn path=/trunk/mcs/; revision=128773
2009-03-06 14:24:00 +00:00
Marek Safar 0e5afb4846 New test.
svn path=/trunk/mcs/; revision=128772
2009-03-06 14:02:19 +00:00
Atsushi Eno 1c8f254702 2009-03-06 Atsushi Enomoto <[email protected]>
* MessageBodyDescription.cs, MessagePartDescription.cs,
	  OperationDescription.cs, MessageDescriptionCollection.cs:
	  clean up extra todos.


svn path=/trunk/mcs/; revision=128754
2009-03-06 04:34:31 +00:00
Zoltan Varga 4fb361f863 2009-03-06 Zoltan Varga <[email protected]>
* method-to-ir.c (mini_emit_memset): Fix the handling of size '3'. Fixes
	#481458.

	* iltests.il.in: Add a test.

svn path=/trunk/mono/; revision=128749
2009-03-06 02:35:58 +00:00
Zoltan Varga 1d7a6f8857 2009-03-06 Zoltan Varga <[email protected]>
* mini-darwin.c (mono_chain_signal): Remove this, it is already in
	mini-posix.c.

svn path=/trunk/mono/; revision=128747
2009-03-06 01:39:24 +00:00
Zoltan Varga 5739eeb285 2009-03-06 Zoltan Varga <[email protected]>
* mono-hash.c: Use precise GC allocation for the Boehm GC as well.

svn path=/trunk/mono/; revision=128745
2009-03-05 23:38:21 +00:00
Zoltan Varga 3587b4f583 2009-03-06 Zoltan Varga <[email protected]>
* threads.c (handle_store): Create the 'threads' hash table with the proper
	MONO_HASH_VALUE_GC type.

svn path=/trunk/mono/; revision=128744
2009-03-05 23:18:14 +00:00
Zoltan Varga 98a5c5b5e2 2009-03-05 Zoltan Varga <[email protected]>
* domain-internals.h (struct _MonoDomain): Move 'typeof_void' before
	FIRST_GC_TRACKED.

	* domain.c (mono_domain_create): Register the fields between FIRST_GC_TRACKED
	and LAST_GC_TRACKED as a GC root.

svn path=/trunk/mono/; revision=128734
2009-03-05 22:18:44 +00:00
Zoltan Varga e49619d4b8 2009-03-05 Zoltan Varga <[email protected]>
* gc-internal.h: Fix the comment of mono_gc_alloc_fixed.

	* object.c (mono_class_create_runtime_vtable): Create a GC descriptor for
	the static data even if it consists of 1 reference.

	* boehm-gc.c (mono_gc_alloc_fixed): Allocate using GC_MALLOC_EXPLICITLY_TYPED
	if there is a GC descriptor.

svn path=/trunk/mono/; revision=128731
2009-03-05 22:04:09 +00:00
Jb Evain 81abd9f00e adjust name
svn path=/trunk/mcs/; revision=128730
2009-03-05 22:02:27 +00:00
Mark Probst d26dae0803 ChangeLog fix.
svn path=/trunk/mono/; revision=128729
2009-03-05 21:44:30 +00:00
Zoltan Varga bf0fb046ae 2009-03-05 Zoltan Varga <[email protected]>
* reflection.c (ALLOC_REFENTRY): Allocate ReflectedEntry-es using malloc
	instead of through the GC since they contain no object references.

svn path=/trunk/mono/; revision=128727
2009-03-05 21:27:42 +00:00
Mark Probst 8909dff35e 2009-03-05 Mark Probst <[email protected]>
* mini-trampolines.c (mono_create_jump_trampoline): If the method
	is shared generic code, return the trampoline, even if the method
	has already been compiled.  Fixes #479753.

	* mini.c, mini.h: New function
	mono_jit_find_compiled_method_with_jit_info() which is the same as
	mono_jit_find_compiled_method() but also returns the jit info.

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

	* generic-sharing.c (instantiate_other_info): Always return a jump
	trampoline for method code.

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

	* bug-479763.2.cs: New test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=128723
2009-03-05 20:55:15 +00:00
Jb Evain 41f4dc49e1 we pass those
svn path=/trunk/mcs/; revision=128722
2009-03-05 20:48:55 +00:00
Jb Evain 1f1ad84e50 in System.Runtime.CompilerServices:
2009-03-05  Jb Evain  <[email protected]>

	* ExecutionScope.cs: add support for hoisted locals.

in System.Linq.Expressions:
2009-03-05  Jb Evain  <[email protected]>

	* EmitContext.cs
	* ParameterExpression.cs:
		add support for hoisted locals.

svn path=/trunk/mcs/; revision=128721
2009-03-05 20:48:13 +00:00
Mark Probst 31ce743aa3 2009-03-05 Mark Probst <[email protected]>
* method-to-ir.c (mono_method_to_ir): Only force the vtable var
	for methods which actually have one.  For all other methods, make
	sure the this argument var is live the whole method.

	* mini.c (mini_method_compile): Every shared method has a
	this/vtable/mrgctx info.  Fixes #480807.

svn path=/trunk/mono/; revision=128720
2009-03-05 20:16:59 +00:00
Atsushi Eno cfd90af68a 2009-03-05 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : fill service known types.

	* ServiceKnownTypeAttribute.cs : correct implementation to populate
	  specified types.


svn path=/trunk/mcs/; revision=128719
2009-03-05 19:10:55 +00:00
Atsushi Eno 5e2b872ee5 2009-03-05 Atsushi Enomoto <[email protected]>
* MessageHeaderException.cs : added missing members.


svn path=/trunk/mcs/; revision=128717
2009-03-05 18:46:40 +00:00
Marek Habersack 95c21ebb35 2009-03-05 Marek Habersack <[email protected]>
* culture-info-tables.h: generated to include the en-tt culture.

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

	* locales/en_TT.xml: added here since openi18n.org times out and
	also I can't update icu_locales.tar.gz. File based on en_ZA.xml
	from that tarball, with appropriate modifications.

	* Makefile.am (supp_data_files): added supp/en_TT.xml

svn path=/trunk/mono/; revision=128714
2009-03-05 18:05:11 +00:00
Bill Holmes c29c33897d 2009-03-05 Bill Holmes <[email protected]>
* mono.def : Removing missing methods to remove link errors for
	  MSVC build.  

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=128713
2009-03-05 17:56:08 +00:00
Marek Habersack b3b0c18aa6 test
svn path=/trunk/mcs/; revision=128705
2009-03-05 16:13:56 +00:00
Jb Evain 300695707b new tests
svn path=/trunk/mcs/; revision=128696
2009-03-05 15:58:29 +00:00
Jonathan Pobst d268d4b3f7 2009-03-05 Jonathan Pobst <[email protected]>
* ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
	* ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
	not a ToolStripDropDown.
	* ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.

svn path=/trunk/mcs/; revision=128694
2009-03-05 15:34:40 +00:00
Mark Probst 25c3a2f193 2009-03-05 Mark Probst <[email protected]>
* mini-ppc.c (mono_arch_build_imt_thunk): Add support for mixed
	generic/imt thunks where some entries branch through the vtable,
	while other entries branch directly.

svn path=/trunk/mono/; revision=128690
2009-03-05 14:06:59 +00:00
Marek Safar 50c9d4d4dc Less static is good for my health.
svn path=/trunk/mcs/; revision=128684
2009-03-05 13:37:23 +00:00
Zoltan Varga b7188daad8 2009-03-05 Zoltan Varga <[email protected]>
* mini-darwin.c (mono_chain_signal): Define this to fix the build.

	* mini-windows.c: Ditto.

svn path=/trunk/mono/; revision=128683
2009-03-05 13:22:48 +00:00
Jb Evain cc3f024d88 new test
svn path=/trunk/mcs/; revision=128682
2009-03-05 12:23:33 +00:00
Rolf Bjarne Kvinge 07afb3c06e 2009-03-05 Rolf Bjarne Kvinge <[email protected]>
* WaitHandle.cs: Added missing WaitOne overload.


svn path=/trunk/mcs/; revision=128681
2009-03-05 11:54:52 +00:00
Marek Safar dc2c4fc6fc 2009-03-05 Marek Safar <[email protected]>
A fix for bug #480100
	* parameter.cs: A parameter is not hoisted when used directly as ET.


svn path=/trunk/mcs/; revision=128679
2009-03-05 11:40:08 +00:00
Atsushi Eno dedaecf9c5 2009-03-05 Atsushi Enomoto <[email protected]>
* MessageHeader.cs, MessageHeaders.cs, MessageImpl.cs :
          handle headers in SL2. Slightly changed 3.0 code too.

        * Makefile : added /r:System.Xml.Linq in 2.1 too.


svn path=/trunk/mcs/; revision=128670
2009-03-05 09:33:52 +00:00
Rodrigo Kumpera bd66ac538c 2009-03-04 Rodrigo Kumpera <[email protected]>
* domain-internals.h (MonoDomain): Add two fields to cache invoke wrappers to
	capture the thread context.

	* object.c (mono_async_result_new): Cache the invoke wrappers to
	ExecutionContext::Capture.

svn path=/trunk/mono/; revision=128664
2009-03-05 02:45:14 +00:00
Rodrigo Kumpera 10b23d6c56 2009-03-04 Rodrigo Kumpera <[email protected]>
* marshal.h: Add a prototype for what mono_compile_method returns
	for invoke wrappers.

	* gc.c: Use the new prototype declaration.

svn path=/trunk/mono/; revision=128663
2009-03-05 02:45:05 +00:00
Geoff Norton b335349c8c whoops
svn path=/trunk/mono/; revision=128662
2009-03-05 02:07:48 +00:00
Geoff Norton 471fbc6415 2009-03-04 Geoff Norton <[email protected]>
* boehm-gc.c: Add some MONO_LOG tracing for the GC
        * gc-internal.h:
        * mono-gc.h: Expose mono_gc_invoke_finalizers in the embedding api.

svn path=/trunk/mono/; revision=128661
2009-03-05 02:07:43 +00:00
Ivan Zlatev 1fd3b131cc 2009-03-04 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix RowCount/ColumnCount decreasing.
	* DataGridViewTest.cs: Add tests for RowCount/ColumnCount decreasing.

	  Based on a patch by Tom Hindle <[email protected]>
	  [Fixes bug #482133]

svn path=/trunk/mcs/; revision=128645
2009-03-04 23:47:15 +00:00
Zoltan Varga 4017519a8f 2009-03-05 Zoltan Varga <[email protected]>
* mini.c (mono_jit_runtime_invoke): Speed up the invoking of parameterless
	ctors.

svn path=/trunk/mono/; revision=128638
2009-03-04 23:15:48 +00:00
Ivan Zlatev 155a71bcb9 2009-03-04 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewElement.cs:
	   - Always calls OnDataGridViewChanged() if the new DGV is
	   not the same/null as the current one.
	   - Do not throw NREs when setting TopLeftHeaderCell to null
	   - Unset the DGV for TopLeftHeaderCell when replacing it
	* DataGridViewCellTest.cs: Add tests for OnDataGridViewChanged behavior.
	  Based on a patch by Tom Hindle <[email protected]>
	  [Fixes bug #481681]

svn path=/trunk/mcs/; revision=128628
2009-03-04 22:31:19 +00:00
Marek Habersack 903e4ae007 typo fix
svn path=/trunk/mcs/; revision=128610
2009-03-04 20:02:09 +00:00
Miguel de Icaza e60cdf235d Allow doc tool to process this
svn path=/trunk/mono/; revision=128607
2009-03-04 19:22:20 +00:00
Marek Safar 84a3c4032c New tests.
svn path=/trunk/mcs/; revision=128606
2009-03-04 19:19:37 +00:00
Marek Habersack a81eabde99 2009-03-04 Marek Habersack <[email protected]>
* HttpRuntime.cs: do not clean the dynamic base directory in
	DoUnload, it can cause race conditions.

svn path=/trunk/mcs/; revision=128602
2009-03-04 19:03:18 +00:00
Marek Safar f481b632a2 2009-03-04 Marek Safar <[email protected]>
* statement.cs: Fixed an issue when using variable is of interface
	type.


svn path=/trunk/mcs/; revision=128600
2009-03-04 18:53:23 +00:00
Atsushi Eno d1dd0205d5 2009-03-04 Atsushi Enomoto <[email protected]>
* CrossDomainPolicy.cs : added validation method. Not sure if it is
	  complete.
	* CrossDomainAccessManager.cs : validate against crossdomain.xml too.


svn path=/trunk/mcs/; revision=128593
2009-03-04 18:47:53 +00:00
Atsushi Eno dfd1716b11 2009-03-04 Atsushi Enomoto <[email protected]>
* CrossDomainAccessManager.cs : replace reflection-based
	  Uri retrieval with actually working one.

	* HttpRequestChannel.cs : use cross domain access manager.


svn path=/trunk/mcs/; revision=128581
2009-03-04 18:09:16 +00:00
Atsushi Eno b91e42e4f9 2009-03-04 Atsushi Enomoto <[email protected]>
* CrossDomainAccessManager.cs : 2.1 WebRequest misses some
 	  members used here.

	* Makefile : add /r:System.Core in 2.1 build.


svn path=/trunk/mcs/; revision=128579
2009-03-04 17:22:41 +00:00
Jonathan Pobst d04ef6e296 2009-03-04 Jonathan Pobst <[email protected]>
* ToolStripDropDown.cs: When dismissing control due to ESC, don't
	hit a NRE if we are a ContextMenuStrip and do not have a parent.
	[Fixes bug #478616]

svn path=/trunk/mcs/; revision=128573
2009-03-04 16:59:45 +00:00
Jb Evain 8d485754fb 2009-03-04 Jb Evain <[email protected]>
* Mono.Cecil/StructureWriter.cs: properly set the metadata tokens
	of newly emitted modules and assemblies. Fix #480729.


svn path=/trunk/mcs/; revision=128572
2009-03-04 16:53:57 +00:00
Rolf Bjarne Kvinge 458083a928 In .:
2009-03-04  Rolf Bjarne Kvinge  <[email protected]>

	* System.Net.dll.sources: Added WriteStreamClosedEventArgs_2_1.cs
	  and WriteStreamClosedEventHandler_2_1.cs

In System.Net:
2009-03-04  Rolf Bjarne Kvinge  <[email protected]>

	* WebClient_2_1.cs: Stub out missing methods.
	* WriteStreamClosedEventArgs_2_1.cs: 
	* WriteStreamClosedEventHandler_2_1.cs: Added.


svn path=/trunk/mcs/; revision=128571
2009-03-04 16:49:21 +00:00
Atsushi Eno 1642ff0d80 2009-03-04 Astushi Enomoto <[email protected]>
* net_2_1_raw_System.ServiceModel.dll.sources :
	  added cross domain checker sources.

	* CrossDomainAccessManager.cs, ClientAccessPolicy.cs,
	  CrossDomainPolicy.cs : new. support cross domain access check.


svn path=/trunk/mcs/; revision=128570
2009-03-04 16:47:34 +00:00
Zoltan Varga cb3c09048b 2009-03-04 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): Add some debug code to help track
	down an assert.

svn path=/trunk/mono/; revision=128568
2009-03-04 16:33:59 +00:00
Martin Baulig 20c0e71706 Clean up the debugger's exception API and add some documentation.
2009-03-04  Martin Baulig  <[email protected]>

	* debug-mini.c: Clean up the exception API and add documentation.
	(mono_debugger_handle_exception): New public method; this is
	called when throwing an exception or encountering an unhandled one.
	(mono_debugger_call_exception_handler): Formerly known as
	mono_debugger_handle_exception(); this is used to tell the
	debugger that we're about to invoke an exception handler.

svn path=/trunk/mono/; revision=128556
2009-03-04 15:40:48 +00:00
Mark Probst 10dd41427e 2009-03-04 Mark Probst <[email protected]>
* Makefile.am: Second part of the erroneous change reverted.  I
	suck.

svn path=/trunk/mono/; revision=128554
2009-03-04 15:23:53 +00:00
Mark Probst a1eceff44a 2009-03-04 Mark Probst <[email protected]>
* Makefile.am: Erroneous change reverted.

svn path=/trunk/mono/; revision=128553
2009-03-04 15:21:05 +00:00
Mark Probst 05e40a6dd7 2009-03-04 Mark Probst <[email protected]>
* method-to-ir.c: Don't inline methods that use JMP.  Fixes
	#481403.

2009-03-04  Mark Probst  <[email protected]>

	* bug-481403.il: New test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=128552
2009-03-04 15:13:32 +00:00
Mark Probst 11361185a2 2009-03-04 Mark Probst <[email protected]>
* exceptions-x86.c: Include debug-mini.h - fixes build.

svn path=/trunk/mono/; revision=128549
2009-03-04 15:05:34 +00:00
Martin Baulig 79fe383003 Improved the debugger's exception handling code.
2009-03-04  Martin Baulig  <[email protected]>

	* debug-mini.c (mono_debugger_runtime_invoke): Moved here from
	../metadata/mono-debug-debugger.c; save and reset exception state.

2009-03-02  Martin Baulig  <[email protected]>

	* debug-mini.c: Moved the debugger exception handling here from
	../metadata/mono-debug-debugger.c.

	* debug-mini.h
	(MonoDebuggerExceptionAction): New exception typedef.

	* debug-mini.c
	(MonoDebuggerThreadInfo): Added `MonoObject *last_exception'.

	* exceptions-amd64.c
	(mono_amd64_throw_exception): Use the new debugger exception
	handling code.

	* mini-exceptions.c
	(mono_handle_exception_internal): Don't call
	mono_debugger_unhandled_exception() here.

2009-03-04  Martin Baulig  <[email protected]>

	* mono-debug.h
	(mono_debugger_runtime_invoke): Removed.

	* mono-debug-debugger.c
	(mono_runtime_invoke): Moved into ../mini/debug-mini.c.

2009-03-02  Martin Baulig  <[email protected]>

	* mono-debug.h
	(mono_debugger_unhandled_exception): Removed.
	(mono_debugger_handle_exception): Removed.
	(mono_debugger_throw_exception): Removed.

	* mono-debug.c
	(mono_debug_debugger_version): Bump to 5.

	* mono-debug-debugger.c: Moved the exception handling code to
	../mini/debug-mini.c

svn path=/trunk/mono/; revision=128544
2009-03-04 14:16:55 +00:00
Gonzalo Paniagua Javier 3a3cce358a 2009-03-03 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: don't allocate the IPv6 array for IPv4 addresses.


svn path=/trunk/mcs/; revision=128515
2009-03-04 03:15:52 +00:00
Zoltan Varga 34df9a2168 2009-03-04 Zoltan Varga <[email protected]>
* RxInterpreter.cs (ResetGroups): Avoid allocating larger than needed
	arrays.

svn path=/trunk/mcs/; revision=128509
2009-03-04 00:49:06 +00:00
Gonzalo Paniagua Javier 407a62a4cc unused var
svn path=/trunk/mcs/; revision=128508
2009-03-03 23:54:30 +00:00
Zoltan Varga 6341b0c39a Revert a change commited by mistake.
svn path=/trunk/mono/; revision=128497
2009-03-03 23:23:23 +00:00
Marek Habersack 12d560e4e0 2009-03-03 Marek Habersack <[email protected]>
* CachedRawResponse.cs: headers are stored in NameValueCollection
	now.

2009-03-03  Marek Habersack  <[email protected]>

	* HttpResponse.cs: fully implemented the Headers property.
	It is also used in the 1.1 profile, but is internal.

	* HttpCookie.cs: GetCookieHeader renamed to GetCookieHeaderValue -
	now returns a string with the header value.

	* HttpCacheVaryByParams.cs: GetResponseHeader renamed to
	GetResponseHeaderValue - now returns a string with the header
	value.

	* HttpCachePolicy.cs: SetHeaders now takes a NameValueCollection
	instead of an ArrayList

svn path=/trunk/mcs/; revision=128494
2009-03-03 22:55:44 +00:00
Marek Habersack 0bc065aa3e 2009-03-03 Marek Habersack <[email protected]>
* HttpRequest.cs: avoid calculating the same value twice in
	MakeInputStream

svn path=/trunk/mcs/; revision=128493
2009-03-03 22:54:17 +00:00
Zoltan Varga 276b78748a 2009-03-03 Zoltan Varga <[email protected]>
* domain-internals.h (struct _MonoDomain): Add a separate lock for the
	finalize_objects_hash.

	* gc.c: Use the separate lock to access the finalize_objects_hash field.

svn path=/trunk/mono/; revision=128490
2009-03-03 22:18:15 +00:00
Zoltan Varga 31ea4f19c4 In metadata/
2009-03-03  Zoltan Varga  <[email protected]>

	* domain-internals.h (struct _MonoDomain): Add finalize_runtime_invoke
	field.

	* metadata-internals.h (struct _MonoImage): Add runtime_invoke_vcall_cache
	cache.

	* image.c (mono_image_close): Free it.
	
	* marshal.c (mono_marshal_get_runtime_invoke): Add a 'virtual' argument
	allowing a creation of a wrapper which invokes its method using a CALLVIRT
	on the this argument.

	* gc.c (run_finalize): Optimize the calling of the finalizers.

In mini/

2009-03-03  Zoltan Varga  <[email protected]>

	* mini.c aot-compiler.c: Update after the changes to 
	mono_marshal_get_runtime_invoke ().


svn path=/trunk/mono/; revision=128489
2009-03-03 22:07:31 +00:00
Rodrigo Kumpera d8f9612533 2009-03-03 Rodrigo Kumpera <[email protected]>
* Control.cs (FillControlCache): Remove useless control
	parameter. It's always the same of 'this'.

svn path=/trunk/mcs/; revision=128488
2009-03-03 21:50:44 +00:00
Rodrigo Kumpera 75123d34b9 2009-03-03 Rodrigo Kumpera <[email protected]>
* DataBoundLiteralControl.cs: Don't init static literals
	as they are lazily created.

svn path=/trunk/mcs/; revision=128485
2009-03-03 20:42:21 +00:00
Rodrigo Kumpera 6c09fbdf51 2009-03-03 Rodrigo Kumpera <[email protected]>
* Guid.cs (BaseToString): Reduce allocations.

svn path=/trunk/mcs/; revision=128477
2009-03-03 19:39:48 +00:00
Martin Baulig 86ff08cde9 Bump MONO_DEBUGGER_MAJOR_VERSION to 81 because of the `MonoGenericInst' changes.
svn path=/trunk/mono/; revision=128461
2009-03-03 18:41:34 +00:00
Rodrigo Kumpera 8c98541c0e 2009-03-03 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_MonoType_GetGenericArguments): Use
	mono_array_class_get_cached to reduce locking contention. Extract
	a domain var.

	* icall.c (ves_icall_Type_GetFields_internal): Avoid allocating
	intermediary managed arrays. Use caching version of mono_array_new
	to allocate the result array.

	* icall.c (ves_icall_Type_GetEvents_internal): Same.

	* icall.c (ves_icall_Type_GetNestedTypes): Same.

	* locales.c (create_names_array_idx):  Use mono_array_new_cached
	to reduce locking contention.

svn path=/trunk/mono/; revision=128455
2009-03-03 17:14:21 +00:00
Marek Safar a479cb5ca0 Updated.
svn path=/trunk/mono/; revision=128451
2009-03-03 15:45:38 +00:00
Marek Safar da90bb11ec New test.
svn path=/trunk/mcs/; revision=128450
2009-03-03 15:45:13 +00:00
Marek Safar cccf6d7749 New test.
svn path=/trunk/mcs/; revision=128449
2009-03-03 15:45:01 +00:00
Marek Safar 0c94cf907b 2009-03-03 Marek Safar <[email protected]>
A fix for bug #480319
	* report.cs, driver.cs: Support -warnaserror-:<warning list> option.


svn path=/trunk/mcs/; revision=128448
2009-03-03 15:43:54 +00:00
Marek Safar 45e9b03fc4 New test.
svn path=/trunk/mcs/; revision=128442
2009-03-03 13:55:29 +00:00
Marek Safar 561415f5b0 2009-03-03 Marek Safar <[email protected]>
A fix for bug #480867
	* typemanager.cs, expression.cs, ecore.cs: Changed method group
	expression to have no valid type.


svn path=/trunk/mcs/; revision=128441
2009-03-03 13:55:14 +00:00
Marek Safar 1c3dd589e5 New test.
svn path=/trunk/mcs/; revision=128435
2009-03-03 12:58:19 +00:00
Marek Safar dad1a5b337 2009-03-03 Marek Safar <[email protected]>
A fix for bug #481258
	* class.cs: Set extension method flag in partial container.


svn path=/trunk/mcs/; revision=128433
2009-03-03 12:57:55 +00:00
Marek Safar 1c65d7739f New tests.
svn path=/trunk/mcs/; revision=128427
2009-03-03 12:16:11 +00:00
Marek Safar 8b20a0b200 2009-03-03 Marek Safar <[email protected]>
* statement.cs, typemanager.cs: Use expression for StringEmitter.
	
	* attribute.cs: Add sanity check.


svn path=/trunk/mcs/; revision=128426
2009-03-03 12:15:54 +00:00
Marek Habersack 3c865b398f 2009-03-03 Marek Habersack <[email protected]>
* ListView.cs: SetPageProperties invoked the
	PagePropertiesChanging event with the startRowIndex and
	maximumRows parameters reversed. Fixes bugs #481250 and #481252

svn path=/trunk/mcs/; revision=128408
2009-03-03 01:28:50 +00:00
Marek Habersack ed9ff6a1db 2009-03-03 Marek Habersack <[email protected]>
* DataPagerField.cs: GetQueryModeStartRowIndex must return 'true'
	if in query mode. Fixes bug #481248

svn path=/trunk/mcs/; revision=128407
2009-03-03 01:28:31 +00:00
Chris Toshok 53fd125cbe In System.Runtime.Serialization/System.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs: 2.1
	has HasValue.

In System.XML/System.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs,
	EntityResolvingXmlReader.cs: 2.1 has HasValue.


In System.XML/Mono.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* SubtreeXmlReader.cs, XmlFilterReader.cs: 2.1 has HasValue.

In System.Xml.Linq/System.Xml.Linq:
2009-03-02  Chris Toshok  <[email protected]>

	* XNodeReader.cs: 2.1 has HasValue.

In System.ServiceModel.Web/System.Runtime.Serialization.Json:
2009-03-02  Chris Toshok  <[email protected]>

	* JsonReader.cs: 2.1 has HasValue.


svn path=/trunk/mcs/; revision=128406
2009-03-03 00:44:33 +00:00
Zoltan Varga ad5cfa2fec 2009-03-03 Zoltan Varga <[email protected]>
* object.c (mono_method_add_generic_virtual_invocation): Put back the
	thunk builder code for the non-interface case.

svn path=/trunk/mono/; revision=128404
2009-03-03 00:23:07 +00:00
Zoltan Varga aefd991135 2009-03-03 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): 
	Virtual generic methods might not have method->slot set, work around
	that.

	* generics.cs: Add a test.

svn path=/trunk/mono/; revision=128401
2009-03-02 23:57:09 +00:00
Everaldo Canuto f1f2c8e08f 2009-03-02 Everaldo Canuto <[email protected]>
* HttpResponse.cs: Headers property implementation.
	

svn path=/trunk/mcs/; revision=128397
2009-03-02 23:30:43 +00:00
Ankit Jain 2f41a9c813 In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* Csc.cs (AddResponseFileCommands): Split DefineConstants on ';'.

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

	* CscTest.cs (DefineConstants): Add some extra semi-colons,
	that should get removed on output.
	(DefineConstants2): New. Test effectively empty define constants.

svn path=/trunk/mcs/; revision=128396
2009-03-02 23:20:18 +00:00
Geoff Norton 496192596f 2009-03-02 Geoff Norton <[email protected]>
* mini.c:
        * driver.c: Allow signal chaining of SIGFPE as well.

svn path=/trunk/mono/; revision=128388
2009-03-02 22:26:21 +00:00
Jb Evain 9d90e808ed preserve internal methods of EventInfo
svn path=/trunk/mcs/; revision=128387
2009-03-02 22:23:24 +00:00
Rodrigo Kumpera c347298eae 2009-03-02 Rodrigo Kumpera <[email protected]>
* appdomain.c (MONO_CORLIB_VERSION): Bump corlib version.

	* object-internals.h (MonoReflectionEvent): Add cached_add_event.

svn path=/trunk/mono/; revision=128384
2009-03-02 21:47:56 +00:00
Rodrigo Kumpera 2ad3203a3d 2008-03-02 Rodrigo Kumpera <[email protected]>
* EventInfo.cs: Apply similar trick to the one in MonoProperty to speed up
	AddEventHandler.

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

	* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=128383
2009-03-02 21:47:45 +00:00
Rodrigo Kumpera 87cd861056 2009-03-02 Rodrigo Kumpera <[email protected]>
* object-internals.h: Rename _MonoReflectionEvent to
	MonoReflectionMonoEvent so it reflects the right managed type.
	Add a MonoReflectionEvent that correctly represents System.EventInfo.

	* icall.c:
	* reflection.c: Adjust code to use the new MonoReflectionMonoEvent
	type.

svn path=/trunk/mono/; revision=128382
2009-03-02 21:47:39 +00:00
Zoltan Varga a3c86be330 2009-03-02 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_generic_virtual_remoting_trampoline): Update
	this since it now receives the method not its generic context in the
	IMT reg.

svn path=/trunk/mono/; revision=128381
2009-03-02 21:39:49 +00:00
Rodrigo Kumpera d894e45bec 2009-03-02 Rodrigo Kumpera <[email protected]>
* Enum.cs (IsDefined): If the enum underlying type is int32, use
	the generic version, which doesn't box every element of the array.

svn path=/trunk/mcs/; revision=128367
2009-03-02 18:20:18 +00:00
Zoltan Varga eeb54ee416 2009-03-02 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_build_imt_thunk): Add support for mixed
	generic/imt thunks where some entries branch through the vtable, while
	other entries branch directly.

	* mini-x86.c (mono_arch_build_imt_thunk): Ditto.

	* method-to-ir.c (mono_method_to_ir): Enable fast virtual generic call 
	support for interface methods as well.

	* mini-trampolines.c: Add support for virtual generic methods in interfaces
	using the normal IMT thunks.

	generics.cs: Add new tests.

svn path=/trunk/mono/; revision=128360
2009-03-02 16:12:06 +00:00
Zoltan Varga f0ac9a1880 2009-03-02 Zoltan Varga <[email protected]>
* object.c (get_generic_virtual_entries): New helper function to collect
	the virtual generic method instances which need to be added to an IMT
	thunk.
	(mono_method_add_generic_virtual_invocation): Add a 'vtable' argument.
	Instead of creating a new IMT thunk, reset the vtable slot to the
	trampoline, the thunk will be created the next time the trampoline is called.
	(build_imt_slots): Add support for virtual generic methods in interfaces by
	adding to the IMT thunk all the methods registered using 
	mono_method_add_generic_virtual_invocation ().

	* object-internals.h (_MonoImtBuilderEntry): Add a 'has_target_code' field.
	(struct _MonoIMTCheckItem): Ditto.

svn path=/trunk/mono/; revision=128359
2009-03-02 16:08:28 +00:00
Rodrigo Kumpera 3e3eca918b 2009-03-02 Rodrigo Kumpera <[email protected]>
* Enum.cs (GetName): If the enum underlying type is int32, use
	the generic version, which doesn't box every element of the array.

svn path=/trunk/mcs/; revision=128356
2009-03-02 15:39:27 +00:00
Rodrigo Kumpera f0b5231c6c 2009-03-02 Rodrigo Kumpera <[email protected]>
* Enum.cs (MonoEnumInfo::GetInfo): Share the boxed form of the
	MonoEnumInfo between both caches.

svn path=/trunk/mcs/; revision=128355
2009-03-02 15:39:24 +00:00
Zoltan Varga 8da1adb232 2009-03-02 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Pass the method instead of
	the generic inst to the generic imt thunks. This fixes AOT support, 
	improves consistency with the normal IMT thunks, and makes it easier to
	add support for interface generic virtual methods later.

	* mini-trampolines.c (mono_magic_trampoline): Ditto.	

svn path=/trunk/mono/; revision=128353
2009-03-02 14:40:41 +00:00
Zoltan Varga 008101c105 2009-03-02 Zoltan Varga <[email protected]>
* object.c (mono_method_add_generic_virtual_invocation): Take a
	MonoMethod argument instead of a MonoGenericInst. Fix the construction of
	the IMT thunk to include all items.

svn path=/trunk/mono/; revision=128351
2009-03-02 14:37:53 +00:00
Zoltan Varga 86e81d06b1 2009-03-02 Zoltan Varga <[email protected]>
* object.c (mono_class_create_runtime_vtable): Add a missing
	mono_loader_unlock ().

svn path=/trunk/mono/; revision=128350
2009-03-02 14:18:34 +00:00
Rodrigo Kumpera de0367fae9 2009-03-02 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Avoid allocating
	intermediary managed arrays. Use caching version of mono_array_new
	to allocate the result array.

svn path=/trunk/mono/; revision=128348
2009-03-02 13:24:08 +00:00
Jonathan Pryor 33f149233f * Monodoc/ecma-provider.cs: Viewing type members (plural, e.g. the
Fields sub-node) would result in a stack overflow within
	  Resources/mdoc-html-utils.xsl:GetInheritedMembers(), because the
	  document() XSLT function was being used to obtain the base type's
	  documentation.  It stack overflowed because the XmlUrlResolver was
	  being used, which when given e.g. file:///DocAttribute.xml, would
	  return file:///DocAttribute.xml (which makes sense), but it was
	  non-terminating.  (I find this troubling as it should have been
	  trying to resolve e.g. System.Attribute, not DocAttribute; it must
	  be some XmlTransform-fu that was substituting documents.)
	  The fix is for EcmaUncompiledHelpSource to provide an alternate
	  document XmlResolver, one which always returns null from
	  XmlResolver.ResolveUri(), thus preventing endless recursion.

svn path=/trunk/mcs/; revision=128318
2009-03-01 23:10:04 +00:00
Jb Evain 2c3af2f5ee revert
svn path=/trunk/mcs/; revision=128311
2009-03-01 19:29:28 +00:00
Jb Evain 5f937cc06b 2009-03-01 Jb Evain <[email protected]>
* Makefile: tune for internal use, but don't install.
	Temporary situation, this will require more discussion
	with spouliot.


svn path=/trunk/mcs/; revision=128310
2009-03-01 19:29:01 +00:00
Jb Evain e5193fef81 2009-03-01 Jb Evain <[email protected]>
* Mono.Tuner.dll.sources
	* Mono.Tuner/MoonlightAssemblyStep.cs: add new step specific
	to moonlight to instrument Moonlight assemblies one by one.


svn path=/trunk/mcs/; revision=128309
2009-03-01 19:26:28 +00:00
Carlos Alberto Cortez c353a63c55 2009-03-01 Carlos Alberto Cortez <[email protected]>
* ListView.cs: When removing items from a ListViewItemCollection
	contained in ListView (not in ListViewGroup), before actually removing
	the items remove them also from their -if any- associated groups. If
	the item is present in ListViewGroup.Items but not in ListView.Items,
	then don't remove it - this is *exactly* what .net seems to do.
	Fixes the remaining bits of #478689.


svn path=/trunk/mcs/; revision=128308
2009-03-01 19:20:22 +00:00
Jonathan Pryor dd0a0c1baa * Mono.Documentation/XmlDocUtils.cs: It's possible for the `loader'
delegate to return `null' if no further base types are found, so
	  stop processing if we find a null base type.
	* Monodoc/provider.cs: 
	  - Make GetHelpStream() virtual so that EcmaUncompiledHelpSource can
	    override it, as the default zip-based behavior is inappropriate.
	  - Make GetHelpXmlWithChanges() virtual so that
	    EcmaUncompiledHelpSource can override it, as the default zip-based
	    behavior is inappropriate.
	  - When initializing UncompiledHelpSources, set the
	    HelpSource.RootTree property (avoids an NRE from
	    EcmaHelpSource.GetTextFromUrl() when it reads RootTree.HelpSources).
	* Monodoc/ecma-provider.cs: 
	  - Within the XmlDocUtils.AddExtensionMethods() call, don't always 
	    prefix the type with "T:", as sometimes the type will already start 
	    with "T:", which is the case with EcmaUncompiledHelpSource ids.  
	  - Add EcmaUncompiledHelpSource.GetHelpStream() and
	    EcmaUncompiledHelpSource.GetHelpXmlWithChanges(), which Do The
	    Right Thing for the file-based backend.

svn path=/trunk/mcs/; revision=128306
2009-03-01 18:43:53 +00:00
Jonathan Pryor bbee9f0970 * Monodoc/ecma-provider.cs: For some reason,
EcmaHelpSource.GetNamespaceDocument() wasn't being used anymore,
	  which is what EcmaUncompiledHelpSource overrides to permit loading
	  of local files.  Result: an exception when trying to view namespaces
	  of local (non-assembled) directories.  Oops.  "Fixes" 443508.

svn path=/trunk/mcs/; revision=128305
2009-03-01 18:18:51 +00:00
Rodrigo Kumpera 1cfee61958 2009-03-01 Rodrigo Kumpera <[email protected]>
* reflection.c: Use cached version of mono_array_new alongside
	the mono_reflection_get_custom_attrs_by_type call path.

svn path=/trunk/mono/; revision=128304
2009-03-01 17:54:06 +00:00
Rodrigo Kumpera 07d1ee6cf7 2009-03-01 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetInterfaces): Avoid allocating
	intermediary managed arrays. Use caching version of mono_array_new
	to allocate the result array.

	* icall.c (ves_icall_Type_GetConstructors_internal): Same.

svn path=/trunk/mono/; revision=128303
2009-03-01 17:53:57 +00:00
Rodrigo Kumpera 1c4c2b4b78 2009-03-01 Rodrigo Kumpera <[email protected]>
* icall.c: Add small implementation of a growable stack bound array.

	* icall.c (ves_icall_System_Enum_get_hashcode): Fix warning.

	* icall.c (ves_icall_Type_GetPropertiesByName): Avoid allocating
	intermediary managed arrays. Use caching version of mono_array_new
	to allocate the result array.

svn path=/trunk/mono/; revision=128302
2009-03-01 17:13:00 +00:00
Zoltan Varga 752d9d2b37 2009-03-01 Zoltan Varga <[email protected]>
* NameValueCollection.cs (AsSingleString): Avoid the allocation of
	a stringbuilder for collections with only one element.

svn path=/trunk/mcs/; revision=128295
2009-03-01 08:57:13 +00:00
Gonzalo Paniagua Javier e0c90228e4 2009-03-01 Gonzalo Paniagua Javier <[email protected]>
* WebEncoding.cs: another GetWebApplication here.


svn path=/trunk/mcs/; revision=128293
2009-03-01 07:40:39 +00:00
Zoltan Varga fcda685198 2009-02-28 Zoltan Varga <[email protected]>
* driver.c (mono_set_signal_chaining): New public API function to enable
	signal chaining on POSIX platforms.

	* mini-posix.c mini.c: Applied a variant of a patch by Simon Rowland 
	([email protected]) to implement signal chaining. The original patch was
	contributed under the MIT X/11 license:
	https://bugzilla.novell.com/show_bug.cgi?id=318894

svn path=/trunk/mono/; revision=128282
2009-03-01 00:12:13 +00:00
Marek Habersack da7b280757 2009-03-01 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: optimized GetWebApplicationSection a
	bit

svn path=/trunk/mcs/; revision=128278
2009-02-28 23:17:42 +00:00
Gonzalo Paniagua Javier d7f1dbcff0 missed these two
svn path=/trunk/mcs/; revision=128276
2009-02-28 20:37:37 +00:00
Gonzalo Paniagua Javier e63f092be1 2009-02-28 Gonzalo Paniagua Javier <[email protected]>
* AppResourcesAssemblyBuilder.cs:
	* BuildManagerDirectoryBuilder.cs:
	* AspComponentFoundry.cs:
	* AssemblyBuilder.cs:
	* CachingCompiler.cs:
	* AspGenerator.cs:
	* WsdlBuildProvider.cs:
	* BaseCompiler.cs:
	* BuildProvider.cs:
	* AppWebReferencesCompiler.cs:
	* TemplateControlCompiler.cs:
	* BuildManager.cs:
	* AppCodeCompiler.cs: settings that have to be in
	machine.config or the root level web.config now call
	GetWebApplicationSection.


svn path=/trunk/mcs/; revision=128275
2009-02-28 20:30:31 +00:00
Gonzalo Paniagua Javier 871da8a251 2009-02-28 Gonzalo Paniagua Javier <[email protected]>
* BaseParser.cs:
	* PageParser.cs:
	* ControlBuilder.cs:
	* TemplateParser.cs:
	* Page.cs:
	* SimpleWebHandlerParser.cs: settings that have to be in
	machine.config or the root level web.config now call
	GetWebApplicationSection.



svn path=/trunk/mcs/; revision=128273
2009-02-28 20:04:36 +00:00
Zoltan Varga 9818419d09 2009-02-28 Zoltan Varga <[email protected]>
* EventHandlerList.cs: Change this to use a linked list as stated by the
	MSDN docs.

svn path=/trunk/mcs/; revision=128272
2009-02-28 19:54:14 +00:00
Gonzalo Paniagua Javier a547c94668 2009-02-28 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpResponseHeader.cs:
	* System.Web/HttpResponse.cs:
	* System.Web/QueueManager.cs:
	* System.Web/HttpRequest.cs:
	* System.Web/TraceManager.cs:
	* System.Web/HttpServerUtility.cs:
	* System.Web/HttpApplication.cs:
	* System.Web.UI/ObjectStateFormatter.cs:
	* System.Web.Security/FormsAuthentication.cs: use GetWebApplication
	instead of GetSection for application level configuration.


svn path=/trunk/mcs/; revision=128270
2009-02-28 18:56:20 +00:00
Zoltan Varga d43afcd6d5 2009-02-28 Zoltan Varga <[email protected]>
* Enum.cs (FindName): Use a hash table for looking up names instead of
	a linear search for enums with a lot of values.

svn path=/trunk/mcs/; revision=128267
2009-02-28 16:21:38 +00:00
Martin Baulig a3ed5ef01f Add .gitignore.
svn path=/trunk/mono/; revision=128266
2009-02-28 14:37:10 +00:00
Martin Baulig 1cbad8abc3 Create .gitignore's.
svn path=/trunk/mono/; revision=128265
2009-02-28 14:36:50 +00:00
Carlos Alberto Cortez d5d3f65317 2009-02-28 Carlos Alberto Cortez <[email protected]>
* ListView.cs: In our MouseDown handler in ItemControl use the item in
	the very specific *real* position where the mouse was pressed, using
	GetItemAtDisplayIndex for that purpose, instead of directly accessing
	Items - this is specially useful when groups with Details view is
	used. This is what we do in other places when using groups.
	Fixes part of #478689.


svn path=/trunk/mcs/; revision=128264
2009-02-28 12:39:44 +00:00
Rodrigo Kumpera 0ab891a1fb 2008-02-28 Rodrigo Kumpera <[email protected]>
* MonoProperty.cs (GetValue): Don't use the delegate optimization for valuetypes.

svn path=/trunk/mcs/; revision=128262
2009-02-28 06:21:53 +00:00
Marek Habersack cab3168b4d 2009-02-28 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: make sure no nrex happens in
	GetSectionCacheKey ()

svn path=/trunk/mcs/; revision=128251
2009-02-28 02:15:28 +00:00
Marek Habersack 98803dbdf1 2009-02-28 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: Avoid double OnInit in scenarios with two master
	pages.

svn path=/trunk/mcs/; revision=128249
2009-02-28 01:37:27 +00:00
Rodrigo Kumpera 7758eae8ca 2009-02-27 Rodrigo Kumpera <[email protected]>
* UInt16.cs (CompareTo/short): Make it return the
	same values as the /object version.

	* Enum.cs (CompareTo): Use new compare_value_to icall to do the comparison.
	This avoids two allocations and reduce the number of trips to unmanaged land
	by one.

	The performance improvement is up to 3.5x with the bonus of reducing the generated
	garbage.

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

	EnumTest.cs: Tests for CompareTo.

svn path=/trunk/mcs/; revision=128247
2009-02-27 23:20:03 +00:00
Rodrigo Kumpera 33555ddf1b 2009-02-27 Rodrigo Kumpera <[email protected]>
* icall.c: New icall ves_icall_System_Enum_compare_value_to that
	helps Enum::CompareTo to be implemented without reboxing all enums
	to their underlying type.

svn path=/trunk/mono/; revision=128246
2009-02-27 23:19:58 +00:00
Jonathan Pryor 247cfd34f0 * System.Text.RegularExpressions/Regex.cs (Replace): Check that input &
evaluator are not null, as documented in MSDN (and the variance found 
	  while testing DbLinq).
	* Test/System.Text.RegularExpressions/RegexReplace.cs: Add null 
	  argument checks for Regex.Replace().

svn path=/trunk/mcs/; revision=128241
2009-02-27 21:40:17 +00:00
Zoltan Varga 282132ce15 2009-02-27 Zoltan Varga <[email protected]>
* domain.c (SET_APPDOMAIN): Avoid calling TlsSetValue () on some platforms,
	since it acquires a global lock leading to scalability problems.

svn path=/trunk/mono/; revision=128236
2009-02-27 18:35:39 +00:00
Rodrigo Kumpera c4a81454fa 2009-02-27 Rodrigo Kumpera <[email protected]>
* ReflectionPropertyDescriptor.cs: Don't cache getter and
	setter properties. Cache instead the PropertyInfo objects
	that defined them.

	PropertyInfo::Get/SetValue is faster than calling the method
	throught reflection.

svn path=/trunk/mcs/; revision=128235
2009-02-27 18:07:36 +00:00
Zoltan Varga 4d6220fe6c 2009-02-27 Zoltan Varga <[email protected]>
* iltests.il.in (test_0_implicit_float_to_double_conversion): Disable this
	too until it can be made to run on amd64.

svn path=/trunk/mono/; revision=128234
2009-02-27 18:04:08 +00:00
Atsushi Eno d0c02bc418 2009-02-27 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : look for unordered members first, in
          different iteration. Got SL OpenStreetMap working.


svn path=/trunk/mcs/; revision=128231
2009-02-27 16:13:11 +00:00
Atsushi Eno b7c8529416 2009-02-27 Atsushi Enomoto <[email protected]>
* ClientBase.cs : give successful WCF call completion info.


svn path=/trunk/mcs/; revision=128230
2009-02-27 16:10:20 +00:00
Carlos Alberto Cortez c1de482ac4 2009-02-27 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: Properly replace selection when a new valid key
	is pressed - even when IsOverwriteMode is false. This is what .net
	does.


svn path=/trunk/mcs/; revision=128224
2009-02-27 15:41:14 +00:00
Jb Evain 989fb6a289 oops
svn path=/trunk/mcs/; revision=128222
2009-02-27 15:02:56 +00:00
Jb Evain 58b02b21ac 2009-02-27 Jb Evain <[email protected]>
* Makefile: don't tune net_2_1 assemblies here.
	moon takes care of that now.


svn path=/trunk/mcs/; revision=128221
2009-02-27 15:01:17 +00:00
Gonzalo Paniagua Javier d98635e2ce 2009-02-27 Gonzalo Paniagua Javier <[email protected]>
* ResourceSet.cs: populating the resource should be locked because the
	resourceset could be shared.


svn path=/trunk/mcs/; revision=128215
2009-02-27 17:32:18 +00:00
Jb Evain 62f22f6d09 property MonoProperty completely
svn path=/trunk/mcs/; revision=128210
2009-02-27 12:46:07 +00:00
Marek Safar 8c5e2089a1 New test.
svn path=/trunk/mcs/; revision=128209
2009-02-27 12:29:22 +00:00
Marek Safar 1ef0102954 2009-02-27 Marek Safar <[email protected]>
* class.cs: Add external constructor error.


svn path=/trunk/mcs/; revision=128208
2009-02-27 12:29:07 +00:00
Atsushi Eno 86d031f8a5 2009-02-27 Atsushi Enomoto <[email protected]>
* Message.cs : (in CreateBufferedCopy) do not pass the entire
          message as BodyWriter.
          (in GetReaderAtBodyContents) just write body contents.
        * MessageImpl.cs : do not try to read body at ctor (fixed tons
          of test failures).
          Add some state check in GetReaderAtBodyContents().
        * XmlReaderBodyWriter.cs : avoid possible extra xmldecl onto output.


svn path=/trunk/mcs/; revision=128186
2009-02-27 09:05:12 +00:00
Atsushi Eno 2bf962aa2a 2009-02-27 Atsushi Enomoto <[email protected]>
* XmlReader.cs : do not try to read at non-readable state in
          MoveToContent().


svn path=/trunk/mcs/; revision=128185
2009-02-27 09:04:00 +00:00
Zoltan Varga c05620f465 2009-02-27 Zoltan Varga <[email protected]>
* arm/{arm_fpamacros.h, arm_vfpmacros.h}: Remove these files, they are
	autogenerated.

svn path=/trunk/mono/; revision=128179
2009-02-27 06:21:52 +00:00
Atsushi Eno bfab1d0b09 2009-02-27 Atsushi Enomoto <[email protected]>
* ClientBase.cs : diagnose more precisely.


svn path=/trunk/mcs/; revision=128178
2009-02-27 05:08:10 +00:00
Zoltan Varga eca6fdb769 2009-02-27 Zoltan Varga <[email protected]>
* profiler.c: Make the stat profiler work with multiple appdomains, this
	currently only works when no appdomains are unloaded.

svn path=/trunk/mono/; revision=128176
2009-02-27 02:42:42 +00:00
Rodrigo Kumpera 2295554090 2008-02-26 Rodrigo Kumpera <[email protected]>
* MonoProperty.cs (GetValue): Optimize getters for properties without arguments.

svn path=/trunk/mcs/; revision=128173
2009-02-27 01:50:58 +00:00
Rodrigo Kumpera 64824031a2 2008-02-26 Rodrigo Kumpera <[email protected]>
* MonoProperty.cs (GetValue): Optimize getters for properties without arguments.
	The optimization is to create a pair of chained delegates that duplicate the workings
	on MethodBase::Invoke without all the aditional overhead and without doing two
	managed/native transitions.

	Simple Getter performance is up to 17x faster.

	This patch reduces contention on domain and domain jit code hash locks, which
	can be very hot on asp.net applications.

svn path=/trunk/mcs/; revision=128172
2009-02-27 01:46:32 +00:00
Carlos Alberto Cortez 421e92fb51 2009-02-26 Carlos Alberto Cortez <[email protected]>
* MaskedTextBoxTest.cs: Yet a new Text test case.


svn path=/trunk/mcs/; revision=128166
2009-02-27 01:29:20 +00:00
Carlos Alberto Cortez 91e12d2a53 2009-02-26 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: When setting Text use the very precise algorithm
	that .net uses: iterate over every char of the new value, trying to
	use every char, and use a normal call to MaskedTextProvider.Replace
	call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
	in case of error in both cases, as well.
	Fixes #477408.


svn path=/trunk/mcs/; revision=128165
2009-02-27 01:26:49 +00:00
Zoltan Varga 09047c897a 2009-02-27 Zoltan Varga <[email protected]>
* BaseMachine.cs (LTRReplace): Initialize the StringBuilder with an
	appropriate initial length.

svn path=/trunk/mcs/; revision=128158
2009-02-26 23:24:42 +00:00
Jonathan Pryor e0df4ec966 * Monodoc/provider.cs: Revert; Don't check for Tree.Nodes == null, as it
happens in numerous places.  Instead, take a page out of the "I
	  never should have invented `null'" book, and ensure that Tree.Nodes
	  can never be null.  This fixes the "HelpSource has 0 items" issue
	  and several other related ones.

svn path=/trunk/mcs/; revision=128134
2009-02-26 18:24:25 +00:00
Jonathan Pryor ab0bbb10a0 * Mono.Documentation/assembler.cs: When processing an empty directory,
it's possible for HelpSource.Tree to be null; avoid an NRE.

svn path=/trunk/mcs/; revision=128132
2009-02-26 18:03:52 +00:00
Jonathan Pryor 2be8257cb1 * Monodoc/provider.cs: It's possible for a HelpSource to have 0
elements (which can be done by e.g. running `mdoc assemble' on an 
	  empty directory), in which case HelpSource.Tree.Nodes will be null.
	  Make sure that we don't get a NullReferenceException.
	  Patch thanks to Theerud Lawtrakul.  Fixes #443699.

svn path=/trunk/mcs/; revision=128131
2009-02-26 18:01:56 +00:00
Marek Safar 5bf6ebdfbe 2009-02-26 Marek Safar <[email protected]>
* Nullable.cs: Inline GetValueOrDefault.


svn path=/trunk/mcs/; revision=128129
2009-02-26 17:56:57 +00:00
Gonzalo Paniagua Javier 89d246e068 typo
svn path=/trunk/mono/; revision=128127
2009-02-26 17:44:46 +00:00
Gonzalo Paniagua Javier 8be913bd09 2009-02-26 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: make the check to avoid copying when the assembly is
	already shadow copied actually work.


svn path=/trunk/mono/; revision=128125
2009-02-26 17:41:29 +00:00
Miguel de Icaza f95ffd949d Update docs as usual
svn path=/trunk/mono/; revision=128124
2009-02-26 17:30:53 +00:00
Gonzalo Paniagua Javier db46edacce 2009-02-26 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationManager.cs: generate a hash from the string hsah
	codes instead of concatenating them.


svn path=/trunk/mcs/; revision=128121
2009-02-26 17:24:22 +00:00
Marek Safar b0afbbb709 New test.
svn path=/trunk/mcs/; revision=128119
2009-02-26 17:05:03 +00:00
Marek Safar e7ead66345 2009-02-26 Marek Safar <[email protected]>
A fix for bug #475354
	* convert.cs, nullable.cs, expression.cs, statement.cs: Emit
	correctly user defined nullable equality operators.


svn path=/trunk/mcs/; revision=128118
2009-02-26 17:03:47 +00:00
Zoltan Varga 34c48054c2 2009-02-26 Zoltan Varga <[email protected]>
* String.cs (FormatHelper): If all the arguments are strings, compute an
	initial length for the stringbuilder to avoid reallocations.

svn path=/trunk/mcs/; revision=128114
2009-02-26 16:32:52 +00:00
Atsushi Eno 975351e769 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientProxyGenerator.cs : fix wrong argument index.


svn path=/trunk/mcs/; revision=128105
2009-02-26 15:45:58 +00:00
Atsushi Eno 2302b97b38 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientBase.cs : use overridable CreateChannel().


svn path=/trunk/mcs/; revision=128104
2009-02-26 15:45:27 +00:00
Marek Habersack 2aaf750270 2009-02-26 Marek Habersack <[email protected]>
* TagAttributes.cs: modified ToString to return string formatted
	in a more helpful way.

	* AspParser.cs: added ToString, helpful when debugging.

	* AspGenerator.cs: properly print leading and trailing plain text
	when looking for embedded tags in ProcessTagsInAttributes.

svn path=/trunk/mcs/; revision=128091
2009-02-26 14:16:20 +00:00
Sebastien Pouliot ba38f3736b 2008-02-26 Sebastien Pouliot <[email protected]>
* merge.cs: Smarter merge to avoid duplicate (or unneeded) attributes
	on methods when a type is decorated with SC or SSC.


svn path=/trunk/mcs/; revision=128089
2009-02-26 13:37:32 +00:00
Zoltan Varga 53117ce147 2009-02-26 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_get_this_arg_from_call): Avoid expensive calls
	to  get_generic_context_from_code () + get_call_info () if possible.

svn path=/trunk/mono/; revision=128088
2009-02-26 13:23:25 +00:00
Ankit Jain 11db3d2767 * xbuild/Microsoft.CSharp.targets (Csc): Fix "Resources" argument to use
ManifestNonResxWithCultureOnDisk instead of ManifestResourceWithNoCultureOnDisk.

svn path=/trunk/mcs/; revision=128081
2009-02-26 11:52:46 +00:00
Gonzalo Paniagua Javier e87cc9e44d fix the build
svn path=/trunk/mono/; revision=128062
2009-02-26 07:29:03 +00:00
Atsushi Eno 5c9c248b76 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientBase.cs : make it work with SL2 UI threading model.


svn path=/trunk/mcs/; revision=128058
2009-02-26 05:26:53 +00:00
Atsushi Eno 01d6ebe113 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientProxyGenerator.cs : simply use CodeMethod.GetArg().


svn path=/trunk/mcs/; revision=128057
2009-02-26 05:26:20 +00:00
Atsushi Eno cc898786e4 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs,
	  ClientBase.cs, ChannelFactory_1.cs, DuplexClientBase.cs:
	  now ClientBase<TChannel>.InnerChannel became ChannelBase<T> as
	  SL2 does. This change required several internal changes in
	  proxy code generation. Also, now TChannel must be class.


svn path=/trunk/mcs/; revision=128056
2009-02-26 05:14:17 +00:00
Atsushi Eno 707e1e5a84 2009-02-26 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : ClientBase<> argument type must be
	  class (the class itself is to be fixed soon as well).


svn path=/trunk/mcs/; revision=128055
2009-02-26 05:06:53 +00:00
Atsushi Eno 9096916965 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientRuntime.cs : fill contractType in .ctor().


svn path=/trunk/mcs/; revision=128054
2009-02-26 05:04:48 +00:00
Veerapuram Varadhan dba89de6c2 * Tds.cs (ProcessLoginAck): Set TdsVersion to the version
supported by the server.
        (GetColumnValue): lcid and sortId are available only from Tds 8.

        * Tds80.cs (ProcessColumnInfo, ProcessOutputParam): Call base
        methods if the server version is less than Tds 8.


svn path=/trunk/mcs/; revision=128053
2009-02-26 04:18:02 +00:00
Miguel de Icaza 456f323eb9 Add support for platforms without rewinddir
svn path=/trunk/mono/; revision=128052
2009-02-26 04:00:13 +00:00
Jonathan Pryor a71b039661 * Makefile:
- s/TEST_FILES/MAN_TEST_FILES/g: $(TEST_FILES) is used by the normal
	    build process, so the local definition is lost (and thus ignored).
	    Result: Test/* isn't actually copied.  Oops.  Changing to
	    MAN_TEST_FILES allows things to be copied.
	  - Fix the filenames within $(MAN_TEST_FILES) so `make dist-local'
	    works without error.
	  - Fixes #479753.

svn path=/trunk/mcs/; revision=128051
2009-02-26 03:20:13 +00:00
Marek Habersack e177724b7c 2009-02-26 Marek Habersack <[email protected]>
* HttpResponse.cs: added DisableKernelCache and TransmitFile
	methods.

svn path=/trunk/mcs/; revision=128048
2009-02-26 02:33:14 +00:00
Marek Habersack 2bdb89e14a 2009-02-26 Marek Habersack <[email protected]>
* FileLevelControlBuilderAttribute.cs,
	DataSourceCacheDurationConverter: hush the gmcs warnings

svn path=/trunk/mcs/; revision=128047
2009-02-26 02:33:04 +00:00
Marek Habersack 3dfbadffd6 2009-02-26 Marek Habersack <[email protected]>
* System.Web.dll.sources: added System.Web/IisTraceListener.cs

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

	* IisTraceListener.cs: added + implemented

svn path=/trunk/mcs/; revision=128046
2009-02-26 02:32:53 +00:00
Marek Habersack 050d494dc8 2009-02-25 Marek Habersack <[email protected]>
* HttpApplication.cs: let the current context known that
	MapRequestHandler is done.

	* HttpContext.cs: implemented RemapHandler

svn path=/trunk/mcs/; revision=128045
2009-02-26 02:32:28 +00:00
Neville Gao 1ce090146a Added UIA Framwork Property: UIASelectedSmallColorControl.
svn path=/trunk/mcs/; revision=128044
2009-02-26 02:26:51 +00:00
Zoltan Varga 06dcb14d18 2009-02-26 Zoltan Varga <[email protected]>
* appdomain.c (MONO_CORLIB_VERSION): Bump corlib version.

	* object-internals.h (struct _MonoReflectionGenericClass): Sync with
	changes to the managed side.

svn path=/trunk/mono/; revision=128043
2009-02-26 02:08:32 +00:00
Zoltan Varga 24d7574814 2009-02-26 Zoltan Varga <[email protected]>
* MonoType.cs (FullName): Cache the result of this in a field, as
	computing it is expensive.

	* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=128042
2009-02-26 02:07:46 +00:00
Marek Habersack a4e019893e 2009-02-26 Marek Habersack <[email protected]>
* data/mono.web.pc.in: added. Fixes bug #479760

	* data/Makefile.am:  added mono.pc{.in} wherever necessary

svn path=/trunk/mono/; revision=128040
2009-02-26 02:02:29 +00:00
Ankit Jain cc86c83cdf * xbuild/Microsoft.Common.targets: Make targets extensible. Add
before/after hooks.

svn path=/trunk/mcs/; revision=128034
2009-02-25 21:20:19 +00:00
Ankit Jain 0f559fe76b * MakeDir.cs (Execute): Don't create+log if dir already exists.
svn path=/trunk/mcs/; revision=128033
2009-02-25 21:20:15 +00:00
Ankit Jain 7ad89b017f * Target.cs: Handle target with no tasks. Log errors.
svn path=/trunk/mcs/; revision=128032
2009-02-25 21:20:06 +00:00
Ankit Jain 59e9ba0acb * xbuild/Microsoft.Common.targets: Use obj/$(Config) as the default intermediate
output path, instead of just obj/

svn path=/trunk/mcs/; revision=128031
2009-02-25 21:19:46 +00:00
Carlos Alberto Cortez 152afa8c69 * MaskedTextBox.cs: Forgot to update the call of the new method
introduces in the previous patch.

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


svn path=/trunk/mcs/; revision=128022
2009-02-25 17:38:16 +00:00
Marek Safar 06177779f6 New test.
svn path=/trunk/mcs/; revision=128017
2009-02-25 16:46:43 +00:00
Marek Safar 5d4df1afc1 2009-02-25 Marek Safar <[email protected]>
A fix for bug #479532
	* expression.cs: Implement NewInitialize::AddressOf.


svn path=/trunk/mcs/; revision=128015
2009-02-25 16:36:34 +00:00
Zoltan Varga 7b7cce98f9 2009-02-25 Zoltan Varga <[email protected]>
* metadata-internals.h (struct _MonoImage): Add a new cache for szarray
	classes + a separate lock for it, as it is used frequently at runtime, not
	just during metadata loading/JIT compilation.

	* class.c (mono_bounded_array_class_get): Use the separate cache + lock
	for szarrays.

svn path=/trunk/mono/; revision=128012
2009-02-25 15:27:32 +00:00
Zoltan Varga 2da32076d2 2009-02-25 Zoltan Varga <[email protected]>
* object-internals.h (mono_class_from_name_cached): New macro to cache
	the results of the lookup locally without having to declare a static
	variable to hold it.
	(mono_class_get_field_from_name_cached): Ditto.
	(mono_array_class_get_cached): Ditto.

	* threadpool.c threads.c locales.c icall.c reflection.c socket-io.c: Use
	the new macros.

svn path=/trunk/mono/; revision=128011
2009-02-25 15:25:28 +00:00
Zoltan Varga ec6c5f7157 2009-02-25 Zoltan Varga <[email protected]>
* object.c (mono_get_delegate_invoke): Call setup_methods () to avoid the
	slower search in metadata.

svn path=/trunk/mono/; revision=128010
2009-02-25 15:22:11 +00:00
Sebastien Pouliot 8712464cd2 2008-02-25 Sebastien Pouliot <[email protected]>
* merge.cs: Avoid duplicates in the merged files (e.g. an SC from
	both compatibility and automatic).


svn path=/trunk/mcs/; revision=128009
2009-02-25 15:19:31 +00:00
Carlos Alberto Cortez fb5db9a425 2009-02-25 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
	key. Also create a new method to avoid code duplication between
	OnKeyDown and OnKeyPress.
	Fixes #477388.


svn path=/trunk/mcs/; revision=128006
2009-02-25 14:42:20 +00:00
Ankit Jain dd98e11f2d * AL.cs (Execute): Use ToolTask.Execute instead of doing our own.
svn path=/trunk/mcs/; revision=128004
2009-02-25 14:07:59 +00:00
Marek Safar ef4823e2cc New test.
svn path=/trunk/mcs/; revision=127991
2009-02-25 11:40:21 +00:00
Marek Safar 79b101151a 2009-02-25 Marek Safar <[email protected]>
A fix for bug #413633
	* expression.cs: Iterate all base class-constraint types.


svn path=/trunk/mcs/; revision=127989
2009-02-25 11:39:03 +00:00
Zoltan Varga cd4e922f4e 2009-02-25 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_handle_native_sigsegv): Implement the
	suspend-on-sigsegv functionality.

	* mini.c (mini_parse_debug_options): Add a new 'suspend-on-sigsegv' option
	to suspend when a native SIGSEGV is received. This is useful for debugging
	crashes which don't happen under gdb, since a live process contains more
	information than a core file.

	* mini-exceptions.c (mono_print_thread_dump): Use 
	MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX instead of platform defines.

	* mini-x86.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): New define.

	* mini-amd64.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): Ditto.

svn path=/trunk/mono/; revision=127943
2009-02-25 04:43:30 +00:00
Zoltan Varga 0e724f88e4 2009-02-25 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_handle_native_sigsegv): Implement the
	suspend-on-sigsegv functionality.

	* mini.c (mini_parse_debug_options): Add a new 'suspend-on-sigsegv' option
	to suspend when a native SIGSEGV is received. This is useful for debugging
	crashes which don't happen under gdb, since a live process contains more
	information than a core file.

	* mini-exceptions.c (mono_print_thread_dump): Use 
	MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX instead of platform defines.

	* mini-x86.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): New define.

	* mini-amd64.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): Ditto.

svn path=/trunk/mono/; revision=127942
2009-02-25 04:43:09 +00:00
Zoltan Varga 10fa340068 2009-02-25 Zoltan Varga <[email protected]>
* basic-float.cs: Disable the tests which currently fail on amd64.

svn path=/trunk/mono/; revision=127941
2009-02-25 04:34:37 +00:00
Zoltan Varga 7938e71cb7 2009-02-25 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass a non-null 
	value to mono_arch_patch_callsite () to fix crashes.

svn path=/trunk/mono/; revision=127940
2009-02-25 04:33:10 +00:00
Ankit Jain 34192e533f * AssemblyResolver.cs:
* ResolveAssemblyReference.cs: Honor SpecificVersion. Emit detailed error
messages incase assembly resolution fails. Make specific version
strict.

svn path=/trunk/mcs/; revision=127939
2009-02-25 04:03:55 +00:00
Ankit Jain c90ba409c8 In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* ManagedCompiler.cs (AddResponseFileCommands): Use LogicalName for
	embedded resources, wherever available.
	* CreateCSharpManifestResourceName.cs (GetResourceIdFromFileName): Use
	Path.Combine instead of hardcoding "\".

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

	* CreateCSharpManifestResourceNameTest.cs (CheckResourceNames):
	Refactor a bit to improve error reporting.
	Update to use Path.Combine instead of hardcoding "\".

In tools/xbuild:
	* xbuild/Microsoft.Common.targets (CopyNonResxEmbeddedResources): New.
	(GenerateSatelliteAssemblies): Update to use the new ManifestNonResxWithCultureOnDisk
	instead of NonResxWithCulture.
	* xbuild/Microsoft.CSharp.targets (Csc): Fix "Resources" argument to use
	the new on disk file names instead of original filenames.

svn path=/trunk/mcs/; revision=127938
2009-02-25 03:14:13 +00:00
Marek Habersack 39ea4c8b32 2009-02-25 Marek Habersack <[email protected]>
* AspTokenizer.cs: put_back now uses a stack and allows more than
	one invocation when called inside a tag.

	* AspGenerator.cs: when a nested parser is used, pay attention to
	server tags found inside client tags and add them to the control
	tree.

svn path=/trunk/mcs/; revision=127935
2009-02-25 02:49:25 +00:00
Marek Habersack 5d6c42706d 2009-02-24 Marek Habersack <[email protected]>
* TempFileStream.cs: the class is internal

	* VirtualPathUtility.cs: ToAbsolute (string, string, bool) is
	internal

svn path=/trunk/mcs/; revision=127934
2009-02-25 02:48:53 +00:00
Andrés G. Aragoneses eeb713067a changelog..
svn path=/trunk/mcs/; revision=127933
2009-02-25 02:33:30 +00:00
Andrés G. Aragoneses 5bb70a1030 * Test/System.Diagnostics/ProcessTest.cs: New tests for bug 477943.
* System.Diagnostics/Process.cs: Throw IOEs instead of normal
exceptions. Fixes bug 477943.

svn path=/trunk/mcs/; revision=127932
2009-02-25 02:28:14 +00:00
Zoltan Varga 560bc6d36d 2009-02-25 Zoltan Varga <[email protected]>
* Enum.cs (GetInfo): Add a global cache in addition to the thread-local
	caches to accomodate short living threads like threadpool threads.

svn path=/trunk/mcs/; revision=127929
2009-02-25 01:56:48 +00:00
Zoltan Varga 46a4b73e67 2009-02-25 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix a warning.

svn path=/trunk/mono/; revision=127926
2009-02-25 00:57:17 +00:00
Zoltan Varga b03a6726cd 2009-02-25 Zoltan Varga <[email protected]>
* pedump.c: Fix a warning.

svn path=/trunk/mono/; revision=127922
2009-02-25 00:35:07 +00:00
Gonzalo Paniagua Javier 2b6f0ebd4a 2009-02-24 Gonzalo Paniagua Javier <[email protected]>
* StringReaderTest.cs: new test for ReadLine.


svn path=/trunk/mcs/; revision=127915
2009-02-24 23:49:51 +00:00
Gonzalo Paniagua Javier f2a2398195 2009-02-24 Gonzalo Paniagua Javier <[email protected]>
* StringReader.cs: LF followed by CR is 2 lines.


svn path=/trunk/mcs/; revision=127914
2009-02-24 23:48:36 +00:00
Jonathan Pryor 48e3fc379c * docs/Makefile: Remove and don't install nunit-docs.source. As
Atsushi Enomoto said on 2008-11-26, Mono's NUnit is for internal use
	  only, and installing nunit-docs.source causes an warning message
	  during monodoc startup.
	* docs/nunit-docs.source: Remove.

svn path=/trunk/mcs/; revision=127907
2009-02-24 22:01:18 +00:00
Marek Safar 33bb9c5223 New test.
svn path=/trunk/mcs/; revision=127899
2009-02-24 20:37:52 +00:00
Zoltan Varga dabd23ce6e 2009-02-24 Zoltan Varga <[email protected]>
* CILCompiler.cs: Partially inline calls to Char.ToLower () to speed
	up ignorecase matching.

svn path=/trunk/mcs/; revision=127898
2009-02-24 20:34:33 +00:00
Marek Safar eaa019702e 2009-02-24 Marek Safar <[email protected]>
A fix for bug #479209
	* literal.cs: Mutate null underlying type.


svn path=/trunk/mcs/; revision=127897
2009-02-24 20:23:34 +00:00
Ivan Zlatev cd52322d96 2009-02-24 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: Invalidate the datagrid when the cell is selected
	or deselected.
	[Fixes bug #479124]

svn path=/trunk/mcs/; revision=127890
2009-02-24 19:56:46 +00:00
Ankit Jain 21d69ad7a8 * xbuild/Microsoft.Common.targets (GetTargetPath): Add a path separator.
svn path=/trunk/mcs/; revision=127889
2009-02-24 19:55:12 +00:00
Ankit Jain 06937a74e5 * MSBuild.cs (Execute): Reset current directory back after every
project's execution.

svn path=/trunk/mcs/; revision=127888
2009-02-24 19:52:21 +00:00
Ankit Jain 9339d57f1d * SolutionParser.cs (ParseSolution): Report warning instead of error
for unknown global sections.

svn path=/trunk/mcs/; revision=127887
2009-02-24 19:48:11 +00:00
Ankit Jain 6a0836cf66 In class/Microsoft.Build.Utilities:
* Microsoft.Build.Utilities.dll.sources: Add ProcessService.cs,
	ProcessWrapper.cs, IAsyncOperation.cs and IProcessAsyncOperation.cs

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:

	* ProcessService.cs, IAsyncOperation.cs, IProcessAsyncOperation.cs,
	ProcessWrapper.cs: Brought in from monodevelop.
	* ToolTask.cs: Use the new ProcessService to execute the tool. Honor
	SkipTaskExecution (). Use response files, but log the contents of the
	response file instead of "@foo.rsp". Support environmentOverrides.
	(LogEventsFromTextOutput): Add null check.
	* Exec.cs (GetWorkingDirectory): Use the workingDirectory property.

svn path=/trunk/mcs/; revision=127886
2009-02-24 19:41:52 +00:00
Alan McGovern 48280f71e3 2009-02-24 Alan McGovern <[email protected]>
* System.Net/WebClient_2_1.cs: If we're getting text, ensure we
        strip out the byte order mark if it exists.


svn path=/trunk/mcs/; revision=127880
2009-02-24 18:20:22 +00:00
Marek Habersack 75a2356018 2009-02-24 Marek Habersack <[email protected]>
* BuildManager.cs: Path.Combine must not be passed null first
	parameter.

svn path=/trunk/mcs/; revision=127878
2009-02-24 18:12:35 +00:00
Marek Habersack 9d591942b7 2009-02-24 Marek Habersack <[email protected]>
* HttpException.cs: made the HttpException (int httpCode, string
	message, Exception innerException, string resourceName) internal.

svn path=/trunk/mcs/; revision=127877
2009-02-24 18:10:38 +00:00
Marek Habersack 79c365f192 2009-02-24 Marek Habersack <[email protected]>
* ResXFileRef.cs: the class must be internal when compiled as part
	of System.Web

svn path=/trunk/mcs/; revision=127875
2009-02-24 17:54:52 +00:00
Jb Evain be10bc84b0 we're passing the enum comparison tests
svn path=/trunk/mcs/; revision=127873
2009-02-24 17:13:09 +00:00
Jb Evain 6d8ee2b854 2009-02-24 Jb Evain <[email protected]>
* Expression.cs (BinaryCoreCheck): fix comparison of enums


svn path=/trunk/mcs/; revision=127871
2009-02-24 17:09:23 +00:00
Jb Evain 4e42fe9f25 new enums tests
svn path=/trunk/mcs/; revision=127869
2009-02-24 17:01:11 +00:00
Marek Safar 40e7740221 New test.
svn path=/trunk/mcs/; revision=127868
2009-02-24 16:58:37 +00:00
Marek Safar f2832f7cba 2009-02-24 Marek Safar <[email protected]>
A fix for bug #476295
	* convert.cs: Avoid wrapping implicitly convertible reference type.


svn path=/trunk/mcs/; revision=127867
2009-02-24 16:57:53 +00:00
Sebastien Pouliot 13e2f8da3f 2009-02-24 Sebastien Pouliot <[email protected]>
* SafeHandle.cs: Add default ctor in 2.1 profile (needed to compile
	new unit tests in moonlight).


svn path=/trunk/mcs/; revision=127861
2009-02-24 13:19:52 +00:00
Veerapuram Varadhan c59f2dd2ba * *Fixes #377146 - in a better way
* XmlDataReader.cs (ReadElementElement): For reference types
          that implements IXmlSerializable, call the corresponding ReadXml.
        * DataSet.cs (WriteColumnAsElement): For reference types that
          implements IXmlSerializable, call the corresponding WriteXml.

svn path=/trunk/mcs/; revision=127849
2009-02-24 09:27:32 +00:00
Atsushi Eno a93062e7b6 Ignore all failing-under-dotnet tests.
svn path=/trunk/mcs/; revision=127845
2009-02-24 07:33:41 +00:00
Veerapuram Varadhan 725f21290b * OracleException: 2.0 changes - patch submitted by
Jay Wren <[email protected]>


svn path=/trunk/mcs/; revision=127839
2009-02-24 05:18:07 +00:00
Veerapuram Varadhan 2b1c534a40 * Fixes #476523
* DbType.cs: Add DateTime2 and DateTimeOffset - 3.5 additions
        Patch by Jay Wren <[email protected]>


svn path=/trunk/mcs/; revision=127836
2009-02-24 04:58:27 +00:00
Ankit Jain bd33dcb033 Lazily load UsingTask tasks.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

	Lazily load UsingTask tasks.
	* UsingTask.cs (Evaluate): Register 'this' with task database,
	but don't load it yet. Register only if condition evaluates to true.
	Move the load logic to ..
	(Load): .. here. Register with the specified task database.
	* TaskDatabase.cs (RegisterUsingTask): Store the UsingTask instance
	in a table keyed by task name, but don't load it yet.
	(GetTypeFromClassName): Try to load UsingTask if task is not already
	loaded. Move loading logic to ..
	(GetTypeFromClassNameInternal): .. here.
	(CopyTasks): Copy the usingTasks table also.

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

	* UsingTaskTest.cs (TestLazyLoad{1,2,3}): New.
	(TestAssemblyNameOrAssemblyFileConditionFalse): New.
	(TestDuplicate1): New.
	* TargetTest (CheckLoggedMessageHead): Moved to TestMessageLogger,
	use that.

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

	* TestTasks.cs (Another.SameTask): New.
	(Other.SameTask): New.

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

	* TestMessageLogger.cs (CheckLoggedMessageHead): Move here from
	* TaskBatchingTest.cs: .. here. Track api change.

svn path=/trunk/mcs/; revision=127830
2009-02-24 00:12:25 +00:00
Marek Safar 9c04d84ab9 2009-02-23 Marek Safar <[email protected]>
* iterators.cs: Create global MemberName correctly.


svn path=/trunk/mcs/; revision=127822
2009-02-23 22:56:04 +00:00
Marek Safar d93ce80221 2009-02-23 Marek Safar <[email protected]>
* Enumerable.cs (IterateNullable): Compare unwrapped values.


svn path=/trunk/mcs/; revision=127820
2009-02-23 22:34:17 +00:00
Carlos Alberto Cortez d7e9cfe1b8 2009-02-23 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
	actually inversed, so put it the right way. Also, don't automatically
	look for the next editable item after adding a new one, but way for
	the next insertion (this is what .net does) - this is not needed when
	MaskedTextProvider.InsertAt is called however, since it already looks for the
	next editable position.
	Fixes the remaining bits of #477383.


svn path=/trunk/mcs/; revision=127819
2009-02-23 22:29:50 +00:00
Zoltan Varga 9d5b786e3c 2009-02-23 Zoltan Varga <[email protected]>
* os_dep.c (GC_init_linux_data_start): Avoid the call to GC_find_limit ()
	if GC_no_dls is TRUE, as it is not needed and it complicates debugging since
	it causes a SIGSEGV.

svn path=/trunk/mono/; revision=127807
2009-02-23 21:26:49 +00:00
Zoltan Varga 3980eb0b28 2009-02-23 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Replace the
	nop code by patching the call address to point to the nullified class init
	trampoline, as the former does not seem to be safe on SMP machines.

svn path=/trunk/mono/; revision=127806
2009-02-23 21:19:23 +00:00
Carlos Alberto Cortez ff0cff6d39 2009-02-23 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: In OnKeyPress handle backspace by calling
	MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
	property after the text was modified, adjust the testPosition value
	depending on what method was called.
	Fixes part of #477383.


svn path=/trunk/mcs/; revision=127798
2009-02-23 20:19:01 +00:00
Jb Evain d45c953776 2009-02-23 Jb Evain <[email protected]>
* XAttributeTest.cs: add test for XAttribute holding DateTimes.


svn path=/trunk/mcs/; revision=127785
2009-02-23 19:18:29 +00:00
Jb Evain 442edd369f 2009-02-23 Jb Evain <[email protected]>
* XUtil.cs (ToString): properly stringify datetimes.


svn path=/trunk/mcs/; revision=127784
2009-02-23 19:17:31 +00:00
Mark Probst 6dab63a346 2009-02-23 Mark Probst <[email protected]>
* mini-ops.h: Fix the argument types for a few x86 opcodes where
	they were wrong.

svn path=/trunk/mono/; revision=127781
2009-02-23 18:51:11 +00:00
Jb Evain 4bbb23f446 we pass those
svn path=/trunk/mcs/; revision=127773
2009-02-23 18:13:22 +00:00
Jb Evain 5333294da5 2009-02-23 Jb Evain <[email protected]>
* Enumerable.cs (IterateNullable): fix initial value
	for nullables.


svn path=/trunk/mcs/; revision=127772
2009-02-23 18:12:55 +00:00
Marek Safar aa5fd91f64 2009-02-23 Marek Safar <[email protected]>
* iterators.cs: Create MemberName correctly.


svn path=/trunk/mcs/; revision=127771
2009-02-23 17:51:58 +00:00
Jb Evain 5c1e8b92e8 more tests
svn path=/trunk/mcs/; revision=127758
2009-02-23 17:20:53 +00:00
Jb Evain 958164e595 new tests
svn path=/trunk/mcs/; revision=127757
2009-02-23 17:16:54 +00:00
Jb Evain efa6f2cba0 we pass those
svn path=/trunk/mcs/; revision=127755
2009-02-23 17:03:44 +00:00
Jb Evain 2313558b90 2009-02-23 Jb Evain <[email protected]>
* Expression.cs (IsNumber): actually decimal is rather a special
	case, and not a primitive number.


svn path=/trunk/mcs/; revision=127754
2009-02-23 17:03:21 +00:00
Jb Evain 5f9f097f58 tests for unary operations on decimal
svn path=/trunk/mcs/; revision=127752
2009-02-23 16:54:10 +00:00
Jb Evain dcbf5dbbd0 passing those
svn path=/trunk/mcs/; revision=127751
2009-02-23 16:45:35 +00:00
Marek Safar bf3459f4e2 New test.
svn path=/trunk/mcs/; revision=127750
2009-02-23 16:45:12 +00:00
Marek Safar 1c83f07deb New test.
svn path=/trunk/mcs/; revision=127749
2009-02-23 16:44:53 +00:00
Marek Safar 4e64b2fc24 2009-02-23 Marek Safar <[email protected]>
A fix for bug #478655
	* literal.cs: Check also underlying null type conversion.


svn path=/trunk/mcs/; revision=127747
2009-02-23 16:44:10 +00:00
Jb Evain 59e1ea03d7 2009-02-23 Jb Evain <[email protected]>
* Expression.cs (BinaryCoreCheck): add decimal operations
	are provided by custom operators.


svn path=/trunk/mcs/; revision=127746
2009-02-23 16:41:59 +00:00
Jb Evain 15f6cdc6cc add new tests for decimal add
svn path=/trunk/mcs/; revision=127745
2009-02-23 16:39:18 +00:00
Jonathan Pryor 2641c29114 Oops; mention correct bugzilla numbers.
svn path=/trunk/mcs/; revision=127741
2009-02-23 14:44:43 +00:00
Alan McGovern 10831124e7 2009-02-23 Alan McGovern <[email protected]>
* XmlTextReader.cs: Under the SL2 profile, the default resolver
        is a XmlXapResolver.


svn path=/trunk/mcs/; revision=127740
2009-02-23 14:33:20 +00:00
Zoltan Varga 49b0d8cc25 2009-02-23 Zoltan Varga <[email protected]>
* basic-float.cs basic-calls.cs: Fix warnings.

svn path=/trunk/mono/; revision=127736
2009-02-23 13:48:09 +00:00
Ankit Jain b69aa6001a In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* BuildItem.cs (AddMetadata): Allow overwriting older values.

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

	* Items.cs (TestItemsInTarget8): New.
	(TestItemsInTarget9): New.

svn path=/trunk/mcs/; revision=127727
2009-02-23 11:06:52 +00:00
Atsushi Eno 822b2e868a 2009-02-23 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadContentAsXxx() should not advance XmlReader
          when it is on attribute *value* text.


svn path=/trunk/mcs/; revision=127725
2009-02-23 10:56:37 +00:00
Carlos Alberto Cortez 161d8d9750 2009-02-23 Carlos Alberto Cortez <[email protected]>
* ListView.cs: For EnsureVisible, adjust the view port bounds based on
	the existence of the column headers, as well as using this information
	to adjust the vscrollbar value, so items never get hidden by the
	column headers.
	Fixes #478498.


svn path=/trunk/mcs/; revision=127720
2009-02-23 10:03:42 +00:00
Ivan Zlatev 622d6cc55d 2009-02-23 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Make the ScrollBars property work properly.

svn path=/trunk/mcs/; revision=127716
2009-02-23 09:34:51 +00:00
Atsushi Eno cacbce3947 2009-02-23 Atsushi Enomoto <[email protected]>
* xmltool.cs : Enabled new error recovery feature in RELAX NG
	  validation. It should continue error reporting until the end of
	  the document.


svn path=/trunk/mcs/; revision=127704
2009-02-23 07:02:52 +00:00
Atsushi Eno 044a553c75 2009-02-23 Atsushi Enomoto <[email protected]>
* RelaxngValidatingReader.cs : implemented error recovery feature.
	  Use InvalidNodeFound event (of type RelaxngValidationEventHandler)
	  to handle validation error like ValidationEventHandler in
	  System.Xml.XmlSchema.

	* RdpPattern.cs : added "Anything" which is used in error recovery
	  support.

	* relaxngtest.cs : added --skip-error option to test error recovery.


svn path=/trunk/mcs/; revision=127703
2009-02-23 07:01:05 +00:00
Gonzalo Paniagua Javier 7aeb0747ee 2009-02-23 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: append the QueryString in DownloadData.
	Fixes bug #323788.


svn path=/trunk/mcs/; revision=127699
2009-02-23 05:10:10 +00:00
Zoltan Varga 49a23c5e0d 2009-02-23 Zoltan Varga <[email protected]>
* reflection.c (encode_locals): Add checks for user types.
	(method_encode_clauses): Ditto.
	(method_encode_code): Ditto.
	(mono_image_create_token): Ditto.

	* object-internals.h: Change the type of more fields from MonoReflectionType*
	to MonoObject*.

svn path=/trunk/mono/; revision=127683
2009-02-23 00:40:51 +00:00
Zoltan Varga b708b3a728 2009-02-23 Zoltan Varga <[email protected]>
* TypeBuilderTest.cs: Add more tests for user types.

svn path=/trunk/mcs/; revision=127682
2009-02-23 00:38:55 +00:00
Zoltan Varga e281a9eece 2009-02-23 Zoltan Varga <[email protected]>
* ILGenerator.cs SignatureHelper.cs: Add checks for user types.

svn path=/trunk/mcs/; revision=127681
2009-02-23 00:37:34 +00:00
Zoltan Varga 95733da79a 2009-02-23 Zoltan Varga <[email protected]>
* Type.cs: Add IsUserType internal property.

svn path=/trunk/mcs/; revision=127680
2009-02-23 00:36:13 +00:00
Gonzalo Paniagua Javier 2406e58b8f 2009-02-22 Gonzalo Paniagua Javier <[email protected]>
* HttpServerUtility.cs: allow Transfer to static files too.


svn path=/trunk/mcs/; revision=127677
2009-02-23 00:22:31 +00:00
Mark Probst a207bdafb9 2009-02-22 Mark Probst <[email protected]>
* tramp-ppc.c (mono_arch_create_trampoline_code): Store the
	correct frame pointer in the LMF.  Should fix #478394.

svn path=/trunk/mono/; revision=127665
2009-02-22 20:49:26 +00:00
Robert Jordan 7556ed5bd3 2009-02-22 Robert Jordan <[email protected]>
* sockets.c: implement WSASend/WSARecv using sendmsg/recvmsg.
	Fixes #470021.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=127664
2009-02-22 19:35:50 +00:00
Zoltan Varga 85c906daad 2009-02-22 Zoltan Varga <[email protected]>
* threads.c (mono_thread_suspend_all_other_threads): Handle the case when
	the a thread does not suspend within 100ms.

	* monitor.c (mono_monitor_try_enter_internal): Handle SuspendRequested
	in addition to StopRequested as well.

svn path=/trunk/mono/; revision=127661
2009-02-22 17:43:43 +00:00
Zoltan Varga 4b5f78f745 2009-02-22 Zoltan Varga <[email protected]>
* mono-debug.c: Call _mono_debug_get_image () while holding the debug lock.

	* debug-mono-symfile.c (mono_debug_symfile_lookup_method): Actually
	search the method_hash before inserting a new entry, to avoid crashes when
	the same method is inserted multiple times, causing the old 
	MonoDebugMethodInfo structure to be freed by the value dtor function.

svn path=/trunk/mono/; revision=127660
2009-02-22 17:41:58 +00:00
Carlos Alberto Cortez 5118fb4ed2 2009-02-22 Carlos Alberto Cortez <[email protected]>
* TextBox.cs: Some code lifting for AutoComplete's support. First,
	when handling non-navigation keys, save the original Text typed by the
	user, and don't motify it BEFORE. This was a design mistake, since the
	re-assignation happens only when navigating the append/suggest list,
	not while creating the matches. Also, process the Delete key just like 
	the backspace one. Finally, when handling WM_CHAR, ignore both Escape
	and Enter keys.
	Fixes some missing bits of #469967.


svn path=/trunk/mcs/; revision=127657
2009-02-22 13:17:44 +00:00
Gonzalo Paniagua Javier 030f2a6af5 2009-02-22 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: support SO_MAXCONN, SO_USELOOPBACK and
	SO_EXLUSIVEADDRUSE where available.


svn path=/trunk/mono/; revision=127650
2009-02-22 06:42:46 +00:00
Gonzalo Paniagua Javier 411a7bbabf fix
svn path=/trunk/mcs/; revision=127645
2009-02-22 03:07:47 +00:00
Zoltan Varga cb87e8de1f 2009-02-22 Zoltan Varga <[email protected]>
* Makefile.am (fullaotcheck): Copy Mono.Simd.dll as well.

	* image-writer.c: Make the binary writer less verbose.

svn path=/trunk/mono/; revision=127644
2009-02-22 00:55:34 +00:00
Ivan Zlatev be63adb6ca 2009-02-22 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix row removal in the data-bound scenario.

svn path=/trunk/mcs/; revision=127642
2009-02-22 00:51:28 +00:00
Gonzalo Paniagua Javier f65e2cc9cc 2009-02-21 Gonzalo Paniagua Javier <[email protected]>
* FtpWebResponse.cs: return a Null stream when there's no response to
	be read.
	* FtpWebRequest.cs: provide the error returned by the server in the
	exception.
	* WebClient.cs: set the correct method when doing a FTP upload.
	Fixes bug #478451.


svn path=/trunk/mcs/; revision=127640
2009-02-21 23:30:00 +00:00
Zoltan Varga e057403c80 2009-02-21 Zoltan Varga <[email protected]>
* invoke.cs: Add a test.

svn path=/trunk/mono/; revision=127639
2009-02-21 21:31:56 +00:00
Zoltan Varga 92102896ab 2009-02-21 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Fix _another_ bug sharing
	runtime invoke wrappers, this time it is string ctor wrappers, which
	pass a dummy string as 'this' instead of their obj argument. Fixes
	#478473.

svn path=/trunk/mono/; revision=127637
2009-02-21 21:26:13 +00:00
Zoltan Varga b463ee7bb7 2009-02-21 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Don't assert if string ctors
	are called from runtime invoke wrappers.

svn path=/trunk/mono/; revision=127635
2009-02-21 21:22:25 +00:00
Ankit Jain 76c745d493 * BuildItem.cs: Iterate over XmlElements childnodes with XmlNode
instead of XmlElement. Eg. XmlComment

svn path=/trunk/mcs/; revision=127634
2009-02-21 20:59:40 +00:00
Jb Evain 3d25e5f863 2009-02-21 Jb Evain <[email protected]>
* icall.c (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
	only get create_culture once.


svn path=/trunk/mono/; revision=127633
2009-02-21 17:10:44 +00:00
Jb Evain 8a37d27e93 in System.Reflection:
2008-02-21  Jb Evain  <[email protected]>

	* Module.cs: add a new virtual GetModuleVersionId method,
	and make the properties .MvId and ModuleVersionId call it.
	This way, we can override it in ModuleBuilder.
	Part of the fix for #471302.

in System.Reflection.Emit:
2008-02-21  Jb Evain  <[email protected]>

	* ModuleBuilder.cs: override GetModuleVersionId
	so that we can get the module guid from Module.ModuleVersionId.
	Part of the fix for #471302.

svn path=/trunk/mcs/; revision=127631
2009-02-21 16:17:01 +00:00
Jb Evain a6546f45d2 2009-02-21 Jb Evain <[email protected]>
* ModuleBuilderTest.cs: add a test accessing the property
	Module.ModuleVersionId on a dynamic module.
	Test for #471302.


svn path=/trunk/mcs/; revision=127630
2009-02-21 16:16:33 +00:00
Jb Evain a20c6446ac 2009-02-21 Jb Evain <[email protected]>
* MonoType.cs (InvokeMember): don't pass a null args to
	Binder.BindToMethod. Fix for #471275.


svn path=/trunk/mcs/; revision=127628
2009-02-21 15:31:27 +00:00
Jb Evain 178a9e40bf 2009-02-21 Jb Evain <[email protected]>
* BinderTests.cs: add test for bug #471257, where Type.InvokeMember
	calls Binder.BindToMethod will a null args.


svn path=/trunk/mcs/; revision=127627
2009-02-21 15:30:22 +00:00
Ankit Jain 8c8dd7942b Fix bug #458916.
In class/Microsoft.Build.Tasks:

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

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
	Fix bug #458916.
	* Copy.cs: CopiedFiles and DestinationFiles should have target paths
	instead of source. Also, the metadata should get retained from source
	items. Based on a patch by Jeffrey Richardson <[email protected]>
	Refactor a bit to remove code duplication.

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

	* CopyTest.cs: New.

svn path=/trunk/mcs/; revision=127626
2009-02-21 13:07:52 +00:00
Marek Safar 4cd940e8e8 2009-02-21 Marek Safar <[email protected]>
* generic.cs, ecore.cs, class.cs: Removed redundant AsAccessible.


svn path=/trunk/mcs/; revision=127623
2009-02-21 10:19:13 +00:00
Ankit Jain ad948cbc16 * xbuild/xbuild.rsp: Add descriptive comments.
svn path=/trunk/mcs/; revision=127622
2009-02-21 09:41:57 +00:00
Ankit Jain 598009af19 * Parameters.cs (LoadResponseFile): Handle comments.
svn path=/trunk/mcs/; revision=127621
2009-02-21 09:41:39 +00:00
Kornél Pál 2605f4d149 EventHandlerList.cs: Fix profile 1.x build by not using HandlerEntry.
svn path=/trunk/mcs/; revision=127620
2009-02-21 09:02:54 +00:00
Ankit Jain cae15efef0 * MSBuild.cs (SplitPropertiesToDictionary): Split into exactly 2 parts.
svn path=/trunk/mcs/; revision=127619
2009-02-21 08:38:08 +00:00
Gonzalo Paniagua Javier b766293142 oops
svn path=/trunk/mcs/; revision=127617
2009-02-21 07:34:55 +00:00
Gonzalo Paniagua Javier 7ba0269b25 2009-02-21 Gonzalo Paniagua Javier <[email protected]>
* EventHandlerList.cs: there's no need for HandlerEntry here.
	Just store the delegate.


svn path=/trunk/mcs/; revision=127615
2009-02-21 07:32:46 +00:00
Gonzalo Paniagua Javier 74e4056995 2009-02-20 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs: implement the other ReadStringResource method.
	Patch from Kornel Pal.


svn path=/trunk/mcs/; revision=127596
2009-02-20 23:34:12 +00:00
Gonzalo Paniagua Javier f92e528abb fix the 1.x build
svn path=/trunk/mcs/; revision=127588
2009-02-20 22:56:52 +00:00
Rodrigo Kumpera 3fb274ec52 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* cpu-x86.md: Fix the sizes for long_conv_to_r_un and long_conv_to_r_un_2.

	* mini-x86.c (mono_arch_output_basic_block): Use only 64bits of precision for
	OP_LCONV_TO_R_UN.

	Last fix for of #467201.

svn path=/trunk/mono/; revision=127585
2009-02-20 22:50:45 +00:00
Ankit Jain fc2da77314 * Import.cs (GetFullPath): Use Utilities.FromMSBuildPath .
svn path=/trunk/mcs/; revision=127583
2009-02-20 21:40:37 +00:00
Zoltan Varga fece67382a 2009-02-20 Zoltan Varga <[email protected]>
* TypeBuilderTest.cs: Add minimal tests for user types + Ref.Emit.

svn path=/trunk/mcs/; revision=127582
2009-02-20 21:39:28 +00:00
Gonzalo Paniagua Javier 38d6841577 2009-02-20 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpWriter.cs: new Response property and WriteUTF8Ptr
	method.
	* System.Web/HttpResponseStream.cs: added support for writing from an
	IntPtr. copied the memcpy method from String.cs.

	* System.Web.Compilation/BuildManager.cs: updated comment.

	* System.Web.UI/ResourceBasedLiteralControl.cs: new Control. It's just
	like a LiteralControl but will render itself from the bytes pointed to
	by an IntPtr and not create any string from the underlying data unless
	needed.

	* System.Web.UI/TemplateControl.cs: implemented a bunch of methods
	that are used from the precompiled assemblies for a web project. The
	most notable change needed is to be able to read a win32 resource from
	the dll of the control. The resource is a concatenation of literals
	with plain text for the control and a specialized LiteralControl is
	generated from different chunks of the resource.

	* System.Web.UI/HtmlTextWriter.cs: new method that returns the
	HttpWriter in use.

	* System.Web.dll.sources: added new file.

	* System.Web.Util/ICalls.cs: new internal call to get a pointer to the
	win32 resource associated with the control's assembly.


svn path=/trunk/mcs/; revision=127579
2009-02-20 21:30:58 +00:00
Zoltan Varga 1c6b803315 2009-02-20 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_setup_internal_class): Move the user type
	check before the locking.

svn path=/trunk/mono/; revision=127578
2009-02-20 21:22:58 +00:00
Zoltan Varga f32f60d153 2009-02-20 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_setup_internal_class): Check for user types.
	(mono_reflection_create_runtime_class): Ditto.
	(mono_reflection_sighelper_get_signature_local): Ditto.
	(mono_reflection_sighelper_get_signature_field): Ditto.

	* object-internals.h (CHECK_MONOTYPE): New macro to check that a Type object
	is a System.MonoType object or similar.
	(monotype_cast): New helper function to cast a MonoObject to a 
	MonoReflectionType object.

	* object-internals.h: Change MonoReflectionType* members in structures to
	MonoObject* members to force the usage of the monotype_cast () function.

	* reflection.c icall.c: Use monotype_cast () for accessing Type members of
	structures/arrays. This causes us to assert instead of crashing when 
	instances of user defined subclasses of System.Type are encountered.

svn path=/trunk/mono/; revision=127576
2009-02-20 21:12:10 +00:00
Gonzalo Paniagua Javier b6db4349e5 2009-02-20 Gonzalo Paniagua Javier <[email protected]>
* cil-coff.h:
	* icall-def.h:
	* icall.c: add new GetUnmanagedResourcePtr that returns a pointer to a
	win32 resource loaded from a PE file.

	* image.c: fix mono_image_lookup_resource.


svn path=/trunk/mono/; revision=127574
2009-02-20 21:05:43 +00:00
Gonzalo Paniagua Javier 9ae3029aa0 ChangeLog
svn path=/trunk/mcs/; revision=127569
2009-02-20 20:34:51 +00:00
Zoltan Varga 6c89c1a8c3 2009-02-20 Zoltan Varga <[email protected]>
* cpu-ppc.md (store_memindex): Increase the size of this.

svn path=/trunk/mono/; revision=127566
2009-02-20 20:28:26 +00:00
Gonzalo Paniagua Javier 82d585aa40 2009-02-20 Gonzalo Paniagua Javier <[email protected]>
* WaitHandle.cs: implemented SignalAndWait.

svn path=/trunk/mcs/; revision=127565
2009-02-20 20:24:37 +00:00
Gonzalo Paniagua Javier 5a465d9035 ChangeLogs for previos commit.
svn path=/trunk/mono/; revision=127564
2009-02-20 20:21:47 +00:00
Gonzalo Paniagua Javier 0cb61e9935 Implement WaitHandle.SignalAndWait
Fixes bug #461123.

svn path=/trunk/mono/; revision=127563
2009-02-20 20:17:09 +00:00
Rodrigo Kumpera 6a6f8376cd 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* cpu-x86.md: Fix the sizes for fcall(_reg,_membase), long_conv_to_r4_2
	and long_conv_to_r8_2:

	Fixed part of #467201.

svn path=/trunk/mono/; revision=127562
2009-02-20 19:52:51 +00:00
Rodrigo Kumpera c6db475784 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* cpu-x86.md: Fix the sizes for fcall(_reg,_membase), long_conv_to_r4_2
	and long_conv_to_r8_2:

svn path=/trunk/mono/; revision=127561
2009-02-20 19:52:42 +00:00
Rodrigo Kumpera eebf98b143 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* mini-x86.c (mono_arch_output_basic_block): Adjust precision of int to float
	conversion to 32 bits.

	* cpu-x86.md: Increase the size of int_conv_to_r4.

	* basic-float.cs: Add a test for this.

	Fixed part of #467201.

svn path=/trunk/mono/; revision=127560
2009-02-20 19:52:35 +00:00
Rodrigo Kumpera 9d1ab907c2 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* mini-x86.c (emono_arch_output_basic_block): Adjust precision of long to double
	conversion to 64 bits.

	* basic-float.cs: Add a test for this.

	Fixed part of #467201.

svn path=/trunk/mono/; revision=127559
2009-02-20 19:52:28 +00:00
Rodrigo Kumpera 98ad90b411 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* mini-x86.c (emit_move_return_value): Don't reduce precision of functions returning float.
	This behavior is compatible with MS.

	* iltest.il.in: Add a test for this.

	Fixed part of #467201.

svn path=/trunk/mono/; revision=127558
2009-02-20 19:52:18 +00:00
Rodrigo Kumpera 05d73b3e9a 2009-02-20 Rodrigo Kumpera <[email protected]>
Extracted from a patch by Kornél Pál <[email protected]>.

	* mini-x86.c (mono_arch_output_basic_block): Implement OP_FCONV_TO_R4, it must
	change the precision of the value.

	* cpu-x86.md: Define len for float_conv_to_r4.

	* basic-float.cs: Add a test for this.

	Fixed part of #467201.

svn path=/trunk/mono/; revision=127557
2009-02-20 19:52:11 +00:00
Ankit Jain c1c3c8a4b7 * Utilities.cs (FromMSBuildPath): Copy from monodevelop.
* Project.cs (Load): Use FromMSBuildPath on the path.
(InitializeProperties): Set "MSBuildToolsPath" also.

svn path=/trunk/mcs/; revision=127553
2009-02-20 19:36:43 +00:00
Ankit Jain ef5c9e34e3 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* ConditionTokenizer.cs: Handle unquoted item references (with or w/o
	transforms) in conditions.
	* ConditionParser.cs: Parse unquoted item, property references.
	eg. Condition = " @(Foo->'%(Extension)') == '.exe' "
	* Token.cs (Token.ToString): Override.
	(TokenType.Transform): Uncomment.

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

	* Conditions.cs (TestCondition11): New. Test unquoted item/property
	references in conditions.

svn path=/trunk/mcs/; revision=127549
2009-02-20 18:46:15 +00:00
Gonzalo Paniagua Javier 03f3b382df remove warning. Either image or mp are not NULL
svn path=/trunk/mono/; revision=127545
2009-02-20 16:48:29 +00:00
Veerapuram Varadhan 5ada033601 Added test for 419224.
svn path=/trunk/mcs/; revision=127544
2009-02-20 15:48:25 +00:00
Marek Safar cab444a341 Fixed broken test.
svn path=/trunk/mcs/; revision=127542
2009-02-20 15:45:20 +00:00
Miguel de Icaza df90b5f6d5 Add debugging back
svn path=/trunk/mcs/; revision=127540
2009-02-20 15:30:15 +00:00
Jonathan Pryor 308ad22ae9 * Mono.Unix/UnixSignal.cs: Add a pipecnt member to
UnixSignal.SignalIinfo.  Patch thanks to [email protected].
	* Test/Mono.Unix/UnixSignalTest.cs: Add tests to check for concurrent
	  UnixSignal.WaitOne() invocations.  Tests thanks to 
	  [email protected].

svn path=/trunk/mcs/; revision=127539
2009-02-20 15:15:43 +00:00
Jonathan Pryor 57b521e048 * map.h: Flush (adds Mono_Unix_UnixSignal_SignalInfo::pipecnt, removes
functions no longer declared within Mono.Posix.dll).
	* signal.c: Allow Mono_Unix_UnixSignal_WaitAny() to be called 
	  concurrently from multiple threads w/o blocking each thread;
	  previously, calls to Mono_Unix_UnixSignal_WaitAny() would block
	  until the previous call completed.  This required restructuring
	  Mono_Unix_UnixSignal_SignalInfo to hold a ref-counted
	  read_fd/write_fd pair (instead of allocating & releasing within
	  _WaitAny()) so that the pipes could be "shared" between threads.
	  Patch thanks to [email protected].

svn path=/trunk/mono/; revision=127538
2009-02-20 15:15:05 +00:00
Atsushi Eno bd43e0658a 2009-02-20 Atsushi Enomoto <[email protected]>
* ChannelFactory_1.cs : it's not going to create ClientRuntime
	  anymore here. Moving to ServiceEndpoint.cs as the first stage.
	* ClientBase.cs : some comment.

	* ServiceEndpoint.cs : moved CreateRuntime() from ChannelFactory<T>.


svn path=/trunk/mcs/; revision=127531
2009-02-20 11:48:21 +00:00
Veerapuram Varadhan c55231b62e * OdbcDataReader.cs (GetValue): Handle null image data. Fixes
##419224. Patch by John Mortlock <[email protected]>.


svn path=/trunk/mcs/; revision=127530
2009-02-20 11:40:42 +00:00
Marek Safar a0bf0df57c New test.
svn path=/trunk/mcs/; revision=127529
2009-02-20 11:16:55 +00:00
Marek Safar 32a26bd42d 2009-02-20 Marek Safar <[email protected]>
A fix for bug #477447
	* statement.cs: Add reference to correct parent storey when this
	is accessible from deep children storey (more than 1 level).


svn path=/trunk/mcs/; revision=127527
2009-02-20 11:16:35 +00:00
Ankit Jain 7b7efdaac7 Fix bug #475438.
* ToolTask.cs (RealExecute): Check whether the target executable exists.
Log any execution errors.

svn path=/trunk/mcs/; revision=127526
2009-02-20 10:55:44 +00:00
Ankit Jain ed323b2cba * SolutionParser.cs (ParseSolution): Ignore solution folders.
svn path=/trunk/mcs/; revision=127524
2009-02-20 10:17:21 +00:00
Ankit Jain 64824d275f * SolutionParser.cs (ParseSolution): Ignore GlobalSection named
'NestedProjects'.

svn path=/trunk/mcs/; revision=127520
2009-02-20 09:44:01 +00:00
Ankit Jain b3a1406b71 * SolutionParser.cs (ParseProjectConfigurationPlatforms): Report missing
project guids as Warnings and not errors. Report every missing guid only
once.

svn path=/trunk/mcs/; revision=127519
2009-02-20 09:43:53 +00:00
Ankit Jain 4a5854b37f * SolutionParser.cs (projectRegex): Use '\s' to match whitespace.
svn path=/trunk/mcs/; revision=127518
2009-02-20 09:43:42 +00:00
Jonathan Chambers f592ac43c2 2009-02-19 Jonathan Chambers <[email protected]>
* Microsoft.Build.Engine.csproj: Add.
        * Microsoft.Build.Engine.Test.csproj: Update.

2009-02-19  Jonathan Chambers  <[email protected]>

        * xbuild.csproj: Add.
        * xbuild.sln: Add.


svn path=/trunk/mcs/; revision=127495
2009-02-20 02:36:28 +00:00
Veerapuram Varadhan cdb6347126 * TdsDataReader.cs: Access TdsDataColumn correctly for NET_2_0.
Fixes #466199. Patch by Tom Hindle <[email protected]>


svn path=/trunk/mcs/; revision=127494
2009-02-20 02:32:16 +00:00
Bill Holmes 12d08989d7 2009-02-19 Bill Holmes <[email protected]>
* cominterop.c : Adding cominterop_type_from_handle and 
	  registering it as an icall.  Replacing all references
	  to type_from_handle.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=127481
2009-02-19 22:48:30 +00:00
Rodrigo Kumpera ee2ef869b2 2009-02-19 Rodrigo Kumpera <[email protected]>
* LockTracerDecoder.cs: Initial version of the lock tracers decoder.

svn path=/trunk/mono/; revision=127477
2009-02-19 22:12:14 +00:00
Rodrigo Kumpera 34feb3493b 2009-02-19 Rodrigo Kumpera <[email protected]>
* Makefile.am: Add lock-tracer.h and lock-trace.c.

	* appdomain.c: Call the tracer init function.

 	* domain-internals.h: Enable the tracer for the domain locks.

	* image.c: Enable the tracer for image locks.

	* loader.c: Enable the trace for the loader lock.

	* lock-tracer.h:
	* lock-tracer.c: Initial implementation of the lock trace utility.
	The tracer requires a compile time define to be enabled and a env var
	to be enabled at runtime.

svn path=/trunk/mono/; revision=127476
2009-02-19 22:12:03 +00:00
Rodrigo Kumpera bd6746f227 2009-02-19 Rodrigo Kumpera <[email protected]>
* domain.c (mono_domain_code_foreach): Improve documentation.

svn path=/trunk/mono/; revision=127475
2009-02-19 22:11:54 +00:00
Marek Habersack bc8c63d95d 2009-02-19 Marek Habersack <[email protected]>
* ApplicationHost.cs: added support for the
	__MONO_DOMAIN_ID_SUFFIX environment variable, used by mod_mono.

svn path=/trunk/mcs/; revision=127465
2009-02-19 21:16:49 +00:00
Gonzalo Paniagua Javier 28de9fdb5c 2009-02-19 Gonzalo Paniagua Javier <[email protected]>
* src/gstr.c: use memset in g_strnfill.


svn path=/trunk/mono/; revision=127457
2009-02-19 20:35:20 +00:00
Jb Evain 37ff2d537c 2009-02-19 Jb Evain <[email protected]>
* Mono.Tuner/InjectSecurityAttributes.cs: also remove existing
	CAS security declarations before injecting CoreCLR security attributes.


svn path=/trunk/mcs/; revision=127453
2009-02-19 20:17:53 +00:00
Ivan Zlatev 350b48be5f 2009-02-19 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: Use strict equality comparison in order to
	prevent superfluous CellValueChanged events.

svn path=/trunk/mcs/; revision=127450
2009-02-19 20:14:15 +00:00
Gonzalo Paniagua Javier c0bc4cf75d 2009-02-19 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: avoid errors when creating a temporary Uri to get
	the local path.
	* WebClient.cs: when setting up the request for downloading, use the
	default method. Fixes bug #477611.


svn path=/trunk/mcs/; revision=127449
2009-02-19 20:13:58 +00:00
Rodrigo Kumpera d9e84fc8f8 2009-02-19 Rodrigo Kumpera <[email protected]>
* SecurityManager.cs: Make core-clr work under non 2.1 profiles.

svn path=/trunk/mcs/; revision=127442
2009-02-19 19:18:56 +00:00
Sebastien Pouliot e6d4c99bd4 2008-02-19 Sebastien Pouliot <[email protected]>
* detect-sc.cs, detect-ssc.cs: Accept multiple input directories
	to find the platform assemblies (and deal with the current /mcs
	and /moon locations).
	* Makefile.am: Detect platform assemblies in {x}/mcs and {x}/moon


svn path=/trunk/mcs/; revision=127439
2009-02-19 18:53:32 +00:00
Sebastien Pouliot 02be919227 2009-02-19 Sebastien Pouliot <[email protected]>
* System.Windows[.Browser].auto.[sc|scc]: New data files
	* mscorlib.auto.ssc, System.Net.auto.ssc: Updated since adding
	the first auto.sc generation cause new auto.ssc to be found.


svn path=/trunk/mcs/; revision=127438
2009-02-19 18:52:46 +00:00
Ivan Zlatev 500d92331b 2009-02-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Do not reset the columns when the data list changes,
	but only the rows. Fixes multiple bugs related to sorting, custom
	column styles being reset and more.

svn path=/trunk/mcs/; revision=127434
2009-02-19 18:23:01 +00:00
Bill Holmes d0490ac145 2009-01-19 Bill Holmes <[email protected]>
* src/gstr.c (g_strnfill):  Fixing a warning for MSVC.

	Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=127431
2009-02-19 18:13:05 +00:00
Rodrigo Kumpera 9044a0c2e4 2009-02-19 Rodrigo Kumpera <[email protected]>
* mini.c: Adjust locking order to the new semantics where the loader lock
	comes first.

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

	* appdomain.c:
	* generic-sharing.c:
	* object.c:
	* reflection.c:  Adjust locking order to the new semantics where the loader lock
	comes first.

svn path=/trunk/mono/; revision=127430
2009-02-19 18:07:54 +00:00
Rodrigo Kumpera 8bbbe2cc84 2009-02-18 Rodrigo Kumpera <[email protected]>
* aot-runtime.c:
	* mini-amd64.c:
	* mini-arm.c:
	* mini-ia64.c:
	* mini-mips.c:
	* mini-ppc.c:
	* mini-sparc.c:
	* mini-trampolines.c:
	* mini-x86.c:
	* mini.c:
	* tramp-alpha.c:
	* tramp-amd64.c:
	* tramp-arm.c:
	* tramp-hppa.c:
	* tramp-ia64.c:
	* tramp-mips.c:
	* tramp-ppc.c:
	* tramp-s390.c:
	* tramp-s390x.c:
	* tramp-sparc.c:
	* tramp-x86.c: Use mono_domain_code_* functions instead of using MonoDomain::code_mp directly.

svn path=/trunk/mono/; revision=127429
2009-02-19 18:07:39 +00:00
Rodrigo Kumpera 99ca281e7d 2009-02-18 Rodrigo Kumpera <[email protected]>
* domain.c: Add mono_domain_code_* functions that perform locking
	around the domain codeman.

	* domain-internals.h: Export those functions.

	* object.c: Use new functions instead of acquiring the domain lock.

svn path=/trunk/mono/; revision=127428
2009-02-19 18:07:29 +00:00
Jonathan Pobst f54b9cf54d 2009-02-19 Jonathan Pobst <[email protected]>
* ThemeWin32Classic.cs: Respect a PictureBox's Padding when
	drawing the image.

svn path=/trunk/mcs/; revision=127426
2009-02-19 17:13:45 +00:00
Sebastien Pouliot d1e5a195b6 2009-02-19 Sebastien Pouliot <[email protected]>
* *.auto.sc: Data files for [SecurityCritical]
	* *.auto.ssc: Data files for [SecuritySafeCritical]

svn path=/trunk/mcs/; revision=127417
2009-02-19 16:15:44 +00:00
Jonathan Pryor 249fa89097 * Test/Mono.Unix/UnixSignalTest.cs: Disable the tests that use
RealTimeSignum on OS X, as OS X doesn't support real-time signals 
	  (and thus these will always error, often for the "wrong" reason).
	* Test/Mono.Unix.Native/RealTimeSignumTest.cs: Disable the tests on 
	  Mac OS X, as OS X doesn't support real-time signals.

svn path=/trunk/mcs/; revision=127415
2009-02-19 15:49:07 +00:00
Atsushi Eno 7c03c0a1eb 2009-02-19 Atsushi Enomoto <[email protected]>
* CodeTryBlock.cs : new statement support.

        * System.ServiceModel.dll.sources,
          net_2_1_raw_System.ServiceModel.dll.sources :
          added CodeTryBlock.cs.


svn path=/trunk/mcs/; revision=127414
2009-02-19 15:03:40 +00:00
Atsushi Eno ed6222934a 2009-02-19 Atsushi Enomoto <[email protected]>
* CodeCast.cs : fix PrintCode() for no-conversion case.


svn path=/trunk/mcs/; revision=127413
2009-02-19 15:01:00 +00:00
Sebastien Pouliot ac9414d8ca update for build 2.0.40115.0
svn path=/trunk/mcs/; revision=127412
2009-02-19 14:56:48 +00:00
Marek Safar 7e6bd13a17 2009-02-19 Marek Safar <[email protected]>
* compiler-tester.cs: More verbosity needed for runtime crashes.


svn path=/trunk/mcs/; revision=127407
2009-02-19 12:59:41 +00:00
Marek Safar e401b20574 Updated with latest changes
svn path=/trunk/mcs/; revision=127404
2009-02-19 12:25:44 +00:00
Marek Safar 6a1784a252 New tests.
svn path=/trunk/mcs/; revision=127391
2009-02-19 10:42:27 +00:00
Marek Safar bf9d7767c9 2009-02-19 Marek Safar <[email protected]>
A fix for bug #475860 by David Mitchell <[email protected]>
	* class.cs: Define base type members before setting up member cache.


svn path=/trunk/mcs/; revision=127390
2009-02-19 10:41:56 +00:00
Raja R Harinath 7d03a6fe99 update known issues
svn path=/trunk/mcs/; revision=127389
2009-02-19 10:34:45 +00:00
Veerapuram Varadhan 383e3da567 * Tds.cs: Tds 8 collation support
Tds80.cs: - ditto -
          TdsComm.cs: - ditto -
          TdsDataColumn.cs: - ditto -
          TdsCollation.cs: New file. Based on patch from Dmitry S.
Kataev  <[email protected]>


svn path=/trunk/mcs/; revision=127380
2009-02-19 08:10:32 +00:00
Veerapuram Varadhan 8565f9bfe4 * OracleParameter.cs (bind): Consider OciDataType.Float and
* .Integer as OciDataType.Number.  Patch provided by Russell
        <[email protected]>


svn path=/trunk/mcs/; revision=127379
2009-02-19 07:48:41 +00:00
Geoff Norton 2ad30c4516 2009-02-19 Geoff Norton <[email protected]>
* Fix the build, these all need to loose this #if guard.

svn path=/trunk/mcs/; revision=127378
2009-02-19 07:09:22 +00:00
Gonzalo Paniagua Javier 870484665b 2009-02-19 Gonzalo Paniagua Javier <[email protected]>
* OleDbFactory.cs: New file.


svn path=/trunk/mcs/; revision=127374
2009-02-19 06:47:31 +00:00
Geoff Norton 172aac1d0a 2009-02-19 Geoff Norton <[email protected]>
* net_2_1_raw_System.Xml.dll.sources: Add a bunch of missing attributes

svn path=/trunk/mcs/; revision=127369
2009-02-19 05:46:09 +00:00
Geoff Norton 869f7efb5f 2009-02-19 Geoff Norton <[email protected]>
* SerializationSource.cs: KeyHelper is needed by
        the 2.1 profile now.

svn path=/trunk/mcs/; revision=127368
2009-02-19 05:46:05 +00:00
Geoff Norton b1c69b43b5 2009-02-19 Geoff Norton <[email protected]>
* *.cs: The tuner takes care of the visibility of this for us, and it
	is in fact needed. (Readd ReadAttributeValue to 2.1)

svn path=/trunk/mcs/; revision=127366
2009-02-19 05:15:28 +00:00
Atsushi Eno 4a2ab5827d 2009-02-19 Atsushi Enomoto <[email protected]>
* xmltool.cs : call Compile() and detect relax ng grammar error
	  so that it could detect grammar sanity when there is no instance
	  to be validated.


svn path=/trunk/mcs/; revision=127365
2009-02-19 04:37:16 +00:00
Atsushi Eno dc2fdf66fd 2009-02-19 Atsushi Enomoto <[email protected]>
* XsdDatatypeProvider.cs : detect grammar-level error in type usage
	  at compile time.


svn path=/trunk/mcs/; revision=127364
2009-02-19 04:35:23 +00:00
Gonzalo Paniagua Javier 053d02e254 2009-02-18 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs: ReadStringResource returns null now.


svn path=/trunk/mcs/; revision=127358
2009-02-19 02:43:03 +00:00
Gonzalo Paniagua Javier a6b02b8aee svn path=/trunk/mcs/; revision=127355 2009-02-18 23:53:11 +00:00
Gonzalo Paniagua Javier bbfde12266 2009-02-18 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplicationFactory.cs: check of global.asax was precompiled.
	* System.Web.UI/MasterPage.cs: the items in ContentPlaceHolders are lowercase.
	* System.Web.Compilation/TemplateControlCompiler.cs: lowercase place holder names
	* System.Web.Compilation/BuildManager.cs: initial support for
	precompilation. No 'updatable', please.



svn path=/trunk/mcs/; revision=127352
2009-02-18 23:49:33 +00:00
Marek Safar e5fe6c826d New test.
svn path=/trunk/mcs/; revision=127351
2009-02-18 23:41:06 +00:00
Marek Safar a77c9f098b 2009-02-18 Marek Safar <[email protected]>
A fix for bug #477378
	* nullable.cs, expression.cs, statement.cs: More precise null type
	sanity checks.


svn path=/trunk/mcs/; revision=127350
2009-02-18 23:40:22 +00:00
Zoltan Varga c4fc463f68 2009-02-19 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: Add a test for #477396.

svn path=/trunk/mono/; revision=127348
2009-02-18 23:12:41 +00:00
Zoltan Varga 6f8e9ec8b4 2009-02-19 Zoltan Varga <[email protected]>
* marshal.c (mono_ftnptr_to_delegate): Convert a NULL ftnptr to a null
	delegate. Fixes #477396.

svn path=/trunk/mono/; revision=127347
2009-02-18 23:12:09 +00:00
Marek Habersack f876f962ec 2009-02-19 Marek Habersack <[email protected]>
* AttributeCollection.cs: this [Type] shouldn't throw a NREX when
	attrList is null.

	* TypeDescriptor.cs: GetConverter (Type) must throw
	ArgumentNullException if the passed parameter is null.
	FindDefaultConverterType should gracefully cope with type being
	null.

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

	* TypeDescriptorTests.cs: added a test for
	TypeDescriptor.GetConverter (null) case.

svn path=/trunk/mcs/; revision=127343
2009-02-18 23:08:26 +00:00
Marek Safar 47c99b1a7c Fixed bug number
svn path=/trunk/mcs/; revision=127342
2009-02-18 23:08:13 +00:00
Marek Safar 2c0f435fcd Fixes build.
svn path=/trunk/mcs/; revision=127340
2009-02-18 23:01:35 +00:00
Bill Holmes bf6a0f0fff 2009-02-18 Bill Holmes <[email protected]>
* mono.def : Adding mono_jit_set_trace_options

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=127338
2009-02-18 22:59:29 +00:00
Marek Habersack 9755b3bd9a 2009-02-18 Marek Habersack <[email protected]>
* UrlPattern.cs:
	Do not use the tokens array in Match.

svn path=/trunk/mcs/; revision=127334
2009-02-18 22:01:22 +00:00
Marek Habersack ebd1b1f4a0 2009-02-18 Marek Habersack <[email protected]>
* TemplateParser.cs: don't initialize PageParserFilter in
	LoadConfigDefaults, postpone it till the first time the
	PageParserFilter property is accessed.

	* ApplicationFileParser.cs, UserControlParser.cs: make sure
	VirtualPath is set in the constructors.

svn path=/trunk/mcs/; revision=127333
2009-02-18 21:32:17 +00:00
Andrés G. Aragoneses ba0d1645ad * System.Windows.Forms/ToolBarButton.cs: Oops, use the correct event
(fix r127298).

svn path=/trunk/mcs/; revision=127326
2009-02-18 20:54:42 +00:00
Jonathan Pryor b87c7e29df Add a more functional (i.e. fewer-stubs) implementation of System.Data.Linq.
svn path=/trunk/mcs/; revision=127320
2009-02-18 20:17:11 +00:00
Jonathan Pryor 296403c943 Remove System.Data.Linq stubs.
We'll be replacing these with the contents of
source/branches/atsushi-200810/mcs/class/System.Data.Linq.

svn path=/trunk/mcs/; revision=127319
2009-02-18 20:16:02 +00:00
Marek Safar 8bb6433b92 New test.
svn path=/trunk/mcs/; revision=127312
2009-02-18 19:55:59 +00:00
Marek Safar 16d086034c 2009-02-18 Marek Safar <[email protected]>
A fix for bug #472805
	* typemanager.cs, namespace.cs: Import only visible extension method
	types.


svn path=/trunk/mcs/; revision=127310
2009-02-18 19:53:30 +00:00
Jb Evain eafdc66a0a update according to latest changes
svn path=/trunk/mcs/; revision=127307
2009-02-18 18:56:36 +00:00
Jb Evain 17206977e7 2009-02-18 Jb Evain <[email protected]>
* Mono.Linker/XApiService.cs: delete, unused.
	* Mono.Linker/Driver.cs: don't use the uneeded XApiService anymore.

svn path=/trunk/mcs/; revision=127306
2009-02-18 18:53:36 +00:00
Jb Evain 1fb6419535 delete unused file
svn path=/trunk/mcs/; revision=127304
2009-02-18 18:50:39 +00:00
Jb Evain 6a784029da 2009-02-18 Jb Evain <[email protected]>
* Mono.Tuner/InjectSecurityAttributes.cs: new tuner step
	which is able to process the security attribute data files.
	It replaces the previous InjectAttributes step.


svn path=/trunk/mcs/; revision=127303
2009-02-18 18:49:53 +00:00
Marek Safar e073371906 New test.
svn path=/trunk/mcs/; revision=127300
2009-02-18 18:04:40 +00:00
Marek Safar b732cdfb10 2009-02-18 Marek Safar <[email protected]>
A fix for bug #476895
	* attribute.cs: Use correct resolve context for attribute type.


svn path=/trunk/mcs/; revision=127299
2009-02-18 18:04:02 +00:00
Marek Safar 8a93c645dd New tests.
svn path=/trunk/mcs/; revision=127293
2009-02-18 17:04:42 +00:00
Marek Safar 37e77ecdb5 2009-02-18 Marek Safar <[email protected]>
A fix for bug #476266
	* anonymous.cs: Mutate multi-dimensional arrays.


svn path=/trunk/mcs/; revision=127292
2009-02-18 17:04:20 +00:00
Marek Safar ddb4f0f3c9 New tests
svn path=/trunk/mcs/; revision=127288
2009-02-18 16:17:25 +00:00
Marek Safar 55e9f7cf70 2009-02-18 Marek Safar <[email protected]>
A fix for bug #476400
	* statemetn.cs, expression.cs: Removed wrong Dispose optimization.


svn path=/trunk/mcs/; revision=127287
2009-02-18 16:17:00 +00:00
Jb Evain f3e2affb84 2009-02-18 Jb Evain <[email protected]>
* SynchronizationContext.cs: add NET_2_1 SetThreadStaticContext
	method, even if already obsolete.


svn path=/trunk/mcs/; revision=127285
2009-02-18 16:14:26 +00:00
Zoltan Varga 521f140b62 2009-02-18 Zoltan Varga <[email protected]>
* reflection.c (create_custom_attr): Get rid of alloca.

svn path=/trunk/mono/; revision=127283
2009-02-18 15:59:32 +00:00
Bill Holmes 22b49aa271 2009-02-18 Bill Holmes <[email protected]>
* cominterop.c (cominterop_get_managed_wrapper_adjusted) :
	  Adding exception handling for all CCW calls.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=127279
2009-02-18 15:28:34 +00:00
Marek Safar 88d13d02d3 2009-02-18 Marek Safar <[email protected]>
A fix for bug #476811
	* generics.cs: Fixed null-literal check.


svn path=/trunk/mcs/; revision=127265
2009-02-18 11:32:41 +00:00
Zoltan Varga 6ea30d8789 2009-02-18 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Remove a ! from if (!dest_sreg1)
	as it is incorrect.

svn path=/trunk/mono/; revision=127260
2009-02-18 10:27:38 +00:00
Marek Habersack 56dd281254 2009-02-18 Marek Habersack <[email protected]>
* UrlPattern.cs: TrySubstitute now gets the collection of default
	values and uses it to replace url segments instead of failing when
	the passed values collection is missing a segment.

	* RouteCollection.cs: check if name is null or empty, not just
	null in GetVirtualPath

	* Route.cs: url.TrySubstitute should be passed the defaults
	collection when called from GetVirtualPath

svn path=/trunk/mcs/; revision=127259
2009-02-18 10:26:11 +00:00
Zoltan Varga 2d82333004 2009-02-18 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_init): Remove the unused reflection mutex.

svn path=/trunk/mono/; revision=127256
2009-02-18 09:32:23 +00:00
Atsushi Eno 61727cd7c2 2009-02-18 Atsushi Enomoto <[email protected]>
* Message.cs : do not forget to flush.
        * HttpRequestChannel.cs : give more exact error info.


svn path=/trunk/mcs/; revision=127251
2009-02-18 08:12:36 +00:00
Atsushi Eno 19918597cf 2009-02-18 Atsushi Enomoto <[email protected]>
* Message.cs, MessageBufferImpl.cs, XmlReaderBodyWriter.cs :
          make buffered copy in ML2 really buffered.


svn path=/trunk/mcs/; revision=127248
2009-02-18 07:22:44 +00:00
Jonathan Pryor 6a41019fcd * Test/DocTest-v1.cs: Add test for #471379.
* Mono.Documentation/exceptions.cs, Mono.Documentation/monodocer.cs:
	  Use the new Mono.Cecil .Resolve() methods instead of (erroneously)
	  duplicating their functionality with the .GetDefinition() methods.
	  ExceptionLookup.this[IMemberReference] checks for multi-dimensional
	  arrays, as MD arrays are "special" (Cecil can't resolve them, as
	  they're internal to the runtime with no specific associated IL).
	  Fixes #471379.

svn path=/trunk/mcs/; revision=127244
2009-02-18 04:30:54 +00:00
Atsushi Eno b50cb6efb4 2009-02-18 Atsushi Enomoto <[email protected]>
* Uri.cs : file URI for Windows path should also try '\' instead of
	  '/' as a host/path separator.

	* UriTest.cs : added test for windows local path with '\' (used in
	  ooxml relax ng test case).


svn path=/trunk/mcs/; revision=127237
2009-02-18 02:11:27 +00:00
Gonzalo Paniagua Javier 10badb611a 2009-02-17 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: instead of clearing the sockets form the output and then
	adding them back, we just remove the ones that have not been signaled.
	Fixes bug #354090 and bug #476138.


svn path=/trunk/mcs/; revision=127234
2009-02-18 00:35:48 +00:00
Zoltan Varga a754ce273a 2009-02-18 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_boolean): Add null checks to the new 
	native->managed marshalling code. Fixes #476247.

svn path=/trunk/mono/; revision=127232
2009-02-17 23:49:51 +00:00
Atsushi Eno a3f972be9e 2008-12-02 Atsushi Enomoto <[email protected]>
* updated to DbLinq r966.


svn path=/branches/atsushi-200810/mcs/; revision=120451
2008-12-02 02:53:50 +00:00
Atsushi Eno 987bef88b5 2008-11-25 Atsushi Enomoto <[email protected]>
* updated to DbLinq r960.


svn path=/branches/atsushi-200810/mcs/; revision=119939
2008-11-25 10:10:10 +00:00
Atsushi Eno 99e199a497 2008-11-18 Atsushi Enomoto <[email protected]>
* updated to DbLinq r947 (XmlMappingSource).


svn path=/branches/atsushi-200810/mcs/; revision=119139
2008-11-18 10:14:47 +00:00
Atsushi Eno c586247917 2008-11-12 Atsushi Enomoto <[email protected]>
* updated to DbLinq r946 (quick fix for vendor loading).


svn path=/branches/atsushi-200810/mcs/; revision=118675
2008-11-12 23:44:51 +00:00
Atsushi Eno c806452609 2008-11-12 Atsushi Enomoto <[email protected]>
* updated to DbLinq r945.
	  It is not working well wrt connectionString yet.


svn path=/branches/atsushi-200810/mcs/; revision=118662
2008-11-12 22:29:22 +00:00
Atsushi Eno a9984f1056 2008-10-24 Atsushi Enomoto <[email protected]>
* updated to DbLinq r931.


svn path=/branches/atsushi-200810/mcs/; revision=116918
2008-10-24 09:14:13 +00:00
Atsushi Eno 203e1b8ea3 2008-10-10 Atsushi Enomoto <[email protected]>
* src/DbLinq.Firebird, System.Data.Linq.dll.sources :
	  added Firebird support sources (new in DbLinq).


svn path=/branches/atsushi-200810/mcs/; revision=115419
2008-10-10 09:51:21 +00:00
Atsushi Eno cf27c37fb4 2008-10-09 Atsushi Enomoto <[email protected]>
* src/DbLinq.{Oracle|MySql|PostgreSql|Sqlite|Ingres}: new.
	* src/DbLinq : updated to DbLinq r905.
	* System.Data.Linq.dll.sources : added vendor-specific files and
	  new files in r905.


svn path=/branches/atsushi-200810/mcs/; revision=115365
2008-10-09 17:54:31 +00:00
Atsushi Eno 84a4dc433b 2008-10-08 Atsushi Enomoto <[email protected]>
* System.Data.Linq.dll.sources : fix wrong reference to EntitySet.cs.


svn path=/branches/atsushi-200810/mcs/; revision=115206
2008-10-08 13:39:20 +00:00
Atsushi Eno e0a6bf1de3 2008-10-08 Atsushi Enomoto <[email protected]>
* System.Data.Linq.dll.sources :
	  SqlServer vendor sources were missing.


svn path=/branches/atsushi-200810/mcs/; revision=115192
2008-10-08 10:23:45 +00:00
Atsushi Eno b63802b7bf 2008-10-08 Atsushi Enomoto <[email protected]>
* Expression.cs : fix WeakReference usage for such case that it
	  might GC-ed between .IsAlive check and .Target retrieval.


svn path=/branches/atsushi-200810/mcs/; revision=115191
2008-10-08 10:21:56 +00:00
Atsushi Eno ebb8404a2e second step.
svn path=/branches/atsushi-200810/mcs/; revision=115079
2008-10-07 12:03:27 +00:00
Atsushi Eno c122ff47f6 replace it in smooth way.
svn path=/branches/atsushi-200810/mcs/; revision=115078
2008-10-07 12:00:06 +00:00
Atsushi Eno 62252164fd initial import of DBLinq integration.
svn path=/branches/atsushi-200810/mcs/; revision=115077
2008-10-07 11:58:02 +00:00
Atsushi Eno 7e9c6782e0 2008-10-06 Atsushi Enomoto <[email protected]>
* XPathExpression.cs, Expression.cs : Cache compiled xpath
	  expressions so that they don't have to be parsed repeatedly.


svn path=/branches/atsushi-200810/mcs/; revision=114957
2008-10-06 15:20:12 +00:00
Atsushi Eno 29739c02e4 2008-10-06 Atsushi Enomoto <[email protected]>
* Expression.cs : unindend cases that do not match our coding style.


svn path=/branches/atsushi-200810/mcs/; revision=114940
2008-10-06 13:30:39 +00:00
Atsushi Eno 7973eae383 2008-10-06 Atsushi Enomoto <[email protected]>
* Expression.cs : fixed peer & subtree requirement and reduced extra
	  dependency on RequireSorting property.


svn path=/branches/atsushi-200810/mcs/; revision=114937
2008-10-06 13:21:49 +00:00
Atsushi Eno cc7588581a 2008-10-06 Atsushi Enomoto <[email protected]>
* Expression.cs, Iterator.cs : simplify SlashIterator by introducing
	  SortedIterator.


svn path=/branches/atsushi-200810/mcs/; revision=114935
2008-10-06 12:56:27 +00:00
Atsushi Eno 2329c03c64 2008-10-06 Atsushi Enomoto <[email protected]>
* Expression.cs, Iterator.cs : ChildIterator is not a SimpleIterator
	  now. And reduced extra clone when the context node has no child.


svn path=/branches/atsushi-200810/mcs/; revision=114931
2008-10-06 09:43:14 +00:00
Atsushi Eno 319d2e5d5a 2008-10-03 Atsushi Enomoto <[email protected]>
* Iterator.cs : now we do not seem to need clone in
	  SimpleIterator.Current.


svn path=/branches/atsushi-200810/mcs/; revision=114742
2008-10-03 10:51:48 +00:00
Atsushi Eno 8d8d887eb7 ongoing refactoring.
svn path=/branches/atsushi-200810/mcs/; revision=114735
2008-10-03 09:07:11 +00:00
Atsushi Eno 4e6654c795 couple of refactoring to make implementation more consistent.
svn path=/branches/atsushi-200810/mcs/; revision=114694
2008-10-02 18:12:43 +00:00
Atsushi Eno 936be8b98b 2008-10-02 Atsushi Enomoto <[email protected]>
* XPathNavigatorEvaluateTests.cs : corrected couple of misconception
	  in the tests.

	* XslTransformTests.cs : removed extra NotDotNet.


svn path=/branches/atsushi-200810/mcs/; revision=114689
2008-10-02 17:59:28 +00:00
Atsushi Eno 5fea92790a 2008-10-02 Atsushi Enomoto <[email protected]>
* Makefile : fixed couple of obsolete settings.


svn path=/branches/atsushi-200810/mcs/; revision=114688
2008-10-02 17:57:27 +00:00
5927 changed files with 1017890 additions and 305099 deletions

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
/Makefile
/Makefile.in
/_tmpinst
/aclocal.m4
/autom4te.cache
/config.cache
/config.guess
/config.h
/config.h.in
/config.h.in
/config.log
/config.status
/config.sub
/configure
/libtool
/ltconfig
/ltmain.sh
/mono-*.tar.gz
/*.pc
/mono.spec
/semantic.cache
/stamp-h
/stamp-h.in
/stamp-h1
/tmpinst-dir.stamp
/missing
/compile
/depcomp
/install-sh
/doltlibtool
/doltcompile
+3041
View File
File diff suppressed because it is too large. Load diff
+265
View File
@@ -1,3 +1,263 @@
2009-09-08 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Enable this for mips.
2009-08-29 Jonathan Pryor <[email protected]>
* man/mdoc.5: Document the new <format/> element.
2009-08-18 Zoltan Varga <[email protected]>
* scripts/Makefile.am: Applied patch from Hib Eris ([email protected]).
Add $(SCRIPT_SUFFIX) to the name of the 'mod' tool.
2009-08-04 Miguel de Icaza <[email protected]>
* Start the split between PLATFORM_WIN32 and TARGET_WIN32.
PLATFORM_WIN32 should be used to configure the runtime while
building it. TARGET_WIN32 is used for target execution.
This is used by Mono's AOT cross compiler when running on Windows,
but targetting a different operating system. So we have to tell
those two apart.
2009-07-24 Jb Evain <[email protected]>
* scripts/Makefile.am: generate a dmcs script for the 4.0 compiler
when building the net_4_0 profile.
2009-07-24 Jb Evain <[email protected]>
* configure.in
* runtime/Makefile.am
* data/Makefile.am: create a and populate a configuration folder
for the net_4_0 profile.
2009-07-21 Jb Evain <[email protected]>
* configure.in: add a --with-monotouch option.
* runtime/Makefile.am: use it to trigger the mcs monotouch build.
2009-07-14 Zoltan Varga <[email protected]>
* configure.in: Add more libraries needed by the llvm backend.
2009-07-02 Jb Evain <[email protected]>
* scripts/Makefile.am: monolinker is now a 2.0 assembly.
2009-07-02 jonas echterhoff <[email protected]>
* configure.in: Add linker flag on Mac OS X to allow access to other
processes, needed for debugging. Enable debugging on OS X.
2009-06-21 Zoltan Varga <[email protected]>
* configure.in (TARGET_BYTE_ORDER): New define containing the byte order of
the target.
2009-06-18 Marek Habersack <[email protected]>
* data/browscap.ini: applied Mono modifications to the upstream
version. Fixes three tests failing in System.Web. Fixes bug #513965
Added ecmascriptversion, msdomversion and w3cdomversion to the IE
8.0 entry. Fixes bug #513965
2009-06-16 Raja R Harinath <[email protected]>
* configure.in (--with-profile2): Simplify slightly.
(--with-profile4, --with-moonlight): Likewise.
2009-06-15 Miguel de Icaza <[email protected]>
* configure.in: Changed the default to not build the 4.0 profile
unless explicitly enabled.
2009-06-15 Zoltan Varga <[email protected]>
* CMakeLists.txt: Add mips support.
2009-06-14 Zoltan Varga <[email protected]>
* scripts/CMakeLists.txt: New file.
* samples/CMakeLists.txt: New file, currently empty.
2009-06-12 Andreia Gaita <[email protected]>
* data/config.in: add libcups dllmap entry
2009-06-11 Zoltan Varga <[email protected]>
* configure.in: Disable dtrace support if dtrace doesn't support the
-h option.
2009-06-10 Marek Safar <[email protected]>
* runtime/Makefile.am, configure.in: Make net_4_0 profile optional.
2009-06-07 Marek Safar <[email protected]>
* runtime/Makefile.am: Enabled net_4_0 for compilation.
2009-05-27 Zoltan Varga <[email protected]>
* configure.in: Disable USE_MUNMAP on ppc to work around #504411.
2009-05-26 Zoltan Varga <[email protected]>
* CMakeLists.txt: Implement AC_OUTPUT, creation of config.make, etc.
* CMakeLists.txt: implement arm fpu detection, add vfp detection as
well.
* CMakeLists.txt: Add arm support.
2009-05-24 Miguel de Icaza <[email protected]>
* Disable mono/docs build if we disabled the mcs build.
2009-05-24 Zoltan Varga <[email protected]>
* */CMakeLists.txt: Add beginnings of a cmake based build system.
2009-05-22 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Enable dolt on sparc linux.
2009-05-17 Zoltan Varga <[email protected]>
* configure.in: Add TARGET_POWERPC/POWERPC64 defines.
2009-05-09 Miguel de Icaza <[email protected]>
* configure.in: Instead of reporting the various disabled features
in a loop, where a keyword might fail, report the actual disabled
features in the sections that handle them
2009-05-08 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Add powerpc64.
2009-05-07 Rodrigo Kumpera <[email protected]>
* runtime/Makefile.am (mcs-compileall): Pass --security=validil
to the runtime so the assemblies are not required to be verifiable.
2009-05-06 Raja R Harinath <[email protected]>
* Makefile.am (compiler-tests): Rewrite to re-build the moon
assemblies after mcs/ is built.
* runtime/Makefile.am (build_profiles) [INSTALL_2_1]: Build only
the net_2_1_raw profile.
(test_profiles): New. Mention net_2_1 profile.
(moon-do-build): New.
2009-05-05 Miguel de Icaza <[email protected]>
* configure.in: Fix the bug reported on the mailing list by
Koushik K Dutta: do not build docs when --disable-mcs-builds is
passed.
2009-05-05 Miguel de Icaza <[email protected]>
* configure.in: Reduce configure-time dependencies by using
pkg-config the way it was originally intended to be used, and not
with the incredibly lame and painful inducing pkg.m4 file.
I am on a quest to remove this gratuitous dep on pkg.m4 that is
making people's lives miserable around the globe, just because
someone can not be bothered to learn the shell if construct.
2009-04-28 Zoltan Varga <[email protected]>
* configure.in: Add an option to disable the solaris tar check.
* configure.in: Define a TARGET_<ARCH> preprocessor symbol for some
architectures.
2009-04-23 Jb Evain <[email protected]>
* scripts/Makefile.am: add a pdb2mdb script.
2009-04-22 Jeffrey Stedfast <[email protected]>
* configure.in: Check for a stable version of glib-2.0 as opposed
to an unstable development version (we don't want people
unfamiliar with glib versioning to install an unstable development
version of glib).
2009-04-13 Zoltan Varga <[email protected]>
* configure.in: Quiet 'copying selected object files' messages from
newer libtool versions as well.
* configure.in: Disable AC_PROG_CXX for now to fix the windows build.
In mono/mini:
* Makefile.am: Comment out the cpp files as f@#%$ automake complains even
if they are inside a conditional.
2009-04-03 Zoltan Varga <[email protected]>
* scripts/patch-quiet.sh: Process LTCXXCOMPILE too.
2009-04-02 Zoltan Varga <[email protected]>
* configure.in: Move the call to AC_PROG_CXX earlier and enable it again.
* configure.in: Disable the call to AC_PROG_CXX for now.
2009-04-02 Marek Habersack <[email protected]>
* data/Makefile.am: added system.web.mvc.pc{.in}
* configure.in: added data/system.web.mvc.pc to AC_OUTPUT
* data/system.web.mvc.pc.in: added
2009-04-02 Zoltan Varga <[email protected]>
* configure.in: Add an ENABLE_LLVM autoconf define.
* configure.in: Add --enable-llvm argument to enable the experimental
LLVM back end.
2009-03-31 Jb Evain <[email protected]>
* scripts: Remove smcs, which is handled by moon now.
* data: ditto.
2009-03-20 Zoltan Varga <[email protected]>
* mono/os: Remove this now empty directory.
* mono/Makefile.am (SUBDIRS): Remove 'os'.
2009-03-16 Atsushi Enomoto <[email protected]>
* scripts/Makefile.am : mono-xmltool uses 2.0.
2009-03-12 Jonathan Pryor <[email protected]>
* scripts/Makefile.am: Add sqlmetal.
2009-03-10 Zoltan Varga <[email protected]>
* README: Remove the comment about --with-moonlight being pre-alpha.
2009-03-10 Atsushi Enomoto <[email protected]>
* scripts/Makefile.am : added svcutil.
2009-02-26 Marek Habersack <[email protected]>
* data/mono.web.pc.in: added. Fixes bug #479760
* data/Makefile.am: added mono.pc{.in} wherever necessary
2009-02-07 Gonzalo Paniagua Javier <[email protected]>
* configure.in: include stdio so that NULL is defined when checking
@@ -70,6 +330,11 @@
* scripts/Makefile.am: don't generate a script for the now
dead mono-api-diff.
2008-12-05 Jonathan Pryor <[email protected]>
* scripts/mdassembler, scripts/monodocer, scripts/monodocs2html:
Properly quote parameters as they may contain spaces.
2008-12-05 Jonathan Pryor <[email protected]>
* man/mdoc-update.1: Document -fno-assembly-versions.
+38 -5
View File
@@ -1,7 +1,7 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc docs
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
@@ -35,9 +35,7 @@ get-monolite-latest:
cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
cd $(mcslib) && mv -f monolite-* monolite
compiler-tests: mcs-do-clean
$(MAKE) all
$(MAKE) mcs-do-compiler-tests
compiler-tests: build-test-mono-mcs-moon
compiler-tests-net_2_0:
-rm -f $(mcs_topdir)/build/common/Consts.cs.save
@@ -46,7 +44,7 @@ compiler-tests-net_2_0:
cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 clean
-mv -f $(mcs_topdir)/build/common/Consts.cs.save $(mcs_topdir)/build/common/Consts.cs
$(MAKE) all
$(MAKE) build_profiles=net_2_0 mcs-do-compiler-tests
$(MAKE) test_profiles=net_2_0 mcs-do-compiler-tests
bootstrap-world: compiler-tests
$(MAKE) install
@@ -55,6 +53,18 @@ bootstrap-world-net_2_0: compiler-tests-net_2_0
$(MAKE) install
# internal targets
.PHONY: build-test-mono-mcs-moon
build-test-mono-mcs-moon: do-build-moon-maybe
$(MAKE) mcs-do-compiler-tests
.PHONY: do-build-mono-mcs
do-build-mono-mcs: mcs-do-clean
$(MAKE) all
.PHONY: do-build-moon-maybe
do-build-moon-maybe: do-build-mono-mcs
cd runtime && $(MAKE) moon-do-build
mcs-do-clean:
cd runtime && $(MAKE) clean-local
cd mono/tests && $(MAKE) clean
@@ -86,3 +96,26 @@ bootstrap: all
patch-quiet:
find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;
update-csproj:
-rm msvc/scripts/order
-mkdir msvc/scripts/inputs
(cd runtime; make V=1 extra_targets=csproj-local)
package-inputs:
echo '<?xml version="1.0" encoding="utf-8"?>' > msvc/scripts/order.xml
echo '<root>' >> msvc/scripts/order.xml
for i in `cat msvc/scripts/order`; do \
set `echo $$i | sed -e 's/:/ /' -e 's/.input//'`; \
cat msvc/scripts/inputs/$$2.input | \
(echo " <project dir=\"$$1\" library=\"$$2\">"; \
read boot; echo " <boot>$$boot</boot>"; \
read mcs; echo " <mcs>$$mcs</mcs>"; \
read flags; echo " <flags>$$flags</flags>"; \
read output; echo " <output>$$output</output>"; \
read built; echo " <built_sources>$$built</built_sources>"; \
read libou; echo " <library_output>$$libou</library_output>"; \
read resp; echo " <response>$$resp</response>"; \
echo " </project>") >> msvc/scripts/order.xml; \
done
echo "</root>" >> msvc/scripts/order.xml
+28 -6
View File
@@ -267,10 +267,12 @@ This is Mono.
This defaults to `yes'.
--with-preview=yes,no
--with-profile2=yes,no
Whether you want to build libraries that are still not
completed (The 2.0 APIs). It defaults to `yes'.
Whether you want to build the 2.x libraries (support
for Generics and the 2.0/3.5 APIS).
It defaults to `yes'.
--with-moonlight=yes,no
@@ -279,12 +281,10 @@ This is Mono.
(1.1 and 2.0 APIs).
This will produce the `smcs' compiler which will reference
the Silvelright modified assemblies (mscorlib.dll,
the Silverlight modified assemblies (mscorlib.dll,
System.dll, System.Code.dll and System.Xml.Core.dll) and turn
on the LINQ extensions for the compiler.
This option defaults to `no' and it is considered pre-alpha.
--with-libgdiplus=installed,sibling,<path>
This is used to configure where should Mono look for
@@ -324,6 +324,11 @@ This is Mono.
Disables support for the Ahead of Time
compilation.
attach:
Support for the Mono.Management assembly and the
VMAttach API (allowing code to be injected into
a target VM)
com:
Disables COM support.
@@ -333,6 +338,12 @@ This is Mono.
decimal:
Disables support for System.Decimal.
full_messages:
By default Mono comes with a full table
of messages for error codes. This feature
turns off uncommon error messages and reduces
the runtime size.
generics:
Generics support. Disabling this will not
allow Mono to run any 2.0 libraries or
@@ -355,6 +366,11 @@ This is Mono.
disabling this will drop support for any
libraries using DllImport.
portability:
Removes support for MONO_IOMAP, the environment
variables for simplifying porting applications that
are case-insensitive and that mix the Unix and Windows path separators.
profiler:
Disables support for the default profiler.
@@ -366,6 +382,11 @@ This is Mono.
assemblies (AssemblyBuilderAccess.Save) in
System.Reflection.Emit.
shadow_copy:
Disables support for AppDomain's shadow copies
(you can disable this if you do not plan on
using appdomains).
simd:
Disables support for the Mono.SIMD intrinsics
library.
@@ -501,3 +522,4 @@ This is Mono.
independent checkout) from the Mono module, that
directory is automatically configured to share the
same prefix than this module gets.
+2 -2
View File
@@ -22,8 +22,8 @@ if test x$GCC != xyes; then
dolt_supported=no
fi
case $host in
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*)
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*)
pic_options='-fPIC'
;;
i?86-apple-darwin*)
-64
View File
@@ -1,64 +0,0 @@
#!/bin/sh
ASPEN_ROOT=/Developer/Platforms/iPhoneOS.platform/Developer
ASPEN_SDK=$ASPEN_ROOT/SDKs/iPhoneOS2.0.sdk/
ORIG_PATH=$PATH
GLIB_FLAGS=`pkg-config --cflags --libs glib-2.0`
if [ -z "$GLIB_FLAGS" ]; then
echo "pkg-config could not locate glib-2.0 needed for the monoburg step"
exit;
fi
setenv () {
export PATH=$ASPEN_ROOT/usr/bin:$PATH
export C_INCLUDE_PATH="$ASPEN_SDK/usr/lib/gcc/arm-apple-darwin9/4.0.1/include:$ASPEN_SDK/usr/include"
export CPLUS_INCLUDE_PATH="$ASPEN_SDK/usr/lib/gcc/arm-apple-darwin9/4.0.1/include:$ASPEN_SDK/usr/include"
export CC=arm-apple-darwin9-gcc-4.0.1
export CXX=arm-apple-darwin9-g++-4.0.1
export CPP="cpp-4.0 -nostdinc -U__powerpc__ -U__i386__ -D__arm__"
export CXXPP="cpp-4.0 -nostdinc -U__powerpc__ -U__i386__ -D__arm__"
export LD=$CC
export LDFLAGS="-liconv -Wl,-syslibroot,$ASPEN_SDK"
}
unsetenv () {
export PATH=$ORIG_PATH
unset C_INCLUDE_PATH
unset CPLUS_INCLUDE_PATH
unset CC
unset CXX
unset CPP
unset CXXPP
unset LD
unset LDFLAGS
}
export mono_cv_uscore=yes
export cv_mono_sizeof_sunpath=104
export ac_cv_func_posix_getpwuid_r=yes
export ac_cv_func_backtrace_symbols=no
setenv
pushd eglib
./autogen.sh --host=arm-apple-darwin9
popd
./autogen.sh --disable-mcs-build --host=arm-apple-darwin9 --disable-shared-handles --with-tls=pthread --with-sigaltstack=no --with-glib=embedded $@
perl -pi -e 's/MONO_SIZEOF_SUNPATH 0/MONO_SIZEOF_SUNPATH 104/' config.h
perl -pi -e 's/#define HAVE_FINITE 1//' config.h
perl -pi -e 's/#define HAVE_MMAP 1//' config.h
make
unsetenv
pushd mono/monoburg
/usr/bin/gcc -o monoburg ./monoburg.c parser.c -I../.. -pthread -lm $GLIB_FLAGS
make
popd
setenv
make
+235 -64
View File
@@ -65,10 +65,19 @@ AC_MSG_CHECKING([host platform characteristics])
libgc_threads=no
has_dtrace=no
parallel_mark=yes
case "$host" in
powerpc*-*-linux*)
# https://bugzilla.novell.com/show_bug.cgi?id=504411
disable_munmap=yes
;;
esac
case "$host" in
*-*-mingw*|*-*-cygwin*)
platform_win32=yes
AC_DEFINE(PLATFORM_WIN32,1,[Platform is Win32])
AC_DEFINE(PLATFORM_WIN32,1,[Host Platform is Win32])
AC_DEFINE(TARGET_WIN32,1,[Target OS is Win32])
AC_DEFINE(DISABLE_PORTABILITY,1,[Disable the io-portability layer])
AC_DEFINE(PLATFORM_NO_SYMLINKS,1,[This platform does not support symlinks])
if test "x$cross_compiling" = "xno"; then
@@ -145,7 +154,10 @@ case "$host" in
;;
*-*-linux*)
platform_win32=no
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP"
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
if test "x$disable_munmap" != "xyes"; then
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
fi
libmono_cflags="-D_REENTRANT"
libmono_ldflags="-lpthread"
libdl="-ldl"
@@ -222,6 +234,8 @@ AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes)
AC_CHECK_TOOL(CC, gcc, gcc)
AC_PROG_CC
# Disabled for now to fix the windows build
#AC_PROG_CXX
AM_PROG_AS
AM_PROG_CC_STDC
AC_PROG_INSTALL
@@ -279,8 +293,9 @@ fi
AM_CONDITIONAL(NO_VERSION_SCRIPT, test x$no_version_script = xyes)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h)
AC_CHECK_HEADERS(sys/user.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h)
AC_CHECK_HEADERS(sys/user.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h sys/select.h)
AC_CHECK_HEADER(zlib.h, [have_zlib=yes], [have_zlib=no])
if test x$have_zlib = xyes; then
@@ -372,13 +387,19 @@ fi
# A sanity check to catch cases where the package was unpacked
# with an ancient tar program (Solaris)
#
AC_MSG_CHECKING(integrity of package)
if test -f $srcdir/$mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
then
AC_MSG_RESULT(ok)
else
errorm="Your mono distribution is incomplete; if unpacking from a tar file, make sure you use GNU tar; see http://www.mono-project.com/IncompletePackage for more details"
AC_MSG_ERROR([$errorm])
AC_ARG_ENABLE(solaris-tar-check,
[ --disable-solaris-tar-check disable solaris tar check],
do_solaris_tar_check=no, do_solaris_tar_check=yes)
if test x"$do_solaris_tar_check" = xyes; then
AC_MSG_CHECKING(integrity of package)
if test -f $srcdir/$mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
then
AC_MSG_RESULT(ok)
else
errorm="Your mono distribution is incomplete; if unpacking from a tar file, make sure you use GNU tar; see http://www.mono-project.com/IncompletePackage for more details"
AC_MSG_ERROR([$errorm])
fi
fi
mcs_topdir='$(top_srcdir)/'$mcsdir
@@ -414,7 +435,7 @@ if test "x$USE_NLS" = "xyes"; then
fi
AC_ARG_WITH([libgdiplus],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to NO)],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to installed)],
[], [with_libgdiplus=installed])
case $with_libgdiplus in
@@ -431,7 +452,7 @@ if test "x$PKG_CONFIG" = "xno"; then
fi
pkg_config_path=
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir],
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Change pkg-config dir to custom dir],
if test x$with_crosspkgdir = "x"; then
if test -s $PKG_CONFIG_PATH; then
pkg_config_path=$PKG_CONFIG_PATH
@@ -444,7 +465,7 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir],
)
AC_ARG_WITH([glib],
[ --with-glib=embedded|system Choose glib API: system or embedded (default to system)],
[ --with-glib=embedded|system Choose glib API: system or embedded (default to system)],
[], [with_glib=system])
eglib_dir=
@@ -473,14 +494,19 @@ system)
fi
## Versions of dependencies
GLIB_REQUIRED_VERSION=1.3.11
PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION)
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
GLIB_REQUIRED_VERSION=2.4.0
dnl
dnl No, you will not replace this check with a pkg.m4 check
dnl
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
else
AC_MSG_ERROR([You need at least glib-2.0 $GLIB_REQUIRED_VERSION])
fi
;;
*)
AC_MSG_ERROR([Invalid argument to --with-glib.])
@@ -516,17 +542,17 @@ if test x$cross_compiling$platform_win32 = xnoyes; then
AC_MSG_RESULT(ok)
fi
AC_ARG_WITH(gc, [ --with-gc=boehm,included,none],[gc=$with_gc],[gc=$gc_default])
AC_ARG_WITH(gc, [ --with-gc=boehm,included,none Defaults to included],[gc=$with_gc],[gc=$gc_default])
# Enable support for fast thread-local storage
# Some systems have broken support, so we allow to disable it.
AC_ARG_WITH(tls, [ --with-tls=__thread,pthread select Thread Local Storage implementation],[],[with_tls=__thread])
AC_ARG_WITH(tls, [ --with-tls=__thread,pthread select Thread Local Storage implementation (defaults to __thread)],[],[with_tls=__thread])
# Enable support for using sigaltstack for SIGSEGV and stack overflow handling
# This does not work on some platforms (bug #55253)
AC_ARG_WITH(sigaltstack, [ --with-sigaltstack=yes,no enable/disable support for sigaltstack],[],[with_sigaltstack=yes])
AC_ARG_WITH(sigaltstack, [ --with-sigaltstack=yes,no enable/disable support for sigaltstack (defaults to yes)],[],[with_sigaltstack=yes])
AC_ARG_WITH(static_mono, [ --with-static_mono=yes,no link mono statically to libmono (faster)],[],[with_static_mono=yes])
AC_ARG_WITH(static_mono, [ --with-static_mono=yes,no link mono statically to libmono (faster) (defaults to yes)],[],[with_static_mono=yes])
if test "x$enable_static" = "xno"; then
with_static_mono=no
@@ -540,7 +566,7 @@ fi
AM_CONDITIONAL(STATIC_MONO, test x$with_static_mono != xno)
AC_ARG_ENABLE(mcs-build, [ --disable-mcs-build disable the build of the mcs directory], try_mcs_build=$enableval, enable_mcs_build=yes)
AC_ARG_WITH(xen_opt, [ --with-xen_opt=yes,no Enable Xen-specific behaviour],[],[with_xen_opt=yes])
AC_ARG_WITH(xen_opt, [ --with-xen_opt=yes,no Enable Xen-specific behaviour (defaults to yes)],[],[with_xen_opt=yes])
if test "x$with_xen_opt" = "xyes"; then
AC_DEFINE(MONO_XEN_OPT, 1, [Xen-specific behaviour])
ORIG_CFLAGS=$CFLAGS
@@ -558,17 +584,16 @@ if test "x$with_xen_opt" = "xyes"; then
])
fi
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet runtime build], enable_quiet_build=$enableval, enable_quiet_build=yes)
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet runtime build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
DISABLED_FEATURES=none
AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems.
LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug,
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd.],
LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug,
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd.],
[
for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do
eval "mono_feature_disable_$feature='yes'"
AC_MSG_NOTICE([Disabled support for feature: $feature])
done
DISABLED_FEATURES=$enable_minimal
disabled="Disabled: $enable_minimal"
@@ -577,67 +602,103 @@ AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsy
AC_DEFINE_UNQUOTED(DISABLED_FEATURES, "$DISABLED_FEATURES", [String of disabled features])
if test "x$mono_feature_disable_aot" = "xyes"; then
AC_DEFINE(DISABLE_AOT, 1, [Disable AOT support])
AC_DEFINE(DISABLE_AOT_COMPILER, 1, [Disable AOT Compiler])
AC_MSG_NOTICE([Disabled AOT compiler])
fi
if test "x$mono_feature_disable_profiler" = "xyes"; then
AC_DEFINE(DISABLE_PROFILER, 1, [Disable default profiler support])
AC_MSG_NOTICE([Disabled support for the profiler])
fi
AM_CONDITIONAL(DISABLE_PROFILER, test x$mono_feature_disable_profiler = xyes)
if test "x$mono_feature_disable_decimal" = "xyes"; then
AC_DEFINE(DISABLE_DECIMAL, 1, [Disable System.Decimal support])
AC_MSG_NOTICE([Disabled support for decimal])
fi
if test "x$mono_feature_disable_pinvoke" = "xyes"; then
AC_DEFINE(DISABLE_PINVOKE, 1, [Disable P/Invoke support])
AC_MSG_NOTICE([Disabled support for P/Invoke])
fi
if test "x$mono_feature_disable_debug" = "xyes"; then
AC_DEFINE(DISABLE_DEBUG, 1, [Disable runtime debugging support])
AC_MSG_NOTICE([Disabled support for runtime debugging])
fi
if test "x$mono_feature_disable_reflection_emit" = "xyes"; then
AC_DEFINE(DISABLE_REFLECTION_EMIT, 1, [Disable reflection emit support])
mono_feature_disable_reflection_emit_save=yes
AC_MSG_NOTICE([Disabled support for Reflection.Emit])
fi
if test "x$mono_feature_disable_reflection_emit_save" = "xyes"; then
AC_DEFINE(DISABLE_REFLECTION_EMIT_SAVE, 1, [Disable assembly saving support in reflection emit])
AC_MSG_NOTICE([Disabled support for Reflection.Emit.Save])
fi
if test "x$mono_feature_disable_large_code" = "xyes"; then
AC_DEFINE(DISABLE_LARGE_CODE, 1, [Disable support for huge assemblies])
AC_MSG_NOTICE([Disabled support for large assemblies])
fi
if test "x$mono_feature_disable_logging" = "xyes"; then
AC_DEFINE(DISABLE_LOGGING, 1, [Disable support debug logging])
AC_MSG_NOTICE([Disabled support for logging])
fi
if test "x$mono_feature_disable_com" = "xyes"; then
AC_DEFINE(DISABLE_COM, 1, [Disable COM support])
AC_MSG_NOTICE([Disabled COM support])
fi
if test "x$mono_feature_disable_ssa" = "xyes"; then
AC_DEFINE(DISABLE_SSA, 1, [Disable advanced SSA JIT optimizations])
AC_MSG_NOTICE([Disabled SSA JIT optimizations])
fi
if test "x$mono_feature_disable_generics" = "xyes"; then
AC_DEFINE(DISABLE_GENERICS, 1, [Disable generics support])
AC_MSG_NOTICE([Disabled Generics Support])
fi
if test "x$mono_feature_disable_shadowcopy" = "xyes"; then
AC_DEFINE(DISABLE_SHADOW_COPY, 1, [Disable Shadow Copy for AppDomains])
AC_MSG_NOTICE([Disabled Shadow copy for AppDomains])
fi
if test "x$mono_feature_disable_portability" = "xyes"; then
AC_DEFINE(DISABLE_PORTABILITY, 1, [Disables the IO portability layer])
AC_MSG_NOTICE([Disabled IO Portability layer])
fi
if test "x$mono_feature_disable_attach" = "xyes"; then
AC_DEFINE(DISABLE_ATTACH, 1, [Disable agent attach support])
AC_MSG_NOTICE([Disabled agent attach])
fi
if test "x$mono_feature_disable_full_messages" = "xyes"; then
AC_DEFINE(DISABLE_FULL_MESSAGES, 1, [Disables building in the full table of WAPI messages])
AC_MSG_NOTICE([Disabled full messages for Win32 errors, only core message strings shipped])
fi
if test "x$mono_feature_disable_verifier" = "xyes"; then
AC_DEFINE(DISABLE_VERIFIER, 1, [Disables the verifier])
AC_MSG_NOTICE([Disabled the metadata and IL verifiers])
fi
if test "x$mono_feature_disable_jit" = "xyes"; then
AC_DEFINE(DISABLE_JIT, 1, [Disable the JIT, only full-aot mode will be supported by the runtime.])
AC_MSG_NOTICE([Disabled the JIT engine, only full AOT will be supported])
fi
AM_CONDITIONAL(DISABLE_JIT, test x$mono_feature_disable_jit = xyes)
if test "x$mono_feature_disable_simd" = "xyes"; then
AC_DEFINE(DISABLE_SIMD, 1, [Disable SIMD intrinsics related optimizations.])
AC_MSG_NOTICE([Disabled SIMD support])
fi
AC_MSG_CHECKING(for visibility __attribute__)
@@ -738,7 +799,7 @@ case "x$gc" in
;;
esac
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB], [large_heap=$withval], [large_heap=no])
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB (defaults to no)], [large_heap=$withval], [large_heap=no])
if test "x$large_heap" = "xyes"; then
echo "FOO"
CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG"
@@ -797,7 +858,7 @@ if test x$platform_win32 = xno; then
dnl ******************************************************************
dnl *** Checks for the IKVM JNI interface library ***
dnl ******************************************************************
AC_ARG_WITH(ikvm-native, [ --with-ikvm-native=yes,no build the IKVM JNI interface library],[with_ikvm_native=$withval],[with_ikvm_native=yes])
AC_ARG_WITH(ikvm-native, [ --with-ikvm-native=yes,no build the IKVM JNI interface library (defaults to yes)],[with_ikvm_native=$withval],[with_ikvm_native=yes])
ikvm_native_dir=
if test x$with_ikvm_native = xyes; then
@@ -1135,9 +1196,15 @@ if test x$platform_win32 = xno; then
AC_DEFINE(USE_MONO_MUTEX, 1, [Use mono_mutex_t])
])
AC_CHECK_FUNCS(pthread_attr_setstacksize)
AC_CHECK_FUNCS(pthread_attr_getstack)
AC_CHECK_FUNCS(pthread_attr_getstack pthread_attr_getstacksize)
AC_CHECK_FUNCS(pthread_get_stacksize_np pthread_get_stackaddr_np)
dnl ***********************************
dnl *** Checks for signals
dnl ***********************************
AC_CHECK_HEADERS(signal.h)
AC_CHECK_FUNCS(sigaction)
dnl ***********************************
dnl *** Checks for working __thread ***
dnl ***********************************
@@ -1618,8 +1685,9 @@ dnl ****************************
AC_MSG_CHECKING([if usage of random device is requested])
AC_ARG_ENABLE(dev-random,
[ --disable-dev-random disable the use of the random device],
[ --disable-dev-random disable the use of the random device (enabled by default)],
try_dev_random=$enableval, try_dev_random=yes)
AC_MSG_RESULT($try_dev_random)
case "{$target}" in
@@ -1692,11 +1760,11 @@ if test x$gc = xsgen; then
fi
fi
AC_ARG_ENABLE(nunit-tests, [ --enable-nunit-tests Run the nunit tests of the class library on 'make check'])
AC_ARG_ENABLE(nunit-tests, [ --enable-nunit-tests Run the nunit tests of the class library on 'make check'])
AM_CONDITIONAL(ENABLE_NUNIT_TESTS, [test x$enable_nunit_tests = xyes])
AC_MSG_CHECKING([if big-arrays are to be enabled])
AC_ARG_ENABLE(big-arrays, [ --enable-big-arrays Enable the allocation and indexing of arrays greater than Int32.MaxValue], enable_big_arrays=$enableval, enable_big_arrays=no)
AC_ARG_ENABLE(big-arrays, [ --enable-big-arrays Enable the allocation and indexing of arrays greater than Int32.MaxValue], enable_big_arrays=$enableval, enable_big_arrays=no)
if test "x$enable_big_arrays" = "xyes" ; then
if test "x$ac_cv_sizeof_void_p" = "x8"; then
AC_DEFINE(MONO_BIG_ARRAYS,1,[Enable the allocation and indexing of arrays greater than Int32.MaxValue])
@@ -1720,6 +1788,9 @@ if test "x$enable_dtrace" = "xyes"; then
if test "x$DTRACE" = "xno"; then
AC_MSG_RESULT([dtrace utility not found, dtrace support disabled.])
enable_dtrace=no
elif ! $DTRACE -h $srcdir/data/mono.d > /dev/null 2>&1; then
AC_MSG_RESULT([dtrace doesn't support -h option, dtrace support disabled.])
enable_dtrace=no
fi
fi
@@ -1763,6 +1834,31 @@ fi
AM_CONDITIONAL(ENABLE_DTRACE, [test x$enable_dtrace = xyes])
AM_CONDITIONAL(DTRACE_G_REQUIRED, [test x$dtrace_g = xyes])
dnl **************
dnl *** LLVM ***
dnl **************
AC_ARG_ENABLE(llvm,[ --enable-llvm Enable the experimental LLVM back-end], enable_llvm=$enableval, enable_llvm=no)
if test "x$enable_llvm" = "xyes"; then
AC_PATH_PROG(LLVM_CONFIG, llvm-config, no)
if test "x$LLVM_CONFIG" = "xno"; then
AC_MSG_ERROR([llvm-config not found.])
fi
LLVM_CXXFLAGS=`$LLVM_CONFIG --cflags`
LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`
LLVM_LIBS=`$LLVM_CONFIG --libs core bitwriter jit x86codegen`
LLVM_LIBS="$LLVM_LDFLAGS $LLVM_LIBS -lstdc++"
AC_SUBST(LLVM_CXXFLAGS)
AC_SUBST(LLVM_LIBS)
AC_SUBST(LLVM_LDFLAGS)
AC_DEFINE(ENABLE_LLVM, 1, [Enable the LLVM back end])
fi
AM_CONDITIONAL(ENABLE_LLVM, [test x$enable_llvm = xyes])
TARGET="unknown"
ACCESS_UNALIGNED="yes"
@@ -1958,6 +2054,26 @@ case "$host" in
;;
esac
# FIXME: Define the others as well
case "$TARGET" in
X86)
AC_DEFINE(TARGET_X86, 1, [...])
;;
AMD64)
AC_DEFINE(TARGET_AMD64, 1, [...])
;;
ARM)
AC_DEFINE(TARGET_ARM, 1, [...])
;;
POWERPC)
AC_DEFINE(TARGET_POWERPC, 1, [...])
;;
POWERPC64)
AC_DEFINE(TARGET_POWERPC, 1, [...])
AC_DEFINE(TARGET_POWERPC64, 1, [...])
;;
esac
if test "x$sizeof_register" = "x4"; then
AC_DEFINE(SIZEOF_REGISTER,4,[size of machine integer registers])
elif test "x$sizeof_register" = "x8"; then
@@ -1966,11 +2082,19 @@ else
AC_DEFINE(SIZEOF_REGISTER,SIZEOF_VOID_P,[size of machine integer registers])
fi
if test "x$target_byte_order" = "xG_BIG_ENDIAN"; then
AC_DEFINE(TARGET_BYTE_ORDER,G_BIG_ENDIAN,[byte order of target])
elif test "x$target_byte_order" = "xG_LITTLE_ENDIAN"; then
AC_DEFINE(TARGET_BYTE_ORDER,G_LITTLE_ENDIAN,[byte order of target])
else
AC_DEFINE(TARGET_BYTE_ORDER,G_BYTE_ORDER,[byte order of target])
fi
if test "x$have_visibility_hidden" = "xyes"; then
AC_DEFINE(HAVE_VISIBILITY_HIDDEN, 1, [Support for the visibility ("hidden") attribute])
fi
AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that default to the JIT],[
AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that default to the JIT (defaults to no)],[
if test x$withval = xyes; then
jit_wanted=true
else
@@ -1978,7 +2102,7 @@ AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that de
fi
])
AC_ARG_WITH(interp, [ --with-interp=yes,no If you want to build scripts that default to the interpreter],[
AC_ARG_WITH(interp, [ --with-interp=yes,no If you want to build scripts that default to the interpreter (defaults to no)],[
if test x$withval = xyes; then
interp_wanted=true
else
@@ -2080,6 +2204,9 @@ if test "x$TARGET" = "xAMD64" -o "x$TARGET" = "xX86" -o "x$TARGET" = "xALPHA"; t
*-*-*linux*)
mono_debugger_supported=yes
;;
*86-apple-darwin*)
mono_debugger_supported=yes
;;
esac
fi
fi
@@ -2147,22 +2274,13 @@ case "x$gc" in
;;
esac
PREVIEW=yes
AC_ARG_WITH(preview, [ --with-preview=yes,no If you want to install the 2.0 FX preview],[
if test x$with_preview = xno; then
PREVIEW=no
fi
])
MOONLIGHT=yes
AC_ARG_WITH(moonlight,[ --with-moonlight=yes,no If you want to build the Moonlight 2.1 assemblies],[
if test x$with_moonlight = xno; then
MOONLIGHT=no
fi
])
AC_ARG_WITH(profile2, [ --with-profile2=yes,no If you want to install the 2.0 FX (defaults to yes)], [], [with_profile2=yes])
AC_ARG_WITH(profile4, [ --with-profile4=yes,no If you want to install the 4.0 FX (defaults to no)], [], [with_profile4=no])
AC_ARG_WITH(moonlight, [ --with-moonlight=yes,no If you want to build the Moonlight 2.1 assemblies (defaults to yes)], [], [with_moonlight=yes])
AC_ARG_WITH(monotouch, [ --with-monotouch=yes,no If you want to build the raw MonoTouch 2.1 assemblies (defaults to no)], [], [with_monotouch=no])
OPROFILE=no
AC_ARG_WITH(oprofile,[ --with-oprofile=no,<oprofile install dir> Enable oprofile support (defaults to NO)],[
AC_ARG_WITH(oprofile,[ --with-oprofile=no,<oprofile install dir> Enable oprofile support (defaults to no)],[
if test x$with_oprofile != xno; then
oprofile_include=$with_oprofile/include
if test ! -f $oprofile_include/opagent.h; then
@@ -2176,7 +2294,7 @@ AC_ARG_WITH(oprofile,[ --with-oprofile=no,<oprofile install dir> Enable oprofi
])
MALLOC_MEMPOOLS=no
AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each single mempool allocation (only for runtime debugging, defaults to NO)],[
AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each single mempool allocation (only for runtime debugging, defaults to no)],[
if test x$with_malloc_mempools = xyes; then
MALLOC_MEMPOOLS=yes
AC_DEFINE(USE_MALLOC_FOR_MEMPOOLS,1,[Use malloc for each single mempool allocation])
@@ -2185,20 +2303,33 @@ AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each
DISABLE_MCS_DOCS=no
AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the documentation under mcs (defaults to YES)],[
AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the documentation under mcs (defaults to yes)],[
if test x$with_mcs_docs != xyes; then
DISABLE_MCS_DOCS=yes
fi
])
dnl
dnl Consistency settings
dnl
if test x$cross_compiling = xyes -o x$enable_mcs_build = xno; then
DISABLE_MCS_DOCS=yes
docs_dir=""
else
docs_dir=docs
fi
AC_SUBST(docs_dir)
AM_CONDITIONAL(HAVE_OPROFILE, test x$OPROFILE = xyes)
AC_SUBST(OPROFILE_CFLAGS)
AC_SUBST(OPROFILE_LIBS)
libmono_ldflags="$libmono_ldflags $LIBS"
AM_CONDITIONAL(INSTALL_2_0, test x$PREVIEW = xyes)
AM_CONDITIONAL(INSTALL_2_1, test x$MOONLIGHT = xyes)
AM_CONDITIONAL(INSTALL_2_0, [test "x$with_profile2" = xyes])
AM_CONDITIONAL(INSTALL_2_1, [test "x$with_moonlight" = xyes])
AM_CONDITIONAL(INSTALL_4_0, [test "x$with_profile4" = xyes])
AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" = xyes])
AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
@@ -2329,13 +2460,42 @@ AC_CONFIG_COMMANDS([runtime/etc/mono/2.0/Browsers/Compat.browser],
cd $depth
],[LN_S='$LN_S'])
AC_CONFIG_COMMANDS([runtime/etc/mono/4.0/machine.config],
[ depth=../../../..
case $srcdir in
[[\\/$]]* | ?:[[\\/]]* ) reldir=$srcdir ;;
.) reldir=$depth ;;
*) reldir=$depth/$srcdir ;;
esac
$ac_aux_dir/install-sh -d runtime/etc/mono/4.0
cd runtime/etc/mono/4.0
rm -f machine.config
$LN_S $reldir/data/net_4_0/machine.config machine.config
cd $depth
],[LN_S='$LN_S'])
AC_CONFIG_COMMANDS([runtime/etc/mono/4.0/web.config],
[ depth=../../../..
case $srcdir in
[[\\/$]]* | ?:[[\\/]]* ) reldir=$srcdir ;;
.) reldir=$depth ;;
*) reldir=$depth/$srcdir ;;
esac
$ac_aux_dir/install-sh -d runtime/etc/mono/4.0
cd runtime/etc/mono/4.0
rm -f web.config
$LN_S $reldir/data/net_4_0/web.config web.config
cd $depth
],[LN_S='$LN_S'])
if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet], [for i in `find mono libgc support -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi
AC_OUTPUT([
Makefile
mono-core.spec
mono-uninstalled.pc
scripts/mono-find-provides
scripts/mono-find-requires
@@ -2345,7 +2505,6 @@ mono/metadata/Makefile
mono/dis/Makefile
mono/cil/Makefile
mono/arch/Makefile
mono/os/Makefile
mono/arch/x86/Makefile
mono/arch/amd64/Makefile
mono/arch/hppa/Makefile
@@ -2380,6 +2539,7 @@ docs/Makefile
data/Makefile
data/net_1_1/Makefile
data/net_2_0/Makefile
data/net_4_0/Makefile
data/net_2_0/Browsers/Makefile
data/mint.pc
data/mono.pc
@@ -2388,13 +2548,14 @@ data/mono-nunit.pc
data/mono-options.pc
data/mono-lineeditor.pc
data/monodoc.pc
data/mono.web.pc
data/dotnet.pc
data/dotnet35.pc
data/wcf.pc
data/cecil.pc
data/smcs.pc
data/system.web.extensions_1.0.pc
data/system.web.extensions.design_1.0.pc
data/system.web.mvc.pc
samples/Makefile
support/Makefile
data/config
@@ -2477,7 +2638,7 @@ fi
echo 'MCS_FLAGS = $(PLATFORM_DEBUG_FLAGS)' >> $srcdir/$olivedir/build/config.make
echo "RUNTIME = $mono_build_root/runtime/mono-wrapper" >> $srcdir/$olivedir/build/config.make
echo "MONO_VERSION = $myver" >> $srcdir/$olivedir/build/config.make
if test x$with_moonlight = xyes; then
if test x$with_moonlight = xyes; then
echo "WITH_MOONLIGHT = yes" >> $srcdir/$olivedir/build/config.make
fi
fi
@@ -2495,11 +2656,14 @@ echo "
olive source: $olive_topdir
GC: $gc
GLIB: $with_glib
TLS: $with_tls
SIGALTSTACK: $with_sigaltstack
Engine: $jit_status
2.0 Beta: $PREVIEW
2.1 Alpha: $MOONLIGHT
2.0 Profile: $with_profile2
Moon Profile: $with_moonlight
4.0 Alpha: $with_profile4
MonoTouch: $with_monotouch
JNI support: $jdk_headers_found
libgdiplus: $libgdiplus_msg
zlib: $zlib_msg
@@ -2507,6 +2671,7 @@ echo "
BigArrays: $enable_big_arrays
DTrace: $enable_dtrace
Parallel Mark: $enable_parallel_mark
LLVM Back End: $enable_llvm
$disabled
"
@@ -2522,3 +2687,9 @@ if test x$gc = xsgen; then
echo IMPORTANT:
echo IMPORTANT: There are known problems with it, use at your own risk.
fi
if test x$enable_llvm = xyes; then
echo IMPORTANT:
echo IMPORTANT: The LLVM Back End is experimental and does not work yet.
echo IMPORTANT:
fi
+5
View File
@@ -0,0 +1,5 @@
/Makefile.in
/Makefile
/config
/.cvsignore
/*.pc
+13 -9
View File
@@ -1,31 +1,35 @@
SUBDIRS = net_1_1 net_2_0
if INSTALL_4_0
SUBDIRS += net_4_0
endif
monodir = $(sysconfdir)/mono
EXTRA_DIST = \
config.in \
browscap.ini mono.supp mono.d README \
mono.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in smcs.pc.in \
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in \
mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
dtrace-prelink.sh
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in
pkgconfigdir = $(libdir)/pkgconfig
if JIT_SUPPORTED
if INTERP_SUPPORTED
pkgconfig_DATA= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc
pkgconfig_DATA= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc
else
pkgconfig_DATA= mono.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc
pkgconfig_DATA= mono.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc
endif
else
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc mono-lineeditor.pc
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc
endif
DISTCLEANFILES= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc
DISTCLEANFILES= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc
mono_DATA = config \
browscap.ini
+6020 -7649
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -17,6 +17,7 @@
<dllmap dll="sqlite3" target="@SQLITE3@" os="!windows"/>
<dllmap dll="libX11" target="@X11@" os="!windows" />
<dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
<dllmap dll="libcups" target="libcups.so.2" os="!windows"/>
<dllmap dll="i:kernel32.dll">
<dllentry dll="__Internal" name="CopyMemory" target="mono_win32_compat_CopyMemory"/>
<dllentry dll="__Internal" name="FillMemory" target="mono_win32_compat_FillMemory"/>
+39
View File
@@ -1,3 +1,42 @@
2009-04-14 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoClassPrinter.to_string): Add a MonoClass* pretty
printer.
2009-04-12 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoMethodPrinter.to_string): Add a MonoMethod* pretty
printer.
2009-04-10 Zoltan Varga <[email protected]>
* mono-gdb.py: Update to the latest archer api.
2009-04-07 Zoltan Varga <[email protected]>
* mono-gdb.py (ObjectPrinter.__init__): Update to latest archer api.
2009-04-06 Zoltan Varga <[email protected]>
* test-xdb.py: New file, tester script for xdb.
* mono-gdb.py (stringify_class_name): Handle classes without a namespace
correctly.
* mono-gdb.py: Update after the changes to dwarfwriter.c.
2009-04-05 Zoltan Varga <[email protected]>
* mono-gdb.py: Handle superclasses in the pretty printer.
2009-03-27 Zoltan Varga <[email protected]>
* mono-gdb.py (StringPrinter.to_string): Fix support for non-ascii characters.
2009-03-20 Zoltan Varga <[email protected]>
* mono-gdb.py: Update for the latest python API on the archer branch.
2009-02-03 Zoltan Varga <[email protected]>
* mono-gdb.py: Remove the --64 argument to as, it is not needed.
+83 -17
View File
@@ -24,16 +24,20 @@ class StringPrinter:
self.val = val
def to_string(self):
if int(self.val.cast (gdb.Type ("guint64"))) == 0:
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "null"
obj = self.val.cast (gdb.Type ("MonoString").pointer ()).dereference ()
obj = self.val.cast (gdb.lookup_type ("MonoString").pointer ()).dereference ()
len = obj ['length']
chars = obj ['chars']
i = 0
res = ['"']
while i < len:
c = chr ((chars.cast(gdb.Type ("gint64")) + (i * 2)).cast(gdb.Type ("gunichar2").pointer ()).dereference ())
val = (chars.cast(gdb.lookup_type ("gint64")) + (i * 2)).cast(gdb.lookup_type ("gunichar2").pointer ()).dereference ()
if val >= 256:
c = "\u%X" % val
else:
c = chr (val)
res.append (c)
i = i + 1
res.append ('"')
@@ -45,7 +49,10 @@ def stringify_class_name(ns, name):
return "byte"
if name == "String":
return "string"
return "%s.%s" % (ns, name)
if ns == "":
return name
else:
return "%s.%s" % (ns, name)
class ArrayPrinter:
"Print a C# array"
@@ -56,7 +63,7 @@ class ArrayPrinter:
self.class_name = class_name
def to_string(self):
obj = self.val.cast (gdb.Type ("MonoArray").pointer ()).dereference ()
obj = self.val.cast (gdb.lookup_type ("MonoArray").pointer ()).dereference ()
length = obj ['max_length']
return "%s [%d]" % (stringify_class_name (self.class_ns, self.class_name [0:len(self.class_name) - 2]), int(length))
@@ -64,12 +71,15 @@ class ObjectPrinter:
"Print a C# object"
def __init__(self, val):
self.val = val
if str(val.type)[-1] == "&":
self.val = val.address.cast (gdb.lookup_type ("MonoObject").pointer ())
else:
self.val = val.cast (gdb.lookup_type ("MonoObject").pointer ())
class _iterator:
def __init__(self,obj):
self.obj = obj
self.iter = self.obj.type ().fields ().__iter__ ()
self.iter = self.obj.type.fields ().__iter__ ()
pass
def __iter__(self):
@@ -77,27 +87,39 @@ class ObjectPrinter:
def next(self):
field = self.iter.next ()
return (field.name, self.obj [field.name])
try:
if str(self.obj [field.name].type) == "object":
# Avoid recursion
return (field.name, self.obj [field.name].cast (gdb.lookup_type ("void").pointer ()))
else:
return (field.name, self.obj [field.name])
except:
# Superclass
return (field.name, self.obj.cast (gdb.lookup_type ("%s" % (field.name))))
def children(self):
# FIXME: It would be easier if gdb.Value would support iteration itself
# It would also be better if we could return None
if int(self.val.cast (gdb.Type ("guint64"))) == 0:
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return {}.__iter__ ()
try:
obj = self.val.cast (gdb.Type ("MonoObject").pointer ()).dereference ()
obj = self.val.dereference ()
class_ns = obj ['vtable'].dereference ()['klass'].dereference ()['name_space'].string ()
class_name = obj ['vtable'].dereference ()['klass'].dereference ()['name'].string ()
gdb_type = gdb.Type ("struct %s.%s" % (class_ns, class_name))
if class_name [-2:len(class_name)] == "[]":
return {}.__iter__ ()
gdb_type = gdb.lookup_type ("struct %s_%s" % (class_ns.replace (".", "_"), class_name))
return self._iterator(obj.cast (gdb_type))
except:
print sys.exc_info ()[0]
print sys.exc_info ()[1]
return {}.__iter__ ()
def to_string(self):
if int(self.val.cast (gdb.Type ("guint64"))) == 0:
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "null"
try:
obj = self.val.cast (gdb.Type ("MonoObject").pointer ()).dereference ()
obj = self.val.dereference ()
class_ns = obj ['vtable'].dereference ()['klass'].dereference ()['name_space'].string ()
class_name = obj ['vtable'].dereference ()['klass'].dereference ()['name'].string ()
if class_ns == "System" and class_name == "String":
@@ -106,7 +128,7 @@ class ObjectPrinter:
return ArrayPrinter (self.val,class_ns,class_name).to_string ()
if class_ns != "":
try:
gdb_type = gdb.Type ("struct %s.%s" % (class_ns, class_name))
gdb_type = gdb.lookup_type ("struct %s.%s" % (class_ns, class_name))
except:
# Maybe there is no debug info for that type
return "%s.%s" % (class_ns, class_name)
@@ -117,7 +139,52 @@ class ObjectPrinter:
print sys.exc_info ()[0]
print sys.exc_info ()[1]
# FIXME: This can happen because we don't have liveness information
return self.val.cast (gdb.Type ("guint64"))
return self.val.cast (gdb.lookup_type ("guint64"))
class MonoMethodPrinter:
"Print a MonoMethod structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
val = self.val.dereference ()
klass = val ["klass"].dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"%s:%s ()\"" % (class_name, val ["name"].string ())
# This returns more info but requires calling into the inferior
#return "\"%s\"" % (gdb.parse_and_eval ("mono_method_full_name (%s, 1)" % (str (int (self.val.cast (gdb.lookup_type ("guint64")))))).string ())
class MonoClassPrinter:
"Print a MonoClass structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
klass = self.val.dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"%s\"" % (class_name)
# This returns more info but requires calling into the inferior
#return "\"%s\"" % (gdb.parse_and_eval ("mono_type_full_name (&((MonoClass*)%s)->byval_arg)" % (str (int ((self.val).cast (gdb.lookup_type ("guint64")))))))
def lookup_pretty_printer(val):
t = str (val.type)
if t == "object":
return ObjectPrinter (val)
if t[0:5] == "class" and t[-1] == "&":
return ObjectPrinter (val)
if t == "string":
return StringPrinter (val)
if t == "MonoMethod *":
return MonoMethodPrinter (val)
if t == "MonoClass *":
return MonoClassPrinter (val)
return None
def register_csharp_printers(obj):
"Register C# pretty-printers with objfile Obj."
@@ -125,8 +192,7 @@ def register_csharp_printers(obj):
if obj == None:
obj = gdb
obj.pretty_printers['object'] = ObjectPrinter
obj.pretty_printers['string'] = StringPrinter
obj.pretty_printers.append (lookup_pretty_printer)
register_csharp_printers (gdb.current_objfile())
+19
View File
@@ -0,0 +1,19 @@
# Tester script for the xdb functionality
# Run using gdb -P test-xdb.py <NORMAL GDB COMMAND LINE>
import sys
gdb.execute ("file %s" % sys.argv [0])
gdb.execute ("r --break *:* %s" % " ".join (sys.argv[1:len(sys.argv)]))
while True:
try:
if gdb.threads () == None:
break
gdb.execute("xdb")
gdb.execute("bt")
gdb.execute("info args")
gdb.execute("info locals")
gdb.execute("c")
except:
gdb.execute ("quit")
+6
View File
@@ -0,0 +1,6 @@
2009-02-19 Rodrigo Kumpera <[email protected]>
* LockTracerDecoder.cs: Initial version of the lock tracers decoder.
+519
View File
@@ -0,0 +1,519 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Globalization;
using System.Runtime.InteropServices;
public enum Record {
MustNotHoldAny,
MustNotHoldOne,
MustHoldOne,
LockAcquired,
LockReleased
}
public struct LockRecord {
public SimLock lk;
public string frame;
public LockRecord (SimLock lk, string frame) {
this.lk = lk;
this.frame = frame;
}
}
public class SimThread
{
int thread;
List <LockRecord> locks = new List <LockRecord> ();
public SimThread (int t)
{
this.thread = t;
}
public bool HoldsLock (SimLock lk) {
foreach (var l in locks) {
if (l.lk == lk)
return true;
}
return false;
}
public int HoldCount (SimLock lk) {
int res = 0;
foreach (var l in locks)
if (l.lk == lk)
++res;
return res;
}
public void Lock (SimLock lk, string frame) {
foreach (LockRecord lr in locks) {
if (lk.WarnAbout (this, lr.lk))
Console.WriteLine ("WARNING: tried to acquire lock {0} at {1} while holding {2} at {3}: {4}", lk, frame, lr.lk, lr.frame, lk.GetWarningMessage (this, lr.lk));
else if (!lk.IsValid (this, lr.lk))
Console.WriteLine ("ERROR: tried to acquire lock {0} at {1} while holding {2} at {3}: {4}", lk, frame, lr.lk, lr.frame, lk.GetErrorMessage (this, lr.lk));
}
locks.Add (new LockRecord (lk, frame));
}
public void Release (SimLock lk, string frame) {
if (locks.Count == 0) {
Console.WriteLine ("ERROR: released lock {0} at {1} while holding no locks!", lk, frame);
return;
}
LockRecord top = locks [locks.Count - 1];
if (top.lk != lk && !(lk.IsGlobalLock && HoldCount (lk) > 1)) {
Console.WriteLine ("WARNING: released lock {0} at {1} out of order with {2} at {3}!", lk, frame, top.lk, top.frame);
}
for (int i = locks.Count -1; i >= 0; --i) {
if (locks [i].lk == lk) {
locks.RemoveAt (i);
break;
}
}
}
}
/*
LOCK RULES
Simple locks:
Can be acquired at any point regardless of which locks are taken or not.
No other locks can be acquired or released while holding a simple lock.
Reentrancy is not recomended. (warning)
Simple locks are leaf locks on the lock lattice.
Complex locks:
Must respect locking order, which form a lattice.
IOW, to take a given lock, only it's parents might have been taken.
Reentrancy is ok.
Locks around resources count as separate instances of the hierarchy.
Global locks:
Must respect locking order.
Must be the at the botton of the locking lattice.
Can be taken out-of-order by other locks given that it was previously acquired.
Adding global locks is not to be taken lightly.
The current lock hierarchy:
loader lock
domain lock
domain jit lock
simple locks
Examples:
You can take the loader lock without holding a domain lock.
You cannot take a domain lock if the loader lock is held.
You cannot take a domain lock while holding the lock to another domain.
*/
public enum Lock {
Invalid,
LoaderLock,
ImageDataLock,
DomainLock,
DomainAssembliesLock,
DomainJitCodeHashLock,
}
public class SimLock
{
Lock kind;
int id;
public SimLock (Lock kind, int id) {
this.kind = kind;
this.id = id;
}
static int GetLockOrder (Lock kind) {
switch (kind) {
case Lock.LoaderLock:
return 0;
case Lock.DomainLock:
return 1;
case Lock.DomainJitCodeHashLock:
return 2;
default:
return 3;
}
}
bool IsParent (SimLock other) {
return GetLockOrder (kind) > GetLockOrder (other.kind);
}
public bool IsSimpleLock {
get { return GetLockOrder (kind) == 3; }
}
public bool IsGlobalLock {
get { return kind == Lock.LoaderLock; }
}
/*locked is already owned by the thread, 'this' is the new one*/
bool Compare (SimThread thread, SimLock locked, out bool isWarning, out string msg)
{
isWarning = false;
msg = null;
if (locked != this) {
if (!IsParent (locked)) {
if (IsGlobalLock) { /*acquiring a global lock*/
if (!thread.HoldsLock (this)) { /*does the thread alread hold it?*/
msg = "Acquired a global lock after a regular lock without having it before.";
return false;
}
} else {
msg = "Hierarchy violation.";
return false;
}
}
} else if (IsSimpleLock) {
msg = "Avoid taking simple locks recursively";
isWarning = true;
return false;
}
return true;
}
public bool IsValid (SimThread thread, SimLock locked) {
bool warn;
string msg;
return Compare (thread, locked, out warn, out msg);
}
public bool WarnAbout (SimThread thread, SimLock locked) {
bool warn;
string msg;
Compare (thread, locked, out warn, out msg);
return warn;
}
public string GetWarningMessage (SimThread thread, SimLock locked) {
bool warn;
string msg;
Compare (thread, locked, out warn, out msg);
return warn ? msg : null;
}
public string GetErrorMessage (SimThread thread, SimLock locked) {
bool warn;
string msg;
bool res = Compare (thread, locked, out warn, out msg);
return !res && !warn ? msg : null;
}
public override string ToString () {
return String.Format ("{0}", kind);
}
}
public class LockSimulator
{
static Dictionary <int, SimThread> threads = new Dictionary <int, SimThread> ();
static Dictionary <int, SimLock> locks = new Dictionary <int, SimLock> ();
SymbolTable syms;
public LockSimulator (SymbolTable s) { this.syms = s; }
SimLock GetLock (Trace t) {
if (locks.ContainsKey (t.lockPtr))
return locks [t.lockPtr];
else {
return locks [t.lockPtr] = new SimLock (t.lockKind, t.lockPtr);
}
}
SimThread GetThread (Trace t) {
if (threads.ContainsKey (t.thread))
return threads [t.thread];
else
return threads [t.thread] = new SimThread (t.thread);
}
public void PlayBack (IEnumerable<Trace> traces) {
foreach (var t in traces) {
SimThread thread = GetThread (t);
SimLock lk = GetLock (t);
string frame = t.GetUsefullTopTrace (this.syms);
switch (t.record) {
case Record.MustNotHoldAny:
case Record.MustNotHoldOne:
case Record.MustHoldOne:
throw new Exception ("not supported");
case Record.LockAcquired:
thread.Lock (lk, frame);
break;
case Record.LockReleased:
thread.Release (lk, frame);
break;
default:
throw new Exception ("Invalid trace record: "+t.record);
}
}
}
}
public class Trace {
public int thread;
public Record record;
public Lock lockKind;
public int lockPtr;
int[] frames;
static readonly string[] BAD_FRAME_METHODS = new string[] {
"mono_loader_lock",
"mono_loader_unlock",
"mono_image_lock",
"mono_image_unlock",
};
public Trace (string[] fields) {
thread = fields [0].ParseHex ();
record = (Record)fields [1].ParseDec ();
lockKind = (Lock)fields [2].ParseDec ();
lockPtr = fields [3].ParseHex ();
frames = new int [fields.Length - 4];
for (int i = 0; i < frames.Length; ++i)
frames [i] = fields [i + 4].ParseHex ();
}
public void Dump (SymbolTable table) {
Console.WriteLine ("{0:x} {1} {2} {3:x}", thread, record, lockKind, lockPtr);
for (int i = 0; i < frames.Length; ++i)
Console.WriteLine ("\t{0}", table.Translate (frames [i]));
}
public string GetUsefullTopTrace (SymbolTable syms) {
for (int i = 0; i < frames.Length; ++i) {
string str = syms.Translate (frames [i]);
bool ok = true;
for (int j = 0; j < BAD_FRAME_METHODS.Length; ++j) {
if (str.IndexOf (BAD_FRAME_METHODS [j]) >= 0) {
ok = false;
break;
}
}
if (ok)
return str;
}
return "[unknown]";
}
}
public class Symbol : IComparable<Symbol>
{
public int offset;
public int size;
public string name;
public Symbol (int o, int size, string n) {
this.offset = o;
this.size = size;
this.name = n;
}
public int CompareTo(Symbol other) {
return offset - other.offset;
}
}
public interface SymbolTable {
string Translate (int offset);
}
public class OsxSymbolTable : SymbolTable
{
Symbol[] table;
const int MAX_FUNC_SIZE = 0x20000;
public OsxSymbolTable (string binary) {
Load (binary);
}
void Load (string binary) {
ProcessStartInfo psi = new ProcessStartInfo ("gobjdump", "-t "+binary);
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
var proc = Process.Start (psi);
var list = new List<Symbol> ();
string line;
while ((line = proc.StandardOutput.ReadLine ()) != null) {
string[] fields = line.Split(new char[] {' ', '\t'}, StringSplitOptions.RemoveEmptyEntries);
if (fields.Length < 4)
continue;
if (!(fields [1].Equals ("g") || fields [1].Equals ("d")))
continue;
if (!fields [2].Equals ("*UND*"))
continue;
int offset = fields [0].ParseHex ();
string name = fields [3];
if (offset != 0)
list.Add (new Symbol (offset, 0, name));
}
table = new Symbol [list.Count];
list.CopyTo (table, 0);
Array.Sort (table);
}
public string Translate (int offset) {
Symbol sym = null;
int res = Array.BinarySearch (table, new Symbol (offset, 0, null));
if (res >= 0)
return table [res].name;
res = ~res;
if (res >= table.Length)
sym = table [table.Length - 1];
else if (res != 0)
sym = table [res - 1];
if (sym != null) {
int size = Math.Max (sym.size, 10);
if (offset - sym.offset < size)
return sym.name;
}
return String.Format ("[{0:x}]", offset);
}
}
public class LinuxSymbolTable : SymbolTable
{
Symbol[] table;
const int MAX_FUNC_SIZE = 0x20000;
public LinuxSymbolTable (string binary) {
Load (binary);
}
void Load (string binary) {
ProcessStartInfo psi = new ProcessStartInfo ("objdump", "-t "+binary);
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
var proc = Process.Start (psi);
var list = new List<Symbol> ();
string line;
while ((line = proc.StandardOutput.ReadLine ()) != null) {
string[] fields = line.Split(new char[] {' ', '\t'}, StringSplitOptions.RemoveEmptyEntries);
if (fields.Length < 6)
continue;
if (fields [3] != ".text" || fields [2] != "F")
continue;
int offset = fields [0].ParseHex ();
int size = fields [4].ParseHex ();
string name = fields [fields.Length - 1];
if (offset != 0)
list.Add (new Symbol (offset, size, name));
}
table = new Symbol [list.Count];
list.CopyTo (table, 0);
Array.Sort (table);
}
public string Translate (int offset) {
Symbol sym = null;
int res = Array.BinarySearch (table, new Symbol (offset, 0, null));
if (res >= 0)
return table [res].name;
res = ~res;
if (res >= table.Length)
sym = table [table.Length - 1];
else if (res != 0)
sym = table [res - 1];
if (sym != null && offset - sym.offset < MAX_FUNC_SIZE)
return sym.name;
return String.Format ("[{0:x}]", offset);
}
}
public class TraceDecoder
{
string file;
public TraceDecoder (string file) {
this.file = file;
}
public IEnumerable<Trace> GetTraces () {
using (StreamReader reader = new StreamReader (file)) {
string line;
while ((line = reader.ReadLine ()) != null) {
string[] fields = line.Split(new char[] {','}, StringSplitOptions.RemoveEmptyEntries);
if (fields.Length >= 7) {
yield return new Trace (fields);
}
}
}
}
}
public class Driver
{
[DllImport ("libc")]
static extern int uname (IntPtr buf);
static bool IsOSX ()
{
bool isOsx = false;
IntPtr buf = Marshal.AllocHGlobal (8192);
if (uname (buf) == 0) {
string os = Marshal.PtrToStringAnsi (buf);
isOsx = os == "Darwin";
}
Marshal.FreeHGlobal (buf);
return isOsx;
}
static void Main (string[] args) {
SymbolTable syms;
if (args.Length != 2) {
Console.WriteLine ("usage: LockTracerDecoder.exe /path/to/mono /path/to/locks.pid");
return;
}
if (IsOSX ())
syms = new OsxSymbolTable (args [0]);
else
syms = new LinuxSymbolTable (args [0]);
var decoder = new TraceDecoder (args [1]);
var sim = new LockSimulator (syms);
sim.PlayBack (decoder.GetTraces ());
}
}
public static class Utils
{
public static int ParseHex (this string number) {
while (number.Length > 1 && (number [0] == '0' || number [0] == 'x' || number [0] == 'X'))
number = number.Substring (1);
return int.Parse (number, NumberStyles.HexNumber);
}
public static int ParseDec (this string number) {
while (number.Length > 1 && number [0] == '0')
number = number.Substring (1);
return int.Parse (number);
}
}
+4
View File
@@ -0,0 +1,4 @@
Name: Mono.Web
Description: Mono ASP.NET extension classes
Version: 2.0.0.0
Libs: -r:@prefix@/lib/mono/gac/Mono.Web/2.0.0.0__0738eb9f132ed756/Mono.Web.dll
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
+27
View File
@@ -1,3 +1,30 @@
2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: the 'Message Layout' can now handle
self-referencing types. Fixes bug #529353.
2009-08-05 Atsushi Enomoto <[email protected]>
* web.config: add WCF assemblies as references at compilation.
* machine.config: add some missing WCF sections (new in 3.5).
2009-05-28 Atsushi Enomoto <[email protected]>
* machine.config: fix WCF diagnostics section name.
2009-03-31 Marek Habersack <[email protected]>
* DefaultWsdlHelpGenerator.aspx: the link element in <head> must
be created using Response.Write, as the code expression in the
href attribute is otherwise treated verbatim. This is the same as
with .NET. Fixes bug #490497
2009-03-27 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: disable the test form
when only Soap is supported.
Bug #342073 fixed.
2009-01-23 Atsushi Enomoto <[email protected]>
* web.config : added .svc handler.
+27 -9
View File
@@ -10,6 +10,7 @@
--%>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Xml.Serialization" %>
<%@ Import Namespace="System.Xml" %>
@@ -122,15 +123,20 @@ void BuildOperationInfo ()
// Protocols supported by the operation
CurrentOperationProtocols = "";
WebServiceProtocols testProtocols = 0;
ArrayList prots = FindServiceProtocols (CurrentOperationName);
for (int n=0; n<prots.Count; n++) {
string prot = (string) prots [n];
if (n != 0) CurrentOperationProtocols += ", ";
CurrentOperationProtocols += (string) prots[n];
CurrentOperationProtocols += prot;
if (prot == "HttpGet")
testProtocols |= WebServiceProtocols.HttpGet;
else if (prot == "HttpPost") {
testProtocols |= WebServiceProtocols.HttpPost;
if (Context.Request.IsLocal)
testProtocols |= WebServiceProtocols.HttpPostLocalhost;
}
}
WebServiceProtocols testProtocols = WebServiceProtocols.HttpGet | WebServiceProtocols.HttpPost;
if (Context.Request.IsLocal)
testProtocols |= WebServiceProtocols.HttpPostLocalhost;
CurrentOperationSupportsTest = (WebServicesSection.Current.EnabledProtocols & testProtocols) != 0;
// Operation format
@@ -1030,7 +1036,7 @@ public class HtmlSampleGenerator: SampleGenerator
if (elem == null) throw new InvalidOperationException ("Element not found: " + qname);
WriteElementSample (xtw, qname.Namespace, elem);
}
void WriteElementSample (XmlTextWriter xtw, string ns, XmlSchemaElement elem)
{
bool sharedAnnType = false;
@@ -1124,9 +1130,18 @@ public class HtmlSampleGenerator: SampleGenerator
{
WriteAttributes (xtw, stype.Attributes, stype.AnyAttribute);
}
Dictionary<XmlSchemaComplexType,int> recursed_types = new Dictionary<XmlSchemaComplexType,int> ();
void WriteComplexTypeElements (XmlTextWriter xtw, string ns, XmlSchemaComplexType stype)
{
int prev = 0;
if (recursed_types.ContainsKey (stype))
prev = recursed_types [stype];
if (prev > 1)
return;
recursed_types [stype] = ++prev;
if (stype.Particle != null)
WriteParticleComplexContent (xtw, ns, stype.Particle);
else
@@ -1136,6 +1151,8 @@ public class HtmlSampleGenerator: SampleGenerator
else if (stype.ContentModel is XmlSchemaComplexContent)
WriteComplexContent (xtw, ns, (XmlSchemaComplexContent)stype.ContentModel);
}
prev = recursed_types [stype];
recursed_types [stype] = --prev;
}
void WriteAttributes (XmlTextWriter xtw, XmlSchemaObjectCollection atts, XmlSchemaAnyAttribute anyat)
@@ -1516,8 +1533,9 @@ public class HtmlSampleGenerator: SampleGenerator
</script>
<head runat="server">
<link rel="alternate" type="text/xml" href="<%=Request.FilePath%>?disco"/>
<%
Response.Write ("<link rel=\"alternate\" type=\"text/xml\" href=\"" + Request.FilePath + "?disco\"/>");
%>
<title><%=WebServiceName%> Web Service</title>
<style type="text/css">
BODY { font-family: Arial; margin-left: 20px; margin-top: 20px; font-size: x-small}
+17 -1
View File
@@ -79,12 +79,13 @@
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostic" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<connectionStrings>
@@ -252,6 +253,21 @@
</providers>
</profile>
</system.web>
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="enableWebScript" type="System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttp" type="System.ServiceModel.Configuration.WebHttpElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</behaviorExtensions>
<bindingElementExtensions>
<add name="webMessageEncoding" type="System.ServiceModel.Configuration.WebMessageEncodingElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingElementExtensions>
<bindingExtensions>
<add name="webHttpBinding" type="System.ServiceModel.Configuration.WebHttpBindingCollectionElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingExtensions>
</extensions>
</system.serviceModel>
</configuration>
+4
View File
@@ -95,6 +95,10 @@
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
+9
View File
@@ -0,0 +1,9 @@
2009-08-06 Atsushi Enomoto <[email protected]>
* web.config: add WCF assemblies as references at compilation.
* machine.config: add some missing WCF sections (new in 3.5).
2009-07-24 Jb Evain <[email protected]>
* Initial import of the net_4_0 specific files.
+12
View File
@@ -0,0 +1,12 @@
SUBDIRS =
monodir = $(sysconfdir)/mono/4.0
EXTRA_DIST = machine.config \
web.config \
settings.map
mono_DATA = machine.config \
web.config \
settings.map
+274
View File
@@ -0,0 +1,274 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="configProtectedData" type="System.Configuration.ProtectedConfigurationSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="appSettings" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="connectionStrings" type="System.Configuration.ConnectionStringsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mscorlib" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="runtime" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="assemblyBinding" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="satelliteassemblies" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="startup" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="system.codedom" type="System.CodeDom.Compiler.CodeDomConfigurationHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.data" type="System.Data.Common.DbProviderFactoriesConfigurationHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.diagnostics" type="System.Diagnostics.DiagnosticsConfigurationHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.runtime.remoting" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<section name="system.windows.forms" type="System.Windows.Forms.WindowsFormsSection, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="windows" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="strongNames" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<sectionGroup name="system.web" type="System.Web.Configuration.SystemWebSectionGroup, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="anonymousIdentification" type="System.Web.Configuration.AnonymousIdentificationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authentication" type="System.Web.Configuration.AuthenticationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authorization" type="System.Web.Configuration.AuthorizationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="browserCaps" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="clientTarget" type="System.Web.Configuration.ClientTargetSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="compilation" type="System.Web.Configuration.CompilationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="customErrors" type="System.Web.Configuration.CustomErrorsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="deployment" type="System.Web.Configuration.DeploymentSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" />
<section name="globalization" type="System.Web.Configuration.GlobalizationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="healthMonitoring" type="System.Web.Configuration.HealthMonitoringSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="hostingEnvironment" type="System.Web.Configuration.HostingEnvironmentSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="httpCookies" type="System.Web.Configuration.HttpCookiesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpModules" type="System.Web.Configuration.HttpModulesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpRuntime" type="System.Web.Configuration.HttpRuntimeSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="identity" type="System.Web.Configuration.IdentitySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="machineKey" type="System.Web.Configuration.MachineKeySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="membership" type="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mobileControls" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="deviceFilters" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="pages" type="System.Web.Configuration.PagesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="processModel" type="System.Web.Configuration.ProcessModelSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" allowLocation="false" />
<section name="profile" type="System.Web.Configuration.ProfileSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="roleManager" type="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="securityPolicy" type="System.Web.Configuration.SecurityPolicySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="sessionPageState" type="System.Web.Configuration.SessionPageStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="sessionState" type="System.Web.Configuration.SessionStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="siteMap" type="System.Web.Configuration.SiteMapSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="trace" type="System.Web.Configuration.TraceSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="trust" type="System.Web.Configuration.TrustSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="urlMappings" type="System.Web.Configuration.UrlMappingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="webControls" type="System.Web.Configuration.WebControlsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webParts" type="System.Web.Configuration.WebPartsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webServices" type="System.Web.Services.Configuration.WebServicesSection, System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="xhtmlConformance" type="System.Web.Configuration.XhtmlConformanceSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<sectionGroup name="caching" type="System.Web.Configuration.SystemWebCachingSectionGroup, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="cache" type="System.Web.Configuration.CacheSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="outputCache" type="System.Web.Configuration.OutputCacheSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="outputCacheSettings" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="sqlCacheDependency" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
<section name="monoSettings" type="System.Web.Configuration.MonoSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</sectionGroup>
<sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="authenticationModules" type="System.Net.Configuration.AuthenticationModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="connectionManagement" type="System.Net.Configuration.ConnectionManagementSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="defaultProxy" type="System.Net.Configuration.DefaultProxySection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="mailSettings" type="System.Net.Configuration.MailSettingsSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="smtp" type="System.Net.Configuration.SmtpSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="requestCaching" type="System.Net.Configuration.RequestCachingSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="settings" type="System.Net.Configuration.SettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="webRequestModules" type="System.Net.Configuration.WebRequestModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.drawing" type="System.Configuration.NameValueSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.serviceModel" type="System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="behaviors" type="System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<connectionStrings>
<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
<add name="LocalSqliteServer" connectionString="Data Source=|DataDirectory|/aspnetdb.sqlite;version=3" providerName="Mono.Data.Sqlite"/>
</connectionStrings>
<configProtectedData defaultProvider="RsaProtectedConfigurationProvider">
<providers>
<add name="RsaProtectedConfigurationProvider" type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="" keyContainerName="MonoFrameworkConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false" />
<add name="DataProtectionConfigurationProvider" type="System.Configuration.DpapiProtectedConfigurationProvider, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="" useMachineProtection="true" keyEntropy="" />
</providers>
</configProtectedData>
<system.net>
<authenticationModules>
<add type="System.Net.BasicClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.DigestClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.NtlmClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</authenticationModules>
<webRequestModules>
<add prefix="http" type="System.Net.HttpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="https" type="System.Net.HttpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
<settings>
<ipv6 enabled="false"/>
</settings>
</system.net>
<system.runtime.remoting>
<application>
<channels>
<channel ref="http client" displayName="http client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="tcp client" displayName="tcp client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="ipc client" displayName="ipc client (delay loaded)" delayLoadAsClientChannel="true" />
</channels>
</application>
<channels>
<channel id="http" type="System.Runtime.Remoting.Channels.Http.HttpChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http client" type="System.Runtime.Remoting.Channels.Http.HttpClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http server" type="System.Runtime.Remoting.Channels.Http.HttpServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp" type="System.Runtime.Remoting.Channels.Tcp.TcpChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp client" type="System.Runtime.Remoting.Channels.Tcp.TcpClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp server" type="System.Runtime.Remoting.Channels.Tcp.TcpServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc" type="System.Runtime.Remoting.Channels.Ipc.IpcChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc client" type="System.Runtime.Remoting.Channels.Ipc.IpcClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc server" type="System.Runtime.Remoting.Channels.Ipc.IpcServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</channels>
<channelSinkProviders>
<clientProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapClientFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</clientProviders>
<serverProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapServerFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<provider id="wsdl" type="System.Runtime.Remoting.MetadataServices.SdlChannelSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</serverProviders>
</channelSinkProviders>
</system.runtime.remoting>
<appSettings>
<!--<add key="yourkey" value="your value" /> -->
<!--<remove key="a key defined higher in the hierarchy" /> -->
<!--<clear/> Removes all defined settings -->
</appSettings>
<system.diagnostics>
<trace autoflush="false" indentsize="4" />
</system.diagnostics>
<system.drawing>
</system.drawing>
<system.data>
<DbProviderFactories>
<add name="Mono Sqlite Data Provider" invariant="Mono.Data.SqliteClient"
description="Mono Framework Data Provider for SQLite (old version)"
type="Mono.Data.SqliteClient.SqliteFactory, Mono.Data.SqliteClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
<add name="Mono Sqlite Provider" invariant="Mono.Data.Sqlite"
description="Mono Framework Data Provider for SQLite (new version)"
type="Mono.Data.Sqlite.SqliteFactory, Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
<add name="Odbc Data Provider" invariant="System.Data.Odbc"
description=".Net Framework Data Provider for Odbc"
type="System.Data.Odbc.OdbcFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="OleDb Data Provider" invariant="System.Data.OleDb"
description=".Net Framework Data Provider for OleDb"
type="System.Data.OleDb.OleDbFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="OracleClient Data Provider" invariant="System.Data.OracleClient"
description=".Net Framework Data Provider for Oracle"
type="System.Data.OracleClient.OracleClientFactory, System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="SqlClient Data Provider" invariant="System.Data.SqlClient"
description=".Net Framework Data Provider for SqlServer"
type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="Sybase Data Provider" invariant="Mono.Data.SybaseClient"
description=".Net Framework Data Provider for Sybase"
type="Mono.Data.SybaseClient.SybaseClientFactory, Mono.Data.SybaseClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
</DbProviderFactories>
</system.data>
<mscorlib>
<cryptographySettings>
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
<strongNames>
<pubTokenMapping>
<!-- ECMA key -->
<map Token="b77a5c561934e089" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (final) key -->
<map Token="b03f5f7f11d50a3a" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (Web Service Enhancement) key -->
<map Token="31bf3856ad364e35" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- IBM (DB2 Data Provider) key -->
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
</pubTokenMapping>
</strongNames>
<system.web>
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpSoap12"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
<conformanceWarnings>
<add name="BasicProfile1_1"/>
</conformanceWarnings>
<wsdlHelpGenerator href="DefaultWsdlHelpGenerator.aspx" />
</webServices>
<membership>
<providers>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
<!-- <add name="AspNetSqlMembershipProvider" type="Mainsoft.Web.Security.GenericMembershipProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
</providers>
</membership>
<roleManager>
<providers>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" applicationName="/" connectionStringName="LocalSqlServer" />
<!-- <add name="AspNetSqlRoleProvider" type="Mainsoft.Web.Security.GenericRoleProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
</providers>
</roleManager>
<profile>
<providers>
<add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</profile>
</system.web>
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="enableWebScript" type="System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttp" type="System.ServiceModel.Configuration.WebHttpElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</behaviorExtensions>
<bindingElementExtensions>
<add name="webMessageEncoding" type="System.ServiceModel.Configuration.WebMessageEncodingElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingElementExtensions>
<bindingExtensions>
<add name="webHttpBinding" type="System.ServiceModel.Configuration.WebHttpBindingCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingExtensions>
</extensions>
</system.serviceModel>
</configuration>
+48
View File
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
any expression understood by the mapper to designate the section region to modify.
-->
<what value="providers">
<!-- 'what' can contain any number of occurrences of any three elements:
replace - replace the designated region
add - add a new entry to the region
clear - clear the region
remove - remove the designatedregion
The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the
mapper to peruse.
-->
<replace name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqliteMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqliteServer" />
</what>
</map>
<map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
any expression understood by the mapper to designate the section region to modify.
-->
<what value="providers">
<!-- 'what' can contain any number of occurrences of any three elements:
replace - replace the designated region
add - add a new entry to the region
clear - clear the region
remove - remove the designatedregion
The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the
mapper to peruse.
-->
<replace name="AspNetSqlRoleProvider"
type="System.Web.Security.SqliteRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqliteServer" />
</what>
</map>
</settingsMap>
+154
View File
@@ -0,0 +1,154 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<monoSettings>
<compilersCompatibility>
<compiler language="c#;cs;csharp" extension=".cs" compilerOptions="/nowarn:0169"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilersCompatibility>
</monoSettings>
<authorization>
<allow users="*" />
</authorization>
<httpHandlers>
<add verb="*" path="Trace.axd" type="System.Web.Handlers.TraceHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="GET" path="WebResource.axd" type="System.Web.Handlers.AssemblyResourceLoader, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.master" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.resources" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.skin" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.browser" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.sitemap" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.webinfo" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.resx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.Config" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.cs" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.vb" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.csproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.vbproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.licx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.dll" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.rem" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.soap" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpHandlers>
<httpModules>
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="RoleManager" type="System.Web.Security.RoleManagerModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpModules>
<authentication mode="Forms">
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
<credentials passwordFormat="Clear">
<!--<user name="gonzalo" password="gonz"/>-->
</credentials>
</forms>
</authentication>
<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
<globalization requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"/>
<!--
culture="en-US"
uiculture="en-US" />
-->
<sessionState mode="InProc" />
<pages>
<namespaces>
<add namespace="System" />
<add namespace="System.Collections" />
<add namespace="System.Collections.Specialized" />
<add namespace="System.Configuration" />
<add namespace="System.Text" />
<add namespace="System.Text.RegularExpressions" />
<add namespace="System.Web" />
<add namespace="System.Web.Caching" />
<add namespace="System.Web.SessionState" />
<add namespace="System.Web.Security" />
<add namespace="System.Web.Profile" />
<add namespace="System.Web.UI" />
<add namespace="System.Web.UI.WebControls" />
<!-- <add namespace="System.Web.UI.WebControls.WebParts" /> -->
<add namespace="System.Web.UI.HtmlControls" />
</namespaces>
</pages>
<webControls clientScriptsLocation="/web_scripts" />
<compilation debug="false" defaultLanguage="c#" explicit="true" strict="false" >
<assemblies>
<!--<add assembly="mscorlib" /> -->
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
<expressionBuilders>
<add expressionPrefix="Resources"
type="System.Web.Compilation.ResourceExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="ConnectionStrings"
type="System.Web.Compilation.ConnectionStringsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="AppSettings"
type="System.Web.Compilation.AppSettingsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</expressionBuilders>
<buildProviders>
<add extension=".aspx" type="System.Web.Compilation.PageBuildProvider" />
<add extension=".ascx" type="System.Web.Compilation.UserControlBuildProvider" />
<add extension=".master" type="System.Web.Compilation.MasterPageBuildProvider" />
<add extension=".asmx" type="System.Web.Compilation.WebServiceBuildProvider" />
<add extension=".ashx" type="System.Web.Compilation.WebHandlerBuildProvider" />
<add extension=".soap" type="System.Web.Compilation.WebServiceBuildProvider" />
<add extension=".resx" type="System.Web.Compilation.ResXBuildProvider" />
<add extension=".resources" type="System.Web.Compilation.ResourcesBuildProvider" />
<add extension=".wsdl" type="System.Web.Compilation.WsdlBuildProvider" />
<add extension=".xsd" type="System.Web.Compilation.XsdBuildProvider" />
<add extension=".js" type="System.Web.Compilation.ForceCopyBuildProvider" />
<add extension=".lic" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".licx" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".exclude" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" />
</buildProviders>
</compilation>
<httpRuntime executionTimeout="110"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="5000" />
<clientTarget>
<add alias="ie5" userAgent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)" />
<add alias="ie4" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="uplevel" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="downlevel" userAgent="Unknown" />
</clientTarget>
<siteMap>
<providers>
<add name="AspNetXmlSiteMapProvider"
description="Default site map provider that reads in .sitemap xml files."
type="System.Web.XmlSiteMapProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
siteMapFile="Web.sitemap" />
</providers>
</siteMap>
</system.web>
</configuration>
-7
View File
@@ -1,7 +0,0 @@
assemblies_dir=@prefix@/lib/mono
Libraries=${assemblies_dir}/2.1/smcs.exe
Name: Mono Internal -- Do not use.
Description: Mono Internal Libraries -- Do not use
Version: @VERSION@
Libs: -r:smcs.exe
+4
View File
@@ -0,0 +1,4 @@
Name: System.Web.Mvc
Description: System.Web.Mvc - ASP.NET MVC
Version: 1.0.0.0
Libs: -r:@prefix@/lib/mono/gac/System.Web.Mvc/1.0.0.0__31bf3856ad364e35/System.Web.Mvc.dll
+10
View File
@@ -0,0 +1,10 @@
/convert.exe*
/html
/Makefile
/Makefile.in
/monoapi.tree
/monoapi.zip
/mono-file-formats.tree
/mono-file-formats.zip
/mono-tools.tree
/mono-tools.zip
+1 -2
View File
@@ -39,7 +39,6 @@ EXTRA_DIST = \
local-regalloc.txt \
magic.diff \
mini-doc.txt \
mini-porting.txt \
mono-api-metadata.html \
mono-file-formats.config\
mono-file-formats.source\
@@ -102,5 +101,5 @@ $(srcdir)/deploy/.stamp: convert.exe Makefile.am
extract: $(srcdir)/deploy/.stamp
convert.exe: convert.cs AgilityPack.dll
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) convert.exe
cd $(srcdir) && $(MAKE) PROFILE=net_1_1 -f docs.make topdir=$(mcs_topdir_from_srcdir) convert.exe
+3
View File
@@ -0,0 +1,3 @@
/.stamp
/*.html
/api-style.css
-223
View File
@@ -1,223 +0,0 @@
-*- outline -*-
Generic code sharing
====================
* Porting
** Generic class init trampoline
The generic class init trampoline is very similar to the class init
trampoline, with the exception that the VTable of the class to be
inited is passed in a register, MONO_ARCH_VTABLE_REG. That register
can be the same as the IMT register.
The call to the generic class init trampoline is never patched because
the VTable is not constant - it depends on the type arguments of the
class/method doing the call to the trampoline. For that reason, the
trampoline needs a fast path for the case that the class is already
inited, i.e. the trampoline needs to check the initialized bit of the
MonoVTable and immediately return if it is set. See tramp-x86.c for
how to portably figure out the number of the bit in the bit-field that
needs to be checked.
Since the MONO_ARCH_VTABLE_REG is needed by the generic class init
trampoline function (in mini-trampolines.c) it needs to be saved by
the generic trampoline code in the register save block which is passed
to the trampoline. This also applies to the RGCTX fetch trampoline
(see below).
Like the normal class init trampoline, the result of the generic class
init trampoline function is not a pointer to code that needs to be
jumped to. Instead, just like for the class init trampoline, the
generic trampoline code must return to the caller instead of jumping
to the returned value. The same applies for the RGCTX fetch
trampoline (see below).
** RGCTX register
Generic shared code needs access to type information. This
information is contained in a RGCTX for non-generic methods and in an
MRGCTX for generic methods. It is passed in one of several ways,
depending on the type of the called method:
1. Non-generic non-static methods of reference types have access to
the RGCTX via the "this" argument (this->vtable->rgctx).
2. Non-generic static methods of reference types and non-generic
methods of value types need to be passed a pointer to the
caller's class's VTable in the MONO_ARCH_RGCTX_REG register.
3. Generic methods need to be passed a pointer to the MRGCTX in the
MONO_ARCH_RGCTX_REG register.
The MONO_ARCH_RGCTX_REG must not be clobbered by trampolines.
MONO_ARCH_RGCTX_REG can be the same as the IMT register for now, but
this might change in the future when we implement virtual generic
method calls (more) efficiently.
This register lifetime starts at the call site that loads it and
ends in the callee prologue when it is either discarded or stored
into a local variable.
It's better to avoid registers used for argument passing for the RGCTX
as it would make the code dealing with calling conventions code a lot
harder.
** Method prologue
Generic shared code that have a RGCTX receive it in RGCTX_REG. There
must be a check in mono_arch_emit_prolog for MonoCompile::rgctx_var
and if set store it. See mini-x86.c for reference.
** Dealing with types
Types passed to arch functions might be type parameters
(MONO_TYPE_(M)VAR) if the MonoGenericSharingContext* argument is
non-NULL. For example, an argument or return type in a method passed
to mono_arch_find_this_argument() could be a MONO_TYPE_VAR. To guard
for that case use mini_get_basic_type_from_generic() on the type. See
get_call_info() in mini-x86.c, for example.
** (M)RGCTX lazy fetch trampoline
The purpose of the lazy fetch trampoline is to fetch a slot from an
(M)RGCTX which might not be inited, yet. In the latter case, it needs
to go make a transition to unmanaged code to fill the slot. This is
the layout of a RGCTX:
+---------------------------------+
| next | slot 0 | slot 1 | slot 2 |
+--|------------------------------+
|
+-----+
| +---------------------------------
+->| next | slot 3 | slot 4 | slot 5 ....
+--|------------------------------
|
+-----+
| +------------------------------------
+->| next | slot 10 | slot 11 | slot 12 ....
+--|---------------------------------
.
.
.
For fetching a slot from a RGCTX the trampoline is passed a pointer
(as a normal integer argument) to the VTable. From there it has to
fetch the pointer to the RGCTX, which might be null. Then it has to
traverse the correct number of "next" links, each of which might be
NULL. Arriving at the right array it needs to fetch the slot, which
might also be NULL. If any of the NULL cases, the trampoline must
transition to unmanaged code to potentially setup the RGCTX and fill
the slot. Here is pseudo-code for fetching slot 11:
; vtable ptr in r1
; fetch RGCTX array 0
r2 = *(r1 + offsetof(MonoVTable, runtime_generic_context))
if r2 == NULL goto unmanaged
; fetch RGCTX array 1
r2 = *r2
if r2 == NULL goto unmanaged
; fetch RGCTX array 2
r2 = *r2
if r2 == NULL goto unmanaged
; fetch slot 11
r2 = *(r2 + 2 * sizeof (gpointer))
if r2 == NULL goto unmanaged
return r2
unmanaged:
jump unmanaged_fetch_code
The number of slots in the arrays must be obtained from the function
mono_class_rgctx_get_array_size().
The MRGCTX case is different in two aspects. First, the trampoline is
not passed a pointer to a VTable, but a pointer directly to the
MRGCTX, which is guaranteed not to be NULL (any of the next pointers
and any of the slots can be NULL, though). Second, the layout of the
first array is slightly different, in that the first two slots are
occupied by a pointers to the class's VTable and to the method's
method_inst. The next pointer is in the third slot and the first
actual slot, "slot 0", in the fourth:
+--------------------------------------------------------+
| vtable | method_inst | next | slot 0 | slot 1 | slot 2 |
+-------------------------|------------------------------+
.
.
All other arrays have the same layout as the RGCTX ones, except
possibly for their length.
The function to create the trampoline,
mono_arch_create_rgctx_lazy_fetch_trampoline(), gets passed an encoded
slot number. Use the macro MONO_RGCTX_SLOT_IS_MRGCTX to query whether
a trampoline for an MRGCTX is needed, as opposed to one for a RGCTX.
Use MONO_RGCTX_SLOT_INDEX to get the index of the slot (like 2 for
"slot 2" as above).
The unmanaged fetch code is yet another trampoline created via
mono_arch_create_specific_trampoline(), of type
MONO_TRAMPOLINE_RGCTX_LAZY_FETCH. It's given the slot number as the
trampoline argument. In addition, the pointer to the VTable/MRGCTX is
passed in MONO_ARCH_VTABLE_REG (like the VTable to the generic class
init trampoline - see above).
Like the class init and generic class init trampolines, the RGCTX
fetch trampoline code doesn't return code that must be jumped to, so,
like for those trampolines (see above), the generic trampoline code
must do a normal return instead.
* Getting generics information about a stack frame
If a method is compiled with generic sharing, its MonoJitInfo has
has_generic_jit_info set. In that case, the MonoJitInfo is followed
(after the MonoJitExceptionInfo array) by a MonoGenericJitInfo.
The MonoGenericJitInfo contains information about the location of the
this/vtable/MRGCTX variable, if the has_this flag is set. If that is
the case, there are two possibilities:
1. this_in_reg is set. this_reg is the number of the register where
the variable is stored.
2. this_in_reg is not set. The variable is stored at offset
this_offset from the address in the register with number
this_reg.
The variable can either point to the "this" object, to a vtable or to
an MRGCTX:
1. If the method is a non-generic non-static method of a reference
type, the variable points to the "this" object.
2. If the method is a non-generic static method or a non-generic
method of a value type, the variable points to the vtable of the
class.
3. If the method is a generic method, the variable points to the
MRGCTX of the method.
* Layout of the MRGCTX
The MRGCTX is a structure that starts with
MonoMethodRuntimeGenericContext, which contains a pointer to the
vtable of the class and a pointer to the MonoGenericInst with the type
arguments for the method.
* Blog posts about generic code sharing
http://schani.wordpress.com/2007/09/22/generics-sharing-in-mono/
http://schani.wordpress.com/2007/10/12/the-trouble-with-shared-generics/
http://schani.wordpress.com/2007/10/15/a-quick-generics-sharing-update/
http://schani.wordpress.com/2008/01/29/other-types/
http://schani.wordpress.com/2008/02/25/generic-types-are-lazy/
http://schani.wordpress.com/2008/03/10/sharing-static-methods/
http://schani.wordpress.com/2008/04/22/sharing-everything-and-saving-memory/
http://schani.wordpress.com/2008/06/02/sharing-generic-methods/
http://schani.wordpress.com/2008/06/27/another-generic-sharing-update/
-531
View File
@@ -1,531 +0,0 @@
Mono JIT porting guide.
Paolo Molaro ([email protected])
* Introduction
This documents describes the process of porting the mono JIT
to a new CPU architecture. The new mono JIT has been designed
to make porting easier though at the same time enable the port
to take full advantage from the new architecture features and
instructions. Knowledge of the mini architecture (described in
the mini-doc.txt file) is a requirement for understanding this
guide, as well as an earlier document about porting the mono
interpreter (available on the web site).
There are six main areas that a port needs to implement to
have a fully-functional JIT for a given architecture:
1) instruction selection
2) native code emission
3) call conventions and register allocation
4) method trampolines
5) exception handling
6) minor helper methods
To take advantage of some not-so-common processor features
(for example conditional execution of instructions as may be
found on ARM or ia64), it may be needed to develop an
high-level optimization, but doing so is not a requirement for
getting the JIT to work.
We'll see in more details each of the steps required, note,
though, that a new port may just as well start from a
cut&paste of an existing port to a similar architecture (for
example from x86 to amd64, or from powerpc to sparc).
The architecture specific code is split from the rest of the
JIT, for example the x86 specific code and data is all
included in the following files in the distribution:
mini-x86.h mini-x86.c
inssel-x86.brg
cpu-pentium.md
tramp-x86.c
exceptions-x86.c
I suggest a similar split for other architectures as well.
Note that this document is still incomplete: some sections are
only sketched and some are missing, but the important info to
get a port going is already described.
* Architecture-specific instructions and instruction selection.
The JIT already provides a set of instructions that can be
easily mapped to a great variety of different processor
instructions. Sometimes it may be necessary or advisable to
add a new instruction that represent more closely an
instruction in the architecture. Note that a mini instruction
can be used to represent also a short sequence of CPU
low-level instructions, but note that each instruction
represents the minimum amount of code the instruction
scheduler will handle (i.e., the scheduler won't schedule the
instructions that compose the low-level sequence as individual
instructions, but just the whole sequence, as an indivisible
block).
New instructions are created by adding a line in the
mini-ops.h file, assigning an opcode and a name. To specify
the input and output for the instruction, there are two
different places, depending on the context in which the
instruction gets used.
If the instruction is used in the tree representation, the
input and output types are defined by the BURG rules in the
*.brg files (the usual non-terminals are 'reg' to represent a
normal register, 'lreg' to represent a register or two that
hold a 64 bit value, freg for a floating point register).
If an instruction is used as a low-level CPU instruction, the
info is specified in a machine description file. The
description file is processed by the genmdesc program to
provide a data structure that can be easily used from C code
to query the needed info about the instruction.
As an example, let's consider the add instruction for both x86
and ppc:
x86 version:
add: dest:i src1:i src2:i len:2 clob:1
ppc version:
add: dest:i src1:i src2:i len:4
Note that the instruction takes two input integer registers on
both CPU, but on x86 the first source register is clobbered
(clob:1) and the length in bytes of the instruction differs.
Note that integer adds and floating point adds use different
opcodes, unlike the IL language (64 bit add is done with two
instructions on 32 bit architectures, using a add that sets
the carry and an add with carry).
A specific CPU port may assign any meaning to the clob field
for an instruction since the value will be processed in an
arch-specific file anyway.
See the top of the existing cpu-pentium.md file for more info
on other fields: the info may or may not be applicable to a
different CPU, in this latter case the info can be ignored.
The code in mini.c together with the BURG rules in inssel.brg,
inssel-float.brg and inssel-long32.brg provides general
purpose mappings from the tree representation to a set of
instructions that should be easily implemented in any
architecture. To allow for additional arch-specific
functionality, an arch-specific BURG file can be used: in this
file arch-specific instructions can be selected that provide
better performance than the general instructions or that
provide functionality that is needed by the JIT but that
cannot be expressed in a general enough way.
As an example, x86 has the special instruction "push" to make
it easier to implement the default call convention (passing
arguments on the stack): almost all the other architectures
don't have such an instruction (and don't need it anyway), so
we added a special rule in the inssel-x86.brg file for it.
So, one of the first things needed in a port is to write a
cpu-$(arch).md machine description file and fill it with the
needed info. As a start, only a few instructions can be
specified, like the ones required to do simple integer
operations. The default rules of the instruction selector will
emit the common instructions and so we're ready to go for the
next step in porting the JIT.
*) Native code emission
Since the first step in porting mono to a new CPU is to port
the interpreter, there should be already a file that allows
the emission of binary native code in a buffer for the
architecture. This file should be placed in the
mono/arch/$(arch)/
directory.
The bulk of the code emission happens in the mini-$(arch).c
file, in a function called mono_arch_output_basic_block
(). This function takes a basic block, walks the list of
instructions in the block and emits the binary code for each.
Optionally a peephole optimization pass is done on the basic
block, but this can be left for later, when the port actually
works.
This function is very simple, there is just a big switch on
the instruction opcode and in the corresponding case the
functions or macros to emit the binary native code are
used. Note that in this function the lengths of the
instructions are used to determine if the buffer for the code
needs enlarging.
To complete the code emission for a method, a few other
functions need implementing as well:
mono_arch_emit_prolog ()
mono_arch_emit_epilog ()
mono_arch_patch_code ()
mono_arch_emit_prolog () will emit the code to setup the stack
frame for a method, optionally call the callbacks used in
profiling and tracing, and move the arguments to their home
location (in a caller-save register if the variable was
allocated to one, or in a stack location if the argument was
passed in a volatile register and wasn't allocated a
non-volatile one). caller-save registers used by the function
are saved in the prolog as well.
mono_arch_emit_epilog () will emit the code needed to return
from the function, optionally calling the profiling or tracing
callbacks. At this point the basic blocks or the code that was
moved out of the normal flow for the function can be emitted
as well (this is usually done to provide better info for the
static branch predictor). In the epilog, caller-save
registers are restored if they were used.
Note that, to help exception handling and stack unwinding,
when there is a transition from managed to unmanaged code,
some special processing needs to be done (basically, saving
all the registers and setting up the links in the Last Managed
Frame structure).
When the epilog has been emitted, the upper level code
arranges for the buffer of memory that contains the native
code to be copied in an area of executable memory and at this
point, instructions that use relative addressing need to be
patched to have the right offsets: this work is done by
mono_arch_patch_code ().
* Call conventions and register allocation
To account for the differences in the call conventions, a few functions need to
be implemented.
mono_arch_allocate_vars () assigns to both arguments and local
variables the offset relative to the frame register where they
are stored, dead variables are simply discarded. The total
amount of stack needed is calculated.
mono_arch_call_opcode () is the function that more closely
deals with the call convention on a given system. For each
argument to a function call, an instruction is created that
actually puts the argument where needed, be it the stack or a
specific register. This function can also re-arrange th order
of evaluation when multiple arguments are involved if needed
(like, on x86 arguments are pushed on the stack in reverse
order). The function needs to carefully take into accounts
platform specific issues, like how structures are returned as
well as the differences in size and/or alignment of managed
and corresponding unmanaged structures.
The other chunk of code that needs to deal with the call
convention and other specifics of a CPU, is the local register
allocator, implemented in a function named
mono_arch_local_regalloc (). The local allocator deals with a
basic block at a time and basically just allocates registers
for temporary values during expression evaluation, spilling
and unspilling as necessary.
The local allocator needs to take into account clobbering
information, both during simple instructions and during
function calls and it needs to deal with other
architecture-specific weirdnesses, like instructions that take
inputs only in specific registers or output only is some.
Some effort will be put later in moving most of the local
register allocator to a common file so that the code can be
shared more for similar, risc-like CPUs. The register
allocator does a first pass on the instructions in a block,
collecting liveness information and in a backward pass on the
same list performs the actual register allocation, inserting
the instructions needed to spill values, if necessary.
The cross-platform local register allocator is now implemented
and it is documented in the jit-regalloc file.
When this part of code is implemented, some testing can be
done with the generated code for the new architecture. Most
helpful is the use of the --regression command line switch to
run the regression tests (basic.cs, for example).
Note that the JIT will try to initialize the runtime, but it
may not be able yet to compile and execute complex code:
commenting most of the code in the mini_init() function in
mini.c is needed to let the JIT just compile the regression
tests. Also, using multiple -v switches on the command line
makes the JIT dump an increasing amount of information during
compilation.
Values loaded into registers need to be extened as needed by
the ECMA specs:
*) integers smaller than 4 bytes are extended to int32 values
*) 32 bit floats are extended to double precision (in particular
this means that currently all the floating point operations operate
on doubles)
* Method trampolines
To get better startup performance, the JIT actually compiles a
method only when needed. To achieve this, when a call to a
method is compiled, we actually emit a call to a magic
trampoline. The magic trampoline is a function written in
assembly that invokes the compiler to compile the given method
and jumps to the newly compiled code, ensuring the arguments
it received are passed correctly to the actual method.
Before jumping to the new code, though, the magic trampoline
takes care of patching the call site so that next time the
call will go directly to the method instead of the
trampoline. How does this all work?
mono_arch_create_jit_trampoline () creates a small function
that just preserves the arguments passed to it and adds an
additional argument (the method to compile) before calling the
generic trampoline. This small function is called the specific
trampoline, because it is method-specific (the method to
compile is hard-code in the instruction stream).
The generic trampoline saves all the arguments that could get
clobbered and calls a C function that will do two things:
*) actually call the JIT to compile the method
*) identify the calling code so that it can be patched to call directly
the actual method
If the 'this' argument to a method is a boxed valuetype that
is passed to a method that expects just a pointer to the data,
an additional unboxing trampoline will need to be inserted as
well.
* Exception handling
Exception handling is likely the most difficult part of the
port, as it needs to deal with unwinding (both managed and
unmanaged code) and calling catch and filter blocks. It also
needs to deal with signals, because mono takes advantage of
the MMU in the CPU and of the operation system to handle
dereferences of the NULL pointer. Some of the function needed
to implement the mechanisms are:
mono_arch_get_throw_exception () returns a function that takes
an exception object and invokes an arch-specific function that
will enter the exception processing. To do so, all the
relevant registers need to be saved and passed on.
mono_arch_handle_exception () this function takes the
exception thrown and a context that describes the state of the
CPU at the time the exception was thrown. The function needs
to implement the exception handling mechanism, so it makes a
search for an handler for the exception and if none is found,
it follows the unhandled exception path (that can print a
trace and exit or just abort the current thread). The
difficulty here is to unwind the stack correctly, by restoring
the register state at each call site in the call chain,
calling finally, filters and handler blocks while doing so.
As part of exception handling a couple of internal calls need
to be implemented as well.
ves_icall_get_frame_info () returns info about a specific
frame.
mono_jit_walk_stack () walks the stack and calls a callback with info for
each frame found.
ves_icall_get_trace () return an array of StackFrame objects.
** Code generation for filter/finally handlers
Filter and finally handlers are called from 2 different locations:
1.) from within the method containing the exception clauses
2.) from the stack unwinding code
To make this possible we implement them like subroutines,
ending with a "return" statement. The subroutine does not save
the base pointer, because we need access to the local
variables of the enclosing method. Its is possible that
instructions inside those handlers modify the stack pointer,
thus we save the stack pointer at the start of the handler,
and restore it at the end. We have to use a "call" instruction
to execute such finally handlers.
The MIR code for filter and finally handlers looks like:
OP_START_HANDLER
...
OP_END_FINALLY | OP_ENDFILTER(reg)
OP_START_HANDLER: should save the stack pointer somewhere
OP_END_FINALLY: restores the stack pointers and returns.
OP_ENDFILTER (reg): restores the stack pointers and returns the value in "reg".
** Calling finally/filter handlers
There is a special opcode to call those handler, its called
OP_CALL_HANDLER. It simple emits a call instruction.
Its a bit more complex to call handler from outside (in the
stack unwinding code), because we have to restore the whole
context of the method first. After that we simply emit a call
instruction to invoke the handler. Its usually possible to use
the same code to call filter and finally handlers (see
arch_get_call_filter).
** Calling catch handlers
Catch handlers are always called from the stack unwinding
code. Unlike finally clauses or filters, catch handler never
return. Instead we simply restore the whole context, and
restart execution at the catch handler.
** Passing Exception objects to catch handlers and filters.
We use a local variable to store exception objects. The stack
unwinding code must store the exception object into this
variable before calling catch handler or filter.
* Minor helper methods
A few minor helper methods are referenced from the arch-independent code.
Some of them are:
*) mono_arch_cpu_optimizations ()
This function returns a mask of optimizations that
should be enabled for the current CPU and a mask of
optimizations that should be excluded, instead.
*) mono_arch_regname ()
Returns the name for a numeric register.
*) mono_arch_get_allocatable_int_vars ()
Returns a list of variables that can be allocated to
the integer registers in the current architecture.
*) mono_arch_get_global_int_regs ()
Returns a list of caller-save registers that can be
used to allocate variables in the current method.
*) mono_arch_instrument_mem_needs ()
*) mono_arch_instrument_prolog ()
*) mono_arch_instrument_epilog ()
Functions needed to implement the profiling interface.
* Testing the port
The JIT has a set of regression tests in *.cs files inside the
mini directory.
The usual method of testing a port is by compiling these tests on
another machine with a working runtime by typing 'make rcheck',
then copying TestDriver.dll and *.exe to the mini directory. The
tests can be run by typing:
./mono --regression <exe file name>
The suggested order for working through these tests is the
following:
- basic.exe
- basic-long.exe
- basic-float.exe
- basic-calls.exe
- objects.exe
- arrays.exe
- exceptions.exe
- iltests.exe
- generics.exe
* Writing regression tests
Regression tests for the JIT should be written for any bug
found in the JIT in one of the *.cs files in the mini
directory. Eventually all the operations of the JIT should be
tested (including the ones that get selected only when some
specific optimization is enabled).
* Platform specific optimizations
An example of a platform-specific optimization is the peephole
optimization: we look at a small window of code at a time and
we replace one or more instructions with others that perform
better for the given architecture or CPU.
* 64 bit support tips, by Zoltan Varga ([email protected])
For a 64-bit port of the Mono runtime, you will typically do
the following:
* need to use inssel-long.brg instead of
inssel-long32.brg.
* need to implement lots of new opcodes:
OP_I<OP> is 32 bit op
OP_L<OP> and CEE_<OP> are 64 bit ops
The 64 bit version of an existing port might share the code
with the 32 bit port (for example SPARC/SPARV9), or it might
be separate (x86/AMD64).
That will depend on the similarities of the two instructions
sets/ABIs etc.
The runtime and most parts of the JIT are 64 bit clean
at this point, so the only parts which require changing are
the arch dependent files.
* Function descriptors
Some ABIs, like those for IA64 and PPC64, don't use direct
function pointers, but so called function descriptors. A
function descriptor is a short data structure which contains
at least a pointer to the code of the function and a pointer
to a GOT/TOC, which needs to be loaded into a specific
register prior to jumping to the function. Global variables
and large constants are accessed through that register.
Mono does not need function descriptors for the JITted code,
but we need to handle them when calling unmanaged code and we
need to create them when passing managed code to unmanaged
code.
mono_create_ftnptr() creates a function descriptor for a piece
of generated code within a specific domain.
mono_get_addr_from_ftnptr() returns the pointer to the native
code in a function descriptor. Never use this function to
generate a jump to a function without loading the GOT/TOC
register unless the function descriptor was created by
mono_create_ftnptr().
See the sources for IA64 and PPC64 on when to create and when
to dereference function descriptors. On PPC64 function
descriptors for various generated helper functions (in
exceptions-ppc.c and tramp-ppc.c) are generated in front of
the code they refer to (see ppc_create_pre_code_ftnptr()). On
IA64 they are created separately.
* Emulated opcodes
Mini has code for emulating quite a few opcodes, most notably
operations on longs, int/float conversions and atomic
operations. If an architecture wishes such an opcode to be
emulated, mini produces icalls instead of those opcodes. This
should only be considered when the operation cannot be
implemented efficiently and thus the overhead occured by the
icall is not relatively large. Emulation of operations is
controlled by #defines in the arch header, but the naming is
not consistent. They usually start with MONO_ARCH_EMULATE_,
MONO_ARCH_NO_EMULATE_ and MONO_ARCH_HAVE_.
* Generic code sharing
Generic code sharing is optional. See the file
"generic-sharing" for information on how to support it on an
architecture.
+21
View File
@@ -0,0 +1,21 @@
/
/depcomp
/config.guess
/config.sub
/ltmain.sh
/eglib-*.tar.gz
/missing
/install-sh
/compile
/Makefile
/Makefile.in
/stamp-h1
/config.h.in
/libtool
/autom4te.cache
/aclocal.m4
/config.log
/configure
/config.h
/config.status
/INSTALL
+8
View File
@@ -0,0 +1,8 @@
set(SUBDIRS src test)
autoheader("config.h" null)
foreach(subdir ${SUBDIRS})
add_subdirectory(${subdir})
endforeach()
+48
View File
@@ -1,3 +1,51 @@
2009-06-20 Zoltan Varga <[email protected]>
* src/glib.h: Add GUINT32_FROM/TO_BE macros.
2009-06-09 Jonathan Chambers <[email protected]>
* CMakeLists.txt: Add start of CMake build.
* src/CMakeLists.txt: Add start of CMake build.
Contribution is licensed as MIT/X11.
2009-06-02 Bill Holmes <[email protected]>
* src/gpath.c (g_find_program_in_path): While searching on Windows
also try additional suffixes .exe, .cmd, .bat, and.com.
Contributed under MIT/X11 license.
2009-05-27 Geoff Norton <[email protected]>
* src/gfile-posix.c: Fix g_get_current_dir on amd64
2009-04-22 Jeffrey Stedfast <[email protected]>
* src/gtimer-win32.c (g_timer_elapsed): Avoid re-querying freq by
just saving it in a static variable. Also modified microseconds
calculation to avoid overflow.
2009-04-05 Miguel de Icaza <[email protected]>
* src/gpath.c: Avoid situations where we add the separator if one
of the elements is the separator.
2009-04-02 Miguel de Icaza <[email protected]>
* src/gpath.c: If the first element is NULL, return an empty
string.
2009-02-19 Gonzalo Paniagua Javier <[email protected]>
* src/gstr.c: use memset in g_strnfill.
2009-01-19 Bill Holmes <[email protected]>
* src/gstr.c (g_strnfill): Fixing a warning for MSVC.
Contributed under MIT/X11 license.
2009-02-05 Miguel de Icaza <[email protected]>
* src/gstr.c: Add g_strnfill
+32 -8
View File
@@ -7,8 +7,7 @@ AM_MAINTAINER_MODE
AC_PROG_CC
AM_PROG_LIBTOOL
CFLAGS='-g -O0 -D_GNU_SOURCE'
AC_SUBST(CFLAGS)
CFLAGS="$CFLAGS -g -O0 -D_GNU_SOURCE"
GNUC_PRETTY=
GNUC_UNUSED=
BREAKPOINT="G_STMT_START { raise (SIGTRAP); } G_STMT_END"
@@ -44,10 +43,11 @@ esac
case $target in
arm*-darwin*)
CFLAGS="$CLAFGS -U_FORTIFY_SOURCE"
CFLAGS="$CFLAGS -U_FORTIFY_SOURCE"
;;
esac
AC_SUBST(CFLAGS)
AC_SUBST(PATHSEP)
AC_SUBST(SEARCHSEP)
AC_SUBST(OS)
@@ -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 strtok_r)
AC_CHECK_FUNCS(strndup strlcpy getpwent_r strtok_r rewinddir)
AC_CHECK_LIB(iconv, libiconv_open, LIBS="$LIBS -liconv")
old_ldflags="${LDFLAGS}"
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
@@ -84,10 +84,34 @@ else
G_GUINT64_FORMAT='"llu"'
fi
PKG_CHECK_MODULES(GLIB, glib-2.0,
[AM_CONDITIONAL(HAVE_GLIB, test x = x)],
[AM_CONDITIONAL(HAVE_GLIB, test x = y)]
)
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
pkg_config_path=
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Change pkg-config dir to custom dir],
if test x$with_crosspkgdir = "x"; then
if test -s $PKG_CONFIG_PATH; then
pkg_config_path=$PKG_CONFIG_PATH
fi
else
pkg_config_path=$with_crosspkgdir
PKG_CONFIG_PATH=$pkg_config_path
export PKG_CONFIG_PATH
fi
)
dnl
dnl No, you can not replace the call below with a pkg.m4 macro
dnl
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
have_glib=true;
else
have_glib=false;
fi
AM_CONDITIONAL(HAVE_GLIB, $have_glib)
AC_SUBST(GPOINTER_TO_INT)
AC_SUBST(GPOINTER_TO_UINT)
AC_SUBST(GINT_TO_POINTER)
+6
View File
@@ -0,0 +1,6 @@
/
/Makefile
/Makefile.in
/.libs
/.deps
/eglib-config.h
+49
View File
@@ -0,0 +1,49 @@
set(win_files
gdate-win32.c gdir-win32.c gfile-win32.c gmisc-win32.c
gmodule-win32.c gtimer-win32.c)
set(unix_files
gdate-unix.c gdir-unix.c gfile-unix.c gmisc-unix.c
gmodule-unix.c gtimer-unix.c)
if (MSVC)
set(os_files ${win_files})
else(MSVC)
set(os_files ${unix_files})
endif(MSVC)
set(libeglib_la_SOURCES
${os_files}
eglib-config.h
sort.frag.h
glib.h
garray.c
gerror.c
ghashtable.c
gmem.c
gmodule.h
goutput.c
gstr.c
gslist.c
gstring.c
gptrarray.c
glist.c
gqueue.c
gpath.c
gshell.c
gspawn.c
gfile.c
gfile-posix.c
gpattern.c
gmarkup.c
gutf8.c
gunicode.c
unicode-data.h)
set(EXTRA_DIST eglib-config.h.in eglib-config.hw ${win_files} ${unix_files})
INCLUDE_DIRECTORIES(../ ${CMAKE_CURRENT_SOURCE_DIR})
ADD_DEFINITIONS(${CFLAGS} -D_FORTIFY_SOURCE=2)
ADD_LIBRARY(eglib-static STATIC ${libeglib_la_SOURCES})
ADD_LIBRARY(eglib SHARED ${libeglib_la_SOURCES})
+14
View File
@@ -36,6 +36,9 @@
struct _GDir {
DIR *dir;
#ifndef HAVE_REWINDDIR
char *path;
#endif
};
GDir *
@@ -57,6 +60,9 @@ g_dir_open (const gchar *path, guint flags, GError **error)
g_free (dir);
return NULL;
}
#ifndef HAVE_REWINDDIR
dir->path = g_strdup (path);
#endif
return dir;
}
@@ -79,7 +85,12 @@ void
g_dir_rewind (GDir *dir)
{
g_return_if_fail (dir != NULL && dir->dir != NULL);
#ifndef HAVE_REWINDDIR
closedir (dir->dir);
dir->dir = opendir (dir->path);
#else
rewinddir (dir->dir);
#endif
}
void
@@ -87,6 +98,9 @@ g_dir_close (GDir *dir)
{
g_return_if_fail (dir != NULL && dir->dir != 0);
closedir (dir->dir);
#ifndef HAVE_REWINDDIR
g_free (dir->path);
#endif
dir->dir = NULL;
g_free (dir);
}
+5 -1
View File
@@ -162,6 +162,10 @@ g_get_current_dir (void)
}
} while (fail);
return r;
/* On amd64 sometimes the bottom 32-bits of r == the bottom 32-bits of buffer
* but the top 32-bits of r have overflown to 0xffffffff (seriously wtf getcwd
* so we return the buffer here since it has a pointer to the valid string
*/
return buffer;
}
+5 -1
View File
@@ -109,7 +109,7 @@ typedef uint16_t gunichar2;
/*
* Allocation
*/
#define g_free free
void g_free (void *ptr);
static inline gpointer g_realloc (gpointer obj, gsize size) { if (!size) {g_free (obj); return 0;} return realloc (obj, size);}
static inline gpointer g_malloc (gsize x) {if (x) return malloc (x); else return 0;}
static inline gpointer g_malloc0 (gsize x) {if (x) return calloc(1,x); else return 0;}
@@ -860,11 +860,15 @@ glong g_utf8_strlen (const gchar *str, gssize max);
# define GUINT64_TO_LE(x) (x)
# define GUINT16_TO_LE(x) (x)
# define GUINT_TO_LE(x) (x)
# define GUINT32_TO_BE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT32_FROM_BE(x) GUINT32_SWAP_LE_BE(x)
#else
# define GUINT32_TO_LE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT64_TO_LE(x) GUINT64_SWAP_LE_BE(x)
# define GUINT16_TO_LE(x) GUINT16_SWAP_LE_BE(x)
# define GUINT_TO_LE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT32_TO_BE(x) (x)
# define GUINT32_FROM_BE(x) (x)
#endif
#define GUINT32_FROM_LE(x) (GUINT32_TO_LE (x))
+7
View File
@@ -29,6 +29,13 @@
#include <string.h>
#include <glib.h>
void
g_free (void *ptr)
{
if (ptr != NULL)
free (ptr);
}
gpointer
g_memdup (gconstpointer mem, guint byte_size)
{
+40 -2
View File
@@ -47,7 +47,9 @@ g_build_path (const gchar *separator, const gchar *first_element, ...)
va_list args;
g_return_val_if_fail (separator != NULL, NULL);
g_return_val_if_fail (first_element != NULL, NULL);
if (first_element == NULL)
return g_strdup ("");
result = g_string_sized_new (48);
@@ -66,7 +68,8 @@ g_build_path (const gchar *separator, const gchar *first_element, ...)
g_string_append_len (result, s, p - s);
if (next && *next){
g_string_append (result, separator);
if (strncmp (separator, result->str + strlen (result->str) - slen, slen))
g_string_append (result, separator);
for (; strncmp (next, separator, slen) == 0; )
next += slen;
@@ -192,6 +195,12 @@ g_find_program_in_path (const gchar *program)
char *x = p, *l;
gchar *curdir = NULL;
char *save;
#ifdef G_OS_WIN32
char *program_exe;
char *suffix_list[5] = {".exe",".cmd",".bat",".com",NULL};
int listx;
gboolean hasSuffix;
#endif
g_return_val_if_fail (program != NULL, NULL);
@@ -200,6 +209,15 @@ g_find_program_in_path (const gchar *program)
x = curdir;
}
#ifdef G_OS_WIN32
/* see if program already has a suffix */
listx = 0;
hasSuffix = FALSE;
while (!hasSuffix && suffix_list[listx]) {
hasSuffix = g_str_has_suffix(program,suffix_list[listx++]);
}
#endif
while ((l = strtok_r (x, G_SEARCHPATH_SEPARATOR_S, &save)) != NULL){
char *probe_path;
@@ -211,6 +229,26 @@ g_find_program_in_path (const gchar *program)
return probe_path;
}
g_free (probe_path);
#ifdef G_OS_WIN32
/* check for program with a suffix attached */
if (!hasSuffix) {
listx = 0;
while (suffix_list[listx]) {
program_exe = g_strjoin(NULL,program,suffix_list[listx],NULL);
probe_path = g_build_path (G_DIR_SEPARATOR_S, l, program_exe, NULL);
if (access (probe_path, X_OK) == 0){ /* FIXME: on windows this is just a read permissions test */
g_free (curdir);
g_free (p);
g_free (program_exe);
return probe_path;
}
listx++;
g_free (probe_path);
g_free (program_exe);
}
}
#endif
}
g_free (curdir);
g_free (p);
+1 -4
View File
@@ -830,11 +830,8 @@ gchar *
g_strnfill (gsize length, gchar fill_char)
{
gchar *ret = g_new (gchar, length + 1);
int i;
for (i = 0; i < length; i++)
ret [i] = fill_char;
memset (ret, fill_char, length);
ret [length] = 0;
return ret;
}
+13 -9
View File
@@ -68,9 +68,14 @@ g_timer_stop (GTimer *timer)
gdouble
g_timer_elapsed (GTimer *timer, gulong *microseconds)
{
guint64 stop;
guint64 freq;
gdouble seconds;
static guint64 freq = 0;
guint64 delta, stop;
if (freq == 0) {
if (!QueryPerformanceFrequency ((LARGE_INTEGER *)&freq))
freq = 1;
}
if (timer->stop == 0) {
QueryPerformanceCounter ((LARGE_INTEGER*)&stop);
}
@@ -78,13 +83,12 @@ g_timer_elapsed (GTimer *timer, gulong *microseconds)
stop = timer->stop;
}
QueryPerformanceFrequency ((LARGE_INTEGER*)&freq);
seconds = 1.0 * (stop - timer->start) / freq;
delta = stop - timer->start;
if (microseconds) {
*microseconds = (gulong)(1000000.0 * (stop - timer->start) / freq);
}
return seconds;
if (microseconds)
*microseconds = (gulong) (delta * (1000000.0 / freq));
return (gdouble) delta / (gdouble) freq;
}
+17
View File
@@ -0,0 +1,17 @@
/
/Makefile.in
/configure
/libtool
/aclocal.m4
/Makefile
/config.h
/config.h.in
/config.status
/stamp-h1
/autom4te.cache
/.libs
/.deps
/test-glib
/test-eglib
/test-glib.exe
/test-eglib.exe
+23 -2
View File
@@ -92,7 +92,14 @@ test_buildpath ()
if (strcmp (s, "/a/c/") != 0)
return FAILED ("14 Got wrong result, got: %s", s);
g_free (s);
/* Null */
s = g_build_path ("/", NULL);
if (s == NULL)
return FAILED ("must get a non-NULL return");
if (s [0] != 0)
return FAILED ("must get an empty string");
g_free (s);
return OK;
}
@@ -109,6 +116,20 @@ test_buildfname ()
#endif
return FAILED ("1 Got wrong result, got: %s", s);
g_free (s);
s = g_build_filename ("/", "a", NULL);
#ifdef G_OS_WIN32
if (strcmp (s, "\\a") != 0)
#else
if (strcmp (s, "/a") != 0)
#endif
return FAILED ("1 Got wrong result, got: %s", s);
#ifndef OS_WIN32
s = g_build_filename ("/", "foo", "/bar", "tolo/", "/meo/", NULL);
if (strcmp (s, "/foo/bar/tolo/meo/") != 0)
return FAILED ("1 Got wrong result, got: %s", s);
#endif
return OK;
}
@@ -284,8 +305,8 @@ test_misc ()
}
static Test path_tests [] = {
{"g_buildpath", test_buildpath},
{"g_build_filename", test_buildfname},
{"g_buildpath", test_buildpath},
{"g_path_get_dirname", test_dirname},
{"g_path_get_basename", test_basename},
{"g_find_program_in_path", test_ppath},
+3 -8
View File
@@ -184,14 +184,9 @@ gdouble
get_timestamp()
{
/* FIXME: We should use g_get_current_time here */
#ifdef G_OS_WIN32
long int l = GetTickCount();
return (gdouble)(l / 1000) + (1.e-6) * ((l % 1000) * 1000);
#else
struct timeval tp;
gettimeofday(&tp, NULL);
return (gdouble)tp.tv_sec + (1.e-6) * tp.tv_usec;
#endif
GTimeVal res;
g_get_current_time (&res);
return res.tv_sec + (1.e-6) * res.tv_usec;
}
/*
+7
View File
@@ -0,0 +1,7 @@
/Makefile.in
/.libs
/.deps
/Makefile
/*.o
/*.lo
/*.la
+4
View File
@@ -0,0 +1,4 @@
ADD_DEFINITIONS(${GMODULE_CFLAGS})
ADD_LIBRARY(ikvm_native SHARED jni.c os.c jni.h)
TARGET_LINK_LIBRARIES(ikvm_native ${GMODULE_LIBS})
+24
View File
@@ -0,0 +1,24 @@
/aclocal.m4
/config.cache
/config.guess
/config.h
/config.h.in
/config.log
/config.status
/config.sub
/configure
/libtool
/ltmain.sh
/ltconfig
/Makefile
/Makefile.in
/stamp-h
/stamp-h.in
/*.lo
/.deps
/.libs
/*.la
/*.o
/autom4te.cache
/libgc-mono.pc
/libgc-mono-*.tar.gz
+196
View File
@@ -0,0 +1,196 @@
# based on configure.in/Makefile.am, which is:
# Copyright (c) 1999-2001 by Red Hat, Inc. All rights reserved.
#
# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
# OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
#
# Permission is hereby granted to use or copy this program
# for any purpose, provided the above notices are retained on all copies.
# Permission to modify the code and to distribute modified code is granted,
# provided the above notices are retained, and a notice that the code was
# modified is included with the above copyright notice.
#
# Original author: Tom Tromey
# Modified by: Grzegorz Jakacki <jakacki at acm dot org>
# This is in sync with the configure.in/Makefile.am at r135583
#
# This is a cmake build file for libgc
# Only the functionality needed by mono is supported
#
# FIXME:
add_definitions("-g -O2")
set(THREADS ${libgc_threads})
set(THREADDLLIBS "")
if (THREADS STREQUAL "no" OR THREADS STREQUAL "none" OR THREADS STREQUAL "single")
set(THREADS none)
endif()
if (THREADS STREQUAL "posix" OR THREADS STREQUAL "pthreads")
set(THREADS posix)
set(THREADDLLIBS "-lpthread")
if (${host} MATCHES "x86-.*-linux.*|ia64-.*-linux.*|i386-.*-linux.*|i486-.*-linux.*|i586-.*-linux.*|i686-.*-linux.*|x86_64-.*-linux.*|alpha.*-.*-linux.*|s390.*-.*-linux.*|sparc.*-.*-linux.*|powerpc-.*-linux.*")
add_definitions(-DGC_LINUX_THREADS -D_REENTRANT)
set(parallel_mark_supported yes)
add_definitions(-DTHREAD_LOCAL_ALLOC)
elseif(${host} MATCHES ".*-linux.*")
add_definitions(-DGC_LINUX_THREADS -D_REENTRANT)
elseif(${host} MATCHES ".*-aix.*")
add_definitions(-DGC_AIX_THREADS -D_REENTRANT)
elseif(${host} MATCHES ".*-hpux.*")
message("Only HP/UX 11 threads are supported.")
add_definitions(-DGC_HPUX_THREADS -D_REENTRANT -D_POSIX_C_SOURCE=199506L)
add_definitions(-DTHREAD_LOCAL_ALLOC)
set(parallel_mark_supported yes)
set(THREADDLLIBS "-lpthread -lrt")
elseif(${host} ".*-.*-freebsd.*")
add_definitions(-DGC_FREEBSD_THREADS)
message(FATAL_ERROR "todo")
### if test "x$PTHREAD_CFLAGS" != "x"; then
### INCLUDES="$INCLUDES $PTHREAD_CFLAGS"
### fi
### if test "x$PTHREAD_LIBS" = "x"; then
### THREADDLLIBS=-pthread
### else
### THREADDLLIBS="$PTHREAD_LIBS"
### fi
elseif(${host} ".*-.*-freebsd.*")
add_definitions(-DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS)
elseif(${host} ".*-.*-irix.*")
add_definitions(-DGC_IRIX_THREADS)
elseif(${host} ".*-.*-cygwin.*")
add_definitons(-DGC_WIN32_THREADS)
elseif(${host} ".*-.*-darwin.*")
add_definitons(-DGC_DARWIN_THREADS -DTHREAD_LOCAL_ALLOC)
set(parallel_mark_supported yes)
elseif(${host} ".*-.*-netbsd.*")
add_definitions(-DGC_NETBSD_THREADS -DTHREAD_LOCAL_ALLOC)
set(parallel_mark_supported yes)
elseif(${host} ".*-.*-osf.*")
add_definitions(GC_OSF1_THREADS -DTHREAD_LOCAL_ALLOC)
set(parallel_mark_supported yes)
add_definitions(-pthread)
set(THREADDLLIBS "-lpthread -lrt")
else()
message(FATAL_ERROR "Pthreads not supported by the GC on this platform.")
endif()
endif()
if(THREADS STREQUAL "win32")
add_definitions(GC_WIN32_THREADS)
# Wine getenv may not return NULL for missing entry
add_definitions(NO_GETENV)
if (enable_win32_dllmain)
add_definitions(gc_inside_dll)
endif()
endif()
if(${host} MATCHES "powerpc-.*-darwin.*")
set(powerpc_darwin yes)
endif()
if(parallel_mark_supported AND enable_parallel_mark)
add_definitions("-DPARALLEL_MARK")
endif()
# Configuration of machine-dependent code
ac_msg_checking("which machine-dependent code should be used")
###AC_MSG_CHECKING(
###machdep=
###case "$host" in
### alpha-*-openbsd*)
### machdep="alpha_mach_dep.lo"
### if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
### AC_MSG_WARN(OpenBSD/Alpha without dlopen(). Shared library support is disabled)
### fi
### ;;
### alpha*-*-linux*)
### machdep="alpha_mach_dep.lo"
### ;;
### i?86-*-solaris2.[[89]]|i?86-*-solaris2.1?)
### AC_DEFINE(SOLARIS25_PROC_VDB_BUG_FIXED)
### ;;
### mipstx39-*-elf*)
### machdep="mips_ultrix_mach_dep.lo"
### AC_DEFINE(STACKBASE, __stackbase)
### AC_DEFINE(DATASTART_IS_ETEXT)
### ;;
### mips-dec-ultrix*)
### machdep="mips_ultrix_mach-dep.lo"
### ;;
### mips-nec-sysv*|mips-unknown-sysv*)
### ;;
### mips*-*-linux*)
### ;;
### mips-*-*)
### machdep="mips_sgi_mach_dep.lo"
### AC_DEFINE(NO_EXECUTE_PERMISSION)
### ;;
### sparc-*-netbsd*)
### machdep="sparc_netbsd_mach_dep.lo"
### ;;
### sparc-sun-solaris2.3)
### machdep="sparc_mach_dep.lo"
### AC_DEFINE(SUNOS53_SHARED_LIB)
### ;;
### sparc*-sun-solaris2.*)
### machdep="sparc_mach_dep.lo"
### ;;
### ia64-*-*)
### machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
### ;;
###esac
if(NOT machdep)
set(machdep "mach_dep.c")
endif()
ac_msg_result("${machdep}")
ac_msg_checking("for threads package to use")
ac_msg_result("${THREADS}")
# Include defines that have become de facto standard.
# ALL_INTERIOR_POINTERS can be overridden in startup code.
add_definitions(-DSILENT -DNO_SIGNALS -DNO_EXECUTE_PERMISSION)
# AC_DEFINE(ALL_INTERIOR_POINTERS)
# By default, make the library as general as possible.
add_definitions(-DJAVA_FINALIZATION -DGC_GCJ_SUPPORT -DATOMIC_UNCOLLECTABLE)
add_definitions(-D_IN_LIBGC)
set(SUBDIRS include doc)
foreach(dir ${SUBDIRS})
add_subdirectory(${dir})
endforeach()
set(top_srcdir ../)
# .. is needed for mono/utils/mono-compiler.h
INCLUDE_DIRECTORIES(. .. include)
add_definitions(${CPPFLAGS})
if(powerpc_darwin)
set(asm_libgc_sources powerpc_darwin_mach_dep.s)
endif()
set(libmonogc_la_SOURCES
allchblk.c alloc.c blacklst.c checksums.c dbg_mlc.c
dyn_load.c finalize.c gc_dlopen.c gcj_mlc.c headers.c
malloc.c mallocx.c mark.c mark_rts.c misc.c new_hblk.c
obj_map.c os_dep.c pcr_interface.c ptr_chck.c real_malloc.c reclaim.c
solaris_pthreads.c solaris_threads.c specific.c stubborn.c typd_mlc.c
backgraph.c win32_threads.c
pthread_support.c pthread_stop_world.c darwin_stop_world.c
${asm_libgc_sources} ${machdep})
add_library(monogc-static STATIC ${libmonogc_la_SOURCES})
target_link_libraries (${THREADDLLIBS} ${UNWINDLIBS})
+56
View File
@@ -1,3 +1,59 @@
2009-07-20 Geoff Norton <[email protected]>
* darwin_stop_world.c: Fix the x86 version guards to use Apple's
properly defined macros.
2009-07-02 jonas echterhoff <[email protected]>
* darwin_stop_world.c: make debugger code compile on
OS X.
* pthread_support.c: give mach ports to the debugger instead of pthreads,
as those can be iterated over from another executable.
2009-06-22 Neale Ferguson <[email protected]>
* include/private/gc_locks.h: Fix typo in 390 version of GC_compare_and_exchange
and define a null memory barrier.
2009-06-16 Geoff Norton <[email protected]>
* include/private/gcconfig.h: Disable static scanning on this platform
* misc.c: Enable platform-specific disabling of static scanning
2009-06-06 Zoltan Varga <[email protected]>
* CMakeLists.txt: Fix handling of powerpc and the selection of
threads. Delete commented out stuff.
* CMakeLists.txt: CMake build file for libgc.
2009-05-18 Miguel de Icaza <[email protected]>
* include/private/gcconfig.h: Add support for Linux on the PS3
2009-04-28 Zoltan Varga <[email protected]>
* misc.c (GC_init): Avoid casting an lvalue. Fixes part of #498692.
2009-04-24 Kostyantyn Gushtin, Yevgen Kiruha, Serhiy Naumenko, Serhiy
Stetskovych and Ian Dichkovsky <[email protected]>
* include/private/gcconfig.h: Changes to support 64-bit ABI on MIPS.
Add an additional condition for a proper defining of ALIGNMENT
and CPP_WORDSZ.
2009-04-10 Zoltan Varga <[email protected]>
* include/private/gc_locks.h (GC_test_and_set): Merge a change from libgc
7.1's libatomic-ops to fix the ppc build with gcc 4.4.
2009-02-23 Zoltan Varga <[email protected]>
* os_dep.c (GC_init_linux_data_start): Avoid the call to GC_find_limit ()
if GC_no_dls is TRUE, as it is not needed and it complicates debugging since
it causes a SIGSEGV.
2009-01-18 Zoltan Varga <[email protected]>
* include/private/gcconfig.h: Applied patch from Koushik Dutta
+23 -2
View File
@@ -2,6 +2,13 @@
# if defined(GC_DARWIN_THREADS)
#include <AvailabilityMacros.h>
#include "mono/utils/mono-compiler.h"
#ifdef MONO_DEBUGGER_SUPPORTED
#include "include/libgc-mono-debugger.h"
#endif
/* From "Inside Mac OS X - Mach-O Runtime Architecture" published by Apple
Page 49:
"The space beneath the stack pointer, where a new stack frame would normally
@@ -105,7 +112,8 @@ void GC_push_all_stacks() {
if(r != KERN_SUCCESS) ABORT("thread_get_state failed");
#if defined(I386)
#if defined(_STRUCT_X86_EXCEPTION_STATE32)
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
lo = state.__esp;
GC_push_one(state.__eax);
@@ -350,7 +358,7 @@ void GC_push_all_stacks() {
(natural_t *)&info, &outCount);
if(r != KERN_SUCCESS) continue;
#if defined(_STRUCT_X86_EXCEPTION_STATE32)
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
lo = (void*)info.__esp;
hi = (ptr_t)FindTopOfStack(info.__esp);
@@ -682,4 +690,17 @@ void GC_darwin_register_mach_handler_thread(mach_port_t thread) {
GC_use_mach_handler_thread = 1;
}
#ifdef MONO_DEBUGGER_SUPPORTED
GCThreadFunctions *gc_thread_vtable = NULL;
void *
GC_mono_debugger_get_stack_ptr (void)
{
GC_thread me;
me = GC_lookup_thread (pthread_self ());
return &me->stop_info.stack_ptr;
}
#endif
#endif
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
@@ -10,6 +10,12 @@
struct thread_stop_info {
mach_port_t mach_thread;
int signal;
word last_stop_count; /* GC_last_stop_count value when thread */
/* last successfully handled a suspend */
/* signal. */
ptr_t stack_ptr; /* Valid only when stopped. */
};
struct GC_mach_thread {
+5 -4
View File
@@ -160,15 +160,15 @@
int temp = 1; /* locked value */
__asm__ __volatile__(
"1:\tlwarx %0,0,%3\n" /* load and reserve */
"1:\tlwarx %0,0,%1\n" /* load and reserve */
"\tcmpwi %0, 0\n" /* if load is */
"\tbne 2f\n" /* non-zero, return already set */
"\tstwcx. %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)
: "=&r"(oldval)
: "r"(addr), "r"(temp)
: "cr0","memory");
return oldval;
}
@@ -565,7 +565,7 @@
# endif /* ALPHA */
# if defined(S390)
# if !defined(GENERIC_COMPARE_AND_SWAP)
inline static GC_bool GC_compare_and_exchange(volatile C_word *addr,
inline static GC_bool GC_compare_and_exchange(volatile GC_word *addr,
GC_word old, GC_word new_val)
{
int retval;
@@ -583,6 +583,7 @@
return retval == 0;
}
# endif
# define GC_memory_barrier()
# endif
# if !defined(GENERIC_COMPARE_AND_SWAP)
/* Returns the original value of *addr. */
+27 -1
View File
@@ -334,6 +334,7 @@
# define ARM
# define mach_type_known
# define DARWIN_DONT_PARSE_STACK
# define GC_DONT_REGISTER_MAIN_STATIC_DATA
# endif
# endif
# if defined(NeXT) && defined(mc68000)
@@ -804,6 +805,7 @@
# define STACKBOTTOM ((ptr_t) LMGetCurStackBase())
# define DATAEND /* not needed */
# endif
# ifdef LINUX
# if defined(__powerpc64__)
# define ALIGNMENT 8
@@ -882,6 +884,20 @@
# define DATASTART GC_data_start
# define DYNAMIC_LOADING
# endif
# ifdef SN_TARGET_PS3
# define NO_GETENV
# define CPP_WORDSZ 32
# define ALIGNMENT 4
extern int _end [];
// extern int _dso_handle[];
extern int __bss_start;
# define DATAEND (_end)
# define DATASTART (__bss_start)
# define STACKBOTTOM ((ptr_t) ps3_get_stack_bottom ())
# define USE_GENERIC_PUSHREGS
# endif
# ifdef NOSYS
# define ALIGNMENT 4
# define OS_TYPE "NOSYS"
@@ -1376,7 +1392,12 @@
# define DATAEND (_end)
extern int __data_start[];
# define DATASTART ((ptr_t)(__data_start))
# define ALIGNMENT 4
# if defined(_MIPS_SZPTR) && (_MIPS_SZPTR == 64)
# define ALIGNMENT 8
# define CPP_WORDSZ 64
# else
# define ALIGNMENT 4
# endif
# define USE_GENERIC_PUSH_REGS
# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 2 || __GLIBC__ > 2
# define LINUX_STACKBOTTOM
@@ -2363,8 +2384,13 @@
GC_amiga_get_mem((size_t)bytes + GC_page_size) \
+ GC_page_size-1)
# else
# if defined(SN_TARGET_PS3)
extern void *ps3_get_mem (size_t size);
# define GET_MEM(bytes) (struct hblk*) ps3_get_mem (bytes)
# else
extern ptr_t GC_unix_get_mem();
# define GET_MEM(bytes) (struct hblk *)GC_unix_get_mem(bytes)
#endif
# endif
# endif
# endif
+3 -1
View File
@@ -81,6 +81,8 @@
/* dyn_load.c isn't linked in. */
#ifdef DYNAMIC_LOADING
# define GC_REGISTER_MAIN_STATIC_DATA() GC_register_main_static_data()
#elif defined(GC_DONT_REGISTER_MAIN_STATIC_DATA)
# define GC_REGISTER_MAIN_STATIC_DATA() FALSE
#else
# define GC_REGISTER_MAIN_STATIC_DATA() TRUE
#endif
@@ -479,7 +481,7 @@ void GC_init()
BOOL (WINAPI *pfn) (LPCRITICAL_SECTION, DWORD) = NULL;
HMODULE hK32 = GetModuleHandle(_T("kernel32.dll"));
if (hK32)
(FARPROC) pfn = GetProcAddress(hK32,
pfn = GetProcAddress(hK32,
"InitializeCriticalSectionAndSpinCount");
if (pfn)
pfn(&GC_allocate_ml, 4000);
+12 -3
View File
@@ -54,7 +54,7 @@
# endif
# include <stdio.h>
# if defined(MSWINCE)
# if defined(MSWINCE) || defined (SN_TARGET_PS3)
# define SIGSEGV 0 /* value is irrelevant */
# else
# include <signal.h>
@@ -336,6 +336,13 @@ char *GC_parse_map_entry(char *buf_ptr, word *start, word *end,
{
extern ptr_t GC_find_limit();
if (GC_no_dls)
/*
* Not needed, avoids the SIGSEGV caused by GC_find_limit which
* complicates debugging.
*/
return;
# ifdef LINUX
/* Try the easy approaches first: */
if ((ptr_t)__data_start != 0) {
@@ -504,7 +511,7 @@ void GC_enable_signals(void)
# if !defined(PCR) && !defined(AMIGA) && !defined(MSWIN32) \
&& !defined(MSWINCE) \
&& !defined(MACOS) && !defined(DJGPP) && !defined(DOS4GW) \
&& !defined(NOSYS) && !defined(ECOS)
&& !defined(NOSYS) && !defined(ECOS) && !defined(SN_TARGET_PS3)
# if defined(sigmask) && !defined(UTS4) && !defined(HURD)
/* Use the traditional BSD interface */
@@ -1449,8 +1456,10 @@ void GC_register_data_segments()
/* hanging from it. We're on thin ice here ... */
extern caddr_t sbrk();
GC_ASSERT(DATASTART);
GC_add_roots_inner(DATASTART, (char *)sbrk(0), FALSE);
# else
GC_ASSERT(DATASTART);
GC_add_roots_inner(DATASTART, (char *)(DATAEND), FALSE);
# if defined(DATASTART2)
GC_add_roots_inner(DATASTART2, (char *)(DATAEND2), FALSE);
@@ -1505,7 +1514,7 @@ void GC_register_data_segments()
# if !defined(OS2) && !defined(PCR) && !defined(AMIGA) \
&& !defined(MSWIN32) && !defined(MSWINCE) \
&& !defined(MACOS) && !defined(DOS4GW)
&& !defined(MACOS) && !defined(DOS4GW) && !defined(SN_TARGET_PS3)
# ifdef SUNOS4
extern caddr_t sbrk();
+10 -2
View File
@@ -1010,7 +1010,11 @@ void GC_thr_init()
t -> flags = DETACHED | MAIN_THREAD;
#ifdef MONO_DEBUGGER_SUPPORTED
if (gc_thread_vtable && gc_thread_vtable->thread_created)
gc_thread_vtable->thread_created (pthread_self (), &t->stop_info.stack_ptr);
# ifdef GC_DARWIN_THREADS
gc_thread_vtable->thread_created (mach_thread_self (), &t->stop_info.stack_ptr);
# else
gc_thread_vtable->thread_created (pthread_self (), &t->stop_info.stack_ptr);
# endif
#endif
GC_stop_init();
@@ -1324,7 +1328,11 @@ void * GC_start_routine_head(void * arg, void *base_addr,
# endif /* IA64 */
#ifdef MONO_DEBUGGER_SUPPORTED
if (gc_thread_vtable && gc_thread_vtable->thread_created)
gc_thread_vtable->thread_created (my_pthread, &me->stop_info.stack_ptr);
# ifdef GC_DARWIN_THREADS
gc_thread_vtable->thread_created (mach_thread_self(), &me->stop_info.stack_ptr);
# else
gc_thread_vtable->thread_created (my_pthread, &me->stop_info.stack_ptr);
# endif
#endif
UNLOCK();
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
+48
View File
@@ -1,3 +1,47 @@
2009-08-21 Ankit Jain <[email protected]>
* Makefile.am (man_MANS): Add xbuild.1
* xbuild.1: New.
2009-06-12 Jb Evain <[email protected]>
* mcs.1: update the /platform information.
2009-05-12 Tor Lillqvist <[email protected]>
* mkbundle.1: Document MONO_BUNDLED_OPTIONS.
2009-04-09 Jonathan Pryor <[email protected]>
* mdoc-update.1: Document -L, -r options.
2009-04-06 Jonathan Pryor <[email protected]>
* mdoc.5: Document //code/@src attribute.
2009-04-03 Andrés G. Aragoneses <[email protected]>
* monolinker.1: Document -m modifier.
2009-03-31 Jonathan Pryor <[email protected]>
* mdoc-update.1: Fix --out=DIRECTORY formatting. (It was causing the
remaining text to be bolded within monodoc).
2009-03-30 Jonathan Pryor <[email protected]>
* mdoc-update.1: Add new --exceptions=added functionality.
2009-03-23 Massimiliano Mantione <[email protected]>
* mono.1: Updated the profiler documentation, removing the "gc-signal"
option (it does not exist anymore) and clarifying the role of signals
in heap profiling.
2009-03-20 Jonathan Pryor <[email protected]>
* mdoc-export-html.1: Document --force-update parameter.
2008-12-31 Massimiliano Mantione <[email protected]>
* mono.1: Updated the profiler documentation, removing the "ts"
@@ -251,3 +295,7 @@ Mon Jan 22 11:15:26 CET 2007 Paolo Molaro <[email protected]>
* mono-shlib-cop.1: Document another BUG/design issue that it doesn't check
for; formatting/style changes.
2009-05-22 Michael Barker <[email protected]>
* man.1: Added documentation for MONO_MESSAGING_PROVIDER environment
variable.
+2
View File
@@ -38,6 +38,7 @@ man_MANS = \
mono-xmltool.1 \
mozroots.1 \
oldmono.1 \
pdb2mdb.1 \
permview.1 \
prj2make.1 \
resgen.1 \
@@ -49,6 +50,7 @@ man_MANS = \
soapsuds.1 \
sqlsharp.1 \
wsdl.1 \
xbuild.1 \
xsd.1
EXTRA_DIST = $(man_MANS)
+3 -3
View File
@@ -6,7 +6,7 @@
.SH NAME
csharp, gsharp \- Interactive C# Shell
.SH SYNOPSIS
.B csharp [--attach PID]
.B csharp [--attach PID] [file1 [file2]]
[options]
.P
.B gsharp [file1 [file2]]
@@ -27,8 +27,8 @@ into the main loop of a Gtk# application, avoiding any problems
arising from the multi-threaded nature of injecting itself into a
target process.
.PP
This version allows a number of scripts to be specified in the command
line.
Files specified in the command line will be loaded and executed as
scripts.
.SH OPTIONS
.TP
.I "\-\-attach"
+35 -3
View File
@@ -136,10 +136,18 @@ precedence over the attributes.
Extracts the C#/XML documentation from the source code and stores in in
the given FILE.
.TP
.I \-errorreport
This flag is ignored by Mono's C# compiler and is present only to
allow MCS to be used as a CSC replacement for msbuild/xbuild.
.TP
.I \-\-fatal
This is used for debugging the compiler. This makes the error emission
generate an exception that can be caught by a debugger.
.TP
.I \-filealign
This flag is ignored by Mono's C# compiler and is present only to
allow MCS to be used as a CSC replacement for msbuild/xbuild.
.TP
.I \-keyfile:KEYFILE
Strongname (sign) the output assembly using the key pair present in
the specified strong name key file (snk). A full key pair is required
@@ -176,6 +184,14 @@ methods will lead to error.
Restrict compiler to use only the second ISO standardized features.
This allows the use of generics, static classes, iterators and
anonymous methods for example.
.TP
.I "3"
Restrict the compiler to use only the features available in C# 3.0
(a superset of ISO-1 and ISO-2).
.TP
.I "future"
Enables features from upcoming versions of the language. As of
May 2009 this includes support for C# 4 as released in Visual Studio 2010 beta 1.
.PP
Notice that this flag only controls the language features available to
the programmer, it does not control the kind of assemblies produced.
@@ -269,6 +285,11 @@ For more details see the PACKAGE section in this document
.ne
.RE
.TP
.I \-platform:ARCH
Used to specify the target platform. The possible values are: anycpu,
x86, x64 or itanium. As of June 2009, the Mono runtime only have support
to emit anycpu and x86 assemblies.
.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
@@ -359,11 +380,15 @@ Debugging. Turns on verbose yacc parsing.
Shows the compiler version.
.TP
.I \-warnaserror, \-warnaserror+
Treat warnings as errors.
All compilers warnings will be reported as errors.
.TP
.I \-warnaserror:W1,[Wn]
.I \-warnaserror:W1,[Wn], -warnaserror+:W1,[Wn]
Treats one or more compiler warnings as errors.
.TP
.I \-warnaserror-:W1,[Wn]
Sets one or more compiler warnings to be always threated as warnings.
Becomes useful when used together with -warnaserror.
.TP
.I \-warn:LEVEL
Sets the warning level. 0 is the lowest warning level, and 4 is the
highest. The default is 4.
@@ -380,7 +405,14 @@ assembly.
Use this to stop option parsing, and allow option-looking parameters
to be passed on the command line.
.PP
.SH PACKAGES
.SH PACKAGES AND LIBRARIES
When referencing an assembly, if the name of the assembly is a path,
the compiler will try to load the assembly specified in the path. If
it does not, then the compiler will try loading the assembly from the
current directory, the compiler base directory and if the assembly is
not found in any of those places in the directories specified as
arguments to the -lib: command argument.
.PP
Depending on the invocation for the C# compiler (mcs, gmcs, or smcs)
you will get a default set of libraries and versions of those
libraries that are referenced.
+10 -5
View File
@@ -18,13 +18,21 @@ mdoc export-html \- Convert \fBmdoc\fR(5) XML to HTML.
documentation XML files within \fIDIRECTORIES\fR.
.SH OPTIONS
.TP
.B \-\-default\-template
Writes the default XSLT used to \fIstdout\fR.
.TP
\fB\-\-ext\fR=\fIEXTENSION\fR
The file extension to use for created files.
.Sp
This defaults to \fIhtml\fR.
.TP
.B \-\-default\-template
Writes the default XSLT used to \fIstdout\fR.
\fB\-\-force-update\fR
Always generate new files. If not specified,
will only generate a new output file if the source
documentation file is newer than the target output file.
.TP
\fB\-o\fR, \fB\-\-out\fR=\fIDIRECTORY\fR
Write the created files within directory \fIDIRECTORY\fR.
.TP
\fB\-\-template\fR=\fIFILE\fR
An XSLT file to use to generate the created files.
@@ -33,9 +41,6 @@ If not specified, uses the template produced by \fI\-\-dump\-template\fR.
.Sp
See the \fITEMPLATE FORMAT\fR section below for more information.
.TP
\fB\-o\fR, \fB\-\-out\fR=\fIDIRECTORY\fR
Write the created files within directory \fIDIRECTORY\fR.
.TP
\fB\-h\fR, \fB\-?\fR, \fB\-\-help\fR
Display a help message and exit.
.SH TEMPLATE FORMAT
+20 -5
View File
@@ -29,11 +29,9 @@ as added types and members, while preserving existing documentation.
.Sp
In some limited circumstances, renames will be tracked, minimizing the
documentation burden when e.g. a parameter is renamed.
circumstances,
creates stubs and updates documentation in the \fBmdoc\fR(5)
documentation format from \fIASSEMBLIES\fR.
.PP
\fBmdoc update\fR does not rely on documentation found within source code.
\fBmdoc update\fR does not rely on documentation found within source code,
though it can import XML Documentation Comments via the \fB\-i\fR option.
.PP
See \fBmdoc\fR(1) and \fBmdoc\fR(5) for more information.
.SH OPTIONS
@@ -62,6 +60,12 @@ member.
that should be searched for exceptions:
.Sp
.nf
added Only generate <exception/> elements for members
added during the current program execution.
This keeps mdoc-update from re-generating
<exception/> elements for all members (and thus
prevents re-insertion for members that had the
<exception/> elements removed).
all Find exceptions created in the member itself,
references to members in the same assembly,
and references to members in dependent
@@ -171,11 +175,22 @@ Import documentation found within \fIFILE\fR.
.Sp
\fIFILE\fR may contain either \fIcsc /doc\fR XML or \fIECMA-335\fR XML.
.TP
\fB\-o\fR, \fB\-\-out\fB=\fIDIRECTORY\fR
\fB\-L\fR, \fB\-\-lib\fR=\fIDIRECTORY\fR
Add \fIDIRECTORY\fR to the assembly search path, so that dependencies of
\fIASSEMBLIES\fR can be found without documenting those assemblies.
.TP
\fB\-o\fR, \fB\-\-out\fR=\fIDIRECTORY\fR
Place the generated stubs into \fIDIRECTORY\fR.
.Sp
When updating documentation, \fIDIRECTORY\fR is also the source directory.
.TP
\fB\-r\fR=\fIASSEMBLY\fR
\fIASSEMBLY\fR is a dependency for one of \fIASSEMBLIES\fR which should
\fInot\fR be documented but is required to process one of \fIASSEMBLIES\fR.
Add the directory containing \fIASSEMBLY\fR to the assembly search path.
.Sp
This option is equivalent to specifying \fB\-L\fR `\fIdirname\fR ASSEMBLY`.
.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
+39 -1
View File
@@ -328,13 +328,26 @@ The \fIc\fR element can contain the following elements:
\fIsee\fR, and
\fItypeparamref\fR.
.TP
.I <code lang="LANGUAGE">TEXT</code>
.I <code lang="LANGUAGE" src="SOURCE">TEXT</code>
Display multiple lines of text in a code-like font (similar to the HTML <pre/>
element).
.Sp
.I LANGUAGE
is the language this code block is for. For example, if \fILANGUAGE\fR is
\fBC#\fR, then \fITEXT\fR will get syntax highlighting for the C# language
within the Mono Documentation Browser.
.Sp
.I SOURCE
is only interpreted by \fBmdoc-update\fR(1). If the \fIsrc\fR attribute is
present when \fBmdoc-update\fR(1) is run, then \fISOURCE\fR is a file
(relative to \fBmdoc-update\fR(1)'s \fB--out\fR directory) that
should be inserted as the value for \fITEXT\fR.
The contents of \fITEXT\fR will be ignored by \fBmdoc-update\fR(1)
and replaced on every invocation. \fISOURCE\fR can also contain an "anchor",
e.g. \fIsrc="path/to/file.cs#RegionMarker"\fR. If an anchor is present,
\fIand\fR \fILANGUAGE\fR is \fIC#\fR, then \fI#region RegionMarker\fR will be
searched for, and the contents between the \fI#region\fR and the following
\fI#endregion\fR will be inserted as the value for \fITEXT\fR element.
.TP
.I <example>XML_TEXT</example>
Indicates an example that should be displayed specially. For example:
@@ -388,6 +401,31 @@ The \fIexception\fR element can contain the following elements:
\fIsee\fR, and
\fItypeparamref\fR.
.TP
.I <format type="TYPE">XML_TEXT</format>
The \fI<format/>\fR element is an "escape hatch," for including (possibly XML)
content that is not valid \fBmdoc\fR(5) content. It's the moral equivalent of
\fBperlpod\fR(1) \fI=begin format\fR blocks.
\fITYPE\fR is the mime type of \fIXML_TEXT\fR. \fBmdoc\fR(5) processors may
skip \fIformat/>\fR blocks of they use a type that isn't supported.
For example:
.nf
<format type="text/html">
<table width="100%">
<tr><td style="color:red">Hello, world!</td></tr>
</table>
</format>
.fi
would cause the embedded HTML \fI<table/>\fR element to be inserted inline
into the resulting HTML document when \fBmdoc-export-html\fR(1) processes the
file. (Likewise, it may be skipped if processed by another program.)
\fIformat/>\fR is intended to simplify importing documentation from existing
documentation sources. It should not be relied upon, if at all possible.
.TP
.I <list>XML</list>
Create a list or table of items.
.I <list/>
+4
View File
@@ -126,6 +126,10 @@ Assembler command. The default is "as".
.I "CC"
C compiler command. The default is "cc" under Linux and "gcc -mno-cygwin"
under Windows.
.TP
.I "MONO_BUNDLED_OPTIONS"
Options to be passed to the bundled
Mono runtime, separated by spaces. See the mono(1) manual page or run mono --help.
.SH FILES
This program will load referenced assemblies from the Mono assembly
cache.
+132 -66
View File
@@ -1,11 +1,11 @@
.\"
.\" mono manual page.
.\" (C) 2003 Ximian, Inc.
.\" (C) 2004-2005 Novell, Inc.
.\" Copyright 2003 Ximian, Inc.
.\" Copyright 2004-2009 Novell, Inc.
.\" Author:
.\" Miguel de Icaza ([email protected])
.\"
.TH Mono "Mono 2.2"
.TH Mono "Mono 2.5"
.SH NAME
mono \- Mono's ECMA-CLI native code generator (Just-in-Time and Ahead-of-Time)
.SH SYNOPSIS
@@ -503,14 +503,45 @@ addr2line utility that comes from the binutils package).
.PP
The
.I logging profiler
will eventually replace the default profiler as it is more complete
and encompasses the functionality of all the other profilers for Mono.
It supports the following execution modes:
is a general purpose profiler that can track many different kinds of
events and logs those into a file as the program executes. This is
different than previous profilers in Mono that kept the information in
memory and rendered a summary of the results when the program shut
down.
.PP
Using the logging profiler means that useful information can be
gathered for long-running applications, applications that terminate
abormally (crashes, segfaults, complicated tear down processes) or
when no data about the shutdown is required.
.PP
The data collected by the running threads is kept independent of each
other to minimize the runtime overhead and the information dumped into
the log at regular intervals.
.PP
A sample use is very simple:
.nf
$ mono --profile=logging program.exe
$ mprof-decoder program.mprof
.fi
.PP
In the above example the logging profiler is used in its default mode
that merely records GC statistics for the execution of program.exe.
The profiling data collected is stored in the file program.mprof. The
mprof-decoder tool is then used to analyze the data.
.PP
You can instruct the logging profiler to record different one or more
sets of events. These are the modes supported:
.IP
.I Statistical:
the program instruction pointer is periodically sampled (it works also with
unmanaged functions). If call chains are requested, for each sample the
profiler gets a partial stack trace (up to a desired depth) so that
.I Statistical Profiling (stat)
the program instruction pointer is periodically sampled to determine
where the program is spending most of its time. Statistical
profiling has a very low impact on a running application and it is
very useful to get a general picture of where time is being spent on a
program.
.IP
If call chains are requested, for each sample the profiler gets a
partial stack trace (limited by the specified depth) so that
caller-callee information is available.
.IP
.I Instrumenting:
@@ -536,16 +567,6 @@ Moreover, other events can be logged and analyzed, like jit time for each
method, load and unload for assemblies, modules and and individual classes,
and appdomain and thread creation and destruction.
.PP
Instead of reporting the collected
information at the end of the execution of the program, this profiler logs
all the events periodically into a file during program execution.
To minimize the performance impact with multi-threaded applications,
the logging uses per-thread buffers that are routinely saved to disk.
.PP
The output file contains compressed events, to process the data you should
use tools like the "Mono.Profiler" tool provided on the Mono SVN
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:statistical\fR for doing statistical profiling (multiple
@@ -553,17 +574,16 @@ options are separated by commas).
.PP
As a quick primer, here are a few examples of the most common usage modes:
.PP
To write the resulting data to "mydata.mprof" (defaults to statistical
profiling):
To perform statistical profiling:
.nf
mono --profile=logging:output=mydata.mprof program.exe
mono --profile=logging:stat program.exe
.fi
.PP
To perform statistical profiling, inspecting call chains up to depth 8:
.nf
mono --profile=logging:statistical=8 program.exe
mono --profile=logging:stat=8 program.exe
.fi
.PP
To profile allocations (by default the call stack will be analized for
@@ -584,41 +604,34 @@ To perform heap profiling taking heap snapshots:
.nf
mono --profile=logging:heap=all program.exe
mono --profile=logging:heap=<signal> program.exe
.fi
.PP
To write the resulting data to a different file:
.nf
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".
mono --profile=logging:output=mydata.mprof program.exe
.fi
.PP
Then you would need to invoke the decoder \fImprof-decoder(1)\fR
on the output file to see the profiling results, or to examine heap
snapshots and allocations in detail \fImprof-heap-viewer(1)\fR.
.PP
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 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
@@ -687,23 +700,39 @@ the summarized data broken down by class).
\fIgc\fR or \fIg\fR
Measure the time spent in each collection, and also trace heap resizes.
.TP
\fIheap-shot\fR, \fIheap\fR or \fIh\fR
\fIheap-shot[=ARG]\fR, \fIheap[=ARG]\fR or \fIh[=ARH]\fR
Performs full heap profiling. In this case on each
collection a full heap snapshot is recorded to disk.
Inside the snapshots, each object reference is still represented so
that it's possible to investigate who is responsible for keeping objects
alive.
.PP
The actual production of heap snapshots could produce large log files,
so it can be controlled in three ways:
If the value of ARG is
.B all,
a heap snapshot is taken at each collection.
.PP
If the value is signal name or a number (one of SIGUSR1, SIGUSR2 and
SIGPROF, remembering that SIGPROF is not compatible with the
statistical profiler), every time the application receives this signal
a garbage collection is forced and a snapshot is taken. The natural way
to take a heap snapshot is then using the kill command to deliver the
appropriate signal to the application.
.PP
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
This kind of heap snapshot analysis is performed using the mprof-heap-viewer(1)
application.
.PP
The number of heap snapshots taken (and the moment in which they are taken)
can be further customized with the following options:
.TP
\fIgc-dumps=N\fR, \fIgc-d=N\fR, \fIgcd=N\fR
states the number of snapshots that must be dumped (since the application
starts). Zero means no dumps at all, -1 means dump at all collections.
.TP
\fIgc-signal=<signal>\fR, \fIgc-s\fR or \fIgcs\fR
(where <signal> is one of "SIGUSR1", "SIGUSR2", or "SIGPROF")
specifies a signal that will immediately trigger a collection and a dump.
starts). Zero means no dumps at all, -1 means dump at all collections.
.TP
\fIgc-commands=FILE\fR, \fIgc-c=FILE\fR or \fIgcc=FILE\fR
specify a "command file". The file must contain an integer value in ASCII
@@ -713,6 +742,14 @@ option value, and dump the required number of snapshots from that moment
onwards.
If the file is present at application startup it takes precedence over an
eventual \fIgcd=N\fR option.
.TP
These options exist because it can happen that the user wants to investigate
what happens during collections but without forcing a collection using a
signal, because forcing a collection alters the program behavior.
Of course it is possible to simply take a snapshot at every collection, but
in some workloads this is could not be feasible (too much data).
So we have this "garbage collection dumps" counter to control how many
snapshots to take.
.ne
.RE
.PP
@@ -773,10 +810,9 @@ This defaults to wbs=1024.
.ne
.RE
.PP
In its current state, this profiler can also perform heap analysis (like
heap-shot), and the decoder is already able to read the data, however
the user interface for this feature is experimental (the
\fImprof-heap-viewer\fR tool in the mono-tools module).
In its current state, this profiler can also perform heap analysis
like the HeapShot profiler, but there is no UI to process this
information.
.PP
Another known issue is that if the timer is not strictly monotonic (like
rtdsc), differences between times can underflow (they are handled as
@@ -786,6 +822,10 @@ Finally, it can happen that when exceptions are thrown the profiler temporarily
loses track of the execution stack and misattributes the caller for a few
allocations (and method execution time).
.PP
The output file contains compressed events, to process the data you should
use tools like the "Mono.Profiler" tool provided on the Mono SVN
repository.
.PP
More explanations are provided here: "http://www.mono-project.com/LoggingProfiler".
.SH EXTERNAL PROFILERS
There are a number of external profilers that have been developed for
@@ -951,7 +991,7 @@ integrity of the runtime after sending this signal is not guaranteed
and the application might crash or terminate at any given point
afterwards.
.PP
The \fB--debug=casts\FR option can be used to get more detailed
The \fB--debug=casts\fR option can be used to get more detailed
information for Invalid Cast operations, it will provide information
about the types involved.
.PP
@@ -1017,6 +1057,14 @@ by setting the option
Turns off the garbage collection in Mono. This should be only used
for debugging purposes
.TP
\fBLVM_COUNT\fR
When Mono is compiled with LLVM support, this instructs the runtime to
stop using LLVM after the specified number of methods are JITed.
This is a tool used in diagnostics to help isolate problems in the
code generation backend. For example \fBLLVM_COUNT=10\fR would only
compile 10 methods with LLVM and then switch to the Mono JIT engine.
\fBLLVM_COUNT=0\fR would disable the LLVM engine altogether.
.TP
\fBMONO_AOT_CACHE\fR
If set, this variable will instruct Mono to ahead-of-time compile new
assemblies on demand and store the result into a cache in
@@ -1084,6 +1132,12 @@ to track down the source of the problems.
\fBno-gdb-backtrace\fR
This option will disable the GDB backtrace emitted by the runtime
after a SIGSEGV or SIGABRT in unmanaged code.
.TP
\fBsuspend-on-sigsegv\fR
This option will suspend the program when a native SIGSEGV is received.
This is useful for debugging crashes which do not happen under gdb,
since a live process contains more information than a core file.
.ne
.RE
.TP
@@ -1184,13 +1238,14 @@ For example, this would work from the shell:
.fi
If you are using mod_mono to host your web applications, you can use
the
.B MonoSetEnv
directive, like this:
.B MonoIOMAP
directive instead, like this:
.nf
MonoSetEnv MONO_IOMAP=all
MonoIOMAP <appalias> all
.fi
See mod_mono(8) for more details.
.TP
\fBMONO_MANAGED_WATCHER\fR
If set to "disabled", System.IO.FileSystemWatcher will use a file watcher
@@ -1218,8 +1273,8 @@ the Global Assembly Cache (see gacutil(1)) or having the dependent
libraries side-by-side with the main executable.
.Sp
For a complete description of recommended practices for application
deployment, see the
http://www.mono-project.com/Guidelines:Application_Deployment page.
deployment, see
http://www.mono-project.com/Guidelines:Application_Deployment
.TP
\fBMONO_RTC\fR
Experimental RTC support in the statistical profiler: if the user has
@@ -1314,6 +1369,16 @@ Both files are read by System.Web on application startup, if they are found at t
above locations. If you don't want the mapping to be performed you can set this
variable in your environment before starting the application and no action will
be taken.
.TP
\fBMONO_MESSAGING_PROVIDER\fR
Mono supports a plugin model for its implementation of System.Messaging making
it possible to support a variety of messaging implementations (e.g. AMQP, ActiveMQ).
To specify which messaging implementation is to be used the evironement variable
needs to be set to the full class name for the provider. E.g. to use the RabbitMQ based
AMQP implementation the variable should be set to:
.nf
Mono.Messaging.RabbitMQ.RabbitMQMessagingProvider,Mono.Messaging.RabbitMQ
.SH ENVIRONMENT VARIABLES FOR DEBUGGING
.TP
\fBMONO_ASPNET_NODELETE\fR
@@ -1500,7 +1565,8 @@ http://www.mono-project.com/Mailing_Lists
http://www.mono-project.com
.SH SEE ALSO
.PP
certmgr(1), csharp(1), mcs(1), mdb(1), monocov(1), monodis(1), mono-config(5), mozroots(1), xsp(1).
certmgr(1), csharp(1), mcs(1), mdb(1), monocov(1), monodis(1),
mono-config(5), mozroots(1), pdb2mdb(1), xsp(1), mod_mono(8).
.PP
For more information on AOT:
http://www.mono-project.com/AOT
+3
View File
@@ -195,6 +195,9 @@ This command will add the FooStep before the MarkStep:
.fi
.Sp
This command will add the FooStep before the MarkStep
.TP
.I "-m CustomParam ParamValue"
Specify a parameter for a custom step.
.SH COPYRIGHT
Copyright (C) 2007 Novell, Inc (http://www.novell.com)
.SH BUGS
+41
View File
@@ -0,0 +1,41 @@
.\" Copyright 2003 Ximian, Inc.
.\" Copyright 2004-2009 Novell, Inc.
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH pdb2mdb 1 "23 April 2009"
.SH NAME
pdb2mdb \- Program Database to Mono Debugging Symbol converter.
.SH SYNOPSIS
.B pdb2mdb
pdb_file
.SH DESCRIPTION
This tool is used to convert debugging symbols generated by
Microsoft's compilers into debugging symbols that can be consumed by
Mono's runtime.
.PP
Program Database files are files that end with the extension .pdb and
are associated with a library or executable (a .dll or .exe file).
This format was until recently not documented so Mono used its own
file format for storing debugging information, the Mono debugging
format.
.PP
Just like PDB files Mono Debugging information is stored in files that
reside side-by-side with a program executable or a library.
.PP
You can use the pdb2mdb tool to transform these PDB files into MDB
files that Mono can then consume to debug programs or provide
line-number information for stack traces or exceptions.
.SH LICENSE
The
.I pdb2mdb
tool is released under the terms of the Microsoft Public License
(MS-PL).
.AUTHORS
JB Evain wrote the tool. The PDB reading support came from Microsoft
Common Compiler Infrastructure.
.SH SEE ALSO
mono(1), mdb(1)
.SH WEB SITE
http://www.mono-project.com
+53
View File
@@ -0,0 +1,53 @@
.TH "xbuild" 1
.SH NAME
xbuild \- Mono's tool to build MSBuild project files
.SH SYNOPSIS
.B xbuild
[option] [project-file]
.SH DESCRIPTION
xbuild can be used to build MSBuild project files. Integrated Development
Environments like MonoDevelop and "Microsoft Visual Studio .NET" use msbuild
project file format.
xbuild takes the path of the project or solution file to build, as the main argument.
If no file is specified then it tries to build any project file in the current
directory, that has a *proj extension.
.SH OPTIONS
.TP
.B \//target:T1[,TN]
List of targets to build
.TP
.B \//property:Name=Value
Set or override project properties
.TP
.B \//logger:<logger>
Custom logger to log build events
.TP
.B \//verbosity:<level>
Logger verbosity level : quiet, minimal, normal, detailed, diagnostic
.TP
.B \//validate
Validate the project file against the schema
.TP
.B \//validate:<schema>
Validate the project file against the specified schema
.TP
.B \//consoleloggerparameters:<params>
Parameters for the console logger
.TP
.B \//nologo
Don't show the initial xbuild banner
.TP
.B \//help
Show xbuild usage
.TP
.B \//version
Display xbuild version
.SH SEE ALSO
.BR mono(1), mcs(1)
.SH COPYRIGHT
Copyright (C) 2009 Novell, Inc (http://www.novell.com)
.SH MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details.
.SH WEB SITE
Visit: http://www.mono-project.com for details
+3
View File
@@ -0,0 +1,3 @@
*.mdb
*.exe
*.o
+30
View File
@@ -1,3 +1,33 @@
2009-09-07 Atsushi Enomoto <[email protected]>
* Makefile: add some WCF assemblies to centum_tests.
2009-07-21 Jb Evain <[email protected]>
* Makefile: specify bootstrap and SUBDIRS for the monotouch profile.
2009-07-16 Raja R Harinath <[email protected]>
Improve coarse-grain parallelism in the build
* Makefile (_boot_:net_2_0_bootstrap): Depend on
'net_1_1_bootstrap' profile, rather than 'net_1_1'.
2009-07-10 Atsushi Enomoto <[email protected]>
* nunit20 : removed old framework.
2009-06-07 Marek Safar <[email protected]>
* Makefile: Add net_4_0* profiles.
2009-02-24 Jonathan Pryor <[email protected]>
* docs/Makefile: Remove and don't install nunit-docs.source. As
Atsushi Enomoto said on 2008-11-26, Mono's NUnit is for internal use
only, and installing nunit-docs.source causes an warning message
during monodoc startup.
* docs/nunit-docs.source: Remove.
2009-02-03 Rodrigo Kumpera <[email protected]>
* docs/Makefile: Fix install-local and uninstall-local if
+11 -2
View File
@@ -9,7 +9,10 @@ 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
monotouch_SUBDIRS := build mcs class
net_3_5_SUBDIRS := build class
net_4_0_bootstrap_SUBDIRS := build mcs class tools
net_4_0_SUBDIRS := build mcs class nunit24 ilasm tools tests errors
# List of test subdirs that should pass 100%
centum_tests := \
@@ -47,6 +50,9 @@ net_2_0_centum_tests := \
class/Microsoft.Build.Framework \
class/Microsoft.Build.Utilities \
class/Microsoft.Build.Engine \
class/System.Runtime.Serialization \
class/System.IdentityModel \
class/System.ServiceModel.Web \
class/Mono.C5
# class/System.Web.Extensions
@@ -77,7 +83,7 @@ dir-check:
# fun specialty targets
PROFILES = net_1_1 net_2_0 net_3_5
PROFILES = net_1_1 net_2_0 net_3_5 net_4_0
.PHONY: all-profiles $(STD_TARGETS:=-profiles)
all-profiles $(STD_TARGETS:=-profiles): %-profiles: profiles-do--%
@@ -96,12 +102,15 @@ profiles-do--run-test:
# Orchestrate the bootstrap here.
_boot_ = all clean install
$(_boot_:%=profile-do--net_4_0--%): profile-do--net_4_0--%: profile-do--net_4_0_bootstrap--%
$(_boot_:%=profile-do--net_4_0_bootstrap--%): profile-do--net_4_0_bootstrap--%: profile-do--net_2_0--%
$(_boot_:%=profile-do--net_3_5--%): profile-do--net_3_5--%: profile-do--net_2_0--%
$(_boot_:%=profile-do--net_2_1--%): profile-do--net_2_1--%: profile-do--net_2_1_raw--%
$(_boot_:%=profile-do--monotouch--%): profile-do--monotouch--%: profile-do--net_2_1_bootstrap--%
$(_boot_:%=profile-do--net_2_1_raw--%): profile-do--net_2_1_raw--%: profile-do--net_2_1_bootstrap--%
$(_boot_:%=profile-do--net_2_1_bootstrap--%): profile-do--net_2_1_bootstrap--%: profile-do--net_2_0--%
$(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--net_2_0_bootstrap--%
$(_boot_:%=profile-do--net_2_0_bootstrap--%): profile-do--net_2_0_bootstrap--%: profile-do--net_1_1--%
$(_boot_:%=profile-do--net_2_0_bootstrap--%): profile-do--net_2_0_bootstrap--%: profile-do--net_1_1_bootstrap--%
$(_boot_:%=profile-do--net_1_1--%): profile-do--net_1_1--%: profile-do--net_1_1_bootstrap--%
$(_boot_:%=profile-do--net_1_1_bootstrap--%): profile-do--net_1_1_bootstrap--%: profile-do--basic--%
+2
View File
@@ -0,0 +1,2 @@
/deps
/config.make
+62
View File
@@ -1,3 +1,65 @@
2009-07-30 Raja R Harinath <[email protected]>
* library.make (SNFLAGS): Remove '-R', since it's specific to the
action required.
($(build_lib)): Use -R flag with $(SN).
($(the_lib)): Add a sanity check to verify that the assembly is signed.
2009-07-26 Raja R Harinath <[email protected]>
Make AOT compilation explicit
* platforms/darwin.make (PLATFORM_AOT_SUFFIX): New.
* platforms/linux.make (PLATFORM_AOT_SUFFIX): New.
* library.make ($(build_lib)): Don't try to AOT compile the
library in its possibly temporary location.
(DO_AOT): Remove. Move to ...
($(the_lib)$(PLATFORM_AOT_SUFFIX)): ... here, new rule to
explicitly run the AOT compilation.
(all-local) [ENABLE_AOT]: Build the AOT compiled library as appropriate.
2009-07-26 Raja R Harinath <[email protected]>
Fix parallel-build issues with LIBRARY_USE_INTERMEDIATE_FILE
* library.make (build_lib): Define to a profile dependent
temporary location for LIBRARY_USE_INTERMEDIATE_FILE.
(DO_AOT): New. Extracted from ...
($(build_lib)): ... here. Simplify. Extract code handling
LIBRARY_USE_INTERMEDIATE_FILE into ...
($(the_lib)) [LIBRARY_USE_INTERMEDIATE_FILE]: ... here, a new rule
that takes care of copying the library from its temporary location
to the final location.
2009-07-20 Jb Evain <[email protected]>
* profiles/monotouch.make: add monotouch profile.
2009-07-16 Raja R Harinath <[email protected]>
* profiles/net_2_0_bootstrap.make (BOOTSTRAP_PROFILE): Set to
net_1_1_bootstrap instead of net_1_1.
2009-06-03 Zoltan Varga <[email protected]>
* profiles/net_4_0.make: Add preliminary net 4.0 profile.
2009-04-09 Jonathan Pryor <[email protected]>
* executable.make, library.make: Move the include for tests.make so
that DISTFILES can be properly set (and thus properly distribute the
*_test.dll.sources file). This allows unit tests to actually build
and run when building from the tarball.
2009-04-05 Jonathan Pryor <[email protected]>
* executable.make: Support HAS_NUNIT_TEST variable; if set, will build
an NUnit test assembly during 'make test' and will run the tests
within the NUnit test assembly during 'make run-test'.
* library.make: Split out NUnit test rules/logic into tests.make.
* Makefile: Distribute tests.make.
* README.makefiles: Document HAS_NUNIT_TEST for executable.make,
documenting how to have NUnit tests for executables.
* tests.make: Added; NUnit test logic rules.
2009-01-08 Geoff Norton <[email protected]>
* Makefile: Add darwin.make to the make dist target as well
+4 -1
View File
@@ -25,7 +25,9 @@ PROFILES = \
net_2_1_raw \
net_2_1 \
net_1_0 \
net_3_5
net_3_5 \
net_4_0_bootstrap \
net_4_0
COMMON_SRCS = \
Consts.cs.in \
@@ -43,6 +45,7 @@ DISTFILES = \
library.make \
nunit-summary.xsl \
rules.make \
tests.make \
$(COMMON_SRCS:%=common/%) \
$(PLATFORMS:%=platforms/%.make) $(PROFILES:%=profiles/%.make)
+17
View File
@@ -266,6 +266,23 @@ mytester.exe: mytester.cs
$(CSCOMPILE) /target:exe /out:$@ mytester.cs
========================================
If your program has NUnit tests, set the variable HAS_NUNIT_TEST:
========================================
PROGRAM = myprogram.exe
LOCAL_MCS_FLAGS = /r:System.Xml.dll
HAS_NUNIT_TEST = yes
include ../build/executable.make
========================================
HAS_NUNIT_TEST tests follow library.make NUnit test conventions:
the files should be in a subdirectory called Test/, and if
your program is called myprogram.exe, they should be listed in
myprogram_test.dll.sources. The names in that files should *not* have
the Test/ prefix. 'make test' will build myprogram_test_$(PROFILE).dll
in the current directory, automatically supplying the flags to
reference the original program and NUnit.Framework.dll.
If your program has 'built sources', that is, source files generated
from other files (say, generated by jay), define a variable called
BUILT_SOURCES and do *not* list the sources in $(PROGRAM).sources:
+1
View File
@@ -0,0 +1 @@
/Consts.cs
+21
View File
@@ -1,3 +1,24 @@
2009-08-11 Jérémie Laval <[email protected]>
* Consts.cs.in: Add BOOTSTRAP_NET_4_0.
2009-07-18 Michael Barker <[email protected]>
* Consts.cs.in: Added constant for Mono.Messaging.RabbitMQ.
2009-06-15 Miguel de Icaza <[email protected]>
* MonoTODOAttribute.cs: Thin diet, no point in having virtual
methods and overrides that do the same thing.
2009-06-10 Marek Safar <[email protected]>
* Consts.cs.in: Add AssemblySystemCore_3_5.
2009-06-04 Marek Safar <[email protected]>
* Consts.cs.in: Add NET_4_0 constants.
2008-11-25 Rolf Bjarne Kvinge <[email protected]>
* Consts.cs.in: Update Silverlight's FxFileVersion to final
+11 -1
View File
@@ -51,7 +51,13 @@ internal
public const string MonoProduct = "MONO Common language infrastructure";
public const string MonoCopyright = "(c) various MONO Authors";
#if NET_3_5
#if NET_4_0 || BOOTSTRAP_NET_4_0
public const string FxVersion = "4.0.0.0";
public const string FxFileVersion = "4.0.20506.1";
public const string VsVersion = "0.0.0.0"; // Useless ?
public const string VsFileVersion = "10.0.0.0"; // TODO:
#elif NET_3_5
// Versions of .NET Framework 3.5 RTM
public const string FxVersion = "3.5.0.0";
public const string FxFileVersion = "3.5.21022.8";
@@ -103,6 +109,7 @@ internal
public const string AssemblyMono_Http = "Mono.Http, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=0738eb9f132ed756";
public const string AssemblyMono_Posix = "Mono.Posix, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=0738eb9f132ed756";
public const string AssemblyMono_Security = "Mono.Security, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=0738eb9f132ed756";
public const string AssemblyMono_Messaging_RabbitMQ = "Mono.Messaging.RabbitMQ, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=0738eb9f132ed756";
public const string AssemblyCorlib = "mscorlib, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b77a5c561934e089";
public const string AssemblySystem = "System, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b77a5c561934e089";
public const string AssemblySystem_Data = "System.Data, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b77a5c561934e089";
@@ -115,4 +122,7 @@ internal
public const string AssemblySystem_ServiceProcess = "System.ServiceProcess, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
public const string AssemblySystem_Web = "System.Web, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
public const string AssemblySystem_Windows_Forms = "System.Windows.Forms, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b77a5c561934e089";
#if NET_4_0 || BOOTSTRAP_NET_4_0
public const string AssemblySystemCore_3_5 = "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
#endif
}
+1 -21
View File
@@ -48,7 +48,7 @@ namespace System {
this.comment = comment;
}
public virtual string Comment {
public string Comment {
get { return comment; }
}
}
@@ -60,10 +60,6 @@ namespace System {
: base (comment)
{
}
public override string Comment {
get { return base.Comment; }
}
}
[AttributeUsage (AttributeTargets.All, AllowMultiple=true)]
@@ -73,10 +69,6 @@ namespace System {
: base (comment)
{
}
public override string Comment {
get { return base.Comment; }
}
}
[AttributeUsage (AttributeTargets.All, AllowMultiple=true)]
@@ -86,10 +78,6 @@ namespace System {
: base (comment)
{
}
public override string Comment {
get { return base.Comment; }
}
}
[AttributeUsage (AttributeTargets.All, AllowMultiple=true)]
@@ -99,10 +87,6 @@ namespace System {
: base (comment)
{
}
public override string Comment {
get { return base.Comment; }
}
}
[AttributeUsage (AttributeTargets.All, AllowMultiple=true)]
@@ -112,9 +96,5 @@ namespace System {
: base (comment)
{
}
public override string Comment {
get { return base.Comment; }
}
}
}
+25 -2
View File
@@ -61,7 +61,7 @@ uninstall-local:
endif
clean-local:
-rm -f $(executable_CLEAN_FILES) $(CLEAN_FILES)
-rm -f $(executable_CLEAN_FILES) $(CLEAN_FILES) $(tests_CLEAN_FILES)
test-local:
@:
@@ -72,6 +72,17 @@ run-test-ondotnet-local:
DISTFILES = $(sourcefile) $(base_prog_config) $(EXTRA_DISTFILES)
ifdef HAS_NUNIT_TEST
ASSEMBLY = $(PROGRAM)
ASSEMBLY_EXT = .exe
the_assembly = $(PROGRAM)
include $(topdir)/build/tests.make
endif
ifdef HAVE_CS_TESTS
DISTFILES += $(test_sourcefile)
endif
dist-local: dist-default
for f in `cat $(sourcefile)` ; do \
case $$f in \
@@ -114,7 +125,19 @@ endif
-include $(makefrag)
all-local: $(makefrag)
all-local: $(makefrag) $(extra_targets)
csproj-local:
config_file=`basename $(PROGRAM) .exe`-$(PROFILE).input; \
echo $(thisdir):$$config_file >> $(topdir)/../mono/msvc/scripts/order; \
(echo $(is_boot); \
echo $(MCS); \
echo $(USE_MCS_FLAGS) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS); \
echo $(PROGRAM); \
echo $(BUILT_SOURCES_cmdline); \
echo $(build_lib); \
echo $(response)) > $(topdir)/../mono/msvc/scripts/inputs/$$config_file
ifneq ($(response),$(sourcefile))
$(response): $(topdir)/build/executable.make $(depsdir)/.stamp
+53 -158
View File
@@ -53,49 +53,23 @@ library_CLEAN_FILES += $(makefrag) $(the_lib) $(the_lib).so $(the_pdb) $(the_mdb
ifdef LIBRARY_NEEDS_POSTPROCESSING
build_libdir = fixup/$(PROFILE)/
else
ifdef LIBRARY_USE_INTERMEDIATE_FILE
build_libdir = $(the_libdir)tmp/
else
build_libdir = $(the_libdir)
endif
endif
build_lib = $(build_libdir)$(LIBRARY_NAME)
library_CLEAN_FILES += $(build_lib) $(build_lib:.dll=.pdb)
else
build_lib = $(the_lib)
endif
ifndef NO_TEST
test_nunit_lib = nunit.framework.dll nunit.core.dll nunit.util.dll
test_nunit_dep = $(test_nunit_lib:%=$(topdir)/class/lib/$(PROFILE)/%)
test_nunit_ref = $(test_nunit_dep:%=-r:%)
library_CLEAN_FILES += TestResult*.xml
test_lib = $(LIBRARY:.dll=_test_$(PROFILE).dll)
test_sourcefile = $(LIBRARY:.dll=_test.dll.sources)
test_pdb = $(test_lib:.dll=.pdb)
test_response = $(depsdir)/$(test_lib).response
test_makefrag = $(depsdir)/$(test_lib).makefrag
test_flags = -r:$(the_lib) $(test_nunit_ref) $(TEST_MCS_FLAGS)
library_CLEAN_FILES += $(LIBRARY:.dll=_test*.dll) $(LIBRARY:.dll=_test*.pdb) $(test_response) $(test_makefrag)
btest_lib = $(LIBRARY:.dll=_btest_$(PROFILE).dll)
btest_sourcefile = $(LIBRARY:.dll=_btest.dll.sources)
btest_pdb = $(btest_lib:.dll=.pdb)
btest_response = $(depsdir)/$(btest_lib).response
btest_makefrag = $(depsdir)/$(btest_lib).makefrag
btest_flags = -r:$(the_lib) $(test_nunit_ref) $(TEST_MBAS_FLAGS)
library_CLEAN_FILES += $(LIBRARY:.dll=_btest*.dll) $(LIBRARY:.dll=_btest*.pdb) $(btest_response) $(btest_makefrag)
ifndef HAVE_CS_TESTS
HAVE_CS_TESTS := $(wildcard $(test_sourcefile))
endif
ifndef HAVE_VB_TESTS
HAVE_VB_TESTS := $(wildcard $(btest_sourcefile))
endif
endif
ifdef NO_SIGN_ASSEMBLY
SN = :
else
sn = $(topdir)/class/lib/net_1_1_bootstrap/sn.exe
SN = $(Q) MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(sn)
SNFLAGS = -q -R
SNFLAGS = -q
endif
ifeq ($(PLATFORM), win32)
@@ -107,7 +81,25 @@ GACDIR = $(mono_libdir)
GACROOT = $(DESTDIR)$(mono_libdir)
endif
all-local: $(the_lib)
all-local: $(the_lib) $(extra_targets)
ifeq ($(LIBRARY_COMPILE),$(BOOT_COMPILE))
is_boot=true
else
is_boot=false
endif
csproj-local:
config_file=`basename $(LIBRARY_NAME) .dll`-$(PROFILE).input; \
echo $(thisdir):$$config_file >> $(topdir)/../mono/msvc/scripts/order; \
(echo $(is_boot); \
echo $(MCS); \
echo $(USE_MCS_FLAGS) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS); \
echo $(LIBRARY_NAME); \
echo $(BUILT_SOURCES_cmdline); \
echo $(build_lib); \
echo $(response)) > $(topdir)/../mono/msvc/scripts/inputs/$$config_file
install-local: all-local
test-local: all-local
@@ -161,87 +153,25 @@ install-local: $(gacutil)
uninstall-local: $(gacutil)
-$(GACUTIL) /u $(LIBRARY_NAME:.dll=) $(gacdir_flag) /root $(GACROOT) $(package_flag)
endif
endif
endif # LIBRARY_INSTALL_DIR
endif # NO_INSTALL
clean-local:
-rm -f $(library_CLEAN_FILES) $(CLEAN_FILES)
-rm -f $(tests_CLEAN_FILES) $(library_CLEAN_FILES) $(CLEAN_FILES)
test-local run-test-local run-test-ondotnet-local:
@:
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}/nunit24 && $(MAKE)
echo "stamp" >$@
library_CLEAN_FILES += $(topdir)/build/deps/nunit-$(PROFILE).stamp
endif
test_assemblies :=
ifdef HAVE_CS_TESTS
test_assemblies += $(test_lib)
endif
ifdef HAVE_VB_TESTS
test_assemblies += $(btest_lib)
endif
ifdef test_assemblies
check: run-test
test-local: $(test_assemblies)
run-test-local: run-test-lib
run-test-ondotnet-local: run-test-ondotnet-lib
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_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'; 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)
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_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_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
DISTFILES = $(wildcard *$(LIBRARY)*.sources) $(EXTRA_DISTFILES)
TEST_FILES =
ASSEMBLY = $(LIBRARY)
ASSEMBLY_EXT = .dll
the_assembly = $(the_lib)
include $(topdir)/build/tests.make
ifdef HAVE_CS_TESTS
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,^../,,' -et -e 's,^,Test/,' $(btest_sourcefile)`
DISTFILES += $(btest_sourcefile)
endif
# make dist will collect files in .sources files from all profiles
dist-local: dist-default
@@ -267,14 +197,6 @@ ifndef LIBRARY_COMPILE
LIBRARY_COMPILE = $(CSCOMPILE)
endif
ifndef TEST_COMPILE
TEST_COMPILE = $(CSCOMPILE)
endif
ifndef BTEST_COMPILE
BTEST_COMPILE = $(BASCOMPILE)
endif
ifndef LIBRARY_SNK
LIBRARY_SNK = $(topdir)/class/mono.snk
endif
@@ -297,26 +219,33 @@ 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
$(build_lib): $(response) $(sn) $(BUILT_SOURCES) $(build_libdir:=/.stamp)
ifdef LIBRARY_USE_INTERMEDIATE_FILE
$(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) -target:library -out:$(LIBRARY_NAME) $(BUILT_SOURCES_cmdline) @$(response)
$(SN) $(SNFLAGS) $(LIBRARY_NAME) $(LIBRARY_SNK)
$(Q) mv $(LIBRARY_NAME) $@
$(Q) test ! -f $(LIBRARY_NAME).mdb || mv $(LIBRARY_NAME).mdb [email protected]
$(Q) test ! -f $(LIBRARY_NAME:.dll=.pdb) || mv $(LIBRARY_NAME:.dll=.pdb) $(dir $@)$(LIBRARY_NAME:.dll=.pdb)
else
$(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) -target:library -out:$@ $(BUILT_SOURCES_cmdline) @$(response)
$(SN) $(SNFLAGS) $@ $(LIBRARY_SNK)
$(SN) $(SNFLAGS) -R $@ $(LIBRARY_SNK)
ifdef LIBRARY_USE_INTERMEDIATE_FILE
$(the_lib): $(build_lib)
$(Q) cp $(build_lib) $@
$(SN) $(SNFLAGS) -v $@
$(Q) test ! -f $(build_lib).mdb || mv $(build_lib).mdb [email protected]
$(Q) test ! -f $(build_lib:.dll=.pdb) || mv $(build_lib:.dll=.pdb) $(the_lib:.dll=.pdb)
endif
ifdef PLATFORM_AOT_SUFFIX
Q_AOT=$(if $(V),,@echo "AOT [$(PROFILE)] $(notdir $(@))";)
$(the_lib)$(PLATFORM_AOT_SUFFIX): $(the_lib)
$(Q_AOT) MONO_PATH='$(the_libdir)' > $(PROFILE)_aot.log 2>&1 $(RUNTIME) --aot=bind-to-runtime-version $(the_lib)
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
all-local: $(the_lib)$(PLATFORM_AOT_SUFFIX)
endif
endif
@@ -335,40 +264,6 @@ endif
# for now, don't give any /lib flags or set MONO_PATH, since we
# give a full path to the assembly.
ifdef HAVE_CS_TESTS
$(test_lib): $(the_lib) $(test_response) $(test_nunit_dep)
$(TEST_COMPILE) -target:library -out:$@ $(test_flags) @$(test_response)
$(test_response): $(test_sourcefile)
@echo Creating $@ ...
@sed -e '/^$$/d' -e 's,^,Test/,' $(test_sourcefile) | $(PLATFORM_CHANGE_SEPARATOR_CMD) >$@
$(test_makefrag): $(test_response)
@echo Creating $@ ...
@sed 's,^,$(test_lib): ,' $< >$@
-include $(test_makefrag)
endif
ifdef HAVE_VB_TESTS
$(btest_lib): $(the_lib) $(btest_response) $(test_nunit_dep)
$(BTEST_COMPILE) -target:library -out:$@ $(btest_flags) @$(btest_response)
$(btest_response): $(btest_sourcefile)
@echo Creating $@ ...
@sed -e '/^$$/d' -e 's,^,Test/,' $(btest_sourcefile) | $(PLATFORM_CHANGE_SEPARATOR_CMD) >$@
$(btest_makefrag): $(btest_response)
@echo Creating $@ ...
@sed 's,^,$(btest_lib): ,' $< >$@
-include $(btest_makefrag)
endif
## Include corcompare stuff
include $(topdir)/build/corcompare.make
+2
View File
@@ -24,6 +24,8 @@ PLATFORM_PATH_SEPARATOR = :
# This is for changing / to \ on windows
PLATFORM_CHANGE_SEPARATOR_CMD = cat
PLATFORM_AOT_SUFFIX = .dylib
hidden_prefix = .
hidden_suffix =
+2
View File
@@ -24,6 +24,8 @@ PLATFORM_PATH_SEPARATOR = :
# This is for changing / to \ on windows
PLATFORM_CHANGE_SEPARATOR_CMD = cat
PLATFORM_AOT_SUFFIX = .so
hidden_prefix = .
hidden_suffix =
+3
View File
@@ -26,6 +26,9 @@ PLATFORM_MAKE_CORLIB_CMP = yes
PLATFORM_CHANGE_SEPARATOR_CMD=tr '/' '\\\\'
PLATFORM_PATH_SEPARATOR = ;
## not so simple :-)
#PLATFORM_AOT_SUFFIX = .dll
hidden_prefix =
hidden_suffix = .tmp
+19
View File
@@ -0,0 +1,19 @@
#! -*- makefile -*-
my_runtime = $(RUNTIME) $(RUNTIME_FLAGS) --security=temporary-smcs-hack
INTERNAL_SMCS = $(my_runtime) $(topdir)/class/lib/$(PROFILE)/smcs.exe
BOOTSTRAP_PROFILE = net_2_1_bootstrap
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(my_runtime) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/smcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_SMCS)
profile-check:
@:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MONOTOUCH
FRAMEWORK_VERSION = 2.1
NO_TEST = yes
# the tuner takes care of the install
NO_INSTALL = yes
+1 -1
View File
@@ -4,7 +4,7 @@
# Note that we're using the .NET 1.1 MCS but MONO_PATH points to the net_2_0_bootstrap directory.
# We do it this way to get assembly version references right.
#
BOOTSTRAP_PROFILE = net_1_1
BOOTSTRAP_PROFILE = net_1_1_bootstrap
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/mcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/gmcs.exe
+17
View File
@@ -0,0 +1,17 @@
# -*- makefile -*-
INTERNAL_DMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/dmcs.exe
BOOTSTRAP_PROFILE = net_4_0_bootstrap
BOOTSTAP_DMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/dmcs.exe
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(BOOTSTAP_DMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_DMCS)
# nuttzing!
profile-check:
@:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0
FRAMEWORK_VERSION = 4.0
Loaded 100 of 5927 files, more files were not shown because too many files have changed in this diff. Show more