mono.git
15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 24 Jun 2009 03:37:39 +0000 (03:37 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136749

15 years agoFix LCONV_TO_xx and ICONV_TO_xx. Fix leave_method dump of returned
Neale Ferguson [Tue, 23 Jun 2009 23:55:26 +0000 (23:55 -0000)]
Fix LCONV_TO_xx and ICONV_TO_xx. Fix leave_method dump of returned
structure. Fix formatting.
Correct instruction lengths.
Add new instructions.

svn path=/trunk/mono/; revision=136748

15 years ago2009-06-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 23 Jun 2009 22:30:41 +0000 (22:30 -0000)]
2009-06-24  Zoltan Varga  <vargaz@gmail.com>

* libtest.c make_imt_test.sh: Applied patch from Romain Tartiere
(romain@blogreen.org). Fix tests on freebsd.

svn path=/trunk/mono/; revision=136747

15 years ago2009-06-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 23 Jun 2009 22:30:35 +0000 (22:30 -0000)]
2009-06-24  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.h: Applied patch from Romain Tartière (romain@blogreen.org).
Use sigaction on freebsd as well.

svn path=/trunk/mono/; revision=136746

15 years ago2009-06-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 23 Jun 2009 19:52:51 +0000 (19:52 -0000)]
2009-06-23  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Don't define MONO_ARCH_HAVE_TLS_GET to 0, as some code
uses #ifdef on it.

svn path=/trunk/mono/; revision=136740

15 years ago2009-06-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 23 Jun 2009 19:52:43 +0000 (19:52 -0000)]
2009-06-23  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Don't define MONO_ARCH_HAVE_TLS_GET to 0, as some code
uses #ifdef on it.

svn path=/trunk/mono/; revision=136739

15 years ago2009-06-23 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 23 Jun 2009 18:38:38 +0000 (18:38 -0000)]
2009-06-23  Marek Habersack  <mhabersack@novell.com>

* AssemblyInfo.cs: added InternalsVisibleTo for
System.ComponentModel.DataAnnotations (needs
ReflectionPropertyDescriptor)

2009-06-23  Marek Habersack  <mhabersack@novell.com>

* MetaTable.cs: constructor now takes ContextConfiguration instead
of a boolean and uses the config to determine value of the
ScaffoldAllTables property. Also, if context config is present,
makes sure to register the associated type description provider
(if any) with TypeDescriptor.

* MetaModel.cs: no longer uses local cache for description
providers. Uses TypeDescriptor.{Add,Get}Provider now.

* MetaColumn.cs: fixed Scaffold to match tests - IsGenerated and
IsCustomProperty take precedence over Table.ScaffoldAllTables.
GetDataFieldAttribute doesn't use AttributeCollection indexer, as
the latter would create a default instance of the requested
attribute, which is not what we want here.

2009-06-23  Marek Habersack  <mhabersack@novell.com>

* ValidationAttribute.cs: error message must not ever be empty.

* UIHintAttribute.cs: do not throw NIEX from the constructor.

* DataTypeAttribute.cs: implemented correct DisplayFormat
intialization for DataType.Time.

* AssociatedMetadataTypeTypeDescriptor.cs: implemented retrieving
attributes of the associated metadata type, as well as merging of
attribute collections between metadata and main type properties.

* AssociatedMetadataTypePropertyDescriptor.cs: added. Helper class
which merges attributes from the metadata type (if any) with those
associated with property from the "main" type.

2009-06-23  Marek Habersack  <mhabersack@novell.com>

* System.ComponentModel.DataAnnotations.dll.sources: added
System.ComponentModel.DataAnnotations/AssociatedMetadataTypePropertyDescriptor.cs

2009-06-23  Marek Habersack  <mhabersack@novell.com>

* TypeDescriptor.cs: do not wrap DefaultTypeDescriptionProvider.
Implemented GetAttributes and GetProperties in
DefaultTypeDescriptor.

* AttributeCollection.cs: make sure that attrList is never null.

svn path=/trunk/mcs/; revision=136732

15 years ago * Mono.Documentation/monodocer.cs: Don't generate an exception when an
Jonathan Pryor [Tue, 23 Jun 2009 18:34:00 +0000 (18:34 -0000)]
* Mono.Documentation/monodocer.cs: Don't generate an exception when an
  enumeration contains multiple names with the same value.
  Fixes #515030.
* Test/DocTest-v1.cs: Add test for #515030.
* Test/en.expected/Mono.DocTest/Color.xml,
  Test/en.expected.since/Mono.DocTest/Color.xml,
  Test/html.expected/Mono.DocTest/Color.html,
  Test/msxdoc-expected.importslashdoc.xml,
  Test/en.expected.importslashdoc/Mono.DocTest/Color.xml: Flush.

svn path=/trunk/mcs/; revision=136730

15 years ago2009-06-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 23 Jun 2009 18:18:43 +0000 (18:18 -0000)]
2009-06-23 Rodrigo Kumpera  <rkumpera@novell.com>

* image.c (do_mono_image_load): Enable table data verification.

svn path=/trunk/mono/; revision=136729

15 years ago2009-06-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 23 Jun 2009 18:18:28 +0000 (18:18 -0000)]
2009-06-23 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (is_valid_constant): Fix nullref check.

svn path=/trunk/mono/; revision=136728

15 years ago2009-06-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 23 Jun 2009 18:18:11 +0000 (18:18 -0000)]
2009-06-23 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (is_valid_constant): Fix string bounds check.

svn path=/trunk/mono/; revision=136727

15 years agomake the ParseExact5 work for all timezones
Gonzalo Paniagua Javier [Tue, 23 Jun 2009 18:00:15 +0000 (18:00 -0000)]
make the ParseExact5  work for all timezones

svn path=/trunk/mcs/; revision=136725

15 years ago2009-06-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 23 Jun 2009 17:58:42 +0000 (17:58 -0000)]
2009-06-23 Gonzalo Paniagua Javier <gonzalo@novell.com>

* DateTime.cs: ignore MinValue to avoid DateTimeOffset ctor throwing
when adjusting for TZ.

svn path=/trunk/mcs/; revision=136722

15 years ago2009-06-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Jun 2009 16:19:56 +0000 (16:19 -0000)]
2009-06-23  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSchemaAssertion.cs, XmlSchemaTests.cs : migrate from Assertion
  to Assert (it still uses XmlSchemaAssertion as the base class,
  but XmlSchemaAssertion is not based on Assertion anymore).

svn path=/trunk/mcs/; revision=136714

15 years agoAssertion -> Assert migration
Marek Habersack [Tue, 23 Jun 2009 15:30:13 +0000 (15:30 -0000)]
Assertion -> Assert migration

svn path=/trunk/mcs/; revision=136712

15 years ago2009-06-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Jun 2009 10:21:19 +0000 (10:21 -0000)]
2009-06-23  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceHostBase.cs : remove more TODO.

* DispatchRuntime.cs : do not fill InstanceContextProvider here.
* ChannelDispatcher.cs : do it here instead.
* ChannelDispatcherCollection.cs : remove TODOs.

* ChannelDispatcherTest.cs : make sure that the port to be in use is
  available before running the tests. Check attach state.
* DispatchRuntimeTest.cs : make sure that it runs through all the
  behavior tests.

svn path=/trunk/mcs/; revision=136695

15 years ago2009-06-23 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 23 Jun 2009 10:19:35 +0000 (10:19 -0000)]
2009-06-23  Marek Safar  <marek.safar@gmail.com>

* parameter.cs: Moved GetParameterIndexByName to base class.

* expression.cs, statement.cs, ecore.cs, delegate.cs: Removed
unused AType. Use argument's version of GetExpressionTree.

svn path=/trunk/mcs/; revision=136694

15 years ago2009-06-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Jun 2009 03:05:10 +0000 (03:05 -0000)]
2009-06-23  Atsushi Enomoto  <atsushi@ximian.com>

* OperationContext.cs : implement SessionId.
* ServiceHostBase.cs : implement open/close async methods.
  remove some TODOs.

svn path=/trunk/mcs/; revision=136674

15 years ago2009-06-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Jun 2009 03:03:12 +0000 (03:03 -0000)]
2009-06-23  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceRuntimeChannel.cs : remove some NIEs for actual use.
  Dispose->Close.

svn path=/trunk/mcs/; revision=136673

15 years ago2009-06-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Jun 2009 03:00:24 +0000 (03:00 -0000)]
2009-06-23  Atsushi Enomoto  <atsushi@ximian.com>

* InputOrReplyRequestProcessor.cs : bogus initialization.

svn path=/trunk/mcs/; revision=136672

15 years ago2009-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 23 Jun 2009 01:57:50 +0000 (01:57 -0000)]
2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListBox.cs: When creating DrawItemEventArgs, pass either
Theme.ColorHighlightText or ForeColor depending on the selected state
of our item, as .net does.
Fixes #512115.

svn path=/trunk/mcs/; revision=136669

15 years ago2009-06-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 22 Jun 2009 23:53:50 +0000 (23:53 -0000)]
2009-06-23  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): Revert a change which breaks cross-compilation.

svn path=/trunk/mono/; revision=136667

15 years agoTLS_GET on Darwin/G4.
Mark Probst [Mon, 22 Jun 2009 22:50:41 +0000 (22:50 -0000)]
TLS_GET on Darwin/G4.

2009-06-22  Mark Probst  <mark.probst@gmail.com>

        * mini-ppc.c, cpu-ppc.md: Enable TLS on Darwin/G4.

svn path=/trunk/mono/; revision=136659

15 years agoSGen managed allocation with pthreads TLS.
Mark Probst [Mon, 22 Jun 2009 22:49:11 +0000 (22:49 -0000)]
SGen managed allocation with pthreads TLS.

2009-06-22  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c: Managed allocation with pthreads TLS.

        * threads.c, threads-types.h: Functions for the JIT to tell the
        runtime whether it supports the MONO_TLS opcode.

2009-06-22  Mark Probst  <mark.probst@gmail.com>

        * mini.c, mini.h: Tell the runtime whether we support MONO_TLS.

svn path=/trunk/mono/; revision=136658

15 years agoDefine a no-op memory barrier for s390(x)
Neale Ferguson [Mon, 22 Jun 2009 22:40:05 +0000 (22:40 -0000)]
Define a no-op memory barrier for s390(x)

svn path=/trunk/mono/; revision=136657

15 years ago2009-06-22 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 22 Jun 2009 22:29:51 +0000 (22:29 -0000)]
2009-06-22 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_param_table): Fix a crash for assemblies
without methods.

svn path=/trunk/mono/; revision=136656

15 years ago2009-06-22 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 22 Jun 2009 22:29:23 +0000 (22:29 -0000)]
2009-06-22 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (is_valid_constant): Fix the string length check.
Use safe overflow checking. Add decent error messages.

svn path=/trunk/mono/; revision=136655

15 years ago2009-06-22 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 22 Jun 2009 22:28:49 +0000 (22:28 -0000)]
2009-06-22 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Move remaininh blob checks to the offline
verification path.

svn path=/trunk/mono/; revision=136654

15 years ago2009-06-22 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 22 Jun 2009 22:28:22 +0000 (22:28 -0000)]
2009-06-22 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Move more blob checks to the offline verification
path.

svn path=/trunk/mono/; revision=136653

15 years ago2009-06-10 Gert Driesen <drieseng@users.sourceforge.net>
Miguel de Icaza [Mon, 22 Jun 2009 22:08:57 +0000 (22:08 -0000)]
2009-06-10  Gert Driesen  <drieseng@users.sourceforge.net>

* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

svn path=/trunk/mcs/; revision=136652

15 years agoMessage update
Marek Safar [Mon, 22 Jun 2009 22:04:58 +0000 (22:04 -0000)]
Message update

svn path=/trunk/mcs/; revision=136651

15 years agoFix typo in GC_compare_and_exchange
Neale Ferguson [Mon, 22 Jun 2009 21:39:16 +0000 (21:39 -0000)]
Fix typo in GC_compare_and_exchange

svn path=/trunk/mono/; revision=136648

15 years ago2009-06-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 22 Jun 2009 18:24:19 +0000 (18:24 -0000)]
2009-06-22  Marek Habersack  <mhabersack@novell.com>

* WeakObjectWrapper.cs, WeakObjectWrapperComparer.cs: added - used
by TypeDescriptor for storage of type description providers.

* TypeDescriptor.cs: implemented part of the 2.0+ API which deals
with adding/removing/getting type description providers.

* AttributeCollection.cs: do not throw NREX when attrList is
null in Count.

2009-06-22  Marek Habersack  <mhabersack@novell.com>

* TypeDescriptorTests.cs: added tests for 2.0+ APIs which deal
with adding/removing/getting type description providers.

svn path=/trunk/mcs/; revision=136634

15 years ago2009-06-22 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 22 Jun 2009 17:41:26 +0000 (17:41 -0000)]
2009-06-22  Bill Holmes  <billholmes54@gmail.com>

* object-internals.h : Adding interrupt_on_stop field.

* threads.c (mono_thread_request_interruption) : On Windows exit the
  thread if interrupt_on_stop is set.

* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
  Removing old interrupt logic and setting the interrupt_on_stop for the
  thread when calling accept.

* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal) :
  setting the interrupt_on_stop for the thread when calling accept.

* Thread.cs : Adding interrupt_on_stop field.

Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=136628

15 years ago2009-06-22 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 22 Jun 2009 17:41:26 +0000 (17:41 -0000)]
2009-06-22  Bill Holmes  <billholmes54@gmail.com>

* object-internals.h : Adding interrupt_on_stop field.

* threads.c (mono_thread_request_interruption) : On Windows exit the
  thread if interrupt_on_stop is set.

* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
  Removing old interrupt logic and setting the interrupt_on_stop for the
  thread when calling accept.

* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal) :
  setting the interrupt_on_stop for the thread when calling accept.

* Thread.cs : Adding interrupt_on_stop field.

Contributed under MIT/X11 license.

svn path=/trunk/mcs/; revision=136628

15 years agoAdd new 'thread_flags' field to 'MonoDebuggerThreadInfo' and mark daemon / threadpool...
Martin Baulig [Mon, 22 Jun 2009 16:21:00 +0000 (16:21 -0000)]
Add new 'thread_flags' field to 'MonoDebuggerThreadInfo' and mark daemon / threadpool threads.
2009-06-20  Martin Baulig  <martin@ximian.com>

* debug-mini.c
(MonoDebuggerThreadFlags): New enum typedef.
(MonoDebuggerThreadInfo): Added `guint32 thread_flags'.
(mono_debugger_thread_created): Added `gpointer func' argument;
initialize the new `thread_flags' field.

svn path=/trunk/mono/; revision=136619

15 years agoRenamed 'MonoDebuggerInfo.dummy' into 'runtime_info' and set an "attach ok" flag...
Martin Baulig [Mon, 22 Jun 2009 16:20:40 +0000 (16:20 -0000)]
Renamed 'MonoDebuggerInfo.dummy' into 'runtime_info' and set an "attach ok" flag for the debugger.
2009-06-18  Martin Baulig  <martin@ximian.com>

* debug-debugger.h (MonoDebuggerRuntimeFlags): New enum typedef.
(MonoDebuggerInfo): Renamed the `dummy' field info `runtime_info'.

* debug-debugger.c
(mini_debugger_set_attach_ok): New function; sets the attach-ok
flag in `MONO_DEBUGGER__info.runtime_info'.

* driver.c
(mono_main): Call mini_debugger_set_attach_ok() if generics
sharing is disabled.

svn path=/trunk/mono/; revision=136618

15 years agoImprove exception handling when running in mdb: check whether an exception is caught...
Martin Baulig [Mon, 22 Jun 2009 16:20:18 +0000 (16:20 -0000)]
Improve exception handling when running in mdb: check whether an exception is caught inside a runtime-invoked method or the runtime-invoke wrapper.
2009-06-08  Martin Baulig  <martin@ximian.com>

* debug-mini.c
(MonoDebuggerExceptionAction): Moved into debug-mini.h.
(_mono_debugger_throw_exception): Don't make this static.
(_mono_debugger_unhandled_exception): Likewise.
(mono_debugger_handle_exception): Moved to mini-exceptions.c

* debug-mini.c
(MonoDebuggerExceptionAction): Moved here from debug-mini.c.
(_mono_debugger_throw_exception): Add function prototype.
(_mono_debugger_unhandled_exception): Likewise.

* mini-exceptions.c
(mono_handle_exception_internal): Added `MonoJitInfo **out_ji'
arg; return the first exception handler if the exception is caught
and we're running inside the debugger.
(mono_debugger_handle_exception): Moved here from debug-mini.c;
improve exception handle inside runtime-invoke, check whether the
exception is actually caught in the method being invoked and not
by the runtime-invoke-wrapper.

svn path=/trunk/mono/; revision=136617

15 years ago2009-06-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 22 Jun 2009 16:07:11 +0000 (16:07 -0000)]
2009-06-22  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_wrappers): Fix a warning.

svn path=/trunk/mono/; revision=136609

15 years agoFix a few uses of ppc_store_reg.
Zoltan Varga [Mon, 22 Jun 2009 15:25:02 +0000 (15:25 -0000)]
Fix a few uses of ppc_store_reg.

svn path=/trunk/mono/; revision=136607

15 years agoFix a few uses of ppc_load_reg/ppc_store_reg.
Zoltan Varga [Mon, 22 Jun 2009 15:24:56 +0000 (15:24 -0000)]
Fix a few uses of ppc_load_reg/ppc_store_reg.

svn path=/trunk/mono/; revision=136606

15 years ago2009-06-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 22 Jun 2009 15:22:17 +0000 (15:22 -0000)]
2009-06-22  Zoltan Varga  <vargaz@gmail.com>

* mini-ppc.c tramp-ppc.c exceptions-ppc.c aot-compiler.c: Update after
the ppc load/store macro changes.

svn path=/trunk/mono/; revision=136605

15 years ago2009-06-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 22 Jun 2009 15:22:10 +0000 (15:22 -0000)]
2009-06-22  Zoltan Varga  <vargaz@gmail.com>

* ppc/ppc-codegen.h: Rework the naming of the load/store macros,
ldr/str now handle register sized quantities, while ldptr/stptr handle
pointer sized quantities.

svn path=/trunk/mono/; revision=136604

15 years agoFixes build.
Marek Safar [Mon, 22 Jun 2009 14:21:44 +0000 (14:21 -0000)]
Fixes build.

svn path=/trunk/mcs/; revision=136601

15 years ago2009-06-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 22 Jun 2009 13:52:33 +0000 (13:52 -0000)]
2009-06-22  Marek Safar  <marek.safar@gmail.com>

* expression.cs, cs-parser.jay, attribute.cs, codegen.cs: Named
arguments grammar.

svn path=/trunk/mcs/; revision=136598

15 years ago2009-06-21 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 22 Jun 2009 13:02:25 +0000 (13:02 -0000)]
2009-06-21  Marek Safar  <marek.safar@gmail.com>

* Tuples.cs: Add Equals, GetHashCode.

svn path=/trunk/mcs/; revision=136596

15 years ago2009-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 22 Jun 2009 12:56:26 +0000 (12:56 -0000)]
2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ComboBox.cs: When handling WM_CHAR, process the message first, and
send it to the textbox only if it wasn't handled.
Fixes #507459.

svn path=/trunk/mcs/; revision=136594

15 years agosvn:eol-style
Marek Safar [Mon, 22 Jun 2009 11:38:21 +0000 (11:38 -0000)]
svn:eol-style

svn path=/trunk/mcs/; revision=136586

15 years ago2009-06-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 22 Jun 2009 02:00:14 +0000 (02:00 -0000)]
2009-06-21 Gonzalo Paniagua Javier <gonzalo@novell.com>

* HttpWebRequest.cs: check for an aborted request in Begin* before
proceeding. Fixes bug #511851.

svn path=/trunk/mcs/; revision=136574

15 years ago2009-06-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 22 Jun 2009 01:47:57 +0000 (01:47 -0000)]
2009-06-21 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebConnectionStream.cs: close the underlying socket if there's an
exception when closing the stream. Fixes bug #514996.

svn path=/trunk/mcs/; revision=136572

15 years ago* HttpWebRequestTest.cs: Improved and enabled test for bug #510642.
Gert Driesen [Sun, 21 Jun 2009 19:09:27 +0000 (19:09 -0000)]
* HttpWebRequestTest.cs: Improved and enabled test for bug #510642.
* WebConnectionStream.cs: Keep count of all bytes written, and perform
write overflow check in both buffered and non-buffered writing (if
not using chunked transfer encoding). Fixes bug #510642.

svn path=/trunk/mcs/; revision=136570

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 21 Jun 2009 14:22:06 +0000 (14:22 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* tramp-ppc.c (mono_arch_patch_plt_entry): Implement this.

svn path=/trunk/mono/; revision=136569

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 21 Jun 2009 14:21:59 +0000 (14:21 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (mono_compile_assembly): Sanitize the plt symbol too,
not just the got symbol.

svn path=/trunk/mono/; revision=136568

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 21 Jun 2009 13:41:49 +0000 (13:41 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* IntPtr.cs (.ctor): Disable the check in the long ctor until we
can figure out how to do it properly.

svn path=/trunk/mcs/; revision=136567

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 21 Jun 2009 01:11:28 +0000 (01:11 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* mini-ppc.c aot-compiler.c unwind.c: Implement generation of unwind info
on ppc.

svn path=/trunk/mono/; revision=136566

15 years agoUse TARGET_POWERPC instead of PPC.
Zoltan Varga [Sun, 21 Jun 2009 00:19:44 +0000 (00:19 -0000)]
Use TARGET_POWERPC instead of PPC.

svn path=/trunk/mono/; revision=136565

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 21 Jun 2009 00:16:58 +0000 (00:16 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c unwind.c: Add infrastructure for unwind support on
ppc.

svn path=/trunk/mono/; revision=136564

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 23:27:11 +0000 (23:27 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* appdomain.c (mono_try_assembly_resolve): Don't call managed code when
running in no-exec mode.

svn path=/trunk/mono/; revision=136563

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 23:23:28 +0000 (23:23 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Remove some fixmes.

svn path=/trunk/mono/; revision=136562

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 22:29:09 +0000 (22:29 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* driver.c (mono_main): Print a helpful message when cross-compiling.

svn path=/trunk/mono/; revision=136561

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 22:25:23 +0000 (22:25 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): Disable signal handlers when cross-compiling.

svn path=/trunk/mono/; revision=136560

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 22:19:16 +0000 (22:19 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (initialize_array_data): Do the optimization if the
target byte order is little endian, instead of the host byte order.

svn path=/trunk/mono/; revision=136559

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 22:19:09 +0000 (22:19 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* configure.in (TARGET_BYTE_ORDER): New define containing the byte order of
the target.

svn path=/trunk/mono/; revision=136558

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 22:05:48 +0000 (22:05 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Emit sizes for most symbols, only emit runtime-invoke
wrappers into the mscorlib image, Emit a unique plt symbol for each
image, emit symbols for plt entries.

* image-writer.c (img_writer_emit_symbol_size): New function to emit
a .size directive.

svn path=/trunk/mono/; revision=136557

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 21:49:43 +0000 (21:49 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_wrappers): Avoid calling
mono_marshal_get_type_info () since it can assert for some types.

* method-to-ir.c (mono_method_to_ir): Disable aot when some forms of
ldtoken are used inside wrappers.

svn path=/trunk/mono/; revision=136556

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 21:32:02 +0000 (21:32 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136555

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 21:25:36 +0000 (21:25 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136554

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 21:19:47 +0000 (21:19 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136553

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 21:17:28 +0000 (21:17 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136552

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 21:05:16 +0000 (21:05 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136551

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 20:47:29 +0000 (20:47 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* IntPtr.cs (.ctor): Allow long values whose 31th bit is set.

svn path=/trunk/mcs/; revision=136550

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 18:48:11 +0000 (18:48 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* atomic.h: Fix ilp32 support on ppc.

svn path=/trunk/mono/; revision=136549

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 18:47:03 +0000 (18:47 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* ppc/ppc-codegen.h: Fix the last change to avoid self-assignments inside
macros.

svn path=/trunk/mono/; revision=136548

15 years ago* SocketResponder.cs: Made a little more robust.
Gert Driesen [Sat, 20 Jun 2009 14:17:09 +0000 (14:17 -0000)]
* SocketResponder.cs: Made a little more robust.

svn path=/trunk/mcs/; revision=136546

15 years ago * mini-codegen.c: Remove definitions of OP_LOADR_MEMBASE/OP_STORER_MEMBASE
Zoltan Varga [Sat, 20 Jun 2009 13:52:28 +0000 (13:52 -0000)]
* mini-codegen.c: Remove definitions of OP_LOADR_MEMBASE/OP_STORER_MEMBASE
left in by mistake.

svn path=/trunk/mono/; revision=136545

15 years ago* HttpListener2Test.cs: Added test for bug #513849.
Gert Driesen [Sat, 20 Jun 2009 13:22:17 +0000 (13:22 -0000)]
* HttpListener2Test.cs: Added test for bug #513849.
* HttpWebRequestTest.cs: Enabled test for bug #508027. Added test for
bug #513087.
* WebClientTest.cs: Added test for bug #484795, for Encoding property.

svn path=/trunk/mcs/; revision=136544

15 years ago* WebClient.cs: Use lowercase hex bytes to match MS. Avoid using
Gert Driesen [Sat, 20 Jun 2009 13:17:16 +0000 (13:17 -0000)]
* WebClient.cs: Use lowercase hex bytes to match MS. Avoid using
zero-length string literal. Fixed exception argument name to match
MS.
* WebConnectionStream.cs: Throw a WebException that wraps an
IOException when closing the stream before all bytes are written.

svn path=/trunk/mcs/; revision=136543

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 13:05:05 +0000 (13:05 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* helpers.c: Add support for prefixing tools with the arch name.

svn path=/trunk/mono/; revision=136542

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 13:04:57 +0000 (13:04 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* mini.h (OP_LOADR_MEMBASE): New opcodes to load/store pointer sized
quantities when using ilp32.

* mini-codegen.c: Use OP_LOADR_MEMBASE/OP_STORER_MEMBASE for loading/storing
spill slots. Use sizeof(mgreg_t) for the spill slot size.

* image-writer.c: Use .long on ilp32.

* aot-compiler.c: Use 32 bit loads on ilp32.

svn path=/trunk/mono/; revision=136541

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 13:04:50 +0000 (13:04 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* src/glib.h: Add GUINT32_FROM/TO_BE macros.

svn path=/trunk/mono/; revision=136540

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 13:04:42 +0000 (13:04 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* ppc/ppc-codegen.h: Add ppc_ldr/ppc_str macros to store regsize quantities.
Handle little endian host platforms in ppc_emit32.

svn path=/trunk/mono/; revision=136539

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 19 Jun 2009 23:54:28 +0000 (23:54 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* tramp-ppc.c: Fix the calculation of the trampoline stack size now that
we save all 31 registers.

svn path=/trunk/mono/; revision=136537

15 years agoRevert "2009-06-20 Zoltan Varga <vargaz@gmail.com>"
Zoltan Varga [Fri, 19 Jun 2009 23:54:21 +0000 (23:54 -0000)]
Revert "2009-06-20  Zoltan Varga  <vargaz@gmail.com>"

This reverts commit b51c762bc7dd2ea3ecdaec9ea8a7b499d785a7c8.

svn path=/trunk/mono/; revision=136536

15 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 19 Jun 2009 23:54:02 +0000 (23:54 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* tramp-ppc.c (STACK): Fix this since we now push 31 registers.

svn path=/trunk/mono/; revision=136535

15 years agoFix some typos on test description.
Rodrigo Kumpera [Fri, 19 Jun 2009 22:20:31 +0000 (22:20 -0000)]
Fix some typos on test description.

svn path=/trunk/mono/; revision=136534

15 years ago2009-06-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 19 Jun 2009 22:20:22 +0000 (22:20 -0000)]
2009-06-19 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_method_table): Move header
checking to verify_method_table_full.

* metata-verify.c (mono_verifier_verify_full_table_data):
Call verify_method_table_full.

svn path=/trunk/mono/; revision=136533

15 years ago2009-06-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 19 Jun 2009 22:19:53 +0000 (22:19 -0000)]
2009-06-19 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_field_table): Move signature
checking to verify_field_table_full.

* metata-verify.c (mono_verifier_verify_full_table_data):
Call verify_field_table_full.

svn path=/trunk/mono/; revision=136532

15 years ago2009-06-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 19 Jun 2009 22:19:35 +0000 (22:19 -0000)]
2009-06-19 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_typedef_table): Move remaining
stuff to verify_typedef_table_full.

svn path=/trunk/mono/; revision=136531

15 years ago2009-06-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 19 Jun 2009 22:19:20 +0000 (22:19 -0000)]
2009-06-19 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Kill is_corlib from VerifyContext.
It is only used by the offline mode.
So we better remove it from the runtime path.

svn path=/trunk/mono/; revision=136530

15 years ago2009-06-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 19 Jun 2009 22:19:02 +0000 (22:19 -0000)]
2009-06-19 Rodrigo Kumpera  <rkumpera@novell.com>

* cli-tables-tests.md: Fix a implmap-table test
related to SupportLastError.

svn path=/trunk/mono/; revision=136529

15 years agoFix typo in changelog
Rodrigo Kumpera [Fri, 19 Jun 2009 22:18:49 +0000 (22:18 -0000)]
Fix typo in changelog

svn path=/trunk/mono/; revision=136528

15 years ago2009-06-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 19 Jun 2009 22:18:34 +0000 (22:18 -0000)]
2009-06-19 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Add new mono_verifier_verify_full_table_data
function that perform the offline metadata verification steps.

* metadata-verify.c (verify_typedef_table): Move some checks to
verify_typedef_table_full and make it been called by new function
mono_verifier_verify_full_table_data.

* pedump.c: Call mono_verifier_verify_full_table_data.

* verify-internals.h: Export mono_verifier_verify_full_table_data as
part of the internal API.

svn path=/trunk/mono/; revision=136527

15 years ago2009-06-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 19 Jun 2009 22:18:18 +0000 (22:18 -0000)]
2009-06-19 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (typedef_is_system_object): Fix System.Object
check.

* metadata-verify.c (verify_implmap_table): Fix implmap invalid
flags bits. SupportLastError was confused as bit 7 instead of 6.

* metadata-verify.c (verify_implmap_table): Fix import scope verication
to check against the module ref table instead of module.

* metadata-verify.c (verify_implmap_table): Fix corlib check.

* pedump.c: Call mono_image_load_names.

svn path=/trunk/mono/; revision=136526

15 years ago2009-06-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 19 Jun 2009 22:17:57 +0000 (22:17 -0000)]
2009-06-19 Rodrigo Kumpera  <rkumpera@novell.com>

* image.c: Extract mono_image_load_names from do_mono_image_load.

* metadata-internals.h: Export mono_image_load_names as part of
the internal API.

svn path=/trunk/mono/; revision=136525

15 years ago * src/**/*, tests/**/*: Sync with DbLinq r1180. Gets unit tests into
Jonathan Pryor [Fri, 19 Jun 2009 21:14:10 +0000 (21:14 -0000)]
* src/**/*, tests/**/*: Sync with DbLinq r1180.  Gets unit tests into
  a state (i.e. no release tests fail within NUnit), fixes several
  bugs, massive code cleanup (#if removal), EntitySet<T> fixes,
  removes some locale dependency issues, predicate building,
  performance improvements, and likely more.  Remove src/VisualMetal;
  it's no longer used.
* Makefile (update-dblinq): Exclude more files so that there's less
  "garbage" files to review on the next update.

svn path=/trunk/mcs/; revision=136523

15 years ago2009-06-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Fri, 19 Jun 2009 20:20:35 +0000 (20:20 -0000)]
2009-06-19 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebConnection.cs: make sure we don't open a new socket if the
request is aborted before we establish the connection. Fixes bug
#514591.

* HttpWebRequest.cs: new property to return abort status. Invoke the
abort handler before doing anything else when Abort() is called for
the first time.

svn path=/trunk/mcs/; revision=136516

15 years ago2009-06-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 19 Jun 2009 18:14:45 +0000 (18:14 -0000)]
2009-06-19  Zoltan Varga  <vargaz@gmail.com>

* tramp-ppc.c (mono_arch_create_trampoline_code): Fix the ppc build.

svn path=/trunk/mono/; revision=136505

15 years ago2009-06-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 19 Jun 2009 18:01:12 +0000 (18:01 -0000)]
2009-06-19  Zoltan Varga  <vargaz@gmail.com>

* mini-ops.h: Use TARGET_POWERPC define for consistency.

* patch-info.h: Add 'MSCORLIB_GOT_ADDR' patch type.

* aot-compiler.c aot-runtime.c: Put the mscorlib got address into the
second got slot of every aot image.

* aot-compiler.c aot-runtime.c mini-trampolines.c: Add support for
aot on platforms with function pointers.

* mini-ppc.h mini-ppp.c cpu-ppc.md exceptions-ppc.c tramp-ppc.c: Add
support for aot/full aot on ppc/ppc64.

svn path=/trunk/mono/; revision=136504

15 years ago2009-06-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 19 Jun 2009 17:52:40 +0000 (17:52 -0000)]
2009-06-19  Zoltan Varga  <vargaz@gmail.com>

* tramp-<ARCH>.c (mono_arch_patch_plt_entry): Add 'got' and 'regs'
arguments which are needed on ppc.

* tramp-arm.c (mono_arch_nullify_class_init_trampoline): Add 'regs'
argument.

* mini-trampolines.c aot-runtime.c: Update after the above changes.

svn path=/trunk/mono/; revision=136502

15 years agoRemoved debugging printf statement.
Massimiliano Mantione [Fri, 19 Jun 2009 16:53:07 +0000 (16:53 -0000)]
Removed debugging printf statement.

svn path=/trunk/mono/; revision=136500