Compare commits

..
1919 Commits
Author SHA1 Message Date
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
2682 changed files with 627120 additions and 109845 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
+133
View File
@@ -1,3 +1,131 @@
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 +198,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.
+37 -4
View File
@@ -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
+27 -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.
+1 -1
View File
@@ -22,7 +22,7 @@ if test x$GCC != xyes; then
dolt_supported=no
fi
case $host in
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*)
pic_options='-fPIC'
;;
+147 -47
View File
@@ -222,6 +222,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
@@ -372,13 +374,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 +422,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 +439,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 +452,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 +481,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 +529,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 +553,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 +571,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"
@@ -578,66 +590,102 @@ AC_DEFINE_UNQUOTED(DISABLED_FEATURES, "$DISABLED_FEATURES", [String of disabled
if test "x$mono_feature_disable_aot" = "xyes"; then
AC_DEFINE(DISABLE_AOT, 1, [Disable AOT support])
AC_MSG_NOTICE([Disabled support for AOT])
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 +786,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 +845,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
@@ -1618,8 +1666,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 +1741,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])
@@ -1763,6 +1812,30 @@ 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 engine`
LLVM_LIBS="$LLVM_LDFLAGS $LLVM_LIBS -lstdc++"
AC_SUBST(LLVM_CXXFLAGS)
AC_SUBST(LLVM_LIBS)
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 +2031,19 @@ 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, [...])
;;
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
@@ -1970,7 +2056,7 @@ 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 +2064,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
@@ -2147,22 +2233,22 @@ 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
PROFILE2=yes
AC_ARG_WITH(profile2, [ --with-profile2=yes,no If you want to install the 2.0 FX (defaults to yes)],[
if test x$with_profile2 = xno; then
PROFILE2=no
fi
])
MOONLIGHT=yes
AC_ARG_WITH(moonlight,[ --with-moonlight=yes,no If you want to build the Moonlight 2.1 assemblies],[
AC_ARG_WITH(moonlight,[ --with-moonlight=yes,no If you want to build the Moonlight 2.1 assemblies (defaults to yes)],[
if test x$with_moonlight = xno; then
MOONLIGHT=no
fi
])
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 +2262,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,7 +2271,7 @@ 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
@@ -2197,7 +2283,7 @@ AC_SUBST(OPROFILE_LIBS)
libmono_ldflags="$libmono_ldflags $LIBS"
AM_CONDITIONAL(INSTALL_2_0, test x$PREVIEW = xyes)
AM_CONDITIONAL(INSTALL_2_0, test x$PROFILE2 = xyes)
AM_CONDITIONAL(INSTALL_2_1, test x$MOONLIGHT = xyes)
AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
@@ -2331,7 +2417,7 @@ AC_CONFIG_COMMANDS([runtime/etc/mono/2.0/Browsers/Compat.browser],
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([
@@ -2345,7 +2431,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
@@ -2388,13 +2473,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
@@ -2414,6 +2500,13 @@ if test x$platform_win32 = xyes; then
sed -e "s,-mno-cygwin,,g" libtool > libtool.new; mv libtool.new libtool; chmod 755 libtool
fi
dnl
dnl Consistency settings
dnl
if test x$cross_compiling = xyes -o x$enable_mcs_build = xno; then
DISABLE_MCS_DOCS=yes
fi
(
case $prefix in
NONE) prefix=$ac_default_prefix ;;
@@ -2498,7 +2591,7 @@ echo "
TLS: $with_tls
SIGALTSTACK: $with_sigaltstack
Engine: $jit_status
2.0 Beta: $PREVIEW
2.0 Profile: $PROFILE2
2.1 Alpha: $MOONLIGHT
JNI support: $jdk_headers_found
libgdiplus: $libgdiplus_msg
@@ -2507,6 +2600,7 @@ echo "
BigArrays: $enable_big_arrays
DTrace: $enable_dtrace
Parallel Mark: $enable_parallel_mark
LLVM Back End: $enable_llvm
$disabled
"
@@ -2522,3 +2616,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
+9 -9
View File
@@ -6,26 +6,26 @@ 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
+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
+13
View File
@@ -1,3 +1,16 @@
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.
+13 -7
View File
@@ -122,15 +122,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
@@ -1516,8 +1521,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}
-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
+26
View File
@@ -1,3 +1,29 @@
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
+29 -5
View File
@@ -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
+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);
}
+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
+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
+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
+22
View File
@@ -1,3 +1,25 @@
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
+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
+3 -3
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;
}
+6 -1
View File
@@ -1376,7 +1376,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
+1 -1
View File
@@ -479,7 +479,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);
+9
View File
@@ -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) {
@@ -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);
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
+35
View File
@@ -1,3 +1,38 @@
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"
+1
View File
@@ -38,6 +38,7 @@ man_MANS = \
mono-xmltool.1 \
mozroots.1 \
oldmono.1 \
pdb2mdb.1 \
permview.1 \
prj2make.1 \
resgen.1 \
+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"
+26 -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
@@ -269,6 +277,10 @@ For more details see the PACKAGE section in this document
.ne
.RE
.TP
.I \-platform
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 -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 +371,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 +396,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
+14 -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:
+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.
+107 -60
View File
@@ -1,7 +1,7 @@
.\"
.\" 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])
.\"
@@ -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
@@ -1084,6 +1124,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
@@ -1500,7 +1546,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).
.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
+3
View File
@@ -0,0 +1,3 @@
*.mdb
*.exe
*.o
+8
View File
@@ -1,3 +1,11 @@
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
+2
View File
@@ -0,0 +1,2 @@
/deps
/config.make
+18
View File
@@ -1,3 +1,21 @@
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
+1
View File
@@ -43,6 +43,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
+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
+28 -143
View File
@@ -59,37 +59,6 @@ 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
@@ -107,7 +76,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 +148,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 +192,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
@@ -314,6 +231,8 @@ else
$(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) -target:library -out:$@ $(BUILT_SOURCES_cmdline) @$(response)
$(SN) $(SNFLAGS) $@ $(LIBRARY_SNK)
endif
ifdef ENABLE_AOT
ifneq (,$(filter $(AOT_IN_PROFILES), $(PROFILE)))
$(Q_AOT) MONO_PATH=$(the_libdir) $(RUNTIME) --aot=bind-to-runtime-version $@ > $(PROFILE)_aot.log 2>&1
@@ -335,40 +254,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
@@ -127,6 +127,8 @@ do-run-test:
do-%: %-recursive
$(MAKE) $*-local
csproj: do-csproj
# The way this is set up, any profile-specific subdirs list should
# be listed _before_ including rules.make. However, the default
# SUBDIRS list can come after, so don't use the eager := syntax when
+116
View File
@@ -0,0 +1,116 @@
# -*- makefile -*-
#
# Rules for building unit tests.
#
# Includers of this file must define the following values:
#
# ASSEMBLY
# ASSEMBLY_EXT
# the_assembly
tests_CLEAN_FILES :=
ifndef TEST_COMPILE
TEST_COMPILE = $(CSCOMPILE)
endif
## Unit test support
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:%)
tests_CLEAN_FILES += TestResult*.xml
test_lib = $(ASSEMBLY:$(ASSEMBLY_EXT)=_test_$(PROFILE).dll)
test_sourcefile = $(ASSEMBLY:$(ASSEMBLY_EXT)=_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_assembly) $(test_nunit_ref) $(TEST_MCS_FLAGS)
tests_CLEAN_FILES += $(ASSEMBLY:$(ASSEMBLY_EXT)=_test*.dll) $(ASSEMBLY:$(ASSEMBLY_EXT)=_test*.pdb) $(test_response) $(test_makefrag)
ifndef HAVE_CS_TESTS
HAVE_CS_TESTS := $(wildcard $(test_sourcefile))
endif
endif
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" >$@
tests_CLEAN_FILES += $(topdir)/build/deps/nunit-$(PROFILE).stamp
endif
test_assemblies :=
ifdef HAVE_CS_TESTS
test_assemblies += $(test_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 # test_assemblies
TEST_FILES =
ifdef HAVE_CS_TESTS
TEST_FILES += `sed -e '/^$$/d' -e 's,^../,,' -et -e 's,^,Test/,' $(test_sourcefile)`
endif
ifdef HAVE_CS_TESTS
$(test_lib): $(the_assembly) $(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
+2
View File
@@ -0,0 +1,2 @@
/lib
/compat/
+17
View File
@@ -1,3 +1,20 @@
2009-04-07 Miguel de Icaza <[email protected]>
* Mono.Tasklets/Mono.Tasklets/Continuation.cs: Fix the signature
for store.
2009-04-25 Jonathan Chambers <[email protected]>
* Makefile: Add Microsoft.Build.* to 3.5 profile.
Mon Apr 6 14:37:32 CEST 2009 Paolo Molaro <[email protected]>
* Makefile, Mono.Tasklets: managed part of continuation support.
2009-03-27 Raja R Harinath <[email protected]>
* Makefile (net_2_0_dirs): Build System.Runtime.Serialization
before System.Data.Linq.
2009-01-22 Marek Habersack <[email protected]>
* Makefile (net_2_0_dirs): added System.Web - it now depends on
+1
View File
@@ -0,0 +1 @@
/y.output
@@ -1,3 +1,8 @@
2009-02-23 Atsushi Enomoto <[email protected]>
* RdpPattern.cs : added "Anything" which is used in error recovery
support.
2007-12-14 Atsushi Enomoto <[email protected]>
* RdpPattern.cs : For ContainsText() (for interleave text/text
@@ -48,6 +48,16 @@ namespace Commons.Xml.Relaxng.Derivative
// for now).
public abstract class RdpPattern
{
public static readonly RdpPattern Anything;
static RdpPattern ()
{
RdpPattern anyAtts = new RdpList (new RdpAttribute (RdpAnyName.Instance, RdpText.Instance));
RdpElement anyElement = new RdpElement (RdpAnyName.Instance, null);
Anything = new RdpChoice (RdpEmpty.Instance, new RdpChoice (anyAtts, new RdpChoice (RdpText.Instance, new RdpList (anyElement))));
anyElement.Children = Anything;
}
internal bool nullableComputed;
internal bool isNullable;
Hashtable patternPool;
@@ -0,0 +1 @@
/RncParser.cs
@@ -1,3 +1,15 @@
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.
2009-02-19 Atsushi Enomoto <[email protected]>
* XsdDatatypeProvider.cs : detect grammar-level error in type usage
at compile time.
2009-02-17 Atsushi Enomoto <[email protected]>
* XsdDatatypeProvider.cs : workaround .NET/Mono Regex bug that
@@ -80,6 +80,22 @@ namespace Commons.Xml.Relaxng
bool inContent;
bool firstRead = true;
public delegate bool RelaxngValidationEventHandler (XmlReader source, string message);
public static readonly RelaxngValidationEventHandler IgnoreError = delegate { return true; };
public event RelaxngValidationEventHandler InvalidNodeFound;
delegate RdpPattern RecoveryHandler (RdpPattern source);
RdpPattern HandleError (string error, bool elements, RdpPattern source, RecoveryHandler recover)
{
if (InvalidNodeFound != null && InvalidNodeFound (this, error))
return recover (source);
else
throw CreateValidationError (error, true);
}
internal string CurrentStateXml {
get { return RdpUtil.DebugRdpPattern (vState, new Hashtable ()); }
}
@@ -397,8 +413,10 @@ namespace Commons.Xml.Relaxng
prevState = vState;
vState = memo.StartTagOpenDeriv (vState,
reader.LocalName, reader.NamespaceURI);
if (vState.PatternType == RelaxngPatternType.NotAllowed)
throw CreateValidationError (String.Format ("Invalid start tag found. LocalName = {0}, NS = {1}.", reader.LocalName, reader.NamespaceURI), true);
if (vState.PatternType == RelaxngPatternType.NotAllowed) {
if (InvalidNodeFound != null)
vState = HandleError (String.Format ("Invalid start tag found. LocalName = {0}, NS = {1}.", reader.LocalName, reader.NamespaceURI), true, prevState, RecoverFromInvalidStartTag);
}
// AttsDeriv equals to for each AttDeriv
string elementNS = reader.NamespaceURI;
@@ -407,31 +425,26 @@ namespace Commons.Xml.Relaxng
if (reader.NamespaceURI == "http://www.w3.org/2000/xmlns/")
continue;
RdpPattern savedState = vState;
prevState = vState;
string attrNS = reader.NamespaceURI;
#if false // old code
vState = vState.AttDeriv (reader.LocalName, attrNS, reader.GetAttribute (reader.LocalName, attrNS), this);
if (vState == RdpNotAllowed.Instance)
throw CreateValidationError (String.Format ("Invalid attribute found. LocalName = {0}, NS = {1}.", reader.LocalName, reader.NamespaceURI), false);
#else
prevState = vState;
vState = memo.StartAttDeriv (vState, reader.LocalName, attrNS);
if (vState == RdpNotAllowed.Instance)
throw CreateValidationError (String.Format ("Invalid attribute found. LocalName = {0}, NS = {1}.", reader.LocalName, reader.NamespaceURI), false);
if (vState == RdpNotAllowed.Instance) {
vState = HandleError (String.Format ("Invalid attribute occurence found. LocalName = {0}, NS = {1}.", reader.LocalName, reader.NamespaceURI), false, savedState, p => p);
continue; // the following steps are ignored.
}
prevState = vState;
vState = memo.TextOnlyDeriv (vState);
vState = TextDeriv (vState, reader.Value, reader);
if (Util.IsWhitespace (reader.Value))
vState = vState.Choice (prevState);
if (vState == RdpNotAllowed.Instance)
vState = HandleError (String.Format ("Invalid attribute value is found. Value = '{0}'", reader.Value), false, prevState, RecoverFromInvalidText);
prevState = vState;
vState = memo.EndAttDeriv (vState);
if (vState == RdpNotAllowed.Instance)
throw CreateValidationError (String.Format ("Invalid attribute value is found. Value = '{0}'", reader.Value), false);
#endif
vState = HandleError (String.Format ("Invalid attribute value is found. Value = '{0}'", reader.Value), false, prevState, RecoverFromInvalidEnd);
} while (reader.MoveToNextAttribute ());
MoveToElement ();
}
@@ -440,7 +453,7 @@ namespace Commons.Xml.Relaxng
prevState = vState;
vState = memo.StartTagCloseDeriv (vState);
if (vState.PatternType == RelaxngPatternType.NotAllowed)
throw CreateValidationError (String.Format ("Invalid start tag closing found. LocalName = {0}, NS = {1}.", reader.LocalName, reader.NamespaceURI), false);
vState = HandleError (String.Format ("Invalid start tag closing found. LocalName = {0}, NS = {1}.", reader.LocalName, reader.NamespaceURI), false, prevState, RecoverFromInvalidStartTagClose);
// if it is empty, then redirect to EndElement
if (reader.IsEmptyElement) {
@@ -455,7 +468,7 @@ namespace Commons.Xml.Relaxng
prevState = vState;
vState = memo.EndTagDeriv (vState);
if (vState.PatternType == RelaxngPatternType.NotAllowed)
throw CreateValidationError (String.Format ("Invalid end tag found. LocalName = {0}, NS = {1}.", reader.LocalName, reader.NamespaceURI), true);
vState = HandleError (String.Format ("Invalid end tag found. LocalName = {0}, NS = {1}.", reader.LocalName, reader.NamespaceURI), true, prevState, RecoverFromInvalidEnd);
break;
case XmlNodeType.Whitespace:
if (inContent)
@@ -478,6 +491,122 @@ namespace Commons.Xml.Relaxng
return ret;
}
#region error recovery
// Error recovery feature can be enabled by using
// InvalidNodeFound event of type RelaxngValidationEventHandler.
//
// Other than startTagOpenDeriv, it is (again) based on
// James Clark's derivative algorithm.
// http://www.thaiopensource.com/relaxng/derivative.html
// For invalid start tag, we just recover from it by using
// xs:any-like pattern for unexpected node occurence.
RdpPattern MakeGroupHeadOptional (RdpPattern p)
{
if (p is RdpAbstractSingleContent)
return new RdpChoice (RdpEmpty.Instance, p);
RdpAbstractBinary ab = p as RdpAbstractBinary;
if (ab == null)
return p;
if (ab is RdpGroup)
return new RdpGroup (new RdpChoice (RdpEmpty.Instance, ab.LValue), ab.RValue);
else if (ab is RdpChoice)
return new RdpChoice (MakeGroupHeadOptional (ab.LValue), MakeGroupHeadOptional (ab.RValue));
else if (ab is RdpInterleave)
return new RdpInterleave (MakeGroupHeadOptional (ab.LValue), MakeGroupHeadOptional (ab.RValue));
else if (ab is RdpAfter) // FIXME: is it correct?
return new RdpAfter (MakeGroupHeadOptional (ab.LValue), MakeGroupHeadOptional (ab.RValue));
throw new SystemException ("INTERNAL ERROR: unexpected pattern: " + p.GetType ());
}
RdpPattern ReplaceAfterHeadWithEmpty (RdpPattern p)
{
if (p is RdpAbstractSingleContent)
return new RdpChoice (RdpEmpty.Instance, p);
RdpAbstractBinary ab = p as RdpAbstractBinary;
if (ab == null)
return p;
if (ab is RdpGroup)
return new RdpGroup (ReplaceAfterHeadWithEmpty (ab.LValue), ReplaceAfterHeadWithEmpty (ab.RValue));
else if (ab is RdpChoice)
return new RdpChoice (ReplaceAfterHeadWithEmpty (ab.LValue), ReplaceAfterHeadWithEmpty (ab.RValue));
else if (ab is RdpInterleave)
return new RdpInterleave (ReplaceAfterHeadWithEmpty (ab.LValue), ReplaceAfterHeadWithEmpty (ab.RValue));
else if (ab is RdpAfter)
return new RdpAfter (RdpEmpty.Instance, ab.RValue);
throw new SystemException ("INTERNAL ERROR: unexpected pattern: " + p.GetType ());
}
RdpPattern CollectAfterTailAsChoice (RdpPattern p)
{
RdpAbstractBinary ab = p as RdpAbstractBinary;
if (ab == null)
return RdpEmpty.Instance;
if (ab is RdpAfter)
return ab.RValue;
RdpPattern l = CollectAfterTailAsChoice (ab.LValue);
if (l == RdpEmpty.Instance)
return CollectAfterTailAsChoice (ab.RValue);
RdpPattern r = CollectAfterTailAsChoice (ab.RValue);
if (r == RdpEmpty.Instance)
return l;
return new RdpChoice (l, r);
}
RdpPattern ReplaceAttributesWithEmpty (RdpPattern p)
{
if (p is RdpAttribute)
return RdpEmpty.Instance;
RdpAbstractSingleContent asc = p as RdpAbstractSingleContent;
if (asc is RdpList)
return new RdpList (ReplaceAttributesWithEmpty (asc.Child));
if (asc is RdpOneOrMore)
return new RdpOneOrMore (ReplaceAttributesWithEmpty (asc.Child));
else if (asc is RdpElement)
return asc; // should not be expected to contain any attribute as RdpElement.
RdpAbstractBinary ab = p as RdpAbstractBinary;
if (ab == null)
return p;
if (ab is RdpGroup)
return new RdpGroup (ReplaceAttributesWithEmpty (ab.LValue), ReplaceAttributesWithEmpty (ab.RValue));
else if (ab is RdpChoice)
return new RdpChoice (ReplaceAttributesWithEmpty (ab.LValue), ReplaceAttributesWithEmpty (ab.RValue));
else if (ab is RdpInterleave)
return new RdpInterleave (ReplaceAttributesWithEmpty (ab.LValue), ReplaceAttributesWithEmpty (ab.RValue));
else if (ab is RdpAfter) // FIXME: is it correct?
return new RdpAfter (ReplaceAttributesWithEmpty (ab.LValue), ReplaceAttributesWithEmpty (ab.RValue));
throw new SystemException ("INTERNAL ERROR: unexpected pattern: " + p.GetType ());
}
RdpPattern RecoverFromInvalidStartTag (RdpPattern p)
{
RdpPattern test1 = MakeGroupHeadOptional (p);
test1 = memo.StartTagOpenDeriv (test1, reader.LocalName, reader.NamespaceURI);
if (test1 != null)
return test1;
// FIXME: JJC derivative algorithm suggests more complicated recovery. We simply treats current "extra" node as "anything".
return new RdpChoice (RdpPattern.Anything, p);
}
RdpPattern RecoverFromInvalidText (RdpPattern p)
{
return ReplaceAfterHeadWithEmpty (p);
}
RdpPattern RecoverFromInvalidEnd (RdpPattern p)
{
return CollectAfterTailAsChoice (p);
}
RdpPattern RecoverFromInvalidStartTagClose (RdpPattern p)
{
return ReplaceAttributesWithEmpty (p);
}
#endregion
RdpPattern TextDeriv (RdpPattern p, string value, XmlReader context)
{
if (value.Length > 0 && p.IsTextValueDependent)
@@ -498,8 +627,15 @@ namespace Commons.Xml.Relaxng
case XmlNodeType.Element:
startElementDepth = -1;
if (!Util.IsWhitespace (cachedValue)) {
// HandleError() is not really useful here since it involves else condition...
ts = memo.MixedTextDeriv (ts);
ts = TextDeriv (ts, cachedValue, reader);
if (InvalidNodeFound != null) {
InvalidNodeFound (reader, "Not allowed text node was found.");
ts = vState;
cachedValue = null;
}
else
ts = TextDeriv (ts, cachedValue, reader);
}
break;
default:
@@ -512,7 +648,7 @@ namespace Commons.Xml.Relaxng
vState = ts;
if (vState.PatternType == RelaxngPatternType.NotAllowed)
throw CreateValidationError (String.Format ("Invalid text found. Text value = {0} ", cachedValue), true);
vState = HandleError (String.Format ("Invalid text found. Text value = {0} ", cachedValue), true, prevState, RecoverFromInvalidText);
cachedValue = null;
return;
}
@@ -528,7 +664,7 @@ namespace Commons.Xml.Relaxng
vState = ts;
if (vState.PatternType == RelaxngPatternType.NotAllowed)
throw CreateValidationError (String.Format ("Invalid text found. Text value = {0} ", cachedValue), true);
vState = HandleError (String.Format ("Invalid text found. Text value = {0} ", cachedValue), true, prevState, RecoverFromInvalidText);
cachedValue = null;
startElementDepth = -1;
}
@@ -191,6 +191,7 @@ namespace Commons.Xml.Relaxng.XmlSchema
el.Name = "root";
el.SchemaType = type;
schema.Items.Add (el);
schema.Compile (null);
}
public override string Name {
@@ -1,3 +1,7 @@
2009-02-23 Atsushi Enomoto <[email protected]>
* relaxngtest.cs : added --skip-error option to test error recovery.
2005-04-11 Atsushi Enomoto <[email protected]>
* anglia-test-runner.cs : added some options.
@@ -7,9 +7,13 @@ using Commons.Xml.Relaxng.Derivative;
public class Test
{
static char SEP = Path.DirectorySeparatorChar;
static bool skip_error = true;
public static void Main ()
public static void Main (string [] args)
{
if (args.Length > 0 && args [0] == "--skip-error")
skip_error = true;
Console.WriteLine ("Started: " + DateTime.Now.ToString ("yyyy-MM-dd HH:mm:ss.fff"));
RunTest ();
Console.WriteLine ("Finished: " + DateTime.Now.ToString ("yyyy-MM-dd HH:mm:ss.fff"));
@@ -17,20 +21,7 @@ Console.WriteLine ("Finished: " + DateTime.Now.ToString ("yyyy-MM-dd HH:mm:ss.ff
static void RunTest ()
{
foreach (DirectoryInfo di in
new DirectoryInfo (@"relax-ng").GetDirectories ()) {
/*
if (di.Name == "056") // baseURI
continue;
if (di.Name == "102") // invalid URI fragment
continue;
if (di.Name == "208") // infinite loop!!
continue;
if (di.Name == "210") // infinite loop!!
continue;
*/
foreach (DirectoryInfo di in new DirectoryInfo (@"relax-ng").GetDirectories ()) {
XmlTextReader xtr = null;
FileInfo fi = new FileInfo (di.FullName + "/i.rng");
// Invalid grammar case:
@@ -69,14 +60,19 @@ if (di.Name == "210") // infinite loop!!
foreach (FileInfo inst in di.GetFiles ("*.xml")) {
try {
RelaxngValidatingReader vr = new RelaxngValidatingReader (new XmlTextReader (inst.FullName), p);
if (skip_error)
vr.InvalidNodeFound += RelaxngValidatingReader.IgnoreError;
while (!vr.EOF)
vr.Read ();
if (inst.Name.IndexOf ("i.") >= 0)
if (inst.Name.IndexOf ("i.") >= 0 && !skip_error)
Console.WriteLine ("Incorrectly validated instance: " + di.Name + "/" + inst.Name);
} catch (RelaxngException ex) {
string path = di.Name + "/" + inst.Name;
if (skip_error)
Console.WriteLine ("Failed to skip error : " + path + ex.Message);
if (inst.Name.IndexOf ("i.") >= 0)
continue;
Console.WriteLine ("Invalidated instance: " + di.Name + "/" + inst.Name + " : " + ex.Message);
Console.WriteLine ("Invalidated instance: " + path + " : " + ex.Message);
}
}
}
+4
View File
@@ -1,3 +1,7 @@
2009-04-15 Atsushi Enomoto <[email protected]>
* jis.table : regenerated. Fixed bug #491799.
2008-06-09 Atsushi Enomoto <[email protected]>
* ISO2022JP.cs : handle ESC-J sequence which is obsoleted in
+4
View File
@@ -1,3 +1,7 @@
2009-04-15 Atsushi Enomoto <[email protected]>
* I18N.CJK.Test.cs : added test for bug #491799.
2008-06-09 Atsushi Enomoto <[email protected]>
* I18N.CJK.Test.cs : added test for bug #398273.
+7
View File
@@ -289,6 +289,13 @@ namespace MonoTests.I18N.CJK
bytes, "#6");
}
[Test]
public void Bug491799 ()
{
Assert.AreEqual (new byte [] {0xEE, 0xFC},
Encoding.GetEncoding (932).GetBytes ("\uFF02"));
}
#if NET_2_0
[Test]
public void Decoder932Refresh ()
Binary file not shown.
+1 -1
View File
@@ -12,6 +12,6 @@ DISTFILES = \
tools/ucm2cp.c \
tools/uni2tab.c
all-local install-local clean-local test-local run-test-local run-test-ondotnet-local uninstall-local doc-update-local:
all-local install-local clean-local test-local run-test-local run-test-ondotnet-local uninstall-local doc-update-local csproj-local:
dist-local: dist-default
+8
View File
@@ -1,3 +1,11 @@
2009-04-15 Atsushi Enomoto <[email protected]>
* uni2tab.c : don't use obsoleted shiftjis.txt.
2009-04-15 Atsushi Enomoto <[email protected]>
* table_from.cs, table_to.cs : fix misuse of indexers (invalid code).
2006-11-20 Atsushi Enomoto <[email protected]>
* ucm2cp.c: applying the missing patch from Bruno Haible (on bug
+1 -1
View File
@@ -9,7 +9,7 @@ using System.Text; /* Encoding */
public class table_from {
static String toHexString1 (int i) {
return new String(new char[] { "0123456789ABCDEF".get_Chars(i) });
return new String(new char[] { "0123456789ABCDEF" [i] });
}
static String toHexString2 (int i) {
return toHexString1((i>>4)&0x0f)
+1 -1
View File
@@ -9,7 +9,7 @@ using System.Text; /* Encoding */
public class table_to {
static String toHexString1 (int i) {
return new String(new char[] { "0123456789ABCDEF".get_Chars(i) });
return new String(new char[] { "0123456789ABCDEF" [i] });
}
static String toHexString2 (int i) {
return toHexString1((i>>4)&0x0f)
+5 -5
View File
@@ -26,7 +26,7 @@
Usage: uni2tab
Required files from ftp.unicode.org: Unihan.txt, shiftjis.txt
Required files from ftp.unicode.org: Unihan.txt, CP932.TXT
*/
@@ -62,11 +62,11 @@ int main(int argc, char *argv[])
}
fclose(file);
/* Load the relevant contents from the shiftjis.txt file,
/* Load the relevant contents from the CP932.TXT file,
to get mappings for non-CJK characters */
if((file = fopen("shiftjis.txt", "r")) == NULL)
if((file = fopen("CP932.TXT", "r")) == NULL)
{
perror("shiftjis.txt");
perror("CP932.TXT");
return 1;
}
while(fgets(buffer, sizeof(buffer), file))
@@ -242,7 +242,7 @@ static void convertLine(char *buf)
}
/*
* Convert a line from the "shiftjis.txt" file.
* Convert a line from the "CP932.TXT" file.
*/
static void convertSJISLine(char *buf)
{
+12 -3
View File
@@ -104,6 +104,7 @@ net_2_0_dirs := \
Microsoft.Build.Tasks \
System.Core \
System.Xml.Linq \
System.Runtime.Serialization \
System.Data.DataSetExtensions \
System.Data.Linq \
System.Web \
@@ -115,14 +116,15 @@ net_2_0_dirs := \
System.Web.Extensions.Design \
System.ComponentModel.DataAnnotations \
System.Web.DynamicData \
System.Runtime.Serialization \
System.IdentityModel \
System.IdentityModel.Selectors \
System.ServiceModel \
System.ServiceModel.Web \
System.Web.Mvc \
Mono.Management \
Mono.Options \
Mono.Simd
Mono.Simd \
Mono.Tasklets
net_2_1_dirs := \
corlib \
@@ -137,7 +139,11 @@ net_2_1_dirs := \
System.ServiceModel.Web
net_3_5_dirs := \
System.Web.Extensions.Design
Microsoft.Build.Framework \
Microsoft.Build.Utilities \
Microsoft.Build.Engine \
Microsoft.Build.Tasks \
System.Web.Extensions.Design
net_1_1_SUBDIRS := $(common_dirs) $(net_1_1_dirs)
net_2_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs)
@@ -191,3 +197,6 @@ $(basic_files:%=lib/basic/%):
dist-default: $(monolite_files)
dist-local: dist-default
csproj-local:
@@ -1,3 +1,7 @@
2009-03-30 Carlos Alberto Cortez <[email protected]>
* System.Windows.Forms.dll.sources: Add X11Clipboard.cs to the build.
2009-01-16 Carlos Alberto Cortez <[email protected]>
* System.Windows.Forms_test.dll.sources: Add ClipboardTest.cs.
@@ -1,3 +1,8 @@
2009-02-24 Marek Habersack <[email protected]>
* ResXFileRef.cs: the class must be internal when compiled as part
of System.Web
2008-04-18 Marek Habersack <[email protected]>
* ResXResourceWriter.cs, ResXResourceReader.cs, ResXDataNode.cs,
@@ -113,25 +113,25 @@ namespace System.Resources
//TODO make this class internal for 1.1 and add field type_name, mime_type
//move resolvetype and resolve value here
[MonoTODO ("Move the type parsing process from ResxResourceReader")]
[MonoInternalNote ("Move the type parsing process from ResxResourceReader")]
public string GetValueTypeName (AssemblyName[] names)
{
return type.AssemblyQualifiedName;
}
[MonoTODO ("Move the type parsing process from ResxResourceReader")]
[MonoInternalNote ("Move the type parsing process from ResxResourceReader")]
public string GetValueTypeName (ITypeResolutionService typeResolver)
{
return type.AssemblyQualifiedName;
}
[MonoTODO ("Move the value parsing process from ResxResourceReader")]
[MonoInternalNote ("Move the value parsing process from ResxResourceReader")]
public Object GetValue (AssemblyName[] names)
{
return value;
}
[MonoTODO ("Move the value parsing process from ResxResourceReader")]
[MonoInternalNote ("Move the value parsing process from ResxResourceReader")]
public Object GetValue (ITypeResolutionService typeResolver)
{
return value;
@@ -36,7 +36,12 @@ using System.Text;
namespace System.Resources {
[Serializable]
[TypeConverter(typeof(ResXFileRef.Converter))]
public class ResXFileRef {
#if INSIDE_SYSTEM_WEB
internal
#else
public
#endif
class ResXFileRef {
#if INSIDE_SYSTEM_WEB
internal
#else
@@ -799,6 +799,7 @@ System.Windows.Forms/WebBrowserSiteBase.cs
System.Windows.Forms/Win32DnD.cs
System.Windows.Forms/WindowsFormsSection.cs
System.Windows.Forms/WindowsFormsSynchronizationContext.cs
System.Windows.Forms/X11Clipboard.cs
System.Windows.Forms/X11DesktopColors.cs
System.Windows.Forms/X11Dnd.cs
System.Windows.Forms/X11Keyboard.cs
@@ -909,7 +909,7 @@ namespace System.Windows.Forms
// give it the message, and then drop the message
if (keyboard_capture != null) {
// WM_SYSKEYUP does not make it into ProcessCmdKey, so do it here
if ((Msg)m.Msg == Msg.WM_SYSKEYUP)
if ((Msg)m.Msg == Msg.WM_SYSKEYDOWN)
if (m.WParam.ToInt32() == (int)Keys.Menu) {
keyboard_capture.GetTopLevelToolStrip ().Dismiss (ToolStripDropDownCloseReason.Keyboard);
continue;
@@ -213,9 +213,9 @@ namespace System.Windows.Forms {
}
}
#if NET_2_0
[MonoTODO ("Stub, does nothing")]
public static void UpdateBinding (BindingContext newBindingContext, Binding binding)
{
throw new NotImplementedException ();
}
#endif
#endregion // Protected Instance Methods
@@ -252,7 +252,7 @@ namespace System.Windows.Forms {
#endregion // ICollection Interfaces
#region IEnumerable Interfaces
[MonoTODO ("our enumerator is slightly different. in MS's implementation the Values are WeakReferences to the managers.")]
[MonoInternalNote ("our enumerator is slightly different. in MS's implementation the Values are WeakReferences to the managers.")]
IEnumerator IEnumerable.GetEnumerator() {
return managers.GetEnumerator ();
}
@@ -117,13 +117,13 @@ namespace System.Windows.Forms
}
#region Protected Instance Methods
[MonoTODO]
[MonoTODO ("Not implemented, will throw NotImplementedException")]
protected internal virtual PropertyDescriptorCollection GetItemProperties (ArrayList dataSources, ArrayList listAccessors)
{
throw new NotImplementedException();
}
[MonoTODO]
[MonoTODO ("Not implemented, will throw NotImplementedException")]
protected virtual PropertyDescriptorCollection GetItemProperties (Type listType, int offset, ArrayList dataSources, ArrayList listAccessors)
{
throw new NotImplementedException();
@@ -355,8 +355,8 @@ namespace System.Windows.Forms
}
}
[MonoTODO("implement this")]
public bool Validate()
[MonoTODO ("Not implemented, will throw NotImplementedException")]
public bool Validate ()
{
throw new NotImplementedException();
}
@@ -1,3 +1,723 @@
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.
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.
2009-05-13 Andreia Gaita <[email protected]>
* HtmlDocument.cs: If the objects are strings, wrap them in ""
2009-05-13 Andreia Gaita <[email protected]>
* HtmlDocument.cs: Fix InvokeScript call (duh).
2009-05-11 Carlos Alberto Cortez <[email protected]>
* 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]>
* ToolStripDropDownMenu.cs: Use the height returned by
ToolStripItem.GetPreferredHeight to calculate our own height.
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.
2009-05-10 Carlos Alberto Cortez <[email protected]>
* Control.cs: When assigning ContextMenu, do a null check before
assigning its container field.
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.
2009-05-08 Andrés G. Aragoneses <[email protected]>
* ToolStripItem.cs: Prevent NRE when our holder is a
ToolStripDropDownButton and we get Select()ed.
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.
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.
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.
2009-05-06 Mike Gorse <[email protected]>
* FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
Add PerformClick and PerformDoubleClick to PopupButton.
Fixes #499851.
2009-05-04 Andrés G. Aragoneses <[email protected]>
* TabControl.cs: call Focus() to emit GotFocus event at the
proper time when SelectionIndex changes. Fixes #499887.
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.
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.
2009-04-27 Andrés G. Aragoneses <[email protected]>
* ListView.cs: Make OnColumnClick +internal to be used by a11y.
2009-04-27 Brad Taylor <[email protected]>
* ToolStripButton.cs: Emit an internal event when CheckOnClick is
changed.
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.
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.
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.
2009-04-24 Andrés G. Aragoneses <[email protected]>
* ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
2009-04-24 Andrés G. Aragoneses <[email protected]>
* ToolBarButton.cs: rename a method to include UIA prefix.
2009-04-24 Andrés G. Aragoneses <[email protected]>
* ToolBarButton.cs: change visibility of some UIA methods from
protected virtual to private.
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.
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.
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.
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.
2009-04-14 Carlos Alberto Cortez <[email protected]>
* ThreadExceptionDialog.cs: Draw the error icon, previously missing.
Fixes #474253.
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.
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.
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.
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.
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.
2009-04-06 Carlos Alberto Cortez <[email protected]>
* ThemeWin32Classic.cs: Include the previous check for ListView in a
2.0 define as needed.
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.
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.
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.
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.
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.
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.
2009-03-30 Tom Hindle <[email protected]>
* DataGridView added Support for Invisible Columns to
AutoFillColumnsInternal method.
2009-03-30 Carlos Alberto Cortez <[email protected]>
* 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]>
* 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.
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.
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]
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.
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]
2009-03-26 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Implement IsCurrentRowDirty. No longer throws
NotImplementedException.
2009-03-26 Ivan N. Zlatev <[email protected]>
* DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs:
Fix SortMode clash handling.
[Fixes bug #488263]
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]
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.
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.
[Fixes bug #486881]
2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: If we are not databound and empty once the first row
gets added select the first cell.
[Fixes bug #486881]
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.
[Fixes bug #486645]
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]
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]
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.
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.
2009-03-18 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
[Fixes bug #486640]
2009-03-18 Jonathan Pobst <[email protected]>
* XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
placement of popup windows on OSX.
2009-03-18 Matt Guo <[email protected]>
* FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
[Fixes bug #482690]
2009-03-18 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Implement the CellMouseDoubleClick event.
[Fixes bug #486262]
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.
2009-03-18 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Implement mouse wheel scrolling.
[Fixes bug #486159]
2009-03-17 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: When DataSource changes the rebinding should happen
not if IsHandleCreated but if BindingContext != null.
[Fixes bug #486013]
2009-03-17 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Browsable(false) properties should be skipped when
autogenerating the columns.
[Fixes bug #486021]
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.
2009-03-16 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: In OwningColumng Handle invalid column index
silently.
[Fixes bug #485278]
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]
2009-03-16 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs:
Add support for invisible rows and columns.
[Fixes bug #484951]
2009-03-16 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: Escape literal { in ToString.
* DataGridViewTextBoxCell.cs: Fix ToString.
[Fixes bug #484923]
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.
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.
2009-03-13 Neville Gao <[email protected]>
* ToolBar.cs: Sent ButtonClick events when button style is DropDown.
* ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
ContextMenu is displayed.
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.
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.
[Fixes bug #483202]
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.
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.
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]
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.
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.
2009-03-06 Jonathan Pobst <[email protected]>
* ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
preferred size twice.
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.
2009-03-06 Jonathan Pobst <[email protected]>
* ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
code from Item to Button. Patch from Alex Shulgin.
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.
2009-03-04 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix RowCount/ColumnCount decreasing.
Based on a patch by Tom Hindle <[email protected]>
[Fixes bug #482133]
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
Based on a patch by Tom Hindle <[email protected]>
[Fixes bug #481681]
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]
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.
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.
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.
2009-02-27 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace,
since Set will keep the previous value in case of error (just what we
need), but still call MaskedTextProvider.Clear if
RejectOnFirstFailure is false - match .net.
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.
2009-02-25 Neville Gao <[email protected]>
* ColorDialog.cs: Added UIA Framwork Property:
UIASelectedSmallColorControl.
2009-02-25 Carlos Alberto Cortez <[email protected]>
* MaskedTextBox.cs: Forgot to update the call of the new method
introduces in the previous patch.
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.
2009-02-24 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: Invalidate the datagrid when the cell is selected
or deselected.
[Fixes bug #479124]
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.
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.
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.
2009-02-23 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Make the ScrollBars property work properly.
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.
2009-02-22 Ivan N. Zlatev <[email protected]>
* DataGridView.cs: Fix row removal in the data-bound scenario.
2009-02-19 Ivan N. Zlatev <[email protected]>
* DataGridViewCell.cs: Use strict equality comparison in order to
prevent superfluous CellValueChanged events.
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.
2009-02-19 Jonathan Pobst <[email protected]>
* ThemeWin32Classic.cs: Respect a PictureBox's Padding when
drawing the image.
2009-02-18 Andrés G. Aragoneses <[email protected]>
* ToolBarButton.cs: Oops, use the correct event (fix r127298).
2009-02-17 Andrés G. Aragoneses <[email protected]>
* ToolBarButton.cs: Event for Enabled property (needed to fix
@@ -371,7 +371,7 @@ namespace System.Windows.Forms
internal override void OnItemClick (int index)
{
if (CheckOnClick || last_clicked_index == index) {
if ((CheckOnClick || last_clicked_index == index) && index > -1) {
if (GetItemChecked (index))
SetItemCheckState (index, CheckState.Unchecked);
else
Loaded 100 of 2682 files, more files were not shown because too many files have changed in this diff. Show more