Compare commits

...
Author SHA1 Message Date
Zoltan Varga b7e1c9d120 Make the name of the ElementAddr () wrappers include the rank and element size to avoid sharing them when using full-aot. 2012-11-16 13:58:47 +00:00
Miguel de Icaza f08f8a27bf Fix invocation to syslog 2011-07-25 19:13:16 -04:00
Zoltan Varga 9c27d54246 Fix 2.6 build. 2011-07-24 20:50:42 +02:00
Zoltan Varga 769f316c49 Fix a crash in the soft-float decompose code when a branch following an fcompare is optimized away. Fixes #705186. 2011-07-24 20:48:09 +02:00
Zoltan Varga ec866fff45 Add a test for 7cb704d9a9. 2011-07-12 03:22:31 +02:00
Zoltan Varga ced2c6cfac Avoid register allocation problems when a try clause is nested inside a handler block. 2011-07-12 03:20:12 +02:00
Zoltan Varga 15b7c6901f Fix the length of r4const on arm. 2011-07-11 17:11:17 +02:00
Zoltan Varga 125b235380 Apply a workaround for a gcc 4.6 problem on arm.
Conflicts:

	mono/mini/mini-trampolines.c
2011-06-15 17:33:28 +02:00
Lluis Sanchez eb76a86876 [Web Services] Fix regression caused by previous commit
Fixes a regression caused by the implementation of support
for optional parameters. GlobalIndex was not being set
when using SOAP RPC protocol.
2011-05-06 18:43:50 +02:00
Zoltan Varga 04fd373614 Implement GHashTable iterators. 2011-05-04 04:18:23 +02:00
Zoltan Varga 054b22b8ea Implement BSTR icalls even when COM is disabled. Fixes #690255. 2011-05-03 01:05:21 +02:00
Zoltan Varga 3945aed889 Fix support for parameters with generic constraints in Type.IsAssignableFrom (). Fixes #691119. 2011-05-02 09:47:11 +02:00
Lluis Sanchez 0492784819 [Web.Services] Add support for optional parameters
Non-nullable web service parameters can be made optional by
adding an additional parameter with the same name and a
'Specified' suffix. This was supported when serializing
classes, but not when serializing web service parameters.
This might fix bug 688496.
2011-04-28 18:38:15 +02:00
Andrew Jorgensen 9199b779ad get-monolite-latest now pulls a versioned archive
In order to ensure that monolite actually works you need to ensure that
the corlib in it has the same version as your runtime.  Monolite
archives are now versioned monolite-MONO_CORLIB_VERSION-DATE.
2011-04-18 09:40:52 -06:00
Zoltan Varga e2ba528452 Fix Object.MemberwiseClone () on arrays. Fixes #688033. 2011-04-17 23:51:43 +02:00
Zoltan Varga c711c87c0e Pass HAVE_ARMV6 to libgc on darwin too. 2011-04-09 15:57:12 +02:00
Zoltan Varga a166a78217 Add a membar to libgc's UNLOCK () on arm. Fixes #683409. 2011-04-09 15:55:18 +02:00
Kenneth Skovhede 5e60d75bb5 Fix the handling of the '%f' descriptor in DataConverter.Unpack (). Fixes #683712. 2011-04-03 06:34:04 +02:00
Rodrigo Kumpera 73dc0553b7 Fix win32 file name canonicalization.
* mono-path.c (mono_path_canonicalize): Properly canonicalize
	non UNC paths with an extra backslash. Eg:
	c:\foo\\bar was been canonicalized to c:\\foo\bar.

	This was breaking assembly loading in some rare cases.
2011-04-01 16:54:14 -03:00
Zoltan Varga 5d5011cb1f Fix the previous change. 2011-03-30 05:26:57 +02:00
Zoltan Varga 648880d967 Call SleepEx in a loop in the Thread.Sleep () icall, to avoid a race when the sleep is interrupted. Fixes #683519. 2011-03-30 05:08:48 +02:00
Ankit Jain c399647993 [xbuild] Allow skipping target framework moniker lookup.
* tools/xbuild/xbuild/4.0/Microsoft.Common.targets
(GetReferenceAssemblyPaths): Don't look up framework directories
for $(TargetFrameworkMoniker) is $(_TargetFrameworkDirectories) is
already defined. This can be used to override moniker lookups.
2011-03-29 18:49:48 +05:30
Zoltan Varga 6d45f250a4 Fix a case where class->instance_size was not set for dynamic classes. 2011-03-28 08:32:20 +02:00
Marek Habersack 13ab89e724 [asp.net] Update of fix for bug #648080. Properly populate embedded resources cache 2011-03-23 02:59:14 +01:00
Sebastien Pouliot 5e5272778d Fix randomly failing unit test
* MachineKeySectionUtilsTest.cs: Do not assume xor will change a byte
2011-03-23 02:58:38 +01:00
Marek Habersack febb8f18c9 [asp.net] Part of fix for bug #649546. A partial rewrite of the web/script resource handler.
Backport of commit a9cb57cc13

    * System.Web/System.Web.Handlers/AssemblyResourceLoader.cs: AssemblyResourceLoader/ScriptResourceHandler must
      always generate the same URL for every assembly+resource pair, or otherwise the browser would re-fetch
      the resource in situations where it is not desired (e.g. during an async request to the server to update
      a panel).
      The generated URLs are not encrypted using real encryption, just hashed.
      In addition, the handler code got modernized a bit.

    * System.Web.Extensions/System.Web.UI/ScriptManager.cs: scriptStartupBlock is a 3.5+ thing

    * System.Web.Extensions_1.0/Makefile: use the 1.0 Microsoft AJAX library for this compat assembly

    * System.Web/System.Web.Util/MachineKeySectionUtils.cs: made GetValidationKey public
2011-03-23 02:58:15 +01:00
Marek Habersack 19d23b2600 [asp.net] make sure the string we pass to DecryptAssemblyResource is a valid Base64 string
Backport of commit 2a6bc369a3
2011-03-23 02:57:57 +01:00
Marek Habersack 237a433920 [asp.net] A few moves/changes following previous patch review
Backport of commit 21d2c6aedb

    * Makefile: Compile tests with TEST defined (to include System.Web.Util.
    MachineKeySectionUtils unit tests)
    * System.Web.dll.sources: Move MachineKeySectionUtils.cs from System.
    Web.Configuration_2.0 to System.Web.Util
    * System.Web_test.dll.sources: Move MachineKeySectionUtilsTest.cs from
    System.Web.Configuration_2.0 to System.Web.Util

    * System.Web.Configuration_2.0/MachineKeySection.cs: Adjust using
    clauses. Uncomment some code. Fix TripleDES versus 3DES for Validation
    under NET_4_0. Remove 'private' on fields/methods.
    * System.Web.Handlers/AssemblyResourceLoader.cs: Adjust using clauses
    * System.Web.Security/MembershipHelper.cs: Adjust using clauses
    * System.Web.Security/RolePrincipal.cs: Adjust using clauses
    * System.Web.SessionState_2.0/SessionId.cs: Adjust using clauses
    * System.Web.UI/LosFormatter.cs: Adjust using clauses.
    * System.Web.Util/MachineKeySectionUtils.cs: Moved from System.Web.
    Configuration_2.0. Rename namespace and remove 'internal' on type
    declaration

    * Test/System.Web.Util/MachineKeySectionUtilsTest.cs: Moved from Test/
    System.Web.Configuration/MachineKeySectionTest.cs. Add test case for
    TripleDES versus 3DES
2011-03-23 02:57:32 +01:00
Marek Habersack f5501ef475 [asp.net] Normalization of cryptographic uses in asp.net.
Backport of commit a22389fde2
    Normalization of cryptographic uses in asp.net

    * System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:
    Remove key length check and generic key generation.

    * System.Web.Configuration_2.0/MachineKeySection.cs: Add support for 4.0
    ValidationAlgorithm and the use of custom algorithms (validation and
    decryption). Allow the use of any, valid, key length (based on the
    algorithm). Let each algorithm creates its own key (e.g. special needs,
    default length...)

    * System.Web.Configuration_2.0/MachineKeySectionUtils.cs: Remove key
    generation (from random) code and 192bits key length hack (won't work
    with custom algorithms). Add support for new (4.0) algorithms, including
    custom ones. Provide uniform/shared code to Encrypt/Decrypt, Sign/Verify
    and EncryptSign/VerifyDecrypt using MachineKeySection data.

    * System.Web.Configuration_2.0/MachineKeyValidation.cs: Add new (4.0)
    values.

    * System.Web.Configuration_2.0/MachineKeyValidationConverter.cs: Add
    support for new (4.0) algorithms.

    * System.Web.Handlers/AssemblyResourceLoader.cs: Use the new common
    cryptographic code and base64 the encrypted data.

    * System.Web.Security/FormsAuthentication.cs: Use the new common
    cryptographic code and base64 the signed and/or encrypted data.

    * System.Web.Security/MembershipHelper.cs: Use the new common
    cryptographic code - this should be 100% compatible with existing data.

    * System.Web.Security/RolePrincipal.cs: Use the new common cryptographic
    code.

    * System.Web.Security/SqliteMembershipProvider.cs: Adapt code for
    internal API change.
2011-03-23 02:57:09 +01:00
Zoltan Varga 3c24090fc6 Fix the length of 'break' on ppc. 2011-03-21 20:11:25 +01:00
Zoltan Varga a9e36dc6ce Emit all AOT symbols to 4 bytes on apple. 2011-03-18 16:51:31 +01:00
Zoltan Varga 98f4357c92 Switch to the domain of the assembly in question while executing CMD_ASSEMBLY_GET_TYPE, so referenced assemblies are found. Fixes #679586. 2011-03-17 20:08:18 +01:00
Zoltan Varga c3e6d8a90c Fix the title of the Mono.Debugger.Soft assembly monodoc. 2011-03-17 01:28:18 +01:00
Zoltan Varga cc08e3c948 Fix support for generic virtual thunks in full-aot. 2011-03-16 14:45:12 +01:00
Zoltan Varga 03c1afc838 Add a cache for virtual generic thunks to avoid freeing those created by AOT. 2011-03-16 14:40:55 +01:00
Zoltan Varga 4197f5e3f6 Put back the definition of MONO_ARCH_USE_OP_TAIL_CALL in mini-amd64.h which got removed by mistake by a previous commit. 2011-03-14 23:27:14 +01:00
Zoltan Varga 9e75c2b641 Avoid calling class cctors during JITting when the same class needs initialization more than once during a method. Fixes #679467. 2011-03-14 23:13:08 +01:00
Ankit Jain 3d7aa05bdf [xbuild] Microsoft.Common.targets - import Before/After targets files.
With this, Microsoft.Common.targets will import
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportBefore\*
at the beginning of the file and
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportAfter\*
at the end of the file.

So, this would import all files from (eg.):
$prefix/lib/mono/xbuild/4.0/Microsoft.Common.targets/ImportBefore/

This can be disabled by setting the bool properties -
$(ImportByWildcardBeforeMicrosoftCommonTargets) and
$(ImportByWildcardAfterMicrosoftCommonTargets).
2011-03-12 02:17:49 +05:30
Ankit Jain d0cafdec22 [xbuild] Throw ArgumentNullException if target name is null 2011-03-12 02:17:46 +05:30
Ankit Jain 9ecdedb14f [xbuild] Emit list of projects in the .sln.proj
Emit list of projects in the solution as @(ProjectReference) items
in the generated .sln.proj file. This would be useful for extending
solution builds.
2011-03-12 02:17:43 +05:30
Ankit Jain 3a4c85cef6 [xbuild] Don't report Imports ignored because of false conditions. 2011-03-12 02:17:40 +05:30
Ankit Jain 23c41a3b3c [xbuild] xbuild/Main.cs - remove unnecessary catch/throw. 2011-03-12 02:17:37 +05:30
Ankit Jain ab09dff5c2 [xbuild] Set ProjectFile and TargetName metadata on target outputs.
Set "MSBuildProjectFile" and "MSBuildTargetName" metadata on target outputs.
2011-03-12 02:17:33 +05:30
Ankit Jain fb3e725c92 [xbuild] Handle unknown exceptions.
Re-throw any unknown exceptions.
* Project.cs: Log the exception, doing it here also, so that direct
project.Build(..) call failures also get logged.
* Engine.cs: Log the unknown exception only if the build is running.
This allows for the case when Project.Build caught it and ended the
build.
2011-03-12 02:17:30 +05:30
Ankit Jain a277e24774 [xbuild] Function names are case insensitive. 2011-03-12 02:17:27 +05:30
Ankit Jain 4d9e096d73 [xbuild] Evaluate Import with MSBuildThisFile* properties set. 2011-03-12 02:17:24 +05:30
Ankit Jain 6c03bcacd3 [xbuild] Fix test on windows.
AssignTargetPathTest.TestLink : Fix test on windows
2011-03-12 02:17:21 +05:30
Ankit Jain 2ec3380b56 [xbuild] Clean up test logs.
Remove unnecessary debug spew for tests that pass.
2011-03-12 02:17:18 +05:30
Zoltan Varga 34519d2179 Fix the previous change. 2011-03-10 01:03:33 +01:00
Zoltan Varga 155b3ce2b6 Mark threads created when calling from native code into the runtime as background threads. Fixes #678164. 2011-03-10 01:02:25 +01:00
Ankit Jain 703d62276b [xbuild] Implement FileLogger . Fix #676650 .
* FileLogger.cs: Implement

Add corresponding command line args for file loggers.
Update man page.
2011-03-08 18:28:35 +05:30
Ankit Jain cdb04944be [xbuild] ConsoleLogger - parse params only on Initialize. 2011-03-08 18:28:35 +05:30
Ankit Jain 99cfcf9b40 [xbuild] LogExtensions.LogError - disambiguate.
* LogExtensions.cs(LogError): Rename the 'filename' overload to ..
(LogErrorWithFilename): .. this.
* Engine.cs: Track api changes.
2011-03-08 18:28:34 +05:30
Ankit Jain 9b2c95d2fa [xbuild] Set @(CollectedBuildOutput) for projects build from .sln . 2011-03-08 18:28:34 +05:30
Ankit Jain ba1a79fe7b [xbuild] Add missing api for Target.
* Target.cs (Outputs): Add new public property by this name. And rename
old one to ..
(OutputsAsITaskItems): .. this.
2011-03-08 18:28:33 +05:30
Ankit Jain 86b5bae4ea [xbuild] Fix bug #676671. Raise AnyEvent . 2011-03-08 18:28:33 +05:30
Ankit Jain e07d1c9236 [xbuild] Add hooks for extending .sln builds.
Add hooks in the .sln.proj generated from .sln files.

1. It imports
   "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportBefore\*"
   and
   "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportAfter\*"
   This is done only in case of 4.0 projects, as imports with wildcard
   is a 4.0 feature.

2. And it imports before.Foo.sln.targets and after.Foo.sln.targets from
   the same dir as the .sln file.
2011-03-08 18:28:32 +05:30
Ankit Jain 45d9fbd241 [xbuild] Update man page with info about FrameworkList.xml 2011-03-08 18:28:32 +05:30
Ankit Jain 9867cadab1 [xbuild] Add support for wildcards in Import.
With 4.0 profile, <Import ..> can have wildcards. This works correctly
with our multiple MSBuildExtensionsPath also.

If the import references $(MSBuildExtensionsPath) property, then the
each extension path is used to resolve the import, and the search
stop as soon as an import is found.

If such an import uses wildcard, then the search stops at the
extension path in which *atleast one* file got imported.
And the import fails if any invalid project file is encountered.

This commit also heavily refactors the Import code to simplify
in the face of the new features, and improves error detection
and reporting.

ImportTest.cs: Add test for wildcards.
2011-03-08 18:28:31 +05:30
Ankit Jain 23f52230dd [xbuild] ImportedProject - remove unnecessary catch/throw
Remove the catch { throw; }, this truncated the stack also.
2011-03-08 18:28:31 +05:30
Ankit Jain 96f935bd33 [xbuild] ImportCollections.TryGetImport and other fixes 2011-03-08 18:28:30 +05:30
Ankit Jain bdf6bcaa3a [xbuild] Expression.ParseAs<T> - new method 2011-03-08 18:28:30 +05:30
Ankit Jain 1d8ef0f745 [xbuild] DirectoryScanner.HasWildcard - new method 2011-03-08 18:28:29 +05:30
Ankit Jain fce927c30d [xbuild] Log build errors and raise events even if a build fails. 2011-03-08 18:28:29 +05:30
Ankit Jain 2549a695cc [xbuild] Add support for Before/AfterTargets.
A target 'foo' can have BeforeTargets or AfterTargets attributes,
which list the targets before or after, 'foo' should be run.
This is a 4.0 feature.

* Project.cs (ProcessBeforeAndAfterTargets): New.
* Target.cs: Run the before/after targets in the correct order.

* TargetTest.cs (TestBeforeAndAfterTargets): New.
2011-03-08 18:28:29 +05:30
Ankit Jain b65459748a [xbuild] Fix warnings. 2011-03-08 18:28:28 +05:30
Ankit Jain e033ee59f8 [xbuild] Fix assembly name comparison when resolving references.
AssemblyResolver.cs (AssemblyNamesCompatible): If either of the
references don't have a public key token, then ignore that.
2011-03-08 18:28:28 +05:30
Ankit Jain bcffafea5a [xbuild] Vbc task - make error column check a little non-specific. 2011-03-08 18:28:27 +05:30
Ankit Jain 6ac78faca2 [xbuild] Exec task - add support for custom error/warning regex.
Add 4.0 api, CustomErrorRegularExpression and
CustomWarningRegularExpression.
2011-03-08 18:28:27 +05:30
Zoltan Varga 17d7dbae7a Avoid an assert when returning nullable null's from sdb invokes. Fixes #676587. 2011-03-07 12:02:30 +01:00
Zoltan Varga e2a82df3c6 Fix 2.6 build on windows with old glib versions. 2011-03-01 17:01:14 +01:00
Ankit Jain 0e71e1c4eb [xbuild] ToolTask - make error column check a little non-specific. 2011-02-28 17:13:04 +05:30
Ankit Jain 417710b433 [xbuild] Make Engine.DefaultToolsVersion 2.0 .
Engine.DefaultToolsVersion is used when a project is unable
to determine a suitable ToolsVersion to use. Change this fallback
version to 2.0 . This allows vs2005 (.net 2.0) projects which
don't have ToolsVersion explicitly set, to build. Newer projects
set ToolsVersion by default.
2011-02-28 17:13:01 +05:30
Ankit Jain cada63f128 [xbuild] ResolveAssemblyReference - log task parameters 2011-02-28 17:12:58 +05:30
Ankit Jain a20ee357c2 [xbuild] ResolveAssemblyReference - add missing api. 2011-02-28 17:12:55 +05:30
Ankit Jain 4185cbf286 [xbuild] GetReferenceAssemblyPaths - add missing license header. 2011-02-28 17:12:52 +05:30
Ankit Jain 66aa56de6c [xbuild] Add support for multi-targeting arbitrary frameworks.
ToolsVersion 4.0 supports targeting arbitrary frameworks defined
by FrameworkList.xml files and referenced by $(TargetFrameworkMoniker),
which is of the format:
 Identifier,Version=<version>[,Profile=<profile>]

built as:
 $(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion)[,Profile=$(TargetFrameworkProfile)]

eg. '.NETFramework,Version=v4.0' .

Frameworks are searched for in (order):

  1. Paths specified in the environment variable $XBUILD_FRAMEWORK_FOLDERS_PATH
  2. /Library/Frameworks/Mono.framework/External/xbuild-frameworks on Mac OSX.
  3. MSBuild property $(TargetFrameworkRoot)
  4. $prefix/lib/mono/xbuild-frameworks (default location)

.NET frameworks 2.0/3.0/3.5/4.0 have corresponding FrameworkList.xml
files now, which allows projects to target them. Custom frameworks like
MonoDroid can install suitable FrameworkList.xml files, and projects
can target them using the correct $(TargetFrameworkIdentifier) and
$(TargetFrameworkVersion).

Update man page.
2011-02-28 17:12:49 +05:30
Ankit Jain d163c8a201 [xbuild] ToolTask - add missing api
* Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
(GetProcessStartInfo): Add missing api. This allows more control
over the execution of the tool.
2011-02-28 17:12:46 +05:30
Ankit Jain 83d7088f17 [xbuild] Add missing property to Error/Warning tasks. 2011-02-28 17:12:43 +05:30
Ankit Jain 5ca8d8df84 [xbuild] Add $(MSBuildToolsRoot) reserved property. 2011-02-28 17:12:41 +05:30
Ankit Jain 1664bcbcfc [xbuild] Remove property if Output TaskParameter is null.
If the TaskParameter for Output of a task is null, then remove
the corresponding property.
Add relevant test.
2011-02-28 17:12:38 +05:30
Zoltan Varga f1165b2e4b Fix stop_debugger_thread () on windows. Shutdown both ends of the connection socket since shutting down only the receive part doesn't seem to work on windows. Wait for the debugger thread to exit in a loop, since we don't use condvars on windows. 2011-02-24 19:17:01 +01:00
Ankit Jain bc18bbdf9e [xbuild] Rename method to make it more consistent.
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssemblyResolver.cs
(GetAssemblyNameFromFile): Rename to ..
(TryGetAssemblyNameFromFile): .. this, to make it consistent with
the similar method TryGetAssemblyNameFromFullName .
Track api changes.
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/ResolveAssemblyReference.cs:
Track api changes.
2011-02-24 18:37:06 +05:30
Ankit Jain d35a344227 [xbuild] Fix bug #674630.
Handle errors in trying to create AssemblyName from invalid
full names.
2011-02-24 18:36:51 +05:30
Zoltan Varga 157c94f54f Only use memory barriers on arm when running on armv6 or later. 2011-02-24 14:02:58 +01:00
Zoltan Varga 6471b6ed26 Revert "Properly align the stack in the arm generic trampoline."
This reverts commit 2e0755bccd.

This is not needed on 2.6 since MonoLMF is bigger by one word.
2011-02-24 13:22:50 +01:00
Zoltan Varga 2fe7772a09 Disallow EventType.Step in EnableEvents (). Fixes #674490. 2011-02-24 01:09:12 +01:00
Zoltan Varga dd157a08ff Fix 2.6 arm build. 2011-02-23 17:25:58 +01:00
Ankit Jain 149267f9dc [xbuild] Fix bug #674337.
Use appropriate path separator for handling environment variable
MSBuildExtensionsPath.
2011-02-23 21:30:26 +05:30
Zoltan Varga 34a908c54e Fix the 2.6 build. 2011-02-23 11:28:28 +01:00
Ankit Jain f00653d15b [xbuild] Add new reserved properties $(MSBuildThisFile*).
Also, fixes bug #668955.

Add new reserved properties $(MSBuildThisFile*).
Unlike the $(MSBuildProjectFile), the *This* properties are evaluated
in the context where they were used. Eg. if such a property was
referenced in a PropertyGroup, then it would refer to the file
containing the that definition, and *not* the main project file.
It applies to items and tasks/targets also.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildChoose.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildItemGroup.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildPropertyGroup.cs:
Add DefinedInFileName property.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs:
Add a stack to keep track the "current" file, which is used to set
the $(MSBuildThisFile*) properties. Update the properties on
Push/Pop.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/GroupingCollection.cs:
Push/Pop the "current" file, when evaluating a property/item/etc.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Target.cs:
Push/Pop the "current" file, when building. This ensures that the
references in the target definition get evaluated correctly.

* Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine/ProjectTest.cs:
Add corresponding test.
2011-02-23 01:40:39 +05:30
Ankit Jain 724ac0ffee [xbuild] Use the env var $MSBuildExtensionsPath before trying other paths.
Change the order of the "search paths", so that the environment
variable can always override it.
Update the man page to reflect the change.
2011-02-22 21:42:58 +05:30
Zoltan Varga 3a75711439 Avoid returning TRUE from mono_domain_finalize () if it is interrupted by sdb. Fixes #673592. 2011-02-22 05:36:48 +01:00
Zoltan Varga 95daefa8cb Fix arm thunk creation in dynamic methods. Fixes #673828. 2011-02-22 00:53:47 +01:00
Zoltan Varga 7bd422cfee Implement mono_memory_barrier () and OP_MEMORY_BARRIER for ARM. 2011-02-20 03:23:52 +01:00
Zoltan Varga 27a4ce6645 Make the var/mvar caches per-image, since the generic params they refer to can be freed on domain unload. Fixes part of #672939. 2011-02-20 01:57:27 +01:00
Zoltan Varga ddba1985ce Reorganize the way jump_target_hash is stored in the JIT. Free entries in jump_target_hash which point inside a dynamic method when it is freed. Fixes #669815. 2011-02-19 22:24:19 +01:00
Zoltan Varga 9c868e2ee4 Set cfg->uses_rgctx_reg in another code path too on arm, to fix --regression generics.exe. 2011-02-18 23:09:20 +01:00
Rodrigo Kumpera d4bfed5d7d Make sure we keep a root for the delegates when calling them.
* method-to-ir.c (mono_emit_method_call_full): Make sure
	we keep a root for delegates when calling them using the
	fast delegate dispatch.

	Fixes #667921
2011-02-17 22:16:04 +01:00
Ankit Jain f473fca6ac [xbuild] Fix bug #671700, resource naming in presence of "Link".
AssignTargetPath.cs: If 'Link' metadata is present, then use that
as the target path.

Add relevant test.
2011-02-15 20:17:36 +05:30
Gonzalo Paniagua Javier 20e6ad1640 [HttpListener] UserHostName includes the port. 2011-02-14 14:37:55 -05:00
Gonzalo Paniagua Javier ed3e186157 [HttpWebRequest] EndGetResponse already does this. 2011-02-14 14:37:49 -05:00
Gonzalo Paniagua Javier 0d6e2095a3 [HttpWebRequest] Use the timeout in GetResponse()
The timeout was not being used in GetResponse.
	Fixes bug #603794.
2011-02-13 15:02:47 -05:00
Gonzalo Paniagua Javier 518782001a [HttpWebRequest] Avoid nullref on empty cookie header.
If the Set-Cookie header is empty, the cookie instance is not created.
	Fixes bug #670189.
2011-02-13 14:55:34 -05:00
Alexandre Mutel bbf30a6cbc Fix sizeof(T) in non-gshared code. Fixes #580189. 2011-02-13 16:19:19 +01:00
Gonzalo Paniagua Javier 29d59f412c [HttpListener] Avoid multiple calls to Close()
HttpListenerResponse could be calling HttpConnection.Close() more than
	once.
2011-02-13 07:09:26 -05:00
Zoltan Varga 6af25967d8 Fix reading of cattr arguments of type Type[]. Fixes #670331. 2011-02-13 04:25:11 +01:00
Gonzalo Paniagua Javier 488c19bc1c [gzip] Allow partial flush
When Flush() is called explicitly, do a Z_PARTIAL_FLUSH to force gzip
	into giving us whatever is available. Less efficient, but compatible
	with MS.
2011-02-12 00:06:30 -05:00
Zoltan Varga 5818b0bfe2 Make the wait in the finalizer thread alertable to fix sdb on windows. Fixes #670619. 2011-02-11 05:55:20 +01:00
Zoltan Varga 2f10c5eecc Change some Sleep(0)'s to Sleep(1) in the soft-debugger code to avoid 100% cpu utilization on windows. 2011-02-11 01:35:10 +01:00
Damien Diederen d1c7b1add2 MIPS: Ignore float->int overflow behaviour, as on PPC, ARM, and SPARC
From the comment:

$TARGET handles overflow by clipping, but this test assumes no overflow
handling.  According to ECMA the result of float->int conversion is undefined
if overflow occurs, so both behaviours are valid.

Commit contributed under the MIT/X11 license.
2011-02-11 00:15:39 +01:00
Damien Diederen ba12aeafe5 MIPS: Fix unboxing trampolines for functions returning value types
Generated methods always place 'this' in a0, but unboxing trampolines
currently bump a1 for functions returning value types (the register
assignments for 'this' and return area pointers probably got swapped
at some point, but the trampoline generator was not updated).

Fix that by always bumping a0.

Commit contributed under the MIT/X11 license.
2011-02-11 00:15:26 +01:00
Damien Diederen 64e3e3174d MIPS: Use SLTU to implement COND_EXC_LE_UN (Exception when <= unsigned)
The current code generator uses a SUBU/BLEZ combination, but this
breaks for non-zero-based arrays.  Given a lower bound 'b', length
'l', and an index 'i', Mini generates:

  real_i = i - b;
  COND_EXC_LE_UN(l, real_i);

Without this patch, the backend generates for e.g. b=42, l=1 and i=0:

  SUBU real_i, 0, 42     => -42
  SUBU at, 1, real_i     => 43 (U only means "no trap.")
  BLEZ at, throw         => No throw because at is positive!

This causes the following sequence to be used instead:

  SUBU real_i, 0, 42     => -42
  SLTU at, real_i, 1     => 0 (Unsigned '<'; real_i is a large value)
  BEQ  at, zero, throw   => Throw.

Commit contributed under the MIT/X11 license.
2011-02-11 00:15:15 +01:00
Damien Diederen 0d2da4d195 MIPS: Throw OverflowException if Int32.MinValue is divided by -1
Without this, the code throws the more general ArithmeticException
when the divisor is -1, independently of the dividend.  The check is
necessary because -Int32.MinValue does not fit into a 32-bit two's
complement integer.

Commit contributed under the MIT/X11 license.
2011-02-11 00:14:52 +01:00
Ankit Jain c4f2940621 [xbuild] Update Utilities.FromMSBuildPath from monodevelop.
Updating FromMSBuildPath also fixes a bug on windows.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Utilities.cs:
Move to..
* Microsoft.Build.Utilities/Mono.XBuild.Utilities/MSBuildUtils.cs:
.. this. Also, update FromMSBuildPath from monodevelop.
* Update Engine/* and Tasks/* to track the new api.
2011-02-11 03:03:48 +05:30
Gonzalo Paniagua Javier ce57520025 [Socket] Use the queue for generic read/write.
This fixes a bug reported in stackoverflow and mono-list that affects
	Mono 2.8 and Mono 2.6 when using BeginReceive/BeginSend overloads that
	take an ILIst<ArraySegment> argument.
2011-02-10 00:25:49 -05:00
Rodrigo Kumpera 260fd567e8 Cleanup the reference queue on domain unload.
* gc.c (finalize_domain_objects): Clear reference
	queues on domain unload after running all finalizers.
2011-02-09 11:39:14 +01:00
Zoltan Varga 5200ee60d7 Disable OP_INEG cfolding on 32 bit arches, as it breaks the LNEG decomposition. The previous special casing didn't work as the spill pass could insert a store between the ineg and the adc_imm. Fixes #670479. 2011-02-09 05:11:59 +01:00
Rodrigo Kumpera 9a5f028852 Fix reference queue under boehm.
* gc.c (finalizer_thread): Clean reference queues
	after finalizers are called to give boehm a chance
	to resurrect it.
2011-02-08 18:41:57 +01:00
Zoltan Varga 96cff60819 Fix the passing of vtype arguments for methods which return floats in soft-float mode. Fixes #668905. 2011-02-03 16:13:56 +01:00
Zoltan Varga 87f1239d91 Add support for --debug=casts to Array:SetValue (). Fixes #668851. 2011-02-03 00:42:20 +01:00
Zoltan Varga e8769c6bf4 Fix a warning. 2011-02-03 00:36:56 +01:00
Rodrigo Kumpera 856cfcf42a Fix dynamic method cleanup at shutdown.
* gc.c (mono_gc_cleanup): Cleanup all reference
        queues after regular finalization.

        * reflection.c: The dynamic method ref queue is finalized
        by the runtime itself.

        * runtime.c: Ditto.
2011-02-02 21:05:11 +01:00
Ankit Jain cf3b6be3d6 [xbuild] Handle non-existant 4.0 profile.
* class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Engine.cs:
Don't add 4.0 toolset.
* tools/xbuild/SolutionParser.cs: Don't use 4.0 ToolsVersion for
slnVersion=="11.0", let it default to 2.0 .
* tools/xbuild/xbuild/2.0/Microsoft.Common.targets:
* tools/xbuild/xbuild/3.5/Microsoft.Common.targets:
(GetFrameworkPaths): Emit an error instead of a warning if
TargetFrameworkVersion > 3.5 .
* tools/xbuild/xbuild/Microsoft.CSharp.targets: No 4.0 profile,
so don't set CscToolExe explicity. For both 2.0/3.5 gmcs will be
used.
2011-02-02 18:17:18 +05:30
Ankit Jain 3736760315 [xbuild] Warn for unknown toolsVersion only on build.
Emit warning for unknown toolsversion only on a build, and
*not* everytime the project file is parsed.

* class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs
(GetToolsVersionToUse): Add a 'emitWarning' bool param.
(Build): Call GetToolsVersionToUse () to ensure that a warning is
emitted in case of a unknown tools version.
2011-02-02 18:12:43 +05:30
Ankit Jain 2149376bd8 [xbuild] Improve error messages for condition evaluation.
Also, add new ExpressionEvaluationException class.
Wrap Expression*Exceptions in InvalidProjectFileException with
info about the full condition being evaluated.
2011-02-02 18:12:42 +05:30
Ankit Jain 61412177b1 [xbuild] Support short-circuiting in conditions. 2011-02-02 18:12:42 +05:30
Ankit Jain 02fdac65b4 [xbuild] Correctly set CscToolExe if TargetFrameworkVersion is not set.
* tools/xbuild/xbuild/Microsoft.CSharp.targets: $(CscToolExe)
is set depending on the value of $(TargetFrameworkVersion).
Since, $(TargetFrameworkVersion)'s default value is set
by MS.Common.targets, set $(CscToolExe) *after* importing
MS.Common.targets .
2011-02-02 18:12:41 +05:30
Ankit Jain 0a82f84066 [xbuild] Fix bug #665637.
Pass $(WarningsNotAsErrors) to Csc task.
2011-02-02 18:12:41 +05:30
Ankit Jain c984b3e284 [xbuild] Fix bug #665004. Honor /nologo option.
* tools/xbuild/Parameters.cs (DisplayVersion): Remove, not required.
2011-02-02 18:12:40 +05:30
Ankit Jain 7e881af38a [xbuild] Update Novell copyright. 2011-02-02 18:12:39 +05:30
Ankit Jain e436d80d1c [xbuild] Error out, if no target is found in a project. 2011-02-02 18:12:39 +05:30
Ankit Jain 2b94bbe89a [xbuild] Use the backing field directly to avoid evaluating again.
* Microsoft.Build.BuildEngine.Project.cs (InitializeProperties): Use
evaluatedProperties field instead of EvaluatedProperties property,
to avoid invoking a Reevaluate, since it is already in progress.
2011-02-02 18:12:38 +05:30
Ankit Jain 3e066c385d [xbuild] Fix bug #664349 .
* Microsoft.Build.BuildEngine/Project.cs (BuildInternal): Set needToReevaluate to
false, when reevaluating.
2011-02-02 18:12:38 +05:30
Ankit Jain 79a425b376 [xbuild] Add $(TargetDir) property.
Add $(TargetDir) and set TargetPath only if its not set already.
2011-02-02 18:12:37 +05:30
Ankit Jain e516b54de2 [xbuild] Clear the built targets cache on project unload.
Remove the entries for a project from the built targets cache, on
project unload.

* Microsoft.Build.BuildEngine/Engine.cs (ClearBuiltTargetsForProject): New.
* Microsoft.Build.BuildEngine/Project.cs (BuiltTargetKeys): Remove.
(RemoveBuiltTargets): Use Engine.ClearBuiltTargetsForProject .
* Microsoft.Build.BuildEngine/Target.cs: Track api changes.
*
2011-02-02 18:12:37 +05:30
Ankit Jain 7ce5ff1564 [xbuild] Copy metadata from Project items to target outputs.
Copy metadata from Project items to the corresponding target
outputs in MSBuild task.

Fix the corresponding test also.
2011-02-02 18:12:36 +05:30
Ankit Jain 8b2bd4c6fe [xbuild] Ensure trailing slash on some properties.
Ensure trailing slash on $(BaseIntermediateOutputPath) and
$(IntermediateOutputPath).
2011-02-02 18:12:36 +05:30
Ankit Jain 4e79a9f92b [xbuild] ConsoleLogger - Correctly indent multi-line messages.
Split and correctly indent multi-line messages in ConsoleLogger.
2011-02-02 18:12:35 +05:30
Ankit Jain dc91b4b914 [xbuild] Update man page, new search paths for extensions and .pc files. 2011-02-02 18:12:35 +05:30
Ankit Jain aad6d9ba29 [xbuild] Fix bug #663180, second part.
Fix the way RunningOnMac is detected (use `uname`=="Darwin"), thanks
to Michael Hutchinson.
And use "/Library/Frameworks/Mono.framework/External/pkgconfig" as a
search path for pkg-config files on MacOSX.

	* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Import.cs:
	Change the order of paths.
	* Microsoft.Build.Engine/Microsoft.Build.Engine.dll.sources:
	Use MS.Build.Tasks/Utilities.cs, for using RunningOnMac .
	* Microsoft.Build.Tasks/Microsoft.Build.Tasks/PcFileCache.cs:
	Look in "/Library/Frameworks/Mono.framework/External/pkgconfig"
	for .pc files, on Mac.
	* Microsoft.Build.Tasks/Microsoft.Build.Tasks/Utilities.cs
	(RunningOnMac): New.
2011-02-02 18:12:34 +05:30
Ankit Jain b85cabfa55 [xbuild] Fix bug #663159 .
Emit location information in error messages for condition parsing
errors.

	* Microsoft.Build.BuildEngine/Token.cs: Add position information.
	* Microsoft.Build.BuildEngine/ConditionParser.cs: Track api changes.
	Improve error messages.
	(ExpectToken): Rename to ..
	(IsAtToken): .. this, to better reflect its behavior.
	* Microsoft.Build.BuildEngine/ConditionTokenizer.cs: Track api
	changes and improve error messages.
	* Microsoft.Build.BuildEngine/ConditionFactorExpresion.cs: Track api
	changes
2011-02-02 18:12:34 +05:30
Ankit Jain 1247dcd0cb [xbuild] Sync *PcFileCache.cs changes from monodevelop. 2011-02-02 18:12:33 +05:30
Ankit Jain 776adbd305 [xbuild] Fix bug #663180 .
Add "/Library/Frameworks/Mono.framework/External/xbuild" to
MSBuildExtensionsPath on MacOSX.

From the bug report:
The purpose of this directory is to provide a place for third-party
installers to place extensions where they will not be removed by Mono
upgrades. MonoDevelop patches this into the xbuild MSBuildExtensionsPath
for builds within MD but it would be useful to have it work outside of MD.
2011-02-02 18:12:32 +05:30
Ankit Jain 70c6111f18 [xbuild] Fix failing test in msbuild.tasks . 2011-02-02 18:12:32 +05:30
Ankit Jain 751a9faaf8 [xbuild] Fix bug #662355.
Support reference aliases in Csc task.
2011-02-02 18:12:31 +05:30
Ankit Jain 3aeed17f00 [xbuild] Fix bug #660508 .
Use correctly escaped project+target names when
specifying project dependencies in the project
file generated from a .sln file.
2011-02-02 18:12:31 +05:30
Ankit Jain 1b3a28efa1 [xbuild] Emit /platform: for *mcs
Emit /platform:foo for the *mcs. Based on patch from
technomage1972 <[email protected]> .
2011-02-02 18:12:30 +05:30
Ankit Jain 58800e44ea [xbuild] Fix bug #646941. Add explicit System.Core for >=3.5 projects.
For projects targeting TargetFrameworkVersion >= 3.5, automatically
add a reference to System.Core . This can be controlled via two
properties:

 $(AddAdditionalExplicitAssemblyReferences) and
 $(AdditionalExplicitAssemblyReferences) .

This is used only for projects built with ToolsVersion=4.0 .
2011-02-02 18:12:30 +05:30
Ankit Jain d0c9312f52 [xbuild] Set default TargetFrameworkVersion=4.0 for ToolsVersion=4.0 2011-02-02 18:12:29 +05:30
Ankit Jain 3bc873f622 [xbuild] Add ResolveAssemblyReferencesDependsOn .
Add GetFrameworkPaths and PrepareForBuild as dependencies for
the ResolveAssemblyReferences target. This is required when it is
invoked directly from MD.

Patch from Michael Hutchinson ([email protected]).
2011-02-02 18:12:29 +05:30
Ankit Jain 5b9756a8b8 [xbuild] Reset cache of built targets, on a new project build.
All targets that get built are tracked by the engine, to avoid
unnecessary builds of targets. This should be reset on engine.Build,
unless it is explicitly requested *not to* reset it, via BuildFlags.
2011-02-02 18:12:28 +05:30
Ankit Jain bd56b0996f [xbuild] Reset ConsoleLogger when a build finishes.
MSBuild hosts like monodevelop, which use the same logger
for multiple builds, get errors/warnings from older builds.
So, reset them whenever the BuildFinished event is raised.

ILogger.Shutdown () is invoked when the host is about to quit,
according to msdn, so can't use that.
2011-02-02 18:12:28 +05:30
Ankit Jain 2f78e58743 [xbuild] Log TaskFinished even when task fails to initialize. 2011-02-02 18:12:27 +05:30
Ankit Jain b488da0766 [xbuild] Update regex to not require EndProject in a sln file.
In a solution file, a Project might not have a corresponding
EndProject. This seems to be supported by VS, so updating xbuild
to support that too. Updated the regex.
2011-02-02 18:12:27 +05:30
Ankit Jain e0b3ca675b [xbuild] Use files referenced by resx for dependency check.
For .resx resource files, check files referenced by the resx
file also, to determine whether to resgen it or not.

IsResgenRequired () has been taken from MonoDevelop
(main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MD1/MD1DotNetProjectHandler.cs)
2011-02-02 18:12:26 +05:30
Ankit Jain b5cf90bc81 [xbuild] Fix case sensitive environment variables for ToolTask.
Use ProcessStringDictionary in ToolTask for EnvironmentVariables,
as this retains the original case of the keys. Without this
environment vars would all be passed as lowercase!

This was removed in a previous patch by mistake.
2011-02-02 18:12:25 +05:30
Ankit Jain 44fceae20d [xbuild] Fix references to Microsoft.Build.* assemblies for 3.5 . 2011-02-02 18:12:25 +05:30
Marek Safar b3dc810a39 [637935] Fixed 3.5 version of msbuild dlls to reference 3.5 version of the engine
MONO_PATH does not work for subsequent dlls, so have to workaround it by
using full path for dlls in 3.5 profile which does not have it's own
mscorlib
2011-02-02 18:12:24 +05:30
Ankit Jain 11b58dfef7 [xbuild] Add ToolTask.EnvironmentVariables property.
* class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
	(EnvironmentVariables): New.
	(ExecuteTool): Merge EnvironmentVariables with
	EnvironmentOverride
	* class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/GenerateResource.cs
	(Resgen.Execute): Use EnvironmentVariables to set MONO_IOMAP=drive .
2011-02-02 18:12:24 +05:30
Ankit Jain 42e7314cd8 [xbuild] Fix a race condition in ToolTask.
* class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
 (ExecuteTool): When StartProcess returns, the process has already .Start()'ed
 If we subscribe to the output events after that, then for processes that
 finish executing before we can subscribe, we won't get the output/error
 events at all! So, pass the handlers to StartProcess itself, so that
 they get added before the process is started.
2011-02-02 18:12:23 +05:30
Rodrigo Kumpera 4d5523dd55 Align call instructions to make code patching SMP safe.
* mini-x86.c (emit_call): Align call instructions on
	3 mod 4 so the address is 4 bytes aligned and can't span
	two cache lines. This is required for proper SMP support
	as CAS is not atomic across cache lines.

	Fixes one of the crashes due to #667921.
2011-02-02 13:03:42 +01:00
Lucas Meijer 9592f6a001 make mono_print_thread_dump output to the visualstudio debugger window, for better debugger experience 2011-02-01 21:56:12 +01:00
Rodrigo Kumpera 3f8ee42b8c Don't use finalization to cleanup dynamic methods.
* reflection.c: Use a reference queue to cleanup
        dynamic methods instead of finalization.

        * runtime.c: Shutdown the dynamic method queue
        before runtime cleanup begins.

        * DynamicMethod.cs: No longer finalizable.

        * icall-def.h: Remove unused dynamic method icall.

        Fixes #660422

    Implement a reference queue API.

        * gc.c: A reference queue allows one to queue
        callbcks for when objects are collected.
        It allows for safe cleanup of objects that can
        only be done when it is effectively collected.
        The major difference with regular finalization
        is that the collector makes sure the object
        was collected - and can't be resurrected.

        * gc-internal.h: Export entrypoints for the
        new API.
2011-02-01 19:10:08 +01:00
Rodrigo Kumpera a3422f4ed4 Implement a reference queue API.
* gc.c: A reference queue allows one to queue
	callbcks for when objects are collected.
	It allows for safe cleanup of objects that can
	only be done when it is effectively collected.
	The major difference with regular finalization
	is that the collector makes sure the object
	was collected - and can't be resurrected.

	* gc-internal.h: Export entrypoints for the
	new API.
2011-02-01 19:02:04 +01:00
Zoltan Varga eb1286e640 When using xdebug, allocate all code from the code manager of the root domain. Hopefully fixes #666152. 2011-01-31 14:02:43 +01:00
Zoltan Varga e6da86c3d8 Mark a newly added test as !FULLAOT. 2011-01-30 09:13:21 +01:00
Zoltan Varga 7fd1c938e0 Clear the 'need_rgctx_tramp' flag when creating a synchronized wrapper. Fixes 2011-01-29 20:52:40 +01:00
Zoltan Varga 86bb898d94 Add an AtLeast version to sdb's VersionInfo class. 2011-01-28 06:29:11 +01:00
Gonzalo Paniagua Javier c0ac754039 [HttpListener] Set each cookie in its own header
Send a Set-Cookie header per cookie instead of a Set-Cookie2 with
	multiple cookies.

	Fixes bug #667550.
2011-01-27 15:47:34 -05:00
Zoltan Varga e2d284bcbd Fix AOT support for types in the EXPORTEDTYPE table. 2011-01-27 19:28:30 +01:00
Zoltan Varga d2b2f981a4 Fix the previous aot fix. 2011-01-25 17:03:08 +01:00
Gonzalo Paniagua Javier a53dabc979 [HttpListener] Fix incorrect 411 error
Don't send a 411 for unknown methods without content length.
	No need to assign input_stream until requested.

	Fixes bug #666251.
2011-01-21 23:59:41 -05:00
Zoltan Varga 8b6405ce2e Fix an assert which happens when a call is made to Nullable.Unbox from gshared code in AOT. 2011-01-22 03:16:33 +01:00
Bassam Tabbara 3c36184149 Fix for 666225 2011-01-21 21:01:06 -05:00
Zoltan Varga 6427bc0280 Only add imt items whose is_equal flag is set to the array passed to the full-aot imt thunk. 2011-01-21 02:06:58 +01:00
Zoltan Varga 8b451470fb Detect inifinite generic recursion differently in the AOT compiler. 2011-01-21 01:50:59 +01:00
Jb Evain 5241fd6fcb [bug] Prevent a GetMethodBody call on a dynamic method. Fixes 665788 2011-01-20 18:51:34 +01:00
Zoltan Varga 2e0755bccd Properly align the stack in the arm generic trampoline. 2011-01-20 05:36:37 +01:00
Zoltan Varga 16ff66d327 Add a TID field to ThreadMirror which returns the system thread id. 2011-01-20 02:14:41 +01:00
Zoltan Varga 2f00e4bbb2 Disable some of the FastCopy fast paths since they are racy. 2011-01-18 17:17:56 +01:00
Zoltan Varga 035c8587c0 Allow only primitive types/enums in RuntimeHelpers.InitializeArray (). 2011-01-18 16:42:36 +01:00
Zoltan Varga e34089d816 OP_LCOMPARE_IM has type 'L', not 'I'. Fixes #664630.
This is the same as 6c02c15153, but only for ia64, to avoid destabilizing the
branch.
2011-01-17 22:47:35 +01:00
Zoltan Varga eae291abd2 Avoid another case of infinite recursion in AOT. 2011-01-17 16:16:52 +01:00
Zoltan Varga e4e3b2066b Make OP_CHECK_THIS do a byte load on arm, since the source argument might point to a vtype if a vtype method is inlined. 2011-01-14 22:29:42 +01:00
Zoltan Varga 07d2feef30 Add null check to stelem_ref_check () jit icall. Fixes #664297. 2011-01-13 18:42:40 +01:00
Rodrigo Kumpera 68c88fa69f Fix array assignability to one of its generic interfaces.
* verify.c: mono_class_is_assignable_from can't handle
	IList<GTD<T>> x GTD[] since GTD[] won't have the right
	iface slots set. This isn't a problem for the runtime
	since GTD[] will never happen as it's an unrealizable type.

	Fixes #663815
2011-01-12 18:35:58 +01:00
Zoltan Varga 5c7b1c6c17 Implement VBByRefStr marshalling. Fixes #661917. 2011-01-03 22:24:49 +01:00
vvaradhan 1474dcaa9d ** Fixes #582838 - Based on Patch by Jeffrey Alvarez
<[email protected]>
	* DbDataAdapter.cs (Update): Fetch columnName from column-mapping if found one, otherwise use source column name to fetch parameter value.
2010-12-13 23:19:23 +05:30
vvaradhan c3fc19f278 Merge branch 'mono-2-6' of github.com:mono/mono into mono-2-6 2010-12-13 21:46:30 +05:30
vvaradhan 88bf3e0028 ** Fixes #456234 - Patch by [email protected]
* OdbcDataReader.cs (GetValue): Handle SQL_NO_TOTAL sanely and 	use corresponding Decoder.GetChars instead of Encoding.GetString.
2010-12-13 21:45:21 +05:30
vvaradhan 1635795acc ** Fixes #582732
* DataColumn.cs (Clone): Deep copy the ExtendedProperties collection.
       * XmlSchemaDataImporter.cs: Support import of extended properties.
       * XmlSchemaWriter.cs: Fix exception by writing the extended properties before simpletype element.
2010-12-13 21:43:45 +05:30
Zoltan Varga e620027ffe Fix handling of gshared methods declared in generic superclasses of nongeneric classes in stack traces. Fixes #658645. 2010-12-10 16:13:42 +01:00
Zoltan Varga 126c4e6844 Fix a backport problem. 2010-12-02 07:24:51 +01:00
Zoltan Varga 2afbe1ea5a Export mono_xdebug_flush (). 2010-12-01 14:39:54 +01:00
Daniel Sell 5e5514db2f Fix Expression.MakeBinary so it can return ArrayIndex nodes 2010-11-29 22:59:20 +01:00
Zoltan Varga 506b992411 Add support for the internal boehm-gc on OpenBSD 2010-11-29 17:11:04 +01:00
Robert Nagy 091ccd5c61 Add support for the internal boehm-gc on OpenBSD 2010-11-29 17:06:41 +01:00
Rodrigo Kumpera 556423c2cb Disable generic instance verification is security is off.
* verify.c: If security is not enabled don't perform
	instance verification as 2.6 SRE/mcs can't couple with it.

	Fix System.dll build regression.
2010-11-29 12:41:34 -02:00
Zoltan Varga 45bf3e9371 Fix crashes inside find_method_in_metadata (). Fixes #561728. 2010-11-26 07:28:14 +01:00
Zoltan Varga 99f99efb4a Fix stack alignment when resuming from a signal handler in the soft debugger. Fixes #647464. 2010-11-25 23:36:57 +01:00
Rodrigo Kumpera 4905ef1130 Handle invalid instantiation of generic methods.
* verify.c: Add new function to internal verifier API to check
	method instantiations.

	* reflection.c (mono_reflection_bind_generic_method_parameters):
	Check the instantiation before returning it.

	Fixes #655847
2010-11-25 14:37:46 -02:00
Rodrigo Kumpera 472119d943 Fix corlib testsuite crash.
* icall.c (ves_icall_Type_MakeGenericType): We can inflate
	into the gtd and the verifier function is not able to handle
	it.
2010-11-25 14:37:39 -02:00
Rodrigo Kumpera bde0d1f7aa Check generic instantions for constraint violations.
* class.c (mono_class_init): Check instantiations of generic
	instances.

	* icall.c (ves_icall_Type_MakeGenericType): Ditto.

	* verify.c: Add mono_verifier_class_is_valid_generic_instantiation
	to the internal API so generic instances can be checked.

	Fixes #654136
2010-11-25 14:37:23 -02:00
Gonzalo Paniagua Javier 50746e576e [Sockets] Support Remote/LocalEndPoint for AF_UNIX
We were not handling correctly the AF_UNIX family when getting the
	socket name or the peer name.

	Fixes bug #655637.
2010-11-24 17:45:51 -05:00
Zoltan Varga e360c1265f Bump the max size of the arm prolog to prevent overflows. 2010-11-16 23:30:51 +01:00
Andrew Jorgensen 4b3d212164 Add system.web.mvc2.pc 2010-11-11 11:12:41 -07:00
Andrew Jorgensen 8d59fb5070 Fix "make dist" for the .po files
* POTFILES.in: mcs lives under mono now, so the ../ gets dropped
2010-11-11 09:15:07 -07:00
Marek Habersack 371219c340 [asp.net] HttpRuntime.AppDomainAppPath may be null during tests, check it before using. 2010-11-10 18:33:02 +01:00
Marek Habersack a00fd0b39e [asp.net, routing] Fix for bug #651593, backport of 69461167e7 2010-11-10 18:21:05 +01:00
Zoltan Varga b25084cca9 Fix a bug introduced by the previous change to mono_jit_walk_stack_from_ctx_in_thread (). 2010-11-05 07:46:36 +01:00
Zoltan Varga 99d0292a4f Fix crashes in the debugger stack walk code if a gshared method calls another using a managed-to-native translation. 2010-11-05 06:54:16 +01:00
Zoltan Varga 6b0c63c32d Fix more gshared problems in the soft debugger. 2010-11-05 06:39:32 +01:00
Zoltan Varga 458f2502f1 Fix gshared support in the soft debugger. Fixes #651251. 2010-11-05 05:34:08 +01:00
Zoltan Varga bc7c3c0f04 Fix encoding of large strings in the soft debugger api. Fixes #648832. 2010-11-03 19:17:15 +01:00
Gonzalo Paniagua Javier 339b3f3a2d Revert wrong fix for #648252 2010-11-02 19:00:45 -04:00
Gonzalo Paniagua Javier 7c68d8753f Renaming a dangling symlink works now
Ditto.

	Fixes bug #650779.
2010-11-02 14:51:14 -04:00
Gonzalo Paniagua Javier 61d2ab499d Avoid killing the thread if socket already null
In some weird cases socket is null when we try to close it.
2010-11-01 18:55:12 -04:00
Zoltan Varga 63f1d2414e Disable inlining if the assembly has a DebuggableAttribute with the IsJITOptimizerDisabled flag set. Fixes #604486. 2010-10-31 10:32:49 +01:00
Zoltan Varga a7bdb87225 Disable catchpoints when the DISABLE_BREAKPOINTS flag is used during an invoke. Fixes #632224. 2010-10-25 18:09:45 +02:00
Zoltan Varga 774b12886b Implement memory barriers for amd64/x86. Fixes #648831. 2010-10-23 16:31:21 +02:00
Zoltan Varga a95b167bed Emit GenericEqualityComparer<T> instances for each EqualityComparer<T> instance in AOT, the former is created dynamically by the latter. 2010-10-22 17:58:20 +02:00
Gonzalo Paniagua Javier ccb7861b20 FromBinary does not need ToLocalTime
When converting to DateTime from a long, we don't need ToLocalTime().
	Setting the kind to Local is enough.
	Patch from Mig.

	Fixes bug #648252.
2010-10-21 16:10:14 -04:00
Gonzalo Paniagua Javier 93757da156 Fix the collision handling code
After the fix for bug #605092, inserting timers with an equal due time
	was failing because searching in the list was also using a reference
	comparison. Now, when adding a new timer, we search using just the due
	time.
	Fixes bug #648130.
2010-10-21 12:43:15 -04:00
Gonzalo Paniagua Javier 8c38884bb7 Replace EnumProcesses with OpenProcess
namedmutex_prewait was (partially) listing the running processes and
	then searching through them. Now we use OpenProcess to verify the owner
	of the mutex is still alive.

	Fixes bug #648133
2010-10-21 11:33:53 -04:00
Zoltan Varga 52feacb72b Avoid caching stuff in socket-io.c in static variables, since the socket assembly can be unloaded, cache them in MonoDomain instead. 2010-10-21 16:20:07 +02:00
Tak b3bab81bc9 [Fix] Ensure correct stack pointer initialization on !POSIX
* metadata/threads.c: Ensure correct stack pointer initialization on !POSIX.
This fixes some random crashes with embedded, release-optimized binaries on windows.

License: MIT/X11
2010-10-20 15:43:11 +02:00
Tak 5bbb6e5605 Don't disconnect an unconnected socket. Fixes #606809.
* Mono.Debugger.Soft/VirtualMachineManager.cs: Don't disconnect an unconnected socket. Fixes #606809.

This patch is licensed MIT/X11.
2010-10-19 14:46:06 +02:00
Tak 49d2e5c102 [Fix] Turn off exception callback filtering on WoW64.
* mini/exceptions-x86.c: Turn off exception callback filtering on WoW64. This allows managed exceptions to actually work when using 32bit mono on 64bit Windows.

License: MIT/X11
2010-10-19 14:34:59 +02:00
Zoltan Varga b98ba3cf13 Define HOST_WIN32 in configure.in on 2.6 too to make it easier the backporting of patches. 2010-10-19 14:31:07 +02:00
Tak 17ed12967f [Fix] Ensure that exceptions are propagated when embedding
* metadata/object.c:
* mini/mini.c:
Ensure that exceptions get propagated back to the caller
when mono is being embedded.
License: MIT/X11
2010-10-19 14:20:32 +02:00
Zoltan Varga c92545bd1b Avoid calling sem_post on a uninitialized semaphore during thread attach, it works under linux, but fails under *bsd. Fixes #647248. 2010-10-18 01:57:20 +02:00
Gonzalo Paniagua Javier dc1bd30cd4 [ThreadPool] Clear the thread state
Clear the thread state after finishing a work item. We were only
	resetting the background state.
2010-10-14 16:53:09 -04:00
Zoltan Varga 636e3f910f Update the IMT thunk creation code on sparc to support net 4.0. 2010-10-14 21:57:14 +02:00
Zoltan Varga 55bbdf3ebc Avoid a crash in g_convert () if iconv_open () fails. 2010-10-14 21:56:19 +02:00
Gonzalo Paniagua Javier 57425fa32b Fix the 1.1 profile
The 1.1 profile Stream.Close () does not call Dispose (true), which
	breaks with my previous patch to CryptoStream.
2010-10-07 19:48:44 -04:00
Gonzalo Paniagua Javier 9cd71a9d8a Fix CryptoStream.Dispose
-Dispose will call TransformFinalBlock() for Read streams. Fixes bug #644648.
	-Dispose () will call Dispose (bool). Fixes bug #644654.
	-Stream.Close calls GC.SuppressFinalize(). Fixes bug #644660.
2010-10-07 15:40:44 -04:00
Gonzalo Paniagua Javier a791098572 X509Chain always uses the LM store
X509Chain will now add the LM store certificates always, even when the
	CU store is selected.
2010-10-06 13:52:22 -04:00
Marek Habersack 88e76d88ec [asp.net] Part of fix for bug #579837. AuthorizationRule.SerializeElement will not process unmodified elements.
* AuthorizationRule.cs: if the configuration save is not Full, SerializeElement checks whether the rule being
  serialized is modified. If it isn't, validation and serialization are not performed.
* AuthorizationRuleCollection.cs: there is no element name for the collection.
2010-10-04 15:50:25 +02:00
Marek Habersack f941c9b9b8 [configuration] Part of fix for bug #579837. CommaDelimitedStringCollection must properly note that it was modified.
When one manipulates the collection as an instance of StringCollection, the 'modified' field will not
be set (Add, Remove etc. from the underlying StringCollection type will be used). To work around it
a check has to be performed in IsModified whether the contents of the collection changed. It is done
by comparing string hash codes of the original vs current string.
CommaDelimitedStringCollectionConverter forces string hash code update on the new collection, so that IsModified
works correctly on collections converted from comma-delimited strings.
2010-10-04 15:50:12 +02:00
Gonzalo Paniagua Javier 2e9ec569f8 Set have_response
Set have_response to true when there's a protocol error or a previous
        exception for POST/PUT.
        Patch by Bassam Tabbara.
2010-10-04 02:43:58 -04:00
Zoltan Varga e272f8ad81 Check the debugger_thread_exited condition in a loop to guard against spurious wakeups. Fixes #642780. 2010-10-01 23:52:09 +02:00
Zoltan Varga bdc2e25420 Fix code buffer reallocation check for OP_SWITCH on arm. 2010-10-01 16:29:45 +02:00
Rodrigo Kumpera be5de51d90 Handle verification of types in non canonical forms.
* verify.c (mono_type_is_valid_type_in_context): Handle
	types such as VAR and MVAR encoded as CLASS or VALUETYPE.
	This encoding is not the canonical one, but works and
	must be properly verified.

	Fixes #601970
2010-09-23 18:57:14 -03:00
Rolf Bjarne Kvinge 3b61d0a902 In man:
2010-03-03  Rolf Bjarne Kvinge  <[email protected]>

	* mono.1: Document exception tracing.

In mono/mini:
2010-03-03  Rolf Bjarne Kvinge  <[email protected]>

	* trace.c|h:
	* mini-exceptions.c: Add support for printing stack traces when handling
	exceptions, and when printing exceptions thrown while tracing also print
	the exception message.

svn path=/trunk/mono/; revision=152907
2010-09-22 23:33:01 +02:00
Rolf Bjarne Kvinge 034acd41d6 2010-03-03 Rolf Bjarne Kvinge <[email protected]>
* trace.c: We need to parse exclude tokens ('-') before string tokens,
	since the exclude token is a valid string character.

svn path=/trunk/mono/; revision=152906
2010-09-22 23:33:01 +02:00
Carsten Schlote 961432ac67 [System.Configuration] Added check for SettingProviderAttribute on settings class
There is no checkfor the SettingProviderAttribute attached to a Settings class.
.NET uses this to replace the default LocalSettingsProvider with your
own SettingsProvider.

The patch adds this feature.

Signed-off-by: Carsten Schlote <[email protected]>
2010-09-20 20:54:32 -04:00
Carsten Schlote fa4bf49d83 [System.Configuration] Fixed GetProductName() function
Added missing check for empty strongname. This case is now handled the
same way as a missing strongname.

GetProductName() now correctly uses _Url_ and assembly.EscapedCodeBase
for its output.

Signed-off-by: Carsten Schlote <[email protected]>
2010-09-20 20:54:23 -04:00
Carsten Schlote cff7bed838 [System.Configuration] Fixed GetEvidenceHash() function to produce valid filenames
The previous implementation creates eventually invalid filenames in a
random fashion on linux, mac, windows by having '/' or '\' chars
in the base64 output. As a result you can't save or retrieve your settings
due to filesystem errors.

This patch changes the output to plain hex values. This is a bit longer
then a base64 string, but also 100% filesystem safe.

Might

Signed-off-by: Carsten Schlote <[email protected]>
2010-09-20 20:54:15 -04:00
Ankit Jain 70313a25ca [xbuild] Fix handling of tool output.
The *StreamChanged event for ProcessWrapper may get parts of
long lines, so process the complete ones that we have (for matching
error/warning), and save rest for processing when the rest of it
is received.

Also, don't ignore empty lines.

* class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
2010-09-15 05:02:07 +05:30
Ankit Jain 2c667e8246 [xbuild] Fix ConsoleLogger's output, extra blank lines etc. 2010-09-15 05:01:53 +05:30
Ankit Jain 9c7848ec29 [xbuild] Reduce ConsoleLogger's unnecessary output.
ConsoleLogger was emitting target names, even if they didn't have
any useful output, which resulted in lots of "Target foo:" in the
output, with no other related msgs.

 Target Foo:
 Target Bar:
 Target Xyz:

Emit project/target/task headers only if they result in a message,
error or warning. This results in much cleaner output.
2010-09-15 05:00:40 +05:30
Ankit Jain 0bb84d01c1 [xbuild] Log default msg for TargetSkipped if @reason is null or empty. 2010-09-15 04:59:21 +05:30
Rodrigo Kumpera b385e4a8c1 Fix crash in pedump.
* pedump.c (verify_image_file): Setup the fake assembly before
	doing full metadata verification since it does type loading.

	Fixes #598228
2010-09-14 18:41:23 -03:00
Jonathan Pryor 991808df49 Distribute DbmlSchema.xsd so that tarball builds work. 2010-09-14 06:41:32 -04:00
Rodrigo Kumpera 398677de03 Fix fallthru of EH block check.
* verify.c (mono_method_verify): Only skip dead code
	after checking for fallthru.

	* unverifiable_fallout_of_finally_block.il: Regression
	test for fallthru on dead code.

	Fixes #597072
2010-09-13 21:36:24 -03:00
Jonathan Pryor 42be8fa9b2 [sqlmetal] Fix /code from DBML file.
sqlmetal.exe is supposed to allow generating source code from a .dbml file:

	sqlmetal /code:foo.cs foo.dbml

However, this failed because the DbmlSchema.xsd file couldn't be found (so
that the DBML file could be validated).

Embed the DbmlSchema.xsd file so that the above `sqlmetal` command works.
2010-09-13 13:23:41 -04:00
Geoff Norton 3fba4a4e7e Add fakepoll to fix the build on OSX / dist. 2010-09-10 11:32:10 -04:00
Gonzalo Paniagua Javier cbc5785433 UDP sockets allow connections to Any
UDP sockets that call Connect() to set a default address for datagrams
	sent, can call Connect() again with IPv6Any or Any to 'disconnect'.

	Fixes bug #639098.
2010-09-09 11:48:40 -04:00
Geoff Norton 964d76f7e0 2010-05-13 Geoff Norton <[email protected]>
* fakepoll.h: Added for OSX
	* serial.c:
	* signal.c: poll on OSX is broken, so we use a select based
	implementation instead.

svn path=/trunk/mono/; revision=158861
2010-09-07 22:31:21 -04:00
Rodrigo Kumpera 1c7077889b Check for a parent extending a generic instantiation of the child.
* class.c (mono_class_create_from_typedef): If if any parent
	doesn't extend the generic instantiation.

	Fixes #604270
2010-09-06 18:16:51 -03:00
Rodrigo Kumpera 3bc68fadb2 Properly handle stack merges of leave.
* verify.c (do_leave): Set the target of leave.

	* verify.c (mono_method_verify): Merge the resulting empty
	stack of a leave instruction with it's target.

	Fixes #633248
2010-09-06 15:47:01 -03:00
Gonzalo Paniagua Javier 61c200221c Initialize items_read
Ditto.
2010-09-04 14:29:48 -04:00
Gonzalo Paniagua Javier bec6a0747e Fixed GetLogicalDriveString
When calling GetLogicalDriveString, icall.c was passing the
	length in the wrong units.

	GetLogicalDriveString now translates any octal sequence found
	into its corresponding byte. Use the UTF16 length
	('items_written') instead of the UTF8 input string length
	('items_read') when computing the total size.
2010-09-04 14:27:25 -04:00
Gonzalo Paniagua Javier d91238d04e Use UTF8 instead of ASCII when reading mount info
This allows for mount points with UTF8 characters in them.
2010-09-03 17:27:21 -04:00
Gonzalo Paniagua Javier 82b51af715 Linux /proc/mounts might have escaped characters
Translate escaped characters in mount paths.

	Fixes bug #637078.
2010-09-03 16:57:58 -04:00
Gonzalo Paniagua Javier a30177de29 Allow ordinal entry points in windows.
Windows allows entry point names like "#10" which refer to the Nth
	function (n > 1 and less than the highest ordinal value in the .def
	file).

	Fixes bug #636966.
2010-09-03 15:01:24 -04:00
Gonzalo Paniagua Javier 65be7a38b7 Return IPv6 addresses
We were not returning IPv6 addresses if there was no IPv6 configured
	interface. Now we will return those addresses if ipv6 is enabled by
	configuration.

	Fixes bug #636517.
2010-09-02 17:27:18 -04:00
Rodrigo Kumpera 17f90e76ed During inlining, verify the method before producing locals.
* method-to-ir.c (inline_method): We verify the inlined method
	before variables are created for locals since this can assert.
	Some check on locals are only done by the IL verifier so it's
	not enough to just check if the header decoded fine.

	* mini.c (mini_method_verify): Add parameter telling if we
	should fail the compile or not.

	* mini.c (mono_compile_is_broken): Pass the method explicitly
	as it now can be diferent than cfg->method.

	* mini.h: Export mono_compile_is_broken instead of
	mini_method_verify.

	Fixes #560200
2010-09-02 15:43:34 -03:00
Rodrigo Kumpera dc34ceb84a Verify locals when checking a method header.
* metadata-verify.c (mono_verifier_verify_method_header): If
	the header has a locals token, verify the corresponding row
	in the standalonesig table.
2010-09-02 15:43:34 -03:00
Ankit Jain 0ed963428d [xbuild] Update man page to add "/tv:" option.
Add option to specify toolsversion from the command line,
to the man page.
2010-09-02 04:06:08 +05:30
Ankit Jain 7cd7977058 [xbuild] Unsubscribe events on ConsoleLogger.Shutdown ()
Reported by Lluis Sanchez.
2010-09-02 04:06:08 +05:30
Ankit Jain f4d293be9b [xbuild] Task 'Touch' should pass even if the file already exists.
Microsoft.Build.Tasks/Microsoft.Build.Tasks/Touch.cs:
	Task should 'succeed' even if the files already exist.
2010-09-02 04:06:07 +05:30
Ankit Jain b91fb25f67 [xbuild] Quote filenames for resgen.
Microsoft.Build.Tasks/Microsoft.Build.Tasks/GenerateResource.cs:
	Quote filenames passed to resgen.
2010-09-02 04:06:07 +05:30
Ankit Jain 0883877da4 [xbuild] Fix 635767. Support enums for task property Outputs.
Add support for task properties to be enums, when publishing
Output.
2010-09-02 04:06:07 +05:30
Ankit Jain 1bd12d40d0 [xbuild] Evaluate Import only if its condition evaluates to true. 2010-09-02 04:06:07 +05:30
Ankit Jain 81438549b3 [xbuild] Support extra paths for MSBuildExtensionsPath32/64 .
Support extra search paths via env variables for
MSBuildExtensionsPath32/64 also.

Update man page.
2010-09-02 04:06:07 +05:30
Ankit Jain 3d254030b5 [xbuild] Add reserved property MSBuildExtensionsPath64 . 2010-09-02 04:06:06 +05:30
Ankit Jain 23f5929224 [xbuild] Update man page. 2010-09-02 04:06:06 +05:30
Ankit Jain 707d2b2390 [xbuild] Add env var to dump details of reference resolution.
If xbuild is unable to resolve a reference, then it dumps details of
why it failed. This adds a env var XBUILD_LOG_REFERENCE_RESOLVER,
which if set, logs those details of why a particular search path
was used to resolve the reference.

Update the man page also.
2010-09-02 04:06:06 +05:30
Gonzalo Paniagua Javier f0f2b053cc Remove Content-Length header when not needed
If we are redirecting to a GET from a POST, the Content-Length header
	might have stale data and it will be sent. Some servers, instead of
	ignoring it, keep waiting for the data to be sent (for a GET!).

	Fixes bug #636219.
2010-09-01 17:59:40 -04:00
Gonzalo Paniagua Javier 5f8afbf4a1 Add missing DT format
The datetime format having a numeric timezone after the milliseconds
	was missing.
	Fixes bug #479061.
2010-09-01 16:33:20 -04:00
Gonzalo Paniagua Javier 3ec2087e54 Avoid sending data in the challenge phase of NTLM
If there's a POST/PUT request that gets a NTLM 401, we save the data
	and don't send it again until after the challenge phase. Ie, instead of
	sending all the data 3 times, we only send it at most twice.
2010-09-01 15:54:06 -04:00
Gonzalo Paniagua Javier 8f107bf4e4 Use the request itself as the key for the cache.
We were usign teh URL, but that might not be unique among several
	requests that need to be authenticated using NTLM. This led to
	different requests sharing the same authentication session which fails
	miserably.

	Bug #631315 fixed.
2010-09-01 15:53:44 -04:00
Gonzalo Paniagua Javier 4cb5f6a3d5 Fix build 2010-08-31 20:10:05 -04:00
Gonzalo Paniagua Javier d893863fb0 Handle WAIT_IO_TIMEOUT in WaitAny call
WaitForMultipleObjectsEx might return WAIT_IO_COMPLETION if an APC is queued.
	Fixes bug #549807.
2010-08-31 20:04:32 -04:00
Zoltan Varga b8bfab16fa Align structures on the stack to 4/8 bytes on ppc. 2010-08-31 21:52:52 +02:00
Zoltan Varga d913a7ea76 Fix the ppc build. 2010-08-31 01:37:21 +02:00
Zoltan Varga 9e870b7973 Fix the order of the arguments to the ppc_store macros. 2010-08-31 01:37:05 +02:00
Jb Evain aef476eeeb [fix] #475962: delegates to instance methods closed over null
* marshal.c (mono_marshal_get_delegate_invoke): add support for
delegates pointing to instance methods that are closed over null.
Managed side of the feature is in 2ec0ab59fe.
2010-08-30 18:39:47 +02:00
Gonzalo Paniagua Javier 3b4d1f8e7d Readd info removed by mistake. 2010-08-28 01:28:59 -04:00
Gonzalo Paniagua Javier 9ac65d53f4 Call SetEndOfSendNotification
We have to call SetEndOfSendNotification() as soon as the context is ready.
        Fixes bug #632253.
2010-08-27 17:35:18 -04:00
Gonzalo Paniagua Javier d4d8ee5ba8 Add env.var. to control revocation mode.
Added a new environment variable, MONO_X509_REVOCATION_MODE that lets
        the user choose the default validation mode for X509 chains.
2010-08-27 17:00:46 -04:00
Gonzalo Paniagua Javier 39917a2e55 Translate socket error to match .NET
send(2) does not return ETIMEDOUT for a blocking socket with a write
	timeout set, which causes the wrong error code to be reported to the
	managed world.
	Fixes bug #599488.
2010-08-26 14:15:30 -04:00
Zoltan Varga c6b4412396 Avoid warnings on machines with cpus > 16. 2010-08-26 16:18:34 +02:00
Rodrigo Kumpera 15e667ffc1 Fix EH handling corner case.
* mini.c (create_jit_info): Handle the case where the basic
    block right after a try block is dead. For example:
    .try {
            ....
            leave ...
    }
    nop //HERE
    .catch {
            ...
    }

    The above nop is dead code and the branch opts will nullify it
    which caused the code in create_jit_info to assert when
    calculating the try block lenght.

    This is a very rare case since only obfuscators or broken
    compilers would put instruction between the try and handler
    blocks.

    The fix is to simply iterate over all CIL addresses of the
    try block in reverse order looking for the first block which
    was not removed.

    Fixes 633291
2010-08-24 16:52:20 -03:00
Marek Habersack 78166ed7b4 [asp.net] Fix for bug #633756. Children processed as properties must be instantiated before using.
When a server-side control processes its children (in the markup) as properties, it needs to instantiate
    an object of the property type and assign it to the appropriate property of the control. Failing to do so
    will cause markup which references properties to fail in certain cases (for instance when the control's
    property type is a class and it is not instantiated by the control's constructor).
2010-08-24 01:02:12 +02:00
Rodrigo Kumpera c01745862e Fix some loader error leaks.
* method-to-ir.c (mono_method_to_ir): Check
	mono/mini_get_method for loader errors.

	Fixes #633287
2010-08-23 16:08:06 -03:00
Robert Nagy 2709ff8fea Use struct sockpeercred instead of struct ucred on OpenBSD 2010-08-23 22:00:46 +08:00
Zoltan Varga ed66e53c6d Cast void *sigctx to ucontext_t * to avoid compile
time errors at least on OpenBSD
2010-08-23 15:51:24 +02:00
Robert Nagy b69b314e0d Cast void *sigctx to ucontext_t * to avoid compile
time errors at least on OpenBSD
2010-08-23 15:47:31 +02:00
Zoltan Varga a1287d1f3f fix openbsd CPPFLAGS and check for sys/param.h 2010-08-23 15:44:26 +02:00
Gonzalo Paniagua Javier c88fcd42f3 2010-05-29 Gonzalo Paniagua Javier <[email protected]>
* Test/System/UriTest.cs:
	* System/Uri.cs: Leave consecutive slashes in 'path' alone.
	Fix for bug #606142. Backport once tested.

 Originally from->svn path=/trunk/mcs/; revision=158150
2010-08-20 14:13:02 -04:00
Geoff Norton dc83eb5111 Ensure that we only reflect into monotouch if the type exists.
There is a possible crash using this profile if the monotouch.dll
isn't loaded into the process space.  We will null guard the
type and only call start_wwan if its present.
2010-08-20 10:50:56 -04:00
Zoltan Varga 733cbba669 Fix the reading of uninitialized data in the SSA code. 2010-08-20 15:11:05 +02:00
Gonzalo Paniagua Javier 5469f29b50 Quote arguments in Environment.CommandLineArgs
Arguments with spaces need to be quoted. If the argument contains
	spaces and quotes itself, these quotes are escaped.
	Fixes bug #632657.
2010-08-19 17:24:30 -04:00
Jb Evain b657533708 [Fix] HashSet: fix different sets operations. Fixes #572084 2010-08-19 16:53:05 +02:00
Jb Evain 7a1e9fda6f [Fix] Enumerable.Except: return a duplicate free set. Fix bug #611821. 2010-08-19 12:39:56 +02:00
Marek Habersack eccaafcb76 [asp.net] Fix for bug #621837. Rewriting a path must take path info into account.
When HttpContext.RewritePath is used, the path info of the new path must be taken
into account and the HttpRequest.Path propert must contain it.
2010-08-18 14:38:22 +02:00
Geoff Norton 7e20eb6ea1 2010-06-29 Geoff Norton <[email protected]>
* atomics.h: Implement armv6+ variants of our atomics.
2010-08-16 16:45:29 -04:00
Zoltan Varga b86d158bb7 Call generic class init trampolines before calling gshared .ctors. Fixes #631409. 2010-08-16 16:05:08 +02:00
Zoltan Varga 351afc90e2 Fix the 2.6 build. 2010-08-14 22:06:14 +02:00
Ankit Jain 8227ff1aa7 [xbuild] Fix a string format issue with guid.
Make sure that the format string doesn't have guid in
"{...}" format or String.Format gets confused.
2010-08-13 21:48:09 +05:30
Ankit Jain 3376e6ce3c [xbuild] Handle references to vc*proj projects.
If a project references an unsupported project, like a .vcproj or
.vcxproj, then raise the appropriate warning for that.
2010-08-13 21:48:09 +05:30
Zoltan Varga eb4724071d Only do a null check in LDFLDA if the address is an object reference. 2010-08-13 16:54:26 +02:00
Zoltan Varga b9d711fa51 Add a null check to LDFLDA, the spec requires it. 2010-08-13 12:37:26 +02:00
Marek Habersack c6fe681c64 [asp.net] Scripts may be requested also from pages without associated ScriptManager
Make sure ScriptManager exists in the current page before attempting to use it.
2010-08-13 02:22:25 +02:00
Marek Habersack d2b021927b [asp.net] Fix for bug #626829. Nodes need to be re-populated on postback, with populate on demand active
When one clicks on the plus sign in the tree with populate on demand active and then clicks on the node's
text, the resulting post back is a plain one, not a callback. In this case all the nodes need to be repopulated
or they will vanish from the rendering. At the same time, the nodes have to be simply marked as populated when
a post back in callback mode is processed.

Disabled one test and a small chunk of code in TreeView.RenderNode - it needs more investigation (nothing critical
though)
2010-08-13 00:13:41 +02:00
Zoltan Varga 14b572bfab Avoid passing uninitialized memory to get_call_info () in the x86 backend. 2010-08-12 22:36:51 +02:00
Marek Habersack 7d062772d2 [asp.net] Fix for bug #617746. GridRow must auto-bind only properties directly declared in item type
When GridView auto-generates columns it uses reflection to retrieve list of public properties present
in the item type. Only the properties that have bindable type and are declared directly in the item
type must be considered for column auto-generation.
2010-08-12 11:33:13 +02:00
Marek Habersack 031cd025a3 [asp.net] Partial fix for bug #575600. Support opening another app configuration.
WebConfigurationHost now supports one more parameter passed to it in InitForConfiguration -
a boolean telling whether the configuration being initialized belongs to another app. If it is
true then the virtual path passed to InitForConfiguration is used as the application virtual
path. This has the effect that IsDefinitionAllowed doesn't throw an exception when a configuration
element with the MachineToApplication level is parsed.
WebConfigurationManager.FindWebConfig checks whether the path passed to it belongs to this application
which allows the mechanism described in the first paragraph to work.
2010-08-11 22:31:59 +02:00
Marek Habersack ce109704f2 [asp.net] Partial fix for bug #575600. Convert virtual path to absolute only if necessary in HttpRequest.MapPath
Also added two tests for HttpRequest.MapPath which check cases when the baseVirtualDir
is not rooted.
2010-08-11 22:31:44 +02:00
Marek Habersack 2c19129491 [asp.net] HttpContext.RewritePath makes sure the passed path is in canonical form.
When HttpContext.RewritePath is passed a virtual path with more than one leading slash it
results in HttpApplication.GetHandler not being able to locate the appropriate handler.
Patch adds code to convert the passed virtual path to a canonical form.
Additionally, HttpApplication.Pipeline () now throws an exception when no handler can be
determined for the current request.
2010-08-11 01:20:49 +02:00
Marek Habersack 6d5b866863 2010-07-08 Marek Habersack <[email protected]>
* ScriptModule.cs: PostAcquireRequestState must check if the
	current context and the current handler aren't null before
	attempting to use them.

svn path=/trunk/mcs/; revision=160044
2010-08-11 00:01:03 +02:00
Marek Habersack 55082dd158 [asp.net] Fix for bug #629990 In-Proc session state must remove cache prefix from item key
When the in-proc session handler puts items in the internal cache, it prefixes them with the
@@@InProc@ prefix to make sure they don't conflict with other values stored there. The handler
has been failing so far to remove that prefix when triggering the session end event. This commit
fixes the issue.
2010-08-10 22:00:47 +02:00
Gonzalo Paniagua Javier f4208b57c6 Fix nullref.
* XslFunctions.cs: avoid nullref in simple transformation.
	Fixes bug #629714.
2010-08-10 12:01:58 -04:00
Gonzalo Paniagua Javier 7e97f53a63 Fixed parsing of content-type parameters.
* ContentType.cs: correctly parse values inside double-quotes.
	Fixes bug #625026.
2010-08-10 11:47:14 -04:00
Jonathan Pryor 2da9a247e3 Add System.Runtime.Versioning.TargetFrameworkAttribute to the MonoTouch profile.
This attribute is needed so that Visual Studio can use MSBuild 4.0 to build
MonoDroid projects referencing the MonoTouch/MonoDroid assemblies, and
MSBuild 4.0 requires that the profile's mscorlib.dll contain this attribute.
2010-08-10 10:53:17 -04:00
Gonzalo Paniagua Javier 30f5c26d85 Fix the boundary in UploadFile().
* WebClient.cs: the last delimiter has 2 hyphens appended to the boundary to signal it is indeed the last one.
	Fixes bug #554817.
2010-08-09 18:04:05 -04:00
Gonzalo Paniagua Javier 1ab1a11ab3 Proper tracking of ICMP requests and responses.
* Ping.cs: generates a random ICMP Identifier field per Echo to help
	match up pings and their responses. Now has valid TTL and timeouts apply to
	the correct pings.  Also fixed bugs were received Sequence and
	Identifier would be corrupt for values >255, and fixed corruption of
	the Data field.
	Patch by Michael Walsh that fixes bug #627330.
2010-08-09 13:54:30 -04:00
Marek Habersack 69a47d193d [asp.net] Fix for bug #618481. AsyncPostBackTrigger.OnEvent must call Owner.Update only for conditionally updated panels
If the owner UpdatePanel has its UpdateMode set to Always, do not call Update () as it will cause an InvalidOperationException
to be thrown.
2010-08-09 14:33:12 +02:00
Marek Habersack 8494072445 [asp.net] AsyncPostBackTrigger.HasTriggered must use FindTargetControl ()
When a postback is made to the server, AsyncPostBackTrigger.HasTriggered must use FindTargetControl (true)
to find the associated control and see if its UniqueID matches the one of the control which originated
the postback. The target control may (and most probably is) outside the control panel and looking for it
only in the collection of child controls will make some sites fail to update content on async postback.
2010-08-09 14:15:13 +02:00
Marek Habersack 08c03face7 [asp.net,bugfix] Fix for bug #620456. AsyncPostBackTrigger must look for target control in naming containers
AsyncPostBackTrigger must search for the associated control in the naming containers during intialization
because its ControlID property is initialized with the unique name of the target control.
2010-08-09 14:14:49 +02:00
Zoltan Varga a7d9335966 Fix Math.Log (2, 1). Fixes #626944. 2010-08-07 22:24:29 +02:00
Jb Evain 4f9aa61833 backport of b6b626da91.
mono_method_body_get_object: implement support for methods defined in dynamic
modules. Fixes #628660.
2010-08-06 13:19:08 +02:00
Ankit Jain e89a02abb6 [xbuild] Handle multi-line output from tool.
Output received from the process can be multiline, split and process
it.
2010-08-06 14:36:35 +05:30
Ankit Jain 504af2e7fe [xbuild] Fix #628525. Fix incremental rebuild.
When doing a rebuild for an already built project, the common
files (CopyLocal) should not be deleted by a project, as
other projects might be depending on them. This becomes a problem
when a common output dir is used.
2010-08-06 14:36:23 +05:30
Ankit Jain 6404ef8149 [xbuild] Ignore missing imports when parsing solution file.
When loading projects specified in the solution file, to find
their dependencies, missing imports cause an exception to be
thrown and so the deps are not available in the project instance.
2010-08-04 22:17:27 +05:30
Jonathan Pryor d97f1c1ac7 Remove duplicate files.
These files were "moved" into the tests/expected in r155323; we don't need
separate copies within tests.
2010-08-04 10:20:01 -04:00
Jonathan Pryor 7fa99d845f Add SqlServerSchemaLoader to the build.
This allows reading schema information from Microsoft SQL Server databases.

This should have been done as part of commit r147880 (as the corresponding
commit in svn-trunk r147868 added SqlServerSchemaLoader), but I
overlooked it.  :-(
2010-08-04 10:13:32 -04:00
Ankit Jain 540fe643a9 [xbuild] Override global properties before project Load.
MSBuild task can override properties for a project, and these
should be applied before the project file is loaded. This is to
allow the properties to be available for Imports. Eg.

 <Import Project="$(SolutionDir)\foo.targets"/>

$(SolutionDir) is generally set by the MSBuild task in a .sln.proj
file.
Bug reported by JB Evain.

    * Microsoft.Build.BuildEngine/Engine.cs:
    Apply global properties before the project load.

    * Test/*/EngineTest.cs (TestGlobalPropertiesImport*): New tests.
2010-08-04 17:35:30 +05:30
Ankit Jain 7f8fbd32fa [xbuild] Add $(TargetFrameworkDirectory) for msbuild compatibility.
* xbuild/xbuild/*/Microsoft.Common.targets: Rename item
@(TargetFrameworkDirectories) to @(_TargetFrameworkDirectories)
to *mark* it as private, and use the new $(TargetFrameworkDirectory)
property instead. Reported by mhutch.
* xbuild/xbuild/*/Microsoft.Silverlight.Common.targets: Update
to track the changes.
2010-08-04 17:35:29 +05:30
Ankit Jain a7254fed35 [xbuild]When invoking resgen, set MONO_IOMAP only if its not already set.
Microsoft.Build.Tasks/Microsoft.Build.Tasks/GenerateResource.cs: Set
MONO_IOMAP only if its unset, allowing it to be set from command line etc.
2010-08-04 17:35:28 +05:30
Ankit Jain b59b721d2d xbuild: Use '*mcs.bat' on windows and '*mcs' on other platforms. 2010-08-04 17:35:27 +05:30
Ankit Jain 9cb8626866 xbuild: Collect and dump timing information.
* ConsoleLogger.cs: Collect and dump timing information.
2010-08-04 17:35:26 +05:30
Ankit Jain e33f93665d * ConsoleLogger.cs: Honor LoggerVerbosity.Quiet . 2010-08-04 17:35:25 +05:30
Ankit Jain 18e8a9c384 * xbuild/Microsoft.Silverlight.Common.targets(GenerateMoonlightManifest):
Set Inputs/Outputs for the target.

svn path=/trunk/mcs/; revision=160704
2010-08-04 17:35:24 +05:30
Ankit Jain 7b22bf9e4b Emit tool's output as it is received, instead of waiting for it to end.
* ToolTask.cs: Don't wait for the process to end, before emitting
it's stdout/stderr, emit as it is received. This helps with time
consuming tools.
2010-08-04 17:35:24 +05:30
Ankit Jain 378f5b6196 * xbuild/Microsoft.CSharp.targets (CoreCompile): Add
$(MSBuildAllProjects) to inputs.
* xbuild/Microsoft.VisualBasic.targets (CoreCompile): Likewise.

svn path=/trunk/mcs/; revision=160703
2010-08-04 17:35:22 +05:30
Ankit Jain f776fc1536 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* ConsoleLogger.cs: Add support for parameter 'NoItemAndPropertyList'.

In tools/xbuild:
	* Parameters.cs (ProcessConsoleLoggerParameters): Correctly split arg.

svn path=/trunk/mcs/; revision=160702
2010-08-04 17:35:21 +05:30
Ankit Jain 6f09a9ffe3 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Project.cs: Add reserved properties MSBuildProjectFullPath
	and MSBuildProjectExtension .

In tools/xbuild:

	* xbuild/*/Microsoft.Common.targets: Set MSBuildAllProjects property.
	* xbuild/Microsoft.CSharp.targets: Likewise.

svn path=/trunk/mcs/; revision=160701
2010-08-04 17:35:16 +05:30
Ankit Jain 8cd54ecfea * xbuild/Microsoft.Silverlight.Common.targets: Set AssemblySearchPaths
to the default value except PkgConfig and GAC. Suggested by Rolf.

svn path=/trunk/mcs/; revision=160641
2010-08-04 17:32:25 +05:30
Ankit Jain 7707f02078 * xbuild/Microsoft.Silverlight.Common.targets: Set Inputs/Outputs
for GenerateXap target.

svn path=/trunk/mcs/; revision=160489
2010-08-04 17:32:23 +05:30
Ankit Jain 30c607a510 * AbsoluteToRelativePath: New.
* RelativeToAbsolutePath: New. Taken from monodevelop.
* GetReservedMetadata: Correctly handle 'RelativeDir' .

svn path=/trunk/mcs/; revision=160483
2010-08-04 17:08:50 +05:30
Ankit Jain 5fe50d856f * Csc.cs: Quote -define: arguments.
svn path=/trunk/mcs/; revision=160198
2010-08-04 17:08:50 +05:30
Ankit Jain afc316d2a1 Correctly handle precedence of ToolsVersion value coming
from various points.
In class/Microsoft.Build.Engine:

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

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

	Correctly handle precedence of ToolsVersion value coming
	from various points.
	* BuildEngine.cs (BuildProjectFile): Restore project.ToolsVersion .
	* Engine.cs: Likewise. Also validate DefaultToolsVersion .
	* Project.cs: Handle invalid tools version specified in the project
	file, and fall back to engine's version.
	* MSBuild.cs: Fix the precedence order, and validate.
	* UnknownToolsVersionException.cs: New.

In class/Microsoft.Build.Tasks:

	* Microsoft.Build.Tasks.dll.sources: Use
	UnknownToolsVersionException.cs from Engine.

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

	* MessageTest (TestExecution): Additional messages with 'low'
	importance get emitted, so don't expect sequential messages.

In tools/xbuild:

	* Main.cs: Use tools version specified on the command line, if
	any.
	* xbuild.exe.sources: Include UnknownToolsVersionException.cs from
	MS.B.Engine

svn path=/trunk/mcs/; revision=160133
2010-08-04 17:08:50 +05:30
Ankit Jain cca47c6fab Fix dependency specification for CoreCompile target. Log better messages
for dependency checks for targets.

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

	* TargetBatchingImpl.cs (BuildTargetNeeded): Fix var names to
	correctly reflect what they track. Log messages when skipping
	or building a target.

In tools/xbuild:

	* xbuild/Microsoft.CSharp.targets (CoreCompile): Fix inputs.
	* xbuild/Microsoft.VisualBasic.targets (CoreCompile): Fix inputs.

svn path=/trunk/mcs/; revision=159406
2010-08-04 17:08:50 +05:30
Marek Habersack 9e0162ea53 Added system.web.mvc2.pc to output files. Fixes the build. 2010-08-03 09:15:58 +02:00
Gonzalo Paniagua Javier b9063aea3b Fix crash with asynch sockets and unload.
* threadpool.c: applied patch from Lucas Meijer that fixes bug
	#623707. It adds additional checks for the runtime shutting down to
	avoid race conditions when unloading a domain.
2010-08-02 00:03:15 -04:00
Marek Habersack b87a0882cc system.web.mvc2.pc is installed along with other .pc files now. 2010-07-31 00:14:34 +02:00
Marek Habersack 1b68f19e57 Added system.web.mvc2.pc file 2010-07-31 00:10:50 +02:00
Rodrigo Kumpera eac9946fe2 Verify the token for ldtoken.
* verify.c (do_load_token): Verify table and index
	of the source token.

	Fixes #560348
2010-07-30 17:40:04 -03:00
Andrés G. Aragoneses ec0b243e78 TimezoneInfo.cs: fix the NET_2_1 build in the same way as the MONOTOUCH build was. (This was failing on Debian etch with 1.9)
2010-07-30  Andrés G. Aragoneses  <[email protected]>

        * TimezoneInfo.cs: fix the NET_2_1 build in the same way as the
        MONOTOUCH build was. (This was failing on Debian etch with 1.9)
2010-07-31 04:21:48 +08:00
Andrés G. Aragoneses 574ae6e3e6 decl.cs: Avoid using "var" so this can be compiled with Mono 1.9 (current version of Debian etch).
2010-07-30  Andrés G. Aragoneses  <[email protected]>

        * decl.cs: Avoid using "var" so this can be compiled with Mono 1.9
        (current version of Debian etch).
2010-07-31 03:37:27 +08:00
Rodrigo Kumpera 8de46c16df Fix a crash in mono/test.
2010-07-30 Rodrigo Kumpera  <[email protected]>

	* method-to-ir.c (mono_method_to_ir): Handle method with invalid
	signature. This can happen now with the verifier checking them.
2010-07-30 13:36:22 -03:00
Rodrigo Kumpera 9c66b71edf Fix crash when looking up a method.
2010-07-30 Rodrigo Kumpera  <[email protected]>

	* loader.c (find_method): Return null if from_class number
	of interfaces doesnt't match in_class.

	Fixes #567859
2010-07-30 13:36:22 -03:00
Rodrigo Kumpera 818933a0e3 Fix mono/test test suite compilation.
2010-07-30 Rodrigo Kumpera  <[email protected]>

	* class.c (mono_class_layout_fields): Comment out an
	assert from a backport. It can't be done under 2.6
	due to weaker SRE implementation.
2010-07-30 13:36:22 -03:00
Jb Evain 42bdc78199 Delegate.Remove: throw when passing delegates of incompatible types 2010-07-30 17:52:38 +02:00
Rodrigo Kumpera 5533569129 Properly handle stackoverflow on ARGLIST opcode.
2010-07-28 Rodrigo Kumpera  <[email protected]>

	* verify.c (mono_method_verify): Don't move forward
	with verification if a stack overflow is detected for
	the ARGLIST opcode.

	Fixes #601953
2010-07-28 19:07:04 -03:00
Rodrigo Kumpera 286c73c529 Fail array of invalid types.
2010-07-28 Rodrigo Kumpera  <[email protected]>

	* class.c (mono_bounded_array_class_get): Fail arrays
	of void or typedbyref. Those two types are not allowed
	to be used with arrays. Failing them is easier and less
	error prone than returning NULL.

	Fixes #603279
2010-07-28 18:57:33 -03:00
Rodrigo Kumpera 7409967cc6 Dont assert on invalid delegate type.
2010-07-28 Rodrigo Kumpera  <[email protected]>

	* object.c (mono_get_delegate_invoke): Don't assert if
	the Invoke method is not found. This can happen with
	broken types and it's the caller resposibility to deal
	with a null return.

	Fixes #553403
2010-07-28 18:55:57 -03:00
Rodrigo Kumpera 68ad71acb2 [runtime] Handle images with null assembly.
2010-07-28 Rodrigo Kumpera  <[email protected]>

	* class.c (mono_assembly_name_from_token): Handle
	images with null assembly. This can happen with resource
	or broken assemblies.

	Fixes #623586.
2010-07-28 15:19:31 -03:00
vvaradhan d59e4b162f backport of 5b5d0d - Fix #584833 - Support sp names of the form <dbname>.<username>.<spname> 2010-07-28 16:43:00 +05:30
Rodrigo Kumpera 049b37173c Don't crash with null strings during error handling.
2010-07-27 Rodrigo Kumpera  <[email protected]>

	* class.c (concat_two_strings_with_zero): Guard against
	null strings.

	Modified version of patch by Sebastien Pouliot.

	Fixes #623653.
2010-07-27 19:02:48 -03:00
Rodrigo Kumpera 9a6b19a0c4 Avoid to crash on module index equal or smaller than zero.
2010-07-27 Rodrigo Kumpera  <[email protected]>

	* image.c (mono_image_load_module): Handle the case of
	module index equal or smaller than zero. It is possible
	to embed a valid zero index into metadata so this case
	must be explicitly handled.

	Patch by Sebastien Pouliot.

	Fixes #623581.
2010-07-27 19:02:25 -03:00
Rodrigo Kumpera d837057515 Add some non standard bits to metadata verifier.
2010-07-27 Rodrigo Kumpera  <[email protected]>

	* metadata-verify.c (INVALID_IMPLMAP_FLAGS_BITS): Add non standard
	bits for best fit on/off (4,5) and throw on unmappable on/off (12/13).

	Fixes #622221.
2010-07-27 16:42:55 -03:00
Rodrigo Kumpera 550549f4a0 Emit verifiable code for SWF test suite.
2010-07-27 Rodrigo Kumpera  <[email protected]>

	* EventLogger.cs: Emit verifiable code. This was blocking the
	SWF test suite from running under the verifier.
2010-07-27 15:58:32 -03:00
Rodrigo Kumpera bbe8622a8f Improve verifier error message.
2010-07-27 Rodrigo Kumpera  <[email protected]>

	* verify.c (do_invoke_method): Improve error message.
2010-07-27 15:54:28 -03:00
Rodrigo Kumpera c24e1ac53c 2010-07-27 Rodrigo Kumpera <[email protected]>
* verify.c (mono_generic_param_is_constraint_compatible): Don't
	fail a contraint check even if the candidate has no constraints.
	All constraints might resolve to the candidate itself so it can
	have none.

	Fixes #622225.
2010-07-27 14:01:58 -03:00
Jb Evain 5395f5f621 backport of b48826ee..8e47921f.
2010-07-26  Jb Evain  <[email protected]>

	backport of b48826ee..8e47921f.

  * EmitContext.cs: Properly call methods on enumerations.
  Fixes #625367.
2010-07-26 13:11:10 +02:00
vvaradhan d2f0e43df6 backport of 4613d59
2010-07-23  Veerapuram Varadhan  <[email protected]>

	** Fixes #623451
	* DataColumnCollection.cs (MoveColumn): Fix shifting of
	DataColumn according to the direction of movement.
2010-07-23 22:34:49 +05:30
vvaradhan 628c27ff63 backport of 2ec0a00
2010-07-23  Veerapuram Varadhan  <[email protected]>

	** Fixes #565616 - Based on Patch by Hubert FONGARNAND
	* DataContainer.cs (GetContainerData): If typecode is string,
	call Convert.ToString() irrespective of whether value is
	IConvertible or not.
2010-07-23 19:16:42 +05:30
Zoltan Varga 1516c4c176 2010-07-23 Zoltan Varga <[email protected]>
* xdebug.c (mono_save_trampoline_xdebug_info): Call
	mono_loader_lock/unlock_if_inited () to avoid asserts on some platforms during
	startup.
2010-07-23 02:16:42 +02:00
Zoltan Varga 73d5c225ee 2010-07-23 Zoltan Varga <[email protected]>
* loader.c (mono_loader_lock_if_inited): New helper function which can be called
	during startup before the loader lock is initialized.
	(mono_loader_unlock_if_inited): Ditto.
2010-07-23 01:59:36 +02:00
jbevain 8d11bd79d2 fix the build 2010-07-22 23:11:43 +02:00
Gonzalo Paniagua Javier 983c5d17b6 2010-07-21 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: don't accept more work items or keep waiting for them
	if the runtime is shutting down. This way, even the idle threads will
	exit when teh runtime is being shut down.


svn path=/branches/mono-2-6/mono/; revision=160685
2010-07-21 15:57:16 +00:00
Jackson Harper 54aacd1cc5 * Syscall.cs: Add bindings to the various epoll
functions. (epoll_create, epoll_ctl, epoll_wait).


svn path=/branches/mono-2-6/mcs/; revision=160678
2010-07-21 13:54:07 +00:00
Zoltan Varga 652d1958af 2010-07-20 Zoltan Varga <[email protected]>
* method-to-ir.c (op_to_op_src2_membase): Reorganize the amd64 op->op membase
	code, it was missing a few 'break's.

svn path=/branches/mono-2-6/mono/; revision=160634
2010-07-20 21:21:00 +00:00
Miguel de Icaza 555838d68b Backport: 2010-02-03 Rodrigo Kumpera <[email protected]>
* BaseMachine.cs (Split): Don't add empty strings if they don't come from
	the first capture group. Fixes #566117.

svn path=/branches/mono-2-6/mcs/; revision=160628
2010-07-20 17:51:24 +00:00
Miguel de Icaza 52490ce298 Backport
2010-07-20  Miguel de Icaza  <[email protected]>

	* parser.cs (ParseEscape): Now parses with some context, whether
	we are parsing inside a character range which can not contain
	back-references or when we are parsing on a string context which
	can contain back references.

	This fixes bug #577346 which exposed a bug parsing this:

	new Regex("[\\177-\\377]")


svn path=/branches/mono-2-6/mcs/; revision=160627
2010-07-20 17:34:13 +00:00
Sebastien Pouliot d3ec79f480 2010-07-19 Sebastien Pouliot <[email protected]>
* Icon.cs: Remove width==height check when deserializing (uncommon
	but valid icons). Fix bug #581400
	[Backport r160580]


svn path=/branches/mono-2-6/mcs/; revision=160581
2010-07-19 18:16:27 +00:00
Geoff Norton e8918fa2e9 Fix for monotouch
svn path=/branches/mono-2-6/mcs/; revision=160557
2010-07-19 01:39:46 +00:00
Sebastien Pouliot bc17eadaf7 2010-07-16 Sebastien Pouliot <[email protected]>
* Graphics.cs (CopyFromScreen): Avoid crash if asked for a region
	to big for XGetImage to return. Fix bug #588228
	[Backport r160507]


svn path=/branches/mono-2-6/mcs/; revision=160508
2010-07-16 23:55:02 +00:00
Gonzalo Paniagua Javier 4d1a8f3faf 2010-07-16 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: ignore values set in CachePolicy and
	UseDefaultCredentials instead of throwing NIEX.


svn path=/branches/mono-2-6/mcs/; revision=160503
2010-07-16 19:02:52 +00:00
Sebastien Pouliot 218e177270 2010-07-16 Sebastien Pouliot <[email protected]>
* MD2Managed.cs:
	* MD4Managed.cs:
		Increment ibStart in HashCore
		[Backport r160490]


svn path=/branches/mono-2-6/mcs/; revision=160491
2010-07-16 15:42:53 +00:00
Gonzalo Paniagua Javier c74bcb731a 2010-07-16 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.c: fixes bug #622398 for real in OSX.
	This was preventing the WSQ from working.


svn path=/branches/mono-2-6/mono/; revision=160468
2010-07-16 05:10:29 +00:00
Gonzalo Paniagua Javier 9ad5e35c36 revert. Not needed
svn path=/branches/mono-2-6/mono/; revision=160465
2010-07-16 03:51:53 +00:00
Geoff Norton be115ab577 Fix the monotouch build
svn path=/branches/mono-2-6/mcs/; revision=160396
2010-07-15 01:05:53 +00:00
Gonzalo Paniagua Javier ccd4ec4878 2010-07-14 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: allow values out of range as MS does.


svn path=/branches/mono-2-6/mcs/; revision=160380
2010-07-14 20:30:26 +00:00
Jb Evain 3a79ccf178 style
svn path=/branches/mono-2-6/mcs/; revision=160340
2010-07-14 08:18:50 +00:00
Jb Evain f98d614f76 2010-07-14 Jb Evain <[email protected]>
* Enumerable.cs (Union): fix HashSet.Contains call.


svn path=/branches/mono-2-6/mcs/; revision=160339
2010-07-14 08:17:59 +00:00
Geoff Norton 3035ae2520 poll is broken on osx
svn path=/branches/mono-2-6/mono/; revision=160325
2010-07-14 00:48:04 +00:00
Gonzalo Paniagua Javier 789243985c 2010-07-13 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.h:
	* mono-semaphore.c: use io-layer wait functions in OSX.


svn path=/branches/mono-2-6/mono/; revision=160311
2010-07-13 19:25:55 +00:00
Veerapuram Varadhan 4af5dc42af backport of r160302
2010-07-13  Veerapuram Varadhan  <[email protected]>

	** Fixes #613845
	* Tds70.cs (WriteParameterInfo): Round money values to 4
	* decimals.

svn path=/branches/mono-2-6/mcs/; revision=160303
2010-07-13 15:56:50 +00:00
Jb Evain aa35ea3773 2010-07-13 Jb Evain <[email protected]>
backport of 160298.

	* Enumerable.cs (Except): fix HashSet.Contains call.
	Fixes #621911.


svn path=/branches/mono-2-6/mcs/; revision=160299
2010-07-13 14:36:57 +00:00
Veerapuram Varadhan 02ff6c2276 backport of r160281
2010-07-12  Veerapuram Varadhan  <[email protected]>

	** Fixes #569543
	* Tds70.cs (ExecPrepared): Revert back to old changes.
	* Tds80.cs (ExecPrepared): Override for Tds 8 version that
	optimizes network bandwidth.

svn path=/branches/mono-2-6/mcs/; revision=160282
2010-07-13 08:58:34 +00:00
Gonzalo Paniagua Javier f79e862f55 refix the build
svn path=/branches/mono-2-6/mcs/; revision=160275
2010-07-13 00:31:59 +00:00
Gonzalo Paniagua Javier fc0e187edc Fix the build
svn path=/branches/mono-2-6/mcs/; revision=160269
2010-07-12 22:48:08 +00:00
Andrew Jorgensen 47fe258f90 remainder of previous changes to spec file
svn path=/branches/mono-2-6/mono/; revision=160267
2010-07-12 21:34:17 +00:00
Andrew Jorgensen d2ecf76b51 fix a circular dep
svn path=/branches/mono-2-6/mono/; revision=160265
2010-07-12 19:21:58 +00:00
Rodrigo Kumpera cf3a2142a5 2010-07-12 Rodrigo Kumpera <[email protected]>
* verify.c (mono_generic_param_is_constraint_compatible):
	The candidate type itself might satisty the required
	constraints.

	Fixes #621599.

svn path=/branches/mono-2-6/mono/; revision=160262
2010-07-12 17:23:22 +00:00
Veerapuram Varadhan 958d879ab2 backport of r160199
svn path=/branches/mono-2-6/mcs/; revision=160200
2010-07-10 10:37:14 +00:00
Rodrigo Kumpera f5e61e5ffb 2010-07-10 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_signature_checked): Use checked
	variant of inflate_generic_signature.

	Fixes #606353.

svn path=/branches/mono-2-6/mono/; revision=160194
2010-07-10 01:20:43 +00:00
Rodrigo Kumpera e0f258e53b 2010-07-09 Rodrigo Kumpera <[email protected]>
* class.c (mono_method_can_access_method_full): Handle type
	accessibility with very deep nested types.

	* class.c (mono_method_can_access_field_full): Ditto.

	Fixes #619300.

svn path=/branches/mono-2-6/mono/; revision=160182
2010-07-09 23:17:21 +00:00
Gonzalo Paniagua Javier 4fd1ce4372 2010-07-09 Gonzalo Paniagua Javier <[email protected]>
* TimeZoneInfo.cs: avoid nullref when there are no adjustment rules.
	Fixes bug #619811.


svn path=/branches/mono-2-6/mcs/; revision=160158
2010-07-09 21:37:39 +00:00
Gonzalo Paniagua Javier 7365be1f63 Fix the 1.1 build
svn path=/branches/mono-2-6/mcs/; revision=160088
2010-07-08 22:29:33 +00:00
Gonzalo Paniagua Javier 6cc3e7d349 2010-07-08 Gonzalo Paniagua Javier <[email protected]>
* ThemeWin32Classic.cs: implement ResetDefaults.
	Fixes bug #581956.


svn path=/branches/mono-2-6/mcs/; revision=160086
2010-07-08 21:25:36 +00:00
Gonzalo Paniagua Javier 6c18b38d21 clog
svn path=/branches/mono-2-6/mcs/; revision=160083
2010-07-08 21:04:33 +00:00
Gonzalo Paniagua Javier 7b0a263fca 2010-07-08 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: handle compressed streams when automatic decompression
	is turned on by a class derived from WebClient.


svn path=/branches/mono-2-6/mcs/; revision=160082
2010-07-08 21:04:05 +00:00
Ankit Jain 4ae701cad0 * Engine.cs: Define 4.0 toolset for non-NET_4_0 profiles also,
but fallback to 3.5 toolset there. This is required for the mono-2-6
branch, which doesn't lacks NET_4_0 .

svn path=/branches/mono-2-6/mcs/; revision=160080
2010-07-08 19:27:14 +00:00
Gonzalo Paniagua Javier 24d0a7b0b5 2010-07-08 Gonzalo Paniagua Javier <[email protected]>
* DateTime.cs: allow between 1 and 7 digits after the dot.
	Fixes bug #594559.


svn path=/branches/mono-2-6/mcs/; revision=160077
2010-07-08 19:06:49 +00:00
Veerapuram Varadhan ddd7c3708c 2010-07-07 Veerapuram Varadhan <[email protected]>
** Fixes #609109 - DateTime part
	* TdsComm.cs (Append[DateTime]): More fix for handling SqlServer
	MinValue for DateTime.

svn path=/branches/mono-2-6/mcs/; revision=159987
2010-07-07 06:58:13 +00:00
Gonzalo Paniagua Javier 7c28038703 2010-07-06 Gonzalo Paniagua Javier <[email protected]>
* Process.cs: allow the exit callback to be used more than once. Fixes
	bug #614909.



svn path=/branches/mono-2-6/mcs/; revision=159979
2010-07-06 18:39:00 +00:00
Andrew Jorgensen d8742c7999 bump version again
svn path=/branches/mono-2-6/mono/; revision=159975
2010-07-06 17:23:25 +00:00
Veerapuram Varadhan db2fcaa9a5 backport of r159962
2010-07-06  Veerapuram Varadhan  <[email protected]>

	** Fixes #609109
	* TdsComm.cs (Append[DateTime]): Handle datetime values sanely
	that are less than epoch.
	(Append[string]): Fix boundary checking for availability of
	enough buffer

svn path=/branches/mono-2-6/mcs/; revision=159969
2010-07-06 16:07:33 +00:00
Martin Baulig b1afdaba84 Bump SDB's minor version to 2.
2010-07-05  Martin Baulig  <[email protected]>

	* debugger-agent.c: Bump minor version to 2.

svn path=/branches/mono-2-6/mono/; revision=159925
2010-07-05 21:28:29 +00:00
Gonzalo Paniagua Javier bb8767c7d4 2010-07-05 Gonzalo Paniagua Javier <[email protected]>
* NetworkInterface.cs: avoid endless loop when a bad length is
	received for AF_PACKET.


svn path=/branches/mono-2-6/mcs/; revision=159920
2010-07-05 18:30:12 +00:00
Gonzalo Paniagua Javier 6174f1d4de 2010-07-05 Gonzalo Paniagua Javier <[email protected]>
* TimeSpan.cs: two consecutive colons produce an error now.
	Fixes bug #598467.


svn path=/branches/mono-2-6/mcs/; revision=159918
2010-07-05 18:21:56 +00:00
Dick Porter c0df7617c0 2010-07-05 Dick Porter <[email protected]>
* MenuAPI.cs: Only handle mnemonic key shortcuts when the context
	menu is visible.  Fixes bug 616739.


svn path=/branches/mono-2-6/mcs/; revision=159884
2010-07-05 10:38:29 +00:00
Gonzalo Paniagua Javier f79db26b02 2010-07-04 Gonzalo Paniagua Javier <[email protected]>
* Process.cs: ignore processes that finish while we are looking for
	processes by name. Fixes bug #596779.


svn path=/branches/mono-2-6/mcs/; revision=159867
2010-07-04 21:31:52 +00:00
Veerapuram Varadhan 93c6d15d75 backport of r159851
2010-07-03  Veerapuram Varadhan  <[email protected]>

	** Fixes #609935
	* TdsMetaParameter.cs (Prepare): Use GetActualSize() instead of
	* Size
	property to calculate the length of a nvarchar param.

svn path=/branches/mono-2-6/mcs/; revision=159853
2010-07-03 15:56:51 +00:00
Mark Probst 236c10484a 2010-06-25 Mark Probst <[email protected]>
* class.c (mono_class_inflate_generic_method_full_checked): Added
        a comment regarding a hack in mini-trampolines.c.

        Backport of r159578.

2010-06-25  Mark Probst  <[email protected]>

        * mini-trampolines.c (common_call_trampoline): An ugly hack to
        work around a potentially very hard to fix problem with inflating
        generic methods.

        Backport of r159578.

2010-06-26  Mark Probst  <[email protected]>

        * bug-616463.cs: New test.

        * Makefile.am: Test added to generic tests.

        Backport of r159578.

svn path=/branches/mono-2-6/mono/; revision=159795
2010-07-01 20:03:19 +00:00
Martin Baulig 39778f30b8 Resume from the signal handler and do most of the work on the normal stack.
2010-07-01  Martin Baulig  <[email protected]>

	Resume from the signal handler and do most of the work on the normal stack.

	* exceptions-x86.c (mono_arch_handle_exception): Port this to Windows.

	Backport r157282:

	2010-05-13  Zoltan Varga  <[email protected]>

		* exceptions-amd64.c (mono_arch_handle_exception): Resume from the signal handler
		and do most of the work on the normal stack even if
		sigaltstack is disabled.

	Backport r157380:

	2010-05-14  Geoff Norton  <[email protected]>

		* exceptions-x86.c: Fix the alignment of this trampoline so we dont get a
		misaligned stack on darwin.

	Backport r157327:

	2010-05-13  Zoltan Varga  <[email protected]>

		* exceptions-x86.c (mono_arch_handle_exception): Resume from the signal handler
		and do most of the work on the normal stack.
		(mono_x86_get_signal_exception_trampoline): New x86 specific trampoline function.

svn path=/branches/mono-2-6/mono/; revision=159782
2010-07-01 16:07:43 +00:00
Marek Habersack 51b5c38312 Backport of r159758
svn path=/branches/mono-2-6/mcs/; revision=159759
2010-07-01 07:59:28 +00:00
Rodrigo Kumpera 778f4c06c4 2010-06-29 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_make_array_type): Raise a TLE if a
	TypedByRef is passed.

	* icall.c (ves_icall_Type_make_byref_type): Ditto.

	* icall.c (ves_icall_Type_MakePointerType): Ditto.

	Fixes #612780.

svn path=/branches/mono-2-6/mono/; revision=159696
2010-06-29 21:01:37 +00:00
Gonzalo Paniagua Javier e8a3238bc7 2010-06-28 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: verify the last IPv4 digit too.
	Fixes bug #612135.


svn path=/branches/mono-2-6/mcs/; revision=159634
2010-06-28 22:15:27 +00:00
Gonzalo Paniagua Javier 77aeaa06e5 2010-06-28 Gonzalo Paniagua Javier <[email protected]>
* SmtpClient.cs: support PLAIN authentication and throw if LOGIN and
	PLAIN are not supported. Fixes bug #607249.


svn path=/branches/mono-2-6/mcs/; revision=159618
2010-06-28 20:59:56 +00:00
Dick Porter 35c212adfb 2010-06-24 Dick Porter <[email protected]>
* Fix NullReferenceException when keyboard shortcut activates
	disabled context menu item.  Fixes bug 615940.


svn path=/branches/mono-2-6/mcs/; revision=159499
2010-06-24 14:01:38 +00:00
Veerapuram Varadhan 84d9d1b63f 2010-06-23 Veerapuram Varadhan <[email protected]>
** Fixes #581679
	* DataRelationCollection.cs (Add, Remove): Use DataRelation obj
	instead of this when raising OnCollectionChang(ing, ed) events.

svn path=/branches/mono-2-6/mcs/; revision=159448
2010-06-23 18:59:39 +00:00
Andrew Jorgensen 813f23ac81 version
svn path=/branches/mono-2-6/mono/; revision=159434
2010-06-23 16:09:50 +00:00
Gonzalo Paniagua Javier 8db1deb79d 2010-06-22 Gonzalo Paniagua Javier <[email protected]>
* UriTest.cs: exclude 2 tests in 4.0.


svn path=/branches/mono-2-6/mcs/; revision=159380
2010-06-22 21:19:55 +00:00
Gonzalo Paniagua Javier d0ab906b43 2010-06-22 Gonzalo Paniagua Javier <[email protected]>
* Uri.cs: change of behavior un 4.0.
	Fixes bug #602411.


svn path=/branches/mono-2-6/mcs/; revision=159379
2010-06-22 21:19:27 +00:00
Gonzalo Paniagua Javier dc037f0353 2010-06-22 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: we need to read the output to give the process time
	to start. Fixes bug #591136.


svn path=/branches/mono-2-6/mcs/; revision=159371
2010-06-22 20:10:17 +00:00
Ankit Jain c4b7ded347 Update xbuild and Microsoft.Build.* from trunk, with the
toolsversion support.

svn path=/branches/mono-2-6/mcs/; revision=159362
2010-06-22 17:24:16 +00:00
Jb Evain 9678267eb6 2010-06-22 Jb Evain <[email protected]>
backport of r159337.

	* Queryable.cs: properly set the constants types in the queryable
	expression tree.


svn path=/branches/mono-2-6/mcs/; revision=159338
2010-06-22 13:30:22 +00:00
Jb Evain 2f2bd4ce47 fixicate
svn path=/branches/mono-2-6/mcs/; revision=159332
2010-06-22 12:22:08 +00:00
Jb Evain 455a746c96 2010-06-22 Jb Evain <[email protected]>
backport of r159329.

	* QueryableEnumerable.cs: override ToString.


svn path=/branches/mono-2-6/mcs/; revision=159330
2010-06-22 12:15:13 +00:00
Dick Porter 90d3d5cfff 2010-06-22 Dick Porter <[email protected]>
* TextControl.cs, XplatUIX11.cs, XplatUICarbon.cs: Expand paint
	regions slightly so that the full extents of text get painted.
	Fixes bug 464464.


svn path=/branches/mono-2-6/mcs/; revision=159328
2010-06-22 12:07:26 +00:00
Rodrigo Kumpera 745a3103c0 2010-06-21 Rodrigo Kumpera <[email protected]>
* parser.cs: Handle repetition of position assertions.

	Fixes #610587.

	Backport of r159287.

svn path=/branches/mono-2-6/mcs/; revision=159291
2010-06-21 20:26:04 +00:00
Jonathan Pryor 796ceff794 Backport r155640 from trunk:
* Mono.Documentation/monodocer.cs: Use Int64 instead of UInt64 for
	  enum values, so that we can properly capture negative values.

svn path=/branches/mono-2-6/mcs/; revision=159290
2010-06-21 20:25:42 +00:00
Marek Habersack a850c3df61 Backport of r159280
svn path=/branches/mono-2-6/mcs/; revision=159281
2010-06-21 18:42:26 +00:00
Zoltan Varga 16082ea5af 2010-06-21 Zoltan Varga <[email protected]>
* marshal.c (mono_array_to_lparray): Allow MONO_TYPE_PTR. Fixes #615952.

svn path=/branches/mono-2-6/mono/; revision=159279
2010-06-21 18:24:25 +00:00
Marek Habersack d7a6a94650 Backport of r159250
svn path=/branches/mono-2-6/mcs/; revision=159251
2010-06-21 12:31:32 +00:00
Zoltan Varga 6f7fd321fb 2010-06-19 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_create_generic_trampoline): Increase the buf len a little,
	to avoid an assert.

svn path=/branches/mono-2-6/mono/; revision=159170
2010-06-19 01:00:49 +00:00
Marek Habersack f2563ca2c7 Backport of r159166
svn path=/branches/mono-2-6/mcs/; revision=159167
2010-06-19 00:16:59 +00:00
Miguel de Icaza b433a909ab Backport
svn path=/branches/mono-2-6/mcs/; revision=159164
2010-06-18 23:38:07 +00:00
Marek Habersack 5e585590bb Backport of r159161
svn path=/branches/mono-2-6/mcs/; revision=159162
2010-06-18 23:02:03 +00:00
Marek Habersack d2fb350f15 Forgotten files...
svn path=/branches/mono-2-6/mcs/; revision=159160
2010-06-18 22:57:04 +00:00
Gonzalo Paniagua Javier 0db970da26 2010-06-18 Gonzalo Paniagua Javier <[email protected]>
* Uri.cs: fix serialization for relative URIs. Patch from Greg
	Smolyn. Fixes bug #615320.


svn path=/branches/mono-2-6/mcs/; revision=159142
2010-06-18 17:23:18 +00:00
Gonzalo Paniagua Javier d30ea6e9ba Fix the build
svn path=/branches/mono-2-6/mcs/; revision=159141
2010-06-18 15:46:49 +00:00
Zoltan Varga 9db915cfa5 2010-06-17 Zoltan Varga <[email protected]>
* VirtualMachine.cs Connection.cs: Group events received together into an EventSet,
	like it is done in JDI. Add a GetNextEventSet () method.

svn path=/branches/mono-2-6/mcs/; revision=159087
2010-06-17 19:41:43 +00:00
Marek Habersack 369fb5ad04 Backport of r159046
svn path=/branches/mono-2-6/mcs/; revision=159047
2010-06-17 00:56:39 +00:00
Miguel de Icaza 449525c8a1 Backport fix for 605797
svn path=/branches/mono-2-6/mcs/; revision=159043
2010-06-16 23:39:38 +00:00
Miguel de Icaza 150a9e5363 Fix for 613226
svn path=/branches/mono-2-6/mcs/; revision=159040
2010-06-16 23:27:36 +00:00
Miguel de Icaza 27da4cfa63 Add Serializable
svn path=/branches/mono-2-6/mcs/; revision=159039
2010-06-16 23:13:29 +00:00
Marek Habersack 8b1cbd9cc6 Backport of r159037
svn path=/branches/mono-2-6/mcs/; revision=159038
2010-06-16 21:50:26 +00:00
Gonzalo Paniagua Javier c1aedc846c 2010-06-16 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: DELETE allows an entity body.
	Fixes bug #614483.


svn path=/branches/mono-2-6/mcs/; revision=159035
2010-06-16 20:24:37 +00:00
Zoltan Varga c53d1435d1 2010-06-15 Zoltan Varga <[email protected]>
* *: Add testing infrastructure by moving the tests from mono/tests.

svn path=/branches/mono-2-6/mcs/; revision=159025
2010-06-16 14:33:58 +00:00
Gonzalo Paniagua Javier be6aa8b797 2010-06-15 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: 307 does not change request method.


svn path=/branches/mono-2-6/mcs/; revision=158979
2010-06-15 21:58:21 +00:00
Veerapuram Varadhan 844eac558d 2010-06-15 Veerapuram Varadhan <[email protected]>
** Fixes #613087
	* Tds.cs (ProcessLoginAck): Fix server version being compared in
	the switch-case.
	* Tds70.cs (BuildPreparedParameters, BuildProcedureCall): Set
	* default
	precision to 18 as used by MS.Net when connecting to SqlServer
7.0.
	(BuildExec, ExecRPC): Marked protected in order to be used by
Tds80
	and henceforth.
	* Tds80.cs (Execute): Separated from Tds70 to include Tds80
	* changes.

svn path=/branches/mono-2-6/mcs/; revision=158952
2010-06-15 16:29:35 +00:00
Marek Habersack e1e3e523e3 Backport of r158909
svn path=/branches/mono-2-6/mcs/; revision=158910
2010-06-15 01:11:23 +00:00
Marek Habersack 6c8b3f373d Backport of r158905
svn path=/branches/mono-2-6/mcs/; revision=158906
2010-06-14 23:25:27 +00:00
Geoff Norton 9ac3e3e94c 2010-06-14 Geoff Norton <[email protected]>
* dyn_load.c: Fix one other place where l_addr could be null on
	bionic.

svn path=/branches/mono-2-6/mono/; revision=158889
2010-06-14 17:36:55 +00:00
Zoltan Varga f50e3dad58 2010-06-12 Zoltan Varga <[email protected]>
* aot-compiler.c (compile_method): Add a 'depth' parameter to add_generic_class too
	to fix infinite generic recursion. Fixes #612702.

svn path=/branches/mono-2-6/mono/; revision=158854
2010-06-12 18:20:21 +00:00
Zoltan Varga 29e4d44e89 Fix the 2.6 build.
svn path=/branches/mono-2-6/mono/; revision=158848
2010-06-11 22:42:06 +00:00
Jonathan Pryor f58e58a7dd * Monodoc/ecma-provider.cs: Reduce memory requirements when assembling
ECMA documentation.  The problem was that we parse all the XML files
	  in order to extract //summary and //remarks members, and then stored
	  the XmlNodes for these members.  XmlNode keeps a ref to the creating
	  XmlDocument, thus keeping the XmlNode around requires keeping the
	  entire XmlDocument around; result: ~350+MB RAM is needed to assemble
	  netdocs.zip (in ../../docs).  To fix, import the XmlNodes that we
	  actually care about into an otherwise empty XmlDocument, so that we 
	  only save the nodes we need. Result: ~32MB RAM is needed.
	  Fixes #602560.

svn path=/branches/mono-2-6/mcs/; revision=158836
2010-06-11 15:15:08 +00:00
Jonathan Pryor ac89f8ba29 Fix date. Oops.
svn path=/branches/mono-2-6/mcs/; revision=158793
2010-06-10 15:09:55 +00:00
Jonathan Pryor 2c713a8682 * Mono.Documentation/monodocs2html.cs: Regenerate all index.{opts.ext}
files if any of the source .xml files have changed.  This allows
	  new <summary/> values to be inserted into the index.{opts.ext}
	  files, instead of the index files being "stale".  Fixes #573121.

svn path=/branches/mono-2-6/mcs/; revision=158791
2010-06-10 15:09:05 +00:00
Jonathan Pryor cd91fdc61b * System.Collections.ObjectModel/KeyedCollection.cs: Make
KeyedCollection.InsertItem() exception safe, so that if the index is 
	  invalid (negative or too large) we don't add the entry to the 
	  underlying Dictionary.
	* Test/System.Collections.ObjectModel/KeyedCollectionTest.cs: Verify 
	  exception safety of Insert().

svn path=/branches/mono-2-6/mcs/; revision=158749
2010-06-09 20:25:37 +00:00
Levi Bard 3d0338b2ee Clear unloaded types on appdomain unload.
svn path=/branches/mono-2-6/mono/; revision=158733
2010-06-09 12:05:21 +00:00
Jonathan Pryor 31ed8e9db3 * System/String.cs: Fix String.Split(String[],int,StringSplitOptions)
so that:
	  - it properly obeys the 'count' parameter; Fixes #601772.
	  - "...".Split(new[]{"."}, 2, StringSplitOptions.RemoveEmptyEntries).Length==0
	  - "A..".Split (new String[] { "." }, 2, StringSplitOptions.RemoveEmptyEntries) == new[]{"A"}
	  - Remove duplicative array handling code by using List<String>.
	* Test/System/StringTest.cs: Add tests for #601772 (i.e. take 
	  SplitStringChars(), change all the chars to Strings, and things 
	  should work).

svn path=/branches/mono-2-6/mcs/; revision=158671
2010-06-08 15:30:32 +00:00
Zoltan Varga 4078d59019 2010-06-08 Zoltan Varga <[email protected]>
* liveness.c (visit_bb): Make the component vregs of long vars volatile as well.
	Fixes #612206.

	* exceptions.cs: Add a test.

svn path=/branches/mono-2-6/mono/; revision=158669
2010-06-08 15:17:52 +00:00
Zoltan Varga cb1b4d1db0 2010-06-05 Zoltan Varga <[email protected]>
* docs/Makefile (MONO_DIRS): Add Mono.Debugger.Soft.

svn path=/branches/mono-2-6/mcs/; revision=158546
2010-06-05 19:04:17 +00:00
Zoltan Varga da16f81734 Sync the documentation with the SVN HEAD.
svn path=/branches/mono-2-6/mcs/; revision=158545
2010-06-05 19:03:04 +00:00
Marek Habersack 9e8b5b5b68 Backport of r158484
svn path=/branches/mono-2-6/mono/; revision=158485
2010-06-04 16:14:54 +00:00
Zoltan Varga 20e1c33167 2010-06-04 Zoltan Varga <[email protected]>
* StackFrame.cs (GetVisibleVariables): New method to return the set of variables
	visible at the current stack frame.

svn path=/branches/mono-2-6/mcs/; revision=158475
2010-06-04 14:41:34 +00:00
Zoltan Varga a94f45afe7 2010-06-03 Zoltan Varga <[email protected]>
* dwarfwriter.c: Update after the mono_debug_lookup_locals () changes.

	* debugger-agent.c (method_commands_internal): Ditto. Return scope information for
	locals.

svn path=/branches/mono-2-6/mono/; revision=158423
2010-06-03 17:26:57 +00:00
Zoltan Varga 2fdf235890 2010-06-03 Zoltan Varga <[email protected]>
* debug-mono-symfile.c (mono_debug_symfile_lookup_locals): Rewrite this so it returns
	all information in a single structure. Return information about scopes as well.

	* mono-debug.c (mono_debug_lookup_locals): Ditto.

svn path=/branches/mono-2-6/mono/; revision=158422
2010-06-03 17:25:15 +00:00
Zoltan Varga baa0bb7caf 2010-06-03 Zoltan Varga <[email protected]>
* debugger-agent.c (appdomain_unload): Clear all breakpoint instances in the dying
	appdomain.

svn path=/branches/mono-2-6/mono/; revision=158416
2010-06-03 16:42:35 +00:00
Rodrigo Kumpera 47d5ade6f9 2010-06-02 Rodrigo Kumpera <[email protected]>
* verify.c (verify_generic_parameters): Verify if
	there are not loops in constraints.

	Backport of r158342.

svn path=/branches/mono-2-6/mono/; revision=158347
2010-06-02 15:43:37 +00:00
Rodrigo Kumpera 7c8489712f 2010-06-02 Rodrigo Kumpera <[email protected]>
* verify.c (is_compatible_boxed_valuetype): Constaints
	must be recursively checked if one generic argument
	has a constraint on another.

	Fixes #610625.

	Backport of r158342.

svn path=/branches/mono-2-6/mono/; revision=158346
2010-06-02 15:43:29 +00:00
Rodrigo Kumpera f33bf53266 2010-06-01 Rodrigo Kumpera <[email protected]>
* gfile-win32.c: Use __stat64 instead of _stat64.

	Backport of r156824 by (Jonathan Chambers  <[email protected]>)

svn path=/branches/mono-2-6/mono/; revision=158305
2010-06-01 22:48:19 +00:00
Rodrigo Kumpera ecc664491c 2010-06-01 Rodrigo Kumpera <[email protected]>
* src/gstring.c: Put in some null guards for the ctors

	Backport of r157279 by (Alan McGovern  <[email protected]>).

svn path=/branches/mono-2-6/mono/; revision=158304
2010-06-01 22:40:54 +00:00
Rodrigo Kumpera 32867f3dee 2010-06-01 Rodrigo Kumpera <[email protected]>
* threadpool.c (process_io_event): Discard io events
	if the domain is unloading. Fixes part of #582162.

svn path=/branches/mono-2-6/mono/; revision=158302
2010-06-01 20:36:07 +00:00
Martin Baulig 67ab9f0733 #608721: Fix a crash on exit.
2010-05-31  Martin Baulig  <[email protected]>

	Fix #608271.

	* debugger-agent.c (breakpoints_cleanup): Iterate over `event_requests', call
	clear_breakpoint() on all breakpoint events and remove them from the list.

svn path=/branches/mono-2-6/mono/; revision=158263
2010-06-01 10:09:11 +00:00
Geoff Norton b9ea75183e 2010-05-31 Geoff Norton <[email protected]>
* dyn_load.c: Its possible for linkmap->l_addr to be null for the
	linker entry on some systems (Android/Bionic based libc's)

svn path=/branches/mono-2-6/mono/; revision=158238
2010-06-01 00:38:32 +00:00
Jb Evain 5bf0e91ca4 2010-05-31 Jb Evain <[email protected]>
Merge the MonoTouch Linker branch.

	* Mono.Linker/TypeParser.cs: add a type parser.

	* Mono.Linker.Steps/MarkStep.cs: properly mark types used
	with typeof in custom attributes

	* monolinker.exe.sources: add TypeParser.cs

svn path=/branches/mono-2-6/mcs/; revision=158210
2010-05-31 12:50:12 +00:00
Gonzalo Paniagua Javier d401a9f693 2010-05-29 Gonzalo Paniagua Javier <[email protected]>
* FileStream.cs: backport of Miguel's r145271 that fixes bug #531613.


svn path=/branches/mono-2-6/mcs/; revision=158147
2010-05-29 05:27:54 +00:00
Jonathan Pryor 027bc36be8 * net_4_0_System.Web.dll.sources: Fix NET_4_0 build break;
add System.Web.UI/MainDirectiveAttribute.cs to the build.

svn path=/branches/mono-2-6/mcs/; revision=158072
2010-05-28 03:38:29 +00:00
Robert Jordan 93435623bd 2010-05-28 Robert Jordan <[email protected]>
* Makefile, *.dll.sources: disambiguate between Mvc and Mvc2
	by using a distinct LIBRARY. Needed because the current
	build system does not pay attention to LIBRARY_COMPAT
	while building *.reponse  and *.makefrag.

	Backport from trunk.

svn path=/branches/mono-2-6/mcs/; revision=158068
2010-05-27 23:33:33 +00:00
Zoltan Varga d293c25066 2010-05-27 Zoltan Varga <[email protected]>
* mini-s390x.c (mono_arch_output_basic_block): Applied patch from Aurelien Minvielle
	. Fix OP_ATOMIC_EXCHANGE_I4 on s390x. Fixes #609023.

svn path=/branches/mono-2-6/mono/; revision=158056
2010-05-27 18:24:08 +00:00
Martin Baulig 94675a0967 #605698: Execute SDB commands in the debuggee's appdomain.
2010-05-27  Martin Baulig  <[email protected]>

	Fix #605698.

	* debugger-agent.c (method_commands, type_commands): Temporarily
	set the appdomain while executing this method; do all metadata
	calls in the debuggee's appdomain where user assemblies are loaded.

svn path=/branches/mono-2-6/mono/; revision=158051
2010-05-27 17:35:45 +00:00
Marek Habersack b4fac6e80b MVC2
svn path=/branches/mono-2-6/mcs/; revision=157988
2010-05-26 21:01:01 +00:00
Jb Evain b9da66dd7b backport tests fixes
svn path=/branches/mono-2-6/mcs/; revision=157959
2010-05-26 12:24:41 +00:00
Martin Baulig 1e07d53543 Release memory from symfiles that were loaded from memory.
2010-05-25  Martin Baulig  <[email protected]>

	Applying a patch from Lucas Meijer <[email protected]>.

	* debug-mono-symfile.c: Release memory from symfiles that were
	loaded from memory.

svn path=/branches/mono-2-6/mono/; revision=157864
2010-05-25 15:42:57 +00:00
Martin Baulig d9d784378a Add public API to get the protocol version.
2010-05-24  Martin Baulig  <[email protected]>

	* Connection.cs (VersionInfo): Make this public.

	* VirtualMachine.cs (Version): New public property.

svn path=/branches/mono-2-6/mcs/; revision=157863
2010-05-25 15:40:42 +00:00
Jb Evain 54ec00ea9d 2010-05-25 Jb Evain <[email protected]>
backport of r157831.

	* Enumerable.cs: make Reverse lazier. Based on a patch by
	Matthew Flaschen <[email protected]>. Fixes #608195.


svn path=/branches/mono-2-6/mcs/; revision=157832
2010-05-25 08:56:37 +00:00
Zoltan Varga cbb9e9025f 2010-05-24 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_free_dynamic_wrappers): Avoid an assert when this is called
	during shutdown.

svn path=/branches/mono-2-6/mono/; revision=157809
2010-05-24 21:29:17 +00:00
Zoltan Varga 5618a3c31e 2010-05-23 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Propagate exceptions in one more place.

svn path=/branches/mono-2-6/mono/; revision=157770
2010-05-22 23:03:32 +00:00
Zoltan Varga e2da6338ca 2010-05-23 Zoltan Varga <[email protected]>
* mono-logger.h (mono_trace_message): Fix some warnings.

svn path=/branches/mono-2-6/mono/; revision=157768
2010-05-22 22:06:25 +00:00
Zoltan Varga 32f4032bcd 2010-05-23 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Propagate exceptions from
	mono_runtime_class_init_full ().
	(mono_jit_runtime_invoke): Ditto. Fixes #608073.

svn path=/branches/mono-2-6/mono/; revision=157767
2010-05-22 22:03:12 +00:00
Geoff Norton 84078e8cd7 2010-05-21 Geoff Norton <[email protected]>
* BasicHttpBinding.cs: Transport mode supports authentication as well.

svn path=/branches/mono-2-6/mcs/; revision=157749
2010-05-22 02:45:39 +00:00
Andrew Jorgensen 2083321ee6 2.6.5
svn path=/branches/mono-2-6/mono/; revision=157732
2010-05-21 19:32:27 +00:00
Zoltan Varga c51f0648bc 2010-05-21 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_output_basic_block): Use ins->inst_c1 instead of p1, the
	two are not the same on ilp32.

svn path=/branches/mono-2-6/mono/; revision=157716
2010-05-21 18:27:31 +00:00
Martin Baulig 2a0a805577 #604911: Use alertable WaitForMultipleObjectsEx().
2010-05-19 Martin Baulig  <[email protected]>

	Fix #604911.

	* threads.c (wait_for_tids_or_state_change): Use an
	alertable WaitForMultipleObjectsEx().
	(wait_for_tids): Likewise.

svn path=/branches/mono-2-6/mono/; revision=157682
2010-05-21 12:14:59 +00:00
Atsushi Eno 373971dc24 fix make dist.
svn path=/branches/mono-2-6/mcs/; revision=157668
2010-05-21 07:27:00 +00:00
Rodrigo Kumpera 797d32aa61 In metadata:
2010-05-19 Rodrigo Kumpera  <[email protected]>

	* marshal.c (mono_marshal_init): Register mono_gchandle_get_target
	icall.

	* marshal.c (mono_delegate_to_ftnptr): Use a gchandle instead of
	gc tracked memory.

	* marshal.c (mono_marshal_emit_managed_wrapper): Retrieve the first
	argument from a gchandle.

	* marshal.c: Get rid of the delegate_target_locations hash table.

	Fixes #605295.

	Backport of r157589.


svn path=/branches/mono-2-6/mono/; revision=157655
2010-05-20 23:44:05 +00:00
Marek Habersack d8eac818ad Backport of r157650
svn path=/branches/mono-2-6/mcs/; revision=157651
2010-05-20 21:54:53 +00:00
Marek Habersack f1a381b809 2010-05-20 Marek Habersack <[email protected]>
* TypeDescriptor.cs: GetTypeDescriptor correctly forwards the call
	to the wrapped type, if any. Fixes bug #603060

	* TypeDescriptionProvider.cs: GetTypeDescriptor must return the
	value from a call forwarded to _parent. Fixes bug #603060


svn path=/branches/mono-2-6/mcs/; revision=157626
2010-05-20 13:55:18 +00:00
Zoltan Varga 4b2500704b 2010-05-20 Zoltan Varga <[email protected]>
* aot-compiler.c: Collect all information about a PLT entry into a separate MonoPltEntry
	structure. Make the labels to plt entries local symbols instead of assembler local
	labels, since tha latter causes problems for the iphone linker.

svn path=/branches/mono-2-6/mono/; revision=157577
2010-05-19 23:32:17 +00:00
Jb Evain 41791d06ae 2010-05-19 Jb Evain <[email protected]>
* Enumerable.cs: fix GroupBy to deal with a null key for the last
	group entry. Also fix GroupBy to properly throw ArgumentNullException.


svn path=/branches/mono-2-6/mcs/; revision=157561
2010-05-19 14:43:06 +00:00
Jb Evain 7fafeb5b28 2010-05-19 Jb Evain <[email protected]>
backport of r157550.

	* ConstantExpression.cs: fix emission of nullable constants.


svn path=/branches/mono-2-6/mcs/; revision=157552
2010-05-19 13:37:40 +00:00
Marek Habersack 8ef67d1a7b Backport r157547
svn path=/branches/mono-2-6/mcs/; revision=157548
2010-05-19 13:07:00 +00:00
Marek Habersack 4116f183c0 Backport of r157519
svn path=/branches/mono-2-6/mcs/; revision=157520
2010-05-19 01:28:38 +00:00
Gonzalo Paniagua Javier 82afe2e1ae 2010-05-18 Gonzalo Paniagua Javier <[email protected]>
* FtpDataStream.cs:
	* FtpWebRequest.cs: properly close the data connection even when
	nothing is read from it. Refixes bug #598908.


svn path=/branches/mono-2-6/mcs/; revision=157507
2010-05-18 16:58:19 +00:00
Marek Habersack 63026eff6b Backport of r157469 and r157470 (p2)
svn path=/branches/mono-2-6/mcs/; revision=157472
2010-05-17 23:38:56 +00:00
Marek Habersack b399d6584c Backport of r157469 and r157470
svn path=/branches/mono-2-6/mcs/; revision=157471
2010-05-17 23:38:36 +00:00
Gonzalo Paniagua Javier 16f3fa4339 2010-05-17 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: check object reference when the timers are equal.
	Fixes bug #605092.


svn path=/branches/mono-2-6/mcs/; revision=157411
2010-05-17 05:06:43 +00:00
Rodrigo Kumpera 8c21362fb6 2010-05-13 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_create_from_typedef): Fail a class
	if there is a loop with its parent.

	Fixes #598239.

svn path=/branches/mono-2-6/mono/; revision=157341
2010-05-14 00:23:29 +00:00
Rodrigo Kumpera bac2dfec08 2010-05-13 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_get_full): Release strings on failure
	to avoid leaking them.

svn path=/branches/mono-2-6/mono/; revision=157340
2010-05-14 00:23:21 +00:00
Rodrigo Kumpera a768bee584 2010-05-13 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_create_from_typedef): Only return
	the class if no exceptions were detected.

	* class.c (mono_class_create_from_typedef): Don't remove
	broken classes from class_cache. Just set failure and
	bail out.

	This fixes a memory a memory leak where resolving the same
	broken class multiple times resulted in a memory leak.

	The right behavior would be to actually return the class
	a let the caller figure it out.

svn path=/branches/mono-2-6/mono/; revision=157339
2010-05-14 00:23:13 +00:00
Rodrigo Kumpera f94103e139 2010-05-13 Rodrigo Kumpera <[email protected]>
* typeload-unaligned.cs: Move the reference to the broken type
	to an inner function since mono now detects the brokenness earlier.

svn path=/branches/mono-2-6/mono/; revision=157338
2010-05-14 00:23:05 +00:00
Marek Habersack f76bf865f1 Backport of r157221
svn path=/branches/mono-2-6/mcs/; revision=157222
2010-05-12 11:10:21 +00:00
Zoltan Varga 57edbb0e35 2010-05-12 Zoltan Varga <[email protected]>
* debugger-agent.c (set_breakpoint): Fix setting of pending breakpoints in
	other domains.

svn path=/branches/mono-2-6/mono/; revision=157192
2010-05-12 02:48:18 +00:00
Marek Habersack 4781effceb Partial backport of r157187
svn path=/branches/mono-2-6/mcs/; revision=157188
2010-05-12 02:43:24 +00:00
Martin Baulig ed8bd9b875 Fix #604879: Find source file when line-number table ends with hidden line.
2010-05-11  Martin Baulig  <[email protected]>

	* debug-mono-symfile.c
	(mono_debug_symfile_get_line_numbers): Fallback to the first
	non-hidden source file in the method if the line number table ends
	with a hidden line.

	Fixes #604879.

svn path=/branches/mono-2-6/mono/; revision=157147
2010-05-11 18:59:35 +00:00
Zoltan Varga 7286b16c97 2009-12-25 Zoltan Varga <[email protected]>
* aot-runtime.c (find_extra_method): Call mono_aot_wrapper_name only once,
	instead of once for each module.

svn path=/branches/mono-2-6/mono/; revision=157143
2010-05-11 18:16:40 +00:00
Zoltan Varga 6c09185b39 2010-05-11 Zoltan Varga <[email protected]>
* class.c (mono_class_alloc): New helper function to centralize memory allocation
	for classes, allocates either from the image mempool or from the heap.

	* class.c: Use mono_class_alloc to allocate memory owned by classes.

	* metadata.c (free_generic_class_dependents): Free more items belonging to
	generic classes.

svn path=/branches/mono-2-6/mono/; revision=157075
2010-05-10 22:08:13 +00:00
Zoltan Varga 47c8adf4c8 2010-05-10 Zoltan Varga <[email protected]>
* debugger-agent.c (insert_breakpoint): Print a more descriptive error message
	if a breakpoint cannot be inserted.

svn path=/branches/mono-2-6/mono/; revision=156984
2010-05-10 02:32:16 +00:00
Zoltan Varga e3e257d8d8 2010-05-10 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_method_get_handle): Handle MonoGenericMethod
	as well. Fixes #604054.

svn path=/branches/mono-2-6/mono/; revision=156982
2010-05-10 01:46:15 +00:00
Jonathan Chambers 6449442e34 2010-05-09 Jonathan Chambers <[email protected]>
* mini.c (mono_sigsegv_signal_handler): Use PLATFORM_WIN32 define instead of 
	HOST_WIN32. HOST_WIN32 was added after 2.6.

	Code is contributed under MIT/X11 license.

svn path=/branches/mono-2-6/mono/; revision=156975
2010-05-09 21:18:52 +00:00
Jonathan Chambers 1db03073b8 2009-05-09 Jonathan Chambers <[email protected]>
* libmono.vcproj: Add missing files.

	Code is contributed under MIT/X11 license.

svn path=/branches/mono-2-6/mono/; revision=156974
2010-05-09 21:16:51 +00:00
Rodrigo Kumpera b463bcde0d 2010-05-07 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: MS doesn't mind duplicates in the
	typeref table. Move it to full verification.

	Fixes #600508.

svn path=/branches/mono-2-6/mono/; revision=156949
2010-05-07 23:25:23 +00:00
Rodrigo Kumpera f6c0389197 2010-05-07 Rodrigo Kumpera <[email protected]>
* appdomain.c (mono_domain_has_type_resolve): Check for
	NULL domain objects to make pedump happy.

	* object.c (mono_field_get_value): Assert on NULL object.
	It's the caller resposibility to check for this.

	* object.c (mono_field_get_value_object): Ditto.

	Fixes #601384.

svn path=/branches/mono-2-6/mono/; revision=156925
2010-05-07 22:32:58 +00:00
Zoltan Varga 839d758272 2010-05-07 Zoltan Varga <[email protected]>
* mini.c (mini_free_jit_domain_info): Fix the seq_points/arch_seq_points hash
	tables.

svn path=/branches/mono-2-6/mono/; revision=156918
2010-05-07 20:17:08 +00:00
Zoltan Varga 1538e53061 2010-05-07 Zoltan Varga <[email protected]>
* VirtualMachine.cs (ErrorHandler): Convert ABSENT_INFORMATION to
	AbsentInformationException.

	* AbsentInformationException.cs: New file.

svn path=/branches/mono-2-6/mcs/; revision=156917
2010-05-07 20:07:51 +00:00
Zoltan Varga 924015dc3a 2010-05-07 Zoltan Varga <[email protected]>
* debugger-agent.c (frame_commands): Return an error instead of asserting if
	no JIT info is found for the method.

svn path=/branches/mono-2-6/mono/; revision=156915
2010-05-07 20:05:13 +00:00
Geoff Norton 7a65f6746b 2010-05-05 Jonathan Chambers <[email protected]>
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Protect against a NULL sigctx
        in debug printf.

2010-05-05 Jonathan Chambers <[email protected]>

        * mono-semaphore.c: Implement alertable wait on Windows similar to
        other platforms. Always be alertable, but only return from wait if
        user requested alertable state. Fixes soft debugger on Windows.

Code contributed under MIT/X11 license.

svn path=/branches/mono-2-6/mono/; revision=156908
2010-05-07 17:01:08 +00:00
Marek Habersack 6dc7ddd27b Backport of r156903
svn path=/branches/mono-2-6/mono/; revision=156904
2010-05-07 16:12:17 +00:00
Geoff Norton 40029c30b5 2010-04-06 Geoff Norton <[email protected]>
* OSX509Certificates.cs: Fix a crash when doing multiple certificate calls
	Fix a rare but possible leak.

svn path=/branches/mono-2-6/mcs/; revision=156863
2010-05-06 23:56:48 +00:00
Rodrigo Kumpera 08c5bf35b1 2010-05-05 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_layout_fields): Don't perform alignment
	if align is zero.

	* class.c (mono_class_layout_fields): Init field related
	* information
	to sane defaults.

svn path=/branches/mono-2-6/mono/; revision=156765
2010-05-06 00:34:18 +00:00
Rodrigo Kumpera 32458d2322 2010-05-05 Rodrigo Kumpera <[email protected]>
* verify.c (mono_verifier_verify_class): Verify the constraint
	of generic type definitions.

svn path=/branches/mono-2-6/mono/; revision=156740
2010-05-05 18:45:45 +00:00
Marek Habersack 6d2162f961 Backport of r156714
svn path=/branches/mono-2-6/mcs/; revision=156715
2010-05-05 09:35:17 +00:00
Gonzalo Paniagua Javier e04acb6ca2 2010-05-05 Gonzalo Paniagua Javier <[email protected]>
* Path.cs: prevent infinite loop when TMPDIR (or equivalent)
	points to a non-existent directory.


svn path=/branches/mono-2-6/mcs/; revision=156703
2010-05-05 04:08:44 +00:00
Zoltan Varga bf081f22c2 2010-05-03 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_prolog): Fix full-aot support for thread
	attach.

svn path=/branches/mono-2-6/mono/; revision=156636
2010-05-03 16:31:51 +00:00
Zoltan Varga 8cc469ab7d Fix win32 build.
svn path=/branches/mono-2-6/mono/; revision=156592
2010-05-02 17:14:21 +00:00
Zoltan Varga bfa55d9a9a 2010-05-01 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_decompose_long_opts): Fix LNEG.

svn path=/branches/mono-2-6/mono/; revision=156571
2010-05-01 17:18:43 +00:00
Zoltan Varga 87ec0ec5d1 2010-05-01 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_emit_exceptions): Initialize exc_throw_pos/found
	explicitly, this seems to be required by some gcc versions at -O2.

	* mini-arm.c: Ditto.

svn path=/branches/mono-2-6/mono/; revision=156563
2010-05-01 02:50:09 +00:00
Zoltan Varga 261df8acd3 2010-05-01 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_get_delegate_invoke_impl): Fix full-aot support for
	has_target delegate invokes.

svn path=/branches/mono-2-6/mono/; revision=156561
2010-05-01 01:06:04 +00:00
Zoltan Varga 1caee7302c 2010-05-01 Zoltan Varga <[email protected]>
* mini.h (MonoAotTrampInfo): Rename this to MonoTrampInfo, add patches/unwind
	info fields.

	* aot-compiler.c (mono_aot_tramp_info_create): Rename to mono_tramp_info_create,
	add patches/unwind info arguments, move to mini.c.

	* mini-<ARCH>.c aot-compiler.c: Update after the above changes.

svn path=/branches/mono-2-6/mono/; revision=156559
2010-04-30 22:57:46 +00:00
Zoltan Varga b7218956c0 2010-04-29 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_create_generic_class_init_trampoline_full): Set the
	code_size output variable.

	* mini-x86.c (mono_arch_emit_prolog): Compute the GOT addr before calling
	mono_get_lmf_addr.

svn path=/branches/mono-2-6/mono/; revision=156558
2010-04-30 22:57:39 +00:00
Zoltan Varga c930188fc9 2010-04-29 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_prolog): Remove a disable_aot which is not needed.
	(mono_arch_cpu_optimizazions): Make this a no-op when running with full aot.
	(mono_arch_cpu_enumerate_simd_versions): Ditto.

svn path=/branches/mono-2-6/mono/; revision=156557
2010-04-30 22:57:33 +00:00
Zoltan Varga a31e6d3a55 2010-04-29 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_prolog): Avoid an assert in full-aot mode.

svn path=/branches/mono-2-6/mono/; revision=156556
2010-04-30 22:57:26 +00:00
Zoltan Varga a57164c883 2010-04-29 Zoltan Varga <[email protected]>
* aot-runtime.c (load_function): Use TARGET_X86 instead of __i386__.

svn path=/branches/mono-2-6/mono/; revision=156555
2010-04-30 22:57:19 +00:00
Zoltan Varga d345f85900 2010-04-27 Zoltan Varga <[email protected]>
* tramp-x86.c exceptions-x86.c mini-x86.c aot-compiler.c aot-runtime.c:
        Implement full-aot support on x86.

        * method-to-ir.c: Always use a got var on x86 too, just like on ppc, because the
        trampolines depend on it. Use MONO_ARCH_GOT_REG as the got register, instead of
        the first register returned by get_global_int_regs ().

        * cpu-x86.md: Fix the length of insertx_u1_slow.

        * iltests.il.in: Disable tail call tests when running with full-aot.

svn path=/branches/mono-2-6/mono/; revision=156554
2010-04-30 22:57:12 +00:00
Zoltan Varga 3be6b09ae5 2010-04-30 Zoltan Varga <[email protected]>
* TypeMirror.cs: Add new overload for GetSourceFiles () which returns full paths.

svn path=/branches/mono-2-6/mcs/; revision=156539
2010-04-30 17:01:35 +00:00
Zoltan Varga a434899eea 2010-04-30 Zoltan Varga <[email protected]>
* debugger-agent.c (type_commands): Add a new CMD_TYPE_GET_SOURCE_FILES_2
	command which returns full path names.

svn path=/branches/mono-2-6/mono/; revision=156537
2010-04-30 16:59:34 +00:00
Marek Habersack 9a0a217b89 ChangeLogs update
svn path=/branches/mono-2-6/mcs/; revision=156451
2010-04-29 20:56:01 +00:00
Marek Habersack fd74336051 Backport of r156405
svn path=/branches/mono-2-6/mcs/; revision=156406
2010-04-29 09:19:03 +00:00
Zoltan Varga 39d8437c0a 2010-04-29 Zoltan Varga <[email protected]>
* image-writer.c (asm_writer_emit_alignment): Use ilog2 for alignments for the
	apple assembler.

svn path=/branches/mono-2-6/mono/; revision=156390
2010-04-29 02:08:21 +00:00
Marek Habersack f77574a73c Backport of r156382
svn path=/branches/mono-2-6/mcs/; revision=156383
2010-04-29 00:34:11 +00:00
Marek Habersack 89d9ad2f40 Backport of r156312
svn path=/branches/mono-2-6/mcs/; revision=156313
2010-04-28 13:10:00 +00:00
Zoltan Varga c3902d6436 2010-04-28 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_got_info): Double the buffer size to avoid an assert.

svn path=/branches/mono-2-6/mono/; revision=156263
2010-04-27 22:46:24 +00:00
Zoltan Varga c385a94bf3 Backport some OpenBSD changes from HEAD.
svn path=/branches/mono-2-6/mono/; revision=156260
2010-04-27 21:53:35 +00:00
Gonzalo Paniagua Javier 7bea3a161a 2010-04-23 Gonzalo Paniagua Javier <[email protected]>
* FtpDataStream.cs:
	* FtpWebRequest.cs: use streams instead of sockets as soon as
	possible. Correctly initialize the control connection when SSL
	is used.
	Fixes bug #598908.


svn path=/branches/mono-2-6/mcs/; revision=156199
2010-04-27 17:27:11 +00:00
Gonzalo Paniagua Javier 9d2549789f 2010-04-23 Gonzalo Paniagua Javier <[email protected]>
* Context.cs:
	* SslStreamBase.cs:
	* RecordProtocol.cs: differentiate a received 'CloseNotify' alert from
	one that we sent. Disposing the stream will try to send the
	'CloseNotify' alert, if it hasn't already, and ignore any errors. This
	is needed for FTPS to work.


svn path=/branches/mono-2-6/mcs/; revision=156197
2010-04-27 17:25:32 +00:00
Lluis Sanchez 2db78f3efd 2010-04-27 Lluis Sanchez <[email protected]>
* ITargetProcess.cs:
	* VirtualMachine.cs:
	* VirtualMachineManager.cs:
	Restored old API. Renamed IProcess to ITargetProcess everywhere
	to avoid naming conflicts.


svn path=/branches/mono-2-6/mcs/; revision=156173
2010-04-27 10:26:44 +00:00
Miguel de Icaza b90285f9df Fix this here too
svn path=/branches/mono-2-6/mcs/; revision=156131
2010-04-26 20:28:05 +00:00
Lluis Sanchez 0757f7b1df 2010-04-26 Lluis Sanchez <[email protected]>
* IProcess.cs:
	* VirtualMachine.cs:
	* VirtualMachineManager.cs:
	Added new IProcess interface which wraps the debugged process.
	This abstraction makes it easier to support debugging processes
	for which we don't have a direct Process reference (for example,
	if the process is remote).


svn path=/branches/mono-2-6/mcs/; revision=156113
2010-04-26 16:41:27 +00:00
Zoltan Varga 5e2a8ba83e 2010-04-26 Zoltan Varga <[email protected]>
* configure.in: Applied patch from Robert Nagy ([email protected]). Add
	sys/param.h dependencies to a few checks.

svn path=/branches/mono-2-6/mono/; revision=156098
2010-04-26 12:06:53 +00:00
Zoltan Varga c2c048d0e6 2010-04-26 Zoltan Varga <[email protected]>
* boehm-gc.c: Applied patch from Robert Nagy ([email protected]). Include
	string.h for memmove.

	socket-io.c: Applied patch from Robert Nagy ([email protected]).
	ipaddress_to_struct_in6_addr() is only needed when
	defined(HAVE_STRUCT_IP_MREQN) || defined(HAVE_STRUCT_IP_MREQ).

svn path=/branches/mono-2-6/mono/; revision=156095
2010-04-26 11:55:59 +00:00
Zoltan Varga 49b1a94eb3 2010-04-26 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_op_to_op_imm_noemul): Fix a warning.

svn path=/branches/mono-2-6/mono/; revision=156094
2010-04-26 11:55:42 +00:00
Jonathan Pryor 0a81615aec * Monodoc/ecma-provider.cs: Support the full set of possible operator
names within EcmaHelpSource.MakeOperatorSignature() (where "full" is
	  "whatever is included in ECMA-335 §10.3.1 through §10.3.3").
	  Fixes InvalidOperationException reported to mono-docs-list.

svn path=/branches/mono-2-6/mcs/; revision=156072
2010-04-26 02:44:32 +00:00
Zoltan Varga ac06d51e01 Add a test.
svn path=/branches/mono-2-6/mono/; revision=156055
2010-04-24 23:50:38 +00:00
Zoltan Varga 51d813cde5 2010-04-25 Zoltan Varga <[email protected]>
* class.c (mono_class_create_from_typedef): Initialize class->nested_in after
	calling setup_mono_type () since the nested parent could recursively reference
	the nested class using generic constraints. Fixes #599469.

svn path=/branches/mono-2-6/mono/; revision=156054
2010-04-24 23:49:28 +00:00
Veerapuram Varadhan e7030ad9ad 2010-04-21 Veerapuram Varadhan <[email protected]>
** Fixes #595918
	* Tds70.cs (WriteParameterInfo): Write updated decimal value
	according to specified scale value.

svn path=/branches/mono-2-6/mcs/; revision=155913
2010-04-21 20:21:45 +00:00
Jonathan Pryor daa4826875 * class/System.Data.Linq/src/**/*: Sync with DbLinq r1403.
This is DbLinq 0.20 + fixes.  Primarily fixes sqlmetal, codegen, etc.
	* tools/sqlmetal/sqlmetal.exe.source: Add additional files.

svn path=/branches/mono-2-6/mcs/; revision=155909
2010-04-21 19:12:59 +00:00
Jonathan Pryor cb730db2e6 * Microsoft.CSharp/CCSharpCodeGenerator.cs: Support generating
default(T) expressions.
	* System.CodeDom.Compiler/CodeGenerator.cs: Clear out the current member
	  when beginning Type generation.  This prevents "invalid" 
	  `#endregion`s; if the CodeGenerator instance is reused for multiple 
	  types, the last member of the first type has an EndDirective, then 
	  the EndDirectvies will be generated before any members of the 2nd 
	  type.  Don't do that.
	* Test/Microsoft.CSharp/CodeGeneratorFromExpressionTest.cs: Test 
	  CodeDefaultValueExpression generation.
	* Test/System.CodeDom.Compiler/CodeGeneratorTest.cs: Add some testing 
	  for CodeRegionDirectives.

svn path=/branches/mono-2-6/mcs/; revision=155897
2010-04-21 17:45:46 +00:00
Andrés G. Aragoneses ef7520c990 * docs/Makefile.am: Make ASSEMBLED_DOCS empty in case of DISABLED_MCS_DOCS.
* configure.in: Propagate DISABLE_MCS_DOCS to makefiles so mono/docs can be disabled. 
Fixes the build '--with-profile2=no' using '--with-mcs-docs=no' as a workaround.

svn path=/branches/mono-2-6/mono/; revision=155879
2010-04-21 14:52:46 +00:00
Marek Habersack 880c5530c0 Backport of r155841
svn path=/branches/mono-2-6/mcs/; revision=155842
2010-04-20 22:35:49 +00:00
Marek Habersack 1fccf8249d Changed default value
svn path=/branches/mono-2-6/mcs/; revision=155840
2010-04-20 22:24:56 +00:00
Jonathan Pryor d1986447a9 Cleanup Android support, replacing platform checks with configure checks:
* configure.in: Check for the asm/sigcontext.h header.
	* mono/mini/exceptions-arm.c: Remove platform checks in favor of 
	  configure checks.
	* mono/io-layer/collection.c: Cleanup platform checks around
	  pthread_attr_setstacksize(), and instead always use
	  MAX(65536, PTHREAD_STACK_MIN) as the stack size.
	* mono/io-layer/mono-mutex.c: Remove near duplicate 
	  pthread_mutex_timedlock() declarations, and merge via a CONST_NEEDED 
	  intermediate #define.

svn path=/branches/mono-2-6/mono/; revision=155825
2010-04-20 16:16:20 +00:00
Gonzalo Paniagua Javier d094e2e612 2010-04-20 Gonzalo Paniagua Javier <[email protected]>
* ChunkStream.cs: ignore chunk extensions when reading the chunk
	size. Fixes bug #597556.


svn path=/branches/mono-2-6/mcs/; revision=155816
2010-04-20 15:54:33 +00:00
Jonathan Pryor fec7eb699b * configure.in: On OpenBSD, remove duplicate -pthread options in
libmono_ldflags.  Change from Robert Nagy <[email protected]>.

svn path=/branches/mono-2-6/mono/; revision=155809
2010-04-20 13:39:39 +00:00
Jonathan Pryor 09fecbfcf3 * configure.in: For Linux hosts, remove AC_CHECK_LIB(pthread...) in the
primary `case "$host"` block.  Using AC_CHECK_LIB() here breaks *BSD,
	  and it's unnecessary (for !target_win32, pthreads are checked again 
	  later in configure.in).

svn path=/branches/mono-2-6/mono/; revision=155801
2010-04-20 12:28:04 +00:00
Rodrigo Kumpera 03a379c4e5 2010-04-19 Rodrigo Kumpera <[email protected]>
* verify.c: Handle the case where mono_type_get_underlying_type_any
	returns NULL. Remove duplicated code between MONO_TYPE_GENERICINST
 	and MONO_TYPE_VALUETYPE in those case.

	Based on a slightly modified patch by Sebastien Pouliot <[email protected]>

	Hopefully Fixes #564253.

svn path=/branches/mono-2-6/mono/; revision=155772
2010-04-19 21:51:34 +00:00
Gonzalo Paniagua Javier cf81c78231 2010-04-19 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: don't call Z_FINISH if nothing has been written.


svn path=/branches/mono-2-6/mono/; revision=155765
2010-04-19 21:12:29 +00:00
Jonathan Pryor cd949c6aa1 * src/glib.h: Rebase g_return_if_fail(), g_return_val_if_fail() in
terms of g_critical() instead of printf, and turn g_printerr() into
	  an actual function instead of a macro.
	* src/goutput.c: Add Android support, sending g_print(), g_printerr(),
	  and g_log() messages to the Android system log.

svn path=/branches/mono-2-6/mono/; revision=155762
2010-04-19 20:56:05 +00:00
Jonathan Pryor 9776b4fb32 * configure.in: Use AC_CHECK_LIB() to check for pthread instead of
just blindly linking to -lpthread, as Android includes pthread
	  support within libc and doesn't provide a separate libpthread.
	  Android's <string.h> pulls in <malloc.h> (unlike glibc), resulting
	  in a build error in mono/utils/mono-codeman.c due to 
	  `struct mallinfo` re-declaration.  Define HAVE_USR_INCLUDE_MALLOC_H 
	  if /usr/include/malloc.h is present to avoid this.
	* mono/io-layer/collection.c, mono-mutex.c: Add Android support.
	* mono/mini/exceptions-arm.c: Add Android support for sigcontext 
	  structure.

svn path=/branches/mono-2-6/mono/; revision=155758
2010-04-19 20:43:08 +00:00
Jonathan Pryor 42a5349bec * configure.in: Add header, structure member, and function checks as
Android doesn't provide all the headers, structure members, and 
	  functions that a "full" Linux distro includes.
	* support/dirent.c, support/grp.c, support/macros.c, support/pwd.c, 
	  support/signal.c, support/sys-statvfs.c, support/sys-time.c,
	  support/unistd.c: Add #if HAVE_XXX checks for functions which aren't
	  provided on Android.

svn path=/branches/mono-2-6/mono/; revision=155752
2010-04-19 20:01:45 +00:00
Jonathan Pryor 80196267d4 * include/private/gcconfig.h: Android platforms are built atop Linux,
don't use glibc, and uses `environ` instead of `__environ`.
	* configure.in: Use AC_CHECK_LIB() to check for pthread instead of
	  just blindly linking to -lpthread, as Android includes pthread
	  support within libc and doesn't provide a separate libpthread.

svn path=/branches/mono-2-6/mono/; revision=155746
2010-04-19 18:47:44 +00:00
Zoltan Varga d0c4176c75 2010-04-19 Zoltan Varga <[email protected]>
* locales.c: Implement support for DISABLE_NORMALIZATION.

svn path=/branches/mono-2-6/mono/; revision=155721
2010-04-19 11:10:03 +00:00
Zoltan Varga 5365e6f95b 2010-04-19 Zoltan Varga <[email protected]>
* configure.in: Add a --enable-minimal=normalization option to disable support
	for string normalization.

svn path=/branches/mono-2-6/mono/; revision=155720
2010-04-19 11:09:52 +00:00
Zoltan Varga eb40a40513 2010-04-19 Zoltan Varga <[email protected]>
* CompareInfo.cs (IndexOf): Return startIndex instead of 0 for empty strings.
	Fixes #597604.

svn path=/branches/mono-2-6/mcs/; revision=155696
2010-04-19 08:27:41 +00:00
Raja R Harinath 8e0134af7b Keep "ftp://a.b/%2fcd" urls unmolested
* System/Uri.cs (CompactEscaped): New.  Check if scheme allows escaped
path characters are compacted (list of schemes obtained from MSDN).
(Reduce): Add argument that is set if escaped characters need to
be compacted.
* Tests/System/UriTest.cs (FtpRootPath): New.  Check that ftp root paths are
unmolested.

[backport trunk r155670]

svn path=/branches/mono-2-6/mcs/; revision=155672
2010-04-17 11:40:00 +00:00
Raja R Harinath 8263699ae2 Fix build break
svn path=/branches/mono-2-6/mcs/; revision=155671
2010-04-17 11:39:39 +00:00
Rodrigo Kumpera 34f196694b 2010-04-16 Rodrigo Kumpera <[email protected]>
* MonoType.cs (GetInterface): Compare against the name
	of the generic type definition.

	Fixes #484246.

svn path=/branches/mono-2-6/mcs/; revision=155666
2010-04-16 21:39:27 +00:00
Zoltan Varga eae8d49983 2010-04-16 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Avoid calling
	mono_marshal_method_from_wrapper () for native func wrappers. Fixes #597189.

svn path=/branches/mono-2-6/mono/; revision=155654
2010-04-16 19:53:50 +00:00
Zoltan Varga 9ed69a2028 2010-04-16 Zoltan Varga <[email protected]>
* boehm-gc.c (mono_gc_base_init): Applied patch from Robert Nagy
	([email protected]). Fix GC_stackbottom calculation on OpenBSD.

svn path=/branches/mono-2-6/mono/; revision=155616
2010-04-16 09:14:44 +00:00
Zoltan Varga 0529eeb88e 2010-04-16 Zoltan Varga <[email protected]>
* genmdesc.c (inst_name): Define this as a copy of mono_inst_name in helpers.c,
	so the latter can be #ifndef DISABLE_JIT-ed.

	* helpers.c: Comment out the opstr array if DISABLE_JIT is set.

svn path=/branches/mono-2-6/mono/; revision=155609
2010-04-16 03:28:50 +00:00
Gonzalo Paniagua Javier 2c4a988c40 2010-04-15 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: set content length to -1 on redirect. Reset
	'FinishedReading' on redirects. Fixes bug #593596.


svn path=/branches/mono-2-6/mcs/; revision=155605
2010-04-16 02:16:42 +00:00
Rodrigo Kumpera 36ab55b064 2010-04-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_get_method_by_index): Return NULL
	on type load failures.

svn path=/branches/mono-2-6/mono/; revision=155547
2010-04-15 20:50:27 +00:00
Rodrigo Kumpera b2ca1ecf71 2010-04-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_from_typeref): Check if the supplied
	image has an assembly bound to it.

	Fixes #567884.

svn path=/branches/mono-2-6/mono/; revision=155546
2010-04-15 20:50:19 +00:00
Jonathan Pryor 867f5ac73e * UnixSignal.cs: Fix build break under .NET 1.1 profile.
svn path=/branches/mono-2-6/mcs/; revision=155535
2010-04-15 19:20:28 +00:00
Rodrigo Kumpera 1f8cf5bedc 2010-04-15 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_signature_full): Use new function
	inflate_generic_signature_checked to check for errors.

	Fixes #560839.

svn path=/branches/mono-2-6/mono/; revision=155530
2010-04-15 18:31:51 +00:00
Rodrigo Kumpera c1fd13fede 2010-04-15 Rodrigo Kumpera <[email protected]>
* loader.c (inflate_generic_signature): Add _checked variant
	and move this function to use it.

svn path=/branches/mono-2-6/mono/; revision=155529
2010-04-15 18:31:42 +00:00
Rodrigo Kumpera a6c68ba23f 2010-04-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_vtable_general): Use error checking
	version of mono_class_inflate_generic_method_full.

	Fixes #596975.

svn path=/branches/mono-2-6/mono/; revision=155525
2010-04-15 17:42:52 +00:00
Jonathan Pryor 3f156dfc57 * UnixSignal.cs: Change the native WaitAny() method to accept a
Mono_Posix_RuntimeIsShuttingDown delegate, so that we can prevent an
	  infinite loop while shutting the process down.  Fixes #592981.

svn path=/branches/mono-2-6/mcs/; revision=155523
2010-04-15 17:35:20 +00:00
Jonathan Pryor 8692fd6a4c * Makefile.am: Revert previous linkage against libmono.so, as lupus
mentioned that it's unacceptable for MonoPosixHelper to link against
	  libmono (e.g. when embedding mono, there might not be a libmono).
	* map.h: Flush updated Mono_Unix_UnixSignal_SignalInfo prototype.
	* signal.c: Don't use mono_runtime_is_shutting_down(). Instead, change
	  Mono_Unix_UnixSignal_WaitAny() to accept a function pointer argument,
	  which will return Environment.HasShutdownStarted in managed code (the 
	  moral equivalent of mono_runtime_is_shutting_down()).  This allows
	  us to avoid a libmono dependency w/o lots of rewriting. Fixes #592981.

svn path=/branches/mono-2-6/mono/; revision=155522
2010-04-15 17:35:12 +00:00
Rodrigo Kumpera 1414965f48 2010-04-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_inflate_generic_type_no_copy): Do proper
	error handling passing MonoError around.

	Fixes #560336.


Conflicts:

	mono/metadata/ChangeLog

svn path=/branches/mono-2-6/mono/; revision=155519
2010-04-15 17:24:25 +00:00
Gonzalo Paniagua Javier 9bdab2830a 2010-04-14 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: make GetHostByName ("") work on windows.
	Fixes bug #456723.


svn path=/branches/mono-2-6/mono/; revision=155467
2010-04-15 02:44:20 +00:00
Zoltan Varga 72a06b03f5 2010-04-15 Zoltan Varga <[email protected]>
* debugger-agent.c (type_commands): Call mono_class_setup_methods () before
	calling mono_class_num_methods (). Fixes #592244.

svn path=/branches/mono-2-6/mono/; revision=155441
2010-04-14 22:24:31 +00:00
Rodrigo Kumpera 43b6155268 2010-04-14 Rodrigo Kumpera <[email protected]>
* reflection.c (_mono_reflection_parse_type): MS supports
	non-assembly-qualified types in a generic type parameter list
	when enclosed in '[]' (which signals that they should be a fqn).

	This breaks ECMA specs for how type names are encoded in cattr
	blobs but F# does it.

	Fixes #576342.

svn path=/branches/mono-2-6/mono/; revision=155439
2010-04-14 22:14:23 +00:00
Rodrigo Kumpera 40bad4cab2 2010-04-14 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_InternalInvoke): Check if the vtable is
	* sane
	for instance methods/ctors.

	Fixes #422113.

svn path=/branches/mono-2-6/mono/; revision=155410
2010-04-14 16:52:53 +00:00
Gonzalo Paniagua Javier eaeafd940d 2010-04-14 Gonzalo Paniagua Javier <[email protected]>
* DeflateStream.cs: the delegate uses Cdecl calling convention on
	windows too. Fixes bug #574713.


svn path=/branches/mono-2-6/mcs/; revision=155396
2010-04-14 14:17:35 +00:00
Zoltan Varga cdc1dd1be1 2010-04-14 Zoltan Varga <[email protected]>
* collection.c (_wapi_collection_init): Set stack size on openbsd similarly to
	the other BSDs.

svn path=/branches/mono-2-6/mono/; revision=155371
2010-04-14 09:51:41 +00:00
Zoltan Varga 8089e2c37e 2010-04-13 Zoltan Varga <[email protected]>
* Convert.cs (ToInt32): Do a checked cast. Fixes #596339.

svn path=/branches/mono-2-6/mcs/; revision=155335
2010-04-13 21:40:26 +00:00
Marek Habersack dcb44d84c5 Backport of r155331
svn path=/branches/mono-2-6/mcs/; revision=155332
2010-04-13 21:31:55 +00:00
Zoltan Varga c57cdde726 2010-04-13 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Disable generic sharing for constrained
	calls where the constrained class needs a context. Fixes #595863.

	* iltests.il.in: Add a test.

svn path=/branches/mono-2-6/mono/; revision=155330
2010-04-13 21:12:53 +00:00
Marek Habersack 39e3e0830c Backport of r155270
svn path=/branches/mono-2-6/mcs/; revision=155271
2010-04-12 22:41:45 +00:00
Marek Habersack 2cd378f8e3 Disable this test for the moment
svn path=/branches/mono-2-6/mcs/; revision=155267
2010-04-12 21:43:08 +00:00
Marek Habersack 78849b6501 Backport of r155262
svn path=/branches/mono-2-6/mcs/; revision=155263
2010-04-12 19:38:28 +00:00
Andrew Jorgensen 36d58d231a fix glib dependency on SLE problem
svn path=/branches/mono-2-6/mono/; revision=155260
2010-04-12 18:43:03 +00:00
Andrew Jorgensen 59db1f5540 fix glib dependency on SLE problem
svn path=/branches/mono-2-6/mono/; revision=155259
2010-04-12 18:42:13 +00:00
Veerapuram Varadhan eaf3574cf5 2010-04-11 Veerapuram Varadhan <[email protected]>
** Fixes #591443
	* DataColumn.cs (Clone): Use property to clone Expression as it
	* builds
	compiled expression also, if any.

svn path=/branches/mono-2-6/mcs/; revision=155217
2010-04-11 21:14:47 +00:00
Veerapuram Varadhan 34b8092fd7 2010-04-10 Veerapuram Varadhan <[email protected]>
** Fixes #589482
	* DataColumn.cs (set_DataType): Preserve autoIncrement value
	for Decimal types as well.

svn path=/branches/mono-2-6/mcs/; revision=155203
2010-04-10 18:44:16 +00:00
Veerapuram Varadhan 16b1c946e1 2010-04-09 Veerapuram Varadhan <[email protected]>
** Fixes #576520 - Based on a patch by Greg SIROU
<[email protected]>
	* DataSet.cs (WriteColumnAsElement): Handle system.object types
	* sanely.

svn path=/branches/mono-2-6/mcs/; revision=155179
2010-04-09 23:31:49 +00:00
Zoltan Varga 4664e5a6d1 2010-04-10 Zoltan Varga <[email protected]>
* ThreadMirror.cs: Add a ThreadId property.

svn path=/branches/mono-2-6/mcs/; revision=155177
2010-04-09 22:58:28 +00:00
Zoltan Varga c206639c22 2010-04-10 Zoltan Varga <[email protected]>
* debugger-agent.c (thread_commands): Add a GET_ID command to get the
	MonoInternalThread belonging to the thread.

svn path=/branches/mono-2-6/mono/; revision=155175
2010-04-09 22:56:54 +00:00
Veerapuram Varadhan ab5a3a3506 2010-04-09 Veerapuram Varadhan <[email protected]>
** DataColumn.cs (Clone): Fix a typo - use the member directly
	instead of get/set property.

svn path=/branches/mono-2-6/mcs/; revision=155168
2010-04-09 18:09:51 +00:00
Veerapuram Varadhan 392238bb9e 2010-04-09 Veerapuram Varadhan <[email protected]>
** Fixes #590232
	* DataColumn.cs (Clone): Clone Extended properties as well.

svn path=/branches/mono-2-6/mcs/; revision=155166
2010-04-09 17:25:41 +00:00
Rodrigo Kumpera 29a9b9cdba 2010-04-09 Rodrigo Kumpera <[email protected]>
* verify.c (mono_method_verify): A switch op don't empty
	the stack for the next one. Fixes a bug when running fsi
	under --verify-all.

svn path=/branches/mono-2-6/mono/; revision=155155
2010-04-09 15:26:23 +00:00
Rodrigo Kumpera 7508b8212a 2010-04-09 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_standalonesig_blob): Accept
	fields as valid standalone sig too. F# does generate them.

	* metadata-verify.c (verify_typedef_table_full): Ignore
	what <module> extends.

svn path=/branches/mono-2-6/mono/; revision=155145
2010-04-09 13:14:45 +00:00
Rodrigo Kumpera e642ed4edb 2010-04-09 Rodrigo Kumpera <[email protected]>
* verify.c (do_invoke_method): It's ok to do use call with
	virtual, non-final methods if their class is sealed.

svn path=/branches/mono-2-6/mono/; revision=155144
2010-04-09 13:14:36 +00:00
Marek Habersack 8e649426c0 Backport of r155140
svn path=/branches/mono-2-6/mcs/; revision=155141
2010-04-09 13:02:14 +00:00
Gonzalo Paniagua Javier d32b4828b3 2010-04-09 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.c: account for the time already spent in wait if
	interrupted.


svn path=/branches/mono-2-6/mono/; revision=155120
2010-04-09 04:36:35 +00:00
Rodrigo Kumpera fcd426cedb 2010-04-08 Rodrigo Kumpera <[email protected]>
* verify.h: Fix header.

svn path=/branches/mono-2-6/mono/; revision=155109
2010-04-09 00:33:13 +00:00
Zoltan Varga 744f56253a 2010-04-09 Zoltan Varga <[email protected]>
* mono-time.c (get_boot_time): Applied more openbsd changes from Robert Nagy
	<[email protected]>.

svn path=/branches/mono-2-6/mono/; revision=155108
2010-04-09 00:23:34 +00:00
Zoltan Varga b1c8c7b1e8 2010-04-09 Zoltan Varga <[email protected]>
* processes.c: Applied more openbsd changes from Robert Nagy <[email protected]>.

svn path=/branches/mono-2-6/mono/; revision=155106
2010-04-09 00:19:52 +00:00
Zoltan Varga 9c2103dcee 2010-04-09 Zoltan Varga <[email protected]>
* mono-proclib.c: Applied more openbsd changes from Robert Nagy
	<[email protected]>.

svn path=/branches/mono-2-6/mono/; revision=155105
2010-04-09 00:19:35 +00:00
Gonzalo Paniagua Javier ac0f434112 fix entry
svn path=/branches/mono-2-6/mono/; revision=155097
2010-04-08 20:20:01 +00:00
Gonzalo Paniagua Javier 47dd217953 2010-04-01 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.c: patch from Robert Nagy that makes this work in
	OpenBSD.


svn path=/branches/mono-2-6/mono/; revision=155092
2010-04-08 20:01:08 +00:00
Marek Habersack 66f913d5bc Backport of r155089
svn path=/branches/mono-2-6/mcs/; revision=155090
2010-04-08 19:45:05 +00:00
Gonzalo Paniagua Javier fe0cc67b09 CWL
svn path=/branches/mono-2-6/mcs/; revision=155082
2010-04-08 19:15:03 +00:00
Gonzalo Paniagua Javier f6e391bb49 2010-04-08 Gonzalo Paniagua Javier <[email protected]>
* GlobalizationSection.cs: use WebName instead of EncodingName.


svn path=/branches/mono-2-6/mcs/; revision=155081
2010-04-08 19:11:30 +00:00
Gonzalo Paniagua Javier 2d8eb21f63 2010-04-08 Gonzalo Paniagua Javier <[email protected]>
* ServicePointManager.cs: obtain the SubjectAltName extension the
	right way. Fixes bug #594110.


svn path=/branches/mono-2-6/mcs/; revision=155050
2010-04-08 14:30:31 +00:00
Kornél Pál 506b0f4075 * method-to-ir.c (mini_emit_inst_for_method): Fix a typo that caused CompareExchange not to be inlined for I8. Contributed under MIT/X11 license. Backport of r155039.
svn path=/branches/mono-2-6/mono/; revision=155040
2010-04-08 10:55:53 +00:00
Geoff Norton b458b8ab36 2010-04-07 Geoff Norton <[email protected]>
* domain.c: Avoid a deadlock on osx.  Fixes #565765

svn path=/branches/mono-2-6/mono/; revision=155022
2010-04-08 03:17:36 +00:00
Gonzalo Paniagua Javier 90c9532dc2 svn path=/branches/mono-2-6/mcs/; revision=155016 2010-04-07 22:57:26 +00:00
Gonzalo Paniagua Javier 1b292d5441 2010-04-07 Gonzalo Paniagua Javier <[email protected]>
* DeflateStream.cs: always use Cdecl, since the library is compiled
	using that calling convention in windows too.


svn path=/branches/mono-2-6/mcs/; revision=155015
2010-04-07 22:57:08 +00:00
Zoltan Varga 6b28cc8c14 2010-04-08 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Enum_ToObject): Avoid a crash for unfinished type
	builders. Fixes #594464.

svn path=/branches/mono-2-6/mono/; revision=155011
2010-04-07 22:53:16 +00:00
Zoltan Varga d3fd72552f 2010-04-08 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Environment_Exit): Shutdown the threadpool before
	waiting for all threads to suspend, as those threads can't be suspended.

svn path=/branches/mono-2-6/mono/; revision=155006
2010-04-07 22:44:06 +00:00
Zoltan Varga 236bad85c4 2010-04-08 Zoltan Varga <[email protected]>
* threads.c (mono_thread_suspend_all_other_threads): Call ensure_synch_cs_set ()
	to avoid crashes on newly created threads.

svn path=/branches/mono-2-6/mono/; revision=155003
2010-04-07 22:42:28 +00:00
Gonzalo Paniagua Javier a76aad61b3 add zlib functions
svn path=/branches/mono-2-6/mono/; revision=155001
2010-04-07 22:20:41 +00:00
Miguel de Icaza 6061c13a4f Implement BufferManager.cs
svn path=/branches/mono-2-6/mcs/; revision=154998
2010-04-07 22:16:02 +00:00
Gonzalo Paniagua Javier b7d40582ca 2010-04-07 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: now that we don't use Z_SYNC_FLUSH, there might be
	unflushed input in zstream, so always call Z_FINISH.


svn path=/branches/mono-2-6/mono/; revision=154996
2010-04-07 21:41:28 +00:00
Marek Habersack 275847592c Backport of r154745
svn path=/branches/mono-2-6/mcs/; revision=154952
2010-04-07 13:25:51 +00:00
Marek Habersack 8849b08183 Backport of r154948
svn path=/branches/mono-2-6/mcs/; revision=154950
2010-04-07 13:16:25 +00:00
Gonzalo Paniagua Javier c67d7eff92 2010-04-07 Gonzalo Paniagua Javier <[email protected]>
* TlsServerCertificate.cs: display the error code.


svn path=/branches/mono-2-6/mcs/; revision=154912
2010-04-07 07:20:21 +00:00
Gonzalo Paniagua Javier 6ee90a64a4 2010-04-07 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: decrement the domain threadpool jobs count.


svn path=/branches/mono-2-6/mono/; revision=154908
2010-04-07 05:55:57 +00:00
Gonzalo Paniagua Javier fd19103e56 2010-04-07 Gonzalo Paniagua Javier <[email protected]>
* file-io.c: reset the MonoIOStat structure in case of error.
	Fixes bug #582667.


svn path=/branches/mono-2-6/mono/; revision=154906
2010-04-07 05:51:52 +00:00
Marek Habersack 50cc986d14 Backport of r154894
svn path=/branches/mono-2-6/mcs/; revision=154895
2010-04-06 23:53:54 +00:00
Rodrigo Kumpera f213730ba7 2010-04-06 Rodrigo Kumpera <[email protected]>
* method-to-ir.c: Fix tests/load-exceptions.cs

svn path=/branches/mono-2-6/mono/; revision=154890
2010-04-06 23:20:22 +00:00
Rodrigo Kumpera e01c1e463a 2010-04-06 Rodrigo Kumpera <[email protected]>
* class.c (print_implemented_interfaces): Print proper type name.

	* class.c (mono_class_setup_vtable): Don't try that hard to produce
	the override map for generic instances since it later ignored.

	* class.c (mono_class_implement_interface_slow): Don't break for
	dynamic generic instances.

	* object.c (mono_runtime_invoke_array): Add an assert for allocation.

	* reflection.c (mono_reflection_method_get_handle): New method that
	resolves a method handle.

	* reflection.c (mono_reflection_get_dynamic_overrides): Handle the
	case when we override methods from a dynamic generic instance interface.

	Fixes #575941.

svn path=/branches/mono-2-6/mono/; revision=154888
2010-04-06 23:14:39 +00:00
Martin Baulig b8be5b0892 Fix my last commit; I didn't pick up all the changes.
svn path=/branches/mono-2-6/mcs/; revision=154855
2010-04-06 15:25:17 +00:00
Martin Baulig 245767b7f5 Backport 153335: Add support for aborting invocations in the Soft Debugger.
2010-03-05  Martin Baulig  <[email protected]>

	Add support for aborting invocations.

	* debugger-agent.c
	(InvokeData): Added `InvokeData *last_invoke'.
	(DebuggerTlsData): Renamed `invoke' into `pending_invoke' and
	added a new `invoke' field to keep the `InvokeData *' throughout
	the invocation.
	(ErrorCode): Added `ERR_NO_INVOCATION'.
	(CmdVM): Added `CMD_VM_ABORT_INVOKE'.
	(mono_debugger_agent_handle_exception): Don't report any exception
	if an abort was requested.
	(invoke_method): Store the `InvokeData *' in `tls->invoke'; reset
	a thread abort if necessary.
	(vm_commands): Implement `CMD_VM_ABORT_INVOKE'.

svn path=/branches/mono-2-6/mono/; revision=154850
2010-04-06 14:59:32 +00:00
Martin Baulig 350c3485c5 Backport of 153125+153336: Add support for aborting invocations.
2010-03-05  Martin Baulig  <[email protected]>

	Add support for aborting invocations.

	* IInvokeAsyncResult.cs: New file.
	(IInvokeAsyncResult): New public interface; derives from
	`IAsyncResult' and contains an Abort() method.

	* Connection.cs
	(Connection.VM_BeginInvokeMethod): Return the `id'.
	(Connection.VM_AbortInvoke): New method.

	* ObjectMirror.cs
	(ObjectMirror.BeginInvokeMethod): Return `IInvokeAsyncResult'
	instead of `IAsyncResult'.  Connection.VM_BeginInvokeMethod() now
	returns its id, store it in `InvokeAsyncResult.ID' because we need
	to pass it to VM_AbortInvoke().
	(ObjectMirror.AbortInvoke): New internal static method.

	* StructMirror.cs
	(StructMirror.BeginInvokeMethod): Return `IInvokeAsyncResult'
	instead of `IAsyncResult'.

	* TypeMirror.cs
	(TypeMirror.BeginInvokeMethod): Return `IInvokeAsyncResult'
	instead of `IAsyncResult'.

svn path=/branches/mono-2-6/mcs/; revision=154849
2010-04-06 14:58:58 +00:00
Andrew Jorgensen 841b835cf8 version 2.6.4
svn path=/branches/mono-2-6/mono/; revision=154813
2010-04-05 22:02:49 +00:00
Rodrigo Kumpera 2c442f9257 2010-04-05 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Handle call to virtual
	* final methods
	of marshalbyref classes.

	Fixes #515884.

svn path=/branches/mono-2-6/mono/; revision=154810
2010-04-05 21:11:57 +00:00
Zoltan Varga e9283f0f34 2010-04-05 Zoltan Varga <[email protected]>
* defs.h: Quiet warnings which might bother rpm.

svn path=/branches/mono-2-6/mcs/; revision=154806
2010-04-05 20:53:35 +00:00
Rodrigo Kumpera 3f8ea75a9c 2010-04-05 Rodrigo Kumpera <[email protected]>
* verify.c (verify_type_compatibility_full): Fail mixed
	* valuetype
	and reference types that point to the same class.

	Fixes #565598.

svn path=/branches/mono-2-6/mono/; revision=154802
2010-04-05 18:24:10 +00:00
Rodrigo Kumpera 570f827617 2010-04-05 Rodrigo Kumpera <[email protected]>
* verify.c (verify_stack_type_compatibility_full): Ignore
	* constraints
	when verifying compatibility between a generic instance and a
generic
	parameter.

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

	* verify.c (stack_slot_stack_type_full_name): Improve
	* verification type
	name.

	Fixes #587849.

svn path=/branches/mono-2-6/mono/; revision=154800
2010-04-05 17:05:06 +00:00
Andreas Färber fa53eedf5b configure: Set default for moonlight
Backport of r154765: Make configure display "Moon Profile:  no".

	* configure.in: Set default for with_moonlight to fix
        "Moon Profile:" output.

This commit is licensed under the MIT X11 license.

svn path=/branches/mono-2-6/mono/; revision=154777
2010-04-05 00:34:26 +00:00
Zoltan Varga 75153cfa8b 2010-04-05 Zoltan Varga <[email protected]>
* configure.in: Append -lgc to libmono_ldflags if using an external libgc.

svn path=/branches/mono-2-6/mono/; revision=154776
2010-04-04 22:04:54 +00:00
Zoltan Varga c36ff44981 Fix indentation.
svn path=/branches/mono-2-6/mono/; revision=154773
2010-04-04 21:00:49 +00:00
Zoltan Varga d4155c2b0d 2010-04-04 Zoltan Varga <[email protected]>
* processes.c: Applied more openbsd changes from Robert Nagy <[email protected]>.

svn path=/branches/mono-2-6/mono/; revision=154771
2010-04-04 19:32:34 +00:00
Andreas Färber c450bb5f6c configure: Fix typo
Backport of r154764: It's "initializer".

	* configure.in: Fix typo.

This commit is licensed under the MIT X11 license.

svn path=/branches/mono-2-6/mono/; revision=154766
2010-04-04 13:44:38 +00:00
Zoltan Varga 3c71c80a97 2010-04-03 Zoltan Varga <[email protected]>
* processes.c: Applied more openbsd changes from Robert Nagy <[email protected]>.

svn path=/branches/mono-2-6/mono/; revision=154760
2010-04-04 04:08:59 +00:00
Zoltan Varga 9a1cd1fd6e 2010-04-04 Zoltan Varga <[email protected]>
* threads.c Applied some openbsd changes from Robert Nagy <[email protected]>.

svn path=/branches/mono-2-6/mono/; revision=154758
2010-04-04 04:05:11 +00:00
Zoltan Varga 8ada60b181 2010-04-03 Zoltan Varga <[email protected]>
* configure.in: Applied some openbsd changes from Robert Nagy
	<[email protected]>.

svn path=/branches/mono-2-6/mono/; revision=154753
2010-04-03 07:48:41 +00:00
Zoltan Varga de2ba0bd9a 2010-04-03 Zoltan Varga <[email protected]>
* processes.c: Applied some openbsd changes from Robert Nagy <[email protected]>.

svn path=/branches/mono-2-6/mono/; revision=154748
2010-04-03 00:36:09 +00:00
Zoltan Varga 886c149b1a 2010-04-02 Miguel de Icaza <[email protected]>
* SafeHandle.cs: Use refcount == -1 to indicate that the handle
        had been closed.

        The problem here is that we have no records of why the code that
        threw a ObjectDisposedException inside the do { } while block on
        DangerousAddRef was added.   It seems it was added in response to
        Close() methods being called and the need to throw that exception
        on further calls to ObjectDisposedException.

        Sadly, we have no test suites for that.

svn path=/branches/mono-2-6/mcs/; revision=154742
2010-04-02 21:56:17 +00:00
Jonathan Pryor f1427d2e0a * Makefile.am: On non-Windows platforms, MonoPosixHelper now links
against libmono.so, for mono_runtime_is_shutting_down().
	* signal.c: Only continue retrying system calls if Mono is NOT
	  attempting to shut down.  Fixes #592981.

svn path=/branches/mono-2-6/mono/; revision=154735
2010-04-02 17:15:18 +00:00
Gonzalo Paniagua Javier 27aff483be shut up gcc in openbsd
svn path=/branches/mono-2-6/mono/; revision=154719
2010-04-02 13:42:25 +00:00
Zoltan Varga fa393c0e6c 2010-04-02 Zoltan Varga <[email protected]>
* libtest.c: Add OpenBSD to the list of defines.

svn path=/branches/mono-2-6/mono/; revision=154680
2010-04-02 01:00:30 +00:00
Marek Habersack 95181ca17e Partial backport of r154672
svn path=/branches/mono-2-6/mcs/; revision=154673
2010-04-01 22:25:09 +00:00
Gonzalo Paniagua Javier 65c1e5d776 2010-04-01 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.c: patch from Robert Nagy that makes this work in
	OpenBSD.


svn path=/branches/mono-2-6/mono/; revision=154671
2010-04-01 21:18:30 +00:00
Gonzalo Paniagua Javier 717c38fe5b default is windows-style
svn path=/branches/mono-2-6/mono/; revision=154665
2010-04-01 18:52:58 +00:00
Gonzalo Paniagua Javier 413493a49e 2010-04-01 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.[ch]: wait can be alertable now. Defaults to FALSE.


svn path=/branches/mono-2-6/mono/; revision=154644
2010-04-01 14:50:05 +00:00
Marek Habersack 8ec1e8d0c9 Backport of r154631
svn path=/branches/mono-2-6/mcs/; revision=154632
2010-04-01 11:20:33 +00:00
Geoff Norton 7aab767a05 2009-08-13 Atsushi Enomoto <[email protected]>
* Makefile : update profile check.

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

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

svn path=/branches/mono-2-6/mcs/; revision=154612
2010-04-01 06:38:50 +00:00
Geoff Norton 482a8d2725 Fix this
svn path=/branches/mono-2-6/mcs/; revision=154610
2010-04-01 06:17:30 +00:00
Zoltan Varga 5c65af3e9a 2010-04-01 Zoltan Varga <[email protected]>
* config-default.make (LIBRARY_FLAGS): Applied patch from Laurent Etiemble
	([email protected]). Use CFLAGS in the environment if defined.

svn path=/branches/mono-2-6/mcs/; revision=154607
2010-04-01 03:20:18 +00:00
Zoltan Varga 3279ae5224 2010-04-01 Zoltan Varga <[email protected]>
* appdomain.c (mono_domain_assembly_postload_search): Avoid a crash/assert if
	the assembly name is not well formed utf8. Fixes #567882.

svn path=/branches/mono-2-6/mono/; revision=154605
2010-04-01 03:01:56 +00:00
Zoltan Varga 3ed6d8edfa 2010-04-01 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_create_generic_class): Set the flags field of
	the generic parameters from the builder. Fixes #473298.

svn path=/branches/mono-2-6/mono/; revision=154603
2010-04-01 02:55:22 +00:00
Gonzalo Paniagua Javier 429fb4d25b 2010-03-31 Miguel de Icaza <[email protected]>
* mono-semaphore.h: Use Windows semaphores on Windows, patch
	contributed by Vincent Povirk from bugzilla #531767


svn path=/branches/mono-2-6/mono/; revision=154601
2010-04-01 02:03:46 +00:00
Zoltan Varga 1b45920003 2010-04-01 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_opcode): Set the cfg exception if the unsupported
	float conv.ovf.un opcodes are encountered, instead of asserting later.
	Fixes #566296.

svn path=/branches/mono-2-6/mono/; revision=154600
2010-04-01 01:36:06 +00:00
Zoltan Varga a6c05f6bdd 2010-04-01 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_opcode): Add OP_ICONV_TO_U4_UN as a no-op.

	* iltests.il.in: Add a test.

svn path=/branches/mono-2-6/mono/; revision=154598
2010-04-01 01:15:54 +00:00
Zoltan Varga 2aa0c3744f 2010-04-01 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_call): Fail compilation if an argument is too
	large. Fixes #567040.

	* method-to-ir.c: Call CHECK_CFG_EXCEPTION after emitting a call.

svn path=/branches/mono-2-6/mono/; revision=154585
2010-04-01 00:05:07 +00:00
Zoltan Varga 4963d1b7ce 2010-04-01 Zoltan Varga <[email protected]>
* method-to-ir.c (handle_ccastclass): Call save_cast_details (). Fixes
	#592711.

svn path=/branches/mono-2-6/mono/; revision=154576
2010-03-31 22:44:07 +00:00
Zoltan Varga 241aab1176 2010-01-22 Zoltan Varga <[email protected]>
* configure.in: Check whenever g++ is installed, since libtool requires it
	even if no c++ files will be compiled.

svn path=/branches/mono-2-6/mono/; revision=154574
2010-03-31 22:31:13 +00:00
Miguel de Icaza d36500b598 Backport 154532, fixes #588356
svn path=/branches/mono-2-6/mcs/; revision=154533
2010-03-31 05:15:44 +00:00
Gonzalo Paniagua Javier 2f8429a60c 2010-03-30 Gonzalo Paniagua Javier <[email protected]>
* HttpResponseStream.cs: speed up short writes.


svn path=/branches/mono-2-6/mcs/; revision=154526
2010-03-31 01:10:50 +00:00
Gonzalo Paniagua Javier bd0bcede7e undo
svn path=/branches/mono-2-6/mcs/; revision=154499
2010-03-30 21:22:48 +00:00
Gonzalo Paniagua Javier 4a6566948f 2010-03-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/PageParser.cs:
	* System.Web.UI/Page.cs:
	* System.Web.Configuration/PagesConfiguration.cs:
	* System.Web.Compilation/PageCompiler.cs: default for
	EnableViewStateMac is true. Allow setting it from a @Page
	directive.



svn path=/branches/mono-2-6/mcs/; revision=154497
2010-03-30 21:06:14 +00:00
Zoltan Varga 5ad466e7f1 2010-03-30 Zoltan Varga <[email protected]>
* ModuleBuilderTest.cs: Add a test for #592215.

svn path=/branches/mono-2-6/mcs/; revision=154489
2010-03-30 20:13:39 +00:00
Zoltan Varga 8d24d7e206 2010-03-30 Zoltan Varga <[email protected]>
* ModuleBuilder.cs (DefinedType): Lookup inside the name_cache before creating
	the TypeBuilder since the runtime code can't handle a duplicate type name.

svn path=/branches/mono-2-6/mcs/; revision=154488
2010-03-30 20:12:36 +00:00
Zoltan Varga e84c4ac69c 2010-03-30 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_aot_trampoline): Remove some dead code.

	* aot-runtime.c (mono_aot_patch_plt_entry): New helper function, which only
	does the patching if the callee is in the same domain.

	* aot-runtime.c mini-trampolines.c: Call mono_aot_patch_plt_entry instead
	of mono_arch_patch_plt_entry ().

svn path=/branches/mono-2-6/mono/; revision=154484
2010-03-30 19:51:49 +00:00
Zoltan Varga 425bd35013 2010-03-30 Zoltan Varga <[email protected]>
* CustomAttributeBuilder.cs (IsValidType): Call Enum.GetUnderlyingType () for
	dynamic enums to avoid crashes in the unmanaged code. Fixes #591800.

svn path=/branches/mono-2-6/mcs/; revision=154420
2010-03-30 03:31:36 +00:00
Zoltan Varga ca42a7b3f1 2010-03-30 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Enum_get_underlying_type): Don't crash on
	unfinished/broken typebuilders.

svn path=/branches/mono-2-6/mono/; revision=154418
2010-03-30 03:27:26 +00:00
Zoltan Varga 614d30fde1 2010-03-30 Zoltan Varga <[email protected]>
* arm/*.sh: Remove bash dependency.

svn path=/branches/mono-2-6/mono/; revision=154408
2010-03-29 23:21:38 +00:00
Zoltan Varga eca2d33669 2010-03-29 Zoltan Varga <[email protected]>
* mph.h: Applied some changes from the openbsd ports tree to fix openbsd
	support.

svn path=/branches/mono-2-6/mono/; revision=154402
2010-03-29 21:35:56 +00:00
Raja R Harinath 4f05025c1f * metadata-verify.c (INVALID_METHOD_IMPLFLAG_BITS): Allow bit 6 "NoOptimization".
(backport of r154395 from trunk)

svn path=/branches/mono-2-6/mono/; revision=154396
2010-03-29 18:48:11 +00:00
Marek Habersack 4dbe92e064 Backport of r154386
svn path=/branches/mono-2-6/mcs/; revision=154387
2010-03-29 16:59:51 +00:00
Zoltan Varga 62d82250ed 2010-03-29 Zoltan Varga <[email protected]>
* debugger-agent.c (jit_end): Send type loads for types loaded before the VMStart
	event is sent. Fixes #591733.

svn path=/branches/mono-2-6/mono/; revision=154352
2010-03-29 01:26:16 +00:00
Gonzalo Paniagua Javier 014d345b9e 2010-03-27 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: when PreAuthenticate is true, don't remove the
	existing authorization related headers until we know we have a
	replacement. Fixes bug #591633.


svn path=/branches/mono-2-6/mcs/; revision=154347
2010-03-27 16:27:14 +00:00
Zoltan Varga 887d18c4ea 2010-03-26 Zoltan Varga <[email protected]>
* mini-posix.c (SIG_HANDLER_SIGNATURE): Handle the case when ctx is NULL on
	OpenBSD.

svn path=/branches/mono-2-6/mono/; revision=154327
2010-03-26 21:45:06 +00:00
Gonzalo Paniagua Javier d5df37a353 2010-03-26 Gonzalo Paniagua Javier <[email protected]>
* ServicePointManager.cs: errors parsing the certificate don't prevent
	calling the callback now. Exceptions thrown parsing the certificate
	are printed to stderr in case they are library errors.


svn path=/branches/mono-2-6/mcs/; revision=154317
2010-03-26 20:13:27 +00:00
Zoltan Varga 4e3e3a0e5d 2010-03-26 Zoltan Varga <[email protected]>
* image-writer.c (bin_writer_emit_writeout): Fix the size of the got.plt
	section. Fixes #591000.

svn path=/branches/mono-2-6/mono/; revision=154294
2010-03-26 17:14:16 +00:00
Gonzalo Paniagua Javier 209882b2ea add
svn path=/branches/mono-2-6/mono/; revision=154293
2010-03-26 16:54:58 +00:00
Gonzalo Paniagua Javier bdbbe22fbb backport and fix the build
svn path=/branches/mono-2-6/mono/; revision=154292
2010-03-26 16:45:52 +00:00
Miguel de Icaza 9a061465d5 2010-03-26 Miguel de Icaza <[email protected]>
* RowEnumerableDataReader.cs: Applied patch from Tony Fish fixing
	bug #591397

svn path=/branches/mono-2-6/mcs/; revision=154291
2010-03-26 16:40:27 +00:00
Veerapuram Varadhan f122b42443 2010-03-26 Veerapuram Varadhan <[email protected]>
** Patch by Daniel Morgan <[email protected]>
	* System.Data.OracleClient/OracleParameter.cs: clean up

svn path=/branches/mono-2-6/mcs/; revision=154262
2010-03-26 12:23:21 +00:00
Veerapuram Varadhan de5e09e40e 2010-03-24 Veerapuram Varadhan <[email protected]>
** Fixes #565149 - by Daniel Morgan  <[email protected]>
	* System.Data.OracleClient/OracleParameter.cs:
	- if programmer explicitly sets the Size property,
	do not override the size later if the Value property
	is set for character data.
	- for character and numeric data types, output and
	return parameters were not allocated memory.
	Also, input/output parameters need to allocate memory
	based on Size because the output can be bigger than
	the input after an execute.

	* Test/TestOracleClient.cs: Data Adapter Test 2 is failing
	for NET_2_0 profile.

svn path=/branches/mono-2-6/mcs/; revision=154261
2010-03-26 12:23:01 +00:00
Zoltan Varga 92d05f673b 2010-03-26 Zoltan Varga <[email protected]>
* sockets.c: Apply some openbsd changes from openbsd ports.

svn path=/branches/mono-2-6/mono/; revision=154246
2010-03-26 03:34:33 +00:00
Zoltan Varga b2e289f47c 2010-03-26 Zoltan Varga <[email protected]>
* mono-proclib.c mono-semaphore.c: Apply some openbsd changes from openbsd
	ports.

svn path=/branches/mono-2-6/mono/; revision=154245
2010-03-26 03:34:27 +00:00
Zoltan Varga 27d04de97b 2010-03-26 Zoltan Varga <[email protected]>
* configure.in: Apply some openbsd changes from openbsd ports.

svn path=/branches/mono-2-6/mono/; revision=154244
2010-03-26 03:34:20 +00:00
Gonzalo Paniagua Javier cccbade308 only check for the Mac library file once
svn path=/branches/mono-2-6/mcs/; revision=154238
2010-03-26 02:57:43 +00:00
Geoff Norton 20ee9bcdb0 We dont do MacOSX on MacOSX
svn path=/branches/mono-2-6/mcs/; revision=154224
2010-03-25 22:18:00 +00:00
Gonzalo Paniagua Javier 72480c30f8 2010-03-25 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.[hc]: make sure the semaphore calls are restarted if
	interrupted. Return 0 on success and -1 on failure on windows.


svn path=/branches/mono-2-6/mono/; revision=154218
2010-03-25 20:43:16 +00:00
Andrés G. Aragoneses d2ed53e64d 2010-03-24 Andrés G. Aragoneses <[email protected]>
* SortSequenceContext.cs: Fix build, broken in r154156 by a
	typo in the last backport.


svn path=/branches/mono-2-6/mcs/; revision=154181
2010-03-24 23:02:52 +00:00
Jb Evain 200e7a4377 2010-03-24 Jb Evain <[email protected]>
* SortSequenceContext.cs: Fix OrderByDescending stability.
	Based on a patch by Richard Kiene  <[email protected]>.

	backport of r154154.


svn path=/branches/mono-2-6/mcs/; revision=154156
2010-03-24 17:42:15 +00:00
Sebastien Pouliot 50b69c2387 In corlib/Mono.Security:
2010-03-24  Sebastien Pouliot  <[email protected]>

	* ASN1Convert.cs: Specify CultureInfo.InvariantCulture (instead of 
	null) to avoid crash on Windows. Patch by Yoni Shalom.

In Mono.Security/Mono.Security:
2010-03-24  Sebastien Pouliot  <[email protected]>

	* ASN1Convert.cs: Specify CultureInfo.InvariantCulture (instead of 
	null) to avoid crash on Windows. Patch by Yoni Shalom.
	[Backport r154135]


svn path=/branches/mono-2-6/mcs/; revision=154136
2010-03-24 13:26:41 +00:00
Gonzalo Paniagua Javier 271ae5847b 2010-03-23 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: error handling was totally broken in the synchronous
	Connect() call.  Fixes bug #590488.


svn path=/branches/mono-2-6/mcs/; revision=154088
2010-03-23 20:34:12 +00:00
Geoff Norton db88c8c7d4 2010-03-23 Geoff Norton <[email protected]>
* da_DK.xml: The short format is day. month, not
        day month.  Fixes #588165

svn path=/branches/mono-2-6/mono/; revision=154037
2010-03-23 05:03:30 +00:00
Zoltan Varga a7abfc11f4 2010-03-22 Zoltan Varga <[email protected]>
* mini-x86.h: Applied patch from Robert Nagy ([email protected]).
	Use sigaction on OpenBSD too.

svn path=/branches/mono-2-6/mono/; revision=154000
2010-03-22 17:01:15 +00:00
Zoltan Varga 0ad3291d96 2010-03-22 Zoltan Varga <[email protected]>
* mono-sigcontext.h: Applied patch from Robert Nagy ([email protected]).
	Add OpenBSD definitions.

svn path=/branches/mono-2-6/mono/; revision=153999
2010-03-22 17:01:06 +00:00
Zoltan Varga ab3cdb8f16 2010-03-22 Zoltan Varga <[email protected]>
* loader.c (mono_method_get_marshal_info): Fix the handling of dynamic methods
	broken by the last change.

svn path=/branches/mono-2-6/mono/; revision=153974
2010-03-22 12:41:54 +00:00
Zoltan Varga a9e198b91a 2010-03-04 Geoff Norton <[email protected]>
* loader.c: The marshal specs are freed at the end of the call
	but it explicitly frees the strings as well as the container,
	so we need to dup them too to avoid referencing free'd memory.

svn path=/branches/mono-2-6/mono/; revision=153973
2010-03-22 12:41:39 +00:00
Zoltan Varga 76dae08ff2 2010-03-22 Zoltan Varga <[email protected]>
* debugger-agent.c (event_req_matches_assembly): Handle request modifiers too.

svn path=/branches/mono-2-6/mono/; revision=153970
2010-03-22 12:08:23 +00:00
Zoltan Varga 4e9e1e2aed 2010-03-21 Zoltan Varga <[email protected]>
* mini.c (SIG_HANDLER_SIGNATURE): Fix the build on platforms without sigaction
	(openbsd+amd64 ?).

svn path=/branches/mono-2-6/mono/; revision=153958
2010-03-21 15:57:18 +00:00
Zoltan Varga 6b37d8925b 2010-03-21 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_emit_exceptions): Avoid an assert in ppc_patch () for
	some large methods with lots of exception handlers. Fixes #440924.

svn path=/branches/mono-2-6/mono/; revision=153954
2010-03-21 12:45:55 +00:00
Rodrigo Kumpera 3afb605fd0 2009-11-17 Atsushi Enomoto <[email protected]>
* DateTimeOffset.cs : fix parse failure on missing colon.
	  Fixed bug #547675, patch by Santa Marta (see bugzilla).

	* DateTimeOffsetTest.cs : add test for bug #547675.
	  patch by Santa Marta.

	Backport of r146338

svn path=/branches/mono-2-6/mcs/; revision=153925
2010-03-19 22:57:00 +00:00
Zoltan Varga f854ac211c 2010-03-19 Zoltan Varga <[email protected]>
* debugger-agent.c (clear_event_requests_for_assembly): New helper function.
	(assembly_unload): Clear all event requests referencing the to-be unloaded
	assembly.

svn path=/branches/mono-2-6/mono/; revision=153921
2010-03-19 20:57:35 +00:00
Zoltan Varga 50861a4950 2010-03-16 Zoltan Varga <[email protected]>
* debugger-agent.c: Simplify the way breakpoints are processed by removing
	the 'pending' flag. This fixes support for appdomains too.

svn path=/branches/mono-2-6/mono/; revision=153920
2010-03-19 20:56:34 +00:00
Gonzalo Paniagua Javier 12392e7a6d 2010-03-19 Gonzalo Paniagua Javier <[email protected]>
* TreeView.cs: use enums instead of strings for attributes.


svn path=/branches/mono-2-6/mcs/; revision=153918
2010-03-19 20:31:32 +00:00
Gonzalo Paniagua Javier 66c67f63ed 2010-03-18 Gonzalo Paniagua Javier <[email protected]>
* FtpWebResponse.cs:
	* FtpWebRequest.cs: for non-data operations, make sure we send the
	QUIT command upon completion when KeepAlive is false.
	Fixes bug #589305.


svn path=/branches/mono-2-6/mcs/; revision=153826
2010-03-18 11:59:40 +00:00
Gonzalo Paniagua Javier f6a430ef7b 2010-03-17 Gonzalo Paniagua Javier <[email protected]>
* StreamReaderTest.cs: test for bug 589236. The detected encoding is
	different from the one provided in the ctor.


svn path=/branches/mono-2-6/mcs/; revision=153803
2010-03-18 02:56:23 +00:00
Gonzalo Paniagua Javier c03d5e00fa 2010-03-17 Gonzalo Paniagua Javier <[email protected]>
* StreamReader.cs: if the detected encoding is different from the
	provided to the constructor, adjust the decoded buffer size if
	needed. Fixes bug #589236.


svn path=/branches/mono-2-6/mcs/; revision=153800
2010-03-18 02:41:24 +00:00
Zoltan Varga caee4205bc 2010-03-17 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_build_imt_thunk): Always save and restore r11 since it
	is needed even when fail_tramp!=NULL.

svn path=/branches/mono-2-6/mono/; revision=153769
2010-03-17 15:02:56 +00:00
Zoltan Varga b85ee40c51 2010-03-17 Zoltan Varga <[email protected]>
* debugger-agent.c (insert_breakpoint): Write a log message.

svn path=/branches/mono-2-6/mono/; revision=153767
2010-03-17 14:56:45 +00:00
Zoltan Varga a4df7776b1 2010-03-16 Zoltan Varga <[email protected]>
* iltests.il.in: Disable the fconv_to_i test on sparc too.

svn path=/branches/mono-2-6/mono/; revision=153635
2010-03-16 07:51:44 +00:00
Zoltan Varga 4492c7f0cc 2009-12-18 Zoltan Varga <[email protected]>
* debug-helpers.c (dis_one): Avoid a glib assert on empty strings.

svn path=/branches/mono-2-6/mono/; revision=153630
2010-03-16 06:26:11 +00:00
Zoltan Varga 67683dc9c4 2010-03-14 Zoltan Varga <[email protected]>
* ILParser.jay: Fix the float32(<long>) case in the previous change.

svn path=/branches/mono-2-6/mcs/; revision=153544
2010-03-14 01:53:24 +00:00
Zoltan Varga a14e92e5a8 2010-03-14 Zoltan Varga <[email protected]>
* ILParser.jay: Fix support for hex float literals on big-endian platforms.

svn path=/branches/mono-2-6/mcs/; revision=153541
2010-03-14 01:43:13 +00:00
Gonzalo Paniagua Javier cf35c1c2fe remove commented out code
svn path=/branches/mono-2-6/mcs/; revision=153447
2010-03-11 06:08:10 +00:00
Gonzalo Paniagua Javier d966f1a3b1 Moved chain building and validation from Mono.Security to System
to better support the 2.0 validation callback.


svn path=/branches/mono-2-6/mcs/; revision=153444
2010-03-11 06:02:22 +00:00
Zoltan Varga 53acd8e076 2010-03-11 Zoltan Varga <[email protected]>
* Path.cs (GetTempFileName): Fix infinite loop if the process doesn't have
	write access to /tmp. Fixes #585017.

svn path=/branches/mono-2-6/mcs/; revision=153434
2010-03-11 00:51:41 +00:00
Martin Baulig abe419844c Add NULL check to type_command()/CMD_TYPE_GET_SOURCE_FILES.
2010-03-11  Martin Baulig  <[email protected]>

	* debugger-agent.c (type_commands): Add NULL check to
	`CMD_TYPE_GET_SOURCE_FILES'.

svn path=/branches/mono-2-6/mono/; revision=153432
2010-03-10 23:44:17 +00:00
Veerapuram Varadhan 7574edd405 2010-03-10 Veerapuram Varadhan <[email protected]>
** Fixes #564833/580736
	* DbDataAdapter.cs (*Command): Fix for .NET compatibility which
	supports both type of adapters with/without discrete command
	instances.

svn path=/branches/mono-2-6/mcs/; revision=153410
2010-03-10 17:46:03 +00:00
Gonzalo Paniagua Javier 7ead06788f 2010-03-09 Gonzalo Paniagua Javier <[email protected]>
* DeflateStream.cs: don't call unmanaged code when the byte count
	is 0. Fixes bug #586870.


svn path=/branches/mono-2-6/mcs/; revision=153384
2010-03-10 04:46:19 +00:00
Zoltan Varga c093f14010 2010-03-09 Zoltan Varga <[email protected]>
* object-internals.h (_G_BOOLEAN_EXPR): Fix the definition of this to explicitly
	convert to a boolean, recent gcc versions compile this differently.

svn path=/branches/mono-2-6/mono/; revision=153373
2010-03-09 22:24:17 +00:00
Zoltan Varga 05df794b52 2010-03-09 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_peephole_ins): Fix the OP_FMOVE optimization. Fixes
	#586664.

	* iltests.il.in: Add a test.

svn path=/branches/mono-2-6/mono/; revision=153333
2010-03-09 18:21:53 +00:00
Gonzalo Paniagua Javier 1a83199dab 2010-03-09 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs: set the right position when a CR is found.
	Fixes bug #577891.


svn path=/branches/mono-2-6/mcs/; revision=153308
2010-03-09 07:45:15 +00:00
Gonzalo Paniagua Javier afc4f2eb1a add realm from HttpListener
svn path=/branches/mono-2-6/mcs/; revision=153303
2010-03-09 06:34:51 +00:00
Gonzalo Paniagua Javier 98923600e7 2010-03-09 Gonzalo Paniagua Javier <[email protected]>
* HttpListener.cs:
	* HttpListenerRequest.cs:
	* ListenerAsyncResult.cs:
	* HttpConnection.cs: make sure there is no pending input when reusing
	the connection.


svn path=/branches/mono-2-6/mcs/; revision=153301
2010-03-09 06:05:16 +00:00
Zoltan Varga 96571961c0 2010-03-09 Zoltan Varga <[email protected]>
* include/private/gc_locks.h: Fix amd64 build with newer gcc's.

svn path=/branches/mono-2-6/mono/; revision=153292
2010-03-09 00:40:25 +00:00
Gonzalo Paniagua Javier afa0546c82 2010-03-08 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerContext.cs: split the auth header in 2 parts.
	* HttpListener.cs: backported SelectAuthenticationScheme and
	added new InternalEndGetContext used for connections that require
	authentication.
	* ListenerAsyncResult.cs: allow this object to be just a forwarder
	when nesting connections for authentication purposes.
	Fixes bug #585455.


svn path=/branches/mono-2-6/mcs/; revision=153287
2010-03-08 21:54:35 +00:00
Rodrigo Kumpera 1308338d1e 2010-03-08 Rodrigo Kumpera <[email protected]>
* method-to-ir.c: Store the initial basic block returned by
	* mono_basic_block_split
	so we can release the whole list and not just the first one.
	Free it in more places as well.

svn path=/branches/mono-2-6/mono/; revision=153285
2010-03-08 21:09:08 +00:00
Rodrigo Kumpera 8590d70a91 2010-03-08 Rodrigo Kumpera <[email protected]>
* verify.c: Store the initial basic block returned by
	* mono_basic_block_split
	so we can release the whole list and not just the first one.

svn path=/branches/mono-2-6/mono/; revision=153284
2010-03-08 21:09:00 +00:00
Rodrigo Kumpera 0fd407f175 2010-03-08 Rodrigo Kumpera <[email protected]>
* verify.c: Store the initial basic block returned by
	* mono_basic_block_split
	so we can release the whole list and not just the first one.


Conflicts:

	mono/metadata/ChangeLog
	mono/metadata/verify.c

svn path=/branches/mono-2-6/mono/; revision=153283
2010-03-08 21:08:51 +00:00
Zoltan Varga 9aba20497f Revert "2010-03-06 Zoltan Varga <[email protected]>"
This reverts commit 5b4c3e4a2a5e73e6603a181b183dd3293b15e856.

Revert this too as the corresponding fix was reverted.

svn path=/branches/mono-2-6/mono/; revision=153257
2010-03-08 16:07:22 +00:00
Zoltan Varga c870ec5288 Revert "2010-03-06 Zoltan Varga <[email protected]>"
This reverts commit 1a9062e916b146e18177e2dd53b1bc84946c2ddf.

Revert this as it seems to break appdomain-unload.exe.

svn path=/branches/mono-2-6/mono/; revision=153254
2010-03-08 15:58:20 +00:00
Zoltan Varga 45e3daf4fb 2010-03-07 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Disable one of the cases when deadce
	is disabled. Fixes #582322.

	* iltests.il.in: Add a test.

svn path=/branches/mono-2-6/mono/; revision=153220
2010-03-07 19:27:11 +00:00
Gonzalo Paniagua Javier 57c7a2dbc9 2010-03-06 Gonzalo Paniagua Javier <[email protected]>
* processes.c: made ShellExecuteEx actually work when the file name to
	execute is quoted. Display a message intead of blindly ignoring the
	result of g_shell_parse_argv(). Fixes bug #385497.


svn path=/branches/mono-2-6/mono/; revision=153209
2010-03-06 21:37:17 +00:00
Zoltan Varga 94705ef1ab 2010-03-06 Zoltan Varga <[email protected]>
* synchronized.cs: Add tests for not locked monitors.

svn path=/branches/mono-2-6/mono/; revision=153201
2010-03-06 19:23:32 +00:00
Zoltan Varga 198e236e00 2010-03-06 Zoltan Varga <[email protected]>
* monitor.c (mono_monitor_exit): Raise an exception if the object is not locked,
	MS does this from net 2.0 onwards.

svn path=/branches/mono-2-6/mono/; revision=153200
2010-03-06 19:23:20 +00:00
Zoltan Varga fee72af76b 2010-03-06 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_create_monitor_exit_trampoline_full): Delegate
	the handling of obj->synchronization == null and owner != current thread to
	mono_monitor_exit ().

svn path=/branches/mono-2-6/mono/; revision=153199
2010-03-06 19:23:13 +00:00
Gonzalo Paniagua Javier a73c45341a 2010-03-06 Gonzalo Paniagua Javier <[email protected]>
* SmtpClient.cs: typo in reply-to header. Thanks to Chris Tomlinson.
	Fixes bug #578271.
	Re-enabled code that seems to compile now.

svn path=/branches/mono-2-6/mcs/; revision=153181
2010-03-06 16:38:07 +00:00
Gonzalo Paniagua Javier 9ad2d0f684 2010-03-06 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: fix for UploadStringAsync(). Closes bug #577818.
	Patch by Atsushi.


svn path=/branches/mono-2-6/mcs/; revision=153179
2010-03-06 16:30:28 +00:00
Marek Habersack 991b452104 Backport of r153169
svn path=/branches/mono-2-6/mcs/; revision=153170
2010-03-06 02:20:04 +00:00
Marek Habersack f600fa9272 Backport of r153167
svn path=/branches/mono-2-6/mcs/; revision=153168
2010-03-06 01:52:33 +00:00
Marek Habersack c2055e395b Backport of r153164
svn path=/branches/mono-2-6/mcs/; revision=153165
2010-03-06 00:29:23 +00:00
Zoltan Varga 6676d1dcc8 2010-03-05 Zoltan Varga <[email protected]>
* shared.c (shm_semaphores_init): Applied patch from Cal Page
	([email protected]). Fix support for USE_SHM.

svn path=/branches/mono-2-6/mono/; revision=153133
2010-03-05 18:48:02 +00:00
Zoltan Varga 7945c1f43f In libgc/:
2010-03-04  David S. Miller  <[email protected]>

       * include/private/gc_locks.h: Add SPARC implementations of
       GC_compare_and_exchange and GC_memory_barrier.

In mono/mini/:

2010-03-04  David S. Miller  <[email protected]>

       * mini-sparc.h: Always use MONO_ARCH_USE_SIGACTION.  Linux kernels
       that don't provide the siginfo in the second signal handler argument
       are buggy, and this has been fixed for years.
       * mini.h (GET_CONTEXT): Remove __sparc__ special case.
       (SIG_HANDLER_SIGNATURE, SIG_HANDLER_PARMS): Likewise.

svn path=/branches/mono-2-6/mono/; revision=153115
2010-03-05 14:23:07 +00:00
Martin Baulig e75ca10df8 Revert "Add new abort-invoke.cs test."
This reverts commit 6e4652370edb7ef083e33247cb7e97b0704f44a3.

svn path=/branches/mono-2-6/mono/; revision=153032
2010-03-04 17:12:02 +00:00
Martin Baulig def391ce66 Revert "Set vtable->init_aborted' if we hit a ThreadAbortException' in the class .cctor."
This reverts commit aaf75e62ac5e2aecbce5a7a16867f0a511d5c7cb.

svn path=/branches/mono-2-6/mono/; revision=153031
2010-03-04 17:11:53 +00:00
Zoltan Varga 560946c1d8 Fix the ChangeLog.
svn path=/branches/mono-2-6/mono/; revision=152997
2010-03-04 04:47:52 +00:00
Zoltan Varga 8d8624a0f7 2010-03-04 Zoltan Varga <[email protected]>
* aot-runtime.c (find_symbol): Fix a warning.
	(decode_patch): Ditto.

svn path=/branches/mono-2-6/mono/; revision=152992
2010-03-04 04:03:43 +00:00
Gonzalo Paniagua Javier 0f0c6f03c0 2010-03-03 Gonzalo Paniagua Javier <[email protected]>
* mono-mmap.c: apparently kill() can return ENOMEM. Also use signal 0
	which is the documented way of testing for the existence of a PID.
	Thanks to Cal Page.


svn path=/branches/mono-2-6/mono/; revision=152955
2010-03-03 18:01:30 +00:00
Lluis Sanchez e91be4ae74 2006-03-03 Lluis Sanchez Gual <[email protected]>
* Methods.cs: In BuildResponseReflectionMembers, use the operation
	name as base name for the response element. Don't use the request
	name as base, since it may have been customized using the RequestElementName
	property. Fixes bug #548988.


svn path=/branches/mono-2-6/mcs/; revision=152951
2010-03-03 16:29:26 +00:00
Lluis Sanchez 3c7e8af1f1 2010-03-03 Lluis Sanchez Gual <[email protected]>
* ServiceDescriptionCollection.cs: When looking for bindings and other
	items, look in the list instead of the namespace table, since the
	collection may have several description documents with the same
	namespace.
	* ProtocolImporter.cs: Same as above. A schemas collection can have
	more than one schema with the same name, so we can use the namespace
	indexer to find schemas.
	* BasicProfileChecker.cs: Added null check.


svn path=/branches/mono-2-6/mcs/; revision=152949
2010-03-03 16:23:09 +00:00
Andreia Gaita 35235614d5 * InternalWebRequestStreamWrapper.cs: don't add a newline to the request data,
whatever uses the data should be the one adding newlines if they need it
(i.e., moon's ff bridge needs it, the curl bridge doesn't)

svn path=/branches/mono-2-6/mcs/; revision=152891
2010-03-03 03:39:09 +00:00
Zoltan Varga 6639bea329 2010-03-02 Levi Bard <[email protected]>
* debugger-agent.c: Invalidate thread stacks on domain unload.

svn path=/branches/mono-2-6/mono/; revision=152882
2010-03-02 22:09:38 +00:00
Jb Evain 9622babbc0 2010-03-02 Jb Evain <[email protected]>
Merge the MonoTouch Linker branch.

	* Mono.Linker/LinkContext.cs:
		Allow creation with a custom resolver.

	* Mono.Linker/AssemblyResolver.cs:
		Allow creation with a custom assembly cache.

	* Mono.Linker.Steps/ResolveFromAssemblyStep.cs:
		- Mark fields for copied assemblied.
		- Now can take an assembly directly.

	* Mono.Linker.Steps/SweepStep.cs
	* Mono.Linker.Steps/CleanStep.cs:
		Optimizations.

svn path=/branches/mono-2-6/mcs/; revision=152841
2010-03-02 14:52:27 +00:00
Martin Baulig 211f1233f2 Add new abort-invoke.cs test.
2010-03-01  Martin Baulig  <[email protected]>

	* abort-invoke.cs: Add a test for my latest patch regarding thread
	aborts while running a class .cctor.

svn path=/branches/mono-2-6/mono/; revision=152830
2010-03-02 13:27:38 +00:00
Martin Baulig f96b5709dd Set vtable->init_aborted' if we hit a ThreadAbortException' in the class .cctor.
2010-02-26  Martin Baulig  <[email protected]>

	* class-internals.h (MonoVTable): Added `init_aborted'.

	* object.c
	(mono_runtime_class_init_full): Set `vtable->init_aborted' in
	addition to `vtable->init_failed' if we hit a `ThreadAbortException'
	while running the class .cctor and reset `init_failed' next time
	we're called.

svn path=/branches/mono-2-6/mono/; revision=152829
2010-03-02 13:27:29 +00:00
Martin Baulig 05bf1f75fa **** Backport of r152557 ****
2010-02-26  Martin Baulig  <[email protected]>

	* debug-debugger.c (MonoDebuggerInfo): Added `abort_runtime_invoke'.

	* debug-mini.c
	(MonoDebuggerThreadInfo): Added `internal_flags'.
	(MonoDebuggerInternalThreadFlags): New enum.
	(_mono_debugger_throw_exception): Don't signal the debugger if a
	type abort was requested.
	(_mono_debugger_unhandled_exception): Likewise.
	(mono_debugger_abort_runtime_invoke): New method to abort an invocation.
	(mono_debugger_runtime_invoke): If the debugger requested a thread
	abort during the invocation, reset it here.

svn path=/branches/mono-2-6/mono/; revision=152828
2010-03-02 13:27:20 +00:00
Carlos Alberto Cortez 7864c79b96 * X11Keyboard.cs: When handling the key events, sometimes calling
either Xutf8LookupString or XLookupString with special chars (such
	backspace and enter) can result in a buffer filled with garbage, or
	empty - thus re-use the value returned by the same functions to fill
	the gap.
	Fixes #582691.

2010-03-02  Carlos Alberto Cortez <[email protected]>


svn path=/branches/mono-2-6/mcs/; revision=152806
2010-03-02 06:55:09 +00:00
Carlos Alberto Cortez 805ffd7bdc 2010-03-02 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When retrieving SelectedRtf/Rtf properly escape any
	RTF reserved char, so we don't end up messing around the actual rtf
	values.
	Fixes part of #575731.


svn path=/branches/mono-2-6/mcs/; revision=152805
2010-03-02 06:51:32 +00:00
Geoff Norton 58e1f675be fix build with disable_jit
svn path=/branches/mono-2-6/mono/; revision=152797
2010-03-02 05:17:49 +00:00
Zoltan Varga 2ef482cf26 2010-03-02 Zoltan Varga <[email protected]>
* cpu-<ARCH>.md: dummy_use was missing src1:i.

svn path=/branches/mono-2-6/mono/; revision=152791
2010-03-02 03:13:42 +00:00
Geoff Norton c9cdfa8edc typo
svn path=/branches/mono-2-6/mcs/; revision=152766
2010-03-01 23:06:13 +00:00
Geoff Norton b5605f67f3 File.Exists cannot read outside the sandbox on monotouch
svn path=/branches/mono-2-6/mcs/; revision=152764
2010-03-01 22:45:56 +00:00
Geoff Norton 86bce3c9f8 2010-02-27 Miguel de Icaza <[email protected]>
* OSX509Certificates.cs: Add support to validate X509 certificate
	chains using the OSX certificates API.

svn path=/branches/mono-2-6/mcs/; revision=152763
2010-03-01 22:45:52 +00:00
Zoltan Varga 70fe9fcfb5 2010-03-01 Zoltan Varga <[email protected]>
* debugger-agent.c: Add a log message printing the protocol version.

svn path=/branches/mono-2-6/mono/; revision=152760
2010-03-01 22:31:03 +00:00
Zoltan Varga 61238592a5 2010-03-01 Zoltan Varga <[email protected]>
* VirtualMachine.cs: Allow working with runtimes implementing a different
	minor version of the debugger protocol.

svn path=/branches/mono-2-6/mcs/; revision=152758
2010-03-01 22:27:50 +00:00
Zoltan Varga 1e528e0c8f 2010-03-01 Zoltan Varga <[email protected]>
* Connection.cs: Send the protocol version used by the client to the debuggee
	after the handshake.

svn path=/branches/mono-2-6/mcs/; revision=152756
2010-03-01 22:24:26 +00:00
Zoltan Varga f9791c6d66 2010-03-01 Zoltan Varga <[email protected]>
* debugger-agent.c: Add a new command to communicate the protocol version used
	by the client. This could be used to allow newer runtimes to communicate with
	older clients.

svn path=/branches/mono-2-6/mono/; revision=152754
2010-03-01 22:23:08 +00:00
Zoltan Varga 4b404e2fef 2010-03-01 Zoltan Varga <[email protected]>
* appdomain.c (unload_thread_main): Detach the thread at the end.

svn path=/branches/mono-2-6/mono/; revision=152746
2010-03-01 20:25:42 +00:00
Ankit Jain e0859bcfe0 Update from trunk.
Fix tests.
* Makefile (EXTRA_DISTFILES): Add Test/resources/junk.txt .

svn path=/branches/mono-2-6/mcs/; revision=152745
2010-03-01 20:08:26 +00:00
Zoltan Varga 05734b00b5 2010-03-01 Zoltan Varga <[email protected]>
* Location.cs: Implement ToString ().

svn path=/branches/mono-2-6/mcs/; revision=152737
2010-03-01 19:29:51 +00:00
Zoltan Varga 88c083892b 2010-03-01 Zoltan Varga <[email protected]>
* AppDomainMirror.cs (CreateBoxedValue): New method to create a boxed value from
	a primitive value or struct.

svn path=/branches/mono-2-6/mcs/; revision=152718
2010-03-01 17:17:19 +00:00
Zoltan Varga 1e0d61078d 2010-03-01 Zoltan Varga <[email protected]>
* debugger-agent.c (domain_commands): Add a new command to create a boxed value.

svn path=/branches/mono-2-6/mono/; revision=152716
2010-03-01 17:15:22 +00:00
Miguel de Icaza b14816452d Backport fix for DateTime.TryParse
svn path=/branches/mono-2-6/mcs/; revision=152710
2010-03-01 16:50:33 +00:00
Zoltan Varga 4f3c73f7a6 2010-03-01 Zoltan Varga <[email protected]>
* debugger-agent.c (type_commands): Fix the setting of fields with a reference
	type.

svn path=/branches/mono-2-6/mono/; revision=152703
2010-03-01 16:28:17 +00:00
Carlos Alberto Cortez c71dc8e486 2010-03-01 Carlos Alberto Cortez <[email protected]>
* Line.cs: When setting the Text property, if the new text is larger
	than the previous one, call Grow to update our internal 'widths'
	array, to be properly in sync with the new text.
	Fixes #569530.


svn path=/branches/mono-2-6/mcs/; revision=152698
2010-03-01 15:00:48 +00:00
Carlos Alberto Cortez 7039116414 2010-03-01 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: When creating DrawItemEventArgs pass the fore color and
	back color arguments depending on the higlight/focus state, just like
	.net.
	Fixes #572643.


svn path=/branches/mono-2-6/mcs/; revision=152697
2010-03-01 14:57:36 +00:00
Carlos Alberto Cortez 927660e1ea 2010-03-01 Carlos Alberto Cortez <[email protected]>
* ToolStripMenuItem.cs: Don't try to use SystemColors.MenuText if fore
	color is SystemColors.ControlText, as this system color detection
	should be done *completely*. This is specially important when
	detecting colors in systems running Gtk+ and dark themes.


svn path=/branches/mono-2-6/mcs/; revision=152691
2010-03-01 14:21:11 +00:00
Gonzalo Paniagua Javier a80553752e 2010-03-01 Gonzalo Paniagua Javier <[email protected]>
* System.Net/WebConnection.cs: attach a validation callback to the new
	event in Mono.Security.
	* System.Net/ServicePointManager.cs: added a new ValidationHelper
	class that takes care of building the certificate chain and perform
	all the check that were done in Mono.Security before. This way the 2.0
	server certificate validation callback can get all the data it needs.
	* System.Net.Security/SslStream.cs: don't do anything if a chain
	element has no error.

	Fixes bug #584050.

svn path=/branches/mono-2-6/mcs/; revision=152655
2010-03-01 09:01:20 +00:00
Gonzalo Paniagua Javier 72a520e717 2010-03-01 Gonzalo Paniagua Javier <[email protected]>
* Mono.Security.Protocol.Tls/HttpsClientStream.cs: use Address instead
	of RequestUri to get the right host name when the request is
	redirected.

	* Mono.Security.Protocol.Tls/SslStreamBase.cs:
	* Mono.Security.Protocol.Tls/SslClientStream.cs:
	* Mono.Security.Protocol.Tls/SslServerStream.cs:
	* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:
	added a new callback for certificate validation that gets all the
	certificates received from the server/client. The callee should
	build the chain and validate it.


svn path=/branches/mono-2-6/mcs/; revision=152653
2010-03-01 08:51:54 +00:00
Miguel de Icaza 4e605c2465 Backport
svn path=/branches/mono-2-6/mcs/; revision=152651
2010-03-01 07:11:35 +00:00
Jonathan Pryor 87f6eab1bc * Makefile: Add System.Xml.Linq.dll to the referenced assemblies.
* Mono.Documentation/webdoc.cs: Allow .source files to be provided to
	  'mdoc export-html-webdoc', which will cause the .source files to be
	  read and all referenced .tree/.zip files to be processed.

svn path=/branches/mono-2-6/mcs/; revision=152642
2010-03-01 00:14:48 +00:00
Jonathan Pryor 2778fd6318 * Makefile: Remove System.Core.dll reference.
* Monodoc/provider.cs: Fix the build: monodoc.dll is build for the 1.1
	  profile in Mono 2.6, so remove use of generics/etc.

svn path=/branches/mono-2-6/mcs/; revision=152639
2010-02-28 23:24:49 +00:00
Zoltan Varga 901a2d36f9 2010-02-28 Zoltan Varga <[email protected]>
* marshal.c (get_runtime_invoke_type): Avoid sharing byref with I, as the latter
	needs an indirection.

svn path=/branches/mono-2-6/mono/; revision=152631
2010-02-28 20:57:35 +00:00
Jonathan Pryor 53a3120c51 * Mono.Documentation/webdoc.cs: Add --use-system-sources option so
that 'mdoc export-html-webdoc' will use the system-installed sources
	  in addition to any -r'd sources (which was the behavior 2 commits
	  ago).

svn path=/branches/mono-2-6/mcs/; revision=152624
2010-02-28 17:24:20 +00:00
Zoltan Varga 56f106393e 2010-02-28 Zoltan Varga <[email protected]>
* object.c (build_imt_slots): Compute the vtable slot correctly for interfaces
	with static methods. Fixes #583817.

svn path=/branches/mono-2-6/mono/; revision=152620
2010-02-28 03:29:18 +00:00
Robert Jordan 5ffc2bce27 Backport r152616.
svn path=/branches/mono-2-6/mcs/; revision=152619
2010-02-28 02:48:54 +00:00
Marek Habersack 1ca1e19477 Backport of r152600
svn path=/branches/mono-2-6/mcs/; revision=152601
2010-02-27 02:58:27 +00:00
Jonathan Pryor e24a4c48bf * Mono.Documentation/assembler.cs: Allow other apps to get the same
'--format' logic, specifically 'mdoc export-html-webdoc'.
	* Mono.Documentation/webdoc.cs: Allow it to be more "stand-alone".
	  Previously, it would depend upon the system-wide .source files.
	  This is bad, because you might want to generate the 'cache'
	  directory for a different installation, with a different set of
	  .tree/.zip/.source files, and you might not want to replace your own
	  and/or you often forget, as is the case with me.  Instead, allow a 
	  format to be specified for .tree files, and allow additional .source 
	  files to be referenced so that extension methods will be found within
	  the specified sources.  This allows for a "stand-alone" method of 
	  operation w/o depending upon the system-wide .source files.

svn path=/branches/mono-2-6/mcs/; revision=152591
2010-02-26 22:33:16 +00:00
Jonathan Pryor 170e3d2511 * Makefile: Add a System.Core.dll reference; embed monodoc.xml as a
resource.
	* Monodoc/provider.cs: Add a
	  RootTree.LoadTree(string,XmlDocument,IEnumerable<string>) method.
	  This is so 'mdoc export-html-webdoc' doesn't need to rely on the
	  system-wide .source files (allowing execution w/o changing/replacing
	  the system-wide .source files) and so MonoDevelop can support
	  multiple .source files spread throughout the system sanely.
	* Monodoc/ecma-provider.cs: Always add the extension methods contained
	  in the current EcmaHelpSource, instead of implicitly requiring that
	  the current EcmaHelpSource also be contained within
	  RootTree.HelpSources.  This simplifies logic in 'mdoc'.

svn path=/branches/mono-2-6/mcs/; revision=152588
2010-02-26 22:27:00 +00:00
Zoltan Varga c5a5132df0 2010-02-26 Zoltan Varga <[email protected]>
* class.c (get_implicit_generic_array_interfaces): Fix the last change so
	we don't call setup_interface_offsets () for unfinished types.

svn path=/branches/mono-2-6/mono/; revision=152581
2010-02-26 20:31:14 +00:00
Zoltan Varga 41a7ee8380 2010-02-19 Zoltan Varga <[email protected]>
* threads.c (mono_thread_suspend_all_other_threads): Ignore threads which have
	the DONT_MANAGE flag set.

svn path=/branches/mono-2-6/mono/; revision=152578
2010-02-26 20:18:09 +00:00
Robert Jordan 869ea22504 2010-02-26 Robert Jordan <[email protected]>
* tasklets.c (continuation_store): Return from an error condition
	immediately.


svn path=/branches/mono-2-6/mono/; revision=152565
2010-02-26 18:28:27 +00:00
Marek Safar 18ad09bec7 Updated.
svn path=/branches/mono-2-6/mcs/; revision=152547
2010-02-26 12:44:11 +00:00
Marek Safar 0bb2e4785f New test.
svn path=/branches/mono-2-6/mcs/; revision=152546
2010-02-26 12:40:05 +00:00
Zoltan Varga 7e6a8a0d2c 2010-02-26 Zoltan Varga <[email protected]>
* class.c (get_implicit_generic_array_interfaces): Call
	mono_class_setup_interface_offsets () before accessing
	eclass->interface_offsets_count. This only shows up on platforms without IMT for
	some reason.

svn path=/branches/mono-2-6/mono/; revision=152522
2010-02-26 02:52:41 +00:00
Zoltan Varga e0da8891df 2010-02-26 Zoltan Varga <[email protected]>
* Connection.cs: Throw a NotSupportedException if the protocol version doesn't
	support the caught/uncaught flags in an exception modifier.

svn path=/branches/mono-2-6/mcs/; revision=152515
2010-02-26 00:39:34 +00:00
Jérémie Laval cb247e58d0 2010-02-25 Jérémie Laval <[email protected]>
In class/System/System.Threading/:
   * Barrier.cs: Fix NRE with postPhaseAction delegate
   Add post phase triggering when removing participant(s)

svn path=/branches/mono-2-6/mcs/; revision=152512
2010-02-25 23:31:58 +00:00
Geoff Norton fc8ff01ceb 2010-02-25 Geoff Norton <[email protected]>
* wait.c: If any of our handles are shared, we need to do
        a polling wait so we're notified of the signal change.

svn path=/branches/mono-2-6/mono/; revision=152509
2010-02-25 23:23:04 +00:00
Rolf Bjarne Kvinge 891c20ebd4 2010-02-25 Rolf Bjarne Kvinge <[email protected]>
* WebClient_2_1.cs: Emit DownloadProgressChanged events on the correct
	thread too.

svn path=/branches/mono-2-6/mcs/; revision=152473
2010-02-25 15:08:09 +00:00
Zoltan Varga 73fa4e53dc 2010-02-25 Zoltan Varga <[email protected]>
* debugger-agent.c (do_invoke_method): Fix invoking of static methods on vtypes.
	Fixes #582991.

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

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

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

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

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


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

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


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

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

	* ExceptionRequest.cs: Add public properties for them.

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

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

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

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

	* iltests.il.in: Add a test.

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

	Fixes #550968.

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

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

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

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


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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	* TaskItem.cs: Track api changes.

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

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

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

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


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

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

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

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

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

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

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

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


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


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

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

	Fixes #579493.

	Backport of r152024.

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

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

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

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


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


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


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


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



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


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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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


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

	* QueueAccessMode.cs: new enum.

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


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

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

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

	* reflection.c (mono_reflection_get_custom_attrs_info): Ditto.

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

	Fixes #574434.

	Backport of r151093.


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

        Backport of r151074.

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

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

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

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

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


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

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

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

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

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

	* LCTest.cs: New.

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

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

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

	* WriteLinesToFileTest.cs: New.

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

	* junk.txt: New.

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

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

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

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

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

	* LC.cs: New.

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

	backport of r150889.

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


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

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

	backport of r150888.


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

	backport of r150888.

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


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

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

	backport of r150887.


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

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

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

	* EnumMirror.cs: Use it.

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

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

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

	* TypeMirror.cs (IsEnum): Implement.

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

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

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

	Code is contributed under MIT/X11 license.

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

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

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

	Code is contributed under MIT/X11 license.


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

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

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


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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	* AssemblyLoadInfo.cs: Fix warning.

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

	* CreateItemTest.cs (TestItemsWithWildcards): New.

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

	* TaskBatchingTest.cs: Add new tests for batching.

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

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

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

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

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

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

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

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

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

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

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

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

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

	* ResolveAssemblyReference.cs: Fix warnings.

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

	* ResolveAssemblyReference.cs: Log only unique conflict warnings.

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

	* mono-error.h: Add MONO_ERROR_NOT_VERIFIABLE.

	* mono-error.c: Implement mono_error_set_not_verifiable.

	Backport of r150306.


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

	Backport of r150304.

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


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

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

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

	Backport of r150303.


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

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

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

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

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


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


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


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


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


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


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

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

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

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


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

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

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

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


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


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


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

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


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

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


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

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


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


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


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

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

	Fixes #572660.

	Backport of r150008.

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


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

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

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

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


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

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


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

	Fixes #571863.

	Backport of r149969.



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


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

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

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

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


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

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

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

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

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


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

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

	Backport of r149808.


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

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

	* verify-internals.h: Ditto.

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

	Fixes #571460.

	Backport of r149776.

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


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


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

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

	Fixes #569579.

	Backport of r149760.


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

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

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

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

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

	* exceptions.cs: Add a test.

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

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


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


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

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


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

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


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

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

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

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

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

	Fixes #569544.

	Backport of r149575.


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

	backport r149571.

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

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

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

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


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


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


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

	backport r149460.

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


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

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

	Backport of r149414.

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


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

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

	* class.c: Add mono_class_inflate_generic_class_checked.

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

	Backport of r149413.


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

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

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

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

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

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


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

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


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

	Backport r149356.


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

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

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

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

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

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

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

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

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


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

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


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


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

	* generics.cs: Add a test.

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

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

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

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


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


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

	backport r149241.

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


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


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

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

	backport r149175.

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

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

	backport r149175.

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

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

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

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

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

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


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

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

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

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

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


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

	* DateTimeConstantAttribute.cs: Add internal Ticks property.

	Backport of r149083.

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

	* DateTimeConstantAttribute.cs: Add internal Ticks property.

	Backport of r149083.

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

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

	Backport of r149083.


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

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

	Backport of r149053.

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

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

	Backport of r149053.


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


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

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

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

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

	Fixes #560196.

	Backport of r149045.


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

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

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

	Fixes #560327.

	Backport of r149031.

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


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

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

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

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

	Fixes #567548.

	Backport of r149028.


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

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

	backport r149020.

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


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

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

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

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

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

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

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


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

	Fixes #567676.

	Backpor of r148948.

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


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

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

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

	Backport of r148941.

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

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

	Fixes #566294

	Backport of r148941.


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


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

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

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

	Fixes #562320.

	Backport of r148911.

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


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

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

	* class.c (mono_class_setup_properties): Ditto.

	* class.c (mono_class_setup_events): Ditto.

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

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

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

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

	Backport of r148905.

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

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

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

	Backport of r148905.


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

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

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

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

	Backport of r148904.


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

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

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

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

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


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


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

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

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

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

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

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

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

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

	Fixes #566295.

	Backport of r148828.


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


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

	* configure.in: Add an LLVM_CFLAGS automake variable.

In mono/mini:

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

	* Makefile.am (AM_CFLAGS): Include LLVM_CFLAGS.

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

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


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

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

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

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

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

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

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

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

In Test/System:

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

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

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

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

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

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

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

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

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


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

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

	Fixes #564379.

	Backport of r148694.


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

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

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

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

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

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

	Fixes the IPY+Chiron test case.


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

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


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

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

	Fixes #565127.

	Backport of r148575.


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

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

	Backport of r148570.


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

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

	Backport of r148504.

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


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

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

	Backport of r148503.


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

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

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

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

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

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

	Backport of r148502.


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

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

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

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

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

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

	Fixes #561724

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

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




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


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

	Code contributed under MIT/X11 license.

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

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

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

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

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

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

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

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

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

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



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

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


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

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

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

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

	* object.c (mono_ldstr): Ditto.

	Fixes #561943.

	Backport of r147941.


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

	backports r147934.


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

	backports r147932.


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

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

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

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

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

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

	backport r147482.


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


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


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

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

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

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

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

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

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

	Backport of r147797.


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

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

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

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

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

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

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

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


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

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

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

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

	Code is contributed under MIT/X11 license.

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

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

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


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


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

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

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

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


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


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


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

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

	* SortOrder.cs: Add enum.

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

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

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

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

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

	* exceptions.cs: Add a test.

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

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

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

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

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

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

	Fixes #559906.

	Backport of r147557.


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

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

	* mini.c (mono_print_method_from_ip): Use mini_jit_info_table_find.

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

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

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


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


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

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

	Fixes #559913.

	Backport of r147485.

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


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

	Fixes #559910.

	Backport of r147472.

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


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

	Fixes #553450.

	Backport of r147464.

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


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

	Fixes #558042.

	Backport of r147455.


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


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


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

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

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

	* class.c (inflate_generic_context): Ditto.

	* loader.c (method_from_methodspec): Ditto.

	Fixes #558230.

	Backport of r147436.

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


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

	* class.c (mono_class_create_from_typespec): Ditto.

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

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

	Fixes #558184.

	Backport of r147427.

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


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

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

	* verify.c (verify_delegate_compatibility): Ditto.

	* verify.c (do_newobj): Ditto.

	Fixes #558046.

	Backport of r147422.


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


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

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

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

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

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

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

	Fixes #558465.

	Backport of r147261.

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


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

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

	Fixes #558594.

	Backport of r147259.

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


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

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

	Backport of r147245.

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


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

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

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

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

	Backport of r147244.

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


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


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


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


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

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

	Backport of r147220.


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

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

	Fixes #558522.

	Backport of r147219.

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


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

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

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

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

	Backport of r147218.

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


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

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

	Fixes #558741.

	Backport of r147214.


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


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


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


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


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


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

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

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

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

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

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

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

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

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

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

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

	* mini.h: Bump AOT file format version.

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

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


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


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


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


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

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

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

	Fixes #553428.

	Backport of r146970.


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

	Fixes #553306.

	Backport of r146937.

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


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

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

	Fixes #558124.

	Backport of r146936.

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

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

	* mono-error.c: Same.

	Backport of r146936.


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

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

	backport 146925.

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

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

	backport 146925.

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


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

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

	backport r146914.

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

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

	backport r146914.

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

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


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

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

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

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

	Fixes #553333.

	Backport of r146876.

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


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

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

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

	Fixes #553304.

	Backport of r146875.


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

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

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

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

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

	Code is contributed under MIT/X11 license.


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

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


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

	backport r146834.


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

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

	backport r146831.

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

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

	backport r146831.

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

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

	backport of r146825.

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

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

	backport of r146825.

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

	backport of r146823.


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

	backport r146821.


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

	backport r146815.

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

	backport r146814.

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

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

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

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

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

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

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

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

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

	* generics.cs: Add a test.

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

	* basic.cs: Add a test.

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

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

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

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


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

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

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

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


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

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

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

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

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

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

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

	This commit is licensed under the MIT X11 license.

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


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


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

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


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

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


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

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

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

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

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

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

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

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

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

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

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

        Code contributed under MIT/X11 license.


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

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

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

	* Connection.cs: Bump protocol version.

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

		* ListView.cs: The location of the items should be computed on the fly
		in virtual mode - that decreased speed overall, but reduces the load
		time.that decreased speed overall, but reduces the load time. Also,
		handle the cases where we were using data structures we don't need to
		use/create for this mode.
		Fixes part of #467418.

		2009-09-28  Carlos Alberto Cortez <[email protected]>

		* ListView.cs: Tile view and VirtualMode can't be applied together.
		Patch by Stephen Robinson <[email protected]>.

		2009-09-28  Carlos Alberto Cortez <[email protected]>

		* ListView.cs: When calculating the layout for Details view, don't ask
		for the items *at all* in case we are in virtual mode. This should
		re-enable the proper behaviour of virtual mode.


svn path=/branches/mono-2-6/mcs/; revision=146038
2009-11-12 13:50:29 +00:00
Jb Evain 1c21cdd969 2009-11-12 Jb Evain <[email protected]>
* Aes.cs: avoid using an hardcoded assembly version for System.Core.


svn path=/branches/mono-2-6/mcs/; revision=146034
2009-11-12 12:34:20 +00:00
Jb Evain 1261df67de 2009-11-12 Jb Evain <[email protected]>
* Consts.cs.in: add a AssemblySystem_Core constant.


svn path=/branches/mono-2-6/mcs/; revision=146032
2009-11-12 12:33:00 +00:00
Geoff Norton d5fc6487e8 2009-11-11 Geoff Norton <[email protected]>
* VirtualMachineManager.cs: Refactor the APIs to have async methods.
	Remove a bunch of Listen overloads that are pointless.  Refactor
	Launch to take a ProcessStartInfo instead of string arguments.

svn path=/branches/mono-2-6/mcs/; revision=145991
2009-11-11 22:35:31 +00:00
Sebastien Pouliot 039addd678 2009-11-11 Sebastien Pouliot <[email protected]>
* Console.cs: Reduce duplication between OpenStandard[Input|
	Output|Error] and, for Moonlight, don't return a NullStream if
	security is disabled (e.g. when smcs executes)

	r: alan


svn path=/branches/mono-2-6/mcs/; revision=145957
2009-11-11 15:06:11 +00:00
Andrew Jorgensen b03bdf690a spec file fixes
svn path=/branches/mono-2-6/mono/; revision=145898
2009-11-10 23:18:21 +00:00
Geoff Norton 89feb05d76 Add ReaderWriterLockSlim to monotouch
svn path=/branches/mono-2-6/mcs/; revision=145891
2009-11-10 22:47:32 +00:00
Geoff Norton e214896cef restore iso-8859-1 to monotouch
svn path=/branches/mono-2-6/mcs/; revision=145880
2009-11-10 20:50:44 +00:00
Geoff Norton 664192081a cant use net_2_1_bootstrap as it does not include the pinvoke callback attribute
svn path=/branches/mono-2-6/mcs/; revision=145879
2009-11-10 20:50:17 +00:00
Rodrigo Kumpera a0abbe81d7 In .:
* reflection.c (mono_image_module_basic_init): Handle exceptions correctly.

	Backport of r145798.

2009-11-10  Rodrigo Kumpera  <[email protected]>

svn path=/branches/mono-2-6/mono/; revision=145857
2009-11-10 17:28:40 +00:00
Rodrigo Kumpera e72be115d0 In .:
2009-11-10  Rodrigo Kumpera  <[email protected]>
    
	* object-internals.h: Change signature for mono_string_to_utf8_image.
	* object.c (mono_string_to_utf8_image): Change signature to take a MonoError
	argument.

	* reflection.c: Take care of mono_string_to_utf8_image change and avoid raising
	exceptions due to mono_string_to_utf8.

	Backport of r145797.


svn path=/branches/mono-2-6/mono/; revision=145855
2009-11-10 17:27:16 +00:00
Rodrigo Kumpera 48017d25b5 In metadata:
* object-internals.h: Change signature for mono_string_to_utf8_mp.

    * object.c (mono_remote_class): Make sure all resources are released before
    raising an exception.

    * object.c (mono_print_unhandled_exception): Avoid raising an exception.

	Backport of r145796.

2009-11-09  Rodrigo Kumpera  <[email protected]>

svn path=/branches/mono-2-6/mono/; revision=145854
2009-11-10 17:17:52 +00:00
Rodrigo Kumpera 5a192ac3f9 In .:
* mono-perfcounters.c (network_get_impl): Change variable initialization
     ordering to fix potential memory leak in case of exceptions.
 
     * mono-perfcounters.c (mono_perfcounter_create): Properly handle badly
     encoded strings.
	Backport of r145795. 

2009-11-09  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=145849
2009-11-10 16:49:07 +00:00
Rodrigo Kumpera b22c806052 In .:
2009-11-09  Rodrigo Kumpera  <[email protected]>

    * file-io.c (ves_icall_System_IO_MonoIO_GetFileSystemEntries): Change
    variable initialization ordering to fix potential memory leak in case
    of exceptions.

	Backport of r145794.


svn path=/branches/mono-2-6/mono/; revision=145848
2009-11-10 16:44:33 +00:00
Rodrigo Kumpera 2673f937de In .:
* appdomain.c: Fix shadow path code to better deal with exceptions.

	Backport of r145658.

2009-11-10  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=145847
2009-11-10 16:43:06 +00:00
Rodrigo Kumpera 4589a8c5fb In .:
* appdomain.c: Use checked version of mono_string_to_utf8 to avoid raising an
    exception in the middle of the runtime code.

	Backport of r145657.

2009-11-10  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=145837
2009-11-10 14:23:39 +00:00
Rodrigo Kumpera 2a0e0be91f In .:
* icall.c (ves_icall_System_Environment_InternalSetEnvironmentVariable): Don't
    leak memory with broken envvar value.

	Backport of r145656.

2009-11-10  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=145836
2009-11-10 14:18:13 +00:00
Marek Habersack 9b5480fbf4 Backport of r145831
svn path=/branches/mono-2-6/mcs/; revision=145832
2009-11-10 13:49:25 +00:00
Rodrigo Kumpera a206154c18 In .:
2009-11-10  Rodrigo Kumpera  <[email protected]>

	* object-internals.h: Add mono_string_to_utf8_checked.

	* object.c: Implement mono_string_to_utf8_checked.

	Backport of r145539.


svn path=/branches/mono-2-6/mono/; revision=145830
2009-11-10 13:38:30 +00:00
Rodrigo Kumpera eb657d1b71 In .:
2009-11-10 Rodrigo Kumpera  <[email protected]>
 
     * mono-error-internals.h: Add mono_error_set_argument and mono_error_raise_exception.
 
     * mono-error.h: Add new MONO_ERROR_ARGUMENT constant for
     ArgumentException.
 
     * mono-error.c: Implement mono_error_set_argument, mono_error_raise_exception.
 
     * mono-error.c (mono_error_prepare_exception) Init error_out at the beginning. Add support
     for MONO_ERROR_ARGUMENT.

	Backport of r145538.


svn path=/branches/mono-2-6/mono/; revision=145828
2009-11-10 13:31:37 +00:00
Marek Habersack 216c827113 Backport of r145824
svn path=/branches/mono-2-6/mcs/; revision=145825
2009-11-10 10:42:00 +00:00
Gonzalo Paniagua Javier b22d833768 2009-11-10 Gonzalo Paniagua Javier <[email protected]>
* Socket_2_1.cs: throw when shutting down a socket that is not
	connected. Don't linger if the socket is not connected.


svn path=/branches/mono-2-6/mcs/; revision=145808
2009-11-10 05:56:07 +00:00
Zoltan Varga b33b11f9d5 2009-11-10 Zoltan Varga <[email protected]>
* VirtualMachineManager.cs (Launch): Close the listening socket instead of
	shutting it down since Shutdown throws on exception on non-connected sockets
	in ms.net.

svn path=/branches/mono-2-6/mcs/; revision=145804
2009-11-10 04:50:37 +00:00
Zoltan Varga 5ed2d7937b 2009-11-06 Zoltan Varga <[email protected]>
* debugger-agent.c (resume_from_signal_handler): New helper function extracted
	from the single step/breakpoint handlers. Add a FIXME.

svn path=/branches/mono-2-6/mono/; revision=145791
2009-11-10 01:58:43 +00:00
Zoltan Varga 7dcae3becc 2009-11-10 Zoltan Varga <[email protected]>
* exceptions-arm.c (mono_arch_get_call_filter_full): Update after the
	LDMIA->LDM macro name change.

svn path=/branches/mono-2-6/mono/; revision=145789
2009-11-10 01:00:41 +00:00
Zoltan Varga eb92a1217d 2009-11-10 Zoltan Varga <[email protected]>
* arm/arm-codegen.h: Fix the names of the LDMIA/STMIA macros, they don't actually
	update the base register.

svn path=/branches/mono-2-6/mono/; revision=145788
2009-11-10 01:00:32 +00:00
Geoff Norton 9f97213017 Support building on 10.6
svn path=/branches/mono-2-6/mono/; revision=145785
2009-11-09 23:45:33 +00:00
Chris Toshok e0eee654e3 2009-11-09 Chris Toshok <[email protected]>
* Console.cs (OpenStandardError,OpenStandardOut,OpenStandardInput):
        for NET_2_1 && !MONOTOUCH, disable these streams unless a debugger
        is attached, or unless the MOONLIGHT_ENABLE_CONSOLE environment
        variable is defined.

        reviewed: alan
        


svn path=/branches/mono-2-6/mcs/; revision=145773
2009-11-09 21:17:17 +00:00
Marek Safar dc46c4ab7e Fixed dlr dist
svn path=/branches/mono-2-6/mcs/; revision=145768
2009-11-09 20:48:30 +00:00
Stephen Shaw 6ab9b9616d Added lc to spec file
svn path=/branches/mono-2-6/mono/; revision=145757
2009-11-09 18:16:16 +00:00
Stephen Shaw dcf3a9eceb add gcc-c++ dep (ajorg)
svn path=/branches/mono-2-6/mono/; revision=145753
2009-11-09 17:37:42 +00:00
Jonathan Pryor 63cd0a2589 * src/DbLinq.MySql/MysqlDataContext.cs: Delete.
* System.Data.Linq.dll.sources: Use src/DbLinq.MySql/MySqlDataContext.cs; 
	  fixes the build for case-insensitive filesystems.

svn path=/branches/mono-2-6/mcs/; revision=145749
2009-11-09 17:10:37 +00:00
Marek Habersack 2c23326622 Backport of r145740
svn path=/branches/mono-2-6/mcs/; revision=145741
2009-11-09 14:21:28 +00:00
Marek Habersack 52bff1dfe0 Backport of r145735
svn path=/branches/mono-2-6/mcs/; revision=145736
2009-11-09 13:36:48 +00:00
Marek Habersack a53f1b85a1 Backport of r145727
svn path=/branches/mono-2-6/mcs/; revision=145728
2009-11-09 12:31:23 +00:00
Marek Habersack 6c93b0c613 Backport r145721
svn path=/branches/mono-2-6/mcs/; revision=145722
2009-11-09 11:46:58 +00:00
Jb Evain 551c3e365a bring XslCompiledTransform to MonoTouch
svn path=/branches/mono-2-6/mcs/; revision=145712
2009-11-09 10:33:21 +00:00
Zoltan Varga 61715e57c9 2009-11-09 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_allocate_vars): Fix the previous change by passing
	&align to mini_type_stack_size_full ().

svn path=/branches/mono-2-6/mono/; revision=145700
2009-11-09 02:04:12 +00:00
Zoltan Varga ea48e253e3 2009-11-08 Zoltan Varga <[email protected]>
* mini-arm.c: Compute the stack space used by arguments using
	mini_type_stack_size_full ().

svn path=/branches/mono-2-6/mono/; revision=145686
2009-11-08 22:37:29 +00:00
Zoltan Varga 46692f3796 2009-11-07 Zoltan Varga <[email protected]>
* driver.c (mono_jit_parse_options): New public API function to parse options
	as done by the runtime executable.

svn path=/branches/mono-2-6/mono/; revision=145654
2009-11-07 22:10:24 +00:00
Zoltan Varga 8ad7a5d34a 2009-11-07 Zoltan Varga <[email protected]>
* debugger-agent.c (buffer_add_cattrs): Fix reading an uninitialized variable
	when handling named arguments.

svn path=/branches/mono-2-6/mono/; revision=145652
2009-11-07 21:41:37 +00:00
Marek Safar e267e170ed 2009-11-07 Marek Safar <[email protected]>
A fix for bug #553465

	* expression.cs: Fixed mixed version of expression tree anonymous
	type.


svn path=/branches/mono-2-6/mcs/; revision=145646
2009-11-07 10:08:44 +00:00
Zoltan Varga 42f310d152 Add missing files.
svn path=/branches/mono-2-6/mcs/; revision=145642
2009-11-07 08:51:47 +00:00
Zoltan Varga 3dd4322874 2009-11-07 Zoltan Varga <[email protected]>
* Makefile (net_2_0_dirs): Add System.Data.Services.

svn path=/branches/mono-2-6/mcs/; revision=145634
2009-11-07 02:47:46 +00:00
Zoltan Varga 1136d59fc0 2009-11-07 Zoltan Varga <[email protected]>
*: Move .cs files to the System.Data.Services subdir to match their namespace,
	move tests to 'Test' from 'Tests', add Makefile.

svn path=/branches/mono-2-6/mcs/; revision=145633
2009-11-07 02:47:39 +00:00
Zoltan Varga b6d22a08d7 Added System.Data.Services sources
svn path=/branches/mono-2-6/mcs/; revision=145632
2009-11-07 02:47:23 +00:00
Jonathan Pryor f3194d60b5 * Makefile: re-enable the tests. They were disabled in r137153
because they weren't compiling, which was because System.Data.Linq
	  wasn't listing sqlmetal_net_2_0 as a friend assembly.  (Why this
	  built before I couldn't tell you...)  Fixed in latest S.D.L.

svn path=/branches/mono-2-6/mcs/; revision=145617
2009-11-06 21:51:49 +00:00
Jonathan Pryor 6d2aa53461 * src/**/*: Sync with DbLinq r1265. This fixes sqlmetal (it shouldn't
generate constructors referring to IVendor), enhances query support
	  so that extension methods can be used within 'select' blocks,
	  various FirebirdSQL fixes, etc.

svn path=/branches/mono-2-6/mcs/; revision=145616
2009-11-06 21:51:21 +00:00
Geoff Norton 3b38f04754 backport missing file for monotouch build
svn path=/branches/mono-2-6/mcs/; revision=145602
2009-11-06 16:59:31 +00:00
Marek Safar 1ad7c28cc7 2009-11-06 Marek Safar <[email protected]>
A fix for bug #553031

	* linq.cs, expression.cs, class.cs, cs-parser.jay: Initialize
	expression tree version of anonymous type with members declaration.


svn path=/branches/mono-2-6/mcs/; revision=145585
2009-11-06 13:21:30 +00:00
Marek Safar e7c6847d8c Updated.
svn path=/branches/mono-2-6/mcs/; revision=145583
2009-11-06 13:15:43 +00:00
Zoltan Varga e06b86c2e7 2009-11-06 Zoltan Varga <[email protected]>
* mini-arm.c debugger-agent.c: Android changes from Koushik K. Dutta
	([email protected]).

svn path=/branches/mono-2-6/mono/; revision=145575
2009-11-06 09:15:20 +00:00
Zoltan Varga 442a5c1927 2009-11-06 Zoltan Varga <[email protected]>
* mini-arm.c (handle_thunk): Add a domain argument to control the domain
	where the thunk memory should be allocated from. Fixes appdomain unloading
	on arm.

svn path=/branches/mono-2-6/mono/; revision=145570
2009-11-06 08:18:18 +00:00
Zoltan Varga af8b26cfce 2009-11-06 Zoltan Varga <[email protected]>
* mini-arm.c exceptions-arm.c: Make ctx->regs map directly to the 16 hardware
	registers, instead of r4..r11,ip,lr. Make restore_context () restore r0..r3 too.

svn path=/branches/mono-2-6/mono/; revision=145564
2009-11-06 06:03:03 +00:00
Geoff Norton aedff42490 2009-11-05 Geoff Norton <[email protected]>
* HttpsTransportBindingElement.cs: Implement basic https transport
	binding support for Moonlight and MonoTouch

svn path=/branches/mono-2-6/mcs/; revision=145558
2009-11-06 04:18:49 +00:00
Geoff Norton ac13a98236 2009-11-05 Geoff Norton <[email protected]>
* ClientRuntimeChannel.cs: Support OperationContext in async calls
        as well

svn path=/branches/mono-2-6/mcs/; revision=145557
2009-11-06 04:18:29 +00:00
Zoltan Varga 94a0a08a5a 2009-11-05 Rodrigo Kumpera <[email protected]>
* debugger-agent.c: Fix windows build.

svn path=/branches/mono-2-6/mono/; revision=145553
2009-11-05 22:19:03 +00:00
Zoltan Varga 8e89b3a0ca 2009-11-05 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Don't allow OP_SEQ_POINT in
	AOT, as it is not implemented yet.

	* mini-x86.c (mono_arch_output_basic_block): Ditto.

svn path=/branches/mono-2-6/mono/; revision=145552
2009-11-05 22:07:03 +00:00
Zoltan Varga 8c45bb18fe 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c (debugger_thread): Call mono_set_is_debugger_attached ()
	after the client connects/disconnects.

svn path=/branches/mono-2-6/mono/; revision=145551
2009-11-05 22:06:56 +00:00
Zoltan Varga a9a8ebac53 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c: Add an 'onthrow' option to start the debugger agent
	when an exception of a given type is thrown.

svn path=/branches/mono-2-6/mono/; revision=145550
2009-11-05 22:06:49 +00:00
Zoltan Varga b1769245b8 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c: Add a 'onuncaught' option to start the debugger agent
	only on an uncaught exception.

	* mini-exceptions.c: Notify the debugger agent on an uncaught exception.

svn path=/branches/mono-2-6/mono/; revision=145549
2009-11-05 22:06:42 +00:00
Zoltan Varga 404fd5363d 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c: Add a 'launch' option.

svn path=/branches/mono-2-6/mono/; revision=145548
2009-11-05 22:06:35 +00:00
Zoltan Varga b97e620cd1 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c: Add a 'timeout' option.

svn path=/branches/mono-2-6/mono/; revision=145547
2009-11-05 22:06:28 +00:00
Zoltan Varga d8b6135f69 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c: Implement the 'server' and 'suspend' options supported by
	the JDWP agent.

svn path=/branches/mono-2-6/mono/; revision=145546
2009-11-05 22:06:21 +00:00
Zoltan Varga f8dc6c2e12 2009-11-04 Zoltan Varga <[email protected]>
* mini-arm.c: Fix the arm build.

svn path=/branches/mono-2-6/mono/; revision=145545
2009-11-05 22:06:05 +00:00
Zoltan Varga 7053970b84 2009-11-04 Gonzalo Paniagua Javier <[email protected]>
* debugger-agent.c: defer including mono-mutex.h until we know the
	agent is supported.

svn path=/branches/mono-2-6/mono/; revision=145544
2009-11-05 22:05:48 +00:00
Zoltan Varga 082692d778 2009-11-04 Jonathan Chambers <[email protected]>
* debugger-agent.c: Changes to build on windows. Use mono-mutex instead
	of pthreads directly.

	* mini.c (mono_sigfpe_signal_handler): Changed signature of Windows
	exception handlers. Pass info argument.

	* mini.h: Adjust signatures of soft debugger functions to pass void*
	instead of siginfo_t. Adjust SIG_HANDLER_SIGNATURE on Windows.

	* mini-amd64.c (mono_arch_is_single_step_event): Adjust signature to pass void*
	instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
	(mono_arch_is_breakpoint_event): Adjust signature to pass void*
	instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.

	* mini-amd64.h: Adjust MonoW32ExceptionHandler signature.

	* mini-x86.c (mono_arch_is_single_step_event): Adjust signature to pass void*
	instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
	(mono_arch_is_breakpoint_event): Adjust signature to pass void*
	instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.

	* mini-x86.h: Adjust MonoW32ExceptionHandler signature.

	* exceptions-x86.c: Adjust W32_SEH_HANDLE_EX for new signature.

	* exceptions-amd64.c: Adjust W32_SEH_HANDLE_EX for new signature.

	* mono-semaphore.h: Skeleton implementation for Windows.

	Code contributed under MIT/X11 license.

svn path=/branches/mono-2-6/mono/; revision=145543
2009-11-05 22:05:28 +00:00
Sebastien Pouliot af1d4ea013 2009-11-05 Sebastien Pouliot <[email protected]>
* class.c: When CoreCLR is enabled don't call mono_init_com_types
	if MONO_CLASS_IS_IMPORT return true unless the type reside in 
	platform (trusted) code. Instead we return a TypeLoadException to
	be thrown later. This is the exception thrown by Silverlight 2 if
	a type, inside application (user) code is marked with [ComImport]
	[Backport r145534]


svn path=/branches/mono-2-6/mono/; revision=145535
2009-11-05 21:19:25 +00:00
Zoltan Varga f65ba83e60 2009-11-05 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Diagnostics_Debugger_IsAttached_internal): Call
	mono_is_debugger_attached () too.

	* mono-debug.c (mono_is_debugger_attached): New helper function.
	(mono_set_is_debugger_attached): Ditto.

svn path=/branches/mono-2-6/mono/; revision=145523
2009-11-05 18:11:19 +00:00
Rodrigo Kumpera ea4b86c45a In metadata:
* class.c: Add missing check for load errors after every
	call to mono_class_setup_fields

	Fixes #552282.

	Backport of r145501.

2009-11-05  Rodrigo Kumpera  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=145516
2009-11-05 17:53:36 +00:00
Rolf Bjarne Kvinge 0eb5a45672 2009-11-05 Rolf Bjarne Kvinge <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Add Consts.cs, Locale.cs and
	MonoTODOAttribute.cs to the build to fix ambiguous references to
	those types in corlib and System.dll. This way we'll use our own
	types.

svn path=/branches/mono-2-6/mcs/; revision=145487
2009-11-05 15:58:23 +00:00
Rodrigo Kumpera 7d6bcfe942 In .:
2009-11-05  Rodrigo Kumpera  <[email protected]>

	* metadata.c: Change event table schema to use TDOR for event type
	as this is what it's meant to be.

	* metadata.c (mono_metadata_compute_size): Change MONO_TABLE_ASSEMBLYPROCESSOR
	to MONO_TABLE_ASSEMBLYREFPROCESSOR, which is table that has a MONO_MT_TABLE_IDX
	entry.

	* metadata.c (mono_metadata_compute_size): Trim MT_TABLE_IDX of code that no
	longer makes sense: remove MONO_TABLE_EVENT and remove checks for non-existent
	rows in MONO_TABLE_GENERICPARAM.

	Fixes #552289.

	Backport of r145478.


svn path=/branches/mono-2-6/mono/; revision=145480
2009-11-05 13:57:06 +00:00
Rolf Bjarne Kvinge 4397219217 In mono/metadata:
2009-11-05  Rolf Bjarne Kvinge  <[email protected]>

	* culture-info-tables.h: regenerated.

In tools/locale-builder:
2009-11-05  Rolf Bjarne Kvinge  <[email protected]>

	* Driver.cs: Generate locale data for neutral cultures too. Moonlight
	requires it.

svn path=/branches/mono-2-6/mono/; revision=145468
2009-11-05 10:06:32 +00:00
Rolf Bjarne Kvinge e4c4eaa42c 2009-11-04 Rolf Bjarne Kvinge <[email protected]>
* CultureInfo.cs: Allow neutral cultures, and fix zh-Hans/zh-Hant
	- they're stored internally as zh-chs/zh-cht, and only visible as
	zh-Hans/zh-Hant. zh-CHS/zh-CHS are invalid cultures in SL.

svn path=/branches/mono-2-6/mcs/; revision=145465
2009-11-05 09:34:11 +00:00
Zoltan Varga 59fb647a1f 2009-11-05 Zoltan Varga <[email protected]>
* VirtualMachineManager.cs (Listen): Resurrect the old listen method.

svn path=/branches/mono-2-6/mcs/; revision=145460
2009-11-05 05:59:20 +00:00
Geoff Norton e87c31e9a9 fix the moonlight/mt builds
svn path=/branches/mono-2-6/mcs/; revision=145457
2009-11-05 04:59:55 +00:00
Zoltan Varga a2a81a55b3 2009-11-05 Zoltan Varga <[email protected]>
* VirtualMachineManager.cs (Connect): New method to connect to a runtime
	listening at the provided address.

svn path=/branches/mono-2-6/mcs/; revision=145454
2009-11-05 04:07:26 +00:00
Zoltan Varga f165c2b439 * src/gptrarray.c: implement g_ptr_array_remove_index_fast
* src/glib.h: fix g_ptr_array_remove_index_fast declaration
* test/ptrarray.c: new tests

2009-10-15 Andreia Gaita <[email protected]>

svn path=/branches/mono-2-6/mono/; revision=145452
2009-11-05 03:13:07 +00:00
Gonzalo Paniagua Javier ecff58cc2c 2009-11-04 Gonzalo Paniagua Javier <[email protected]>
* debug-helpers.c: avoid g_strdup() in mono_type_full_name().


svn path=/branches/mono-2-6/mono/; revision=145450
2009-11-05 00:53:54 +00:00
Gonzalo Paniagua Javier 87d2f0b3ff 2009-11-04 Gonzalo Paniagua Javier <[email protected]>
* aot-compiler.c: don't leak the value returned from
	mono_type_full_name().


svn path=/branches/mono-2-6/mono/; revision=145448
2009-11-05 00:36:48 +00:00
Zoltan Varga 832835b220 2009-11-05 Zoltan Varga <[email protected]>
* debugger-agent.c (set_breakpoint): Emit a log message.

svn path=/branches/mono-2-6/mono/; revision=145444
2009-11-05 00:21:19 +00:00
Rodrigo Kumpera be4a4d84ad In .:
* verify.c: Replace calls to mono_class_inflate_generic_type with
	mono_class_inflate_generic_type_checked. Fixes #480005.

	Backport of r144759 and r145284.

2009-11-04  Rodrigo Kumpera  <[email protected]>

svn path=/branches/mono-2-6/mono/; revision=145425
2009-11-04 20:25:15 +00:00
Rodrigo Kumpera b50b26823e In .:
2009-11-04  Rodrigo Kumpera  <[email protected]>
 
     * class-internals.h: Change signature of mono_class_inflate_generic_type_with_mempool to take
     a MonoError parameter.
 
     * class-internals.h: Add new mono_class_inflate_generic_type_checked version that can does proper error handling.
 
     * class.c (inflate_generic_type): Add a MonoError parameter. Don't assert on error, use new mono error machinery.
 
     * class.c (mono_class_inflate_generic_type_with_mempool): Add new MonoError parameter.
 
     * class.c, generics-sharing.c: Changes to handle mono_class_inflate_generic_type_with_mempool new signature.

	Backport of r144688 and r144755.


svn path=/branches/mono-2-6/mono/; revision=145424
2009-11-04 20:24:08 +00:00
Sebastien Pouliot 607df4fed0 2009-11-04 Sebastien Pouliot <[email protected]>
* string-icalls.c|h: Remove string internal calls that are not 
	used anymore by the class libraries.
	* icall.c: Remove System_Reflection_FieldInfo_internal_from_handle
	which is not used in the class librairies.
	* icall-def.h: Update tables.
	[Backport r145416]


svn path=/branches/mono-2-6/mono/; revision=145417
2009-11-04 19:34:06 +00:00
Rodrigo Kumpera ec0d78aa47 In .:
2009-11-04  Rodrigo Kumpera  <[email protected]>

	* reflection.c (fieldref_encode_signature): If field_image is NULL then
	the token is already properly encoded. Fixs 4.0 build.

	Backport of r145396.


svn path=/branches/mono-2-6/mono/; revision=145412
2009-11-04 19:11:47 +00:00
Rodrigo Kumpera f50e76c580 In .:
2009-11-04  Rodrigo Kumpera  <[email protected]>

	- Add kumpera's mono-error stuff to hopefully fix the build.

	Backport of r144696 by Jonathan Pobst  <[email protected]>


svn path=/branches/mono-2-6/mono/; revision=145411
2009-11-04 18:23:58 +00:00
Rodrigo Kumpera 740935759d In .:
2009-11-04 Rodrigo Kumpera  <[email protected]>

    * mono-error.c, mono-error.h, mono-error-internal.h: New error handling
    structures and functions.

    * Makefile.am: Add new files.


svn path=/branches/mono-2-6/mono/; revision=145410
2009-11-04 18:18:19 +00:00
Zoltan Varga ab2b9ae132 2009-11-04 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Applied patch from Kornél Pál
	<[email protected]>. Enable dolt on cygwin.

svn path=/branches/mono-2-6/mono/; revision=145400
2009-11-04 14:39:13 +00:00
Rolf Bjarne Kvinge c1f54f2585 2009-11-04 Rolf Bjarne Kvinge <[email protected]>
* locales.c (construct_number_format): Check if the number index is
	valid before trying to use it, if not, just return.

svn path=/branches/mono-2-6/mono/; revision=145388
2009-11-04 11:40:16 +00:00
Marek Habersack e23eb863d9 Backport of r145381
svn path=/branches/mono-2-6/mcs/; revision=145382
2009-11-04 09:50:30 +00:00
Miguel de Icaza 7f4ab42e17 Backport
svn path=/branches/mono-2-6/mcs/; revision=145372
2009-11-04 05:03:02 +00:00
Gonzalo Paniagua Javier 2af0c5e9dd 2009-11-03 Gonzalo Paniagua Javier <[email protected]>
* Socket_2_1.cs: stop any blocking thread before closing the socket.


svn path=/branches/mono-2-6/mcs/; revision=145370
2009-11-04 03:32:28 +00:00
Zoltan Varga c31c2edae7 2009-11-04 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Bump the threshold for flushing
	debug info to 100 because 10 still slows down gdb too much.

svn path=/branches/mono-2-6/mono/; revision=145368
2009-11-04 02:59:41 +00:00
Rodrigo Kumpera c8b10edc24 2009-11-03 Rodrigo Kumpera <[email protected]>
* reflection.c (fieldref_encode_signature): Add new field_image parameter
	to indicate which assembly to use when resolving a custom-mod.

	Fixes handling of volatile fields used across assemblies as reported in #551513.

	Backport of r145337.


svn path=/branches/mono-2-6/mono/; revision=145362
2009-11-04 02:01:44 +00:00
Geoff Norton 895284ddbd ensure we add punctuation as characters, patch from john moshakis
svn path=/branches/mono-2-6/mcs/; revision=145360
2009-11-04 01:39:41 +00:00
Geoff Norton e1a5fc5aa4 remove confusing debug spew
svn path=/branches/mono-2-6/mcs/; revision=145357
2009-11-04 01:34:05 +00:00
Rodrigo Kumpera eecd4147be In metadata:
2009-11-03  Rodrigo Kumpera  <[email protected]>

	* class.c (mono_class_setup_methods): Only give a slot for virtual methods
	of interfaces. Fixes IKVM.

	* class.c (mono_class_setup_vtable_general): Improve debug spew.

	Backport of r145307.


svn path=/branches/mono-2-6/mono/; revision=145354
2009-11-04 01:25:33 +00:00
Gonzalo Paniagua Javier 496c69e0b2 add new library for windows
svn path=/branches/mono-2-6/mono/; revision=145350
2009-11-04 00:44:52 +00:00
Lluis Sanchez d5bf2c0713 2009-11-04 Lluis Sanchez <[email protected]>
* VirtualMachineManager.cs: Properly redirect standard output.


svn path=/branches/mono-2-6/mcs/; revision=145346
2009-11-03 23:56:20 +00:00
Geoff Norton 27c370a851 oops, backport using too
svn path=/branches/mono-2-6/mcs/; revision=145342
2009-11-03 23:19:23 +00:00
Geoff Norton d942242990 update to the latest listening api
svn path=/branches/mono-2-6/mcs/; revision=145340
2009-11-03 23:12:57 +00:00
Rodrigo Kumpera 9b03c346fd In .:
2009-11-03  Rodrigo Kumpera  <[email protected]>

	* simd-intrinsics.c (load_simd_vreg): Add extra argument to signal if
	the value was loaded from memory.

	* simd-intrinsics.c (simd_intrinsic_emit_setter): Store back to memory if
	the value was loader from there.

	* simd-intrinsics.c (simd_intrinsic_emit_shuffle): Fail correctly for Shuffle
	without constant swizzle.

	Backport of r145283.


svn path=/branches/mono-2-6/mono/; revision=145338
2009-11-03 22:48:19 +00:00
Sebastien Pouliot 67139125d4 2009-11-03 Sebastien Pouliot <[email protected]>
* SocketAsyncEventArgs.cs: Set error back to SocketError.Success
	once CheckEndPoint succeed.
	[Fix bug #549586]
	[Backport r145329]


svn path=/branches/mono-2-6/mcs/; revision=145330
2009-11-03 21:58:33 +00:00
Sebastien Pouliot 59d7404e1b backport r145313
svn path=/branches/mono-2-6/mcs/; revision=145314
2009-11-03 19:18:23 +00:00
Jb Evain b714fcf819 2009-11-03 Jb Evain <[email protected]>
* Mono.Tuner/CheckVisibility.cs: detect a throw_on_visibility_error
	linker parameter to decide whether or not throw when an error
	have been encountered.


svn path=/branches/mono-2-6/mcs/; revision=145303
2009-11-03 17:05:42 +00:00
Jb Evain ccb5ea5924 remove some cwl left over
svn path=/branches/mono-2-6/mcs/; revision=145302
2009-11-03 16:58:40 +00:00
Zoltan Varga 3e2ed5d493 2009-11-03 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_method): Refactor some code into a new helper
	function mono_aot_get_array_helper_from_wrapper ().

	* aot-compiler.c (add_generic_class): Refactor the code a bit, really emit
	array helper methods.

svn path=/branches/mono-2-6/mono/; revision=145299
2009-11-03 16:37:21 +00:00
Sebastien Pouliot de2e6c2658 2009-11-03 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Open up the internals to System.Net.dll (which
	needs Uri.IsDefaultPort) for NET_2_1 and remove it for 
	System.ComponentModel.DataAnnotations (again for NET_2_1)
	[Backport r145294]


svn path=/branches/mono-2-6/mcs/; revision=145295
2009-11-03 16:24:14 +00:00
Zoltan Varga ab3dc22a2c 2009-11-03 Zoltan Varga <[email protected]>
* Makefile: Don't define LIBRARY_PACKAGE so it gets installed normally.

svn path=/branches/mono-2-6/mcs/; revision=145293
2009-11-03 16:18:26 +00:00
Marek Habersack 5a8c7954b9 Backport of r145280
svn path=/branches/mono-2-6/mcs/; revision=145281
2009-11-03 12:13:44 +00:00
Zoltan Varga 45e7a987de 2009-11-03 Zoltan Varga <[email protected]>
* debugger-agent.c: Include netinet/in.h to fix the bsd build.

svn path=/branches/mono-2-6/mono/; revision=145270
2009-11-03 05:31:33 +00:00
Zoltan Varga 285052b5c6 2009-11-03 Zoltan Varga <[email protected]>
* configure.in: Check for netinet/in.h.

svn path=/branches/mono-2-6/mono/; revision=145268
2009-11-03 05:27:28 +00:00
Zoltan Varga be45adc365 2009-11-03 Zoltan Varga <[email protected]>
* debugger-agent.c: Add support for filtering events by assemblies.

svn path=/branches/mono-2-6/mono/; revision=145259
2009-11-03 02:22:45 +00:00
Zoltan Varga 674da8fdc4 2009-11-03 Zoltan Varga <[email protected]>
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Return false if
	the agent is not enabled.

svn path=/branches/mono-2-6/mono/; revision=145258
2009-11-03 02:22:38 +00:00
Zoltan Varga 88e041c46e LAST one!
svn path=/branches/mono-2-6/mono/; revision=145256
2009-11-03 02:22:32 +00:00
Zoltan Varga ebb0681764 one more
svn path=/branches/mono-2-6/mono/; revision=145255
2009-11-03 02:22:27 +00:00
Zoltan Varga dcac4ba42c 2009-11-02 Gonzalo Paniagua Javier <[email protected]>
* exceptions-x86.c: hopefully last change to fix the windows build.
	This one courtesy of Jonathan Chambers.

svn path=/branches/mono-2-6/mono/; revision=145254
2009-11-03 02:22:20 +00:00
Zoltan Varga cb0b45a4e3 2009-11-02 Gonzalo Paniagua Javier <[email protected]>
* debugger-agent.c: remove unused function.

svn path=/branches/mono-2-6/mono/; revision=145253
2009-11-03 02:22:14 +00:00
Zoltan Varga e5e32696e1 2009-11-02 Gonzalo Paniagua Javier <[email protected]>
* debugger-agent.c: add #ifdefs for a few header files.
	* mini-x86.h: disable the soft debugger in windows.
	Step 1 of 2 to make this compile on windows with gcc.

svn path=/branches/mono-2-6/mono/; revision=145252
2009-11-03 02:22:07 +00:00
Zoltan Varga 3fe9da1a6b 2009-11-02 Gonzalo Paniagua Javier <[email protected]>
* configure.in: add a few missing header file checks.

svn path=/branches/mono-2-6/mono/; revision=145251
2009-11-03 02:22:01 +00:00
Zoltan Varga b6a7fc1f8a 2009-07-01 Zoltan Varga <[email protected]>
Merge the soft debugger branch.

	* debugger-agent.h debugger-agent.c: New files containing the soft
	mode debugger module.

	* method-to-ir.c (mono_method_to_ir): Generate OP_SEQ_POINT opcodes
	at the appropriate locations.

	* mini-<ARCH>.c (mono_arch_output_basic_block): Handle OP_SEQ_POINT
	opcode.

	* mini-<ARCH>.c: Add new arch-specific functions to set/clear breakpoints,
	enable/disable single stepping.

	* exceptions-<ARCH>.c (mono_arch_find_jit_info_ext): New stack unwinding api
	which returns all information in a StackFrameInfo structure, and can handle the
	LMF frames added by the debugger.

	* mini-<ARCH>.h (MonoLMFExt): New structure containing additional information
	about an LMF frame.

	* mini-exceptions.c (mono_jit_walk_stack_from_ctx_in_thread): New stack
	walker function which works on a specific thread and passes a StackFrameInfo
	structure to its callback.

	* mini.c (mini_init): Initialize the debugger agent.

	* aot-compiler.c aot-runtime.c: Add soft-debug support.

	* mini-ops.h: Add OP_SEQ_POINT opcode.

	* driver.c (mono_main): Add new '--debugger-agent' option for passing
	arguments to the debugger agent.

svn path=/branches/mono-2-6/mono/; revision=145249
2009-11-03 02:18:50 +00:00
Zoltan Varga d730a668b1 2009-11-03 Zoltan Varga <[email protected]>
* EventRequest.cs (AssemblyFilter): New property to filter
	events based on a list of assemblies.

	* Connection.cs: Add assembly filters to the protocol implementation.

svn path=/branches/mono-2-6/mcs/; revision=145245
2009-11-03 01:55:39 +00:00
Zoltan Varga 9f98591560 2009-11-03 Zoltan Varga <[email protected]>
* Makefile: Move Mono.Debugger.Soft to net_2_0_dirs for 2.6.

svn path=/branches/mono-2-6/mcs/; revision=145238
2009-11-03 01:11:04 +00:00
Zoltan Varga 2335431b38 2009-11-02 Zoltan Varga <[email protected]>
* Makefile: Add Mono.Debugger.Soft.

In Mono.Debugger.Soft:

2009-11-02  Zoltan Varga  <[email protected]>

	* New directory containing the managed interface to the soft-mode debugger.

svn path=/branches/mono-2-6/mcs/; revision=145237
2009-11-03 01:10:25 +00:00
Zoltan Varga 0abadb40a1 2009-11-02 Zoltan Varga <[email protected]>
* debug-mono-symfile.c (check_line): Fix the handling of IL offset 0.

	* threads.c (mono_thread_attach): Call the profiler thread start callback.

	* object-internals.h (_MonoThreadInternal): Add a 'flags' field.

	* threads.c (build_wait_tids): Ignore threads which have the DONT_MANAGE
	flag set.

	* profiler.c: Add new profiler callbacks for runtime invoke.

	* object.c (mono_runtime_invoke): Call the runtime invoke callbacks.

svn path=/branches/mono-2-6/mono/; revision=145233
2009-11-03 00:35:00 +00:00
Sebastien Pouliot 2f3a1b3dbf 2009-11-02 Sebastien Pouliot <[email protected]>
* Thread.cs (set_CurrentUICulture): Delay setting in_currentculture
	to true until after the null check and the return statement.


svn path=/branches/mono-2-6/mcs/; revision=145215
2009-11-02 20:06:05 +00:00
Jb Evain 26cae340b4 2009-11-02 Jb Evain <[email protected]>
* Mono.Tuner/MoonlightAssemblyStep.cs: adapt to the MT linker merge.


svn path=/branches/mono-2-6/mcs/; revision=145210
2009-11-02 16:19:48 +00:00
Jb Evain f21d6449fa 2009-11-02 Jb Evain <[email protected]>
Merge the MonoTouch Linker branch.

	* monolinker.exe.sources: update

	* Mono.Linker/Annotations.cs:
		- add an preserved methods annotation on a type.
		- add an annotation to get the base methods of a method.
		- add an annotation to get the overriden method of a method.

	* Mono.Linker/AssemblyAction.cs:
		add a Delete action to remove an assembly from the output set.

	* Mono.Linker.Steps/TypeMapStep.cs:
		new step that create a map of virtual methods implementation.

	* Mono.Linker.Steps/MarkStep.cs:
		- removal of virtual methods.
		- fix for custom attributes assigning properties and field
			defined in a base type.
		- mark scopes.
		- mark default constructors of types used as a generic instance
			of a generic parameter constrained with new().
		- apply preserved methods.

	* Mono.Linker.Steps/SweepStep.cs: remove unused assemblies.

	* Mono.Linker.Steps/LoadI18nAssemblies.cs:
		fix linking of i18n assemblies.

	* Mono.Linker.Steps/OutputStep.cs:
		fix the copied assemblies when the output directory
		is the same as the origin of the assemblies.

	* Mono.Linker.Steps/ResolveFromXmlStep.cs
	* Mono.Linker.Steps/ResolveFromAssemblyStep.cs
	* Mono.Linker.Steps/BaseStep.cs
	* Mono.Linker/Driver.cs
	* Mono.Linker/Pipeline.cs:
		Cosmetics.


svn path=/branches/mono-2-6/mcs/; revision=145209
2009-11-02 16:19:15 +00:00
Zoltan Varga 3e7cea1232 2009-11-02 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Disable llvm for methods with an lmf here to
	speed things up.

	* mini-llvm.c (mono_llvm_emit_method): Add support for OP_LOCALLOC.

svn path=/branches/mono-2-6/mono/; revision=145197
2009-11-02 12:45:00 +00:00
Zoltan Varga a988a10992 2009-11-02 Zoltan Varga <[email protected]>
* mini.c (mini_init): Avoid using the IMT trampoline in the LLVM case.

	* mini-trampolines.c (mono_llvm_vcall_trampoline): Add a static rgctx trampoline
	if needed.
	(mono_create_llvm_imt_trampoline): New function to create a trampoline which
	sets the IMT argument and makes a virtual call.

	* mini-llvm.c: Enable interface calls using the llvm imt trampoline.

svn path=/branches/mono-2-6/mono/; revision=145192
2009-11-02 12:00:45 +00:00
Zoltan Varga 7e07d13efe Fix the 2.6 build.
svn path=/branches/mono-2-6/mono/; revision=145177
2009-11-01 19:28:01 +00:00
Zoltan Varga b33f8408a7 2009-11-01 Zoltan Varga <[email protected]>
* configure.in: Make the LLVM warning a bit more up-to-date.

svn path=/branches/mono-2-6/mono/; revision=145176
2009-11-01 19:25:06 +00:00
Zoltan Varga ff6805c6d2 2009-11-01 Zoltan Varga <[email protected]>
* Makefile.am (llvm_sources): Enable the llvm option since it no longer breaks
	the windows build.

svn path=/branches/mono-2-6/mono/; revision=145174
2009-11-01 19:16:47 +00:00
Zoltan Varga b25ad6aaff 2009-11-01 Zoltan Varga <[email protected]>
* configure.in: Pass -mno-cygwin to CXX too on windows. Enable AC_PROG_CXX
	since it now works on windows too.

svn path=/branches/mono-2-6/mono/; revision=145173
2009-11-01 19:16:40 +00:00
Sebastien Pouliot f80650fa1e 2009-11-01 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorageFile.cs: Add new CheckSearchPattern 
	validation method. Fix GetDirectoryNames to behave like 
	GetFileNames wrt searchPattern
	[Backport r145167]


svn path=/branches/mono-2-6/mcs/; revision=145168
2009-11-01 16:47:10 +00:00
Sebastien Pouliot 7f7c90c70e 2009-11-01 Sebastien Pouliot <[email protected]>
* ResourceManager.cs (GetResourceFilePath): Don't use 
	'resourceDir' which should always be null for Moonlight
	[Backport r145165]


svn path=/branches/mono-2-6/mcs/; revision=145166
2009-11-01 16:46:04 +00:00
Miguel de Icaza 31dd3aca62 Backport: 2009-10-31 Miguel de Icaza <[email protected]>
* threads.c: refactor the code that initializes the
	thread_start_args into a reusable function and use this in the two
	methods that start up threads.

svn path=/branches/mono-2-6/mono/; revision=145155
2009-10-31 22:36:20 +00:00
Zoltan Varga 84465817b5 2009-10-25 Zoltan Varga <[email protected]>
* threads.c (start_wrapper): Avoid an assert if thread_start_args () is NULL.

svn path=/branches/mono-2-6/mono/; revision=145151
2009-10-31 22:04:24 +00:00
Sebastien Pouliot cd862e8258 2009-10-31 Sebastien Pouliot <[email protected]>
* BinaryCommon.cs: Disable MONO_REFLECTION_SERIALIZER override 
	for Moonlight plugin.
	[Backport r145147]


svn path=/branches/mono-2-6/mcs/; revision=145148
2009-10-31 16:20:57 +00:00
Zoltan Varga 038367c545 2009-10-31 Zoltan Varga <[email protected]>
* appdomain.c (mono_domain_try_unload): Applied patch from Romain Tartière.
	Fix returning when WaitForSingleObjectEx returns WAIT_IO_COMPLETION.

svn path=/branches/mono-2-6/mono/; revision=145144
2009-10-31 14:13:11 +00:00
Gonzalo Paniagua Javier ed232ae225 2009-10-31 Gonzalo Paniagua Javier <[email protected]>
* mono-perfcounters.c: add the "_Total" instance for CPU counters.
	Until now, we only had the per-cpu(core) counters.

2009-10-30 Gonzalo Paniagua Javier <[email protected]>

	* mono-proclib.c: hz is only multiplied by the number of cpus when
	requesting "_Total".

	Fixes bug #523520.

svn path=/branches/mono-2-6/mono/; revision=145135
2009-10-31 04:06:56 +00:00
Veerapuram Varadhan c6c53d568b backport of r145122
svn path=/branches/mono-2-6/mcs/; revision=145123
2009-10-30 20:58:47 +00:00
Sebastien Pouliot e64e6483ce 2009-10-30 Sebastien Pouliot <[email protected]>
* MethodBuilderTest.cs: Add (copy from TypeBuilderTest) test 
	cases for two DefineGenericParameters
	[Backport r145118]


svn path=/branches/mono-2-6/mcs/; revision=145120
2009-10-30 20:13:40 +00:00
Sebastien Pouliot 17626ad634 2009-10-30 Sebastien Pouliot <[email protected]>
* MethodBuilder.cs: Add missing 'names' validations in 
	DefineGenericParameters
	[Backport r145118]


svn path=/branches/mono-2-6/mcs/; revision=145119
2009-10-30 20:12:48 +00:00
Marek Habersack 62509d7f33 Backport of r145109
svn path=/branches/mono-2-6/mcs/; revision=145111
2009-10-30 15:59:01 +00:00
Zoltan Varga e980095ec9 2009-10-30 Zoltan Varga <[email protected]>
* mini.c (mini_cleanup): Call profiler shutdown before shutting down the
	runtime. Fixes #551228.

svn path=/branches/mono-2-6/mono/; revision=145104
2009-10-30 15:19:30 +00:00
Sebastien Pouliot f0a8a458d1 2009-10-30 Sebastien Pouliot <[email protected]>
* MonoMethod.cs: Remove CAS check in MonoCMethod.Invoke (just 
	like it was done for MonoMethod.Invoke sister method)
	[Backport r145101]


svn path=/branches/mono-2-6/mcs/; revision=145102
2009-10-30 15:05:39 +00:00
Sebastien Pouliot c05d8961d5 MonoType.cs: Don't pass null value to icalls GetCorrespondingInflated[Constructor|Method]
svn path=/branches/mono-2-6/mcs/; revision=145100
2009-10-30 15:03:58 +00:00
Chris Toshok 90d3f7a97e 2009-10-29 Chris Toshok <[email protected]>
* TypeMap.cs (Deserialize): use
        FormatterServices.GetUninitializedObject instead of
        Activator.CreateInstance, since we shouldn't be invoking the
        default ctor.


svn path=/branches/mono-2-6/mcs/; revision=145077
2009-10-30 05:04:17 +00:00
Andreia Gaita e18c231fc8 * DataContractJsonSerializer.cs: SL accepts keys without "", so tweak
the data to fix the quotes before passing it to the deserializer
[backported from r145075]

svn path=/branches/mono-2-6/mcs/; revision=145076
2009-10-30 02:26:30 +00:00
Veerapuram Varadhan 385d93e3bc backport of r145072
svn path=/branches/mono-2-6/mcs/; revision=145073
2009-10-30 01:09:16 +00:00
Marek Habersack b066dcaa56 Backport of r145069
svn path=/branches/mono-2-6/mcs/; revision=145070
2009-10-30 00:53:35 +00:00
Veerapuram Varadhan 13dd868c42 backport of r145064
svn path=/branches/mono-2-6/mcs/; revision=145065
2009-10-29 20:54:40 +00:00
Veerapuram Varadhan 4471cba319 backport of r145054
svn path=/branches/mono-2-6/mcs/; revision=145055
2009-10-29 18:39:28 +00:00
Sebastien Pouliot 20f61ae832 2009-10-29 Sebastien Pouliot <[email protected]>
* CompareInfoTest.cs: Add test cases to validate parameters
	[Backport r145023]


svn path=/branches/mono-2-6/mcs/; revision=145026
2009-10-29 14:14:43 +00:00
Sebastien Pouliot 2825f28523 2009-10-29 Sebastien Pouliot <[email protected]>
* CompareInfo.cs: Add/fix CompareOptions validations. Reduce code
	duplication in Compare methods (wrt CompareOptions). Fix 
	calculation bug	in Compare(string,int.string,int,CompareOptions).
	[Backport r145023]


svn path=/branches/mono-2-6/mcs/; revision=145025
2009-10-29 14:13:52 +00:00
Zoltan Varga 3871e25478 2009-10-29 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Fix % 1. Fixes #550970.

	* basic.cs: Add a test.

svn path=/branches/mono-2-6/mono/; revision=145018
2009-10-29 13:08:46 +00:00
Sebastien Pouliot 9d1b407625 2009-10-29 Sebastien Pouliot <[email protected]>
* ModuleBuilderTest.cs: Add test cases for GetType overloads
	* TypeBuilderTest.cs: Remove NotWorking from two 
	DefineGenericParameters test case.
	[Backport r145013]


svn path=/branches/mono-2-6/mcs/; revision=145015
2009-10-29 12:53:47 +00:00
Sebastien Pouliot d24244af13 2009-10-29 Sebastien Pouliot <[email protected]>
* ModuleBuilder.cs: Add missing 'className' validations in GetType
	* TypeBuilder.cs: Add missing 'names' validations in 
	DefineGenericParameters
	[Backport r145013]


svn path=/branches/mono-2-6/mcs/; revision=145014
2009-10-29 12:52:54 +00:00
Veerapuram Varadhan cbbc5a16a6 backport r145011
svn path=/branches/mono-2-6/mcs/; revision=145012
2009-10-29 12:49:27 +00:00
Sebastien Pouliot c27526153b 2009-10-29 Sebastien Pouliot <[email protected]>
* FileStream.cs: Reduce code duplication by merging FillBuffer 
	with FillBufferToStream
	[Backport r145008]


svn path=/branches/mono-2-6/mcs/; revision=145010
2009-10-29 12:15:23 +00:00
Zoltan Varga d7b68fa40b 2009-10-29 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Use EMIT_NEW_LOAD_MEMBASE_TYPE to
	load vtypes instead if OP_LOADV_MEMBASE in the implementation of
	CONSTRAINED. Fixes #550964.

	* generics.cs: Add a test.

svn path=/branches/mono-2-6/mono/; revision=145007
2009-10-29 12:09:16 +00:00
Jb Evain 0ea412d547 2009-10-29 Jb Evain <[email protected]>
* ActivationServices.cs: avoid a static constructor.


svn path=/branches/mono-2-6/mcs/; revision=145003
2009-10-29 10:49:36 +00:00
Marek Safar 73ebfb6251 2009-10-29 Marek Safar <[email protected]>
A fix for bug #550580	
	* convert.cs: Don't eliminate explicit precission casts.


svn path=/branches/mono-2-6/mcs/; revision=144997
2009-10-29 10:01:04 +00:00
Marek Safar b81781bbe4 Updated.
svn path=/branches/mono-2-6/mcs/; revision=144996
2009-10-29 10:00:46 +00:00
Veerapuram Varadhan 7c712848f1 backport of r144980
svn path=/branches/mono-2-6/mcs/; revision=144981
2009-10-29 02:13:28 +00:00
Lluis Sanchez f46f770b16 2009-10-28 Lluis Sanchez Gual <[email protected]>
* MarshalByRefObject.cs: In InitializeLifetimeService, if a lease
	exists for the object return it, instead of always creating
	a new one. Fixes bug #544357.


svn path=/branches/mono-2-6/mcs/; revision=144963
2009-10-28 18:40:05 +00:00
Marek Habersack b7ef95a35d Backport of r144947
svn path=/branches/mono-2-6/mcs/; revision=144948
2009-10-28 14:01:48 +00:00
Sebastien Pouliot 1cf1d66a3e 2009-10-28 Sebastien Pouliot <[email protected]>
* FileStream.cs: Move code to deal with 'anonymous' filenames
	into two methods (returning the path, fullpath or only the 
	filename). Default Moonlight to anonymous (not only for isolated
	storage) unless the coreclr is disable (e.g. smcs)
	[Backport r144945]


svn path=/branches/mono-2-6/mcs/; revision=144946
2009-10-28 13:42:56 +00:00
Marek Habersack 3afb337dec Fix 1.1 build
svn path=/branches/mono-2-6/mcs/; revision=144939
2009-10-28 12:05:39 +00:00
Marek Habersack b213aa0bf2 Backport of r144935
svn path=/branches/mono-2-6/mcs/; revision=144936
2009-10-28 10:37:37 +00:00
Marek Habersack 423ea8af8e Backport of r144932
svn path=/branches/mono-2-6/mcs/; revision=144933
2009-10-28 10:19:34 +00:00
Sebastien Pouliot a5727b1062 2-6 still supports 1.1 profile...
svn path=/branches/mono-2-6/mcs/; revision=144929
2009-10-28 01:03:05 +00:00
Sebastien Pouliot c3d41f08f9 2009-10-27 Sebastien Pouliot <[email protected]>
* StringTest.cs: Add test case for methods that can return
	empty strings.
	[Backport r144921]


svn path=/branches/mono-2-6/mcs/; revision=144925
2009-10-27 23:46:18 +00:00
Sebastien Pouliot 9de4121212 2009-10-27 Sebastien Pouliot <[email protected]>
* UnicodeEncodingTest.cs: Add test cases with an odd number of 
	bytes being used in GetString (it does not crash but it does not
	work like MS FX either).
	[Backport r144921]


svn path=/branches/mono-2-6/mcs/; revision=144924
2009-10-27 23:45:41 +00:00
Sebastien Pouliot a29c9418a8 2009-10-27 Sebastien Pouliot <[email protected]>
* String.cs: Remove unused (and unneeded) internal call defs.
	Reduce duplication (and fix test) for Concat (object,object).
	Avoid allocating zero-length strings in the cases where the
	FX does not do so.
	[Backport r144921]


svn path=/branches/mono-2-6/mcs/; revision=144923
2009-10-27 23:45:00 +00:00
Sebastien Pouliot 38087128b7 2009-10-27 Sebastien Pouliot <[email protected]>
* TextInfo.cs: Avoid allocating zero-length strings in ToLower 
	and ToUpper methods
	[Backport r144921]


svn path=/branches/mono-2-6/mcs/; revision=144922
2009-10-27 23:43:47 +00:00
Veerapuram Varadhan e3783491dc 2009-10-28 Veerapuram Varadhan <[email protected]>
** Fixes #385028/#385029
	* DbCommandBuilder.cs (CreateInsertCommand): Workaround for inserting
	DEFAULT values to non-null-columns.
	(GetInsertCommand): New overload added to handle above workaround.
	(set_DataAdapter): Register for the RowUpdatingEventHandler.

svn path=/branches/mono-2-6/mcs/; revision=144917
2009-10-27 21:21:27 +00:00
Marek Habersack 5c80561e2e Backport of r144898
svn path=/branches/mono-2-6/mcs/; revision=144899
2009-10-27 13:10:55 +00:00
Marek Habersack 45aeaa1253 Backport of r144894
svn path=/branches/mono-2-6/mcs/; revision=144895
2009-10-27 09:56:10 +00:00
Zoltan Varga f1a66b8ed5 Really fix the osx build.
svn path=/branches/mono-2-6/mono/; revision=144874
2009-10-26 20:08:00 +00:00
Zoltan Varga b2cc33d3db Fix osx build.
svn path=/branches/mono-2-6/mono/; revision=144872
2009-10-26 20:00:59 +00:00
Zoltan Varga cd6613509c In libgc:
2009-10-25  Zoltan Varga  <[email protected]>

	* misc.c (GC_get_suspend_signal): New API function to return the suspend signal
	used by libgc.

In mono/mini:

2009-10-25  Zoltan Varga  <[email protected]>

	* mini-posix.c (add_signal_handler): Delay the GC suspend signal while
	executing a SIGSEGV handler on an altstack, since libgc can't handle that.

In mono/tests:

2009-10-25  Zoltan Varga  <[email protected]>

	* misc.c (GC_get_suspend_signal): New API function to return the suspend signal
	used by libgc.

svn path=/branches/mono-2-6/mono/; revision=144871
2009-10-26 20:00:51 +00:00
Zoltan Varga d8da3eab41 2009-10-25 Zoltan Varga <[email protected]>
* threads.c (start_wrapper): Call mono_profiler_thread_start () later after
	signalling start_notify.

svn path=/branches/mono-2-6/mono/; revision=144870
2009-10-26 20:00:40 +00:00
Sebastien Pouliot ae40d18e07 2009-10-26 Sebastien Pouliot <[email protected]>
* Assembly.cs: Share code between GetSatelliteAssembly and 
	GetSatelliteAssemblyNoThrow. For Moonlight ensure both 
	GetManifestResourceStream and GetSatelliteAssembly don't load
	anything "below" the assembly path.
	[Backport r144845]


svn path=/branches/mono-2-6/mcs/; revision=144846
2009-10-26 12:11:50 +00:00
Sebastien Pouliot a89a5936ac 2009-10-26 Sebastien Pouliot <[email protected]>
* Consts.cs.in: Update SL2 FX version to the second (and last)
	released version.
	[Backport r144843]


svn path=/branches/mono-2-6/mcs/; revision=144844
2009-10-26 12:03:41 +00:00
Sebastien Pouliot 5880e4bf3c 2009-10-26 Sebastien Pouliot <[email protected]>
* InterlockedTest.cs: Add test case for generic methods
	CompareExchange and Exchange
	[Backport r144840]


svn path=/branches/mono-2-6/mcs/; revision=144842
2009-10-26 11:57:12 +00:00
Sebastien Pouliot dc7d62f122 TypeTest.cs: New. Add test cases for IsInstanceOfType
svn path=/branches/mono-2-6/mcs/; revision=144841
2009-10-26 11:56:37 +00:00
Sebastien Pouliot 796a9ea860 2009-10-25 Sebastien Pouliot <[email protected]>
* ThreadTest.cs: Add test cases for Current[UI]Culture (not 
	working), Name, Join, Sleep and SpinWait
	[Backport r144824]


svn path=/branches/mono-2-6/mcs/; revision=144826
2009-10-25 16:43:07 +00:00
Sebastien Pouliot 2548566d31 2009-10-25 Sebastien Pouliot <[email protected]>
* Thread.cs: Fix validations for Join and Sleep overloads
	[Backport r144824]


svn path=/branches/mono-2-6/mcs/; revision=144825
2009-10-25 16:42:04 +00:00
Geoff Norton fe8c4d8126 make uri no braindead on mt
svn path=/branches/mono-2-6/mcs/; revision=144815
2009-10-24 21:25:05 +00:00
Gonzalo Paniagua Javier dff48874e3 2009-10-24 Gonzalo Paniagua Javier <[email protected]>
marshal.c: BeginInvoke cannot be called on multicast delegates with
	multiple targets. Fixes bug #574426.
	Backported from trunk.


svn path=/branches/mono-2-6/mono/; revision=144812
2009-10-24 20:52:26 +00:00
Gonzalo Paniagua Javier 8c2cc0f8b1 2009-10-24 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: do not test the st_mode field for shadow-copies.
	Fixes bug #545276.


svn path=/branches/mono-2-6/mono/; revision=144809
2009-10-24 20:04:31 +00:00
Gonzalo Paniagua Javier 94beec4383 2009-10-24 Gonzalo Paniagua Javier <[email protected]>
* DeflateStreamTest.cs: test from bug #549492.


svn path=/branches/mono-2-6/mcs/; revision=144803
2009-10-24 17:26:56 +00:00
Gonzalo Paniagua Javier 7ec5d41688 2009-10-24 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: stop trying to decompress when we get Z_STREAM_END.
	Patch by Ives Bastide. Fixes bug #549942.


svn path=/branches/mono-2-6/mono/; revision=144800
2009-10-24 17:22:13 +00:00
Sebastien Pouliot c49415d54c 2009-10-24 Sebastien Pouliot <[email protected]>
* StackFrame.cs: Relax GetSecureFileName when the coreclr is not 
	active (i.e. show full path when compiling with smcs)
	[Backport r144797]


svn path=/branches/mono-2-6/mcs/; revision=144798
2009-10-24 16:11:58 +00:00
Sebastien Pouliot e11b6645cd 2009-10-24 Sebastien Pouliot <[email protected]>
* TypeBuilderTest.cs: Validation test cases for GetConstructor
	[Backport r144791]


svn path=/branches/mono-2-6/mcs/; revision=144793
2009-10-24 15:50:51 +00:00
Sebastien Pouliot 76e901f710 2009-10-24 Sebastien Pouliot <[email protected]>
* AssemblyBuilder.cs: For Silverlight only AssemblyBuilderAccess.Run
	is supported (browser-side) but we still allow other values when
	compiling (e.g. smcs) outside the browser (wo coreclr)
	* TypeBuilder.cs (GetConstructor): Fix validations
	[Backport r144791]


svn path=/branches/mono-2-6/mcs/; revision=144792
2009-10-24 15:46:51 +00:00
Zoltan Varga 6fe974d80d Fix the build.
svn path=/branches/mono-2-6/mono/; revision=144790
2009-10-24 13:28:06 +00:00
Zoltan Varga 9ede4e5632 2009-10-24 Zoltan Varga <[email protected]>
* mini-exceptions.c (mini_jit_info_table_find): Add an 'out_domain' argument
    	which will contain the domain where the method was found.

    	* exceptions-<ARCH>.c mini-exceptions.c: Update callers of
    	mini_jit_info_table_find ().

svn path=/branches/mono-2-6/mono/; revision=144789
2009-10-24 13:27:59 +00:00
Gonzalo Paniagua Javier e67e2fae94 2009-10-24 Gonzalo Paniagua Javier <[email protected]>
* threadpool.[ch]: added hooks for thread start/finish and item
	processing begin/end. For monotouch use only.


svn path=/branches/mono-2-6/mono/; revision=144783
2009-10-24 04:35:13 +00:00
Zoltan Varga 75e9de6dd3 Fix the build.
svn path=/branches/mono-2-6/mono/; revision=144781
2009-10-24 02:32:23 +00:00
Zoltan Varga 74f0572274 2009-10-24 Zoltan Varga <[email protected]>
* threads.c (mono_thread_get_name): New helper function.

svn path=/branches/mono-2-6/mono/; revision=144780
2009-10-24 02:27:40 +00:00
Zoltan Varga 389692ae85 2009-10-24 Zoltan Varga <[email protected]>
* reflection.c (resolve_object): Set handle_class for strings too.
	(mono_reflection_create_custom_attr_data_args): New helper function to decode
	a cattr blob into a set of arrays and structures without creating the custom
	attributes themselves.
	(create_custom_attr_data): Simplify using create_custom_attr_data_args.

	* mono-debug.c (mono_debug_il_offset_from_address): New helper function.

	* debug-mono-symfile.c (mono_debug_symfile_get_line_numbers): New helper
	function.

svn path=/branches/mono-2-6/mono/; revision=144778
2009-10-24 02:19:39 +00:00
Zoltan Varga 7b436d9afc 2009-10-24 Zoltan Varga <[email protected]>
* aot-compiler.c (xdebug_end_emit): Remove so stray debug code.

svn path=/branches/mono-2-6/mono/; revision=144772
2009-10-24 00:56:59 +00:00
Zoltan Varga 245474ed6f 2009-10-24 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Avoid running deadce if it is disabled.

svn path=/branches/mono-2-6/mono/; revision=144764
2009-10-23 23:28:10 +00:00
Alexandre Gomes 370db981b3 Fixed GetWebRequest overriding problems, bug: https://bugzilla.novell.com/show_bug.cgi?id=549580
svn path=/branches/mono-2-6/mcs/; revision=144754
2009-10-23 18:37:47 +00:00
Sebastien Pouliot dbb67cab7a security-manager.c: Report if core-clr is active from ves_icall_System_Security_SecurityManager_get_SecurityEnabled to allow Moonlight BCL to behave appropriately (both in browser and outside, e.g. smcs)
svn path=/branches/mono-2-6/mono/; revision=144738
2009-10-23 14:34:04 +00:00
Sebastien Pouliot 042f77071a 2009-10-23 Sebastien Pouliot <[email protected]>
* SecurityManager_2_1.cs: Return to duty for SecurityEnabled, it
	will allow us to distinguish between running in the browser
	(coreclr active) and on the console (e.g. smcs) from managed code
	[Backport r144732]


svn path=/branches/mono-2-6/mcs/; revision=144733
2009-10-23 12:55:25 +00:00
Gonzalo Paniagua Javier 971d062268 2009-10-23 Gonzalo Paniagua Javier <[email protected]>
* mono-config.c: ignore UTF-8 BOM and report parser errors.
	Fixes bug #549108.


svn path=/branches/mono-2-6/mono/; revision=144729
2009-10-23 12:05:21 +00:00
Gonzalo Paniagua Javier b1a3d29a9e 2009-10-23 Gonzalo Paniagua Javier <[email protected]>
* Configuration.cs: make this work again with bundled configuration
	files. Fixes bug #495957. Patch from Tor Lillqvist.


svn path=/branches/mono-2-6/mcs/; revision=144723
2009-10-23 09:53:44 +00:00
Andreia Gaita 313b593071 * XmlConvert.cs: make ToUri static, fixes #548918 (moon)
[backport r144712]

2009-10-23  Andreia Gaita  <[email protected]>

svn path=/branches/mono-2-6/mcs/; revision=144713
2009-10-23 04:14:05 +00:00
Atsushi Eno cde520de2d merge r144706.
svn path=/branches/mono-2-6/mcs/; revision=144711
2009-10-23 03:46:01 +00:00
Atsushi Eno 428416e37d merge r144707.
svn path=/branches/mono-2-6/mcs/; revision=144710
2009-10-23 03:45:26 +00:00
Atsushi Eno 3184c790c7 merge everything from trunk.
svn path=/branches/mono-2-6/mcs/; revision=144704
2009-10-23 03:04:22 +00:00
Gonzalo Paniagua Javier 3e814f1d9b 2009-10-22 Gonzalo Paniagua Javier <[email protected]>
* class.c: fix typo.


svn path=/branches/mono-2-6/mono/; revision=144692
2009-10-22 22:49:45 +00:00
Sebastien Pouliot cf715cb40a corlib_test.dll.sources: Add System/WeakReferenceTest and System.Threading/EventWaitHandleTest.cs
svn path=/branches/mono-2-6/mcs/; revision=144685
2009-10-22 20:54:49 +00:00
Sebastien Pouliot a1f76a2fcf 2009-10-22 Sebastien Pouliot <[email protected]>
* EventWaitHandleTest.cs: New. Test case for EventResetMode 
	validation
	[Backport r144681]


svn path=/branches/mono-2-6/mcs/; revision=144684
2009-10-22 20:53:40 +00:00
Sebastien Pouliot 2645469dac 2009-10-22 Sebastien Pouliot <[email protected]>
* WeakReferenceTest.cs: New. Basic test cases
	[Backport r144681]


svn path=/branches/mono-2-6/mcs/; revision=144683
2009-10-22 20:49:58 +00:00
Sebastien Pouliot 426cc16e68 2009-10-22 Sebastien Pouliot <[email protected]>
* EventWaitHandleTest.cs: New. Test case for EventResetMode 
	validation
	[Backport r144681]


svn path=/branches/mono-2-6/mcs/; revision=144682
2009-10-22 20:47:55 +00:00
Marek Habersack d6a32cd6ce Backport of r144675
svn path=/branches/mono-2-6/mcs/; revision=144677
2009-10-22 20:01:50 +00:00
Zoltan Varga 8f82fce186 2009-10-22 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_prolog): Disable aot for methods with save_lmf
	set, its not supported yet.

svn path=/branches/mono-2-6/mono/; revision=144676
2009-10-22 20:01:43 +00:00
Zoltan Varga bbf387a8f2 2009-10-22 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_method): Avoid asserting if a array generic
	iface wrapper is not found.
	(mono_aot_get_method): Ditto for GetGenericValueImpl.

svn path=/branches/mono-2-6/mono/; revision=144673
2009-10-22 19:53:31 +00:00
Zoltan Varga 34c65cd606 2009-10-22 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_method): Avoid asserting if a array generic
	iface wrapper is not found.

svn path=/branches/mono-2-6/mono/; revision=144666
2009-10-22 18:54:18 +00:00
Marek Habersack 8c5d96e873 Backport of r144662
svn path=/branches/mono-2-6/mcs/; revision=144663
2009-10-22 18:32:58 +00:00
Jonathan Pryor 920fc7c140 * AssemblyInfo.cs: Use Consts.FxVersion when building for MONOTOUCH.
svn path=/branches/mono-2-6/mcs/; revision=144660
2009-10-22 18:20:03 +00:00
Atsushi Eno 3e977b2172 merge every changes to this assembly upto r144652.
svn path=/branches/mono-2-6/mcs/; revision=144658
2009-10-22 18:15:20 +00:00
Zoltan Varga 8d6429e08c 2009-10-22 Zoltan Varga <[email protected]>
* marshal.c (mono_string_builder_to_utf16): Applied patch from
	Hib Eris  <[email protected]>. Return empty string for empty string builders.
	Fixes #549173.

svn path=/branches/mono-2-6/mono/; revision=144654
2009-10-22 17:49:47 +00:00
Lluis Sanchez 9bed95350d 2009-10-22 Lluis Sanchez Gual <[email protected]>
* CodeNamespaceImportCollection.cs: Properly update the internal
	keys hashtable when there are changes in the items.


svn path=/branches/mono-2-6/mcs/; revision=144651
2009-10-22 16:29:41 +00:00
Atsushi Eno cc737a9ba2 backport r144647.
svn path=/branches/mono-2-6/mcs/; revision=144648
2009-10-22 16:12:06 +00:00
Sebastien Pouliot dd953f50c5 2009-10-22 Sebastien Pouliot <[email protected]>
* MonitorTest.cs: Mark existing tests as "NotWorking" since they
	fail in MS FX2 (maybe they worked in 1.x?). Add more test cases
	to validate the TryEnter and Wait overloaded methods.
	[Backport r144627]


svn path=/branches/mono-2-6/mcs/; revision=144629
2009-10-22 11:53:53 +00:00
Sebastien Pouliot 085200c215 2009-10-22 Sebastien Pouliot <[email protected]>
* Monitor.cs: Fix validations for TryEnter and Wait. Reduce 
	duplicated code between overloads.
	[Backport r144627]


svn path=/branches/mono-2-6/mcs/; revision=144628
2009-10-22 11:53:28 +00:00
Gonzalo Paniagua Javier 14599e07ed 2009-10-22 Carlo Kok <[email protected]>
* Fixed AssemblyInfo.cs to reflect proper copyright.


svn path=/branches/mono-2-6/mcs/; revision=144614
2009-10-22 09:03:41 +00:00
Gonzalo Paniagua Javier 9f906977c4 2009-10-21 Carlo Kok <[email protected]>
* RuntimeLicenseContext.cs: Support for the resourceAssembly parameter.


svn path=/branches/mono-2-6/mcs/; revision=144612
2009-10-22 09:02:37 +00:00
Gonzalo Paniagua Javier be8dbdf6df Add man page for lc
svn path=/branches/mono-2-6/mono/; revision=144590
2009-10-22 02:14:11 +00:00
Gonzalo Paniagua Javier f4c3f2d686 2009-10-21 Gonzalo Paniagua Javier <[email protected]>
* sockets.[ch]: fix function definition.


svn path=/branches/mono-2-6/mono/; revision=144577
2009-10-21 21:40:06 +00:00
Gonzalo Paniagua Javier 12a0a0ad85 2009-10-21 Gonzalo Paniagua Javier <[email protected]>
* socket-io.[ch]: fix VS build.


svn path=/branches/mono-2-6/mono/; revision=144574
2009-10-21 21:38:28 +00:00
Zoltan Varga 1d2fd92a88 2009-10-21 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_method): Fix support for the IList<T> wrappers,
	which have a different name.

svn path=/branches/mono-2-6/mono/; revision=144570
2009-10-21 21:04:00 +00:00
Zoltan Varga 8add79cafb 2009-10-21 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_method): Special case the array generic iface
	wrappers and Array.GetGenericValueImpl ().

	* aot-compiler.c: Avoid emitting some wrappers which are not needed anymore
	because of the change above.

	* generics.cs: Add a test for full aot + generic array ifaces.

svn path=/branches/mono-2-6/mono/; revision=144566
2009-10-21 19:35:13 +00:00
Jb Evain fa842425c7 2009-10-21 Jb Evain <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs: avoid using LINQ
	on arrays as MonoTouch has issues with them.


svn path=/branches/mono-2-6/mcs/; revision=144550
2009-10-21 16:47:54 +00:00
Rodrigo Kumpera e1c04a3fcf In metadata:
2009-10-21  Rodrigo Kumpera  <[email protected]>

	* verify.c (verify_delegate_compatibility): Properly verify delegate creation of static
	methods. Fixes #543021.

	Backport of r144534.

>>>>>>> .r144538

svn path=/branches/mono-2-6/mono/; revision=144544
2009-10-21 13:36:43 +00:00
Sebastien Pouliot 7a51fff22c corlib_test.dll.sources: Add System.Threading/WaitHandleTest.cs
svn path=/branches/mono-2-6/mcs/; revision=144532
2009-10-21 12:21:38 +00:00
Sebastien Pouliot b7a7012115 2009-10-21 Sebastien Pouliot <[email protected]>
* WaitHandleTest.cs: New. Add test cases for Wait[One|All|Any]
	methods overloads (at least the one present in Silverlight 2)
	[Backport r144529]


svn path=/branches/mono-2-6/mcs/; revision=144531
2009-10-21 12:20:35 +00:00
Sebastien Pouliot 066dd83f5d 2009-10-21 Sebastien Pouliot <[email protected]>
* WaitHandle.cs: Add missing validations for 'millisecondsTimeout'
	in Wait[One|Any|All]. Also call the overloaded (bool) methods for
	WaitAll to reduce code duplication.
	[Backport r144529]


svn path=/branches/mono-2-6/mcs/; revision=144530
2009-10-21 12:19:45 +00:00
Gonzalo Paniagua Javier ed2f872e65 2009-10-21 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: implement *SendFile().


svn path=/branches/mono-2-6/mcs/; revision=144511
2009-10-21 06:43:44 +00:00
Gonzalo Paniagua Javier 1759857a1f 2009-10-21 Gonzalo Paniagua Javier <[email protected]>
* icall-def.h:
	* socket-io.[ch]: implemented SendFile.


svn path=/branches/mono-2-6/mono/; revision=144508
2009-10-21 06:34:48 +00:00
Gonzalo Paniagua Javier 3ed983bcab 2009-10-21 Gonzalo Paniagua Javier <[email protected]>
* sockets.[ch]: added TransmitFile implementation.


svn path=/branches/mono-2-6/mono/; revision=144505
2009-10-21 06:31:11 +00:00
Marek Habersack 3ae87c406b Backport of r144487
svn path=/branches/mono-2-6/mcs/; revision=144488
2009-10-20 19:22:13 +00:00
Zoltan Varga 5fbbcc177f 2009-10-20 Zoltan Varga <[email protected]>
* class.c (mono_class_create_from_typedef): Initialize class->element_class
	before the interfaces to avoid crashes later if class initialization fails.
	Fixes #548417.

svn path=/branches/mono-2-6/mono/; revision=144484
2009-10-20 19:03:53 +00:00
Gonzalo Paniagua Javier dd726bd89f 2009-10-20 Gonzalo Paniagua Javier <[email protected]>
* ApplicationHost.cs: set the shadow copy options calling the methods
	in AppDomain, instead of setting them in a copy of the setup
	information.


svn path=/branches/mono-2-6/mcs/; revision=144479
2009-10-20 18:31:55 +00:00
Zoltan Varga 51bca79c22 2009-10-16 Zoltan Varga <[email protected]>
* Makefile: Avoid else ifeq which is not recognized by some make versions.

svn path=/branches/mono-2-6/mcs/; revision=144471
2009-10-20 17:01:53 +00:00
Sebastien Pouliot b26939284a 2009-10-20 Sebastien Pouliot <[email protected]>
* TimerTest.cs: Add more validation tests
	[Backport r144466]


svn path=/branches/mono-2-6/mcs/; revision=144468
2009-10-20 15:54:08 +00:00
Sebastien Pouliot 9f622ff4ee 2009-10-20 Sebastien Pouliot <[email protected]>
* Timer.cs: Always call Init from every constructors to avoid 
	duplicate checks. Fix validations on different dueTime and period
	(ctor and Change methods). Seal private TimerComparer class and
	avoid multiple (identical) casts in its Compare method. Seal 
	private Scheduler class.
	[Backport r144466]


svn path=/branches/mono-2-6/mcs/; revision=144467
2009-10-20 15:53:31 +00:00
Gonzalo Paniagua Javier 06e892b980 2009-10-20 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: make sure we don't insert 2 timers with the same key.


svn path=/branches/mono-2-6/mcs/; revision=144463
2009-10-20 15:29:50 +00:00
Gonzalo Paniagua Javier 143af05a93 2009-10-20 Gonzalo Paniagua Javier <[email protected]>
* ServerContext.cs:
	* SslServerStream.cs: add new parameter that forces sending the
	CertificateRequest record. Make sure we raise the client certificate
	validation event when it is requested or required.


svn path=/branches/mono-2-6/mcs/; revision=144460
2009-10-20 15:25:48 +00:00
Sebastien Pouliot ef4767f919 2009-10-20 Sebastien Pouliot <[email protected]>
* MonoProperty.cs: Reduce code duplication and the number of direct
	calls to icalls (affecting the number of SecuritySafeCritical in
	Moonlight)
	[Backport 144448]


svn path=/branches/mono-2-6/mcs/; revision=144449
2009-10-20 12:05:20 +00:00
Jb Evain 47333cf53e 2009-10-20 Jb Evain <[email protected]>
* Thread.cs: change type of the current_appcontext field to object
	to avoid triggering static constructors unless explicitely required.


svn path=/branches/mono-2-6/mcs/; revision=144430
2009-10-20 09:02:57 +00:00
Sebastien Pouliot 38e2758eb0 2009-10-19 Sebastien Pouliot <[email protected]>
* assembly.c (mono_assembly_load_reference): Fix leak when 'status'
	code is known. (parse_public_key) Remove duplicate (unneeded) NULL
	check since 'pubkey' can't be NULL at this stage
	* icall.c (ves_icall_System_Array_FastCopy): Add comment about
	the check. (ves_icall_Type_GetInterfaceMapData) Remove duplicate
	initialization of 'iter'
	[Backport r144403]


svn path=/branches/mono-2-6/mono/; revision=144405
2009-10-19 19:39:10 +00:00
Sebastien Pouliot b3bef3cb6a 2009-10-19 Sebastien Pouliot <[email protected]>
* aot-compiler.c (emit_plt): Remove duplicate 'debug_sym' variable 
	that hides the previous one.
	[Backport r144402]


svn path=/branches/mono-2-6/mono/; revision=144404
2009-10-19 19:37:39 +00:00
Sebastien Pouliot 64f837613d 2009-10-19 Sebastien Pouliot <[email protected]>
* MonoEvent.cs: Reduce code duplication and the number of direct
	calls to icalls (affecting the number of SecuritySafeCritical in
	Moonlight)
	[Backport r144363]


svn path=/branches/mono-2-6/mcs/; revision=144364
2009-10-19 11:49:05 +00:00
Sebastien Pouliot 20e81a7bd0 2009-10-18 Sebastien Pouliot <[email protected]>
* MethodBaseTest.cs: Add new, working, test for non-generic
	GetMethodFromHandle. Add test case to show generic overload
	behave exactly the same when no second RuntimeMethodHandle is
	provided. Remove [Category("NotWorking")] on existing test case.
	[Backport r144335]


svn path=/branches/mono-2-6/mcs/; revision=144337
2009-10-18 23:53:42 +00:00
Sebastien Pouliot 6088064eb7 * MethodBase.cs: Reduce code duplication and the number of direct
calls to icalls (affecting the number of SecuritySafeCritical in
	Moonlight)
	[Backport r144335]

2009-10-18  Sebastien Pouliot  <[email protected]>


svn path=/branches/mono-2-6/mcs/; revision=144336
2009-10-18 23:53:00 +00:00
Zoltan Varga 7a90062ebe 2009-10-18 Zoltan Varga <[email protected]>
* aot-compiler.c (can_marshal_struct): Allow some System.dll structs to be
	marshalled. Fixes #541623.

svn path=/branches/mono-2-6/mono/; revision=144332
2009-10-18 18:17:35 +00:00
Geoff Norton e0e853111c make these public on monotouch
svn path=/branches/mono-2-6/mcs/; revision=144327
2009-10-18 17:11:06 +00:00
Sebastien Pouliot dbece2a334 In .:
2009-10-18  Sebastien Pouliot  <[email protected]>

	* corlib.dll.sources: Remove System.IO.IntPtrStream since it can
	be replaced by (public in 2.0+) UnmanagedMemoryStream
	* net_2_1_raw_corlib.dll.sources: Remove System.IO.IntPtrStream 
	since it can be replaced by UnmanagedMemoryStream
	[Backport r144322]

In System.Resources:
2009-10-18  Sebastien Pouliot  <[email protected]>

	* ResourceReader.cs, ResourceSet.cs, RuntimeResourceSet.cs: Use 
	UnmanagedMemoryStream (instead of IntPtrStream)
	[Backport r144322]

In System.IO:
2009-10-18  Sebastien Pouliot  <[email protected]>

	* UnmanagedMemoryStream.cs: Allow the use under NET_1_1 so we can
	remove the internal IntPtrStream from every profile.

In System.Reflection:
2009-10-18  Sebastien Pouliot  <[email protected]>

	* Assembly.cs: Use UnmanagedMemoryStream (instead of IntPtrStream)
	in every profile


svn path=/branches/mono-2-6/mcs/; revision=144323
2009-10-18 15:08:03 +00:00
Gonzalo Paniagua Javier 7148b88fc6 2009-10-17 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: add 3 missing DoCallback() calls in
	EndRead/EndWrite.


svn path=/branches/mono-2-6/mcs/; revision=144316
2009-10-18 02:09:23 +00:00
Sebastien Pouliot ce43336bb8 2009-10-17 Sebastien Pouliot <[email protected]>
* EqualityComparer.cs: Seal internal classes
	[Backport r144308]


svn path=/branches/mono-2-6/mcs/; revision=144309
2009-10-17 15:54:37 +00:00
Sebastien Pouliot 59a7e4c2de 2009-10-17 Sebastien Pouliot <[email protected]>
* MonoMethod.cs: Reduce code duplication and the number of direct
	calls to icalls (affecting the number of SecuritySafeCritical in
	Moonlight)
	[Backport r144306]


svn path=/branches/mono-2-6/mcs/; revision=144307
2009-10-17 14:56:38 +00:00
Zoltan Varga f6a4795925 2009-10-16 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_extra_methods): Remove some asserts which are not needed.

svn path=/branches/mono-2-6/mono/; revision=144277
2009-10-16 15:43:51 +00:00
Marek Safar 71f60a3d4a 2009-10-16 Marek Safar <[email protected]>
A fix for bug #493523, #507067
	* convert.cs, nullable.cs, expression.cs: Do implicit and explicit
	standard nullable conversion using underlying standard conversion
	and not full conversion.


svn path=/branches/mono-2-6/mcs/; revision=144266
2009-10-16 13:47:18 +00:00
Atsushi Eno c81b863ef0 backport r144249.
svn path=/branches/mono-2-6/mcs/; revision=144250
2009-10-16 03:53:04 +00:00
Gonzalo Paniagua Javier 5002ce6535 add lc
svn path=/branches/mono-2-6/mono/; revision=144246
2009-10-16 03:18:12 +00:00
Gonzalo Paniagua Javier a665fdb2e9 add lc
svn path=/branches/mono-2-6/mcs/; revision=144245
2009-10-16 03:17:46 +00:00
Gonzalo Paniagua Javier 38079f5fa0 2009-10-12 Carlo Kok <[email protected]>
* DesigntimeLicenseContextSerializer.cs: Properly serialize licenses.
	* RuntimeLicenseContext.cs: Properly deserialize licenses.


svn path=/branches/mono-2-6/mcs/; revision=144240
2009-10-16 02:49:32 +00:00
Sebastien Pouliot 53665d2a9c 2009-10-15 Sebastien Pouliot <[email protected]>
* UnmanagedMemoryStreamTest.cs: Add more test cases to cover all
	validations
	[Backport r144226]


svn path=/branches/mono-2-6/mcs/; revision=144228
2009-10-15 20:20:17 +00:00
Sebastien Pouliot 286bcb9e60 2009-10-15 Sebastien Pouliot <[email protected]>
* UnmanagedMemoryStream.cs: Fix some and add missing validations
	[Backport r144226]


svn path=/branches/mono-2-6/mcs/; revision=144227
2009-10-15 20:19:37 +00:00
Sebastien Pouliot 9621c55b69 2009-10-15 Sebastien Pouliot <[email protected]>
* RuntimeHelpersTest.cs: Add more test cases for validations
	[Backport r144208]


svn path=/branches/mono-2-6/mcs/; revision=144210
2009-10-15 14:37:52 +00:00
Sebastien Pouliot dd815fb7fe 2009-10-15 Sebastien Pouliot <[email protected]>
* RuntimeHelpers.cs: Add missing validations
	[Backport r144208]


svn path=/branches/mono-2-6/mcs/; revision=144209
2009-10-15 14:37:06 +00:00
Sebastien Pouliot 839e971be3 2009-10-15 Sebastien Pouliot <[email protected]>
* GCHandleTest.cs: Add more test cases for validations
	[Backport r144204]


svn path=/branches/mono-2-6/mcs/; revision=144206
2009-10-15 14:22:19 +00:00
Sebastien Pouliot 17fa7867f8 2009-10-15 Sebastien Pouliot <[email protected]>
* GCHandle.cs: Add missing validations
	[Backport r144204]


svn path=/branches/mono-2-6/mcs/; revision=144205
2009-10-15 14:21:34 +00:00
Sebastien Pouliot aca521aca6 2009-10-15 Sebastien Pouliot <[email protected]>
* HttpRequestChannel.cs (WaitEnd): Neither Moonlight nor MonoTouch
	support contexts so we call the non-overloaded WaitOne method 
	(which defaults to false).
	[Backport r144200]


svn path=/branches/mono-2-6/mcs/; revision=144201
2009-10-15 12:54:23 +00:00
Sebastien Pouliot 10274adf0a 2009-10-15 Sebastien Pouliot <[email protected]>
* ClientRuntimeChannel.cs: Remove the WaitOne 'emitContext' 
	overloads from the Moonlight build. Directly call WaitHandle.
	WaitAll from WaitOne(int) (since the overloads are not always
	present)
	[Backport r144198]


svn path=/branches/mono-2-6/mcs/; revision=144199
2009-10-15 12:52:42 +00:00
Jb Evain 062e9f5266 2009-10-15 Jb Evain <[email protected]>
* monotouch_System.dll.sources: add Semaphore to MonoTouch.


svn path=/branches/mono-2-6/mcs/; revision=144192
2009-10-15 10:45:25 +00:00
Zoltan Varga c8bad1334e 2009-10-15 Zoltan Varga <[email protected]>
* mini.c (mono_op_imm_to_op): Handle OP_AND/OR/XOR_IMM.

svn path=/branches/mono-2-6/mono/; revision=144168
2009-10-15 00:12:37 +00:00
Jonathan Pryor a5d121ff11 Fix MonoTouch on the mono-2-6 branch.
svn path=/branches/mono-2-6/mcs/; revision=144154
2009-10-14 21:42:18 +00:00
Gonzalo Paniagua Javier 396faa531e fix the build
svn path=/branches/mono-2-6/mcs/; revision=144152
2009-10-14 20:58:11 +00:00
Jonathan Pryor 451dd25eb9 * Makefile: Add Mono.Data.Tds, System.Transactions, System.Data, and
Mono.Data.Sqlite to the MonoTouch build.
	* System/System.ComponentModel/TypeConverter_2_1.cs: Skip this type in
		the MonoTouch profile; MonoTouch will be using the 2.0 version of 
		TypeConverter.
	* System/System.ComponentModel/ComponentCollection.cs, 
		System/System.ComponentModel/PropertyDescriptor.cs: MonoTouch uses the
		.NET 2.0 versions of these types.
	* System/monotouch_System.dll.sources: Add lots of additional .NET 2.0
		functionality to the MonoTouch profile.
	* System.Transactions/Makefile (VALID_PROFILE): Add monotouch.
	* System.Data/System.Data.Common/DbConnection.cs: Throw 
		NotImplementedException for DbConnection.DbProviderFactory, as 
		DbProviderFactories isn't included in the MonoTouch profile.
	* System.Data/System.Data.SqlClient/SqlConnection.cs: Remove 
		EnterpriseServices dependency from the MonoTouch profile.
	* System.Data/monotouch_System.Data.dll.sources: Added.
	* System.Data/System.Data/XmlSchemaDataImporter.cs: Remove 
		DbProviderFactories dependency in the MonoTouch profile.

svn path=/branches/mono-2-6/mcs/; revision=144142
2009-10-14 20:28:31 +00:00
Gonzalo Paniagua Javier 7252b6595e 2009-10-14 Gonzalo Paniagua Javier <[email protected]>
* ApplicationHost.cs: use shadowCopyBinAssemblies from
	<hostingEnvironment>.


svn path=/branches/mono-2-6/mcs/; revision=144138
2009-10-14 19:30:28 +00:00
Marek Habersack 1f16f07de0 Backport of r144016
svn path=/branches/mono-2-6/mcs/; revision=144129
2009-10-14 18:18:35 +00:00
Sebastien Pouliot 3bf0adf06b 2009-10-14 Sebastien Pouliot <[email protected]>
* CultureInfo.cs: Refactor to reduce unsafe methods/scope.
	[Backport r144106]


svn path=/branches/mono-2-6/mcs/; revision=144107
2009-10-14 15:14:25 +00:00
Sebastien Pouliot bfea298166 2009-10-14 Sebastien Pouliot <[email protected]>
* Exception.cs: Use StackFrame.GetSecureFileName to display (or 
	not) the file names (and paths). Don't serialize Source for
	Moonlight.
	* ValueType.cs: Change InternalEquals (icall) visibility to 
	private since it is not used elsewhere outside the type.
	[Backport r144104]


svn path=/branches/mono-2-6/mcs/; revision=144105
2009-10-14 15:09:48 +00:00
Martin Baulig 480d488ef3 Backport of 144049; add a new 'MONO_DEBUGGER_EVENT_TRAMPOLINE' notification for the debugger which also includes the address of the callsite.
2009-10-13  Martin Baulig  <[email protected]>

	* debug-mini.c (mono_debugger_trampoline_compiled): Add
	`const guint8 *trampoline' argument; send both the old and the new
	notification.

2009-10-13  Martin Baulig  <[email protected]>

	* mono-debug-debugger.h (MonoDebuggerEvent): Renamed
	`MONO_DEBUGGER_EVENT_TRAMPOLINE' into
	`MONO_DEBUGGER_EVENT_OLD_TRAMPOLINE' and added a new
	`MONO_DEBUGGER_EVENT_TRAMPOLINE'.

	* mono-debug.h (MONO_DEBUGGER_MINOR_VERSION): Bump to 4.

svn path=/branches/mono-2-6/mono/; revision=144065
2009-10-13 23:03:19 +00:00
Zoltan Varga 06e50b881f 2009-10-13 Zoltan Varga <[email protected]>
* mono-gdb.py: Add an 'xdb' command to flush the debugging info.

svn path=/branches/mono-2-6/mono/; revision=144036
2009-10-13 18:26:08 +00:00
Zoltan Varga ff049da6c1 2009-10-13 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Group methods into groups of 10 to
	avoid registering 1 symbol file per method with gdb.

svn path=/branches/mono-2-6/mono/; revision=144034
2009-10-13 18:20:30 +00:00
Zoltan Varga 43e1fd9f0e 2009-10-11 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_xdebug_info): Emit a symbol for the method which
	can be used to set breakpoints in gdb.

	* image-writer.c (bin_writer_emit_writeout): Add support for setting the text
	segment to an absolute address.

svn path=/branches/mono-2-6/mono/; revision=144033
2009-10-13 18:20:22 +00:00
Zoltan Varga b680cf6b99 2009-10-13 Bill Holmes <[email protected]>
* aot-compiler.c : Fix the MSVC builds

	Code is contributed under MIT/X11 license.

svn path=/branches/mono-2-6/mono/; revision=144029
2009-10-13 17:52:18 +00:00
Zoltan Varga b5a02e9870 Fix the eglib build.
svn path=/branches/mono-2-6/mono/; revision=144015
2009-10-13 15:08:27 +00:00
Veerapuram Varadhan ee48d73acd backport of r143993, r143995
svn path=/branches/mono-2-6/mcs/; revision=143996
2009-10-13 01:19:28 +00:00
Marek Habersack 1950420281 Backport of r143990
svn path=/branches/mono-2-6/mcs/; revision=143991
2009-10-12 22:52:16 +00:00
Zoltan Varga feaafeeb4e Fix the build.
svn path=/branches/mono-2-6/mcs/; revision=143989
2009-10-12 22:47:14 +00:00
Zoltan Varga dae32f25ea 2009-10-12 Zoltan Varga <[email protected]>
* Process.cs (Dispose): Close the async output/error readers. Fixes #545429.

svn path=/branches/mono-2-6/mcs/; revision=143986
2009-10-12 21:31:08 +00:00
Marek Habersack 5c4860a930 Backport of r143979
svn path=/branches/mono-2-6/mcs/; revision=143980
2009-10-12 21:11:43 +00:00
Marek Habersack 30a5dda745 Backport of r143972
svn path=/branches/mono-2-6/mcs/; revision=143973
2009-10-12 14:43:19 +00:00
Marek Habersack 2289967204 Backport of r143967
svn path=/branches/mono-2-6/mcs/; revision=143968
2009-10-12 12:52:05 +00:00
Dick Porter e91a24c3f4 2009-10-12 Dick Porter <[email protected]>
* Splitter.cs: Adjust offsets when more than one splitter is
	present in a control.  Fixes bug 509472.


svn path=/branches/mono-2-6/mcs/; revision=143965
2009-10-12 12:30:26 +00:00
Ankit Jain 75d91d9c99 Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2009-10-12  Ankit Jain  <[email protected]>

	* xbuild/Microsoft.Common.targets: For referenced projects,
	when trying to get the deploy items, ensure that the split
	lists of project references are available.
	(SplitProjectReferencesByExistent): New.
	Set DependsOnTargets appropriately.

2009-10-12  Ankit Jain  <[email protected]>

	* SolutionParser.cs: Handle non-existing project files, and
	project file load errors. Raise warnings instead of failing.
	* xbuild/Microsoft.Common.targets: Handle non-existant
	Project references, skip instead of failing.

In class/Microsoft.Build.Tasks:
2009-10-12  Ankit Jain  <[email protected]>

	* Makefile: Add reference to Microsoft.Build.Engine .

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-10-12  Ankit Jain  <[email protected]>

	* ResolveAssemblyReference.cs: Remove unnecessary tab in the warning
	messages.

2009-10-12  Ankit Jain  <[email protected]>

	* MSBuild.cs (Execute): Handle build errors.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-12  Ankit Jain  <[email protected]>

	* Target.cs (TargetFile): New. Gives the name of the file
	containing the target definition.
	* BuildEngine.cs (.ctor): Add a 'taskfile' parameters, and
	return this for ProjectFileOfTaskNode.
	* BuildTask.cs (LogTaskStarted):
	(LogTaskFinished): Use parentTarget.ProjectFileOfTaskNode for
	the event.
	(InitializeTask): Set BuildEngine's task file to parent target's
	TargetFile.
	* Engine.cs (LogProjectStarted): Incase of default targets, set
	TargetNames to String.Empty .
	* TargetBatchingImpl.cs (LogTargetStarted):
	(LogTargetFinished): Use target.TargetFile for the event.

	* ConsoleLogger.cs: Keep a stack of project/target/task being
	executed. And corresponding list of errors and warnings.
	(EventsToString): Stringifies the current "stack", to be used
	as key to the table of errors/warnings and for show messages
	at the end of the build.

2009-10-12  Ankit Jain  <[email protected]>

	* Project.cs (Load): Add argument checks.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-10-12  Ankit Jain  <[email protected]>

	* TaskLoggingHelper.cs: Use the buildEngine.ProjectFileOfTaskNode
	in the event args.

2009-10-12  Ankit Jain  <[email protected]>

	* ToolTask.cs (ExecuteTool): Don't set toolOutput to null.
	(HandleTaskExecutionErrors): toolOutput can be null.
	Set toolOutput to null here.


svn path=/branches/mono-2-6/mcs/; revision=143964
2009-10-12 12:23:53 +00:00
Gonzalo Paniagua Javier 2fefe83b93 fix build
svn path=/branches/mono-2-6/mono/; revision=143963
2009-10-12 12:23:00 +00:00
Zoltan Varga d3442a8864 2009-10-12 Zoltan Varga <[email protected]>
* data/Makefile.am (gdb_DATA): Install mono-gdb.py alongside the mono executable.

svn path=/branches/mono-2-6/mono/; revision=143961
2009-10-12 12:04:21 +00:00
Zoltan Varga 054aa8742c 2009-10-12 Zoltan Varga <[email protected]>
* mono-gdb.py: Update this to gdb 7.0.

	* mono-gdbinit: Removed, no longer needed.

svn path=/branches/mono-2-6/mono/; revision=143960
2009-10-12 12:04:15 +00:00
Zoltan Varga 218d0e4fd6 2009-10-12 Zoltan Varga <[email protected]>
* data/gdb-pre7.0: New directory, containing the mono support files for
	gdb versions before 7.0.

svn path=/branches/mono-2-6/mono/; revision=143959
2009-10-12 12:04:08 +00:00
Marek Habersack 02d778b53f Backport of r143950
svn path=/branches/mono-2-6/mcs/; revision=143951
2009-10-12 10:50:12 +00:00
Marek Habersack d3db87f166 Backport of r143945
svn path=/branches/mono-2-6/mcs/; revision=143946
2009-10-12 09:52:38 +00:00
Gonzalo Paniagua Javier bd265b0b4c Patch by Joel Reed that implements a few network interface counters
svn path=/branches/mono-2-6/mono/; revision=143935
2009-10-12 05:56:18 +00:00
Ankit Jain cdde6d1025 * xbuild.1: Add info about env var XBUILD_COLORS.
Backported from trunk.

svn path=/branches/mono-2-6/mono/; revision=143907
2009-10-11 01:40:39 +00:00
Ankit Jain 85453c1f27 Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2009-10-11  Ankit Jain  <[email protected]>

	* Main.cs: Add support for emitting messages in color.
	Taking relevant code from mcs/report.cs . Using ANSI
	color codes here instead of Console.ForegroundColor
	because of a bug in Console.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-11  Ankit Jain  <[email protected]>

	* ConsoleLogger.cs (no_colors): Rename to ..
	(use_colors): .. this. Fix the case when XBUILD_COLORS
	is not set.

2009-10-11  Ankit Jain  <[email protected]>

	* ConsoleLogger.cs: Use ColorSetter and ColorResetter .
	Support 'XBUILD_COLORS' to set colors for errors, warnings,
	events and messages.

2009-10-10  Ankit Jain  <[email protected]>

	* ConsoleLogger.cs (ProjectFinishedHandler): Once projectFailed
	becomes true, don't reset it. We are looking for "atleast one
	project failed".


svn path=/branches/mono-2-6/mcs/; revision=143904
2009-10-11 01:33:37 +00:00
Zoltan Varga 8523e6fd4c 2009-10-10 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_save_trampoline_xdebug_info): Implement this for the
	gdb mode.

svn path=/branches/mono-2-6/mono/; revision=143895
2009-10-10 18:57:32 +00:00
Zoltan Varga 0d44e4bd88 2009-10-09 Zoltan Varga <[email protected]>
* mono.1: Document --debug=gdb option.

svn path=/branches/mono-2-6/mono/; revision=143891
2009-10-09 19:01:39 +00:00
Zoltan Varga 5fe74de573 2009-10-09 Zoltan Varga <[email protected]>
* driver.c (parse_debug_options): Add a 'gdb' option.

	* mini.c (mini_parse_debug_options): Add a 'gdb' option.

svn path=/branches/mono-2-6/mono/; revision=143890
2009-10-09 19:01:32 +00:00
Zoltan Varga 610c46ca01 2009-10-09 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoSupport.run_hook): Set MONO_XDEBUG to 'gdb' to activate
	the GDB support mode in the runtime.

svn path=/branches/mono-2-6/mono/; revision=143889
2009-10-09 19:01:25 +00:00
Zoltan Varga 05ec37ee5d 2009-10-09 Zoltan Varga <[email protected]>
* image-writer.c: Add support for emitting the image into a memory buffer.

	* dwarfwriter.c: Add support for sharing one IL file between multiple images.

	* aot-compiler.c: Add support for registering debug info with GDB using the
	new JIT debugging interface in GDB 7.0. It can be turned on by setting
	MONO_XDEBUG to 'gdb'.

svn path=/branches/mono-2-6/mono/; revision=143888
2009-10-09 19:01:18 +00:00
Ankit Jain c39fd613b6 Update xbuild and Microsoft.Build.* from trunk.
2009-10-09  Ankit Jain  <[email protected]>

	* Exec.cs (AddCommandLineCommands): Add '/q' for cmd.exe, to
	turn 'echo off'. And make sure the script file on windows, has
	a '.bat' extension, otherwise cmd.exe opens it in a text editor.

2009-10-09  Ankit Jain  <[email protected]>

	Fix bug #545703.
	* Exec.cs (Command): On unix, change CRLF to CR.


svn path=/branches/mono-2-6/mcs/; revision=143881
2009-10-09 15:52:17 +00:00
Zoltan Varga ae4b04c837 2009-10-09 Zoltan Varga <[email protected]>
* image-writer.c (bin_writer_emit_writeout): Fix a copy paste error causing
	the LOC section to overwrite the LINE section.

svn path=/branches/mono-2-6/mono/; revision=143875
2009-10-09 14:49:13 +00:00
Marek Safar fcdff7ed33 Fixed bootstrap with trunk
svn path=/branches/mono-2-6/mcs/; revision=143870
2009-10-09 14:13:21 +00:00
Atsushi Eno e84d2dde76 backport r143819.
svn path=/branches/mono-2-6/mcs/; revision=143820
2009-10-09 03:28:45 +00:00
Veerapuram Varadhan ab56f08cdf 2009-09-30 Veerapuram Varadhan <[email protected]>
** Fixes #543207
	* OracleParameter.cs (Bind): Do not remove the trailing-null-byte.

svn path=/branches/mono-2-6/mcs/; revision=143805
2009-10-08 19:38:29 +00:00
Sebastien Pouliot e7ca8f20c4 2009-10-08 Sebastien Pouliot <[email protected]>
* StackFrame.cs: Introduce a new GetSecureFileName method that
	will deal with CAS (regular framework) and will remove the path
	(for Moonlight) on a stack frame.
	* StackTrace.cs: Use the new StackFrame.GetSecureFileName to
	simplify logic
	[Backport r143802]


svn path=/branches/mono-2-6/mcs/; revision=143804
2009-10-08 19:31:10 +00:00
Sebastien Pouliot 15b13478af 2009-10-08 Sebastien Pouliot <[email protected]>
* AppDomain.cs: Remove NET_2_1 specific DefineDynamicAssembly(
	AssemblyName,AssemblyBuilderAccess,bool) since it is not part
	of SL. Provide a ToString implementation similar to Silverlight
	for Moonlight (and without directly using an icall)
	[Backport r143799]


svn path=/branches/mono-2-6/mcs/; revision=143800
2009-10-08 19:06:02 +00:00
Jb Evain d0cc112de9 2009-10-08 Jb Evain <[email protected]>
* Makefile: build the i18n assemblies on MonoTouch.


svn path=/branches/mono-2-6/mcs/; revision=143774
2009-10-08 13:57:23 +00:00
Jb Evain 1bbc0280f6 use the expression interpreter on MonoTouch
svn path=/branches/mono-2-6/mcs/; revision=143770
2009-10-08 13:53:02 +00:00
Ankit Jain 2f8194612d Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
	* xbuild/Microsoft.Common.targets: Don't get list of files
	to deploy, for 'Private' project references.
	Fix target named for *CopyDeploy*.

2009-10-08  Ankit Jain  <[email protected]>

In tools/xbuild/tests:
2009-10-08  Ankit Jain  <[email protected]>

	* standalone/Project1: Add a new Lib5 project, and add
	private references to various projects.
	Update final-outputs.txt .
	* standalone/Project01/Lib5/*: New.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
	* ResolveAssemblyReference.cs: Don't resolve any dependencies for
	assemblies resolved from {PkgConfig}. Honor parent's CopyLocal for
	dependencies.

2009-10-08  Ankit Jain  <[email protected]>


svn path=/branches/mono-2-6/mcs/; revision=143741
2009-10-08 02:19:49 +00:00
Ankit Jain be9de0e1ac Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2009-10-08  Ankit Jain  <[email protected]>

	* xbuild/Microsoft.Common.tasks: Add RemoveDuplicates task.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2009-10-08  Ankit Jain  <[email protected]>

	* TestMessageLogger.cs (CheckLoggedAny): New.

2009-10-08  Ankit Jain  <[email protected]>

	* RemoveDuplicatesTest.cs: New.

In class/Microsoft.Build.Tasks:
2009-10-08  Ankit Jain  <[email protected]>

	* Microsoft.Build.Tasks_test.dll.sources: Added
	RemoveDuplicatesTest.cs

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-10-08  Ankit Jain  <[email protected]>

	* MSBuild.cs (Execute): Don't share target output items,
	always create a copy.

2009-10-08  Ankit Jain  <[email protected]>

	* RemoveDuplicates.cs: Use item's ItemSpec as the key.

2009-10-07  Ankit Jain  <[email protected]>

	* ManagedCompiler.cs (HandleTaskExecutionErrors): Log error if
	required.

2009-10-06  Ankit Jain  <[email protected]>

	* Exec.cs (ExecuteTool): Use DeleteTempFile instead of File.Delete
	(HandleTaskExecutionErrors): Log error, if required.
	* MSBuild.cs: Don't log error.
	* Warning.cs: Don't log if @text is empty.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-10-08  Ankit Jain  <[email protected]>

	* ProjectTest.cs (TestBatchedMetadataRefInOutput): New.

In class/Microsoft.Build.Engine/Test/various:
2009-10-08  Ankit Jain  <[email protected]>

	* Items.cs (TestItemsWithWildcards): New.

2009-10-08  Ankit Jain  <[email protected]>

	* Items.cs (TestItems5): Fix to work correctly on windows
	and unix.
	(TestReservedMetadata): New.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-08  Ankit Jain  <[email protected]>

	* DirectoryScanner.cs: Use Path.GetPathRoot, instead of
	directly using DirectoryInfo ("z:"), that doesn't return
	a dir info for "z:".

2009-10-08  Ankit Jain  <[email protected]>

	* DirectoryScanner.cs: Handle absolute paths. Fix to work
	correctly on windows. Change order of adding paths to match
	msbuild, useful to have.

2009-10-08  Ankit Jain  <[email protected]>

	* TaskBatchingImpl.cs (ParseTaskAttributes): Parse attributes
	of the 'Output' element also.
	* TaskEngine.cs (PublishOutput): Honor condition on 'Output' also.

2009-10-07  Ankit Jain  <[email protected]>

	* ConsoleLogger.cs: Mark build as failed, if any project failed.

2009-10-06  Ankit Jain  <[email protected]>

	* ConsoleLogger: Improve error reporting. Don't count failed task,
	target or project as another error. Show "errors" after "warnings",
	more useful to the user.
	* Project.cs (BuildTarget): Log error instead of using CWL.

In class/Microsoft.Build.Utilities/Mono.XBuild.Utilities:
2009-10-08  Ankit Jain  <[email protected]>

	* ReservedNameUtils.cs: Fix 'RootDir', 'Directory'.
	(WithTrailingSlash): New.
	Update to use the new WithTrailingSlash method.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-10-06  Ankit Jain  <[email protected]>

	* ToolTask.cs (Execute): HandleTaskExecutionErrors is called only
	if exitCode != 0.
	(ExecuteTool): Move logging of exitcode to HandleTaskExecutionErrors.
	Remove MonoTODOs.
	* TaskLoggingHelper.cs (LogMessageFromText): New.
	(LogMessage): Refactor to use above.


svn path=/branches/mono-2-6/mcs/; revision=143736
2009-10-08 00:58:55 +00:00
Atsushi Eno 5464542c55 backport r143704 from trunk.
svn path=/branches/mono-2-6/mcs/; revision=143706
2009-10-07 19:14:40 +00:00
Atsushi Eno 4ce9ff767f I have committed extraneous stuff (that I once did too in trunk).
svn path=/branches/mono-2-6/mcs/; revision=143705
2009-10-07 19:13:32 +00:00
Atsushi Eno db5459c586 merge all changes from trunk (r143247 - r143697)
svn path=/branches/mono-2-6/mcs/; revision=143702
2009-10-07 19:04:59 +00:00
Atsushi Eno 3268e37cd1 merge all commits from trunk (r142816 - r143609)
svn path=/branches/mono-2-6/mcs/; revision=143700
2009-10-07 18:54:05 +00:00
Sebastien Pouliot d4674914b9 2009-10-07 Sebastien Pouliot <[email protected]>
* String.cs: Remove unsafe code duplication in ToCharArray.
	Define out the unused InternalStrcpy icalls
	* StringComparer.cs: Seal internal/private inner classes.
	[Backport r143651]


svn path=/branches/mono-2-6/mcs/; revision=143653
2009-10-07 13:46:13 +00:00
Sebastien Pouliot e7702bf35d 2009-10-07 Sebastien Pouliot <[email protected]>
* CompareInfo.cs: Don't allow MONO_DISABLE_MANAGED_COLLATION
	override for Moonlight and move all icalls together so they
	can be #if-ed out.
	[Backport r143648]


svn path=/branches/mono-2-6/mcs/; revision=143649
2009-10-07 13:41:18 +00:00
Zoltan Varga c3f5ca896a 2009-10-07 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: Add a test for marshalling DateTime to unmanaged code.

svn path=/branches/mono-2-6/mono/; revision=143642
2009-10-07 13:21:53 +00:00
Zoltan Varga a41a82a694 2009-10-07 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_vtype): Emit marshalling of DateTime to OLE DATE.
	Fixes #322934.

svn path=/branches/mono-2-6/mono/; revision=143641
2009-10-07 13:21:45 +00:00
Sebastien Pouliot bdb31e441e net_2_1_raw_corlib.dll.sources: Remove System/LocalDataStoreSlot.cs from Moonlight build
svn path=/branches/mono-2-6/mcs/; revision=143634
2009-10-07 12:44:25 +00:00
Sebastien Pouliot 0b8e8c6cb7 2009-10-07 Sebastien Pouliot <[email protected]>
* Context.cs: Remove LocalDataStoreSlot-related methods from
	Moonlight build
	[Backport r143631]


svn path=/branches/mono-2-6/mcs/; revision=143632
2009-10-07 12:42:07 +00:00
Sebastien Pouliot e4c96ec70a 2009-10-07 Sebastien Pouliot <[email protected]>
* Thread.cs: Remove LocalDataStoreSlot-related methods from
	Moonlight build
	[Backport r143629]


svn path=/branches/mono-2-6/mcs/; revision=143630
2009-10-07 12:35:56 +00:00
Sebastien Pouliot f91f74d6d7 In Test/System.ServiceModel:
2009-10-07  Sebastien Pouliot  <[email protected]>

	* OperationContextTest.cs: Add test case for OperationContext.Current
	[Backport r143620]

In System.ServiceModel:
2009-10-07  Sebastien Pouliot  <[email protected]>

	* OperationContext.cs: Use [ThreadStatic] instead of Thread.
	GetNamedDataSlot with Thread.[Get|Set]Data since it offers type
	safety and don't require keeping extra API inside Moonlight
	[Backport r143620]


svn path=/branches/mono-2-6/mcs/; revision=143621
2009-10-07 12:05:01 +00:00
Marek Habersack 0263ba084f Backport of r143611
svn path=/branches/mono-2-6/mcs/; revision=143612
2009-10-07 10:49:21 +00:00
Gonzalo Paniagua Javier 4b085e4b62 2009-10-07 Gonzalo Paniagua Javier <[email protected]>
* StaticFileHandler.cs: it's the last flush even when a VPP is used.


svn path=/branches/mono-2-6/mcs/; revision=143598
2009-10-07 04:03:06 +00:00
Atsushi Eno 651f863792 backport r143593.
svn path=/branches/mono-2-6/mcs/; revision=143594
2009-10-07 02:22:55 +00:00
Marek Habersack 2365397ca3 Backport of r143587
svn path=/branches/mono-2-6/mcs/; revision=143588
2009-10-07 00:10:27 +00:00
Sebastien Pouliot dfd3372251 2009-10-06 Sebastien Pouliot <[email protected]>
* Decimal.cs: Use Compare method instead of directly using the
	decimalCompare internal call.
	[Backport r143554]


svn path=/branches/mono-2-6/mcs/; revision=143555
2009-10-06 20:09:20 +00:00
Sebastien Pouliot 4c9ee53953 2009-10-06 Sebastien Pouliot <[email protected]>
* Enum.cs: Add an internal Value property as a single point to 
	call the internal call get_value.
	[Backport r143549]


svn path=/branches/mono-2-6/mcs/; revision=143550
2009-10-06 18:53:49 +00:00
Sebastien Pouliot 8921ca9e49 net_2_1_raw_corlib.dll.sources: Remove normalization files from Moonlight build
svn path=/branches/mono-2-6/mcs/; revision=143541
2009-10-06 17:18:41 +00:00
Sebastien Pouliot bf1d85db26 2009-10-06 Sebastien Pouliot <[email protected]>
* Encoding.cs: Remove normalization methods for Moonlight
	[Backport r143536]


svn path=/branches/mono-2-6/mcs/; revision=143537
2009-10-06 17:16:20 +00:00
Sebastien Pouliot 4f5f2e43e2 2009-10-06 Sebastien Pouliot <[email protected]>
* String.cs: Remove normalization methods for Moonlight
	[Backport r143533]


svn path=/branches/mono-2-6/mcs/; revision=143535
2009-10-06 17:13:17 +00:00
Zoltan Varga 0d8d9abd48 2009-10-06 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_class): Add an instance of GenericComparer<T> for
	each instance of Comparer<T>.

	* generics.cs: Add a new test.

svn path=/branches/mono-2-6/mono/; revision=143532
2009-10-06 17:10:01 +00:00
Gonzalo Paniagua Javier 9f4abfb1d5 2009-10-06 Gonzalo Paniagua Javier <[email protected]>
* GatewayIPAddressInformationCollection.cs:
	* IPInterfaceProperties.cs: implement GatewayAddresses for linux.
	Original patch by Christoph von Wittich.
	Fixes bug #544640.


svn path=/branches/mono-2-6/mcs/; revision=143526
2009-10-06 16:25:59 +00:00
Jonathan Chambers 22c4e0ee3b 2009-10-06 Jonathan Chambers <[email protected]>
* String.cs (Contains): Use CompareOptions.Ordinal. Fixes bug
        #535425.


svn path=/branches/mono-2-6/mcs/; revision=143521
2009-10-06 15:14:43 +00:00
Mark Probst 4e92234406 2009-10-06 Mark Probst <[email protected]>
* object.c (mono_method_return_message_restore): Handle the case
        where the argument is an instance of a generic type.  Fixes
        #544446.

        Backport of r143506.

2009-10-06  Mark Probst  <[email protected]>

        * bug-544445.cs: New test.

        * Makefile.am: Test added.

        Backport of r143506.

svn path=/branches/mono-2-6/mono/; revision=143510
2009-10-06 13:15:18 +00:00
Marek Habersack 4ab670066a Fix the build
svn path=/branches/mono-2-6/mcs/; revision=143429
2009-10-05 17:58:35 +00:00
Marek Safar 29f9e5ff3d 2009-10-05 Marek Safar <[email protected]>
* expression.cs: Equality comparison of generic parameter with
	class constraint.


svn path=/branches/mono-2-6/mcs/; revision=143421
2009-10-05 16:50:49 +00:00
Marek Safar 292fa3413f 2009-10-05 Marek Safar <[email protected]>
A fix for bug #543570
	* generic.cs: Import predefined constraints correctly.


svn path=/branches/mono-2-6/mcs/; revision=143418
2009-10-05 16:05:18 +00:00
Marek Habersack 17ebd3efa0 Backport of r143388
svn path=/branches/mono-2-6/mcs/; revision=143389
2009-10-05 11:15:22 +00:00
Marek Habersack 7b6992976a Backport of r143384
svn path=/branches/mono-2-6/mcs/; revision=143385
2009-10-05 10:45:56 +00:00
Atsushi Eno 02bd2a8b2d backport r143368 and r143369.
svn path=/branches/mono-2-6/mcs/; revision=143371
2009-10-05 06:02:52 +00:00
Atsushi Eno 4415259ba1 backport r143367.
svn path=/branches/mono-2-6/mcs/; revision=143370
2009-10-05 06:01:30 +00:00
Zoltan Varga 8253721cb0 2009-10-04 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_class): Only add GetGenericValueImpl wrappers
	when using full-aot.

svn path=/branches/mono-2-6/mono/; revision=143350
2009-10-04 16:34:37 +00:00
Zoltan Varga 589b50de6f 2009-10-04 Zoltan Varga <[email protected]>
* processes.c: Implement get_process_name_from_proc () on solaris.

svn path=/branches/mono-2-6/mono/; revision=143341
2009-10-04 15:35:47 +00:00
Ankit Jain 85f197004d Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2009-10-03  Ankit Jain  <[email protected]>

	Fix bug#542461.
	* xbuild/Microsoft.Common.targets (KeyOriginatorFile): Set to
	$(AssemblyOriginatorKeyFile), if SignAssembly is true.
	Use it for satellite assemblies also.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-03  Ankit Jain  <[email protected]>

	* Project.cs (OS): New.
	(InitializeProperties): Set 'OS' as a pre-defined property, set to
	'Windows_NT', 'Unix' or 'OSX' depending on the platform.


svn path=/branches/mono-2-6/mcs/; revision=143317
2009-10-02 22:08:37 +00:00
Zoltan Varga 01c866af9c 2009-10-02 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_emit_setret): Emit long return values using OP_LMOVE.
	(mono_arch_create_vars): Instead of allocating a stack slot by hand, allocate
	a variable to hold the stack slot used by the int<->float conversion opcodes.

svn path=/branches/mono-2-6/mono/; revision=143311
2009-10-02 18:53:26 +00:00
Zoltan Varga 4bf53054c2 2009-09-25 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_create_vars): Make the component vars of a long ret
	variable volatile. Fixes #541577.

	* basic-calls.cs: Add a new test.

	* basic-long.cs: Remove tests which are now in basic-calls.cs.

svn path=/branches/mono-2-6/mono/; revision=143310
2009-10-02 18:53:18 +00:00
Zoltan Varga 04ca35cc6a 2009-10-02 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_build_imt_thunk): Implement support for fail_tramp.

svn path=/branches/mono-2-6/mono/; revision=143270
2009-10-02 10:49:14 +00:00
Marek Safar 43806c6701 2009-10-02 Marek Safar <[email protected]>
* ecore.cs: Don't crash on overloads with optional paremeters where
	arguments count overflows.
	
	* parameter.cs: Import optional parameter constants using optional
	value type.


svn path=/branches/mono-2-6/mcs/; revision=143265
2009-10-02 10:43:14 +00:00
Ankit Jain 8dd2dbbe9e Update xbuild and Microsoft.Build.* from trunk.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-02  Ankit Jain  <[email protected]>

	* Expression.cs (Parse): Don't change '/' to '\\', not required.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-10-02  Ankit Jain  <[email protected]>

	* AppDomainIsolatedTask.cs (BuildEngine): Init 'log'.


svn path=/branches/mono-2-6/mcs/; revision=143217
2009-10-01 20:40:44 +00:00
Geoff Norton 5c45430b3f Include async dns in monotouch
svn path=/branches/mono-2-6/mcs/; revision=143194
2009-10-01 18:33:11 +00:00
Miguel de Icaza d70052496a Backport
svn path=/branches/mono-2-6/mcs/; revision=143110
2009-10-01 02:42:30 +00:00
Gonzalo Paniagua Javier 3de2cd8abe 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* HtmlSelectBuilder.cs: <option> allows the value of the 'selected'
	attribute to be a boolean or the string "selected", which is treated
	as "true".


svn path=/branches/mono-2-6/mcs/; revision=143106
2009-10-01 02:24:44 +00:00
Gonzalo Paniagua Javier 91f3e24d60 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* CodeNamespace.cs:
	* CodeTypeReference.cs:
	* CodeMemberMethod.cs:
	* CodeCompileUnit.cs:
	* CodeNamespaceImportCollection.cs:
	* CodeTypeDeclaration.cs: renamed/added fields so that we're
	compatible with MS serialization.


svn path=/branches/mono-2-6/mcs/; revision=143103
2009-10-01 01:44:23 +00:00
Gonzalo Paniagua Javier 681488c662 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* Hashtable.cs: MS (at least latest and greatest) does not always
	serialized the HashCodeProvider. Ignoring the error when the field
	is not found.


svn path=/branches/mono-2-6/mcs/; revision=143100
2009-10-01 01:41:07 +00:00
Gonzalo Paniagua Javier 3b095deb1e undo. Proper fix was in BuildManager
svn path=/branches/mono-2-6/mcs/; revision=143097
2009-10-01 01:25:17 +00:00
Gonzalo Paniagua Javier 5cc7eaea6e 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* BuildManager.cs: load/set the global resources assembly for
	precompiled and merged sites correctly.


svn path=/branches/mono-2-6/mcs/; revision=143094
2009-10-01 01:22:15 +00:00
Ankit Jain 7803cd3ec4 Update xbuild and Microsoft.Build.* from trunk.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-10-01  Ankit Jain  <[email protected]>

	* ImportTest.cs (TestAdd1): Add tests for multiple imports.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-01  Ankit Jain  <[email protected]>

	* Project.cs (AddImport): Show the correct source file name, when
	the import is in the main project file.

2009-10-01  Ankit Jain  <[email protected]>

	Fix bug #543299.
	* Import.cs (.ctor): Evaluate and set EvaluatedProjectPath to
	the full path of the imported project here itself, instead of ..
	(Evaluate): .. here.
	* ImportCollection.cs (Add): Use import.EvaluatedProjectPath .
	(Contains): New.
	* Project.cs (AddImport): Don't process if condition is false.
	Warn if a circular reference is detected, and ignore the import.


svn path=/branches/mono-2-6/mcs/; revision=143082
2009-09-30 23:21:18 +00:00
Geoff Norton 4ebde82145 Add AssemblyInfo so we can strong name the dll
svn path=/branches/mono-2-6/mcs/; revision=143064
2009-09-30 19:42:48 +00:00
Geoff Norton b9b681b89f fix S.W.S on monotouch
svn path=/branches/mono-2-6/mcs/; revision=143062
2009-09-30 19:39:07 +00:00
Geoff Norton a5aeef3952 2009-09-30 Miguel de Icaza <[email protected]>
* ExtensionManager.cs: Initialize the NET_2_0 pieces with
	MonoTouch, but do not register any of the System.Configuration
	depending extensions.

	BuildExtensionImporters, BuildExtensionReflectors: empty methods
	for MOnoTouch.

	* ServiceDescriptionImporter.cs, WebReference.cs: Remove
	codegeneration features for MonoTouch

2009-09-30  Miguel de Icaza  <[email protected]>

	* Methods.cs: Empty extensions for MonoTouch for now.

	* ServerType.cs: On MonoTouch, we do not support HttpGet or
	HttpPost variations yet.

	* SoapExtension.cs: Avoid System.Configuration features.

svn path=/branches/mono-2-6/mcs/; revision=143061
2009-09-30 19:38:50 +00:00
Jackson Harper 4de89dd439 Add a couple of classes to net_2_1 these are available in SL3
svn path=/branches/mono-2-6/mcs/; revision=143046
2009-09-30 16:30:55 +00:00
Geoff Norton 15c9b8f2ca Put WCF back in to monotouch
svn path=/branches/mono-2-6/mcs/; revision=143022
2009-09-30 15:09:17 +00:00
Jonathan Pobst 8baca4235f 2009-09-26 Jonathan Pobst <[email protected]>
[Backport]
	* TreeNode.cs: When we invalidate a node, make sure we start at
	0, instead of the node's Bounds.Left, which does not include
	the +/-, checkbox, or stateimages.
	[Fixes bug #542481]

svn path=/branches/mono-2-6/mcs/; revision=143020
2009-09-30 15:05:29 +00:00
Zoltan Varga a927d1db6a 2009-09-29 Zoltan Varga <[email protected]>
* mini-sparc.c: Fix the handling of enums with base type long.

svn path=/branches/mono-2-6/mono/; revision=143008
2009-09-30 13:50:38 +00:00
Zoltan Varga efed257d39 2009-09-29 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_output_basic_block): Fix IREM_UN_IMM.

svn path=/branches/mono-2-6/mono/; revision=143007
2009-09-30 13:50:30 +00:00
Zoltan Varga 9ad9b08458 2009-09-29 Zoltan Varga <[email protected]>
* mono-compiler.h (MONO_INTERNAL): Disable this on solaris as it produces a
	millions of warnings during compilation.

svn path=/branches/mono-2-6/mono/; revision=143006
2009-09-30 13:50:23 +00:00
Zoltan Varga 9b2393d1c7 2009-09-29 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_allocate_vars): Use mono_class_from_mono_type ()
	instead of using type->data.klass as the later doesn't work with generics.

svn path=/branches/mono-2-6/mono/; revision=143005
2009-09-30 13:50:16 +00:00
Zoltan Varga 463c186397 2009-09-29 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_allocate_vars): Use mono_class_from_mono_type ()
	instead of using type->data.klass as the later doesn't work with generics.

svn path=/branches/mono-2-6/mono/; revision=143004
2009-09-30 13:50:09 +00:00
Zoltan Varga 45d870860c 2009-09-30 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: Add a test for #543133.

svn path=/branches/mono-2-6/mono/; revision=143000
2009-09-30 13:32:00 +00:00
Zoltan Varga 47df667e6e 2009-09-30 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_object): Emit out marshalling of stringbuilders.
	Fixes #543133.

svn path=/branches/mono-2-6/mono/; revision=142999
2009-09-30 13:31:53 +00:00
Zoltan Varga 62e7e2c54d 2009-09-30 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Add a runtime invoke wrapper which is used by
	mono_runtime_capture_context () without calling mono_runtime_invoke ().
	(can_marshal_struct): Skip structures with auto layout.

svn path=/branches/mono-2-6/mono/; revision=142993
2009-09-30 12:49:29 +00:00
Zoltan Varga 788c9757fd 2009-09-30 Zoltan Varga <[email protected]>
* tramp-arm.c (GEN_TRAMP_SIZE): Increase this by 4.

svn path=/branches/mono-2-6/mono/; revision=142992
2009-09-30 12:49:21 +00:00
Marek Habersack daa2f108f3 Backport of r142984
svn path=/branches/mono-2-6/mcs/; revision=142985
2009-09-30 10:39:28 +00:00
Marek Safar 81bb1146d4 2009-09-30 Marek Safar <[email protected]>
A fix for bug #542959
	* delegate.cs: Emit correct delegate instance variable when there
	are static and non-static overloads.


svn path=/branches/mono-2-6/mcs/; revision=142978
2009-09-30 09:35:40 +00:00
Jb Evain 8da02c6d46 2009-09-30 Jb Evain <[email protected]>
* HttpRequestChannel.cs: When compiling for MonoTouch, avoid
	to use any of the remoting features.

svn path=/branches/mono-2-6/mcs/; revision=142972
2009-09-30 08:43:35 +00:00
Gonzalo Paniagua Javier fa1a176ef6 changelog
svn path=/branches/mono-2-6/mcs/; revision=142965
2009-09-30 06:06:31 +00:00
Gonzalo Paniagua Javier aebf222336 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* BinaryFormatter.cs: NoCheckDeserialize() was using PeekChar() on a
	reader when it should only read 1 byte. Also BinaryReader.PeekChar()
	tries to set the position of hte stream back to where it was before
	the read, which does not work well with broken Stream
	implementations like BZip2InputStream (reports CanSeek is true when
	it really can't seek). Now we do a Read() and then pass the value we
	read on to the next methods.

	* MessageFormatter.cs: 
	* ObjectReader.cs: added overloads that take a BinaryElement instead
	of reading it from the reader. Only for the methods used in
	NoCheckDeserialize.

	Fixes bug #503435.


svn path=/branches/mono-2-6/mcs/; revision=142964
2009-09-30 06:06:18 +00:00
Gonzalo Paniagua Javier 5afdc7affb 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: fixes bug #322330. Patch by Alexander Kojevnikov.
	This patch fixes the issues reported by the OP and in my previous
	comment. In particular:

	Hunks 1 and 4 remove the new_name_needed flag, it's not used
	anywhere and only adds confusion.

	Hunk 2 skips DeleteSelf event for sub-directories, they receive the
	Delete event anyway.

	Hunk 3 makes sure that we use a combination of Deleted+Created
	notifications instead of a single Renamed notification, if the watched item
	has been moved from one directory to another. This is because RenamedEventArgs
	supports only one directory name: FullPath is always directory+name,
	OldFullPath is always directory+old_name.

	Hunk 5 updates relevant InotifyData instances with the new directory
	name.  Without this, notifications always use the original folder names.

	The last hunk may be a bit slow as it needs to iterate on all the
	InotifyData instances. On the other hand, we are already doing it on the
	Delete event (lines 560:568) and by default inotify allows only 8192 watches
	per user.


svn path=/branches/mono-2-6/mcs/; revision=142959
2009-09-30 05:26:52 +00:00
Gonzalo Paniagua Javier 7d6aa1e322 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* TermInfoDriver.cs: attempt to fix bug #527487.


svn path=/branches/mono-2-6/mcs/; revision=142948
2009-09-30 03:14:42 +00:00
Marek Habersack db66ea05c0 Backport of r142943
svn path=/branches/mono-2-6/mcs/; revision=142944
2009-09-29 23:25:14 +00:00
Marek Habersack 43e34e9221 Backport of r142934
svn path=/branches/mono-2-6/mcs/; revision=142935
2009-09-29 21:52:05 +00:00
Andrew Jorgensen 69154db126 15:40 <kangaroo> its just apples assembler is horribly old and stupid
svn path=/branches/mono-2-6/mono/; revision=142933
2009-09-29 21:43:00 +00:00
Gonzalo Paniagua Javier 1f7a1c183c 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* AsyncResult.cs: do not create the handle if not needed.


svn path=/branches/mono-2-6/mcs/; revision=142930
2009-09-29 21:02:39 +00:00
Gonzalo Paniagua Javier beb7543392 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* EndPointListener.cs: fix matching a listener in presence of a query
	string or anchor.


svn path=/branches/mono-2-6/mcs/; revision=142901
2009-09-29 17:16:29 +00:00
Ankit Jain d0dbad9ad7 Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2009-09-29  Ankit Jain  <[email protected]>

	* SolutionParser.cs (Insert): Show project name in case of a cyclic
	dependency.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-09-29  Ankit Jain  <[email protected]>

	* Exec.cs: Write the commands, which can be multiline,
	to a temporary file, and execute that with "cmd.exe /c"
	on windows and "sh" on non-windows.
	(LogToolCommand): Override, and emit the commands instead
	of the actual args passed to the shell.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-09-29  Ankit Jain  <[email protected]>

	* ProjectTest.cs (TestPropertiesFromImportedProjects): New.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-09-29  Ankit Jain  <[email protected]>

	* GroupingCollection.cs (Evaluate): Mark internal.
	* Project.cs (AddImport): Only evaluate the properties,
	till before the import.

2009-09-29  Ankit Jain  <[email protected]>

	* Project.cs (DoLoad): Don't use XmlReader.Create, for loading
	the project xml, as returned Xml*Reader normalizes the newlines.
	Instead directly use the TextReader with XmlDocument.Load ().

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-09-29  Ankit Jain  <[email protected]>

	* ToolTask.cs (ExecuteTool): Use LogToolCommand, instead of
	directly logging.
	(LogToolCommand): Implement.


svn path=/branches/mono-2-6/mcs/; revision=142871
2009-09-29 14:47:09 +00:00
Alan McGovern 4f8c33af39 2009-09-29 Alan McGovern <[email protected]>
* CategoryAttributeTest.cs: Added new test file.


svn path=/branches/mono-2-6/mcs/; revision=142867
2009-09-29 14:28:01 +00:00
Alan McGovern 90c46b9308 2009-09-29 Alan McGovern <[email protected]>
* DefaultValueAttribute.cs: Implement the cctor which takes
	a Type and a string for the SL2 case.
	* CategoryAttribute.cs: Fix a typo in the CategoryAttribute.Asynchronous
	ctor and fix some SL2 specific naming changes for the default properties.


svn path=/branches/mono-2-6/mcs/; revision=142866
2009-09-29 14:27:34 +00:00
Sebastien Pouliot 8082e15625 2009-09-29 Sebastien Pouliot <[email protected]>
* Timer_2_1.cs: Removed. No longer needed by Moonlight
	[Backport r142853]


svn path=/branches/mono-2-6/mcs/; revision=142855
2009-09-29 12:13:04 +00:00
Sebastien Pouliot 58864d7fca 2009-09-29 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Remove Timer_2_1.cs and 
	related classes from System.dll - they are not required anymore
	since Gonzalo's changes on Socket.Close(int)
	[Backport r142851]


svn path=/branches/mono-2-6/mcs/; revision=142852
2009-09-29 12:10:39 +00:00
Rolf Bjarne Kvinge c79c91c80c 2009-09-29 Rolf Bjarne Kvinge <[email protected]>
* Thread.cs: StartSafe: ignore ThreadAbortExceptions.

	Backport of r142847.

svn path=/branches/mono-2-6/mcs/; revision=142848
2009-09-29 11:01:18 +00:00
Rolf Bjarne Kvinge 8973515d9d 2009-09-29 Rolf Bjarne Kvinge <[email protected]>
* appdomain.c|h: Add a mono_domain_try_unload method which is
	equivalent to mono_domain_unload, except that it returns an exception
	instead of throwing it. Make mono_domain_unload use the
	mono_domain_try_unload method to avoid code-duplication.

	Backport of r142658.

svn path=/branches/mono-2-6/mono/; revision=142846
2009-09-29 10:55:42 +00:00
Gonzalo Paniagua Javier 9346c56300 Fix 1.1 profile
svn path=/branches/mono-2-6/mcs/; revision=142837
2009-09-29 09:25:25 +00:00
Gonzalo Paniagua Javier 5a4e4d261b 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: fix the check for a time-out return value from 'ping'.


svn path=/branches/mono-2-6/mcs/; revision=142821
2009-09-29 05:57:31 +00:00
Gonzalo Paniagua Javier 259bc42379 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* HttpContext.cs: try to load App_GlobalResouces.dll if it has not
	been set but it exists in 'bin'.


svn path=/branches/mono-2-6/mcs/; revision=142818
2009-09-29 05:42:13 +00:00
Andrew Jorgensen 9b28a1de73 use wildcards for .mdbs
svn path=/branches/mono-2-6/mono/; revision=142814
2009-09-29 04:06:21 +00:00
Andrew Jorgensen 1eb27e1f63 don't build moonlight (not installed anyway)
grab entire xbuild directory (it's a deep structure and rpm doesn't like
un-owned directories)

svn path=/branches/mono-2-6/mono/; revision=142810
2009-09-29 03:34:16 +00:00
Marek Habersack 7edb572581 Backport of r142798
svn path=/branches/mono-2-6/mcs/; revision=142799
2009-09-28 21:42:17 +00:00
Ankit Jain 364a5d0b74 * mono-core.spec.in: Add Microsoft.WebApplication.targets
Backport r142787	

svn path=/branches/mono-2-6/mono/; revision=142788
2009-09-28 19:09:15 +00:00
Marek Habersack 3aa9628276 Backport of r142783
svn path=/branches/mono-2-6/mcs/; revision=142785
2009-09-28 18:54:18 +00:00
Marek Habersack bcc8b6fb2d Backport of r142780
svn path=/branches/mono-2-6/mcs/; revision=142781
2009-09-28 18:50:21 +00:00
Marek Habersack eefca1d2f0 Backport of r142773
svn path=/branches/mono-2-6/mcs/; revision=142776
2009-09-28 18:08:33 +00:00
Marek Habersack 075b2246c4 Backport of r142766
svn path=/branches/mono-2-6/mcs/; revision=142767
2009-09-28 16:44:14 +00:00
Atsushi Eno 70390d5989 merge from trunk (r142744, r142745, r142760).
svn path=/branches/mono-2-6/mcs/; revision=142761
2009-09-28 15:24:15 +00:00
Sebastien Pouliot 08a3283160 2009-09-28 Sebastien Pouliot <[email protected]>
* SocketAsyncEventArgs.cs: Default SocketError.AccessDenied on 
	Connect in case none of the DnsEndPoint provides an adequate 
	address (family).
	[Backport r142746]


svn path=/branches/mono-2-6/mcs/; revision=142747
2009-09-28 12:03:28 +00:00
Ankit Jain f65e2f5bde Update xbuild and Microsoft.Build.* from trunk.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-09-28  Ankit Jain  <[email protected]>

	* WriteLinesToFiles.cs (Execute): Handle empty list of
	lines.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-09-28  Ankit Jain  <[email protected]>

	* ToolTask.cs (ProcessOuputTool): Move logging of tool
	output from here to ..
	(ExecuteTool): .. here. As, ProcessOuputTool can be
	overridden.


svn path=/branches/mono-2-6/mcs/; revision=142742
2009-09-28 10:51:40 +00:00
Atsushi Eno 89a11d5206 backport r142735.
svn path=/branches/mono-2-6/mcs/; revision=142736
2009-09-28 04:48:46 +00:00
Gonzalo Paniagua Javier cd1791a956 fix
svn path=/branches/mono-2-6/mcs/; revision=142732
2009-09-28 03:29:48 +00:00
Gonzalo Paniagua Javier 06bce6170a 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* Socket_2_1.cs: Close(int timeout) blocks up to timeout ms if there's
	pending data to be written to the socket. If there's no pending data,
	it closes and returns right away. Instead of using Timer and then
	doing a 'hard' close(), we set the linger option for the socket.


svn path=/branches/mono-2-6/mcs/; revision=142730
2009-09-28 03:19:43 +00:00
Sebastien Pouliot 6eb53dd31a 2009-09-27 Sebastien Pouliot <[email protected]>
* SocketAsyncEventArgs.cs: Don't use Socket.Poll for NET_2_1.
	Throw NIE for use of BufferList in Receive.
	* Socket.cs: Move Close(int) to Socket_2_1.cs. Remove NET_2_1
	defines since the file is not used by Moonlight
	* Socket_2_1.cs: Add Close(int) from Socket. Define out Poll
	and Blocking.
	[Backport r142722]


svn path=/branches/mono-2-6/mcs/; revision=142723
2009-09-27 14:52:09 +00:00
Sebastien Pouliot 329316a6c6 2009-09-27 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Add Timer_2_1.cs and 
	related classes from System.dll
	[Backport of r142720]


svn path=/branches/mono-2-6/mcs/; revision=142721
2009-09-27 14:40:19 +00:00
Sebastien Pouliot cb768e733f 2009-09-27 Sebastien Pouliot <[email protected]>
* Timer_2_1.cs: New. A smaller, internal subset of Timer for 
	Moonlight - needed for Socket.Close(int)
	[Backport of r142718]


svn path=/branches/mono-2-6/mcs/; revision=142719
2009-09-27 14:38:23 +00:00
Gonzalo Paniagua Javier d1973e174d from trunk
svn path=/branches/mono-2-6/mono/; revision=142706
2009-09-27 06:19:31 +00:00
Gonzalo Paniagua Javier fd3fd2455f 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: account for the time spent sending jobs to the queue.


svn path=/branches/mono-2-6/mcs/; revision=142704
2009-09-27 05:48:26 +00:00
Gonzalo Paniagua Javier 7944cbd726 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* TermInfoDriver.cs: avoid segv if the pointer is not properly
	initialized.


svn path=/branches/mono-2-6/mcs/; revision=142701
2009-09-27 05:40:34 +00:00
Gonzalo Paniagua Javier ef0ea82263 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* marshal.c: don't create the handle when calling. It is created later
	if needed.


svn path=/branches/mono-2-6/mono/; revision=142700
2009-09-27 05:32:25 +00:00
Gonzalo Paniagua Javier 2de8607599 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* AsyncResult.cs: don't create the handle if we know the result is
	completed.


svn path=/branches/mono-2-6/mcs/; revision=142698
2009-09-27 05:29:16 +00:00
Gonzalo Paniagua Javier ca5715e665 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* RealProxy.cs: for a custom proxy, retrieve the OutArgs before
	allowing EndInvoke to proceed because after that, OutArgs will throw
	because there is no method. Fixes remoting2 and remoting3 tests.


svn path=/branches/mono-2-6/mcs/; revision=142696
2009-09-27 05:20:25 +00:00
Veerapuram Varadhan 774fd03e78 Test fix.
svn path=/branches/mono-2-6/mcs/; revision=142689
2009-09-26 21:01:35 +00:00
Veerapuram Varadhan 8b8d58705b backport of r142668
svn path=/branches/mono-2-6/mcs/; revision=142688
2009-09-26 21:01:10 +00:00
Ankit Jain c5cbb9cb4b Update xbuild and Microsoft.Build.* from trunk.
In tools/xbuild:
2009-09-27  Ankit Jain  <[email protected]>

	* SolutionParser.cs: Implement support for WebSite projects. These
	projects lack a project file, so properties like references are read
	from the .sln file, and targets are generated for build/clean etc.

2009-09-26  Ankit Jain  <[email protected]>

	* xbuild/Microsoft.Common.targets: Remove _ValidateEssentialProperties
	from BuildDependsOn, which was a hack. It will get invoked from the
	InitialTargets now.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-09-26  Ankit Jain  <[email protected]>

	* TargetTest.cs (TestOverridingTargets): New.

2009-09-26  Ankit Jain  <[email protected]>

	* ProjectTest.cs (TestInitialTargetsWithImports):
	(TestDefaultTargets):
	(TestDefaultTargetsWithImports):
	(TestNoDefaultTargetsWithImports):
	(TestNoDefaultTargets): New tests.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-09-27  Ankit Jain  <[email protected]>

	* ConditionParser.cs: Show the condition being parsed in the
	exception message.

2009-09-26  Ankit Jain  <[email protected]>

	* Expression.cs: Allow '-' in item, property and metadata names.

2009-09-26  Ankit Jain  <[email protected]>

	* Project.cs (Evaluate): Split into this and ..
	(PrepareForEvaluate): .. this.
	(AddImport): Evaluate the current set of properties/items etc,
	before processing the imported project. Honor the Condition
	for the Import.
	(ProcessProjectAttributes): Update MSBuildProjectDefaultTargets
	property.
	* GroupingCollection.cs (Evaluate): Don't evaluate Imports here.
	* BuildItemGroup.cs (Evaluate): Evaluate only once.
	* BuildPropertyGroup.cs (Evaluate): Evaluate only once.

2009-09-26  Ankit Jain  <[email protected]>

	* Project.cs: Get InitialTargets from the imported projects also.
	The combined list of targets are executed, in the order they were
	found.
	DefaultTargets are also read in from imported projects, and the first
	non-empty DefaultTargets found is used.


svn path=/branches/mono-2-6/mcs/; revision=142686
2009-09-26 20:49:54 +00:00
Sebastien Pouliot 95ab6bc64d In Test/System.Net.Sockets:
2009-09-26  Sebastien Pouliot  <[email protected]>

	* SocketAsyncEventArgsTest.cs: New. Unit tests
	[Backport r142675]

In System.Net.Sockets:
2009-09-26  Sebastien Pouliot  <[email protected]>

	* SocketAsyncEventArgs.cs: Fix paramater validations and default 
	values
	[Backport r142675]

In .:
2009-09-26  Sebastien Pouliot  <[email protected]>

	* System_test.dll.sources: Add unit tests for SocketAsyncEventArgs
	[Backport r142675]


svn path=/branches/mono-2-6/mcs/; revision=142676
2009-09-26 15:29:25 +00:00
Andrew Jorgensen 2403930b66 version
svn path=/branches/mono-2-6/mono/; revision=142639
2009-09-25 14:53:05 +00:00
8678 changed files with 595617 additions and 427609 deletions

No files matched your search

-6
View File
@@ -18,7 +18,6 @@
/mono-*.tar.gz
/*.pc
/mono.spec
/mono-core.spec
/semantic.cache
/stamp-h
/stamp-h.in
@@ -30,8 +29,3 @@
/install-sh
/doltlibtool
/doltcompile
/libtool.m4
/ltoptions.m4
/ltsugar.m4
/lt~obsolete.m4
/ltversion.m4
+20 -72
View File
@@ -1,9 +1,5 @@
cmake_minimum_required(VERSION 2.6.4)
# To keep this in sync with the autoconf based system:
# git log -n --format=oneline CMakeLists.txt
# git diff <commit displayed by previous line>..HEAD configure.in Makefile.am
# FIXME: Sanitize the variables, no need for the duplicate am conditionals
# - It would be nice to rename 'CMakeFiles' to something like '.cmake'
# - It would be nice to have a per-target VERBOSE setting
@@ -137,8 +133,9 @@ endfunction()
# The lines commented out using ### are the stuff from configure.in which still
# need to be ported to cmake
# The svn revision of the configure.in used is r132691
set(VERSION 2.7)
set(VERSION 2.5)
ac_define_unquoted(VERSION ${VERSION} "Version number of package")
set(API_VER 1.0)
###
@@ -226,8 +223,7 @@ endif()
###case "$host" in
### *-*-mingw*|*-*-cygwin*)
### set(platform_win32 yes)
### AC_DEFINE(PLATFORM_WIN32,1,[Host Platform is Win32])
### AC_DEFINE(TARGET_WIN32,1,[Target OS is Win32])
### ac_define(PLATFORM_WIN32,1,[Platform is Win32])
### ac_define(DISABLE_PORTABILITY,1,[Disable the io-portability layer])
### ac_define(PLATFORM_NO_SYMLINKS,1,[This platform does not support symlinks])
### if test "x$cross_compiling" = "xno"; then
@@ -379,8 +375,7 @@ if(use_sigposix)
set(PLATFORM_SIGPOSIX 1)
endif()
if(platform_win32)
set(HOST_WIN32 yes)
set(TARGET_WIN32 yes)
set(PLATFORM_WIN32 yes)
endif()
if(${target_os} MATCHES "*linux*")
set(PLATFORM_LINUX yes)
@@ -785,8 +780,7 @@ set(DISABLED_FEATURES none)
ac_define_unquoted(DISABLED_FEATURES "${DISABLED_FEATURES}" "String of disabled features")
###
###if test "x$mono_feature_disable_aot" = "xyes"; then
### AC_DEFINE(DISABLE_AOT_COMPILER, 1, [Disable AOT Compiler])
### AC_MSG_NOTICE([Disabled AOT compiler])
### ac_define(DISABLE_AOT, 1, [Disable AOT support])
###fi
###
###if test "x$mono_feature_disable_profiler" = "xyes"; then
@@ -2077,12 +2071,11 @@ set(enable_llvm ${llvm})
### set(LLVM_CXXFLAGS `$LLVM_CONFIG --cflags`)
### set(LLVM_LDFLAGS `$LLVM_CONFIG --ldflags`)
### LLVM_LIBS=`$LLVM_CONFIG --libs core bitwriter jit x86codegen`
### set(LLVM_LIBS `$LLVM_CONFIG --libs core engine`)
### set(LLVM_LIBS "$LLVM_LDFLAGS $LLVM_LIBS -lstdc++")
### AC_SUBST(LLVM_CXXFLAGS)
### AC_SUBST(LLVM_LIBS)
### AC_SUBST(LLVM_LDFLAGS)
### ac_define(ENABLE_LLVM, 1, [Enable the LLVM back end])
###fi
@@ -2307,14 +2300,6 @@ else()
ac_define(SIZEOF_REGISTER SIZEOF_VOID_P "size of machine integer registers")
endif()
###if test "x$target_byte_order" = "xG_BIG_ENDIAN"; then
### AC_DEFINE(TARGET_BYTE_ORDER,G_BIG_ENDIAN,[byte order of target])
###elif test "x$target_byte_order" = "xG_LITTLE_ENDIAN"; then
### AC_DEFINE(TARGET_BYTE_ORDER,G_LITTLE_ENDIAN,[byte order of target])
###else
### AC_DEFINE(TARGET_BYTE_ORDER,G_BYTE_ORDER,[byte order of target])
###fi
###if (${have_visibility_hidden" = "xyes"; then
### ac_define(HAVE_VISIBILITY_HIDDEN, 1, [Support for the visibility ("hidden") attribute])
###fi
@@ -2426,9 +2411,6 @@ if(${TARGET} STREQUAL "AMD64" OR ${TARGET} STREQUAL "X86")
if (host MATCHES ".*-.*-.*linux.*")
set(mono_debugger_supported yes)
endif()
if (host MATCHES ".*86-apple-darwin.*")
set(mono_debugger_supported yes)
endif()
endif()
endif()
@@ -2517,12 +2499,13 @@ endif()
### ;;
###esac
set(with_moonlight yes CACHE BOOL "If you want to build the Moonlight 2.1 assemblies (defaults to yes)")
set(with_profile4 no CACHE BOOL "If you want to install the 4.0 FX (defaults to no)")
set(with_monotouch no CACHE BOOL "If you want to build the raw MonoTouch 2.1 assemblies (defaults to no)")
set(with_oprofile no)
set(with_oprofile no CACHE STRING "<oprofile install dir> or 'no' to disable oprofile support (defaults to no)")
if (NOT with_oprofile STREQUAL no)
set(preview yes CACHE BOOL "If you want to install the 2.0 FX preview (defaults to yes)")
set(PREVIEW ${preview})
set(moonlight yes CACHE BOOL "If you want to build the Moonlight 2.1 assemblies (defaults to yes)")
set(MOONLIGHT ${moonlight})
set(OPROFILE no)
set(oprofile no CACHE STRING "<oprofile install dir> or 'no' to disable oprofile support (defaults to no)")
if (NOT oprofile STREQUAL no)
### if test x$with_oprofile != xno; then
### set(oprofile_include $with_oprofile/include)
### if test ! -f $oprofile_include/opagent.h; then
@@ -2550,7 +2533,7 @@ set(mcs_docs yes CACHE STRING "If you want to build the documentation under mcs
if(NOT mcs_docs)
set(DISABLE_MCS_DOCS yes)
endif()
if(with_oprofile)
if(OPROFILE)
set(HAVE_OPROFILE yes)
endif()
###AC_SUBST(OPROFILE_CFLAGS)
@@ -2569,10 +2552,6 @@ if(MOONLIGHT)
set(INSTALL_2_1 yes)
endif()
###AM_CONDITIONAL(INSTALL_2_1, [test "x$with_moonlight" = xyes])
###AM_CONDITIONAL(INSTALL_4_0, [test "x$with_profile4" = xyes])
###AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" = xyes])
###AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
###AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
# Define a variable for the target
@@ -2695,36 +2674,6 @@ execute_process (COMMAND chmod a+x runtime/mono-wrapper runtime/monodis-wrapper)
### cd $depth
###],[set(LN_S '$LN_S']))
###AC_CONFIG_COMMANDS([runtime/etc/mono/4.0/machine.config],
###[ depth=../../../..
### case $srcdir in
### [[\\/$]]* | ?:[[\\/]]* ) reldir=$srcdir ;;
### .) reldir=$depth ;;
### *) reldir=$depth/$srcdir ;;
### esac
### $ac_aux_dir/install-sh -d runtime/etc/mono/4.0
### cd runtime/etc/mono/4.0
### rm -f machine.config
### $LN_S $reldir/data/net_4_0/machine.config machine.config
### cd $depth
###],[LN_S='$LN_S'])
###
###AC_CONFIG_COMMANDS([runtime/etc/mono/4.0/web.config],
###[ depth=../../../..
### case $srcdir in
### [[\\/$]]* | ?:[[\\/]]* ) reldir=$srcdir ;;
### .) reldir=$depth ;;
### *) reldir=$depth/$srcdir ;;
### esac
### $ac_aux_dir/install-sh -d runtime/etc/mono/4.0
### cd runtime/etc/mono/4.0
### rm -f web.config
### $LN_S $reldir/data/net_4_0/web.config web.config
### cd $depth
###],[LN_S='$LN_S'])
###
###if test x$enable_quiet_build = xyes; then
### AC_CONFIG_COMMANDS([quiet], [for i in `find mono libgc support -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/scripts/patch-quiet.sh $i; fi; done], [set(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; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
@@ -2801,7 +2750,6 @@ data/config
)
###AC_OUTPUT([
###mono-core.spec
###mono-uninstalled.pc
###scripts/mono-find-provides
###scripts/mono-find-requires
@@ -2838,8 +2786,8 @@ data/config
###web/Makefile
###docs/Makefile
###data/Makefile
###data/net_1_1/Makefile
###data/net_2_0/Makefile
###data/net_4_0/Makefile
###data/net_2_0/Browsers/Makefile
###data/mint.pc
###data/mono.pc
@@ -2954,13 +2902,12 @@ message(STATUS
TLS: ${with_tls}
SIGALTSTACK: ${with_sigaltstack}
Engine: ${jit_status}
Moon Profile: ${with_moonlight}
4.0 Alpha: ${with_profile4}
MonoTouch: ${with_monotouch}
2.0 Beta: ${PREVIEW}
2.1 Alpha: ${MOONLIGHT}
JNI support: ${jdk_headers_found}
libgdiplus: ${libgdiplus_msg}
zlib: ${zlib_msg}
oprofile: ${with_oprofile}
oprofile: ${OPROFILE}
BigArrays: ${enable_big_arrays}
DTrace: ${enable_dtrace}
Parallel Mark: ${enable_parallel_mark}
@@ -3016,7 +2963,8 @@ endif()
#### Distribute the 'mcs' tree too
###dist-hook:
### test -d $(distdir)/mcs || mkdir $(distdir)/mcs
### d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
### d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_1_1 distdir=$$d dist-recursive
### d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 distdir=$$d dist-recursive
###pkgconfigdir = $(libdir)/pkgconfig
###noinst_DATA = mono-uninstalled.pc
-10
View File
@@ -1,16 +1,6 @@
The Mono runtime is licensed under the terms of the GNU
Library General Public License, version 2.
The eglib directory is licensed under the terms of the MIT
X11 license and is a drop-in replacement for Mono's use of
glib 2.0 (which was LGPL).
The Boehm licensing information is in the libgc directory
The SGen Garbage Collector is under the terms of the MIT X11
license
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
+15 -312
View File
@@ -1,51 +1,22 @@
2010-05-20 Miguel de Icaza <miguel@novell.com>
2010-07-12 Andrew Jorgensen <ajorgensen@novell.com>
* configure.in: drop again the pkg.m4 dependency and for eglib
cases (and not-Windows) make it entirely optional.
2010-05-11 Andrew Jorgensen <[email protected]>
* scripts/mono-find-*.in: Look for libmono-2.0.so.1, not libmono.so
and set MONO_PATH to ensure that mscorlib.dll can be found
2010-04-29 Andreas Färber <[email protected]>
* configure.in: Check for -lm necessity.
Fixes linking on Haiku.
Contributed under MIT/X11 license.
2010-04-27 Mark Probst <[email protected]>
* scripts/mono-heapviz: If the major sections are too small, use a
larger width.
2010-04-27 Zoltan Varga <[email protected]>
* configure.in: Switch to eglib by default.
2010-04-26 Geoff Norton <[email protected]>
* configure.in: Allow cross compiling osx for 64-bit
* mono-core.spec.in: Updates, including breaking a circular dep.
2010-04-26 Zoltan Varga <[email protected]>
* configure.in: Applied patch from Robert Nagy ([email protected]). Add
sys/param.h dependencies to a few checks.
2010-04-25 Mark Probst <mark.probst@gmail.com>
2010-04-21 Andrés G. Aragoneses <andres@lindenlab.com>
* tools/sgen/sgen-grep-binprot.c: Support for major Mark&Sweep
collector.
* configure.in: Propagate DISABLE_MCS_DOCS to makefiles so mono/docs
can be disabled. Fixes the build '--with-profile2=no' using
'--with-mcs-docs=no' as a workaround.
2010-04-20 Jonathan Pryor <[email protected]>
* configure.in: Check for the asm/sigcontext.h header.
2010-04-20 Andrés G. Aragoneses <[email protected]>
* README: Replace --with-profile2 with --with-profile4.
2010-04-20 Jonathan Pryor <[email protected]>
* configure.in: On OpenBSD, remove duplicate -pthread options in
@@ -53,15 +24,10 @@
2010-04-20 Jonathan Pryor <[email protected]>
* configure.in: For Linux hosts, remove libmono_ldflags="-lpthread".
It's unnecessary (for !target_win32, pthreads are checked again
later in configure.in), and it breaks Android (which doesn't have
libpthread, but DOES have pthreads in libc).
2010-04-19 Jonathan Pryor <[email protected]>
* configure.in: Disable AC_CHECK_LIB() for pthread, as this breaks
autoconf on BSD platforms. (Why? Who knows -- it's AutoConf!)
* configure.in: For Linux hosts, remove AC_CHECK_LIB(pthread...) in the
primary `case "$host"` block. Using AC_CHECK_LIB() here breaks *BSD,
and it's unnecessary (for !target_win32, pthreads are checked again
later in configure.in).
2010-04-19 Jonathan Pryor <[email protected]>
@@ -84,47 +50,6 @@
* configure.in: Add a --enable-minimal=normalization option to disable support
for string normalization.
2010-04-16 Marek Habersack <[email protected]>
* configure.in: added a check for sysconf(3)
2010-04-14 Miguel de Icaza <[email protected]>
* configure.in: turn the AC_MSG_ERROR into a AC_MSG_WARN since in
Andrew's configuration this aborts the build:
host=i686-pc-linux-gnu != target=i586-suse-linux
And I no longer remember why I added that error in the first
place (we need to determine perhaps the arch/OS but it is
difficult with those strings).
2010-04-08 Andreia Gaita <[email protected]>
* configure.in: Add an extra "only" option to --with-moonlight. This
will configure mono to only build moonlight-specific stuff and
nothing else. --with-moonlight=yes now just adds the moon profile to
the build
* Makefile.am: Add moonlight-specific rules that only build what
moon needs. These are called directly from moon, to do fast
moon+mono+mcs builds
* runtime/Makefile.am: Change the build rules to have a moonlight-only
build configuration, as well as a normal build that optionally includes
it
2010-04-07 Raja R Harinath <[email protected]>
* runtime/Makefile.am ($(tmpinst)/bin/dmcs): Add.
2010-04-06 Andreia Gaita <[email protected]>
* configure.in: add --with-mcs-path option to specify where the mcs
source can be found, if not on ./mcs or ../mcs.
Only touch the mcs and/or olive dirs and config files if we're
actually building them
2010-04-05 Zoltan Varga <[email protected]>
* configure.in: Append -lgc to libmono_ldflags if using an external libgc.
@@ -141,155 +66,19 @@
* configure.in: Applied some openbsd changes from Robert Nagy
<[email protected]>.
2010-04-03 Marek Habersack <mhabersack@novell.com>
2010-01-22 Zoltan Varga <vargaz@gmail.com>
* configure.in: TARGET_WIN32 and MINGW_CROSS_COMPILE are defined
when cross-compiling with MinGW
* build-mingw32.sh: include the 4.0 profile in the zip.
Remove cross-compilation environment bin path from PATH before
compiling native Mono.
Remove autotools cache directory before each compilation phase.
2010-04-02 Marek Habersack <[email protected]>
* configure.in: include -lkernel32 in LDFLAGS when cross-compiling
with MINGW or compiling on Cygwin.
* build-mingw32.sh: some changes to make the compilation work
better on non-SuSE systems.
2010-04-01 Mark Probst <[email protected]>
* scripts/mono-heapviz: Process and output detailed pinning
statistics.
2010-03-29 Andreas Färber <[email protected]>
* configure.in: Add support for Haiku
Contributed under MIT/X11 license.
2010-03-26 Zoltan Varga <[email protected]>
* configure.in: Add a --enable-system-aot option to control the generation of
AOT images during the build.
* configure.in: Check whenever g++ is installed, since libtool requires it
even if no c++ files will be compiled.
2010-03-26 Zoltan Varga <[email protected]>
* configure.in: Apply some openbsd changes from openbsd ports.
2010-03-23 Neale Ferguson <[email protected]>
* configure.in: Change ACCESS_UNALINGED to "yes" for s390/s390x.
2010-03-22 Andreia Gaita <[email protected]>
* configure.in: fix build when doing with-mcs-docs=no on a clean tree
2010-03-19 Zoltan Varga <[email protected]>
* autogen.sh: Pass -Wno-portability to automake to quiet some warnings.
2010-03-16 Jb Evain <[email protected]>
* runtime/Makefile.am, build-mingw32.sh: rename
the net_2_1 profile to moonlight.
2010-03-10 Andrew Jorgensen <[email protected]>
* configure.in: configure eglib even when we are not building
it (fixes dist)
Fri Mar 5 18:58:15 CET 2010 Paolo Molaro <[email protected]>
* configure.in: introduce the --enable-small-config option
to reduce runtime requirements (and capabilities).
2010-03-04 Zoltan Varga <[email protected]>
* Makefile.am (DIST_SUBDIRS): Add eglib.
* autogen.sh: Run eglib's autogen.sh too.
2010-03-02 Rolf Bjarne Kvinge <[email protected]>
* Makefile.am:
* mono/Makefile.am: Only build some subdirs when configured for
moonlight.
* configure.in: If configured --with-moonlight=yes, define MOONLIGHT and
use that variable instead of INSTALL_2_1.
* runtime/Makefile.am: If configured for moonlight, only build
net_2_1_raw.
2010-03-02 Mark Probst <[email protected]>
* tools/sgen-grep-binprot.c: Tool for searching through the binary
protocol files generated by SGen.
2010-02-26 Miguel de Icaza <[email protected]>
* Make the scripts default to 4.0 now.
2009-05-21 Miguel de Icaza <[email protected]>
* Check for sys/select.h as well
Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <[email protected]>
* configure.in, data/mono-2.pc.in, data/Makefile.am,
samples/embed/*: increase the API version.
2010-02-18 Marek Habersack <[email protected]>
* scripts/mono-configuration-crypto.in: added
* scripts/Makefile.am: added mono-configuration-crypto targets
2010-01-27 Zoltan Varga <[email protected]>
* configure.in: Fix the setting of LLVM_CXXFLAGS.
2010-01-22 Andrés G. Aragoneses <[email protected]>
* configure.in: Improve r150055 by checking for CXX=g++ as well, according to
http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00077.html
2010-01-22 Zoltan Varga <[email protected]>
* configure.in: Disable the solaris tar check on !solaris platforms.
2010-01-22 Zoltan Varga <[email protected]>
* configure.in: Check whenever g++ is installed, since libtool requires it
even if no c++ files will be compiled.
See BNC#572871.
2010-01-22 Zoltan Varga <[email protected]>
* configure.in: Add -fno-rrti to CXXFLAGS.
2010-01-20 Rolf Bjarne Kvinge <[email protected]>
* configure.in: Add support for disabling mdb support.
2010-01-15 Zoltan Varga <[email protected]>
* configure.in: Don't define TARGET_WIN32 when --target is used.
2010-01-15 Zoltan Varga <[email protected]>
* scripts/get-cygwin-deps.sh: New file. Contains a script to download and setup
the dependencies needed for compiling mono on cygwin.
2010-01-06 Rodrigo Kumpera <[email protected]>
* scripts/Makefile.am: Add peverify script.
* scripts/peverify.in: Added.
2009-12-22 Geoff Norton <[email protected]>
* configure.in: Fix invalid escaping. Patch from Spina from
@@ -299,33 +88,12 @@ Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <[email protected]>
* configure.in: Add an LLVM_CFLAGS automake variable.
2009-12-18 Zoltan Varga <[email protected]>
* configure.in: Remove the check for valgrind/memcheck.h, we include the file
in our sources now.
2009-12-11 Zoltan Varga <[email protected]>
* configure.in: Applied patch from Matt McClellan ([email protected]). Add a check
for 2 parameter sched_setaffinity in older glibc versions. Fixes
#564000.
2009-11-22 Zoltan Varga <[email protected]>
* configure.in: Disable visibility attributes on cygwin.
2009-11-18 Mark Probst <[email protected]>
* scripts/Makefile.am: Put mono-heapviz into EXTRA_DIST as well.
2009-11-18 Mark Probst <[email protected]>
* scripts/Makefile.am: mono-heapviz is not a managed executable.
2009-11-18 Mark Probst <[email protected]>
* configure.in: Allow SGen without __thread.
2009-11-17 Marek Habersack <[email protected]>
* runtime/Makefile.am (TEST_SUPPORT_FILES): added bin/al2 - needed
@@ -335,53 +103,10 @@ Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <[email protected]>
* configure.in: Add a --enable-minimal=soft-debug option.
2009-11-15 Andreas Faerber <[email protected]>
* configure.in (DTrace): Add missing -s switch for dtrace -h.
Fixes BNC #445074.
Contributed under MIT/X11 license.
2009-11-12 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Handle 'i686-pc-cygwin' too.
2009-11-12 Mark Probst <[email protected]>
* scripts/mono-heapviz: New script for generating SGen heap
visualizations.
* scripts/Makefile.am: mono-heapviz added.
2009-11-11 Zoltan Varga <[email protected]>
* configure.in: Add checks for link.h and dl_iterate_phdr.
2009-11-10 Jonathan Chambers <[email protected]>
* winconfig.h: Bump version string to 2.7.
Contributed under MIT/X11 license.
2009-11-09 Zoltan Varga <[email protected]>
* configure.in: Define LLVM_MAJOR/MINOR_VERSION defines to allow working
around changes in LLVM APIs.
* configure.in: Remove the MONO_ARCH_REGPARMS define.
* configure.in (MONO_ARCH_REGPARMS): Set MONO_ARCH_REGPARS on ARM.
2009-11-08 Rodrigo Kumpera <[email protected]>
* configure.in: Add check for FreeBSD/ppc64.
Patch by Justin Hibbits <[email protected]>.
2009-11-05 Miguel de Icaza <[email protected]>
* Add configure check for xbox360
2009-11-04 Zoltan Varga <[email protected]>
* acinclude.m4 (dolt_supported): Applied patch from Kornél Pál
@@ -402,14 +127,6 @@ Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <[email protected]>
* configure.in: Pass -mno-cygwin to CXX too on windows. Enable AC_PROG_CXX
since it now works on windows too.
2009-10-27 Zoltan Varga <[email protected]>
* configure.in: Add support for cross-compiling to ppc.
2009-10-22 Rodrigo Kumpera <[email protected]>
* configure.in: Add check for the deprecated attribute.
2009-10-12 Zoltan Varga <[email protected]>
* data/Makefile.am (gdb_DATA): Install mono-gdb.py alongside the mono executable.
@@ -417,22 +134,6 @@ Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <[email protected]>
* data/gdb-pre7.0: New directory, containing the mono support files for
gdb versions before 7.0.
2009-10-10 Zoltan Varga <[email protected]>
* */CMakeLists.txt: Update this to latest autoconf files.
2009-10-06 Zoltan Varga <[email protected]>
* configure.in: Bump version to 2.7.
2009-10-01 Raja R Harinath <[email protected]>
* scripts/Makefile.am: Use 'mv -f' instead of 'mv'.
2009-09-30 Marek Safar <[email protected]>
* runtime/Makefile.am, configure.in: Don't build 1.1 profile
2009-09-29 Ankit Jain <[email protected]>
* mono-core.spec.in: Add Microsoft.WebApplication.targets
@@ -5609,3 +5310,5 @@ Wed Jul 11 00:36:36 CEST 2001 Paolo Molaro <[email protected]>
2001-05-30 Miguel de Icaza <[email protected]>
* NEWS:
-7
View File
@@ -54,13 +54,6 @@ For comments, corrections and updates, please contact [email protected]
the terms of the MIT X11, this means that this code can be
used for any purposes by anyone.
** mono/metadata/sgen*: Mono's Copying Collector
This new garbage collector is licensed under the terms of
the MIT X11 license, in hopes that the GC could be reused
by third party projects, follows the same spirit than the
Boehm GC.
** mcs/mcs, mcs/gmcs
The C# Compilers (1.0 and 2.0)
+43 -49
View File
@@ -1,42 +1,33 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
MOONLIGHT_SUBDIRS = $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data
if CROSS_COMPILING
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data runtime scripts man samples web msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native data runtime scripts man samples web tools msvc docs
else
if ONLY_MOONLIGHT
SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
else
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native support data runtime scripts man samples web tools msvc docs
endif
endif
DIST_SUBDIRS = po libgc $(eglib_dir) mono ikvm-native support data runtime scripts man samples web tools msvc docs
EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LICENSE mkinstalldirs autogen.sh
EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LICENSE mkinstalldirs
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
# Distribute the 'mcs' tree too
dist-hook:
test -d $(distdir)/mcs || mkdir $(distdir)/mcs
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_1_1 distdir=$$d dist-recursive
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 distdir=$$d dist-recursive
pkgconfigdir = $(libdir)/pkgconfig
noinst_DATA = mono-uninstalled.pc
DISTCLEANFILES= mono-uninstalled.pc
.PHONY: get-monolite-latest mcs-do-compiler-tests compiler-tests bootstrap-world
# building with monolite
mcslib = $(mcs_topdir)/class/lib
monolite = $(mcslib)/monolite
monolite_url = http://mono.ximian.com/daily/monolite-latest.tar.gz
.PHONY: get-monolite-latest
mono_corlib_version = $(shell sed -n "s/\#define MONO_CORLIB_VERSION //p" $(srcdir)/mono/metadata/appdomain.c)
monolite_url = http://mono.ximian.com/daily/monolite-$(mono_corlib_version)-latest.tar.gz
get-monolite-latest:
-rm -fr $(mcslib)/monolite-*
-mkdir -p $(mcslib)
@@ -45,43 +36,42 @@ get-monolite-latest:
cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
cd $(mcslib) && mv -f monolite-* monolite
.PHONY: validate do-build-mono-mcs mcs-do-clean mcs-do-tests
validate: do-build-mono-mcs
$(MAKE) mcs-do-tests
do-build-mono-mcs: mcs-do-clean
compiler-tests: build-test-mono-mcs-moon
compiler-tests-net_2_0:
-rm -f $(mcs_topdir)/build/common/Consts.cs.save
-mv -f $(mcs_topdir)/build/common/Consts.cs $(mcs_topdir)/build/common/Consts.cs.save
cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0_bootstrap clean
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
mcs-do-clean:
cd runtime && $(MAKE) clean-local
cd mono/tests && $(MAKE) clean
mcs-do-tests:
cd runtime && $(MAKE) check-local
cd mono/tests && $(MAKE) check
$(MAKE) test_profiles=net_2_0 mcs-do-compiler-tests
.PHONY: compiler-tests mcs-do-compiler-tests
compiler-tests:
$(MAKE) test_select='TEST_SUBDIRS="tests errors"' validate
mcs-do-compiler-tests:
$(MAKE) test_select='TEST_SUBDIRS="tests errors"' mcs-do-tests
.PHONY: bootstrap-world
bootstrap-world: compiler-tests
$(MAKE) install
if MOONLIGHT
moon-do-build: config.h
@list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
echo "Making all in $$subdir"; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) all); \
done;
cd $(mcs_topdir) && NO_DIR_CHECK=1 $(MAKE) PROFILE=moonlight_raw all
bootstrap-world-net_2_0: compiler-tests-net_2_0
$(MAKE) install
moon-do-clean:
@list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
echo "Making clean in $$subdir"; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean); \
done;
cd $(mcs_topdir) && NO_DIR_CHECK=1 $(MAKE) PROFILE=moonlight_raw clean
endif
# 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
mcs-do-compiler-tests:
cd runtime && $(MAKE) test_select='TEST_SUBDIRS="tests errors"' check-local
cd mono/tests && $(MAKE) check
win32getdeps:
wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
@@ -100,6 +90,10 @@ win32getdeps:
win32setup:
makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
bootstrap: all
@echo "*** 'make bootstrap' is obsolete. Just run 'make' to perform a combined mono+mcs build"
exit 1
patch-quiet:
find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;
+3 -27
View File
@@ -259,17 +259,6 @@ This is Mono.
This value is set to `no' by default.
--enable-small-config=yes,no
Enable some tweaks to reduce memory usage and disk footprint at
the expense of some capabilities. Typically this means that the
number of threads that can be created is limited (256), that the
maxmimum heap size is also reduced (256 MB) and other such limitations
that still make mono useful, but more suitable to embedded devices
(like mobile phones).
This value is set to `no' by default.
--with-ikvm-native=yes,no
Controls whether the IKVM JNI interface library is
@@ -278,10 +267,10 @@ This is Mono.
This defaults to `yes'.
--with-profile4=yes,no
--with-profile2=yes,no
Whether you want to build the 4.x profile libraries
and runtime.
Whether you want to build the 2.x libraries (support
for Generics and the 2.0/3.5 APIS).
It defaults to `yes'.
@@ -407,19 +396,6 @@ This is Mono.
framework, and the various SSA-based
optimizations.
--enable-llvm
This enables the use of LLVM as a code generation engine
for Mono. The LLVM code generator and optimizer will be
used instead of Mono's built-in code generator for both
Just in Time and Ahead of Time compilations.
See the http://www.mono-project.com/Mono_LLVM for the
full details and up-to-date information on this feature.
You will need to have an LLVM built that Mono can link
against
--enable-big-arrays
This enables the use arrays whose indexes are larger
+1 -7
View File
@@ -119,7 +119,7 @@ if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
fi
echo "Running automake --gnu $am_opt ..."
automake --add-missing --gnu -Wno-portability $am_opt ||
automake --add-missing --gnu $am_opt ||
{ echo "**Error**: automake failed."; exit 1; }
echo "Running autoconf ..."
autoconf || { echo "**Error**: autoconf failed."; exit 1; }
@@ -130,12 +130,6 @@ if test -d $srcdir/libgc; then
echo Done running libgc/autogen.sh ...
fi
if test -d $srcdir/eglib; then
echo Running eglib/autogen.sh ...
(cd $srcdir/eglib ; NOCONFIGURE=1 ./autogen.sh "$@")
echo Done running eglib/autogen.sh ...
fi
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
+9 -63
View File
@@ -1,32 +1,19 @@
#!/bin/bash -e
CURDIR="`pwd`"
MINGW=i386-mingw32msvc
CROSS_DIR=/opt/cross/$MINGW
CROSS_DIR=${1:-/opt/cross/}
MINGW=${1:-i386-mingw32msvc}
CROSS_BIN_DIR="$CROSS_DIR/bin"
CROSS_DLL_DIR="$CROSS_DIR/$MINGW/bin"
CROSS_PKG_CONFIG_DIR=$CROSS_DIR/$MINGW/lib/pkgconfig
COPY_DLLS="libgio*.dll libglib*.dll libgmodule*.dll libgthread*.dll libgobject*.dll"
PATH=$CROSS_BIN_DIR:$PATH
INSTALL_DESTDIR="$CURDIR/mono-win32"
PROFILES="default net_2_0 net_3_5 net_4_0 moonlight"
TEMPORARY_PKG_CONFIG_DIR=/tmp/$RANDOM-pkg-config-$RANDOM
ORIGINAL_PATH="$PATH"
PROFILES="default net_2_0 net_2_1 net_3_5"
export CPPFLAGS_FOR_EGLIB CFLAGS_FOR_EGLIB CPPFLAGS_FOR_LIBGC CFLAGS_FOR_LIBGC
function cleanup ()
{
if [ -d "$TEMPORARY_PKG_CONFIG_DIR" ]; then
rm -rf "$TEMPORARY_PKG_CONFIG_DIR"
fi
}
export PATH
function setup ()
{
local pcname
CROSS_BIN_DIR="$CROSS_DIR/bin"
CROSS_DLL_DIR="$CROSS_DIR/bin"
CROSS_PKG_CONFIG_DIR=$CROSS_DIR/lib/pkgconfig
PATH=$CROSS_BIN_DIR:$PATH
export PATH
if [ -d ./.git/svn ]; then
SVN_INFO='git svn info'
elif [ -d ./.svn ]; then
@@ -50,15 +37,6 @@ function setup ()
NOCONFIGURE=yes
export NOCONFIGURE
if [ -d "$CROSS_PKG_CONFIG_DIR" ]; then
install -d -m 755 "$TEMPORARY_PKG_CONFIG_DIR"
for pc in "$CROSS_PKG_CONFIG_DIR"/*.pc; do
pcname="`basename $pc`"
sed -e "s;^prefix=.*;prefix=$CROSS_DIR;g" < $pc > "$TEMPORARY_PKG_CONFIG_DIR"/$pcname
done
CROSS_PKG_CONFIG_DIR="$TEMPORARY_PKG_CONFIG_DIR"
fi
echo Mono Win32 installation prefix: $MONO_PREFIX
}
@@ -66,11 +44,8 @@ function build ()
{
./autogen.sh
BUILD="`./config.guess`"
if [ -f ./Makefile ]; then
make distclean
rm -rf autom4te.cache
fi
if [ ! -d "$CURDIR/build-cross-windows" ]; then
@@ -79,18 +54,13 @@ function build ()
cd "$CURDIR/build-cross-windows"
rm -rf *
../configure --prefix=$MONO_PREFIX --with-crosspkgdir=$CROSS_PKG_CONFIG_DIR --build=$BUILD --target=$MINGW --host=$MINGW --enable-parallel-mark --program-transform-name="" --with-tls=none --disable-mcs-build --disable-embed-check --enable-win32-dllmain=yes --with-libgc-threads=win32 --with-profile4=yes
../configure --prefix=$MONO_PREFIX --with-crosspkgdir=$CROSS_PKG_CONFIG_DIR --target=$MINGW --host=$MINGW --enable-parallel-mark --program-transform-name=""
make
cd "$CURDIR"
if [ ! -d "$CURDIR/build-cross-windows-mcs" ]; then
mkdir "$CURDIR/build-cross-windows-mcs"
fi
rm -rf autom4te.cache
unset PATH
PATH="$ORIGINAL_PATH"
export PATH
cd "$CURDIR/build-cross-windows-mcs"
rm -rf *
../configure --prefix=$MONO_PREFIX --enable-parallel-mark
@@ -131,32 +101,8 @@ function doinstall ()
}
function usage ()
{
cat <<EOF
Usage: build-mingw32.sh [OPTIONS]
where OPTIONS are:
-d DIR Sets the location of directory where MINGW is installed [$CROSS_DIR]
-m MINGW Sets the MINGW target name to be passed to configure [$MINGW]
EOF
exit 1
}
trap cleanup 0
pushd . > /dev/null
while getopts "d:m:h" opt; do
case "$opt" in
d) CROSS_DIR="$OPTARG" ;;
m) MINGW="$OPTARG" ;;
*) usage ;;
esac
done
setup
build
doinstall
+156 -255
View File
@@ -6,10 +6,10 @@ AC_CANONICAL_SYSTEM
m4_ifdef([_A][M_PROG_TAR],[_A][M_SET_OPTION([tar-ustar])])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono,2.7)
AM_INIT_AUTOMAKE(mono,2.6.7)
AM_MAINTAINER_MODE
API_VER=2.0
API_VER=1.0
AC_SUBST(API_VER)
AC_PROG_LN_S
@@ -20,6 +20,7 @@ case $host_os in
*cygwin* ) LN_S='cp -p';;
esac
dnl
dnl libgc checks
dnl
@@ -74,33 +75,25 @@ case "$host" in
;;
esac
host_win32=no
target_win32=no
case "$host" in
*-mingw*|*-*-cygwin*)
*-*-mingw*|*-*-cygwin*)
platform_win32=yes
AC_DEFINE(PLATFORM_WIN32,1,[Host Platform is Win32])
AC_DEFINE(HOST_WIN32,1,[Host Platform is Win32])
AC_DEFINE(TARGET_WIN32,1,[Target OS is Win32])
AC_DEFINE(DISABLE_PORTABILITY,1,[Disable the io-portability layer])
AC_DEFINE(PLATFORM_NO_SYMLINKS,1,[This platform does not support symlinks])
host_win32=yes
if test "x$cross_compiling" = "xno"; then
target_win32=yes
if test "x$host" == "x$target"; then
AC_DEFINE(TARGET_WIN32,1,[Target OS is Win32])
fi
CC="gcc -mno-cygwin -g"
CXX="g++ -mno-cygwin -g"
# So libgc configure gets -mno-cygwin
export CC
export CXX
else
target_win32=yes
AC_DEFINE(TARGET_WIN32,1,[Target OS is Win32/MinGW])
AC_DEFINE(MINGW_CROSS_COMPILE,1,[Cross-compiling using MinGW])
fi
HOST_CC="gcc"
# Windows 2000 is required that includes Internet Explorer 5.01
CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024"
LDFLAGS="$LDFLAGS -lmswsock -lws2_32 -lole32 -loleaut32 -lpsapi -lversion -ladvapi32 -lwinmm -lkernel32"
LDFLAGS="$LDFLAGS -lmswsock"
libmono_cflags="-mno-cygwin -mms-bitfields -mwindows"
libmono_ldflags="-mno-cygwin -mms-bitfields -mwindows"
libdl=
@@ -112,7 +105,7 @@ case "$host" in
libgc_configure_args="$libgc_configure_args --enable-win32-dllmain=yes"
;;
*-*-*netbsd*)
host_win32=no
platform_win32=no
CPPFLAGS="$CPPFLAGS -D_REENTRANT -DGC_NETBSD_THREADS -D_GNU_SOURCE"
libmono_cflags="-D_REENTRANT"
LDFLAGS="$LDFLAGS -pthread"
@@ -125,7 +118,7 @@ case "$host" in
use_sigposix=yes
;;
*-*-*freebsd*)
host_win32=no
platform_win32=no
if test "x$PTHREAD_CFLAGS" = "x"; then
CPPFLAGS="$CPPFLAGS -DGC_FREEBSD_THREADS"
libmono_cflags=
@@ -154,8 +147,8 @@ case "$host" in
use_sigposix=yes
;;
*-*-*openbsd*)
host_win32=no
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_OPENBSD_THREADS -DPLATFORM_BSD -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
platform_win32=no
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_OPENBSD_THREADS -DPLATFORM_BSD -D_REENTRANT -DUSE_MMAP"
if test "x$disable_munmap" != "xyes"; then
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
fi
@@ -170,7 +163,7 @@ case "$host" in
use_sigposix=yes
;;
*-*-linux*)
host_win32=no
platform_win32=no
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
if test "x$disable_munmap" != "xyes"; then
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
@@ -182,7 +175,7 @@ case "$host" in
use_sigposix=yes
;;
*-*-hpux*)
host_win32=no
platform_win32=no
CPPFLAGS="$CPPFLAGS -DGC_HPUX_THREADS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT"
# +ESdbgasm only valid on bundled cc on RISC
# silently ignored for ia64
@@ -201,7 +194,7 @@ case "$host" in
use_sigposix=yes
;;
*-*-solaris*)
host_win32=no
platform_win32=no
CPPFLAGS="$CPPFLAGS -DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_MMAP -DUSE_MUNMAP -DPLATFORM_SOLARIS"
need_link_unlink=yes
libmono_cflags="-D_REENTRANT"
@@ -214,7 +207,7 @@ case "$host" in
;;
*-*-darwin*)
parallel_mark="Disabled_Currently_Hangs_On_MacOSX"
host_win32=no
platform_win32=no
platform_darwin=yes
CPPFLAGS="$CPPFLAGS -no-cpp-precomp -D_THREAD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP"
CPPFLAGS="$CPPFLAGS -DGetCurrentProcess=MonoGetCurrentProcess -DGetCurrentThread=MonoGetCurrentThread -DCreateEvent=MonoCreateEvent"
@@ -235,7 +228,6 @@ case "$host" in
dnl its gcc defaults to 64-bit mode. They have also deprecated the usage of ucontext
dnl we need to set some flags to build our 32-bit binaries on 10.6 properly
case "$host" in
dnl Snow Leopard config.guess reports as this
i*86-*-darwin10*)
BROKEN_DARWIN_FLAGS="-arch i386 -D_XOPEN_SOURCE -mmacosx-version-min=10.5"
CPPFLAGS="$CPPFLAGS $BROKEN_DARWIN_FLAGS"
@@ -249,20 +241,9 @@ case "$host" in
;;
esac
;;
*-*-haiku*)
host_win32=no
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_THREAD_SAFE"
libmono_cflags="-D_REENTRANT -D_THREAD_SAFE"
libdl=
LIBS="$LIBS -lnetwork"
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID)
libgc_threads=pthreads
use_sigposix=yes
;;
*)
AC_MSG_WARN([*** Please add $host to configure.in checks!])
host_win32=no
platform_win32=no
libdl="-ldl"
;;
esac
@@ -272,8 +253,7 @@ if test x$need_link_unlink = xyes; then
AC_DEFINE(NEED_LINK_UNLINK, 1, [Define if Unix sockets cannot be created in an anonymous namespace])
fi
AM_CONDITIONAL(HOST_WIN32, test x$host_win32 = xyes)
AM_CONDITIONAL(TARGET_WIN32, test x$target_win32 = xyes)
AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
AM_CONDITIONAL(PLATFORM_LINUX, echo x$target_os | grep -q linux)
AM_CONDITIONAL(PLATFORM_DARWIN, test x$platform_darwin = xyes)
AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes)
@@ -294,13 +274,11 @@ AC_SUBST(CCAS)
AC_SUBST(CCASFLAGS)
# AC_PROG_CXX helpfully sets CXX to g++ even if no c++ compiler is found so check
# GXX instead. See http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00056.html
if test "x$CXX" = "xg++"; then
if test "x$GXX" != "xyes"; then
# automake/libtool is so broken, it requires g++ even if the c++ sources
# are inside automake conditionals
AC_MSG_ERROR([You need to install g++])
fi
# GXX instead
if test "$GXX" != "yes"; then
# automake/libtool is so broken, it requires g++ even if the c++ sources
# are inside automake conditionals
AC_MSG_ERROR([You need to install g++])
fi
AC_CHECK_PROG(BISON, bison,yes,no)
@@ -326,7 +304,7 @@ AC_SUBST(HOST_CC)
AC_SUBST(BUILD_EXEEXT)
AM_CONDITIONAL(CROSS_COMPILING, [test x$cross_compiling = xyes])
AM_CONDITIONAL(USE_BATCH_FILES, [test x$host_win32 = xyes -a x$cross_compiling = xyes])
AM_CONDITIONAL(USE_BATCH_FILES, [test x$platform_win32 = xyes -a x$cross_compiling = xyes])
# Set STDC_HEADERS
AC_HEADER_STDC
@@ -349,7 +327,7 @@ fi
AM_CONDITIONAL(NO_VERSION_SCRIPT, test x$no_version_script = xyes)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h sys/param.h)
AC_CHECK_HEADERS(sys/param.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h sys/select.h netinet/tcp.h netinet/in.h unistd.h sys/types.h link.h asm/sigcontext.h)
AC_CHECK_HEADERS(sys/user.h, [], [],
@@ -445,12 +423,6 @@ else
mcsdir=../mcs
fi
AC_ARG_WITH(mcs-path, [ --with-mcs-path=/path/to/mcs Specify an alternate mcs source tree],
if test x$with_mcs_path != "x" -a -d $with_mcs_path ; then
mcsdir=$with_mcs_path
fi
)
#
# A sanity check to catch cases where the package was unpacked
# with an ancient tar program (Solaris)
@@ -461,7 +433,7 @@ AC_ARG_ENABLE(solaris-tar-check,
if test x"$do_solaris_tar_check" = xyes -a x"$enable_solaris_tar_check" = xyes; then
AC_MSG_CHECKING(integrity of package)
if test -f $mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
if test -f $srcdir/$mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
then
AC_MSG_RESULT(ok)
else
@@ -470,13 +442,8 @@ if test x"$do_solaris_tar_check" = xyes -a x"$enable_solaris_tar_check" = xyes;
fi
fi
if test "x$with_mcs_path" != "x"; then
mcs_topdir=$(cd "$mcsdir" && pwd)
mcs_topdir_from_srcdir=$mcs_topdir
else
mcs_topdir=$(cd "$srcdir/$mcsdir" && pwd)
mcs_topdir_from_srcdir='$(top_builddir)'/$mcsdir
fi
mcs_topdir='$(top_srcdir)/'$mcsdir
mcs_topdir_from_srcdir='$(top_builddir)/'$mcsdir
## Maybe should also disable if mcsdir is invalid. Let's punt the issue for now.
AM_CONDITIONAL(BUILD_MCS, [test x$cross_compiling = xno && test x$enable_mcs_build != xno])
@@ -520,6 +487,9 @@ esac
AC_SUBST([libgdiplus_loc])
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],
@@ -535,14 +505,11 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Chan
)
AC_ARG_WITH([glib],
[ --with-glib=embedded|system Choose glib API: system or embedded (default to embedded)],
[], [with_glib=embedded])
[ --with-glib=embedded|system Choose glib API: system or embedded (default to system)],
[], [with_glib=system])
eglib_dir=
ac_configure_args="$ac_configure_args \"CPPFLAGS_FOR_EGLIB=$EGLIB_CPPFLAGS\" \"CFLAGS_FOR_EGLIB=$CFLAGS_FOR_EGLIB\""
AC_CONFIG_SUBDIRS(eglib)
case $with_glib in
embedded)
GLIB_CFLAGS='-I$(top_srcdir)/eglib/src -I$(top_builddir)/eglib/src'
@@ -552,15 +519,20 @@ embedded)
GMODULE_CFLAGS="$GLIB_CFLAGS"
GMODULE_LIBS="$GLIB_LIBS"
eglib_dir=eglib
ac_configure_args="$ac_configure_args \"CPPFLAGS_FOR_EGLIB=$EGLIB_CPPFLAGS\" \"CFLAGS_FOR_EGLIB=$CFLAGS_FOR_EGLIB\""
AC_CONFIG_SUBDIRS(eglib)
;;
system)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
if test "x$cross_compiling" = "xyes"; then
pkg_config_path="$PKG_CONFIG_PATH"
unset PKG_CONFIG_PATH
fi
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
echo "cross_compiling=$cross_compiling"
BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
if test "x$cross_compiling" = "xyes"; then
PKG_CONFIG_PATH=$pkg_config_path
export PKG_CONFIG_PATH
fi
## Versions of dependencies
GLIB_REQUIRED_VERSION=2.4.0
@@ -568,9 +540,6 @@ system)
dnl
dnl No, you will not replace this check with a pkg.m4 check
dnl
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
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`
@@ -593,7 +562,7 @@ AC_SUBST(BUILD_GLIB_CFLAGS)
AC_SUBST(BUILD_GLIB_LIBS)
AC_SUBST(eglib_dir)
if test x$cross_compiling$host_win32 = xnoyes; then
if test x$cross_compiling$platform_win32 = xnoyes; then
AC_MSG_CHECKING(for cygwin glib2-dev package)
if [ cygcheck --f /usr/lib/libglib-2.0.dll.a | grep -q glib2-devel ]; then
AC_MSG_RESULT(found)
@@ -630,7 +599,7 @@ if test "x$enable_static" = "xno"; then
with_static_mono=no
fi
if test "x$host_win32" = "xyes"; then
if test "x$platform_win32" = "xyes"; then
# Boehm GC requires the runtime to be in its own dll
with_static_mono=no
fi
@@ -657,18 +626,6 @@ if test "x$with_xen_opt" = "xyes"; then
fi
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet runtime build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AC_ARG_ENABLE(small-config, [ --enable-small-config Enable tweaks to reduce requirements (and capabilities)], enable_small_config=$enableval, enable_small_config=no)
if test x$enable_small_config = xyes; then
AC_DEFINE(MONO_SMALL_CONFIG,1,[Reduce runtime requirements (and capabilities)])
CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC -DSMALL_CONFIG"
fi
if test x$AOT_SUPPORTED != xyes; then
AOT_SUPPORTED=no
fi
AC_ARG_ENABLE(system-aot, [ --enable-system-aot Enable the Ahead-Of-Time compilation of system assemblies during the build (on by default on some platforms)], enable_system_aot=$enableval, enable_system_aot=$AOT_SUPPORTED)
DISABLED_FEATURES=none
@@ -806,20 +763,6 @@ AC_TRY_COMPILE([], [
AC_MSG_RESULT(no)
])
AC_MSG_CHECKING(for deprecated __attribute__)
AC_TRY_COMPILE([
int doit (void) __attribute__ ((deprecated));
int doit (void) { return 0; }
], [
return 0;
], [
have_deprecated=yes
AC_MSG_RESULT(yes)
], [
have_deprecated=no
AC_MSG_RESULT(no)
])
AC_ARG_ENABLE(parallel-mark, [ --enable-parallel-mark Enables GC Parallel Marking], enable_parallel_mark=$enableval, enable_parallel_mark=$parallel_mark)
if test x$enable_parallel_mark = xyes; then
libgc_configure_args="$libgc_configure_args --enable-parallel-mark"
@@ -923,24 +866,7 @@ dnl
dnl End of libgc checks
dnl
dnl *************************************
dnl *** Checks for zero length arrays ***
dnl *************************************
AC_MSG_CHECKING(whether $CC supports zero length arrays)
AC_TRY_COMPILE([
struct s {
int length;
char data [0];
};
], [], [
AC_MSG_RESULT(yes)
AC_DEFINE_UNQUOTED(MONO_ZERO_LEN_ARRAY, 0, [Length of zero length arrays])
], [
AC_MSG_RESULT(no)
AC_DEFINE_UNQUOTED(MONO_ZERO_LEN_ARRAY, 1, [Length of zero length arrays])
])
if test x$target_win32 = xno; then
if test x$platform_win32 = xno; then
dnl hires monotonic clock support
AC_SEARCH_LIBS(clock_gettime, rt)
@@ -1009,8 +935,6 @@ if test x$target_win32 = xno; then
AC_CHECK_FUNCS(getrusage)
AC_CHECK_FUNCS(getpriority)
AC_CHECK_FUNCS(setpriority)
AC_CHECK_FUNCS(dl_iterate_phdr)
AC_CHECK_FUNCS(sysconf)
AC_CHECK_FUNCS(sched_setaffinity)
@@ -1280,6 +1204,23 @@ if test x$target_win32 = xno; then
AC_MSG_RESULT($mono_cv_sizeof_sunpath)
AC_DEFINE_UNQUOTED(MONO_SIZEOF_SUNPATH, $mono_cv_sizeof_sunpath, [Sizeof sock_un.sun_path])
dnl *************************************
dnl *** Checks for zero length arrays ***
dnl *************************************
AC_MSG_CHECKING(whether $CC supports zero length arrays)
AC_TRY_COMPILE([
struct s {
int length;
char data [0];
};
], [], [
AC_MSG_RESULT(yes)
AC_DEFINE_UNQUOTED(MONO_ZERO_ARRAY_LENGTH, 0, [Length of zero length arrays])
], [
AC_MSG_RESULT(no)
AC_DEFINE_UNQUOTED(MONO_ZERO_ARRAY_LENGTH, 1, [Length of zero length arrays])
])
dnl *****************************
dnl *** Checks for libxnet ***
dnl *****************************
@@ -1528,7 +1469,7 @@ if test x$target_win32 = xno; then
dnl *********************************
dnl *** Checks for math functions ***
dnl *********************************
AC_SEARCH_LIBS(sqrtf, m)
LIBS="$LIBS -lm";
if test "x$has_broken_apple_cpp" != "xyes"; then
AC_CHECK_FUNCS(finite, , AC_MSG_CHECKING(for finite in math.h)
AC_TRY_LINK([#include <math.h>],
@@ -1862,12 +1803,12 @@ AC_MSG_RESULT($try_dev_random)
case "{$target}" in
*-openbsd*)
NAME_DEV_RANDOM="/dev/srandom"
NAME_DEV_RANDOM="/dev/arandom"
;;
dnl Win32 does not have /dev/random, they have their own method...
*-mingw*|*-*-cygwin*)
*-*-mingw*|*-*-cygwin*)
ac_cv_have_dev_random=no
;;
@@ -1895,12 +1836,12 @@ else
AC_MSG_RESULT(has been disabled)
fi
if test "x$host_win32" = "xyes"; then
if test "x$platform_win32" = "xyes"; then
AC_DEFINE(HAVE_CRYPT_RNG)
fi
if test "x$ac_cv_have_dev_random" = "xno" \
&& test "x$host_win32" = "xno"; then
&& test "x$platform_win32" = "xno"; then
AC_MSG_WARN([[
***
*** A system-provided entropy source was not found on this system.
@@ -1924,6 +1865,12 @@ if test "x$try_shared_handles" != "xyes"; then
AC_SUBST(DISABLE_SHARED_HANDLES)
fi
if test x$gc = xsgen; then
if test x$with_tls != x__thread; then
AC_MSG_ERROR([The SGEN garbage collector depends on a working __thread implementation, and either --with-thread=pthread was passed to configure, or the configure test for __thread failed.])
fi
fi
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])
@@ -1952,7 +1899,7 @@ if test "x$enable_dtrace" = "xyes"; then
if test "x$DTRACE" = "xno"; then
AC_MSG_RESULT([dtrace utility not found, dtrace support disabled.])
enable_dtrace=no
elif ! $DTRACE -h -s $srcdir/data/mono.d > /dev/null 2>&1; then
elif ! $DTRACE -h $srcdir/data/mono.d > /dev/null 2>&1; then
AC_MSG_RESULT([dtrace doesn't support -h option, dtrace support disabled.])
enable_dtrace=no
fi
@@ -2012,9 +1959,7 @@ if test "x$enable_llvm" = "xyes"; then
# The output of --cflags seems to include optimizations flags too
LLVM_CFLAGS=`$LLVM_CONFIG --cflags | sed -e 's/-O2//g' | sed -e 's/-O0//g' | sed -e 's/-fomit-frame-pointer//g' | sed -e 's/-fPIC//g'`
# LLVM is compiled with -fno-rtti, so we need this too, since our classes inherit
# from LLVM classes.
LLVM_CXXFLAGS="`$LLVM_CONFIG --cxxflags` -fno-rtti"
LLVM_CXXFLAGS=`$LLVM_CONFIG --cxxflags`
LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`
LLVM_LIBS=`$LLVM_CONFIG --libs core bitwriter jit x86codegen`
LLVM_LIBS="$LLVM_LDFLAGS $LLVM_LIBS -lstdc++"
@@ -2106,13 +2051,7 @@ case "$host" in
# foo.c:6: warning: visibility attribute not supported in this configuration; ignored
# ld: fatal: relocation error: R_386_GOTOFF: file /var/tmp//ccxYR96k.o: symbol astruct: relocation must bind locally
have_visibility_hidden=no
;;
cygwin*)
have_visibility_hidden=no
;;
haiku*)
LIBC=libroot.so
;;
esac
;;
x86_64-*-* | amd64-*-*)
@@ -2169,7 +2108,7 @@ case "$host" in
INTL="libc.so.6.1"
esac
;;
*-mingw*|*-*-cygwin*)
*-*-mingw*|*-*-cygwin*)
# When this is enabled, it leads to very strange crashes at runtime (gcc-3.4.4)
have_visibility_hidden=no
INTL="intl"
@@ -2184,13 +2123,14 @@ case "$host" in
;;
hppa*linux*)
TARGET=HPPA;
AC_DEFINE(MONO_ARCH_REGPARMS,1,[Architecture uses registers for Parameters])
arch_target=hppa;
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
jit_wanted=true
;;
macppc-*-openbsd* | powerpc*-*-linux* | powerpc-*-openbsd* | \
powerpc-*-sysv* | powerpc-*-darwin* | powerpc-*-netbsd* | powerpc-*-freebsd* )
powerpc-*-sysv* | powerpc-*-darwin* | powerpc-*-netbsd* )
if test "x$ac_cv_sizeof_void_p" = "x8"; then
TARGET=POWERPC64;
CPPFLAGS="$CPPFLAGS -D__mono_ppc__ -D__mono_ppc64__"
@@ -2199,6 +2139,7 @@ case "$host" in
TARGET=POWERPC;
CPPFLAGS="$CPPFLAGS -D__mono_ppc__"
fi
AC_DEFINE(MONO_ARCH_REGPARMS,1,[Architecture uses registers for Parameters])
arch_target=ppc;
JIT_SUPPORTED=yes
jit_wanted=true
@@ -2210,6 +2151,8 @@ case "$host" in
JIT_SUPPORTED=yes
CPPFLAGS="$CPPFLAGS -DARM_FPU_NONE=1"
jit_wanted=true
# libgc's gc_locks.h depends on this
NESTED_LIBGC_FLAGS="$NESTED_LIBGC_FLAGS -DHAVE_ARMV6"
;;
arm*-linux*)
TARGET=ARM;
@@ -2220,8 +2163,9 @@ case "$host" in
;;
s390-*-linux*)
TARGET=S390;
AC_DEFINE(MONO_ARCH_REGPARMS,1,[Architecture uses registers for Parameters])
arch_target=s390;
ACCESS_UNALIGNED="yes"
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
jit_wanted=true
# Required CFLAGS for s390[x]. USE_STRING_INLINES is automatic with gcc 4.1
@@ -2229,44 +2173,15 @@ case "$host" in
;;
s390x-*-linux*)
TARGET=S390x;
AC_DEFINE(MONO_ARCH_REGPARMS,1,[Architecture uses registers for Parameters])
arch_target=s390x;
ACCESS_UNALIGNED="yes"
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
jit_wanted=true
CFLAGS="$CFLAGS -mbackchain -D__USE_STRING_INLINES"
;;
esac
if test "x$host" != "x$target"; then
case "$target" in
powerpc64-ps3-linux-gnu)
TARGET=POWERPC64
arch_target=powerpc64
AC_DEFINE(TARGET_PS3, 1, [...])
AC_DEFINE(MONO_CROSS_COMPILE,1,[The runtime is compiled for cross-compiling mode])
# It would be better to just use TARGET_POWERPC64, but lots of code already
# uses this define
AC_DEFINE(__mono_ppc64__, 1, [...])
AC_DEFINE(__mono_ilp32__, 1, [64 bit mode with 4 byte longs and pointers])
sizeof_register=8
target_byte_order=G_BIG_ENDIAN
;;
powerpc64-xbox360-linux-gnu)
TARGET=POWERPC64
arch_target=powerpc64
AC_DEFINE(TARGET_XBOX360, 1, [...])
AC_DEFINE(MONO_CROSS_COMPILE,1,[The runtime is compiled for cross-compiling mode])
# It would be better to just use TARGET_POWERPC64, but lots of code already
# uses this define
sizeof_register=8
target_byte_order=G_BIG_ENDIAN
;;
*)
AC_MSG_WARN([Cross compiling is only supported for targets matching 'powerpc64-{ps3,xbox360}-linux-gnu'])
esac
fi
# FIXME: Define the others as well
case "$TARGET" in
X86)
@@ -2307,10 +2222,6 @@ if test "x$have_visibility_hidden" = "xyes"; then
AC_DEFINE(HAVE_VISIBILITY_HIDDEN, 1, [Support for the visibility ("hidden") attribute])
fi
if test "x$have_deprecated" = "xyes"; then
AC_DEFINE(HAVE_DEPRECATED, 1, [Support for the deprecated attribute])
fi
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
@@ -2367,14 +2278,10 @@ case "$host" in
*-*-*freebsd*)
LIBC="libc.so"
INTL="libintl.so"
SQLITE="libsqlite.so"
SQLITE3="libsqlite3.so"
;;
*-*-*openbsd*)
LIBC="libc.so"
INTL="libintl.so"
SQLITE="libsqlite.so"
SQLITE3="libsqlite3.so"
;;
*-*-*linux*)
AC_PATH_X
@@ -2397,6 +2304,8 @@ esac
AC_SUBST(libsuffix)
AC_CHECK_HEADERS(valgrind/memcheck.h)
if test "x$TARGET" = "xAMD64" -o "x$TARGET" = "xX86"; then
if test "x$with_tls" = "x__thread"; then
#
@@ -2417,19 +2326,16 @@ if test "x$TARGET" = "xAMD64" -o "x$TARGET" = "xX86"; then
fi
mono_debugger_supported=no
AC_ARG_ENABLE(mono-debugger, [ --disable-mono-debugger disable support for the mdb debugger], try_mono_debugger=$enableval, try_mono_debugger=yes)
if test "x$try_mono_debugger" = "xyes"; then
if test "x$TARGET" = "xAMD64" -o "x$TARGET" = "xX86" -o "x$TARGET" = "xALPHA"; then
if test x$use_included_gc = xyes; then
case "$host" in
*-*-*linux*)
mono_debugger_supported=yes
;;
*86-apple-darwin*)
mono_debugger_supported=yes
;;
esac
fi
if test "x$TARGET" = "xAMD64" -o "x$TARGET" = "xX86" -o "x$TARGET" = "xALPHA"; then
if test x$use_included_gc = xyes; then
case "$host" in
*-*-*linux*)
mono_debugger_supported=yes
;;
*86-apple-darwin*)
mono_debugger_supported=yes
;;
esac
fi
fi
@@ -2467,6 +2373,18 @@ if test ${TARGET} = ARM && test x$cross_compiling = xno && test x$enable_mcs_bui
AC_MSG_RESULT($fpu)
CPPFLAGS="$CPPFLAGS -DARM_FPU_$fpu=1"
unset fpu
AC_MSG_CHECKING(for ARMV6)
AC_TRY_RUN([
int main () { __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r" (0) : "memory"); return 0; }
], armv6=yes, armv6=no)
AC_MSG_RESULT($armv6)
if test ${armv6} = yes; then
AC_DEFINE(HAVE_ARMV6, 1, "Host supports ARMV6 instructions")
# libgc's gc_locks.h depends on this
NESTED_LIBGC_FLAGS="$NESTED_LIBGC_FLAGS -DHAVE_ARMV6"
fi
fi
if test ${TARGET} = unknown; then
@@ -2496,8 +2414,9 @@ case "x$gc" in
;;
esac
#AC_ARG_WITH(profile2, [ --with-profile2=yes,no If you want to install the 2.0 FX (defaults to yes)], [], [with_profile2=yes])
AC_ARG_WITH(profile4, [ --with-profile4=yes,no If you want to install the 4.0 FX (defaults to yes)], [], [with_profile4=yes])
AC_ARG_WITH(profile2, [ --with-profile2=yes,no If you want to install the 2.0 FX (defaults to yes)], [], [with_profile2=yes])
AC_ARG_WITH(profile4, [ --with-profile4=yes,no If you want to install the 4.0 FX (defaults to no)], [], [with_profile4=no])
AC_ARG_WITH(moonlight, [ --with-moonlight=yes,no If you want to build the Moonlight 2.1 assemblies (defaults to yes)], [], [with_moonlight=yes])
AC_ARG_WITH(monotouch, [ --with-monotouch=yes,no If you want to build the raw MonoTouch 2.1 assemblies (defaults to no)], [], [with_monotouch=no])
OPROFILE=no
@@ -2528,18 +2447,8 @@ AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the
if test x$with_mcs_docs != xyes; then
DISABLE_MCS_DOCS=yes
fi
])
AC_ARG_WITH(moonlight, [ --with-moonlight=yes|no|only If you want to build Mono for Moonlight (defaults to no)],[
if test "x$with_moonlight" = "xyes"; then
AC_DEFINE(MOONLIGHT,1,[Building for Moonlight])
elif test "x$with_moonlight" = "xonly"; then
AC_DEFINE(MOONLIGHT,1,[Building for Moonlight])
fi
], [with_moonlight=no])
AC_CHECK_HEADER([malloc.h],
[AC_DEFINE([HAVE_USR_INCLUDE_MALLOC_H], [1],
[Define to 1 if you have /usr/include/malloc.h.])],,)
@@ -2549,9 +2458,6 @@ dnl Consistency settings
dnl
if test x$cross_compiling = xyes -o x$enable_mcs_build = xno; then
DISABLE_MCS_DOCS=yes
fi
if test x$DISABLE_MCS_DOCS = xyes; then
docs_dir=""
else
docs_dir=docs
@@ -2564,8 +2470,8 @@ AC_SUBST(OPROFILE_LIBS)
libmono_ldflags="$libmono_ldflags $LIBS"
AM_CONDITIONAL(MOONLIGHT, [test "x$with_moonlight" != "xno"])
AM_CONDITIONAL(ONLY_MOONLIGHT, [test "x$with_moonlight" = "xonly"])
AM_CONDITIONAL(INSTALL_2_0, [test "x$with_profile2" = xyes])
AM_CONDITIONAL(INSTALL_2_1, [test "x$with_moonlight" = xyes])
AM_CONDITIONAL(INSTALL_4_0, [test "x$with_profile4" = xyes])
AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" = xyes])
@@ -2612,7 +2518,7 @@ fi
AC_SUBST(mono_runtime)
mono_cfg_root=$mono_build_root/runtime
if test x$host_win32 = xyes; then
if test x$platform_win32 = xyes; then
if test "x$cross_compiling" = "xno"; then
mono_cfg_dir=`cygpath -w -a $mono_cfg_root`\\etc
else
@@ -2775,11 +2681,11 @@ man/Makefile
web/Makefile
docs/Makefile
data/Makefile
data/net_1_1/Makefile
data/net_2_0/Makefile
data/net_4_0/Makefile
data/net_2_0/Browsers/Makefile
data/mint.pc
data/mono-2.pc
data/mono.pc
data/mono-cairo.pc
data/mono-nunit.pc
@@ -2800,13 +2706,12 @@ support/Makefile
data/config
tools/Makefile
tools/locale-builder/Makefile
tools/sgen/Makefile
runtime/Makefile
msvc/Makefile
po/Makefile
])
if test x$host_win32 = xyes; then
if test x$platform_win32 = xyes; then
# Get rid of 'cyg' prefixes in library names
sed -e "s/\/cyg\//\/\//" libtool > libtool.new; mv libtool.new libtool; chmod 755 libtool
# libtool seems to inherit -mno-cygwin from our CFLAGS, and uses it to compile its executable
@@ -2823,30 +2728,28 @@ fi
NONE) exec_prefix='${prefix}' ;;
esac
test -w $srcdir/$mcsdir/build || chmod +w $srcdir/$mcsdir/build
#
# If we are cross compiling, we don't build in the mcs/ tree. Let us not clobber
# any existing config.make. This allows people to share the same source tree
# with different build directories, one native and one cross
#
if test x$cross_compiling = xno && test x$enable_mcs_build != xno; then
test -w $mcs_topdir/build || chmod +w $mcs_topdir/build
echo "prefix=$prefix" > $mcs_topdir/build/config.make
echo "exec_prefix=$exec_prefix" >> $mcs_topdir/build/config.make
echo "sysconfdir=$sysconfdir" >> $mcs_topdir/build/config.make
echo 'mono_libdir=${exec_prefix}/lib' >> $mcs_topdir/build/config.make
echo 'MCS_FLAGS = $(PLATFORM_DEBUG_FLAGS)' >> $mcs_topdir/build/config.make
echo 'IL_FLAGS = /debug' >> $mcs_topdir/build/config.make
echo "RUNTIME = $mono_build_root/runtime/mono-wrapper" >> $mcs_topdir/build/config.make
echo "ILDISASM = $mono_build_root/runtime/monodis-wrapper" >> $mcs_topdir/build/config.make
echo "prefix=$prefix" > $srcdir/$mcsdir/build/config.make
echo "exec_prefix=$exec_prefix" >> $srcdir/$mcsdir/build/config.make
echo "sysconfdir=$sysconfdir" >> $srcdir/$mcsdir/build/config.make
echo 'mono_libdir=${exec_prefix}/lib' >> $srcdir/$mcsdir/build/config.make
echo 'MCS_FLAGS = $(PLATFORM_DEBUG_FLAGS)' >> $srcdir/$mcsdir/build/config.make
echo 'IL_FLAGS = /debug' >> $srcdir/$mcsdir/build/config.make
echo "RUNTIME = $mono_build_root/runtime/mono-wrapper" >> $srcdir/$mcsdir/build/config.make
echo "ILDISASM = $mono_build_root/runtime/monodis-wrapper" >> $srcdir/$mcsdir/build/config.make
case $INSTALL in
[[\\/$]]* | ?:[[\\/]]* ) mcs_INSTALL=$INSTALL ;;
*) mcs_INSTALL=$mono_build_root/$INSTALL ;;
esac
echo "INSTALL = $mcs_INSTALL" >> $mcs_topdir/build/config.make
echo "INSTALL = $mcs_INSTALL" >> $srcdir/$mcsdir/build/config.make
export VERSION
[myver=$($AWK 'BEGIN {
@@ -2857,71 +2760,69 @@ fi
print vsplit [1] "." vsplit [2] "." vsplit [3] "." vsplit [4]
}')]
echo "MONO_VERSION = $myver" >> $mcs_topdir/build/config.make
echo "MONO_VERSION = $myver" >> $srcdir/$mcsdir/build/config.make
fi
if test x$platform_darwin = xyes; then
echo "PLATFORM = darwin" >> $mcs_topdir/build/config.make
fi
if test x$TARGET = xAMD64 -a x$host_win32 = xno -a "x$AOT_SUPPORTED" = "xyes" -a x$enable_system_aot = xyes; then
echo "ENABLE_AOT = 1" >> $mcs_topdir/build/config.make
fi
if test x$DISABLE_MCS_DOCS = xyes; then
echo "DISABLE_MCS_DOCS = yes" >> $mcs_topdir/build/config.make
fi
if test x$with_moonlight != xno; then
echo "MOONLIGHT = 1" >> $srcdir/$mcsdir/build/config.make
fi
if test x$platform_darwin = xyes; then
echo "PLATFORM = darwin" >> $srcdir/$mcsdir/build/config.make
fi
if test x$TARGET = xAMD64 -a x$platform_win32 = xno -a "x$AOT_SUPPORTED" = "xyes"; then
echo "ENABLE_AOT = 1" >> $srcdir/$mcsdir/build/config.make
fi
# if we have an olive folder, override the default settings
if test -d $olivedir; then
test -w $srcdir/$olivedir/build || chmod +w $srcdir/$olivedir/build
if test x$cross_compiling = xno && test x$enable_olive_build != xno; then
test -w $srcdir/$olivedir/build || chmod +w $srcdir/$olivedir/build
echo "prefix=$prefix" > $srcdir/$olivedir/build/config.make
echo "exec_prefix=$exec_prefix" >> $srcdir/$olivedir/build/config.make
echo 'mono_libdir=${exec_prefix}/lib' >> $srcdir/$olivedir/build/config.make
echo 'MCS_FLAGS = $(PLATFORM_DEBUG_FLAGS)' >> $srcdir/$olivedir/build/config.make
echo "RUNTIME = $mono_build_root/runtime/mono-wrapper" >> $srcdir/$olivedir/build/config.make
echo "MONO_VERSION = $myver" >> $srcdir/$olivedir/build/config.make
if test x$with_moonlight = xyes; then
echo "WITH_MOONLIGHT = yes" >> $srcdir/$olivedir/build/config.make
fi
fi
fi
if test x$DISABLE_MCS_DOCS = xyes; then
echo "DISABLE_MCS_DOCS = yes" >> $srcdir/$mcsdir/build/config.make
fi
)
AM_CONDITIONAL(DISABLE_MCS_DOCS, test x$DISABLE_MCS_DOCS = xyes)
libgdiplus_msg=${libgdiplus_loc:-assumed to be installed}
echo "
mcs source: $mcsdir
mcs source: $mcs_topdir
olive source: $olive_topdir
Engine:
GC: $gc
GLIB: $with_glib
TLS: $with_tls
SIGALTSTACK: $with_sigaltstack
Engine: $jit_status
2.0 Profile: $with_profile2
Moon Profile: $with_moonlight
4.0 Alpha: $with_profile4
MonoTouch: $with_monotouch
JNI support: $jdk_headers_found
libgdiplus: $libgdiplus_msg
zlib: $zlib_msg
oprofile: $OPROFILE
BigArrays: $enable_big_arrays
DTrace: $enable_dtrace
Parallel Mark: $enable_parallel_mark
LLVM Back End: $enable_llvm
Libraries:
Moon Profile: $with_moonlight
MonoTouch: $with_monotouch
JNI support: $jdk_headers_found
libgdiplus: $libgdiplus_msg
zlib: $zlib_msg
$disabled
"
if test x$with_static_mono = xno -a "x$host_win32" != "xyes"; then
if test x$with_static_mono = xno -a "x$platform_win32" != "xyes"; then
AC_MSG_WARN(Turning off static Mono is a risk, you might run into unexpected bugs)
fi
-15
View File
@@ -1,15 +0,0 @@
2010-05-17 Zoltan Varga <[email protected]>
* mono-2.pc.in (Libs): Remove glib dependencies.
2010-05-07 Zoltan Varga <[email protected]>
* mono-2.pc (Requires): Remove glib dependencies.
2010-04-02 Jb Evain <[email protected]>
* dotnet35.pc.in: add System.Data.Services.dll.
2010-03-08 Rodrigo Kumpera <[email protected]>
* mono.supp: Add hazard pointers supressions.
+7 -9
View File
@@ -1,4 +1,4 @@
SUBDIRS = net_2_0
SUBDIRS = net_1_1 net_2_0
if INSTALL_4_0
SUBDIRS += net_4_0
@@ -8,30 +8,28 @@ monodir = $(sysconfdir)/mono
EXTRA_DIST = \
config.in \
browscap.ini mono.supp mono.d README ChangeLog \
mono.pc.in mono-2.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.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 \
mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in system.web.mvc2.pc.in \
net_1_1/machine.config \
gdb/mono-gdb.py \
gdb/gdb-python.diff
gdb/mono-gdb.py
pkgconfigdir = $(libdir)/pkgconfig
if JIT_SUPPORTED
if INTERP_SUPPORTED
pkgconfig_DATA= mono.pc mono-2.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 \
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 system.web.mvc2.pc
else
pkgconfig_DATA= mono.pc mono-2.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 \
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 system.web.mvc2.pc
endif
else
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc
endif
DISTCLEANFILES= mono-2.pc 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 \
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 system.web.mvc2.pc
mono_DATA = config \
+1 -1
View File
@@ -2,4 +2,4 @@
Name: Standard libraries in a .NET setup
Description: References all the standard .NET libraries for compilation
Version: @VERSION@
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.VisualC.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.JScript.dll -r:Microsoft.VisualC.dll -r:Microsoft.Vsa.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll
+1 -1
View File
@@ -2,4 +2,4 @@
Name: Standard libraries in a .NET setup
Description: References all the standard .NET libraries for compilation (.NET Framework 3.5 compatibility)
Version: @VERSION@
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.JScript.dll -r:Microsoft.VisualC.dll -r:Microsoft.Vsa.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll -r:System.Configuration.dll -r:System.Core.dll -r:System.Xml.Linq.dll -r:System.Data.DataSetExtensions.dll -r:System.Data.Linq.dll -r:System.Data.Services.dll -r:System.Web.Abstractions.dll -r:System.Web.Routing.dll -r:System.Web.DynamicData.dll -r:System.ComponentModel.DataAnnotations.dll
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.JScript.dll -r:Microsoft.VisualC.dll -r:Microsoft.Vsa.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll -r:System.Configuration.dll -r:System.Core.dll -r:System.Xml.Linq.dll -r:System.Data.DataSetExtensions.dll -r:System.Data.Linq.dll -r:System.Web.Abstractions.dll -r:System.Web.Routing.dll -r:System.Web.DynamicData.dll -r:System.ComponentModel.DataAnnotations.dll
-11
View File
@@ -1,11 +0,0 @@
prefix=${pcfiledir}/../..
exec_prefix=${pcfiledir}/../..
libdir=${prefix}/@reloc_libdir@
includedir=${prefix}/include/mono-@API_VER@
sysconfdir=@sysconfdir@
Name: Mono
Description: Mono Runtime
Version: @VERSION@
Libs: -L${libdir} @export_ldflags@ -lmono-@API_VER@ @libmono_ldflags@
Cflags: -I${includedir} @libmono_cflags@
+1 -1
View File
@@ -6,4 +6,4 @@ includedir=${prefix}/include
Name: Mono.Cairo
Description: Cairo bindings for Mono
Version: @VERSION@
Libs: -r:${prefix}/lib/mono/2.0/Mono.Cairo.dll
Libs: -r:${prefix}/lib/mono/1.0/Mono.Cairo.dll
+1 -1
View File
@@ -6,4 +6,4 @@ libdir=${exec_prefix}/lib
Name: Mono NUnit
Description: Mono's version of NUnit
Version: @VERSION@
Libs: -r:${libdir}/mono/2.0/nunit.core.dll -r:${libdir}/mono/2.0/nunit.core.interfaces.dll -r:${libdir}/mono/2.0/nunit.core.extensions.dll -r:${libdir}/mono/2.0/nunit.framework.dll -r:${libdir}/mono/2.0/nunit.framework.extensions.dll -r:${libdir}/mono/2.0/nunit.mocks.dll -r:${libdir}/mono/2.0/nunit.util.dll -r:${libdir}/mono/2.0/nunit-console-runner.dll
Libs: -r:${libdir}/mono/1.0/nunit.core.dll -r:${libdir}/mono/1.0/nunit.core.interfaces.dll -r:${libdir}/mono/1.0/nunit.core.extensions.dll -r:${libdir}/mono/1.0/nunit.framework.dll -r:${libdir}/mono/1.0/nunit.framework.extensions.dll -r:${libdir}/mono/1.0/nunit.mocks.dll -r:${libdir}/mono/1.0/nunit.util.dll -r:${libdir}/mono/1.0/nunit-console-runner.dll
+5
View File
@@ -7,3 +7,8 @@ sysconfdir=@sysconfdir@
Name: Mono
Description: Mono Runtime
Version: @VERSION@
## Commented out because SLE hides devel files in the SLE SDK,
## which not all customers will have.
#Requires: glib-2.0 gthread-2.0
Libs: -L${libdir} @export_ldflags@ -lmono @libmono_ldflags@
Cflags: -I${includedir} @libmono_cflags@
+1 -14
View File
@@ -37,17 +37,4 @@
fun:*
obj:*mono
}
{
mono - Invalid write of size 4 hazardous_pointer
Memcheck:Addr4
fun:get_hazardous_pointer
fun:*
obj:*mono
}
{
mono - Invalid write of size 4 jit_info_table_find
Memcheck:Addr4
fun:mono_jit_info_table_find
fun:*
obj:*mono
}
-2
View File
@@ -236,8 +236,6 @@
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- XNA Framework key -->
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
</pubTokenMapping>
</strongNames>
</configuration>
-2
View File
@@ -215,8 +215,6 @@
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- XNA Framework key -->
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
</pubTokenMapping>
</strongNames>
-2
View File
@@ -1,2 +0,0 @@
/Makefile
/Makefile.in
-5
View File
@@ -86,9 +86,6 @@
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.runtime.caching" type="System.Runtime.Caching.Configuration.CachingSectionGroup, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="memoryCache" type="System.Runtime.Caching.Configuration.MemoryCacheSection, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
</configSections>
<connectionStrings>
@@ -218,8 +215,6 @@
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- XNA Framework key -->
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
</pubTokenMapping>
</strongNames>
+43 -141
View File
@@ -2,20 +2,6 @@
<configuration>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v4.0"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v4.0"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<system.web>
<monoSettings>
<compilersCompatibility>
@@ -28,85 +14,41 @@
<allow users="*" />
</authorization>
<httpHandlers>
<add path="trace.axd" verb="*" type="System.Web.Handlers.TraceHandler" validate="True" />
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
<add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
<add path="*.axd" verb="*" type="System.Web.HttpNotFoundHandler" validate="True" />
<add path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" validate="True" />
<add path="*.ashx" verb="*" type="System.Web.UI.SimpleHandlerFactory" validate="True" />
<add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
<add path="*.rem" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />
<add path="*.soap" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />
<add path="*.asax" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ascx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.master" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.skin" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.browser" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sitemap" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.dll.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />
<add path="*.exe.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />
<add path="*.config" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.cs" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.csproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vbproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.webinfo" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.licx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.resx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.resources" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.mdb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vjsproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.java" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.jsl" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ad" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.dd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.cd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.adprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.lddprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sdm" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sdmDocument" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.mdf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.exclude" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.refresh" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<!--
<add path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
-->
<add path="*.rules" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
<!--
<add path="*.xoml" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
<add path="*.xamlx" verb="*" type="System.Xaml.Hosting.XamlHttpHandlerFactory, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
-->
<add path="*" verb="GET,HEAD,POST" type="System.Web.DefaultHttpHandler" validate="True" />
<add path="*" verb="*" type="System.Web.HttpMethodNotAllowedHandler" validate="True" />
<add verb="*" path="Trace.axd" type="System.Web.Handlers.TraceHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="GET" path="WebResource.axd" type="System.Web.Handlers.AssemblyResourceLoader, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.master" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.resources" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.skin" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.browser" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.sitemap" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.webinfo" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.resx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.Config" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.cs" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.vb" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.csproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.vbproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.licx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.dll" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.rem" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.soap" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpHandlers>
<httpModules>
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
<!--
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
-->
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
<!--
<add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule" />
-->
<add name="RoleManager" type="System.Web.Security.RoleManagerModule" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
<!--
<add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" />
-->
<add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" />
<add name="Profile" type="System.Web.Profile.ProfileModule" />
<!--
<add name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
-->
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" />
<add name="ScriptModule-4.0" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="RoleManager" type="System.Web.Security.RoleManagerModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpModules>
<authentication mode="Forms">
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
@@ -142,52 +84,22 @@
<!-- <add namespace="System.Web.UI.WebControls.WebParts" /> -->
<add namespace="System.Web.UI.HtmlControls" />
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls.WebParts" assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls.Expressions" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.DynamicData" assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</controls>
</pages>
<webControls clientScriptsLocation="/web_scripts" />
<compilation debug="false" defaultLanguage="c#" explicit="true" strict="false" >
<assemblies>
<add assembly="mscorlib" />
<add assembly="Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<!--<add assembly="mscorlib" /> -->
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<!-- <add assembly="System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> -->
<add assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<!-- <add assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.ServiceModel.Channels, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<!-- <add assembly="System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.ServiceModel.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<!-- <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> -->
<!-- <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> -->
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<!-- <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> -->
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
<expressionBuilders>
@@ -197,10 +109,6 @@
type="System.Web.Compilation.ConnectionStringsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="AppSettings"
type="System.Web.Compilation.AppSettingsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="RouteUrl" type="System.Web.Compilation.RouteUrlExpressionBuilder"/>
<!--
<add expressionPrefix="RouteValue" type="System.Web.Compilation.RouteValueExpressionBuilder"/>
-->
</expressionBuilders>
<buildProviders>
<add extension=".aspx" type="System.Web.Compilation.PageBuildProvider" />
@@ -218,12 +126,6 @@
<add extension=".licx" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".exclude" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<!--
<add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
<add extension=".xoml" type="System.ServiceModel.Activation.WorkflowServiceBuildProvider, System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add extension=".svc" type="System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add extension=".xamlx" type="System.Xaml.Hosting.XamlBuildProvider, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
-->
</buildProviders>
</compilation>
<httpRuntime executionTimeout="110"
+4 -5
View File
@@ -1,16 +1,15 @@
2010-04-06 Andreia Gaita <avidigal@novell.com>
2010-04-21 Andrés G. Aragoneses <andres@lindenlab.com>
* Makefile.am: fix distcheck - several targets get built on the
srcdir, which has no write permissions on make distcheck, so make
sure permissions are set
* Makefile.am: Make ASSEMBLED_DOCS empty in case of DISABLED_MCS_DOCS.
2009-12-22 Jo Shields <[email protected]>
* HtmlAgilityPack/LICENSE: Include upstream license (Ms-PL) since the
file headers don't specify it
2009-12-22 Jo Shields <[email protected]>
* HtmlAgilityPack/*: Bundle HtmlAgilityPack 1.4~beta2 from
* HtmlAgilityPack/*: Bundle HtmlAgilityPack 1.4~beta2 from
http://www.codeplex.com/htmlagilitypack in source form.
* AgilityPack.dll: Remove binary assembly, use source instead.
+11 -12
View File
@@ -6,10 +6,14 @@ sources_DATA = \
monoapi.source \
$(ASSEMBLED_DOCS)
if DISABLE_MCS_DOCS
ASSEMBLED_DOCS =
else
ASSEMBLED_DOCS = \
mono-file-formats.tree mono-file-formats.zip \
mono-tools.tree mono-tools.zip \
monoapi.tree monoapi.zip
endif
EXTRA_DIST = \
abc-removal.txt \
@@ -79,21 +83,21 @@ clean-local:
monoapi.zip: monoapi.tree
@test -f $@ || { rm -f $(srcdir)/monoapi.tree && $(MAKE) monoapi.tree; }
monoapi.tree: docs.make Makefile.am toc.xml $(srcdir)/deploy/.stamp perms
cd $(srcdir) && cp -f api-style.css deploy
monoapi.tree: docs.make Makefile.am toc.xml $(srcdir)/deploy/.stamp
cd $(srcdir) && cp api-style.css deploy
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
mono-tools.zip: mono-tools.tree
@test -f $@ || { rm -f $(srcdir)/mono-tools.tree && $(MAKE) mono-tools.tree; }
mono-tools.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp perms
mono-tools.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
mono-file-formats.zip: mono-file-formats.tree perms
mono-file-formats.zip: mono-file-formats.tree
@test -f $@ || { rm -f $(srcdir)/mono-file-formats.tree && $(MAKE) mono-file-formats.tree; }
mono-file-formats.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
$(srcdir)/deploy/.stamp: convert.exe Makefile.am perms
$(srcdir)/deploy/.stamp: convert.exe Makefile.am
$(mkdir_p) $(srcdir)/html
runtimedir=`cd ../runtime && pwd`; export runtimedir; \
cd $(srcdir) && MONO_PATH=$(mcs_topdir_from_srcdir)/class/lib/net_2_0 perl ./exdoc -h . ../mono/*/*.c
@@ -101,13 +105,8 @@ $(srcdir)/deploy/.stamp: convert.exe Makefile.am perms
extract: $(srcdir)/deploy/.stamp
convert.exe: convert.cs AgilityPack.dll perms
convert.exe: convert.cs AgilityPack.dll
cd $(srcdir) && $(MAKE) PROFILE=net_2_0 -f docs.make topdir=$(mcs_topdir_from_srcdir) convert.exe
AgilityPack.dll: perms
AgilityPack.dll:
cd $(srcdir) && $(MAKE) PROFILE=net_2_0 -f docs.make topdir=$(mcs_topdir_from_srcdir) AgilityPack.dll
.PHONY: perms
perms:
-@test -w $(srcdir) || chmod a+w $(srcdir)
+914 -836
View File
File diff suppressed because it is too large. Load diff
+148 -159
View File
@@ -1,6 +1,7 @@
mono_assembly_open
mono_assembly_close
mono_assembly_load
mono_assembly_load_from
mono_assembly_load_full
mono_assembly_loaded
mono_assembly_get_image
@@ -179,6 +180,7 @@ mono_domain_get_tls_key
mono_domain_owns_vtable_slot
mono_context_get
mono_context_set
mono_create_jit_trampoline
mono_mb_new
mono_mb_add_data
mono_mb_add_local
@@ -257,6 +259,8 @@ mono_get_exception_not_supported
mono_get_exception_reflection_type_load
mono_gchandle_new
mono_gchandle_new_weakref
mono_gchandle_new
mono_gchandle_new_weakref
mono_gchandle_get_target
mono_gchandle_is_in_domain
mono_gchandle_free
@@ -283,33 +287,42 @@ mono_gc_is_gc_thread
mono_gc_pending_finalizers
mono_gc_register_thread
mono_gc_finalize_notify
mono_image_open
mono_image_open_full
mono_image_open_from_data
mono_image_open_from_data_full
mono_image_close
mono_image_addref
mono_image_load_file_for_image
mono_image_get_guid
mono_image_add_to_name_cache
mono_image_close
mono_image_ensure_section_idx
mono_image_ensure_section
mono_image_get_assembly
mono_image_get_entry_point
mono_image_get_filename
mono_image_get_name
mono_image_get_public_key
mono_image_get_resource
mono_image_get_strong_name
mono_image_get_table_info
mono_image_get_table_rows
mono_image_has_authenticode_entry
mono_image_is_dynamic
mono_image_loaded_by_guid
mono_image_loaded
mono_image_load_file_for_image
mono_image_lookup_resource
mono_image_open_from_data
mono_image_open
mono_image_rva_map
mono_image_strerror
mono_image_strong_name_position
mono_image_get_public_key
mono_image_get_strong_name
mono_image_has_authenticode_entry
mono_image_rva_map
mono_image_ensure_section_idx
mono_image_ensure_section
mono_image_verify_tables
mono_image_get_guid
mono_image_open_from_data_full
mono_image_open_full
mono_image_basic_init
mono_image_build_metadata
mono_image_create_method_token
mono_image_create_pefile
mono_image_create_token
mono_image_insert_string
mono_image_load_module
mono_burg_kids
mono_burg_label
mono_burg_rule
@@ -320,6 +333,7 @@ mono_interp_get_runtime_method
mono_interp_transform_init
mono_interp_transform_method
mono_pmip
mono_print_code
mono_print_method_from_ip
mono_print_thread_dump
mono_threads_request_thread_dump
@@ -386,35 +400,38 @@ mono_marshal_realloc
mono_marshal_set_last_error
mono_marshal_string_to_utf16
mono_marshal_type_size
mono_metadata_guid_heap
mono_metadata_string_heap
mono_metadata_blob_heap
mono_metadata_user_string
mono_metadata_decode_blob_size
mono_image_get_table_info
mono_image_get_table_rows
mono_metadata_get_table
mono_loader_lock
mono_loader_unlock
mono_cli_rva_image_map
mono_pe_file_open
mono_meta_table_name
mono_metadata_decode_row_col
mono_metadata_decode_row
mono_metadata_blob_heap
mono_metadata_compute_size
mono_metadata_custom_attrs_from_index
mono_metadata_decode_blob_size
mono_metadata_decode_row_col
mono_metadata_decode_row
mono_metadata_decode_signed_value
mono_metadata_decode_value
mono_metadata_encode_value
mono_cli_rva_image_map
mono_pe_file_open
mono_metadata_events_from_typedef
mono_metadata_field_info
mono_metadata_free_array
mono_metadata_free_marshal_spec
mono_metadata_free_mh
mono_metadata_free_type
mono_metadata_generic_inst_equal
mono_metadata_generic_inst_hash
mono_metadata_generic_inst_is_valuetype
mono_metadata_generic_method_equal
mono_metadata_get_constant_index
mono_metadata_get_marshal_info
mono_metadata_get_table
mono_metadata_guid_heap
mono_metadata_implmap_from_method
mono_metadata_interfaces_from_typedef_full
mono_metadata_interfaces_from_typedef
mono_metadata_load_generic_params
mono_metadata_locate
mono_metadata_locate_token
mono_metadata_methods_from_event
@@ -422,14 +439,8 @@ mono_metadata_methods_from_property
mono_metadata_nested_in_typedef
mono_metadata_nesting_typedef
mono_metadata_packing_from_typedef
mono_metadata_properties_from_typedef
mono_metadata_token_from_dor
mono_metadata_typedef_from_field
mono_metadata_typedef_from_method
mono_metadata_type_equal
mono_metadata_type_hash
mono_metadata_declsec_from_index
mono_metadata_free_method_signature
mono_metadata_parse_array_full
mono_metadata_parse_array
mono_metadata_parse_custom_mod
mono_metadata_parse_field_type
mono_metadata_parse_marshal_spec
@@ -443,22 +454,34 @@ mono_metadata_parse_signature
mono_metadata_parse_typedef_or_ref
mono_metadata_parse_type_full
mono_metadata_parse_type
mono_loader_lock
mono_loader_unlock
mono_metadata_properties_from_typedef
mono_metadata_string_heap
mono_metadata_token_from_dor
mono_metadata_typedef_from_field
mono_metadata_typedef_from_method
mono_metadata_type_equal
mono_metadata_type_hash
mono_metadata_user_string
mono_metadata_declsec_from_index
mono_metadata_free_method_signature
mono_metadata_generic_class_is_valuetype
mono_metadata_has_generic_params
mono_metadata_inflate_generic_inst
mono_metadata_parse_generic_inst
mono_metadata_generic_inst_equal
mono_metadata_generic_inst_hash
mono_metadata_load_generic_params
mono_metadata_generic_inst_is_valuetype
mono_metadata_generic_method_equal
mono_ldtoken
mono_lookup_dynamic_token
mono_ldstr
mono_exception_from_token
mono_create_jit_trampoline_from_token
mono_signature_explicit_this
mono_signature_get_call_conv
mono_signature_get_desc
mono_signature_get_param_count
mono_signature_get_params
mono_signature_get_return_type
mono_signature_hash
mono_signature_is_instance
mono_signature_vararg_start
mono_opcode_name
mono_opcode_value
mono_loader_set_error_field_load
@@ -467,8 +490,8 @@ mono_loader_set_error_type_load
mono_loader_get_last_error
mono_loader_clear_error
mono_loader_error_prepare_exception
mono_runtime_invoke
mono_runtime_invoke_array
mono_runtime_invoke
mono_remoting_invoke
mono_runtime_delegate_invoke
mono_method_call_message_new
@@ -496,17 +519,8 @@ mono_method_get_wrapper_data
mono_method_has_marshal_info
mono_method_return_message_restore
mono_method_same_domain
mono_method_verify
mono_method_signature
mono_signature_explicit_this
mono_signature_get_call_conv
mono_signature_get_desc
mono_signature_get_param_count
mono_signature_get_params
mono_signature_get_return_type
mono_signature_hash
mono_signature_is_instance
mono_signature_vararg_start
mono_method_verify
mono_method_get_header
mono_method_header_get_clauses
mono_method_header_get_code
@@ -531,23 +545,17 @@ mono_object_get_size
mono_value_box
mono_value_copy
mono_value_copy_array
mono_array_new
mono_array_new_full
mono_array_new_specific
mono_array_class_get
mono_array_clone_in_domain
mono_array_clone
mono_array_element_size
mono_array_full_copy
mono_array_new_full
mono_array_new
mono_array_new_specific
mono_array_to_lparray
mono_array_to_savearray
mono_dup_array_type
mono_array_set
mono_array_setref
mono_array_length
mono_array_addr
mono_array_addr_with_size
mono_array_get
mono_array_element_size
mono_field_from_token
mono_field_get_flags
mono_field_get_name
@@ -659,6 +667,11 @@ mono_string_new_len
mono_string_new_size
mono_string_new_utf16
mono_string_from_utf16
mono_string_intern
mono_string_is_interned
mono_string_new_wrapper
mono_string_to_ansibstr
mono_string_to_bstr
mono_string_to_byvalstr
mono_string_to_byvalwstr
mono_string_to_utf16
@@ -667,11 +680,6 @@ mono_string_utf16_to_builder
mono_string_utf8_to_builder
mono_string_equal
mono_string_hash
mono_string_intern
mono_string_is_interned
mono_string_new_wrapper
mono_string_chars
mono_string_length
mono_string_builder_to_utf16
mono_string_builder_to_utf8
mono_unicode_from_external
@@ -712,6 +720,9 @@ mono_threads_clear_cached_culture
mono_thread_suspend_all_other_threads
mono_thread_has_appdomain_ref
mono_trace_cleanup
mono_trace_enter_method
mono_trace_eval
mono_trace_leave_method
mono_trace
mono_trace_parse_options
mono_trace_pop
@@ -723,6 +734,8 @@ mono_trace_set_mask
mono_trace_set_mask_string
mono_tracev
mono_trace_is_traced
mono_trace_enable
mono_trace_is_enabled
mono_type_create_from_typespec_full
mono_type_create_from_typespec
mono_type_full_name
@@ -877,12 +890,12 @@ mono_md5_get_digest_from_file
mono_md5_get_digest
mono_md5_final
mono_digest_get_public_token
mono_mempool_new
mono_mempool_destroy
mono_mempool_alloc
mono_mempool_alloc0
mono_mempool_alloc
mono_mempool_destroy
mono_mempool_empty
mono_mempool_invalidate
mono_mempool_new
mono_mempool_stats
mono_mempool_contains_addr
mono_is_power_of_two
@@ -895,129 +908,105 @@ mono_walk_stack
mono_stack_walk_no_il
mono_escape_uri_string
mono_guid_to_string
BindIoCompletionCallback
GetThreadContext
DeleteCriticalSection
EnterCriticalSection
InitializeCriticalSection
InitializeCriticalSectionAndSpinCount
LeaveCriticalSection
SetCriticalSectionSpinCount
TryEnterCriticalSection
errno_to_WSA
GetLastError
SetLastError
CreateEvent
PulseEvent
ResetEvent
SetEvent
CloseHandle
closesocket
CopyFile
CreateDirectory
CreateEvent
CreateFile
CreateMutex
CreatePipe
CreateProcess
CreateProcessWithLogonW
CreateSemaphore
CreateThread
DeleteCriticalSection
DeleteFile
DuplicateHandle
EnterCriticalSection
EnumProcesses
EnumProcessModules
errno_to_WSA
ExitThread
FileTimeToSystemTime
FindClose
FindFirstFile
FindNextFile
FlushFileBuffers
FormatMessage
GetCurrentDirectory
GetCurrentProcess
GetCurrentProcessId
GetCurrentThread
GetCurrentThreadId
GetDiskFreeSpaceEx
GetDriveType
GetExitCodeProcess
GetExitCodeThread
GetFileAttributesEx
GetFileAttributes
GetFileAttributesEx
GetFileSize
GetFileTime
GetFileType
GetFileVersionInfo
GetFileVersionInfoSize
GetLastError
GetLogicalDriveStrings
GetModuleBaseName
GetModuleFileNameEx
GetModuleInformation
GetPriorityClass
GetProcessId
GetProcessTimes
GetProcessWorkingSetSize
GetStdHandle
GetSystemInfo
GetTempPath
GetThreadContext
GetTickCount
ImpersonateLoggedOnUser
InitializeCriticalSectionAndSpinCount
InitializeCriticalSection
ioctlsocket
LeaveCriticalSection
LockFile
MoveFile
OpenEvent
OpenMutex
OpenProcess
OpenSemaphore
OpenThread
PulseEvent
QueryPerformanceCounter
QueryPerformanceFrequency
QueueUserAPC
ReadFile
ReleaseMutex
ReleaseSemaphore
RemoveDirectory
ReplaceFile
ResetEvent
ResumeThread
RevertToSelf
SetCriticalSectionSpinCount
SetCurrentDirectory
SetEndOfFile
SetEvent
SetFileAttributes
SetFilePointer
SetFileTime
SetLastError
SetPriorityClass
UnlockFile
WriteFile
mono_once
CreateMutex
ReleaseMutex
CreateProcess
EnumProcesses
EnumProcessModules
GetCurrentProcess
GetCurrentProcessId
GetExitCodeProcess
GetModuleBaseName
GetProcessTimes
GetProcessWorkingSetSize
OpenProcess
SetProcessWorkingSetSize
ShellExecuteEx
SignalObjectAndWait
SleepEx
Sleep
SuspendThread
TerminateProcess
ImpersonateLoggedOnUser
RevertToSelf
CreateSemaphore
ReleaseSemaphore
closesocket
ioctlsocket
WSACleanup
WSAGetLastError
WSAIoctl
WSASetLastError
WSAStartup
GetSystemInfo
BindIoCompletionCallback
CreateThread
ExitThread
GetCurrentThread
GetCurrentThreadId
GetExitCodeThread
OpenThread
QueueUserAPC
ResumeThread
Sleep
SleepEx
SuspendThread
TlsAlloc
TlsFree
TlsGetValue
TlsSetValue
TransmitFile
TryEnterCriticalSection
UnlockFile
VerLanguageName
VerQueryValue
WaitForInputIdle
WaitForMultipleObjectsEx
GetTickCount
QueryPerformanceCounter
QueryPerformanceFrequency
SignalObjectAndWait
WaitForMultipleObjects
WaitForSingleObjectEx
WaitForMultipleObjectsEx
WaitForSingleObject
WriteFile
WSACleanup
WSAGetLastError
WSAIoctl
WSARecv
WSASend
WSASetLastError
WSAStartup
mono_once
wapi_clear_interruption
wapi_current_thread_desc
wapi_interrupt_thread
wapi_self_interrupt
wapi_thread_clear_wait_handle
wapi_thread_set_wait_handle
WaitForSingleObjectEx
OpenEvent
OpenMutex
GetProcessId
ShellExecuteEx
OpenSemaphore
+2 -642
View File
@@ -23,39 +23,9 @@ TestVectorList
__bsd_dtoa
bsd_strtod
TestBlittableClass
SByteIn
ShortIn
test_method_thunk
UIntIn
ULongIn
UShortIn
add_delegate
ByteIn
DoubleIn
FloatIn
get_ITest
IntIn
ITestIn
ITestOut
LongIn
#
# Produced by the tests
#
mono_invoke_delegate
mono_invoke_simple_delegate
mono_safe_handle_ref
mono_safe_handle_return
mono_safe_handle_struct
mono_safe_handle_struct_ref
mono_safe_handle_struct_simple
mono_test_marshal_inout_byval_class_delegate
mono_test_marshal_lpstruct
mono_test_marshal_lpstruct_blittable
mono_test_marshal_pass_inout_custom
mono_test_marshal_pass_out_byval_custom
mono_test_marshal_return_fnptr
mono_xr
mono_xr_as_handle
mono_test_asany
mono_test_byvalstr_check
mono_test_byvalstr_gen
@@ -141,108 +111,6 @@ mono_test_marshal_return_enum_delegate
mono_test_return_vtype
mono_test_split_double_arguments
mono_test_stdcall_name_mangling
mono_test_managed_marshal_bool_in
mono_test_managed_marshal_bool_out
mono_test_managed_marshal_bool_ref
mono_test_managed_Winx64_struct1_in
mono_test_managed_Winx64_struct1_struct5_in
mono_test_managed_Winx64_struct5_in
mono_test_marshal_asany_in
mono_test_marshal_asany_out
mono_test_marshal_bool_in
mono_test_marshal_bool_in_as_I1_U1
mono_test_marshal_bool_out
mono_test_marshal_bool_out_as_I1_U1
mono_test_marshal_bool_ref
mono_test_marshal_bool_ref_as_I1_U1
mono_test_marshal_bstr_in
mono_test_marshal_bstr_in_null
mono_test_marshal_bstr_out
mono_test_marshal_bstr_out_null
mono_test_marshal_byref_string_delegate
mono_test_marshal_ccw_itest
mono_test_marshal_com_object_create
mono_test_marshal_com_object_destroy
mono_test_marshal_com_object_ref_count
mono_test_marshal_com_object_same
mono_test_marshal_custom_out_param_delegate
mono_test_marshal_date_time
mono_test_marshal_long_struct
mono_test_marshal_out_delegate
mono_test_marshal_pass_return_float
mono_test_marshal_return_unicode_string_delegate
mono_test_marshal_variant_in_bool_false
mono_test_marshal_variant_in_bool_false_unmanaged
mono_test_marshal_variant_in_bool_true
mono_test_marshal_variant_in_bool_true_unmanaged
mono_test_marshal_variant_in_bstr
mono_test_marshal_variant_in_bstr_unmanaged
mono_test_marshal_variant_in_byte
mono_test_marshal_variant_in_byte_unmanaged
mono_test_marshal_variant_in_double
mono_test_marshal_variant_in_double_unmanaged
mono_test_marshal_variant_in_float
mono_test_marshal_variant_in_float_unmanaged
mono_test_marshal_variant_in_int
mono_test_marshal_variant_in_int_unmanaged
mono_test_marshal_variant_in_long
mono_test_marshal_variant_in_long_unmanaged
mono_test_marshal_variant_in_sbyte
mono_test_marshal_variant_in_sbyte_unmanaged
mono_test_marshal_variant_in_short
mono_test_marshal_variant_in_short_unmanaged
mono_test_marshal_variant_in_uint
mono_test_marshal_variant_in_uint_unmanaged
mono_test_marshal_variant_in_ulong
mono_test_marshal_variant_in_ulong_unmanaged
mono_test_marshal_variant_in_ushort
mono_test_marshal_variant_in_ushort_unmanaged
mono_test_marshal_variant_out_bool_false
mono_test_marshal_variant_out_bool_false_unmanaged
mono_test_marshal_variant_out_bool_true
mono_test_marshal_variant_out_bool_true_unmanaged
mono_test_marshal_variant_out_bstr
mono_test_marshal_variant_out_bstr_unmanaged
mono_test_marshal_variant_out_byte
mono_test_marshal_variant_out_byte_unmanaged
mono_test_marshal_variant_out_double
mono_test_marshal_variant_out_double_unmanaged
mono_test_marshal_variant_out_float
mono_test_marshal_variant_out_float_unmanaged
mono_test_marshal_variant_out_int
mono_test_marshal_variant_out_int_unmanaged
mono_test_marshal_variant_out_long
mono_test_marshal_variant_out_long_unmanaged
mono_test_marshal_variant_out_sbyte
mono_test_marshal_variant_out_sbyte_unmanaged
mono_test_marshal_variant_out_short
mono_test_marshal_variant_out_short_unmanaged
mono_test_marshal_variant_out_uint
mono_test_marshal_variant_out_uint_unmanaged
mono_test_marshal_variant_out_ulong
mono_test_marshal_variant_out_ulong_unmanaged
mono_test_marshal_variant_out_ushort
mono_test_marshal_variant_out_ushort_unmanaged
mono_test_Winx64_doubleStruct
mono_test_Winx64_floatStruct
mono_test_Winx64_struct1_in
mono_test_Winx64_struct1_ret
mono_test_Winx64_struct1_ret_5_args
mono_test_Winx64_struct1_ret_managed
mono_test_Winx64_struct2_in
mono_test_Winx64_struct2_ret
mono_test_Winx64_struct3_in
mono_test_Winx64_struct3_ret
mono_test_Winx64_struct4_in
mono_test_Winx64_struct4_ret
mono_test_Winx64_struct5_in
mono_test_Winx64_struct5_ret
mono_test_Winx64_struct5_ret6_args
mono_test_Winx64_struct5_ret_managed
mono_test_Winx64_struct6_in
mono_test_Winx64_structs_in1
mono_test_Winx64_structs_in2
mono_test_Winx64_structs_in3
mono_union_test_1
NameManglingAnsi
NameManglingAnsi2A
@@ -275,7 +143,6 @@ mono_return_sc1
mono_return_sc3
mono_return_sc5
mono_return_ss
mono_profiler_startup
#
# The following are internal calls that are exposed because of cross
# library dependencies but could be private
@@ -316,6 +183,7 @@ mono_metadata_signature_deep_dup
mono_metadata_get_param_attrs
mono_metadata_load_generic_param_constraints
mono_find_jit_opcode_emulation
mono_marshal_get_ldflda_wrapper
mono_debug_free_method_jit_info
mono_jit_info_table_add
mono_jit_info_table_remove
@@ -536,16 +404,6 @@ mono_print_code
mono_method_same_domain
mono_register_opcode_emulation
#
# mono_shared_area: this is used by the performance counters, not sure that
# this is worth documenting to the public
#
mono_shared_area
mono_shared_area_for_pid
mono_shared_area_instances
mono_shared_area_remove
mono_shared_area_unload
#
#
# I believe these are internal, but I should check with the JIT guys
#
mono_assembly_open_full
@@ -594,398 +452,8 @@ alu_reg_to_alu_membase_imm
mono_secman_inheritancedemand_method
mono_secman_inheritancedemand_class
#
# From the GC
#
GC_abort
GC_acquire_mark_lock
GC_add_ext_descriptor
GC_add_leaked
GC_add_map_entry
GC_add_roots
GC_add_roots_inner
GC_add_smashed
GC_add_to_black_list_normal
GC_add_to_black_list_stack
GC_add_to_fl
GC_add_to_heap
GC_adj_words_allocd
GC_allochblk
GC_allochblk_nth
GC_alloc_large
GC_alloc_large_and_clear
GC_allocobj
GC_alloc_reclaim_list
GC_apply_to_all_blocks
GC_apply_to_maps
GC_approx_sp
GC_array_mark_proc
GC_base
GC_bl_init
GC_block_empty
GC_block_nearly_full
GC_block_nearly_full1
GC_block_nearly_full3
GC_block_was_dirty
GC_build_fl
GC_build_fl1
GC_build_fl2
GC_build_fl4
GC_build_fl_clear2
GC_build_fl_clear3
GC_build_fl_clear4
GC_calloc_explicitly_typed
GC_call_with_alloc_lock
GC_change_stubborn
GC_check_annotated_obj
GC_check_heap_block
GC_check_heap_proc
GC_clear_a_few_frames
GC_clear_bl
GC_clear_fl_links
GC_clear_fl_marks
GC_clear_hdr_marks
GC_clear_mark_bit
GC_clear_marks
GC_clear_roots
GC_clear_stack
GC_clear_stack_inner
GC_collect_a_little
GC_collect_a_little_inner
GC_collection_in_progress
GC_collect_or_expand
GC_cond_register_dynamic_libraries
GC_continue_reclaim
GC_copy_bl
GC_debug_change_stubborn
GC_debug_end_stubborn_change
GC_debug_free
GC_debug_free_inner
GC_debug_gcj_fast_malloc
GC_debug_gcj_malloc
GC_debug_invoke_finalizer
GC_debug_malloc
GC_debug_malloc_atomic
GC_debug_malloc_atomic_ignore_off_page
GC_debug_malloc_atomic_uncollectable
GC_debug_malloc_ignore_off_page
GC_debug_malloc_replacement
GC_debug_malloc_stubborn
GC_debug_malloc_uncollectable
GC_debug_print_heap_obj_proc
GC_debug_realloc
GC_debug_realloc_replacement
GC_debug_register_displacement
GC_debug_register_finalizer
GC_debug_register_finalizer_ignore_self
GC_debug_register_finalizer_no_order
GC_default_is_valid_displacement_print_proc
GC_default_is_visible_print_proc
GC_default_oom_fn
GC_default_print_heap_obj_proc
GC_default_push_other_roots
GC_default_same_obj_print_proc
GC_default_warn_proc
GC_delete_gc_thread
GC_delete_thread
GC_descr_obj_size
GC_destroy_thread_local
GC_dirty_init
GC_disable
GC_disable_signals
GC_dlopen
GC_do_local_mark
GC_do_nothing
GC_do_parallel_mark
GC_double_descr
GC_dump
GC_dump_finalization
GC_dump_regions
GC_enable
GC_enable_incremental
GC_enable_signals
GC_end_blocking
GC_end_stubborn_change
GC_enqueue_all_finalizers
GC_err_printf
GC_err_puts
GC_err_write
GC_exclude_static_roots
GC_exit_check
GC_expand_hp
GC_expand_hp_inner
GC_extend_size_map
GC_fault_handler
GC_finalize
GC_finalize_all
GC_find_header
GC_find_limit
GC_find_start
GC_finish_collection
GC_free
GC_free_block_ending_at
GC_freehblk
GC_free_inner
GC_gcj_fast_malloc
GC_gcj_malloc
GC_gcj_malloc_ignore_off_page
GC_gcollect
GC_general_register_disappearing_link
GC_generic_lock
GC_generic_malloc
GC_generic_malloc_ignore_off_page
GC_generic_malloc_inner
GC_generic_malloc_inner_ignore_off_page
GC_generic_malloc_many
GC_generic_malloc_words_small
GC_generic_malloc_words_small_inner
GC_generic_or_special_malloc
GC_generic_push_regs
GC_get_bytes_since_gc
GC_get_first_part
GC_get_free_bytes
GC_get_heap_size
GC_get_nprocs
GC_get_stack_base
GC_get_suspend_signal
GC_get_total_bytes
GC_grow_table
GC_has_other_debug_info
GC_hblk_fl_from_blocks
GC_help_marker
GC_ignore_self_finalize_mark_proc
GC_incremental_protection_needs
GC_incr_mem_freed
GC_incr_words_allocd
GC_init
GC_init_explicit_typing
GC_init_gcj_malloc
GC_init_headers
GC_initiate_gc
GC_init_inner
GC_init_linux_data_start
GC_init_parallel
GC_init_size_map
GC_init_thread_local
GC_install_counts
GC_install_header
GC_invalidate_map
GC_invalidate_mark_state
GC_invoke_finalizers
GC_is_black_listed
GC_is_fresh
GC_is_marked
GC_is_static_root
GC_is_valid_displacement
GC_is_visible
GC_key_create
GC_linux_stack_base
GC_local_gcj_fast_malloc
GC_local_gcj_malloc
GC_local_malloc
GC_local_malloc_atomic
GC_lock
GC_lookup_thread
GC_make_array_descriptor
GC_make_closure
GC_make_descriptor
GC_make_sequence_descriptor
GC_malloc
GC_malloc_atomic
GC_malloc_atomic_ignore_off_page
GC_malloc_atomic_uncollectable
GC_malloc_explicitly_typed
GC_malloc_explicitly_typed_ignore_off_page
GC_malloc_ignore_off_page
GC_malloc_many
GC_malloc_stubborn
GC_malloc_uncollectable
GC_mark_and_push
GC_mark_and_push_stack
GC_mark_from
GC_mark_init
GC_mark_local
GC_mark_some
GC_mark_stack_empty
GC_mark_thread
GC_mark_thread_local_free_lists
GC_max
GC_maybe_gc
GC_memalign
GC_merge_unmapped
GC_min
GC_mono_debugger_get_stack_ptr
GC_never_stop_func
GC_new_free_list
GC_new_free_list_inner
GC_new_hblk
GC_new_kind
GC_new_kind_inner
GC_new_proc
GC_new_proc_inner
GC_new_thread
GC_next_exclusion
GC_next_used_block
GC_noop
GC_noop1
GC_normal_finalize_mark_proc
GC_notify_all_builder
GC_notify_all_marker
GC_notify_full_gc
GC_notify_or_invoke_finalizers
GC_n_set_marks
GC_null_finalize_mark_proc
GC_number_stack_black_listed
GC_on_stack
GC_page_was_dirty
GC_page_was_ever_dirty
GC_pause
GC_post_incr
GC_pre_incr
GC_prev_block
GC_print_address_map
GC_print_all_errors
GC_print_all_smashed_proc
GC_print_block_descr
GC_print_block_list
GC_printf
GC_print_finalization_stats
GC_print_hblkfreelist
GC_print_heap_sects
GC_print_obj
GC_print_smashed_obj
GC_print_source_ptr
GC_print_static_roots
GC_print_type
GC_project2
GC_promote_black_lists
GC_pthread_create
GC_pthread_detach
GC_pthread_join
GC_pthread_sigmask
GC_push_all
GC_push_all_eager
GC_push_all_stack
GC_push_all_stacks
GC_push_complex_descriptor
GC_push_conditional
GC_push_conditional_with_exclusions
GC_push_current_stack
GC_push_finalizer_structures
GC_push_gc_structures
GC_push_marked
GC_push_marked1
GC_push_marked2
GC_push_marked4
GC_push_next_marked
GC_push_next_marked_dirty
GC_push_next_marked_uncollectable
GC_push_one
GC_push_roots
GC_push_selected
GC_push_stubborn_structures
GC_push_thread_structures
GC_read_dirty
GC_realloc
GC_reclaim1
GC_reclaim_all
GC_reclaim_block
GC_reclaim_check
GC_reclaim_clear
GC_reclaim_clear2
GC_reclaim_clear4
GC_reclaim_generic
GC_reclaim_small_nonempty_block
GC_reclaim_uninit
GC_reclaim_uninit2
GC_reclaim_uninit4
GC_register_data_segments
GC_register_describe_type_fn
GC_register_disappearing_link
GC_register_displacement
GC_register_displacement_inner
GC_register_dynamic_libraries
GC_register_dynamic_libraries_dl_iterate_phdr
GC_register_finalizer
GC_register_finalizer_ignore_self
GC_register_finalizer_inner
GC_register_finalizer_no_order
GC_register_main_static_data
GC_release_mark_lock
GC_remap
GC_remove_allowed_signals
GC_remove_counts
GC_remove_from_fl
GC_remove_header
GC_remove_protection
GC_remove_roots
GC_remove_roots_inner
GC_remove_specific
GC_remove_tmp_roots
GC_repeat_read
GC_reset_fault_handler
GC_restart_handler
GC_return_mark_stack
GC_roots_present
GC_same_obj
GC_scratch_alloc
GC_set_and_save_fault_handler
GC_set_fl_marks
GC_set_free_space_divisor
GC_set_hdr_marks
GC_set_mark_bit
GC_set_max_heap_size
GC_setpagesize
GC_setspecific
GC_setup_temporary_fault_handler
GC_set_warn_proc
GC_should_collect
GC_should_invoke_finalizers
GC_signal_mark_stack_overflow
GC_size
GC_sleep
GC_slow_getspecific
GC_split_block
GC_start_blocking
GC_start_debugging
GC_start_reclaim
GC_start_routine
GC_start_routine_head
GC_start_world
GC_steal_mark_stack
GC_stop_init
GC_stopped_mark
GC_stop_world
GC_store_debug_info
GC_suspend_all
GC_suspend_handler
GC_thread_deregister_foreign
GC_thread_exit_proc
GC_thread_is_registered
GC_thread_register_foreign
GC_thr_init
GC_timeout_stop_func
GC_true_func
GC_try_to_collect
GC_try_to_collect_inner
GC_typed_mark_proc
GC_unix_get_mem
GC_unmap
GC_unmap_end
GC_unmap_gap
GC_unmap_old
GC_unmap_start
GC_unpromote_black_lists
GC_unregister_disappearing_link
GC_wait_builder
GC_wait_for_gc_completion
GC_wait_for_reclaim
GC_wait_marker
GC_with_callee_saves_pushed
GC_write
#
# Produced by matching against the MONO_INTERNAL macro
#
type_to_eval_stack_type
mono_regstate_free
mono_regstate_free_float
mono_regstate_free_int
@@ -1006,112 +474,4 @@ mono_trace_enable
mono_trace_is_enabled
mono_trace_eval
mono_trace_leave_method
mono_trace_enter_method
img_writer_create
img_writer_destroy
img_writer_emit_alignment
img_writer_emit_byte
img_writer_emit_bytes
img_writer_emit_global
img_writer_emit_int16
img_writer_emit_int32
img_writer_emit_label
img_writer_emit_line
img_writer_emit_local_symbol
img_writer_emit_pointer
img_writer_emit_pointer_unaligned
img_writer_emit_pop_section
img_writer_emit_push_section
img_writer_emit_reloc
img_writer_emit_section_change
img_writer_emit_start
img_writer_emit_string
img_writer_emit_symbol_diff
img_writer_emit_symbol_size
img_writer_emit_unset_mode
img_writer_emit_writeout
img_writer_emit_zero_bytes
img_writer_get_fp
img_writer_get_output
img_writer_get_temp_label_prefix
img_writer_set_section_addr
img_writer_subsections_supported
mono_verifier_set_mode
mono_verifier_enable_verify_all
mono_verifier_is_enabled_for_image
mono_verifier_is_enabled_for_method
mono_verifier_is_enabled_for_class
mono_verifier_is_method_full_trust
mono_verifier_is_class_full_trust
mono_verifier_verify_class
mono_verifier_verify_pe_data
mono_verifier_verify_cli_data
mono_verifier_verify_table_data
mono_verifier_verify_full_table_data
mono_verifier_verify_field_signature
mono_verifier_verify_method_header
mono_verifier_verify_method_signature
mono_verifier_verify_memberref_signature
mono_verifier_verify_standalone_signature
mono_verifier_verify_typespec_signature
mono_verifier_verify_methodspec_signature
mono_unwind_cleanup
mono_unwind_frame
mono_unwind_get_dwarf_data_align
mono_unwind_get_dwarf_pc_reg
mono_unwind_get_ops_from_fde
mono_unwind_init
mono_unwind_ops_encode
mono_marshal_get_ldflda_wrapper
mono_marshal_cleanup
mono_marshal_load_type_info
mono_marshal_set_last_error
mono_marshal_asany
mono_marshal_free_asany
mono_marshal_method_from_wrapper
mono_marshal_get_remoting_invoke
mono_marshal_get_xappdomain_invoke
mono_marshal_get_remoting_invoke_for_target
mono_marshal_get_remoting_invoke_with_check
mono_marshal_get_delegate_begin_invoke
mono_marshal_get_delegate_end_invoke
mono_marshal_get_delegate_invoke
mono_marshal_get_runtime_invoke
mono_marshal_get_runtime_invoke_dynamic
mono_marshal_get_string_ctor_signature
mono_marshal_get_managed_wrapper
mono_marshal_get_vtfixup_ftnptr
mono_marshal_get_icall_wrapper
mono_marshal_get_native_wrapper
mono_marshal_get_native_func_wrapper
mono_marshal_get_struct_to_ptr
mono_marshal_get_ptr_to_struct
mono_marshal_get_stfld_wrapper
mono_marshal_get_ldfld_wrapper
mono_marshal_get_ldfld_remote_wrapper
mono_marshal_get_stfld_remote_wrapper
mono_marshal_get_synchronized_wrapper
mono_marshal_get_unbox_wrapper
mono_marshal_get_isinst
mono_marshal_get_castclass
mono_marshal_get_proxy_cancast
mono_marshal_get_stelemref
mono_marshal_get_array_address
mono_marshal_get_thunk_invoke_wrapper
mono_marshal_free_dynamic_wrappers
mono_marshal_free_inflated_wrappers
mono_marshal_alloc
mono_marshal_free
mono_marshal_free_array
mono_marshal_free_ccw
mono_marshal_xdomain_copy_value
mono_marshal_find_nonzero_bit_offset
mono_marshal_emit_native_wrapper
mono_marshal_emit_managed_wrapper
mono_marshal_get_cache
mono_marshal_find_in_cache
mono_marshal_emit_thread_interrupt_checkpoint
cominterop_release_all_rcws
console_restore_signal_handlers
console_set_signal_handlers
__jit_debug_register_code
mono_trace_enter_method
+3 -3
View File
@@ -24,7 +24,7 @@ A small note on the choice of magic_reg for different JIT backends: the IMT
method identifier doesn't necessarily need to be stored in a register, though
doing so is fast and the JIT code has already the infrastructure to handle this
case in an arch-independent way. A JIT porter just needs to #define
MONO_ARCH_IMT_REG to the chosen register. Note that this register should be
MONO_ARCH_IMT_REG to the choosen register. Note that this register should be
part of the MONO_ARCH_CALLEE_REGS set as it will be handled by the local register
allocator (see mini/inssel.brg) and it must not be part of the registers used for
argument passing as you'd overwrite an argument in that case.
@@ -72,7 +72,7 @@ the IMT slot was asked to execute an interface method that the type doesn't impl
In the future we might want to handle this case not with a breakpoint or assert, but
by either throwing an InvalidCast exception or by going into the runtime and
adding support for the interface automagically to the type/vtable: this could be used
both for transparent proxies and for the implicit interfaces that vectors in 2.0
both for tranparent proxies and for the implicit interfaces that vectors in 2.0
provide.
For a bisect check the code is even simpler:
@@ -131,7 +131,7 @@ called the magic trampoline will fill-in the IMT slot with the proper thunk or
trampoline, so later calls will use the fast path.
This single-instance trampoline will use MONO_FAKE_IMT_METHOD as the method
it's asking to be compiled and executed: the trampoline code does recognize
this special value and retrieves the interface method to call from the usual
this special value and retrives the interface method to call from the usual
MONO_ARCH_IMT_REG saved by the trampoline code.
Given that only the IMT slots that are actually used will be initialized, this saves
quite a bit of memory, as it's unlikely that all the interface methods are called on
+6 -32
View File
@@ -4,15 +4,7 @@
Miguel de Icaza (miguel@{ximian.com,gnome.org}),
Paolo Molaro (lupus@{ximian.com,debian.org})
This documents overall design of the Mono JIT up to version
2.0. After Mono 2.0 the JIT engine was upgraded from
a tree-based intermediate representation to a linear
intermediate representation.
The Linear IL is documented here:
http://www.mono-project.com/Linear_IL
* Abstract
Mini is a new compilation engine for the Mono runtime. The
@@ -78,24 +70,6 @@
CIL code on the fly to marshal parameters, and then this
code is in turned processed by the JIT engine.
Mono has now gone through three different JIT engines, these
are:
* Original JIT engine: 2002, hard to port, hard to
implement optimizations.
* Second JIT engine, used up until Mono 2.0, very
portable, many new optimizations.
* Third JIT engine, replaced the code generation layer from
being based on a tree representation to be based on a linear
representation.
For more information on the code generation changes, see our
web site for the details on the Linear IL:
http://www.mono-project.com/Linear_IL
* Previous Experiences
Mono has built a JIT engine, which has been used to bootstrap
@@ -188,7 +162,7 @@
application domains, or generate code that will not be shared
across application domains.
* Second Generation JIT engine.
* Objectives of the new JIT engine.
We wanted to support a number of features that were missing:
@@ -232,7 +206,7 @@
necessary that the JIT engine works in most of today's
commercial hardware platforms.
* Features of the Second JIT engine.
* Features of the new JIT engine.
The new JIT engine was architected by Dietmar Maurer and Paolo
Molaro, based on the new objectives.
@@ -408,7 +382,7 @@
temporary variables generated during the various
optimizations.
** Instruction selection: Only used up until Mono 2.0
** Instruction selection
At this point, the BURS instruction selector is invoked to
transform the tree-based representation into a list of
@@ -635,7 +609,7 @@
registers, fixed registers and clobbered registers by each
operation.
* BURG Code Generator Generator: Only used up to Mono 2.0
* BURG Code Generator Generator
monoburg was written by Dietmar Maurer. It is based on the
papers from Christopher W. Fraser, Robert R. Henry and Todd
@@ -794,4 +768,4 @@
processors, and some of the framework exists today in our
register allocator and the instruction selector to cope with
this, but has not been finished. The instruction selection
would happen at the same time as local register allocation. <
would happen at the same time as local register allocation. <
+2
View File
@@ -34,8 +34,10 @@
<manpage name="monodocs2html(1)" page="../man/monodocs2html.1" />
<manpage name="monolinker(1)" page="../man/monolinker.1" />
<manpage name="monop(1)" page="../man/monop.1" />
<manpage name="monostyle(1)" page="../man/monostyle.1" />
<manpage name="mono-xmltool(1)" page="../man/mono-xmltool.1" />
<manpage name="mozroots(1)" page="../man/mozroots.1" />
<manpage name="oldmono(1)" page="../man/oldmono.1" />
<manpage name="permview(1)" page="../man/permview.1" />
<manpage name="prj2make(1)" page="../man/prj2make.1" />
<manpage name="resgen(1)" page="../man/resgen.1" />
+3 -11
View File
@@ -13,12 +13,7 @@ add_h4()
ignore_known()
{
fgrep -v -f $dir/ignore
}
ignore_hidden ()
{
fgrep -w -v -f $dir/hidden_methods
egrep -v -f $dir/ignore
}
clean_nm ()
@@ -37,8 +32,5 @@ if grep ^$ ignore >/dev/null; then
exit 1
fi
# generate the internals file
objdump -t ../mono/mini/.libs/libmono-2.0.a | grep "\.hidden" | sed 's/.*\.hidden //' > hidden_methods
nm $dir/../mono/io-layer/.libs/*.o | clean_nm | grep -v _wapi | ignore_known | sort > $dir/wapi
nm $dir/../mono/mini/.libs/libmono-2.0.a | clean_nm | ignore_known | ignore_hidden | ignore_wapi | grep -v ^ves_icall | egrep -v '^(mono_arch_|monoeg)' | sort > $dir/public-api
nm $dir/../io-layer/.libs/*.o | clean_nm | grep -v _wapi | ignore_known > $dir/wapi
nm $dir/../*/.libs/*.o | clean_nm | ignore_known | ignore_wapi | grep -v ^ves_icall | grep -v ^mono_arch_ > $dir/public-api
+855 -754
View File
File diff suppressed because it is too large. Load diff
+14 -9
View File
@@ -8,6 +8,18 @@
typedef struct _MonoImage MonoImage;
typedef struct _MonoAssembly MonoAssembly;
typedef struct {
const char *name;
const char *culture;
const char *hash_value;
const guint8* public_key;
guchar public_key_token [MONO_PUBLIC_KEY_TOKEN_LENGTH];
guint32 hash_alg;
guint32 hash_len;
guint32 flags;
guint16 major, minor, build, revision;
} MonoAssemblyName;
@API_IDX@
</div>
@@ -20,13 +32,13 @@ typedef struct _MonoAssembly MonoAssembly;
<h4><a name="api:mono_assembly_load">mono_assembly_load</a></h4>
<h4><a name="api:mono_assembly_load_full">mono_assembly_load_full</a></h4>
<h4><a name="api:mono_assembly_loaded">mono_assembly_loaded</a></h4>
<h4><a name="api:mono_assembly_get_object">mono_assembly_get_object</a></h4>
<h3>Working with Assemblies</h3>
<h4><a name="api:mono_assembly_get_image">mono_assembly_get_image</a></h4>
<h4><a name="api:mono_assembly_get_main">mono_assembly_get_main</a></h4>
<h4><a name="api:mono_assembly_getrootdir">mono_assembly_getrootdir</a></h4>
<h4><a name="api:mono_assembly_addref">mono_assembly_addref</a></h4>
<h3>Assembly Names</h3>
@@ -38,14 +50,7 @@ typedef struct _MonoAssembly MonoAssembly;
href="http://www.mono-project.com/monodoc/T:System.Reflection.AssemblyName">System.Reflection.AssemblyName</a>
managed type.
<h4><a name="api:mono_assembly_name_parse">mono_assembly_name_parse</a></h4>
<h4><a name="api:mono_assembly_name_free">mono_assembly_name_free</a></h4>
<h4><a name="api:mono_stringify_assembly_name">mono_stringify_assembly_name</a></h4>
<h4><a name="api:mono_assembly_names_equal">mono_assembly_names_equal</a></h4>
<h3>Modules</h3>
<p>An assembly is made up of one or more modules.
<h4><a name="api:mono_module_file_get_object">mono_module_file_get_object</a></h4>
<h4><a name="api:mono_module_get_object">mono_module_get_object</a></h4>
+20
View File
@@ -1,6 +1,8 @@
<h2>Class Operations</h2>
<h4><a name="api:mono_class_array_element_size">mono_class_array_element_size</a></h4>
<h4><a name="api:mono_class_create_generic_2">mono_class_create_generic_2</a></h4>
<h4><a name="api:mono_class_create_generic">mono_class_create_generic</a></h4>
<h4><a name="api:mono_class_data_size">mono_class_data_size</a></h4>
<h4><a name="api:mono_class_enum_basetype">mono_class_enum_basetype</a></h4>
<h4><a name="api:mono_class_from_generic_parameter">mono_class_from_generic_parameter</a></h4>
@@ -8,6 +10,7 @@
<h4><a name="api:mono_class_from_name_case">mono_class_from_name_case</a></h4>
<h4><a name="api:mono_class_from_name">mono_class_from_name</a></h4>
<h4><a name="api:mono_class_from_typeref">mono_class_from_typeref</a></h4>
<h4><a name="api:mono_class_get_allocation_ftn">mono_class_get_allocation_ftn</a></h4>
<h4><a name="api:mono_class_get_byref_type">mono_class_get_byref_type</a></h4>
<h4><a name="api:mono_class_get_element_class">mono_class_get_element_class</a></h4>
<h4><a name="api:mono_class_get_events">mono_class_get_events</a></h4>
@@ -19,6 +22,7 @@
<h4><a name="api:mono_class_get_flags">mono_class_get_flags</a></h4>
<h4><a name="api:mono_class_get_full">mono_class_get_full</a></h4>
<h4><a name="api:mono_class_get_image">mono_class_get_image</a></h4>
<h4><a name="api:mono_class_get_implemented_interfaces">mono_class_get_implemented_interfaces</a></h4>
<h4><a name="api:mono_class_get_interfaces">mono_class_get_interfaces</a></h4>
<h4><a name="api:mono_class_get_method_from_name">mono_class_get_method_from_name</a></h4>
<h4><a name="api:mono_class_get_methods">mono_class_get_methods</a></h4>
@@ -27,6 +31,7 @@
<h4><a name="api:mono_class_get_namespace">mono_class_get_namespace</a></h4>
<h4><a name="api:mono_class_get_nested_types">mono_class_get_nested_types</a></h4>
<h4><a name="api:mono_class_get_nesting_type">mono_class_get_nesting_type</a></h4>
<h4><a name="api:mono_class_get_overrides">mono_class_get_overrides</a></h4>
<h4><a name="api:mono_class_get_parent">mono_class_get_parent</a></h4>
<h4><a name="api:mono_class_get_properties">mono_class_get_properties</a></h4>
<h4><a name="api:mono_class_get_property_from_name">mono_class_get_property_from_name</a></h4>
@@ -39,14 +44,29 @@
<h4><a name="api:mono_class_instance_size">mono_class_instance_size</a></h4>
<h4><a name="api:mono_class_is_assignable_from">mono_class_is_assignable_from</a></h4>
<h4><a name="api:mono_class_is_enum">mono_class_is_enum</a></h4>
<h4><a name="api:mono_class_is_open_constructed_type">mono_class_is_open_constructed_type</a></h4>
<h4><a name="api:mono_class_is_subclass_of">mono_class_is_subclass_of</a></h4>
<h4><a name="api:mono_class_is_valuetype">mono_class_is_valuetype</a></h4>
<h4><a name="api:mono_class_layout_fields">mono_class_layout_fields</a></h4>
<h4><a name="api:mono_class_min_align">mono_class_min_align</a></h4>
<h4><a name="api:mono_class_native_size">mono_class_native_size</a></h4>
<h4><a name="api:mono_class_needs_cctor_run">mono_class_needs_cctor_run</a></h4>
<h4><a name="api:mono_class_num_events">mono_class_num_events</a></h4>
<h4><a name="api:mono_class_num_fields">mono_class_num_fields</a></h4>
<h4><a name="api:mono_class_num_methods">mono_class_num_methods</a></h4>
<h4><a name="api:mono_class_num_properties">mono_class_num_properties</a></h4>
<h4><a name="api:mono_class_setup_mono_type">mono_class_setup_mono_type</a></h4>
<h4><a name="api:mono_class_setup_parent">mono_class_setup_parent</a></h4>
<h4><a name="api:mono_class_setup_supertypes">mono_class_setup_supertypes</a></h4>
<h4><a name="api:mono_class_setup_vtable">mono_class_setup_vtable</a></h4>
<h4><a name="api:mono_class_value_size">mono_class_value_size</a></h4>
<h4><a name="api:mono_class_vtable">mono_class_vtable</a></h4>
<h4><a name="api:mono_class_get_cctor">mono_class_get_cctor</a></h4>
<h4><a name="api:mono_class_get_finalizer">mono_class_get_finalizer</a></h4>
<h4><a name="api:mono_class_get_method_from_name_flags">mono_class_get_method_from_name_flags</a></h4>
<h4><a name="api:mono_class_inflate_generic_signature">mono_class_inflate_generic_signature</a></h4>
<h4><a name="api:mono_class_name_from_token">mono_class_name_from_token</a></h4>
<h4><a name="api:mono_class_setup_methods">mono_class_setup_methods</a></h4>
<h4><a name="api:mono_class_setup_vtable_general">mono_class_setup_vtable_general</a></h4>
<h4><a name="api:mono_class_get_exception_for_failure">mono_class_get_exception_for_failure</a></h4>
<h4><a name="api:mono_class_is_nullable">mono_class_is_nullable</a></h4>
+30
View File
@@ -8,3 +8,33 @@
<h4><a name="api:mono_code_manager_new">mono_code_manager_new</a></h4>
<h4><a name="api:mono_code_manager_reserve">mono_code_manager_reserve</a></h4>
<h3>Registration services</h3>
<p>The core services of Mono are independent of the execution
system. The interpreter and the native code generator both
use the functions in the following section to register
handlers to execute code with the execution system.
<p>These APIs would allow a different execution engine (code
generator or interpreter) to be hooked to the rest of the Mono
VM.
<h4><a name="api:mono_install_assembly_load_hook">mono_install_assembly_load_hook</a></h4>
<h4><a name="api:mono_install_assembly_preload_hook">mono_install_assembly_preload_hook</a></h4>
<h4><a name="api:mono_install_assembly_search_hook">mono_install_assembly_search_hook</a></h4>
<h4><a name="api:mono_install_compile_method">mono_install_compile_method</a></h4>
<h4><a name="api:mono_install_free_method">mono_install_free_method</a></h4>
<h4><a name="api:mono_install_handler">mono_install_handler</a></h4>
<h4><a name="api:mono_install_lookup_dynamic_token">mono_install_lookup_dynamic_token</a></h4>
<h4><a name="api:mono_install_remoting_trampoline">mono_install_remoting_trampoline</a></h4>
<h4><a name="api:mono_install_runtime_invoke">mono_install_runtime_invoke</a></h4>
<h4><a name="api:mono_install_stack_walk">mono_install_stack_walk</a></h4>
<h4><a name="api:mono_install_thread_callbacks">mono_install_thread_callbacks</a></h4>
<h4><a name="api:mono_install_trampoline">mono_install_trampoline</a></h4>
<h4><a name="api:mono_install_runtime_cleanup">mono_install_runtime_cleanup</a></h4>
<h4><a name="api:mono_install_assembly_postload_refonly_search_hook">mono_install_assembly_postload_refonly_search_hook</a></h4>
<h4><a name="api:mono_install_assembly_postload_search_hook">mono_install_assembly_postload_search_hook</a></h4>
<h4><a name="api:mono_install_assembly_refonly_preload_hook">mono_install_assembly_refonly_preload_hook</a></h4>
<h4><a name="api:mono_install_assembly_refonly_search_hook">mono_install_assembly_refonly_search_hook</a></h4>
<h4><a name="api:mono_install_delegate_trampoline">mono_install_delegate_trampoline</a></h4>
+23 -1
View File
@@ -1,7 +1,15 @@
<h4><a name="api:mono_debug_il_offset_from_address">mono_debug_il_offset_from_address</a></h4>
<h4><a name="api:mono_debug_open_mono_symbol_file">mono_debug_open_mono_symbol_file</a></h4>
<h4><a name="api:mono_debug_source_location_from_address">mono_debug_source_location_from_address</a></h4>
<h4><a name="api:mono_debug_source_location_from_il_offset">mono_debug_source_location_from_il_offset</a></h4>
<h4><a name="api:mono_debug_add_aot_method">mono_debug_add_aot_method</a></h4>
<h4><a name="api:mono_debug_add_method">mono_debug_add_method</a></h4>
<h4><a name="api:_mono_debug_address_from_il_offset">_mono_debug_address_from_il_offset</a></h4>
<h4><a name="api:mono_debug_address_from_il_offset">mono_debug_address_from_il_offset</a></h4>
<h4><a name="api:mono_debug_add_wrapper">mono_debug_add_wrapper</a></h4>
<h4><a name="api:mono_debug_close_mono_symbol_file">mono_debug_close_mono_symbol_file</a></h4>
<h4><a name="api:mono_debug_find_method">mono_debug_find_method</a></h4>
<h4><a name="api:mono_debug_find_source_location">mono_debug_find_source_location</a></h4>
<h4><a name="api:mono_debug_using_mono_debugger">mono_debug_using_mono_debugger</a></h4>
<h3>Mono Debugger Interface</h3>
@@ -9,15 +17,29 @@
<p>These are methods that are invoked by the debugger at
runtime.
<h4><a name="api:mono_debugger_add_builtin_types">mono_debugger_add_builtin_types</a></h4>
<h4><a name="api:mono_debugger_add_method">mono_debugger_add_method</a></h4>
<h4><a name="api:mono_debugger_add_symbol_file">mono_debugger_add_symbol_file</a></h4>
<h4><a name="api:mono_debugger_add_type">mono_debugger_add_type</a></h4>
<h4><a name="api:mono_debugger_add_wrapper">mono_debugger_add_wrapper</a></h4>
<h4><a name="api:mono_debugger_breakpoint_callback">mono_debugger_breakpoint_callback</a></h4>
<h4><a name="api:mono_debugger_check_runtime_version">mono_debugger_check_runtime_version</a></h4>
<h4><a name="api:mono_debugger_create_notification_function">mono_debugger_create_notification_function</a></h4>
<h4><a name="api:mono_debugger_event">mono_debugger_event</a></h4>
<h4><a name="api:_mono_debugger_get_symfile">_mono_debugger_get_symfile</a></h4>
<h4><a name="api:mono_debugger_handle_exception">mono_debugger_handle_exception</a></h4>
<h4><a name="api:mono_debugger_insert_breakpoint_full">mono_debugger_insert_breakpoint_full</a></h4>
<h4><a name="api:mono_debugger_insert_breakpoint">mono_debugger_insert_breakpoint</a></h4>
<h4><a name="api:mono_debugger_lock">mono_debugger_lock</a></h4>
<h4><a name="api:mono_debugger_lookup_assembly">mono_debugger_lookup_assembly</a></h4>
<h4><a name="api:mono_debugger_lookup_type">mono_debugger_lookup_type</a></h4>
<h4><a name="api:mono_debugger_method_has_breakpoint">mono_debugger_method_has_breakpoint</a></h4>
<h4><a name="api:mono_debugger_remove_breakpoint">mono_debugger_remove_breakpoint</a></h4>
<h4><a name="api:mono_debugger_runtime_invoke">mono_debugger_runtime_invoke</a></h4>
<h4><a name="api:mono_debugger_start_add_type">mono_debugger_start_add_type</a></h4>
<h4><a name="api:mono_debugger_throw_exception">mono_debugger_throw_exception</a></h4>
<h4><a name="api:mono_debugger_unhandled_exception">mono_debugger_unhandled_exception</a></h4>
<h4><a name="api:mono_debugger_unlock">mono_debugger_unlock</a></h4>
<h4><a name="api:mono_debugger_run_finally">mono_debugger_run_finally</a></h4>
<h4><a name="api:mono_debugger_finalize_threads">mono_debugger_finalize_threads</a></h4>
<h4><a name="api:mono_debugger_main">mono_debugger_main</a></h4>
<h4><a name="api:mono_debugger_run_finally">mono_debugger_run_finally</a></h4>
+19
View File
@@ -0,0 +1,19 @@
<h1>Decimal Support</h1>
<p>You can use the mono_decimal functions to access and
manipulate <tt>System.Decimal</tt> types from C.
<h4><a name="api:mono_decimal2double">mono_decimal2double</a></h4>
<h4><a name="api:mono_decimal2Int64">mono_decimal2Int64</a></h4>
<h4><a name="api:mono_decimal2string">mono_decimal2string</a></h4>
<h4><a name="api:mono_decimal2UInt64">mono_decimal2UInt64</a></h4>
<h4><a name="api:mono_decimalCompare">mono_decimalCompare</a></h4>
<h4><a name="api:mono_decimalDiv">mono_decimalDiv</a></h4>
<h4><a name="api:mono_decimalFloorAndTrunc">mono_decimalFloorAndTrunc</a></h4>
<h4><a name="api:mono_decimalIncr">mono_decimalIncr</a></h4>
<h4><a name="api:mono_decimalIntDiv">mono_decimalIntDiv</a></h4>
<h4><a name="api:mono_decimalMult">mono_decimalMult</a></h4>
<h4><a name="api:mono_decimalRound">mono_decimalRound</a></h4>
<h4><a name="api:mono_decimalSetExponent">mono_decimalSetExponent</a></h4>
<h4><a name="api:mono_double2decimal">mono_double2decimal</a></h4>
<h4><a name="api:mono_string2decimal">mono_string2decimal</a></h4>
+1
View File
@@ -45,6 +45,7 @@ typedef struct _MonoAppContext MonoAppContext
<h4><a name="api:mono_domain_set_internal">mono_domain_set_internal</a></h4>
<h4><a name="api:mono_domain_set">mono_domain_set</a></h4>
<h4><a name="api:mono_domain_try_type_resolve">mono_domain_try_type_resolve</a></h4>
<h4><a name="api:mono_domain_get_tls_key">mono_domain_get_tls_key</a></h4>
<h4><a name="api:mono_domain_owns_vtable_slot">mono_domain_owns_vtable_slot</a></h4>
<h3>Contexts</h3>
+4 -13
View File
@@ -110,11 +110,9 @@ MonoMethod *adder ()
MONO_WRAPPER_UNKNOWN
</pre>
<h3>Emitting IL</h3>
<p>Functions that can be used to generate IL on the flight,
similar in spirit to System.Reflection.Emit.ILGenerator.
<h4><a name="api:mono_mb_add_data">mono_mb_add_data</a></h4>
<h4><a name="api:mono_mb_add_local">mono_mb_add_local</a></h4>
<h4><a name="api:mono_mb_create_method">mono_mb_create_method</a></h4>
<h4><a name="api:mono_mb_emit_add_to_local">mono_mb_emit_add_to_local</a></h4>
<h4><a name="api:mono_mb_emit_branch">mono_mb_emit_branch</a></h4>
<h4><a name="api:mono_mb_emit_byte">mono_mb_emit_byte</a></h4>
@@ -131,18 +129,11 @@ MonoMethod *adder ()
<h4><a name="api:mono_mb_emit_managed_call">mono_mb_emit_managed_call</a></h4>
<h4><a name="api:mono_mb_emit_native_call">mono_mb_emit_native_call</a></h4>
<h4><a name="api:mono_mb_emit_stloc">mono_mb_emit_stloc</a></h4>
<h3>Local variables and Methods</h3>
<h4><a name="api:mono_mb_create_method">mono_mb_create_method</a></h4>
<h4><a name="api:mono_mb_add_data">mono_mb_add_data</a></h4>
<h4><a name="api:mono_mb_add_local">mono_mb_add_local</a></h4>
<h4><a name="api:mono_mb_free">mono_mb_free</a></h4>
<h3>Patching Addresses</h3>
<h4><a name="api:mono_mb_patch_addr">mono_mb_patch_addr</a></h4>
<h4><a name="api:mono_mb_patch_addr_s">mono_mb_patch_addr_s</a></h4>
<h3>Method Signatures</h3>
<h4><a name="api:mono_metadata_signature_alloc">mono_metadata_signature_alloc</a></h4>
<h4><a name="api:mono_metadata_signature_dup">mono_metadata_signature_dup</a></h4>
<h4><a name="api:mono_metadata_signature_equal">mono_metadata_signature_equal</a></h4>
+7 -97
View File
@@ -1,57 +1,9 @@
<h2>Embedding Mono</h2>
<p>The simplest way of embedding Mono is illustrated here:
<pre>
int main (int argc, char *argv)
{
/*
* Load the default Mono configuration file, this is needed
* if you are planning on using the dllmaps defined on the
* system configuration
*/
mono_config_parse (NULL);
/*
* mono_jit_init() creates a domain: each assembly is
* loaded and run in a MonoDomain.
*/
MonoDomain *domain = mono_jit_init ("startup.exe");
/*
* Optionally, add an internal call that your startup.exe
* code can call, this will bridge startup.exe to Mono
*/
mono_add_internal_call ("Sample::GetMessage", getMessage);
/*
* Open the executable, and run the Main method declared
* in the executable
*/
MonoAssembly *assembly = mono_domain_assembly_open (domain, "startup.exe");
if (!assembly)
exit (2);
/*
* mono_jit_exec() will run the Main() method in the assembly.
* The return value needs to be looked up from
* System.Environment.ExitCode.
*/
mono_jit_exec (domain, assembly, argc, argv);
}
/* The C# signature for this method is: string GetMessage () in class Sample */
MonoString*
getMessage ()
{
return mono_string_new (mono_domain_get (), "Hello, world");
}
</pre>
<h4><a name="api:mono_jit_init">mono_jit_init</a></h4>
<h4><a name="api:mono_jit_exec">mono_jit_exec</a></h4>
<h4><a name="api:mono_set_dirs">mono_set_dirs</a></h4>
<h4><a name="api:mono_main">mono_main</a></h4>
<h4><a name="api:mono_parse_default_optimizations">mono_parse_default_optimizations</a></h4>
<h4><a name="api:mono_runtime_exec_main">mono_runtime_exec_main</a></h4>
<h4><a name="api:mono_runtime_exec_managed_code">mono_runtime_exec_managed_code</a></h4>
<h4><a name="api:mono_jit_cleanup">mono_jit_cleanup</a></h4>
<h4><a name="api:mono_set_defaults">mono_set_defaults</a></h4>
@@ -66,44 +18,12 @@ getMessage ()
<p>The other option is to use the Platform Invoke (P/Invoke)
to call C code from the CIL universe, using the standard
<a href="http://www.mono-project.com/Interop_with_Native_Libraries">P/Invoke</a>
mechanisms.
P/Invoke mechanisms.
<p>To register an internal call, use this call you use the
<a href="#api:mono_add_internal_call"><tt>mono_add_internal_call</tt>
routine.
<tt>mono_add_internal_call</tt> routine.
<h4><a name="api:mono_add_internal_call">mono_add_internal_call</a></h4>
<h3>P/Invoke with embedded applications</h3>
<p>Unlike internal calls, Platform/Invoke is easier to use and
more portable. It allows you to share code with Windows and
.NET that have a different setup for internal calls to their
own runtime.
<p>Usually P/Invoke declarations reference external libraries
like:
<pre>
[DllImport ("opengl")]
void glBegin (GLEnum mode)
</pre>
<p>Mono extends P/Invoke to support looking up symbols not in
an external library, but looking up those symbols into the
same address space as your program, to do this, use the
special library name "__Internal". This will direct Mono to
lookup the method in your own process.
<p>There are situations where the host operating system does
not support looking up symbols on the process address space.
For situations like this you can use
the <a href="#api:mono_dl_register_library">mono_dl_register_library</a>.
<h4><a name="api:mono_dl_register_library">mono_dl_register_library</h4>
<h3>Data Marshalling</h3>
<h4>Data Marshalling</h4>
<p>Managed objects are represented as <tt>MonoObject*</tt>
types. Those objects that the runtime consumes directly have
@@ -128,6 +48,8 @@ getMessage ()
int64, etc) must be passed as a pointer, in C# this means
passing the value as a "ref" or "out" parameter.
<h4><a name="api:mono_add_internal_call">mono_add_internal_call</a></h4>
<h3>Mono Runtime Configuration</h3>
<p>Certain features of the Mono runtime, like DLL mapping, are
@@ -143,7 +65,6 @@ getMessage ()
<h4><a name="api:mono_config_parse">mono_config_parse</a></h4>
<h4><a name="api:mono_config_parse_memory">mono_config_parse_memory</a></h4>
<h4><a name="api:mono_get_config_dir">mono_get_config_dir</a></h4>
<h3>Function Pointers</h3>
@@ -155,14 +76,3 @@ getMessage ()
<h4><a name="api:mono_create_ftnptr">mono_create_ftnptr</a></h4>
<h3>Advanced Execution Setups</h3>
<p>These are not recommended ways of initializing Mono, they
are done internally by mono_jit_init, but are here to explain
what happens internally.
<h4><a name="api:mono_runtime_exec_managed_code">mono_runtime_exec_managed_code</a></h4>
<h4><a name="api:mono_runtime_exec_main">mono_runtime_exec_main</a></h4>
<h4><a name="api:mono_init_from_assembly">mono_init_from_assembly</a></h4>
<h4><a name="api:mono_init">mono_init</a></h4>
<h4><a name="api:mono_init_version">mono_init_version</a></h4>
+1
View File
@@ -9,6 +9,7 @@
<h4><a name="api:mono_raise_exception">mono_raise_exception</a></h4>
<h4><a name="api:mono_unhandled_exception">mono_unhandled_exception</a></h4>
<h4><a name="api:mono_print_unhandled_exception">mono_print_unhandled_exception</a></h4>
<h4><a name="api:mono_handle_exception">mono_handle_exception</a></h4>
<h3>Exception Types: General API</h3>
+30
View File
@@ -10,3 +10,33 @@
<h4><a name="api:mono_gc_get_heap_size">mono_gc_get_heap_size</a></h4>
<h4><a name="api:mono_gc_get_used_size">mono_gc_get_used_size</a></h4>
<h3>Weak Links</h3>
<h4><a name="api:mono_gc_weak_link_add">mono_gc_weak_link_add</a></h4>
<h4><a name="api:mono_gc_weak_link_get">mono_gc_weak_link_get</a></h4>
<h4><a name="api:mono_gc_weak_link_remove">mono_gc_weak_link_remove</a></h4>
<h2>Internal Interface</h2>
<p>The internal interface of the Mono GC is the interface used
between the runtime engine and the garbage collector.
<h4><a name="api:mono_gc_disable">mono_gc_disable</a></h4>
<h4><a name="api:mono_gc_enable">mono_gc_enable</a></h4>
<h4><a name="api:mono_gc_is_finalizer_thread">mono_gc_is_finalizer_thread</a></h4>
<h4><a name="api:mono_gc_out_of_memory">mono_gc_out_of_memory</a></h4>
<h4><a name="api:mono_gc_start_world">mono_gc_start_world</a></h4>
<h4><a name="api:mono_gc_stop_world">mono_gc_stop_world</a></h4>
<h4><a name="api:mono_gc_alloc_fixed">mono_gc_alloc_fixed</a></h4>
<h4><a name="api:mono_gc_enable_events">mono_gc_enable_events</a></h4>
<h4><a name="api:mono_gc_free_fixed">mono_gc_free_fixed</a></h4>
<h4><a name="api:mono_gc_make_descr_from_bitmap">mono_gc_make_descr_from_bitmap</a></h4>
<h4><a name="api:mono_gc_base_init">mono_gc_base_init</a></h4>
<h4><a name="api:mono_gc_invoke_finalizers">mono_gc_invoke_finalizers</a></h4>
<h4><a name="api:mono_gc_is_gc_thread">mono_gc_is_gc_thread</a></h4>
<h4><a name="api:mono_gc_pending_finalizers">mono_gc_pending_finalizers</a></h4>
<h4><a name="api:mono_gc_register_thread">mono_gc_register_thread</a></h4>
<h4><a name="api:mono_gc_finalize_notify">mono_gc_finalize_notify</a></h4>
+1
View File
@@ -91,4 +91,5 @@ static MonoObject* o = NULL;
<h4><a name="api:mono_gchandle_new">mono_gchandle_new</a></h4>
<h4><a name="api:mono_gchandle_new_weakref">mono_gchandle_new_weakref</a></h4>
<h4><a name="api:mono_gchandle_get_target">mono_gchandle_get_target</a></h4>
<h4><a name="api:mono_gchandle_is_in_domain">mono_gchandle_is_in_domain</a></h4>
<h4><a name="api:mono_gchandle_free">mono_gchandle_free</a></h4>
+8 -108
View File
@@ -1,114 +1,14 @@
<h1>Mono Internals</h1>
<h1>Code Generator Internals</h1>
<p>This section documents some of the internal APIs used
inside Mono that developers extending or altering Mono might
want to use.
<h2>Marshalling functions</h2>
<h4><a name="api:mono_marshal_alloc">mono_marshal_alloc</a></h4>
<h4><a name="api:mono_marshal_asany">mono_marshal_asany</a></h4>
<h4><a name="api:mono_marshal_free_array">mono_marshal_free_array</a></h4>
<h4><a name="api:mono_marshal_free_asany">mono_marshal_free_asany</a></h4>
<h4><a name="api:mono_marshal_free">mono_marshal_free</a></h4>
<h4><a name="api:mono_marshal_get_castclass">mono_marshal_get_castclass</a></h4>
<h4><a name="api:mono_marshal_get_delegate_begin_invoke">mono_marshal_get_delegate_begin_invoke</a></h4>
<h4><a name="api:mono_marshal_get_delegate_end_invoke">mono_marshal_get_delegate_end_invoke</a></h4>
<h4><a name="api:mono_marshal_get_delegate_invoke">mono_marshal_get_delegate_invoke</a></h4>
<h4><a name="api:mono_marshal_get_icall_wrapper">mono_marshal_get_icall_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_isinst">mono_marshal_get_isinst</a></h4>
<h4><a name="api:mono_marshal_get_ldfld_remote_wrapper">mono_marshal_get_ldfld_remote_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_ldfld_wrapper">mono_marshal_get_ldfld_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_managed_wrapper">mono_marshal_get_managed_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_native_wrapper">mono_marshal_get_native_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_proxy_cancast">mono_marshal_get_proxy_cancast</a></h4>
<h4><a name="api:mono_marshal_get_ptr_to_struct">mono_marshal_get_ptr_to_struct</a></h4>
<h4><a name="api:mono_marshal_get_remoting_invoke_for_target">mono_marshal_get_remoting_invoke_for_target</a></h4>
<h4><a name="api:mono_marshal_get_remoting_invoke">mono_marshal_get_remoting_invoke</a></h4>
<h4><a name="api:mono_marshal_get_remoting_invoke_with_check">mono_marshal_get_remoting_invoke_with_check</a></h4>
<h4><a name="api:mono_marshal_get_runtime_invoke">mono_marshal_get_runtime_invoke</a></h4>
<h4><a name="api:mono_marshal_get_stelemref">mono_marshal_get_stelemref</a></h4>
<h4><a name="api:mono_marshal_get_stfld_remote_wrapper">mono_marshal_get_stfld_remote_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_stfld_wrapper">mono_marshal_get_stfld_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_struct_to_ptr">mono_marshal_get_struct_to_ptr</a></h4>
<h4><a name="api:mono_marshal_get_synchronized_wrapper">mono_marshal_get_synchronized_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_unbox_wrapper">mono_marshal_get_unbox_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_xappdomain_invoke">mono_marshal_get_xappdomain_invoke</a></h4>
<h4><a name="api:mono_marshal_load_type_info">mono_marshal_load_type_info</a></h4>
<h4><a name="api:mono_marshal_method_from_wrapper">mono_marshal_method_from_wrapper</a></h4>
<h4><a name="api:mono_marshal_realloc">mono_marshal_realloc</a></h4>
<h4><a name="api:mono_marshal_set_last_error">mono_marshal_set_last_error</a></h4>
<h4><a name="api:mono_marshal_type_size">mono_marshal_type_size</a></h4>
<h2>Metadata Loading Errors</h2>
<p>The routines in this section are used to cope with errors
during metadata loading. Errors in metadata handling can
happen for many reason, and these include (this is not an
exhaustive list).
<ul>
<li>An assembly referenced is missing.
<li>Fields referenced are missing.
<li>Methods referenced are missing.
</ul>
<p>The <tt>mono_loader_set_*</tt> routines are invoked during
metadata loading to flag that an error has happened. The
class loading errros are flagged in a per-thread basis.
<P>In various spots in the runtime the
<tt>mono_loader_get_last_error</tt> routine is called to check
if there was a problem, and then errors are propagated upwards
on the stack until we reach a point where an exception can be
raised and no runtime locks are held.
<p>The <tt>mono_loader_error_prepare_exception</tt> takes a
<tt>MonoLoaderError</tt> structure (the value returned from
<tt>mono_loader_get_last_error</tt>), turns that into an
exception and clears the error condition from the current
thread.
<p>The functions in this document are internal to the JIT,
they are here for completeness, but you should refer to the
source code for more details.
<h4><a name="api:mono_loader_set_error_field_load">mono_loader_set_error_field_load</a></h4>
<h4><a name="api:mono_loader_set_error_method_load">mono_loader_set_error_method_load</a></h4>
<h4><a name="api:mono_loader_set_error_type_load">mono_loader_set_error_type_load</a></h4>
<h3>BURG public API</h3>
<h4><a name="api:mono_loader_get_last_error">mono_loader_get_last_error</a></h4>
<h4><a name="api:mono_loader_clear_error">mono_loader_clear_error</a></h4>
<h4><a name="api:mono_loader_error_prepare_exception">mono_loader_error_prepare_exception</a></h4>
<h2>Metadata Loader Locking: Internals</h2>
<p>The locking functions here are used by code in class.c and
metadata.c to lock access to the shared hashtables inside the
MonoImage.
<h4><a name="api:mono_loader_lock">mono_loader_lock</a></h4>
<h4><a name="api:mono_loader_unlock">mono_loader_unlock</a></h4>
<h2>Garbage Collector Internal Interface</h2>
<p>The internal interface of the Mono GC is the interface used
between the runtime engine and the garbage collector.
<h4><a name="api:mono_gc_disable">mono_gc_disable</a></h4>
<h4><a name="api:mono_gc_enable">mono_gc_enable</a></h4>
<h4><a name="api:mono_gc_is_finalizer_thread">mono_gc_is_finalizer_thread</a></h4>
<h4><a name="api:mono_gc_out_of_memory">mono_gc_out_of_memory</a></h4>
<h4><a name="api:mono_gc_start_world">mono_gc_start_world</a></h4>
<h4><a name="api:mono_gc_stop_world">mono_gc_stop_world</a></h4>
<h4><a name="api:mono_gc_alloc_fixed">mono_gc_alloc_fixed</a></h4>
<h4><a name="api:mono_gc_enable_events">mono_gc_enable_events</a></h4>
<h4><a name="api:mono_gc_free_fixed">mono_gc_free_fixed</a></h4>
<h4><a name="api:mono_gc_make_descr_from_bitmap">mono_gc_make_descr_from_bitmap</a></h4>
<h4><a name="api:mono_gc_base_init">mono_gc_base_init</a></h4>
<h4><a name="api:mono_gc_invoke_finalizers">mono_gc_invoke_finalizers</a></h4>
<h4><a name="api:mono_gc_is_gc_thread">mono_gc_is_gc_thread</a></h4>
<h4><a name="api:mono_gc_pending_finalizers">mono_gc_pending_finalizers</a></h4>
<h4><a name="api:mono_gc_register_thread">mono_gc_register_thread</a></h4>
<h4><a name="api:mono_gc_finalize_notify">mono_gc_finalize_notify</a></h4>
<h4><a name="api:mono_burg_kids">mono_burg_kids</a></h4>
<h4><a name="api:mono_burg_label">mono_burg_label</a></h4>
<h4><a name="api:mono_burg_rule">mono_burg_rule</a></h4>
+11
View File
@@ -0,0 +1,11 @@
<h3>Interpreter API</h3>
<p>This describes the API exposed by the interpreter, but it
is for the most part an internal to the interpreter.
<h4><a name="api:mono_interp_dis_mintop">mono_interp_dis_mintop</a></h4>
<h4><a name="api:mono_interp_exec">mono_interp_exec</a></h4>
<h4><a name="api:mono_interp_ftnptr_to_delegate">mono_interp_ftnptr_to_delegate</a></h4>
<h4><a name="api:mono_interp_get_runtime_method">mono_interp_get_runtime_method</a></h4>
<h4><a name="api:mono_interp_transform_init">mono_interp_transform_init</a></h4>
<h4><a name="api:mono_interp_transform_method">mono_interp_transform_method</a></h4>
+4 -3
View File
@@ -1,8 +1,9 @@
<h1>Notification Interface</h1>
<p>This is an internal profiler interface. In general, users
would not be using this interface, but would be using the
profiler interface.
<p>Am not sure that we want to document this; This seems like
an internal interface that third parties would not likely
use, and if they do, they probably are reading the JIT's
source code.
<p>These methods must be called to notify the profiler of an
event that must be recorded. Mono's JIT engine currently
+33
View File
@@ -3,4 +3,37 @@
<h4><a name="api:mono_delegate_free_ftnptr">mono_delegate_free_ftnptr</a></h4>
<h4><a name="api:mono_delegate_to_ftnptr">mono_delegate_to_ftnptr</a></h4>
<h4><a name="api:mono_ftnptr_to_delegate">mono_ftnptr_to_delegate</a></h4>
<h4><a name="api:mono_marshal_alloc">mono_marshal_alloc</a></h4>
<h4><a name="api:mono_marshal_asany">mono_marshal_asany</a></h4>
<h4><a name="api:mono_marshal_free_array">mono_marshal_free_array</a></h4>
<h4><a name="api:mono_marshal_free_asany">mono_marshal_free_asany</a></h4>
<h4><a name="api:mono_marshal_free">mono_marshal_free</a></h4>
<h4><a name="api:mono_marshal_get_castclass">mono_marshal_get_castclass</a></h4>
<h4><a name="api:mono_marshal_get_delegate_begin_invoke">mono_marshal_get_delegate_begin_invoke</a></h4>
<h4><a name="api:mono_marshal_get_delegate_end_invoke">mono_marshal_get_delegate_end_invoke</a></h4>
<h4><a name="api:mono_marshal_get_delegate_invoke">mono_marshal_get_delegate_invoke</a></h4>
<h4><a name="api:mono_marshal_get_icall_wrapper">mono_marshal_get_icall_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_isinst">mono_marshal_get_isinst</a></h4>
<h4><a name="api:mono_marshal_get_ldfld_remote_wrapper">mono_marshal_get_ldfld_remote_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_ldfld_wrapper">mono_marshal_get_ldfld_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_managed_wrapper">mono_marshal_get_managed_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_native_wrapper">mono_marshal_get_native_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_proxy_cancast">mono_marshal_get_proxy_cancast</a></h4>
<h4><a name="api:mono_marshal_get_ptr_to_struct">mono_marshal_get_ptr_to_struct</a></h4>
<h4><a name="api:mono_marshal_get_remoting_invoke_for_target">mono_marshal_get_remoting_invoke_for_target</a></h4>
<h4><a name="api:mono_marshal_get_remoting_invoke">mono_marshal_get_remoting_invoke</a></h4>
<h4><a name="api:mono_marshal_get_remoting_invoke_with_check">mono_marshal_get_remoting_invoke_with_check</a></h4>
<h4><a name="api:mono_marshal_get_runtime_invoke">mono_marshal_get_runtime_invoke</a></h4>
<h4><a name="api:mono_marshal_get_stelemref">mono_marshal_get_stelemref</a></h4>
<h4><a name="api:mono_marshal_get_stfld_remote_wrapper">mono_marshal_get_stfld_remote_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_stfld_wrapper">mono_marshal_get_stfld_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_struct_to_ptr">mono_marshal_get_struct_to_ptr</a></h4>
<h4><a name="api:mono_marshal_get_synchronized_wrapper">mono_marshal_get_synchronized_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_unbox_wrapper">mono_marshal_get_unbox_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_xappdomain_invoke">mono_marshal_get_xappdomain_invoke</a></h4>
<h4><a name="api:mono_marshal_load_type_info">mono_marshal_load_type_info</a></h4>
<h4><a name="api:mono_marshal_method_from_wrapper">mono_marshal_method_from_wrapper</a></h4>
<h4><a name="api:mono_marshal_realloc">mono_marshal_realloc</a></h4>
<h4><a name="api:mono_marshal_set_last_error">mono_marshal_set_last_error</a></h4>
<h4><a name="api:mono_marshal_string_to_utf16">mono_marshal_string_to_utf16</a></h4>
<h4><a name="api:mono_marshal_type_size">mono_marshal_type_size</a></h4>
+56
View File
@@ -618,6 +618,7 @@ MONO_TYPESPEC_SIZE
<h4><a name="api:mono_image_get_table_info">mono_image_get_table_info</a></h4>
<h4><a name="api:mono_image_get_table_rows">mono_image_get_table_rows</a></h4>
<h4><a name="api:mono_metadata_get_table">mono_metadata_get_table</a></h4>
<h4><a name="api:mono_meta_table_name">mono_meta_table_name</a></h4>
<h4><a name="api:mono_metadata_decode_row_col">mono_metadata_decode_row_col</a></h4>
<h4><a name="api:mono_metadata_decode_row">mono_metadata_decode_row</a></h4>
<h4><a name="api:mono_metadata_compute_size">mono_metadata_compute_size</a></h4>
@@ -642,6 +643,7 @@ MONO_TYPESPEC_SIZE
<h4><a name="api:mono_metadata_get_constant_index">mono_metadata_get_constant_index</a></h4>
<h4><a name="api:mono_metadata_get_marshal_info">mono_metadata_get_marshal_info</a></h4>
<h4><a name="api:mono_metadata_implmap_from_method">mono_metadata_implmap_from_method</a></h4>
<h4><a name="api:mono_metadata_interfaces_from_typedef_full">mono_metadata_interfaces_from_typedef_full</a></h4>
<h4><a name="api:mono_metadata_interfaces_from_typedef">mono_metadata_interfaces_from_typedef</a></h4>
<h4><a name="api:mono_metadata_locate">mono_metadata_locate</a></h4>
<h4><a name="api:mono_metadata_locate_token">mono_metadata_locate_token</a></h4>
@@ -669,25 +671,79 @@ MONO_TYPESPEC_SIZE
<h4><a name="api:mono_metadata_parse_mh_full">mono_metadata_parse_mh_full</a></h4>
<h4><a name="api:mono_metadata_parse_mh">mono_metadata_parse_mh</a></h4>
<h4><a name="api:mono_metadata_parse_param">mono_metadata_parse_param</a></h4>
<h4><a name="api:mono_metadata_parse_signature_full">mono_metadata_parse_signature_full</a></h4>
<h4><a name="api:mono_metadata_parse_signature">mono_metadata_parse_signature</a></h4>
<h4><a name="api:mono_metadata_parse_typedef_or_ref">mono_metadata_parse_typedef_or_ref</a></h4>
<h4><a name="api:mono_metadata_parse_type_full">mono_metadata_parse_type_full</a></h4>
<h4><a name="api:mono_metadata_parse_type">mono_metadata_parse_type</a></h4>
<h2>Metadata Loader Locking</h2>
<p>The locking functions here are used by code in class.c and
metadata.c to lock access to the shared hashtables inside the
MonoImage.
<h4><a name="api:mono_loader_lock">mono_loader_lock</a></h4>
<h4><a name="api:mono_loader_unlock">mono_loader_unlock</a></h4>
<h2>Generics Support</h2>
<h4><a name="api:mono_metadata_generic_class_is_valuetype">mono_metadata_generic_class_is_valuetype</a></h4>
<h4><a name="api:mono_metadata_has_generic_params">mono_metadata_has_generic_params</a></h4>
<h4><a name="api:mono_metadata_inflate_generic_inst">mono_metadata_inflate_generic_inst</a></h4>
<h4><a name="api:mono_metadata_parse_generic_inst">mono_metadata_parse_generic_inst</a></h4>
<h4><a name="api:mono_metadata_generic_inst_equal">mono_metadata_generic_inst_equal</a></h4>
<h4><a name="api:mono_metadata_generic_inst_hash">mono_metadata_generic_inst_hash</a></h4>
<h4><a name="api:mono_metadata_load_generic_params">mono_metadata_load_generic_params</a></h4>
<h4><a name="api:mono_metadata_generic_inst_is_valuetype">mono_metadata_generic_inst_is_valuetype</a></h4>
<h4><a name="api:mono_metadata_generic_method_equal">mono_metadata_generic_method_equal</a></h4>
<h2>Tokens</h2>
<h4><a name="api:mono_ldtoken">mono_ldtoken</a></h4>
<h4><a name="api:mono_lookup_dynamic_token">mono_lookup_dynamic_token</a></h4>
<h4><a name="api:mono_ldstr">mono_ldstr</a></h4>
<h4><a name="api:mono_exception_from_token">mono_exception_from_token</a></h4>
<h4><a name="api:mono_create_jit_trampoline_from_token">mono_create_jit_trampoline_from_token</a></h4>
<h2>OpCodes</h2>
<h4><a name="api:mono_opcode_name">mono_opcode_name</a></h4>
<h4><a name="api:mono_opcode_value">mono_opcode_value</a></h4>
<h2>Metadata Loading Errors</h2>
<p>The routines in this section are used to cope with errors
during metadata loading. Errors in metadata handling can
happen for many reason, and these include (this is not an
exhaustive list).
<ul>
<li>An assembly referenced is missing.
<li>Fields referenced are missing.
<li>Methods referenced are missing.
</ul>
<p>The <tt>mono_loader_set_*</tt> routines are invoked during
metadata loading to flag that an error has happened. The
class loading errros are flagged in a per-thread basis.
<P>In various spots in the runtime the
<tt>mono_loader_get_last_error</tt> routine is called to check
if there was a problem, and then errors are propagated upwards
on the stack until we reach a point where an exception can be
raised and no runtime locks are held.
<p>The <tt>mono_loader_error_prepare_exception</tt> takes a
<tt>MonoLoaderError</tt> structure (the value returned from
<tt>mono_loader_get_last_error</tt>), turns that into an
exception and clears the error condition from the current
thread.
<h4><a name="api:mono_loader_set_error_field_load">mono_loader_set_error_field_load</a></h4>
<h4><a name="api:mono_loader_set_error_method_load">mono_loader_set_error_method_load</a></h4>
<h4><a name="api:mono_loader_set_error_type_load">mono_loader_set_error_type_load</a></h4>
<h4><a name="api:mono_loader_get_last_error">mono_loader_get_last_error</a></h4>
<h4><a name="api:mono_loader_clear_error">mono_loader_clear_error</a></h4>
<h4><a name="api:mono_loader_error_prepare_exception">mono_loader_error_prepare_exception</a></h4>
+5 -4
View File
@@ -26,9 +26,10 @@ mono_runtime_invoke (method, obj, args, &amp;exception);
<h4><a name="api:mono_runtime_invoke_array">mono_runtime_invoke_array</a></h4>
<h4><a name="api:mono_remoting_invoke">mono_remoting_invoke</a></h4>
<h4><a name="api:mono_runtime_delegate_invoke">mono_runtime_delegate_invoke</a></h4>
<h4><a name="api:mono_method_body_get_object">mono_method_body_get_object</a></h4>
<h4><a name="api:mono_method_call_message_new">mono_method_call_message_new</a></h4>
<h4><a name="api:mono_method_desc_free">mono_method_desc_free</a></h4>
<h4><a name="api:mono_method_desc_from_method">mono_method_desc_from_method</a></h4>
<h4><a name="api:mono_method_desc_full_match">mono_method_desc_full_match</a></h4>
@@ -49,7 +50,10 @@ mono_runtime_invoke (method, obj, args, &amp;exception);
<h4><a name="api:mono_method_get_index">mono_method_get_index</a></h4>
<h4><a name="api:mono_method_get_signature_full">mono_method_get_signature_full</a></h4>
<h4><a name="api:mono_method_get_token">mono_method_get_token</a></h4>
<h4><a name="api:mono_method_get_wrapper_data">mono_method_get_wrapper_data</a></h4>
<h4><a name="api:mono_method_has_marshal_info">mono_method_has_marshal_info</a></h4>
<h4><a name="api:mono_method_return_message_restore">mono_method_return_message_restore</a></h4>
<h4><a name="api:mono_method_same_domain">mono_method_same_domain</a></h4>
<h4><a name="api:mono_method_verify">mono_method_verify</a></h4>
<h3>Method Signatures</h3>
@@ -64,9 +68,6 @@ mono_runtime_invoke (method, obj, args, &amp;exception);
<h4><a name="api:mono_signature_hash">mono_signature_hash</a></h4>
<h4><a name="api:mono_signature_is_instance">mono_signature_is_instance</a></h4>
<h4><a name="api:mono_signature_vararg_start">mono_signature_vararg_start</a></h4>
<h4><a name="api:mono_param_get_objects">mono_param_get_objects</a></h4>
<h4><a name="api:mono_get_method_full">mono_get_method_full</a></h4>
<h4><a name="api:mono_get_method">mono_get_method</a></h4>
<h3>Methods Header Operations</h3>
+26 -5
View File
@@ -2,7 +2,8 @@
<p>The object API deals with all the operations shared by
<a href="#objects">objects</a>, <a href="#valuetypes">value
types</a>, <a href="#arrays">arrays</a>.
types</a>, <a href="#arrays">arrays</a> and <a
href="#nullable">nullable types</a>.
<p>The object API has methods for accessing <a
href="#fields">fields</a>, <a
@@ -10,7 +11,8 @@
href="#events">events</a>, <a href="#delegates">delegates</a>.
<p>There are some advanced uses that are useful to document
here dealing with <a href="#remote">remote fields</a>.
here dealing with <a href="#async">AsyncResults</a> and <a
href="#remote">remote fields</a>.
<h2>Synopsis</h2>
@@ -91,6 +93,7 @@ result = mono_object_new (mono_domain_get (), version_class);
<h4><a name="api:mono_object_get_virtual_method">mono_object_get_virtual_method</a></h4>
<h4><a name="api:mono_object_isinst_mbyref">mono_object_isinst_mbyref</a></h4>
<h4><a name="api:mono_object_isinst">mono_object_isinst</a></h4>
<h4><a name="api:mono_object_register_finalizer">mono_object_register_finalizer</a></h4>
<h4><a name="api:mono_object_unbox">mono_object_unbox</a></h4>
<h4><a name="api:mono_object_castclass_mbyref">mono_object_castclass_mbyref</a></h4>
<h4><a name="api:mono_object_is_alive">mono_object_is_alive</a></h4>
@@ -134,7 +137,12 @@ result = mono_object_new (mono_domain_get (), version_class);
<h4><a name="api:mono_array_new_full">mono_array_new_full</a></h4>
<h4><a name="api:mono_array_new_specific">mono_array_new_specific</a></h4>
<h4><a name="api:mono_array_class_get">mono_array_class_get</a></h4>
<h4><a name="api:mono_array_clone_in_domain">mono_array_clone_in_domain</a></h4>
<h4><a name="api:mono_array_clone">mono_array_clone</a></h4>
<h4><a name="api:mono_array_full_copy">mono_array_full_copy</a></h4>
<h4><a name="api:mono_array_to_lparray">mono_array_to_lparray</a></h4>
<h4><a name="api:mono_array_to_savearray">mono_array_to_savearray</a></h4>
<h4><a name="api:mono_dup_array_type">mono_dup_array_type</a></h4>
<h3>Using Arrays</h3>
@@ -159,12 +167,10 @@ result = mono_object_new (mono_domain_get (), version_class);
<h4><a name="api:mono_field_set_value">mono_field_set_value</a></h4>
<h4><a name="api:mono_field_static_get_value">mono_field_static_get_value</a></h4>
<h4><a name="api:mono_field_static_set_value">mono_field_static_set_value</a></h4>
<h4><a name="api:mono_field_get_object">mono_field_get_object</a></h4>
<a name="properties"></a>
<h2>Properties</h2>
<h4><a name="api:mono_property_get_object">mono_property_get_object</a></h4>
<h4><a name="api:mono_property_get_flags">mono_property_get_flags</a></h4>
<h4><a name="api:mono_property_get_get_method">mono_property_get_get_method</a></h4>
<h4><a name="api:mono_property_get_name">mono_property_get_name</a></h4>
@@ -176,7 +182,6 @@ result = mono_object_new (mono_domain_get (), version_class);
<a name="events"></a>
<h2>Events</h2>
<h4><a name="api:mono_event_get_object">mono_event_get_object</a></h4>
<h4><a name="api:mono_event_get_add_method">mono_event_get_add_method</a></h4>
<h4><a name="api:mono_event_get_flags">mono_event_get_flags</a></h4>
<h4><a name="api:mono_event_get_name">mono_event_get_name</a></h4>
@@ -184,6 +189,14 @@ result = mono_object_new (mono_domain_get (), version_class);
<h4><a name="api:mono_event_get_raise_method">mono_event_get_raise_method</a></h4>
<h4><a name="api:mono_event_get_remove_method">mono_event_get_remove_method</a></h4>
<a name="delegates"></a>
<h2>Delegates</h2>
<h4><a name="api:mono_delegate_ctor">mono_delegate_ctor</a></h4>
<a name="async"></a>
<h2>AsyncResults</h2>
<h4><a name="api:mono_async_result_new">mono_async_result_new</a></h4>
<a name="remote"></a>
<h2>Remote Fields</h2>
<h4><a name="api:mono_load_remote_field">mono_load_remote_field</a></h4>
@@ -191,3 +204,11 @@ result = mono_object_new (mono_domain_get (), version_class);
<h4><a name="api:mono_store_remote_field">mono_store_remote_field</a></h4>
<h4><a name="api:mono_store_remote_field_new">mono_store_remote_field_new</a></h4>
<a name="nullable"></a>
<h2>Nullable Objects</h2>
<p>These methods are used to manipulate objects of type
System.Nullable&lt;T&gt;
<h4><a name="api:mono_nullable_box">mono_nullable_box</a></h4>
<h4><a name="api:mono_nullable_init">mono_nullable_init</a></h4>
+16 -5
View File
@@ -1,16 +1,28 @@
<h2>Fetching Types, and Basic Reflection</h2>
<h4><a name="api:mono_reflection_bind_generic_method_parameters">mono_reflection_bind_generic_method_parameters</a></h4>
<h4><a name="api:mono_reflection_bind_generic_parameters">mono_reflection_bind_generic_parameters</a></h4>
<h4><a name="api:mono_reflection_create_dynamic_method">mono_reflection_create_dynamic_method</a></h4>
<h4><a name="api:mono_reflection_create_generic_class">mono_reflection_create_generic_class</a></h4>
<h4><a name="api:mono_reflection_create_internal_class">mono_reflection_create_internal_class</a></h4>
<h4><a name="api:mono_reflection_create_runtime_class">mono_reflection_create_runtime_class</a></h4>
<h4><a name="api:mono_reflection_event_builder_get_event_info">mono_reflection_event_builder_get_event_info</a></h4>
<h4><a name="api:mono_reflection_generic_inst_initialize">mono_reflection_generic_inst_initialize</a></h4>
<h4><a name="api:mono_reflection_get_custom_attrs_blob">mono_reflection_get_custom_attrs_blob</a></h4>
<h4><a name="api:mono_reflection_get_custom_attrs">mono_reflection_get_custom_attrs</a></h4>
<h4><a name="api:mono_custom_attrs_get_attr">mono_custom_attrs_get_attr</a></h4>
<h4><a name="api:mono_reflection_get_token">mono_reflection_get_token</a></h4>
<h4><a name="api:mono_reflection_get_type">mono_reflection_get_type</a></h4>
<h4><a name="api:mono_reflection_initialize_generic_parameter">mono_reflection_initialize_generic_parameter</a></h4>
<h4><a name="api:mono_reflection_lookup_dynamic_token">mono_reflection_lookup_dynamic_token</a></h4>
<h4><a name="api:mono_reflection_marshal_from_marshal_spec">mono_reflection_marshal_from_marshal_spec</a></h4>
<h4><a name="api:mono_reflection_parse_type">mono_reflection_parse_type</a></h4>
<h4><a name="api:mono_reflection_setup_generic_class">mono_reflection_setup_generic_class</a></h4>
<h4><a name="api:mono_reflection_setup_internal_class">mono_reflection_setup_internal_class</a></h4>
<h4><a name="api:mono_reflection_sighelper_get_signature_field">mono_reflection_sighelper_get_signature_field</a></h4>
<h4><a name="api:mono_reflection_sighelper_get_signature_local">mono_reflection_sighelper_get_signature_local</a></h4>
<h4><a name="api:mono_reflection_type_from_name">mono_reflection_type_from_name</a></h4>
<h4><a name="api:mono_reflection_generic_class_initialize">mono_reflection_generic_class_initialize</a></h4>
<h4><a name="api:mono_reflection_get_custom_attrs_info">mono_reflection_get_custom_attrs_info</a></h4>
<h2>Custom Attributes</h2>
<h4><a name="api:mono_custom_attrs_construct">mono_custom_attrs_construct</a></h4>
<h4><a name="api:mono_custom_attrs_free">mono_custom_attrs_free</a></h4>
<h4><a name="api:mono_custom_attrs_from_assembly">mono_custom_attrs_from_assembly</a></h4>
@@ -23,7 +35,6 @@
<h4><a name="api:mono_custom_attrs_from_property">mono_custom_attrs_from_property</a></h4>
<h4><a name="api:mono_custom_attrs_has_attr">mono_custom_attrs_has_attr</a></h4>
<h2>
<h4><a name="api:mono_module_file_get_object">mono_module_file_get_object</a></h4>
<h4><a name="api:mono_module_get_object">mono_module_get_object</a></h4>
<h4><a name="api:mono_method_body_get_object">mono_method_body_get_object</a></h4>
+4
View File
@@ -1,5 +1,9 @@
<h3>Security Manager</h3>
<h4><a name="api:mono_is_security_manager_active">mono_is_security_manager_active</a></h4>
<h4><a name="api:mono_security_manager_get_methods">mono_security_manager_get_methods</a></h4>
<h4><a name="api:mono_activate_security_manager">mono_activate_security_manager</a></h4>
<h4><a name="api:mono_is_ecma_key">mono_is_ecma_key</a></h4>
<h4><a name="api:mono_get_context_capture_method">mono_get_context_capture_method</a></h4>
<h3>Declarative Security</h3>
+12
View File
@@ -41,8 +41,12 @@ typedef struct {
<h3>Conversions</h3>
<h4><a name="api:mono_string_to_byvalstr">mono_string_to_byvalstr</a></h4>
<h4><a name="api:mono_string_to_byvalwstr">mono_string_to_byvalwstr</a></h4>
<h4><a name="api:mono_string_to_utf16">mono_string_to_utf16</a></h4>
<h4><a name="api:mono_string_to_utf8">mono_string_to_utf8</a></h4>
<h4><a name="api:mono_string_utf16_to_builder">mono_string_utf16_to_builder</a></h4>
<h4><a name="api:mono_string_utf8_to_builder">mono_string_utf8_to_builder</a></h4>
<h3>Methods</h3>
@@ -55,6 +59,14 @@ typedef struct {
<h4><a name="api:mono_string_length">mono_string_length</a></h4>
<h3>String Builders</h3>
<p>These routines are used to work with the managed types
<tt>System.Text.StringBuilder</tt>.
<h4><a name="api:mono_string_builder_to_utf16">mono_string_builder_to_utf16</a></h4>
<h4><a name="api:mono_string_builder_to_utf8">mono_string_builder_to_utf8</a></h4>
<h3>Other Encodings</h3>
<p>These routines are used when coping with strings that come
+22
View File
@@ -1,13 +1,24 @@
<h2>Working with threads</h2>
<h3>Thread API</h3>
<h4><a name="api:mono_thread_abort_all_other_threads">mono_thread_abort_all_other_threads</a></h4>
<h4><a name="api:mono_thread_attach">mono_thread_attach</a></h4>
<h4><a name="api:mono_thread_create">mono_thread_create</a></h4>
<h4><a name="api:mono_thread_current">mono_thread_current</a></h4>
<h4><a name="api:mono_thread_detach">mono_thread_detach</a></h4>
<h4><a name="api:mono_thread_exit">mono_thread_exit</a></h4>
<h4><a name="api:mono_thread_force_interruption_checkpoint">mono_thread_force_interruption_checkpoint</a></h4>
<h4><a name="api:mono_thread_get_abort_signal">mono_thread_get_abort_signal</a></h4>
<h4><a name="api:mono_thread_get_pending_exception">mono_thread_get_pending_exception</a></h4>
<h4><a name="api:mono_thread_interruption_checkpoint">mono_thread_interruption_checkpoint</a></h4>
<h4><a name="api:mono_thread_interruption_requested">mono_thread_interruption_requested</a></h4>
<h4><a name="api:mono_thread_interruption_request_flag">mono_thread_interruption_request_flag</a></h4>
<h4><a name="api:mono_thread_manage">mono_thread_manage</a></h4>
<h4><a name="api:mono_thread_new_init">mono_thread_new_init</a></h4>
<h4><a name="api:mono_thread_pop_appdomain_ref">mono_thread_pop_appdomain_ref</a></h4>
<h4><a name="api:mono_thread_push_appdomain_ref">mono_thread_push_appdomain_ref</a></h4>
<h4><a name="api:mono_thread_request_interruption">mono_thread_request_interruption</a></h4>
<h4><a name="api:mono_threads_abort_appdomain_threads">mono_threads_abort_appdomain_threads</a></h4>
<h4><a name="api:mono_threads_get_default_stacksize">mono_threads_get_default_stacksize</a></h4>
<h4><a name="api:mono_threads_install_cleanup">mono_threads_install_cleanup</a></h4>
<h4><a name="api:mono_threads_set_default_stacksize">mono_threads_set_default_stacksize</a></h4>
@@ -15,10 +26,21 @@
<h4><a name="api:mono_thread_get_main">mono_thread_get_main</a></h4>
<h4><a name="api:mono_thread_set_main">mono_thread_set_main</a></h4>
<h4><a name="api:mono_thread_get_tls_key">mono_thread_get_tls_key</a></h4>
<h4><a name="api:mono_pthread_key_for_tls">mono_pthread_key_for_tls</a></h4>
<h3>Thread Pool API</h3>
<h4><a name="api:mono_thread_pool_add">mono_thread_pool_add</a></h4>
<h4><a name="api:mono_thread_pool_finish">mono_thread_pool_finish</a></h4>
<h3>Monitors</h3>
<h4><a name="api:mono_monitor_enter">mono_monitor_enter</a></h4>
<h4><a name="api:mono_monitor_exit">mono_monitor_exit</a></h4>
<h4><a name="api:mono_monitor_try_enter">mono_monitor_try_enter</a></h4>
<h3>Mono VM development</h3>
<h4><a name="api:mono_threads_clear_cached_culture">mono_threads_clear_cached_culture</a></h4>
<h4><a name="api:mono_thread_suspend_all_other_threads">mono_thread_suspend_all_other_threads</a></h4>
<h4><a name="api:mono_thread_has_appdomain_ref">mono_thread_has_appdomain_ref</a></h4>
+14
View File
@@ -0,0 +1,14 @@
<h2>Tracing</h2>
<h4><a name="api:mono_trace_cleanup">mono_trace_cleanup</a></h4>
<h4><a name="api:mono_trace">mono_trace</a></h4>
<h4><a name="api:mono_trace_parse_options">mono_trace_parse_options</a></h4>
<h4><a name="api:mono_trace_pop">mono_trace_pop</a></h4>
<h4><a name="api:mono_trace_push">mono_trace_push</a></h4>
<h4><a name="api:mono_trace_set_assembly">mono_trace_set_assembly</a></h4>
<h4><a name="api:mono_trace_set_level">mono_trace_set_level</a></h4>
<h4><a name="api:mono_trace_set_level_string">mono_trace_set_level_string</a></h4>
<h4><a name="api:mono_trace_set_mask">mono_trace_set_mask</a></h4>
<h4><a name="api:mono_trace_set_mask_string">mono_trace_set_mask_string</a></h4>
<h4><a name="api:mono_tracev">mono_tracev</a></h4>
<h4><a name="api:mono_trace_is_traced">mono_trace_is_traced</a></h4>
+8 -18
View File
@@ -1,32 +1,22 @@
<h2>Type support</h2>
<h3>Synopsis</h3>
<div class="header">
#include &lt;metadata/metadata.h&gt;
#include &lt;metadata/class.h&gt;
typedef struct _MonoType MonoType;
@API_IDX@
</div>
<p>The MonoType represents the unmanaged version of
System.Type.
<h4><a name="api:mono_type_get_object">mono_type_get_object</a></h4>
<h4><a name="api:mono_type_create_from_typespec_full">mono_type_create_from_typespec_full</a></h4>
<h4><a name="api:mono_type_create_from_typespec">mono_type_create_from_typespec</a></h4>
<h4><a name="api:mono_type_full_name">mono_type_full_name</a></h4>
<h4><a name="api:mono_type_get_array_type">mono_type_get_array_type</a></h4>
<h4><a name="api:mono_type_get_class">mono_type_get_class</a></h4>
<h4><a name="api:mono_type_get_desc">mono_type_get_desc</a></h4>
<h4><a name="api:mono_type_get_full_name">mono_type_get_full_name</a></h4>
<h4><a name="api:mono_type_get_modifiers">mono_type_get_modifiers</a></h4>
<h4><a name="api:mono_type_get_name">mono_type_get_name</a></h4>
<h4><a name="api:mono_type_get_signature">mono_type_get_signature</a></h4>
<h4><a name="api:mono_type_get_type">mono_type_get_type</a></h4>
<h4><a name="api:mono_type_get_underlying_type">mono_type_get_underlying_type</a></h4>
<h4><a name="api:mono_type_initialization_init">mono_type_initialization_init</a></h4>
<h4><a name="api:mono_type_is_byref">mono_type_is_byref</a></h4>
<h4><a name="api:mono_type_native_stack_size">mono_type_native_stack_size</a></h4>
<h4><a name="api:mono_type_size">mono_type_size</a></h4>
<h4><a name="api:mono_type_stack_size">mono_type_stack_size</a></h4>
<h4><a name="api:mono_type_to_ldind">mono_type_to_ldind</a></h4>
<h4><a name="api:mono_type_to_stind">mono_type_to_stind</a></h4>
<h4><a name="api:mono_type_to_unmanaged">mono_type_to_unmanaged</a></h4>
<h4><a name="api:mono_type_generic_inst_is_valuetype">mono_type_generic_inst_is_valuetype</a></h4>
<h4><a name="api:mono_type_get_name_full">mono_type_get_name_full</a></h4>
<h4><a name="api:mono_type_generic_inst_is_valuetype">mono_type_generic_inst_is_valuetype</a></h4>
+21
View File
@@ -1,32 +1,51 @@
<h4><a name="api:mini_compile_generic_method">mini_compile_generic_method</a></h4>
<h4><a name="api:mono_alloc_special_static_data">mono_alloc_special_static_data</a></h4>
<h4><a name="api:mono_bounded_array_class_get">mono_bounded_array_class_get</a></h4>
<h4><a name="api:mono_check_corlib_version">mono_check_corlib_version</a></h4>
<h4><a name="api:mono_compile_method">mono_compile_method</a></h4>
<h4><a name="api:mono_config_for_assembly">mono_config_for_assembly</a></h4>
<h4><a name="api:mono_create_icall_signature">mono_create_icall_signature</a></h4>
<h4><a name="api:mono_create_jit_trampoline">mono_create_jit_trampoline</a></h4>
<h4><a name="api:mono_create_jump_table">mono_create_jump_table</a></h4>
<h4><a name="api:mono_create_jump_trampoline">mono_create_jump_trampoline</a></h4>
<h4><a name="api:mono_dllmap_insert">mono_dllmap_insert</a></h4>
<h4><a name="api:mono_environment_exitcode_get">mono_environment_exitcode_get</a></h4>
<h4><a name="api:mono_environment_exitcode_set">mono_environment_exitcode_set</a></h4>
<h4><a name="api:mono_find_method_by_name">mono_find_method_by_name</a></h4>
<h4><a name="api:mono_free_method">mono_free_method</a></h4>
<h4><a name="api:mono_free_verify_list">mono_free_verify_list</a></h4>
<h4><a name="api:mono_get_config_dir">mono_get_config_dir</a></h4>
<h4><a name="api:mono_get_constant_value_from_blob">mono_get_constant_value_from_blob</a></h4>
<h4><a name="api:mono_get_corlib">mono_get_corlib</a></h4>
<h4><a name="api:mono_get_delegate_invoke">mono_get_delegate_invoke</a></h4>
<h4><a name="api:mono_get_framework_version">mono_get_framework_version</a></h4>
<h4><a name="api:mono_get_method_full">mono_get_method_full</a></h4>
<h4><a name="api:mono_get_method">mono_get_method</a></h4>
<h4><a name="api:mono_get_root_domain">mono_get_root_domain</a></h4>
<h4><a name="api:mono_get_runtime_version">mono_get_runtime_version</a></h4>
<h4><a name="api:mono_get_special_static_data">mono_get_special_static_data</a></h4>
<h4><a name="api:mono_init_from_assembly">mono_init_from_assembly</a></h4>
<h4><a name="api:mono_init">mono_init</a></h4>
<h4><a name="api:mono_init_version">mono_init_version</a></h4>
<h4><a name="api:mono_invoke_delegate">mono_invoke_delegate</a></h4>
<h4><a name="api:mono_jit_exec">mono_jit_exec</a></h4>
<h4><a name="api:mono_lookup_internal_call">mono_lookup_internal_call</a></h4>
<h4><a name="api:mono_lookup_pinvoke_call">mono_lookup_pinvoke_call</a></h4>
<h4><a name="api:mono_main">mono_main</a></h4>
<h4><a name="api:mono_message_init">mono_message_init</a></h4>
<h4><a name="api:mono_message_invoke">mono_message_invoke</a></h4>
<h4><a name="api:mono_parse_default_optimizations">mono_parse_default_optimizations</a></h4>
<h4><a name="api:mono_perform_abc_removal">mono_perform_abc_removal</a></h4>
<h4><a name="api:mono_ptr_class_get">mono_ptr_class_get</a></h4>
<h4><a name="api:mono_register_bundled_assemblies">mono_register_bundled_assemblies</a></h4>
<h4><a name="api:mono_release_type_locks">mono_release_type_locks</a></h4>
<h4><a name="api:mono_remote_class">mono_remote_class</a></h4>
<h4><a name="api:mono_remote_class_vtable">mono_remote_class_vtable</a></h4>
<h4><a name="api:mono_runtime_class_init">mono_runtime_class_init</a></h4>
<h4><a name="api:mono_runtime_cleanup">mono_runtime_cleanup</a></h4>
<h4><a name="api:mono_runtime_free_method">mono_runtime_free_method</a></h4>
<h4><a name="api:mono_runtime_get_main_args">mono_runtime_get_main_args</a></h4>
<h4><a name="api:mono_runtime_init">mono_runtime_init</a></h4>
<h4><a name="api:mono_runtime_is_shutting_down">mono_runtime_is_shutting_down</a></h4>
@@ -34,6 +53,8 @@
<h4><a name="api:mono_runtime_quit">mono_runtime_quit</a></h4>
<h4><a name="api:mono_runtime_run_main">mono_runtime_run_main</a></h4>
<h4><a name="api:mono_table_info_get_rows">mono_table_info_get_rows</a></h4>
<h4><a name="api:mono_upgrade_remote_class">mono_upgrade_remote_class</a></h4>
<h4><a name="api:mono_upgrade_remote_class_wrapper">mono_upgrade_remote_class_wrapper</a></h4>
<h4><a name="api:mono_verify_corlib">mono_verify_corlib</a></h4>
<h4><a name="api:mono_vtable_get_static_field_data">mono_vtable_get_static_field_data</a></h4>
<h4><a name="api:mono_wait_handle_new">mono_wait_handle_new</a></h4>
+14
View File
@@ -56,6 +56,18 @@
<h4><a name="api:mono_g_hash_table_size">mono_g_hash_table_size</a></h4>
<h4><a name="api:mono_g_hash_table_steal">mono_g_hash_table_steal</a></h4>
<h3>Raw buffer</h3>
<p>Raw buffers provide an abstraction to load segments of
files into memory. If the operating system supports it, the
files are not loaded, but are mapped into the address space of
the process (On Unix, this is done using the <tt>mmap(2)</tt>
system call).
<h4><a name="api:mono_raw_buffer_load">mono_raw_buffer_load</a></h4>
<h4><a name="api:mono_raw_buffer_update">mono_raw_buffer_update</a></h4>
<h4><a name="api:mono_raw_buffer_free">mono_raw_buffer_free</a></h4>
<h3>SHA1 Signatures</h3>
<h4><a name="api:mono_sha1_init">mono_sha1_init</a></h4>
@@ -104,6 +116,7 @@
<h3>JIT utilities</h3>
<h4><a name="api:mono_is_power_of_two">mono_is_power_of_two</a></h4>
<h4><a name="api:mono_signbit_double">mono_signbit_double</a></h4>
<h4><a name="api:mono_signbit_float">mono_signbit_float</a></h4>
@@ -113,6 +126,7 @@
<h4><a name="api:mono_disasm_code">mono_disasm_code</a></h4>
<h4><a name="api:mono_disasm_code_one">mono_disasm_code_one</a></h4>
<h4><a name="api:mono_disassemble_code">mono_disassemble_code</a></h4>
<h3>Walking the Stack</h3>
+67 -100
View File
@@ -6,139 +6,106 @@
<p>On Windows, Mono uses directly the services provided by the
operating system. On other operating system it uses its own
implementation (referred to as the "io-layer" or "wapi").
<h3>Windows Compatibility API</h3>
<h4><a name="api:BindIoCompletionCallback">BindIoCompletionCallback</a></h4>
<h4><a name="api:GetThreadContext">GetThreadContext</a></h4>
<h4><a name="api:DeleteCriticalSection">DeleteCriticalSection</a></h4>
<h4><a name="api:EnterCriticalSection">EnterCriticalSection</a></h4>
<h4><a name="api:InitializeCriticalSection">InitializeCriticalSection</a></h4>
<h4><a name="api:InitializeCriticalSectionAndSpinCount">InitializeCriticalSectionAndSpinCount</a></h4>
<h4><a name="api:LeaveCriticalSection">LeaveCriticalSection</a></h4>
<h4><a name="api:SetCriticalSectionSpinCount">SetCriticalSectionSpinCount</a></h4>
<h4><a name="api:TryEnterCriticalSection">TryEnterCriticalSection</a></h4>
<h4><a name="api:errno_to_WSA">errno_to_WSA</a></h4>
<h4><a name="api:GetLastError">GetLastError</a></h4>
<h4><a name="api:SetLastError">SetLastError</a></h4>
<h4><a name="api:CreateEvent">CreateEvent</a></h4>
<h4><a name="api:PulseEvent">PulseEvent</a></h4>
<h4><a name="api:ResetEvent">ResetEvent</a></h4>
<h4><a name="api:SetEvent">SetEvent</a></h4>
<h4><a name="api:CloseHandle">CloseHandle</a></h4>
<h4><a name="api:closesocket">closesocket</a></h4>
<h4><a name="api:CopyFile">CopyFile</a></h4>
<h4><a name="api:CreateDirectory">CreateDirectory</a></h4>
<h4><a name="api:CreateEvent">CreateEvent</a></h4>
<h4><a name="api:CreateFile">CreateFile</a></h4>
<h4><a name="api:CreateMutex">CreateMutex</a></h4>
<h4><a name="api:CreatePipe">CreatePipe</a></h4>
<h4><a name="api:CreateProcess">CreateProcess</a></h4>
<h4><a name="api:CreateProcessWithLogonW">CreateProcessWithLogonW</a>
<h4><a name="api:CreateSemaphore">CreateSemaphore</a></h4>
<h4><a name="api:CreateThread">CreateThread</a></h4>
<h4><a name="api:DeleteCriticalSection">DeleteCriticalSection</a></h4>
<h4><a name="api:DeleteFile">DeleteFile</a></h4>
<h4><a name="api:DuplicateHandle">DuplicateHandle</a>
<h4><a name="api:EnterCriticalSection">EnterCriticalSection</a></h4>
<h4><a name="api:EnumProcesses">EnumProcesses</a></h4>
<h4><a name="api:EnumProcessModules">EnumProcessModules</a></h4>
<h4><a name="api:errno_to_WSA">errno_to_WSA</a></h4>
<h4><a name="api:ExitThread">ExitThread</a></h4>
<h4><a name="api:FileTimeToSystemTime">FileTimeToSystemTime</a></h4>
<h4><a name="api:FindClose">FindClose</a></h4>
<h4><a name="api:FindFirstFile">FindFirstFile</a></h4>
<h4><a name="api:FindNextFile">FindNextFile</a></h4>
<h4><a name="api:FlushFileBuffers">FlushFileBuffers</a></h4>
<h4><a name="api:FormatMessage">FormatMessage</a>
<h4><a name="api:GetCurrentDirectory">GetCurrentDirectory</a></h4>
<h4><a name="api:GetCurrentProcess">GetCurrentProcess</a></h4>
<h4><a name="api:GetCurrentProcessId">GetCurrentProcessId</a></h4>
<h4><a name="api:GetCurrentThread">GetCurrentThread</a></h4>
<h4><a name="api:GetCurrentThreadId">GetCurrentThreadId</a></h4>
<h4><a name="api:GetDiskFreeSpaceEx">GetDiskFreeSpaceEx</a>
<h4><a name="api:GetDriveType">GetDriveType</a>
<h4><a name="api:GetExitCodeProcess">GetExitCodeProcess</a></h4>
<h4><a name="api:GetExitCodeThread">GetExitCodeThread</a></h4>
<h4><a name="api:GetFileAttributesEx">GetFileAttributesEx</a></h4>
<h4><a name="api:GetFileAttributes">GetFileAttributes</a></h4>
<h4><a name="api:GetFileAttributesEx">GetFileAttributesEx</a></h4>
<h4><a name="api:GetFileSize">GetFileSize</a></h4>
<h4><a name="api:GetFileTime">GetFileTime</a></h4>
<h4><a name="api:GetFileType">GetFileType</a></h4>
<h4><a name="api:GetFileVersionInfo">GetFileVersionInfo</a>
<h4><a name="api:GetFileVersionInfoSize">GetFileVersionInfoSize</a>
<h4><a name="api:GetLastError">GetLastError</a></h4>
<h4><a name="api:GetLogicalDriveStrings">GetLogicalDriveStrings</a></h4>
<h4><a name="api:GetModuleBaseName">GetModuleBaseName</a></h4>
<h4><a name="api:GetModuleFileNameEx">GetModuleFileNameEx</a>
<h4><a name="api:GetModuleInformation">GetModuleInformation</a>
<h4><a name="api:GetPriorityClass">GetPriorityClass</a>
<h4><a name="api:GetProcessId">GetProcessId</a></h4>
<h4><a name="api:GetProcessTimes">GetProcessTimes</a></h4>
<h4><a name="api:GetProcessWorkingSetSize">GetProcessWorkingSetSize</a></h4>
<h4><a name="api:GetStdHandle">GetStdHandle</a></h4>
<h4><a name="api:GetSystemInfo">GetSystemInfo</a></h4>
<h4><a name="api:GetTempPath">GetTempPath</a></h4>
<h4><a name="api:GetThreadContext">GetThreadContext</a></h4>
<h4><a name="api:GetTickCount">GetTickCount</a></h4>
<h4><a name="api:ImpersonateLoggedOnUser">ImpersonateLoggedOnUser</a></h4>
<h4><a name="api:InitializeCriticalSectionAndSpinCount">InitializeCriticalSectionAndSpinCount</a></h4>
<h4><a name="api:InitializeCriticalSection">InitializeCriticalSection</a></h4>
<h4><a name="api:ioctlsocket">ioctlsocket</a></h4>
<h4><a name="api:LeaveCriticalSection">LeaveCriticalSection</a></h4>
<h4><a name="api:LockFile">LockFile</a></h4>
<h4><a name="api:MoveFile">MoveFile</a></h4>
<h4><a name="api:OpenEvent">OpenEvent</a></h4>
<h4><a name="api:OpenMutex">OpenMutex</a></h4>
<h4><a name="api:OpenProcess">OpenProcess</a></h4>
<h4><a name="api:OpenSemaphore">OpenSemaphore</a></h4>
<h4><a name="api:OpenThread">OpenThread</a></h4>
<h4><a name="api:PulseEvent">PulseEvent</a></h4>
<h4><a name="api:QueryPerformanceCounter">QueryPerformanceCounter</a></h4>
<h4><a name="api:QueryPerformanceFrequency">QueryPerformanceFrequency</a></h4>
<h4><a name="api:QueueUserAPC">QueueUserAPC</a></h4>
<h4><a name="api:ReadFile">ReadFile</a></h4>
<h4><a name="api:ReleaseMutex">ReleaseMutex</a></h4>
<h4><a name="api:ReleaseSemaphore">ReleaseSemaphore</a></h4>
<h4><a name="api:RemoveDirectory">RemoveDirectory</a></h4>
<h4><a name="api:ReplaceFile">ReplaceFile</a>
<h4><a name="api:ResetEvent">ResetEvent</a></h4>
<h4><a name="api:ResumeThread">ResumeThread</a></h4>
<h4><a name="api:RevertToSelf">RevertToSelf</a></h4>
<h4><a name="api:SetCriticalSectionSpinCount">SetCriticalSectionSpinCount</a></h4>
<h4><a name="api:SetCurrentDirectory">SetCurrentDirectory</a></h4>
<h4><a name="api:SetEndOfFile">SetEndOfFile</a></h4>
<h4><a name="api:SetEvent">SetEvent</a></h4>
<h4><a name="api:SetFileAttributes">SetFileAttributes</a></h4>
<h4><a name="api:SetFilePointer">SetFilePointer</a></h4>
<h4><a name="api:SetFileTime">SetFileTime</a></h4>
<h4><a name="api:SetLastError">SetLastError</a></h4>
<h4><a name="api:SetPriorityClass">SetPriorityClass</a>
<h4><a name="api:UnlockFile">UnlockFile</a></h4>
<h4><a name="api:WriteFile">WriteFile</a></h4>
<h4><a name="api:mono_once">mono_once</a></h4>
<h4><a name="api:CreateMutex">CreateMutex</a></h4>
<h4><a name="api:ReleaseMutex">ReleaseMutex</a></h4>
<h4><a name="api:CreateProcess">CreateProcess</a></h4>
<h4><a name="api:EnumProcesses">EnumProcesses</a></h4>
<h4><a name="api:EnumProcessModules">EnumProcessModules</a></h4>
<h4><a name="api:GetCurrentProcess">GetCurrentProcess</a></h4>
<h4><a name="api:GetCurrentProcessId">GetCurrentProcessId</a></h4>
<h4><a name="api:GetExitCodeProcess">GetExitCodeProcess</a></h4>
<h4><a name="api:GetModuleBaseName">GetModuleBaseName</a></h4>
<h4><a name="api:GetProcessTimes">GetProcessTimes</a></h4>
<h4><a name="api:GetProcessWorkingSetSize">GetProcessWorkingSetSize</a></h4>
<h4><a name="api:OpenProcess">OpenProcess</a></h4>
<h4><a name="api:SetProcessWorkingSetSize">SetProcessWorkingSetSize</a></h4>
<h4><a name="api:ShellExecuteEx">ShellExecuteEx</a></h4>
<h4><a name="api:SignalObjectAndWait">SignalObjectAndWait</a></h4>
<h4><a name="api:SleepEx">SleepEx</a></h4>
<h4><a name="api:Sleep">Sleep</a></h4>
<h4><a name="api:SuspendThread">SuspendThread</a></h4>
<h4><a name="api:TerminateProcess">TerminateProcess</a></h4>
<h4><a name="api:ImpersonateLoggedOnUser">ImpersonateLoggedOnUser</a></h4>
<h4><a name="api:RevertToSelf">RevertToSelf</a></h4>
<h4><a name="api:CreateSemaphore">CreateSemaphore</a></h4>
<h4><a name="api:ReleaseSemaphore">ReleaseSemaphore</a></h4>
<h4><a name="api:closesocket">closesocket</a></h4>
<h4><a name="api:ioctlsocket">ioctlsocket</a></h4>
<h4><a name="api:WSACleanup">WSACleanup</a></h4>
<h4><a name="api:WSAGetLastError">WSAGetLastError</a></h4>
<h4><a name="api:WSAIoctl">WSAIoctl</a></h4>
<h4><a name="api:WSASetLastError">WSASetLastError</a></h4>
<h4><a name="api:WSAStartup">WSAStartup</a></h4>
<h4><a name="api:GetSystemInfo">GetSystemInfo</a></h4>
<h4><a name="api:BindIoCompletionCallback">BindIoCompletionCallback</a></h4>
<h4><a name="api:CreateThread">CreateThread</a></h4>
<h4><a name="api:ExitThread">ExitThread</a></h4>
<h4><a name="api:GetCurrentThread">GetCurrentThread</a></h4>
<h4><a name="api:GetCurrentThreadId">GetCurrentThreadId</a></h4>
<h4><a name="api:GetExitCodeThread">GetExitCodeThread</a></h4>
<h4><a name="api:OpenThread">OpenThread</a></h4>
<h4><a name="api:QueueUserAPC">QueueUserAPC</a></h4>
<h4><a name="api:ResumeThread">ResumeThread</a></h4>
<h4><a name="api:Sleep">Sleep</a></h4>
<h4><a name="api:SleepEx">SleepEx</a></h4>
<h4><a name="api:SuspendThread">SuspendThread</a></h4>
<h4><a name="api:TlsAlloc">TlsAlloc</a></h4>
<h4><a name="api:TlsFree">TlsFree</a></h4>
<h4><a name="api:TlsGetValue">TlsGetValue</a></h4>
<h4><a name="api:TlsSetValue">TlsSetValue</a></h4>
<h4><a name="api:TransmitFile">TransmitFile</a>
<h4><a name="api:TryEnterCriticalSection">TryEnterCriticalSection</a></h4>
<h4><a name="api:UnlockFile">UnlockFile</a></h4>
<h4><a name="api:VerLanguageName">VerLanguageName</a>
<h4><a name="api:VerQueryValue">VerQueryValue</a>
<h4><a name="api:WaitForInputIdle">WaitForInputIdle</a>
<h4><a name="api:WaitForMultipleObjectsEx">WaitForMultipleObjectsEx</a></h4>
<h4><a name="api:GetTickCount">GetTickCount</a></h4>
<h4><a name="api:QueryPerformanceCounter">QueryPerformanceCounter</a></h4>
<h4><a name="api:QueryPerformanceFrequency">QueryPerformanceFrequency</a></h4>
<h4><a name="api:SignalObjectAndWait">SignalObjectAndWait</a></h4>
<h4><a name="api:WaitForMultipleObjects">WaitForMultipleObjects</a></h4>
<h4><a name="api:WaitForSingleObjectEx">WaitForSingleObjectEx</a></h4>
<h4><a name="api:WaitForMultipleObjectsEx">WaitForMultipleObjectsEx</a></h4>
<h4><a name="api:WaitForSingleObject">WaitForSingleObject</a></h4>
<h4><a name="api:WriteFile">WriteFile</a></h4>
<h4><a name="api:WSACleanup">WSACleanup</a></h4>
<h4><a name="api:WSAGetLastError">WSAGetLastError</a></h4>
<h4><a name="api:WSAIoctl">WSAIoctl</a></h4>
<h4><a name="api:WSARecv">WSARecv</a></h4>
<h4><a name="api:WSASend">WSASend</a></h4>
<h4><a name="api:WSASetLastError">WSASetLastError</a></h4>
<h4><a name="api:WSAStartup">WSAStartup</a></h4>
<h3>Extended APIs</h3>
<p>The extended APIs provide access to a few internals of the
WAPI stack that are not exposed through the standard Win32
APIs.
<h4><a name="api:mono_once">mono_once</a></h4>
<h4><a name="api:wapi_clear_interruption">wapi_clear_interruption</a>
<h4><a name="api:wapi_current_thread_desc">wapi_current_thread_desc</a>
<h4><a name="api:wapi_interrupt_thread">wapi_interrupt_thread</a>
<h4><a name="api:wapi_self_interrupt">wapi_self_interrupt</a>
<h4><a name="api:wapi_thread_clear_wait_handle">wapi_thread_clear_wait_handle</a>
<h4><a name="api:wapi_thread_set_wait_handle">wapi_thread_set_wait_handle</a>
<h4><a name="api:WaitForSingleObjectEx">WaitForSingleObjectEx</a></h4>
<h4><a name="api:OpenEvent">OpenEvent</a></h4>
<h4><a name="api:OpenMutex">OpenMutex</a></h4>
<h4><a name="api:GetProcessId">GetProcessId</a></h4>
<h4><a name="api:ShellExecuteEx">ShellExecuteEx</a></h4>
<h4><a name="api:OpenSemaphore">OpenSemaphore</a></h4>
+59 -82
View File
@@ -1,124 +1,101 @@
GetThreadContext
DeleteCriticalSection
InitializeCriticalSection
InitializeCriticalSectionAndSpinCount
SetCriticalSectionSpinCount
TryEnterCriticalSection
errno_to_WSA
GetLastError
SetLastError
CreateEvent
OpenEvent
PulseEvent
ResetEvent
SetEvent
CloseHandle
closesocket
DuplicateHandle
CopyFile
CreateDirectory
CreateEvent
CreateFile
CreateMutex
CreatePipe
CreateProcess
CreateProcessWithLogonW
CreateSemaphore
CreateThread
DeleteCriticalSection
DeleteFile
DuplicateHandle
EnumProcesses
EnumProcessModules
errno_to_WSA
ExitThread
FileTimeToSystemTime
FindClose
FindFirstFile
FindNextFile
FlushFileBuffers
FormatMessage
GetCurrentDirectory
GetCurrentProcess
GetCurrentProcessId
GetCurrentThread
GetCurrentThreadId
GetDiskFreeSpaceEx
GetDriveType
GetExitCodeProcess
GetExitCodeThread
GetFileAttributes
GetFileAttributesEx
GetFileSize
GetFileTime
GetFileType
GetFileVersionInfo
GetFileVersionInfoSize
GetLastError
GetLogicalDriveStrings
GetModuleBaseName
GetModuleFileNameEx
GetModuleInformation
GetPriorityClass
GetProcessId
GetProcessTimes
GetProcessWorkingSetSize
GetStdHandle
GetSystemInfo
GetTempPath
GetThreadContext
GetTickCount
ImpersonateLoggedOnUser
InitializeCriticalSection
InitializeCriticalSectionAndSpinCount
ioctlsocket
LockFile
mono_once
mono_pthread_key_for_tls
MoveFile
OpenEvent
OpenMutex
OpenProcess
OpenSemaphore
OpenThread
PulseEvent
QueryPerformanceCounter
QueryPerformanceFrequency
QueueUserAPC
ReadFile
ReleaseMutex
ReleaseSemaphore
RemoveDirectory
ReplaceFile
ResetEvent
ResumeThread
RevertToSelf
SetCriticalSectionSpinCount
SetCurrentDirectory
SetEndOfFile
SetEvent
SetFileAttributes
SetFilePointer
SetFileTime
SetLastError
SetPriorityClass
UnlockFile
WriteFile
mono_once
CreateMutex
OpenMutex
ReleaseMutex
CreateProcess
EnumProcesses
EnumProcessModules
GetCurrentProcess
GetCurrentProcessId
GetExitCodeProcess
GetModuleBaseName
GetProcessId
GetProcessTimes
GetProcessWorkingSetSize
OpenProcess
SetProcessWorkingSetSize
ShellExecuteEx
SignalObjectAndWait
TerminateProcess
ImpersonateLoggedOnUser
RevertToSelf
CreateSemaphore
OpenSemaphore
ReleaseSemaphore
closesocket
ioctlsocket
WSACleanup
WSAGetLastError
WSAIoctl
WSASetLastError
WSAStartup
GetSystemInfo
CreateThread
ExitThread
GetCurrentThread
GetCurrentThreadId
GetExitCodeThread
mono_pthread_key_for_tls
OpenThread
QueueUserAPC
ResumeThread
Sleep
SleepEx
SuspendThread
TerminateProcess
TlsAlloc
TlsFree
TlsGetValue
TlsSetValue
TransmitFile
TryEnterCriticalSection
UnlockFile
VerLanguageName
VerQueryValue
WaitForInputIdle
GetTickCount
QueryPerformanceCounter
QueryPerformanceFrequency
SignalObjectAndWait
WaitForMultipleObjects
WaitForMultipleObjectsEx
WaitForSingleObject
WaitForSingleObjectEx
wapi_clear_interruption
wapi_current_thread_desc
wapi_interrupt_thread
wapi_self_interrupt
wapi_thread_clear_wait_handle
wapi_thread_set_wait_handle
WriteFile
WSACleanup
WSAGetLastError
WSAIoctl
WSARecv
WSASend
WSASetLastError
WSAStartup
+5 -124
View File
@@ -1,86 +1,14 @@
2010-05-25 Zoltan Varga <vargaz@gmail.com>
* Applied patch from Burkhard Linke ([email protected]). Fix
building on solaris.
2010-05-21 Zoltan Varga <[email protected]>
* src/gmisc-win32.c (g_setenv): Use the
GetEnvironmentVariableW/SetEnvironmentVariableW variants.
2010-05-15 Zoltan Varga <[email protected]>
* src/glib.h (g_error): Add a for (;;) after the call to tell GCC this doesn't
return, fixing some warnings.
2010-05-13 Alan McGovern <[email protected]>
* src/gstring.c: Put in some null guards for the ctors
2010-05-11 Miguel de Icaza <[email protected]>
* src/gunicode.c: Pull the Windows.h header when G_OS_WIN32 is
defined.
2010-05-11 Atsushi Enomoto <[email protected]>
* Makefile.am : do not try to build test on windows (fails).
* src/glib.h : fix cygwin build, do not include unistd.h.
2010-05-10 Miguel de Icaza <[email protected]>
* gfile-win32.c: Port this to use the Win32 APIs to get this
building with Cygwin.
2010-05-07 Andrew Jorgensen <[email protected]>
* test/test.h: Fix some compiler warning that SUSE takes seriously.
2010-05-06 Alan McGovern <[email protected]>
* src/gmarkup.c: Fix a parser issue when skipping the xml declaration.
2010-05-06 Jonathan Chambers <[email protected]>
2010-06-01 Rodrigo Kumpera <rkumpera@novell.com>
* gfile-win32.c: Use __stat64 instead of _stat64.
2010-05-04 Jonathan Chambers <[email protected]>
Backport of r156824 by (Jonathan Chambers <[email protected]>)
* gspawn.c: Remove extern define for MSVC.
2010-06-01 Rodrigo Kumpera <[email protected]>
2010-05-03 Zoltan Varga <[email protected]>
* src/gstring.c: Put in some null guards for the ctors
* src/glib.h: Include unistd.h on !windows for pid_t.
* gspawn.c: Add an extern define for environ on !apple platforms.
2010-05-02 Zoltan Varga <[email protected]>
* src/glib.h: Include sys/types.h for pid_t.
2010-05-01 Zoltan Varga <[email protected]>
* src/goutput.c (g_logv): Append a '\n' to the end of the string as glib does.
2010-04-28 Zoltan Varga <[email protected]>
* configure.ac src/gspawn.c: Applied openbsd changes from Robert Nagy
<[email protected]>.
2010-04-16 Miguel de Icaza <[email protected]>
* src/gshell.c (g_shell_unquote): Implement this.
2010-04-25 Andreas Faerber <[email protected]>
* configure.ac: The iconv function may be libiconv_open.
Fixes linking with GNU libiconv.
Contributed under MIT/X11 license.
2010-04-23 Geoff Norton <[email protected]>
* configure.ac: The iconv function is iconv_open.
Backport of r157279 by (Alan McGovern <[email protected]>).
2010-04-19 Jonathan Pryor <[email protected]>
@@ -90,48 +18,6 @@
* src/goutput.c: Add Android support, sending g_print(), g_printerr(),
and g_log() messages to the Android system log.
2010-04-16 Gonzalo Paniagua Javier <[email protected]>
* test/ptrarray.c: new tests
* src/gptrarray.c: implemented g_ptr_array_remove_fast().
2010-04-10 Andreas Faerber <[email protected]>
* configure.ac: Add checks for libm and libdl.
* {src,test}/Makefile.am: Remove hardcoded library dependencies.
Fixes compilation on Haiku.
Contributed under MIT/X11 license.
2010-03-05 Zoltan Varga <[email protected]>
* test/test.c (_GNU_SOURCE): Fix compilation if _GNU_SOURCE is already defined.
Thu Mar 4 16:34:37 CET 2010 Paolo Molaro <[email protected]>
* src/unicode-data.h: save 70 KB.
Thu Mar 4 16:18:34 CET 2010 Paolo Molaro <[email protected]>
* src/eglib-remap.h, src/glib.h: header file to remap the symbols
so there is no clash with system glib.
* src/Makefile.am: build static lib as well.
2010-03-04 Zoltan Varga <[email protected]>
* configure.ac: Add a check for ISO varargs.
* test/test.c: Fix the build.
* src/glib.h src/goutput.c: Emit asserts through a g_assertion_message ()
function which is decorated with G_GNUC_NORETURN, to fix many warnings when using
the eglib build.
Mon Mar 1 17:12:24 CET 2010 Paolo Molaro <[email protected]>
* src/unicode-data.h, src/gutf8.c: don't export private symbols.
2009-12-03 Zoltan Varga <[email protected]>
* src/gmisc-unix.c (g_get_user_name): Avoid returning NULL if the env
@@ -143,11 +29,6 @@ Mon Mar 1 17:12:24 CET 2010 Paolo Molaro <[email protected]>
* src/glib.h: fix g_ptr_array_remove_index_fast declaration
* test/ptrarray.c: new tests
2009-10-15 Andreia Gaita <[email protected]>
* src/garray.c: (g_array_remove_index_fast) only move 1 element
and not the whole shebang
2009-09-26 Gonzalo Paniagua Javier <[email protected]>
* test/queue.c: new tests.
-4
View File
@@ -1,12 +1,8 @@
if HOST_WIN32
SUBDIRS = src
else
if CROSS_COMPILING
SUBDIRS = src
else
SUBDIRS = src test
endif
endif
EXTRA_DIST = autogen.sh README NEWS AUTHORS ChangeLog
+2 -30
View File
@@ -56,10 +56,6 @@ arm*-darwin*)
i*86-*-darwin*)
ORDER=G_LITTLE_ENDIAN
;;
*-*-openbsd*)
CFLAGS="$CFLAGS -pthread"
LDFLAGS="$LDFLAGS -pthread"
;;
esac
AC_SUBST(ORDER)
@@ -67,21 +63,12 @@ AC_SUBST(CFLAGS)
AC_SUBST(PATHSEP)
AC_SUBST(SEARCHSEP)
AC_SUBST(OS)
AM_CONDITIONAL(HOST_WIN32, test x$OS = xWIN32)
AM_CONDITIONAL(TARGET_WIN32, test x$OS = xWIN32)
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 rewinddir vasprintf)
AM_CONDITIONAL(NEED_VASPRINTF, test x$have_vasprintf = x )
AC_CHECK_LIB(iconv, iconv_open, LIBS="$LIBS -liconv")
AC_CHECK_FUNCS(strndup strlcpy getpwent_r strtok_r rewinddir)
AC_CHECK_LIB(iconv, libiconv_open, LIBS="$LIBS -liconv")
AC_SEARCH_LIBS(sqrtf, m)
# nanosleep may not be part of libc, also search it in other libraries
AC_SEARCH_LIBS(nanosleep, rt)
AC_SEARCH_LIBS(dlopen, dl)
old_ldflags="${LDFLAGS}"
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
AC_TRY_LINK(, [int i;], found_export_dynamic=yes, found_export_dynamic=no)
@@ -89,21 +76,6 @@ if test $found_export_dynamic = no; then
LDFLAGS="${old_ldflags}"
fi
AC_MSG_CHECKING(for varargs macros)
AC_TRY_COMPILE([],[
int foo (int i, int j);
#define bar(...) foo (1, __VA_ARGS__)
void main () {
bar (2);
}
],have_iso_varargs=yes,have_iso_varargs=no)
AC_MSG_RESULT($have_iso_varargs)
G_HAVE_ISO_VARARGS=0
if test "x$have_iso_varargs" = "xyes"; then
G_HAVE_ISO_VARARGS=1
fi
AC_SUBST(G_HAVE_ISO_VARARGS)
AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h)
if test $ac_cv_sizeof_void_p != $ac_cv_sizeof_int; then
+2 -6
View File
@@ -1,10 +1,6 @@
/
/Makefile
/Makefile.in
/.libs
/.deps
/*.lo
/*.la
/*.o
/semantic.cache
/.project
/.cproject
/eglib-config.h
+6 -19
View File
@@ -1,4 +1,4 @@
noinst_LTLIBRARIES = libeglib.la libeglib-static.la
noinst_LTLIBRARIES = libeglib.la
win_files = \
gdate-win32.c gdir-win32.c gfile-win32.c gmisc-win32.c \
@@ -8,15 +8,7 @@ unix_files = \
gdate-unix.c gdir-unix.c gfile-unix.c gmisc-unix.c \
gmodule-unix.c gtimer-unix.c
# some unices and windows do not have an implementation of vasprintf
# used by eglib, use provided implementation instead
if NEED_VASPRINTF
vasprintf_files = vasprintf.c
else
vaprinttf_files = foo.c
endif
if HOST_WIN32
if PLATFORM_WIN32
os_files = $(win_files)
else
os_files = $(unix_files)
@@ -24,7 +16,6 @@ endif
libeglib_la_SOURCES = \
eglib-config.h \
eglib-remap.h \
sort.frag.h \
glib.h \
garray.c \
@@ -49,22 +40,18 @@ libeglib_la_SOURCES = \
gutf8.c \
gunicode.c \
unicode-data.h \
$(os_files) \
$(vasprintf_files)
$(os_files)
libeglib_la_CFLAGS = -Wall -D_FORTIFY_SOURCE=2
libeglib_static_la_SOURCES=$(libeglib_la_SOURCES)
libeglib_static_la_CFLAGS = $(libeglib_la_CFLAGS)
INCLUDES = -I$(srcdir)
if HOST_WIN32
if PLATFORM_WIN32
libeglib_la_LIBADD = -lm -liconv -lpsapi
else
libeglib_la_LIBADD = -lm
endif
libeglib_static_la_LIBADD = $(libeglib_la_LIBADD)
libeglib_static_la_LDFLAGS = -static
MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = eglib-config.h.in $(win_files) $(unix_files)
-4
View File
@@ -25,8 +25,4 @@ typedef signed @GSIZE@ gssize;
#define G_GSIZE_FORMAT @GSIZE_FORMAT@
#define G_GUINT64_FORMAT @G_GUINT64_FORMAT@
#if @G_HAVE_ISO_VARARGS@ == 1
#define G_HAVE_ISO_VARARGS
#endif
#endif
-221
View File
@@ -1,221 +0,0 @@
#define g_array_append_vals monoeg_g_array_append_vals
#define g_array_free monoeg_g_array_free
#define g_array_insert_vals monoeg_g_array_insert_vals
#define g_array_new monoeg_g_array_new
#define g_array_remove_index monoeg_g_array_remove_index
#define g_array_remove_index_fast monoeg_g_array_remove_index_fast
#define g_ascii_strdown monoeg_g_ascii_strdown
#define g_ascii_strncasecmp monoeg_g_ascii_strncasecmp
#define g_ascii_tolower monoeg_g_ascii_tolower
#define g_ascii_xdigit_value monoeg_g_ascii_xdigit_value
#define g_build_path monoeg_g_build_path
#define g_clear_error monoeg_g_clear_error
#define g_convert monoeg_g_convert
#define g_convert_error_quark monoeg_g_convert_error_quark
#define g_dir_close monoeg_g_dir_close
#define g_dir_open monoeg_g_dir_open
#define g_dir_read_name monoeg_g_dir_read_name
#define g_dir_rewind monoeg_g_dir_rewind
#define g_direct_equal monoeg_g_direct_equal
#define g_direct_hash monoeg_g_direct_hash
#define g_error_free monoeg_g_error_free
#define g_error_new monoeg_g_error_new
#define g_file_error_from_errno monoeg_g_file_error_from_errno
#define g_file_get_contents monoeg_g_file_get_contents
#define g_file_open_tmp monoeg_g_file_open_tmp
#define g_file_test monoeg_g_file_test
#define g_filename_from_uri monoeg_g_filename_from_uri
#define g_filename_from_utf8 monoeg_g_filename_from_utf8
#define g_filename_to_uri monoeg_g_filename_to_uri
#define g_find_program_in_path monoeg_g_find_program_in_path
#define g_fprintf monoeg_g_fprintf
#define g_free monoeg_g_free
#define g_get_charset monoeg_g_get_charset
#define g_get_current_dir monoeg_g_get_current_dir
#define g_get_current_time monoeg_g_get_current_time
#define g_get_home_dir monoeg_g_get_home_dir
#define g_get_prgname monoeg_g_get_prgname
#define g_get_tmp_dir monoeg_g_get_tmp_dir
#define g_get_user_name monoeg_g_get_user_name
#define g_getenv monoeg_g_getenv
#define g_hash_table_destroy monoeg_g_hash_table_destroy
#define g_hash_table_find monoeg_g_hash_table_find
#define g_hash_table_foreach monoeg_g_hash_table_foreach
#define g_hash_table_foreach_remove monoeg_g_hash_table_foreach_remove
#define g_hash_table_foreach_steal monoeg_g_hash_table_foreach_steal
#define g_hash_table_insert_replace monoeg_g_hash_table_insert_replace
#define g_hash_table_lookup monoeg_g_hash_table_lookup
#define g_hash_table_lookup_extended monoeg_g_hash_table_lookup_extended
#define g_hash_table_new monoeg_g_hash_table_new
#define g_hash_table_new_full monoeg_g_hash_table_new_full
#define g_hash_table_remove monoeg_g_hash_table_remove
#define g_hash_table_size monoeg_g_hash_table_size
#define g_int_equal monoeg_g_int_equal
#define g_int_hash monoeg_g_int_hash
#define g_list_alloc monoeg_g_list_alloc
#define g_list_append monoeg_g_list_append
#define g_list_concat monoeg_g_list_concat
#define g_list_copy monoeg_g_list_copy
#define g_list_delete_link monoeg_g_list_delete_link
#define g_list_find monoeg_g_list_find
#define g_list_find_custom monoeg_g_list_find_custom
#define g_list_first monoeg_g_list_first
#define g_list_foreach monoeg_g_list_foreach
#define g_list_free monoeg_g_list_free
#define g_list_free_1 monoeg_g_list_free_1
#define g_list_index monoeg_g_list_index
#define g_list_insert_before monoeg_g_list_insert_before
#define g_list_insert_sorted monoeg_g_list_insert_sorted
#define g_list_last monoeg_g_list_last
#define g_list_length monoeg_g_list_length
#define g_list_nth monoeg_g_list_nth
#define g_list_nth_data monoeg_g_list_nth_data
#define g_list_prepend monoeg_g_list_prepend
#define g_list_remove monoeg_g_list_remove
#define g_list_remove_link monoeg_g_list_remove_link
#define g_list_reverse monoeg_g_list_reverse
#define g_list_sort monoeg_g_list_sort
#define g_locale_from_utf8 monoeg_g_locale_from_utf8
#define g_locale_to_utf8 monoeg_g_locale_to_utf8
#define g_log monoeg_g_log
#define g_log_set_always_fatal monoeg_g_log_set_always_fatal
#define g_log_set_fatal_mask monoeg_g_log_set_fatal_mask
#define g_logv monoeg_g_logv
#define g_markup_parse_context_end_parse monoeg_g_markup_parse_context_end_parse
#define g_markup_parse_context_free monoeg_g_markup_parse_context_free
#define g_markup_parse_context_new monoeg_g_markup_parse_context_new
#define g_markup_parse_context_parse monoeg_g_markup_parse_context_parse
#define g_memdup monoeg_g_memdup
#define g_module_build_path monoeg_g_module_build_path
#define g_module_close monoeg_g_module_close
#define g_module_error monoeg_g_module_error
#define g_module_open monoeg_g_module_open
#define g_module_symbol monoeg_g_module_symbol
#define g_path_get_basename monoeg_g_path_get_basename
#define g_path_get_dirname monoeg_g_path_get_dirname
#define g_path_is_absolute monoeg_g_path_is_absolute
#define g_pattern_match_string monoeg_g_pattern_match_string
#define g_pattern_spec_free monoeg_g_pattern_spec_free
#define g_pattern_spec_new monoeg_g_pattern_spec_new
#define g_print monoeg_g_print
#define g_printf monoeg_g_printf
#define g_propagate_error monoeg_g_propagate_error
#define g_ptr_array_add monoeg_g_ptr_array_add
#define g_ptr_array_foreach monoeg_g_ptr_array_foreach
#define g_ptr_array_free monoeg_g_ptr_array_free
#define g_ptr_array_new monoeg_g_ptr_array_new
#define g_ptr_array_remove monoeg_g_ptr_array_remove
#define g_ptr_array_remove_index monoeg_g_ptr_array_remove_index
#define g_ptr_array_remove_index_fast monoeg_g_ptr_array_remove_index_fast
#define g_ptr_array_set_size monoeg_g_ptr_array_set_size
#define g_ptr_array_sized_new monoeg_g_ptr_array_sized_new
#define g_ptr_array_sort monoeg_g_ptr_array_sort
#define g_ptr_array_sort_with_data monoeg_g_ptr_array_sort_with_data
#define g_queue_free monoeg_g_queue_free
#define g_queue_is_empty monoeg_g_queue_is_empty
#define g_queue_new monoeg_g_queue_new
#define g_queue_pop_head monoeg_g_queue_pop_head
#define g_queue_push_head monoeg_g_queue_push_head
#define g_queue_push_tail monoeg_g_queue_push_tail
#define g_set_error monoeg_g_set_error
#define g_set_prgname monoeg_g_set_prgname
#define g_setenv monoeg_g_setenv
#define g_shell_parse_argv monoeg_g_shell_parse_argv
#define g_shell_quote monoeg_g_shell_quote
#define g_shell_unquote monoeg_g_shell_unquote
#define g_slist_alloc monoeg_g_slist_alloc
#define g_slist_append monoeg_g_slist_append
#define g_slist_concat monoeg_g_slist_concat
#define g_slist_copy monoeg_g_slist_copy
#define g_slist_delete_link monoeg_g_slist_delete_link
#define g_slist_find monoeg_g_slist_find
#define g_slist_find_custom monoeg_g_slist_find_custom
#define g_slist_foreach monoeg_g_slist_foreach
#define g_slist_free monoeg_g_slist_free
#define g_slist_free_1 monoeg_g_slist_free_1
#define g_slist_index monoeg_g_slist_index
#define g_slist_insert_before monoeg_g_slist_insert_before
#define g_slist_insert_sorted monoeg_g_slist_insert_sorted
#define g_slist_last monoeg_g_slist_last
#define g_slist_length monoeg_g_slist_length
#define g_slist_nth monoeg_g_slist_nth
#define g_slist_nth_data monoeg_g_slist_nth_data
#define g_slist_prepend monoeg_g_slist_prepend
#define g_slist_remove monoeg_g_slist_remove
#define g_slist_remove_all monoeg_g_slist_remove_all
#define g_slist_remove_link monoeg_g_slist_remove_link
#define g_slist_reverse monoeg_g_slist_reverse
#define g_slist_sort monoeg_g_slist_sort
#define g_snprintf monoeg_g_snprintf
#define g_spaced_primes_closest monoeg_g_spaced_primes_closest
#define g_spawn_async_with_pipes monoeg_g_spawn_async_with_pipes
#define g_spawn_command_line_sync monoeg_g_spawn_command_line_sync
#define g_sprintf monoeg_g_sprintf
#define g_str_equal monoeg_g_str_equal
#define g_str_has_prefix monoeg_g_str_has_prefix
#define g_str_has_suffix monoeg_g_str_has_suffix
#define g_str_hash monoeg_g_str_hash
#define g_strchomp monoeg_g_strchomp
#define g_strchug monoeg_g_strchug
#define g_strconcat monoeg_g_strconcat
#define g_strdelimit monoeg_g_strdelimit
#define g_strdown monoeg_g_strdown
#define g_strdup_printf monoeg_g_strdup_printf
#define g_strdup_vprintf monoeg_g_strdup_vprintf
#define g_strerror monoeg_g_strerror
#define g_strescape monoeg_g_strescape
#define g_strfreev monoeg_g_strfreev
#define g_string_append monoeg_g_string_append
#define g_string_append_c monoeg_g_string_append_c
#define g_string_append_len monoeg_g_string_append_len
#define g_string_append_printf monoeg_g_string_append_printf
#define g_string_free monoeg_g_string_free
#define g_string_new monoeg_g_string_new
#define g_string_new_len monoeg_g_string_new_len
#define g_string_prepend monoeg_g_string_prepend
#define g_string_printf monoeg_g_string_printf
#define g_string_sized_new monoeg_g_string_sized_new
#define g_string_truncate monoeg_g_string_truncate
#define g_strjoin monoeg_g_strjoin
#define g_strjoinv monoeg_g_strjoinv
#define g_strlcpy monoeg_g_strlcpy
#define g_strndup monoeg_g_strndup
#define g_strnfill monoeg_g_strnfill
#define g_strreverse monoeg_g_strreverse
#define g_strsplit monoeg_g_strsplit
#define g_strsplit_set monoeg_g_strsplit_set
#define g_strv_length monoeg_g_strv_length
#define g_timer_destroy monoeg_g_timer_destroy
#define g_timer_elapsed monoeg_g_timer_elapsed
#define g_timer_new monoeg_g_timer_new
#define g_timer_start monoeg_g_timer_start
#define g_timer_stop monoeg_g_timer_stop
#define g_trailingBytesForUTF8 monoeg_g_trailingBytesForUTF8
#define g_ucs4_to_utf16 monoeg_g_ucs4_to_utf16
#define g_unichar_case monoeg_g_unichar_case
#define g_unichar_isxdigit monoeg_g_unichar_isxdigit
#define g_unichar_tolower monoeg_g_unichar_tolower
#define g_unichar_totitle monoeg_g_unichar_totitle
#define g_unichar_toupper monoeg_g_unichar_toupper
#define g_unichar_type monoeg_g_unichar_type
#define g_unichar_xdigit_value monoeg_g_unichar_xdigit_value
#define g_unsetenv monoeg_g_unsetenv
#define g_usleep monoeg_g_usleep
#define g_utf16_to_ucs4 monoeg_g_utf16_to_ucs4
#define g_utf16_to_utf8 monoeg_g_utf16_to_utf8
#define g_utf8_get_char monoeg_g_utf8_get_char
#define g_utf8_strdown monoeg_g_utf8_strdown
#define g_utf8_strlen monoeg_g_utf8_strlen
#define g_utf8_strup monoeg_g_utf8_strup
#define g_utf8_to_utf16 monoeg_g_utf8_to_utf16
#define g_utf8_validate monoeg_g_utf8_validate
#define g_win32_getlocale monoeg_g_win32_getlocale
#define g_assertion_message monoeg_assertion_message
#define g_malloc monoeg_malloc
#define g_malloc0 monoeg_malloc0
#define g_ptr_array_grow monoeg_ptr_array_grow
#define g_realloc monoeg_realloc
#define g_strdup monoeg_strdup
#define g_ucs4_to_utf16_len monoeg_ucs4_to_utf16_len
#define g_utf16_to_ucs4_len monoeg_utf16_to_ucs4_len
+1 -1
View File
@@ -191,7 +191,7 @@ g_array_remove_index_fast (GArray *array,
memmove (element_offset (priv, index_),
element_offset (priv, array->len - 1),
element_length (priv, 1));
element_length (priv, array->len - index_));
array->len --;
+1 -14
View File
@@ -27,8 +27,7 @@
*/
#include <stdio.h>
#include <glib.h>
#include <time.h>
#include <errno.h>
#include <sys/time.h>
void
@@ -41,15 +40,3 @@ g_get_current_time (GTimeVal *result)
result->tv_sec = tv.tv_sec;
result->tv_usec = tv.tv_usec;
}
void
g_usleep (gulong microseconds)
{
struct timespec req, rem;
req.tv_sec = microseconds / 1000000;
req.tv_nsec = (microseconds % 1000000) * 1000;
while (nanosleep (&req, &rem) == -1 && errno == EINTR)
req = rem;
}
-5
View File
@@ -42,8 +42,3 @@ g_get_current_time (GTimeVal *result)
result->tv_usec = (l % 1000) * 1000;
}
void
g_usleep (gulong microseconds)
{
Sleep (microseconds/1000);
}
+15 -17
View File
@@ -26,7 +26,6 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <windows.h>
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
@@ -35,6 +34,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef G_OS_WIN32
#include <io.h>
@@ -70,39 +70,37 @@ int mkstemp (char *tmp_template)
gboolean
g_file_test (const gchar *filename, GFileTest test)
{
struct __stat64 stat;
int ret = 0;
gunichar2* utf16_filename = NULL;
DWORD attr;
if (filename == NULL || test == 0)
return FALSE;
utf16_filename = u8to16 (filename);
attr = GetFileAttributesW (utf16_filename);
ret = _wstati64 (utf16_filename, &stat);
g_free (utf16_filename);
if (attr == INVALID_FILE_ATTRIBUTES)
return FALSE;
if ((test & G_FILE_TEST_EXISTS) != 0) {
return TRUE;
if (ret == 0)
return TRUE;
}
if ((test & G_FILE_TEST_IS_EXECUTABLE) != 0) {
size_t len = strlen (filename);
if (len > 4 && strcmp (filename + len-3, "exe"))
return TRUE;
if (ret != 0)
return FALSE;
if ((test & G_FILE_TEST_IS_EXECUTABLE) != 0) {
if (stat.st_mode & _S_IEXEC)
return TRUE;
}
if ((test & G_FILE_TEST_IS_REGULAR) != 0) {
if (attr & (FILE_ATTRIBUTE_DEVICE|FILE_ATTRIBUTE_DIRECTORY))
return FALSE;
return TRUE;
if (stat.st_mode & _S_IFREG)
return TRUE;
}
if ((test & G_FILE_TEST_IS_DIR) != 0) {
if (attr & FILE_ATTRIBUTE_DIRECTORY)
if (stat.st_mode & _S_IFDIR)
return TRUE;
}
+68
View File
@@ -51,6 +51,12 @@ struct _GHashTable {
GDestroyNotify value_destroy_func, key_destroy_func;
};
typedef struct {
GHashTable *ht;
int slot_index;
Slot *slot;
} Iter;
static const guint prime_tbl[] = {
11, 19, 37, 73, 109, 163, 251, 367, 557, 823, 1237,
1861, 2777, 4177, 6247, 9371, 14057, 21089, 31627,
@@ -422,6 +428,68 @@ g_hash_table_destroy (GHashTable *hash)
g_free (hash);
}
void
g_hash_table_print_stats (GHashTable *table)
{
int i, max_chain_index, chain_size, max_chain_size;
Slot *node;
max_chain_size = 0;
max_chain_index = -1;
for (i = 0; i < table->table_size; i++) {
chain_size = 0;
for (node = table->table [i]; node; node = node->next)
chain_size ++;
if (chain_size > max_chain_size) {
max_chain_size = chain_size;
max_chain_index = i;
}
}
printf ("Size: %d Table Size: %d Max Chain Length: %d at %d\n", table->in_use, table->table_size, max_chain_size, max_chain_index);
}
void
g_hash_table_iter_init (GHashTableIter *it, GHashTable *hash_table)
{
Iter *iter = (Iter*)it;
memset (iter, 0, sizeof (Iter));
iter->ht = hash_table;
iter->slot_index = -1;
}
gboolean g_hash_table_iter_next (GHashTableIter *it, gpointer *key, gpointer *value)
{
Iter *iter = (Iter*)it;
GHashTable *hash = iter->ht;
g_assert (iter->slot_index != -2);
g_assert (sizeof (Iter) <= sizeof (GHashTableIter));
if (!iter->slot) {
while (TRUE) {
iter->slot_index ++;
if (iter->slot_index >= hash->table_size) {
iter->slot_index = -2;
return FALSE;
}
if (hash->table [iter->slot_index])
break;
}
iter->slot = hash->table [iter->slot_index];
}
if (key)
*key = iter->slot->key;
if (value)
*value = iter->slot->value;
iter->slot = iter->slot->next;
return TRUE;
}
gboolean
g_direct_equal (gconstpointer v1, gconstpointer v2)
{
+23 -35
View File
@@ -13,16 +13,9 @@
#pragma include_alias(<eglib-config.h>, <eglib-config.hw>)
#else
#include <stdint.h>
/* For pid_t */
#ifndef WIN32
#include <unistd.h>
#endif
#endif
#include <eglib-config.h>
#ifndef EGLIB_NO_REMAP
#include <eglib-remap.h>
#endif
#ifndef offsetof
# define offsetof(s_name,n_name) (size_t)(char *)&(((s_name*)0)->m_name)
@@ -30,16 +23,6 @@
#define __EGLIB_X11 1
#ifdef __cplusplus
#define G_BEGIN_DECLS extern "C" {
#define G_END_DECLS }
#else
#define G_BEGIN_DECLS
#define G_END_DECLS
#endif
G_BEGIN_DECLS
/*
* Basic data types
*/
@@ -93,8 +76,6 @@ typedef uint16_t gunichar2;
#define FALSE 0
#define TRUE 1
#define G_MAXINT INT_MAX
#define G_MININT INT_MIN
#define G_MAXINT32 INT32_MAX
#define G_MININT32 INT32_MIN
#define G_MININT64 INT64_MIN
@@ -115,6 +96,14 @@ typedef uint16_t gunichar2;
#define EGLIB_TOSTRING(x) EGLIB_STRINGIFY(x)
#define G_STRLOC __FILE__ ":" EGLIB_TOSTRING(__LINE__) ":"
#ifdef __cplusplus
#define G_BEGIN_DECLS extern "C" {
#define G_END_DECLS }
#else
#define G_BEGIN_DECLS
#define G_END_DECLS
#endif
#define G_CONST_RETURN const
/*
@@ -148,12 +137,6 @@ typedef struct {
} GMemVTable;
#define g_mem_set_vtable(x)
struct _GMemChunk {
guint alloc_size;
};
typedef struct _GMemChunk GMemChunk;
/*
* Misc.
*/
@@ -175,6 +158,14 @@ gchar* g_win32_getlocale(void);
* Hashtables
*/
typedef struct _GHashTable GHashTable;
typedef struct _GHashTableIter GHashTableIter;
/* Private, but needed for stack allocation */
struct _GHashTableIter
{
gpointer dummy [8];
};
typedef void (*GFunc) (gpointer data, gpointer user_data);
typedef gint (*GCompareFunc) (gconstpointer a, gconstpointer b);
typedef gint (*GCompareDataFunc) (gconstpointer a, gconstpointer b, gpointer user_data);
@@ -199,6 +190,9 @@ guint g_hash_table_foreach_remove (GHashTable *hash, GHRFunc func, gp
guint g_hash_table_foreach_steal (GHashTable *hash, GHRFunc func, gpointer user_data);
void g_hash_table_destroy (GHashTable *hash);
void g_hash_table_iter_init (GHashTableIter *iter, GHashTable *hash_table);
gboolean g_hash_table_iter_next (GHashTableIter *iter, gpointer *key, gpointer *value);
guint g_spaced_primes_closest (guint x);
#define g_hash_table_insert(h,k,v) g_hash_table_insert_replace ((h),(k),(v),FALSE)
@@ -211,8 +205,8 @@ guint g_int_hash (gconstpointer v1);
gboolean g_str_equal (gconstpointer v1, gconstpointer v2);
guint g_str_hash (gconstpointer v1);
#define g_assert(x) G_STMT_START { if (!(x)) g_assertion_message ("* Assertion at %s:%d, condition `%s' not met\n", __FILE__, __LINE__, #x); } G_STMT_END
#define g_assert_not_reached() G_STMT_START { g_assertion_message ("* Assertion: should not be reached at %s:%d\n", __FILE__, __LINE__); } G_STMT_END
#define g_assert(x) G_STMT_START { if (!(x)) g_error ("* Assertion at %s:%d, condition `%s' not met\n", __FILE__, __LINE__, #x); } G_STMT_END
#define g_assert_not_reached() G_STMT_START { g_error ("* Assertion: should not be reached at %s:%d\n", __FILE__, __LINE__); } G_STMT_END
/*
* Errors
@@ -519,24 +513,21 @@ GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask);
GLogLevelFlags g_log_set_fatal_mask (const gchar *log_domain, GLogLevelFlags fatal_mask);
void g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format, va_list args);
void g_log (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format, ...);
void g_assertion_message (const gchar *format, ...) G_GNUC_NORETURN;
#ifdef HAVE_C99_SUPPORT
/* The for (;;) tells gc thats g_error () doesn't return, avoiding warnings */
#define g_error(format, ...) do { g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, __VA_ARGS__); for (;;); } while (0)
#define g_error(format, ...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, __VA_ARGS__)
#define g_critical(format, ...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, format, __VA_ARGS__)
#define g_warning(format, ...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, format, __VA_ARGS__)
#define g_message(format, ...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, format, __VA_ARGS__)
#define g_debug(format, ...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format, __VA_ARGS__)
#else /* HAVE_C99_SUPPORT */
#define g_error(...) do { g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, __VA_ARGS__); for (;;); } while (0)
#define g_error(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, __VA_ARGS__)
#define g_critical(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, __VA_ARGS__)
#define g_warning(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, __VA_ARGS__)
#define g_message(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, __VA_ARGS__)
#define g_debug(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__)
#endif /* ndef HAVE_C99_SUPPORT */
#define g_log_set_handler(a,b,c,d)
/*
* Conversions
*/
@@ -704,7 +695,6 @@ typedef struct {
} GTimeVal;
void g_get_current_time (GTimeVal *result);
void g_usleep (gulong microseconds);
/*
* File
@@ -902,8 +892,6 @@ glong g_utf8_strlen (const gchar *str, gssize max);
#define GLIB_CHECK_VERSION(a,b,c) ((a < _EGLIB_MAJOR) || (a == _EGLIB_MAJOR && (b < _EGLIB_MIDDLE || (b == _EGLIB_MIDDLE && c <= _EGLIB_MINOR))))
G_END_DECLS
#endif
+1 -1
View File
@@ -404,7 +404,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
break;
case FLUSH_TEXT:
if (context->parser.text != NULL && context->text != NULL){
if (context->parser.text != NULL){
context->parser.text (context, context->text->str, context->text->len,
context->user_data, error);
if (error != NULL && *error != NULL)
+4 -4
View File
@@ -42,13 +42,13 @@ g_getenv(const gchar *variable)
gint32 retval;
var = u8to16(variable);
buffer = g_malloc(buffer_size*sizeof(gunichar2));
retval = GetEnvironmentVariableW (var, buffer, buffer_size);
retval = GetEnvironmentVariable (var, buffer, buffer_size);
if (retval != 0) {
if (retval > buffer_size) {
g_free (buffer);
buffer_size = retval;
buffer = g_malloc(buffer_size*sizeof(gunichar2));
retval = GetEnvironmentVariableW (var, buffer, buffer_size);
retval = GetEnvironmentVariable (var, buffer, buffer_size);
}
val = u16to8 (buffer);
}
@@ -64,7 +64,7 @@ g_setenv(const gchar *variable, const gchar *value, gboolean overwrite)
gboolean result;
var = u8to16(variable);
val = u8to16(value);
result = (SetEnvironmentVariableW(var, val) != 0) ? TRUE : FALSE;
result = (SetEnvironmentVariable(var, val) != 0) ? TRUE : FALSE;
g_free(var);
g_free(val);
return result;
@@ -75,7 +75,7 @@ g_unsetenv(const gchar *variable)
{
gunichar2 *var;
var = u8to16(variable);
SetEnvironmentVariableW(var, TEXT(""));
SetEnvironmentVariable(var, TEXT(""));
g_free(var);
}
+1 -11
View File
@@ -122,7 +122,7 @@ g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format,
log_domain != NULL ? ": " : "",
msg);
#else
printf ("%s%s%s\n",
printf ("%s%s%s",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
@@ -145,13 +145,3 @@ g_log (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format, .
va_end (args);
}
void
g_assertion_message (const gchar *format, ...)
{
va_list args;
va_start (args, format);
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
va_end (args);
}
-21
View File
@@ -177,27 +177,6 @@ g_ptr_array_remove(GPtrArray *array, gpointer data)
return FALSE;
}
gboolean
g_ptr_array_remove_fast(GPtrArray *array, gpointer data)
{
guint i;
g_return_val_if_fail(array != NULL, FALSE);
for(i = 0; i < array->len; i++) {
if(array->pdata[i] == data) {
array->len--;
if (array->len > 0)
array->pdata [i] = array->pdata [array->len];
else
array->pdata [i] = NULL;
return TRUE;
}
}
return FALSE;
}
void
g_ptr_array_foreach(GPtrArray *array, GFunc func, gpointer user_data)
{
+6 -136
View File
@@ -136,145 +136,15 @@ g_shell_parse_argv (const gchar *command_line, gint *argcp, gchar ***argvp, GErr
gchar *
g_shell_quote (const gchar *unquoted_string)
{
GString *result = g_string_new ("'");
const gchar *p;
for (p = unquoted_string; *p; p++){
if (*p == '\'')
g_string_append (result, "'\\'");
g_string_append_c (result, *p);
}
g_string_append_c (result, '\'');
return g_string_free (result, FALSE);
//g_error ("%s", "Not implemented");
return g_strdup (unquoted_string);
// return NULL;
}
gchar *
g_shell_unquote (const gchar *quoted_string, GError **error)
{
GString *result;
const char *p;
int do_unquote = 0;
if (quoted_string == NULL)
return NULL;
/* Quickly try to determine if we need to unquote or not */
for (p = quoted_string; *p; p++){
if (*p == '\'' || *p == '"' || *p == '\\'){
do_unquote = 1;
break;
}
}
if (!do_unquote)
return g_strdup (quoted_string);
/* We do need to unquote */
result = g_string_new ("");
for (p = quoted_string; *p; p++){
if (*p == '\''){
/* Process single quote, not even \ is processed by glib's version */
for (p++; *p; p++){
if (*p == '\'')
break;
g_string_append_c (result, *p);
}
if (!*p){
g_set_error (error, 0, 0, "Open quote");
return NULL;
}
} else if (*p == '"'){
/* Process double quote, allows some escaping */
for (p++; *p; p++){
if (*p == '"')
break;
if (*p == '\\'){
p++;
if (*p == 0){
g_set_error (error, 0, 0, "Open quote");
return NULL;
}
switch (*p){
case '$':
case '"':
case '\\':
case '`':
break;
default:
g_string_append_c (result, '\\');
break;
}
}
g_string_append_c (result, *p);
}
if (!*p){
g_set_error (error, 0, 0, "Open quote");
return NULL;
}
} else if (*p == '\\'){
char c = *(++p);
if (!(c == '$' || c == '"' || c == '\\' || c == '`' || c == 0))
g_string_append_c (result, '\\');
if (c == 0)
break;
else
g_string_append_c (result, c);
} else
g_string_append_c (result, *p);
}
return g_string_free (result, FALSE);
// g_error ("%s", "Not implemented");
return g_strdup (quoted_string);
// return NULL;
}
#if JOINT_TEST
/*
* This test is designed to be built with the 2 glib/eglib to compare
*/
char *args [] = {
"\\",
"\"Foo'bar\"",
"'foo'",
"'fo\'b'",
"'foo\"bar'",
"'foo' dingus bar",
"'foo' 'bar' 'baz'",
"\"foo\" 'bar' \"baz\"",
"\"f\\$\\\'",
"\"\\",
"\\\\",
"'\\\\'",
"\"f\\$\"\\\"\\\\", // /\\\"\\\\"
"'f\\$'\\\"\\\\",
"'f\\$\\\\'",
NULL
};
int
main ()
{
char **s = args;
int i;
while (*s){
char *r1 = g_shell_unquote (*s, NULL);
char *r2 = g2_shell_unquote (*s, NULL);
char *ok = r1 == r2 ? "ok" : (r1 != NULL && r2 != NULL && strcmp (r1, r2) == 0) ? "ok" : "fail";
printf ("%s [%s] -> [%s] - [%s]\n", ok, *s, r1, r2);
s++;
}
return;
char buffer [10];
buffer [0] = '\"';
buffer [1] = '\\';
buffer [3] = '\"';
buffer [4] = 0;
for (i = 32; i < 255; i++){
buffer [2] = i;
printf ("%d [%s] -> [%s]\n", i, buffer, g_shell_unquote (buffer, NULL));
}
}
#endif
-5
View File
@@ -35,7 +35,6 @@
#include <glib.h>
#ifdef HAVE_UNISTD_H
#define __USE_GNU
#include <unistd.h>
#endif
@@ -71,10 +70,6 @@
*/
gchar ***_NSGetEnviron();
#define environ (*_NSGetEnviron())
#elif defined(_MSC_VER)
/* MS defines this in stdlib.h */
#else
extern char **environ;
#endif
static int
+15 -15
View File
@@ -38,21 +38,19 @@
#include <glib.h>
#include <unicode-data.h>
#include <errno.h>
#if defined(_MSC_VER) || defined(G_OS_WIN32)
#ifdef _MSC_VER
/* FIXME */
# define CODESET 1
# include <Windows.h>
# ifdef _MSC_VER
typedef int iconv_t;
# endif
#define CODESET 1
#include <Windows.h>
typedef int iconv_t;
#else
# ifdef HAVE_LANGINFO_H
# include <langinfo.h>
# endif
# ifdef HAVE_ICONV_H
# include <iconv.h>
# endif
#ifdef HAVE_LANGINFO_H
#include <langinfo.h>
#endif
#ifdef HAVE_ICONV_H
#include <iconv.h>
#endif
#endif
static char *my_charset;
@@ -217,8 +215,10 @@ g_convert (const gchar *str, gssize len,
convertor = iconv_open (to_codeset, from_codeset);
if (convertor == (iconv_t) -1){
*bytes_written = 0;
*bytes_read = 0;
if (bytes_written)
*bytes_written = 0;
if (bytes_read)
*bytes_read = 0;
return NULL;
}
+5 -1
View File
@@ -21,7 +21,7 @@ g_convert_error_quark ()
return error_quark;
}
static gunichar*
gunichar*
utf8_case_conv (const gchar *str, gssize len, gboolean upper)
{
glong i, u16len, u32len;
@@ -76,6 +76,8 @@ g_utf8_to_utf16 (const gchar *str, glong len, glong *items_read, glong *items_wr
if (error)
*error = NULL;
if (items_read)
*items_read = 0;
if (items_written)
*items_written = 0;
utf16_len = utf8_to_utf16_len (str, len, items_read, error);
@@ -288,6 +290,8 @@ g_utf16_to_utf8 (const gunichar2 *str, glong len, glong *items_read, glong *item
out_pos = 0;
surrogate = FALSE;
if (items_read)
*items_read = 0;
if (items_written)
*items_written = 0;
utf8_len = utf16_to_utf8_len (str, len, items_read, error);
+12 -12
View File
@@ -40,7 +40,7 @@ static const CodePointRange unicode_category_ranges [] = {
{0x02F800, 0x02FA40},
{0x0E0000, 0x0E0200},
{0, 0}};
static const guint8 unicode_category_table0 [] = {
const GUnicodeType unicode_category_table0 [] = {
/* ==== 0-3400 ==== */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
@@ -875,14 +875,14 @@ static const guint8 unicode_category_table0 [] = {
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
0};
static const guint8 unicode_category_table1 [] = {
const GUnicodeType unicode_category_table1 [] = {
/* ==== 4DC0-4E00 ==== */
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
0};
static const guint8 unicode_category_table2 [] = {
const GUnicodeType unicode_category_table2 [] = {
/* ==== A000-AA80 ==== */
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,6,7,7,7,7,7,7,7,7,7,7,
@@ -1051,7 +1051,7 @@ static const guint8 unicode_category_table2 [] = {
7,7,7,12,7,7,7,7,7,7,7,7,12,10,0,0,
13,13,13,13,13,13,13,13,13,13,0,0,21,21,21,21,
0};
static const guint8 unicode_category_table3 [] = {
const GUnicodeType unicode_category_table3 [] = {
/* ==== F900-10000 ==== */
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
@@ -1165,7 +1165,7 @@ static const guint8 unicode_category_table3 [] = {
0,0,7,7,7,7,7,7,0,0,7,7,7,0,0,0,
23,23,25,24,26,23,23,0,26,25,25,25,25,26,26,0,
0,0,0,0,0,0,0,0,0,1,1,1,26,26,0};
static const guint8 unicode_category_table4 [] = {
const GUnicodeType unicode_category_table4 [] = {
/* ==== 10000-104C0 ==== */
7,7,7,7,7,7,7,7,7,7,7,7,0,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
@@ -1242,7 +1242,7 @@ static const guint8 unicode_category_table4 [] = {
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,0,0,
13,13,13,13,13,13,13,13,13,13,0};
static const guint8 unicode_category_table5 [] = {
const GUnicodeType unicode_category_table5 [] = {
/* ==== 10800-10A80 ==== */
7,7,7,7,7,7,0,0,7,0,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
@@ -1282,7 +1282,7 @@ static const guint8 unicode_category_table5 [] = {
7,7,7,7,0,0,0,0,12,12,12,0,0,0,0,12,
15,15,15,15,15,15,15,15,0,0,0,0,0,0,0,0,
21,21,21,21,21,21,21,21,21,0};
static const guint8 unicode_category_table6 [] = {
const GUnicodeType unicode_category_table6 [] = {
/* ==== 12000-12480 ==== */
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
@@ -1356,7 +1356,7 @@ static const guint8 unicode_category_table6 [] = {
14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,
14,14,14,0,0,0,0,0,0,0,0,0,0,0,0,0,
21,21,21,21,0};
static const guint8 unicode_category_table7 [] = {
const GUnicodeType unicode_category_table7 [] = {
/* ==== 1D000-1D800 ==== */
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
@@ -1487,7 +1487,7 @@ static const guint8 unicode_category_table7 [] = {
13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
0};
static const guint8 unicode_category_table8 [] = {
const GUnicodeType unicode_category_table8 [] = {
/* ==== 1F000-1F0C0 ==== */
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
@@ -1499,7 +1499,7 @@ static const guint8 unicode_category_table8 [] = {
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
26,26,26,26,0};
static const guint8 unicode_category_table9 [] = {
const GUnicodeType unicode_category_table9 [] = {
/* ==== 2F800-2FA40 ==== */
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
@@ -1535,7 +1535,7 @@ static const guint8 unicode_category_table9 [] = {
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,0};
static const guint8 unicode_category_table10 [] = {
const GUnicodeType unicode_category_table10 [] = {
/* ==== E0000-E0200 ==== */
0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
@@ -1569,7 +1569,7 @@ static const guint8 unicode_category_table10 [] = {
12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,
12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,
0};
static const guint8 *unicode_category [11] = {
static const GUnicodeType *unicode_category [11] = {
unicode_category_table0,
unicode_category_table1,
unicode_category_table2,
+14 -7
View File
@@ -1,10 +1,17 @@
/Makefile
/
/Makefile.in
/configure
/libtool
/aclocal.m4
/Makefile
/config.h
/config.h.in
/config.status
/stamp-h1
/autom4te.cache
/.libs
/.deps
/*.lo
/*.la
/*.o
/semantic.cache
/.project
/.cproject
/test-glib
/test-eglib
/test-glib.exe
/test-eglib.exe
+1 -1
View File
@@ -30,7 +30,7 @@ SOURCES = \
test_eglib_SOURCES = $(SOURCES)
test_eglib_CFLAGS = -Wall -Werror -D_FORTIFY_SOURCE=2 -I$(srcdir)/../src -I../src -DDRIVER_NAME=\"EGlib\"
test_eglib_LDADD = ../src/libeglib.la
test_eglib_LDADD = ../src/libeglib.la -ldl
run-eglib: all
./test-eglib
+1 -5
View File
@@ -31,9 +31,7 @@
#include "tests.h"
#include <stdio.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
@@ -112,8 +110,7 @@ gint main(gint argc, gchar **argv)
gboolean global_failure = FALSE;
gboolean no_final_time_labels = FALSE;
gboolean debug = FALSE;
#if HAVE_GETOPT_H
static struct option long_options [] = {
{"help", no_argument, 0, 'h'},
{"time", no_argument, 0, 't'},
@@ -153,7 +150,6 @@ gint main(gint argc, gchar **argv)
tests_to_run = string_array_append(tests_to_run, argv[i]);
}
#endif
time_start = get_timestamp();
+28
View File
@@ -131,12 +131,40 @@ RESULT hash_grow (void)
return NULL;
}
RESULT hash_iter (void)
{
GHashTable *hash = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, NULL);
GHashTableIter iter;
int i, sum, keys_sum, values_sum;
gpointer key, value;
sum = 0;
for (i = 0; i < 1000; i++) {
sum += i;
g_hash_table_insert (hash, GUINT_TO_POINTER (i), GUINT_TO_POINTER (i));
}
keys_sum = values_sum = 0;
g_hash_table_iter_init (&iter, hash);
while (g_hash_table_iter_next (&iter, &key, &value)) {
if (key != value)
return FAILED ("key != value");
keys_sum += GPOINTER_TO_UINT (key);
values_sum += GPOINTER_TO_UINT (value);
}
if (keys_sum != sum || values_sum != sum)
return FAILED ("Did not find all key-value pairs");
g_hash_table_destroy (hash);
return NULL;
}
static Test hashtable_tests [] = {
{"t1", hash_t1},
{"t2", hash_t2},
{"grow", hash_grow},
{"default", hash_default},
{"null_lookup", hash_null_lookup},
{"iter", hash_iter},
{NULL, NULL}
};
-8
View File
@@ -264,7 +264,6 @@ test_ppath2 ()
return OK;
}
#ifndef DISABLE_FILESYSTEM_TESTS
gchar *
test_cwd ()
{
@@ -289,13 +288,6 @@ test_cwd ()
return OK;
}
#else
gchar *
test_cwd ()
{
return OK;
}
#endif
gchar *
test_misc ()
-41
View File
@@ -253,46 +253,6 @@ RESULT ptrarray_sort()
return OK;
}
RESULT ptrarray_remove_fast()
{
GPtrArray *array = g_ptr_array_new();
gchar *letters [] = { "A", "B", "C", "D", "E" };
if (g_ptr_array_remove_fast (array, NULL))
return FAILED ("Removing NULL succeeded");
g_ptr_array_add(array, letters[0]);
if (!g_ptr_array_remove_fast (array, letters[0]) || array->len != 0)
return FAILED ("Removing last element failed");
g_ptr_array_add(array, letters[0]);
g_ptr_array_add(array, letters[1]);
g_ptr_array_add(array, letters[2]);
g_ptr_array_add(array, letters[3]);
g_ptr_array_add(array, letters[4]);
if (!g_ptr_array_remove_fast (array, letters[0]) || array->len != 4)
return FAILED ("Removing first element failed");
if (array->pdata [0] != letters [4])
return FAILED ("First element wasn't replaced with last upon removal");
if (g_ptr_array_remove_fast (array, letters[0]))
return FAILED ("Succedeed removing a non-existing element");
if (!g_ptr_array_remove_fast (array, letters[3]) || array->len != 3)
return FAILED ("Failed removing \"D\"");
if (!g_ptr_array_remove_fast (array, letters[1]) || array->len != 2)
return FAILED ("Failed removing \"B\"");
if (array->pdata [0] != letters [4] || array->pdata [1] != letters [2])
return FAILED ("Last two elements are wrong");
g_ptr_array_free(array, TRUE);
return OK;
}
static Test ptrarray_tests [] = {
{"alloc", ptrarray_alloc},
{"for_iterate", ptrarray_for_iterate},
@@ -302,7 +262,6 @@ static Test ptrarray_tests [] = {
{"remove_index_fast", ptrarray_remove_index_fast},
{"remove", ptrarray_remove},
{"sort", ptrarray_sort},
{"remove_fast", ptrarray_remove_fast},
{NULL, NULL}
};
-15
View File
@@ -226,25 +226,10 @@ test_shell_argv3 ()
return OK;
}
RESULT
test_quote ()
{
if (strcmp (g_shell_quote ("foo"), "'foo'"))
return FAILED ("Should return 'foo'");
if (strcmp (g_shell_quote ("foo'bar"), "'foo'\\''bar'"))
return FAILED ("Should return 'foo'\\''bar'");
if (strcmp (g_shell_quote ("foo bar"), "'foo bar'"))
return FAILED ("Should return 'foo bar'");
return OK;
}
static Test shell_tests [] = {
{"g_shell_parse_argv1", test_shell_argv1},
{"g_shell_parse_argv2", test_shell_argv2},
{"g_shell_parse_argv3", test_shell_argv3},
{"g_shell_quote", test_quote},
{NULL, NULL}
};
-10
View File
@@ -26,10 +26,6 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
@@ -47,12 +43,6 @@
extern gint global_passed, global_tests;
#ifndef HAVE_VASPRINTF
/* systen does not provide a vasprintf function, use the one
provided within eglib itself */
extern int vasprintf(char **ret, const char *format, va_list ap);
#endif
static gchar *last_result = NULL;
gboolean
-2
View File
@@ -31,8 +31,6 @@
#include <config.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <glib.h>
#ifdef _MSC_VER
+2 -6
View File
@@ -38,19 +38,15 @@ static Group test_groups [] = {
{"path", path_tests_init},
{"shell", shell_tests_init},
{"markup", markup_tests_init},
#if !DISABLE_PROCESS_TESTS
{"spawn", spawn_tests_init},
{"module", module_tests_init},
#endif
#if !DISABLE_FILESYSTEM_TESTS
{"file", file_tests_init},
#endif
{"timer", timer_tests_init},
{"file", file_tests_init},
{"pattern", pattern_tests_init},
{"dir", dir_tests_init},
{"unicode", unicode_tests_init},
{"utf8", utf8_tests_init},
{"endian", endian_tests_init},
{"module", module_tests_init},
{"memory", memory_tests_init},
{NULL, NULL}
};
+11 -26
View File
@@ -1,7 +1,12 @@
2010-04-23 Geoff Norton <[email protected]>
2010-06-14 Geoff Norton <[email protected]>
* include/private/gcconfig.h: Darwin x86-64 bit support.
* darwin_stop_world.c: Ditto
* dyn_load.c: Fix one other place where l_addr could be null on
bionic.
2010-05-31 Geoff Norton <[email protected]>
* dyn_load.c: Its possible for linkmap->l_addr to be null for the
linker entry on some systems (Android/Bionic based libc's)
2010-04-19 Jonathan Pryor <[email protected]>
@@ -20,41 +25,21 @@
* include/private/gc_locks.h: Add SPARC implementations of
GC_compare_and_exchange and GC_memory_barrier.
2010-02-22 Zoltan Varga <[email protected]>
* obj_map.c (GC_add_map_entry): Speed this up for the common case where
GC_register_displacement () was never called.
2010-01-29 Geoff Norton <[email protected]>
* include/private/gcconfig.h: Don't define NO_PTHREAD_TRYLOCK on darwin-x86
Patch from Tom Philpot ([email protected])
2009-10-25 Zoltan Varga <[email protected]>
* misc.c (GC_get_suspend_signal): New API function to return the suspend signal
used by libgc.
2009-09-29 Zoltan Varga <[email protected]>
* solaris_threads.c (GC_thr_daemon): Don't crash if GC_lookup_thread () returns
NULL.
2009-09-25 Zoltan Varga <[email protected]>
* solaris_threads.c (GC_get_orig_stack_size): Remove the annoying 'Large stack
limit' warning.
2009-07-20 Geoff Norton <[email protected]>
* darwin_stop_world.c: Fix the x86 version guards to use Apple's
properly defined macros.
2009-07-02 jonas echterhoff <[email protected]>
* darwin_stop_world.c: make debugger code compile on
* darwin_stop_world.c: make debugger code compile on
OS X.
* pthread_support.c: give mach ports to the debugger instead of pthreads,
as those can be iterated over from another executable.
+1 -1
View File
@@ -47,7 +47,7 @@ obj_map.c os_dep.c pcr_interface.c ptr_chck.c real_malloc.c reclaim.c \
solaris_pthreads.c solaris_threads.c specific.c stubborn.c typd_mlc.c \
backgraph.c win32_threads.c \
pthread_support.c pthread_stop_world.c darwin_stop_world.c \
$(asm_libgc_sources)
openbsd_stop_world.c $(asm_libgc_sources)
# Include THREADDLLIBS here to ensure that the correct versions of
# linuxthread semaphore functions get linked:
+7
View File
@@ -147,6 +147,13 @@ case "$THREADS" in
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
;;
*-*-openbsd*)
AC_DEFINE(GC_OPENBSD_THREADS)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
;;
*-*-osf*)
AC_DEFINE(GC_OSF1_THREADS)
if test "${enable_parallel_mark}" = yes; then
+1 -27
View File
@@ -89,9 +89,6 @@ void GC_push_all_stacks() {
#elif defined(ARM)
arm_thread_state_t state;
mach_msg_type_number_t thread_state_count = ARM_THREAD_STATE_COUNT;
#elif defined(X86_64)
x86_thread_state64_t state;
mach_msg_type_number_t thread_state_count = x86_THREAD_STATE64_COUNT;
#else
# error FIXME for non-x86 || ppc architectures
mach_msg_type_number_t thread_state_count = MACHINE_THREAD_STATE_COUNT;
@@ -112,7 +109,7 @@ void GC_push_all_stacks() {
GC_MACH_THREAD_STATE_FLAVOR,
(natural_t*)&state,
&thread_state_count);
if(r != KERN_SUCCESS) continue;
if(r != KERN_SUCCESS) ABORT("thread_get_state failed");
#if defined(I386)
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
@@ -137,29 +134,6 @@ void GC_push_all_stacks() {
GC_push_one(state.esi);
GC_push_one(state.ebp);
#endif
#elif defined(X86_64)
lo = state.__rsp;
GC_push_one(state.__rax);
GC_push_one(state.__rbx);
GC_push_one(state.__rcx);
GC_push_one(state.__rdx);
GC_push_one(state.__rdi);
GC_push_one(state.__rsi);
GC_push_one(state.__rbp);
GC_push_one(state.__rsp);
GC_push_one(state.__r8);
GC_push_one(state.__r9);
GC_push_one(state.__r10);
GC_push_one(state.__r11);
GC_push_one(state.__r12);
GC_push_one(state.__r13);
GC_push_one(state.__r14);
GC_push_one(state.__r15);
GC_push_one(state.__rip);
GC_push_one(state.__rflags);
GC_push_one(state.__cs);
GC_push_one(state.__fs);
GC_push_one(state.__gs);
#elif defined(POWERPC)
#if defined(_STRUCT_PPC_EXCEPTION_STATE)
lo = (void*)(state.__r1 - PPC_RED_ZONE_SIZE);
+16 -3
View File
@@ -57,6 +57,7 @@
!defined(HPUX) && !(defined(LINUX) && defined(__ELF__)) && \
!defined(RS6000) && !defined(SCO_ELF) && !defined(DGUX) && \
!(defined(FREEBSD) && defined(__ELF__)) && \
!(defined(OPENBSD) && (defined(__ELF__) || defined(M68K))) && \
!(defined(NETBSD) && defined(__ELF__)) && !defined(HURD) && \
!defined(DARWIN)
--> We only know how to find data segments of dynamic libraries for the
@@ -92,9 +93,12 @@
#if defined(LINUX) && defined(__ELF__) || defined(SCO_ELF) || \
(defined(FREEBSD) && defined(__ELF__)) || defined(DGUX) || \
(defined(OPENBSD) && defined(__ELF__)) || \
(defined(NETBSD) && defined(__ELF__)) || defined(HURD)
# include <stddef.h>
# if !defined(OPENBSD)
# include <elf.h>
# endif
# include <link.h>
#endif
@@ -250,7 +254,10 @@ void GC_register_dynamic_libraries()
char * start;
register int i;
e = (ElfW(Ehdr) *) lm->l_addr;
e = (ElfW(Ehdr) *) lm->l_addr;
if (e == NULL)
continue;
p = ((ElfW(Phdr) *)(((char *)(e)) + e->e_phoff));
offset = ((unsigned long)(lm->l_addr));
for( i = 0; i < (int)(e->e_phnum); ((i++),(p++)) ) {
@@ -292,6 +299,7 @@ void GC_register_dynamic_libraries()
#if defined(LINUX) && defined(__ELF__) || defined(SCO_ELF) || \
(defined(FREEBSD) && defined(__ELF__)) || defined(DGUX) || \
(defined(OPENBSD) && defined(__ELF__)) || \
(defined(NETBSD) && defined(__ELF__)) || defined(HURD)
@@ -470,8 +478,10 @@ GC_bool GC_register_main_static_data()
/* This doesn't necessarily work in all cases, e.g. with preloaded
* dynamic libraries. */
#if defined(NETBSD)
#if defined(NETBSD) || defined(OPENBSD)
# if !defined(OPENBSD)
# include <sys/exec_elf.h>
# endif
/* for compatibility with 1.4.x */
# ifndef DT_DEBUG
# define DT_DEBUG 21
@@ -544,7 +554,10 @@ void GC_register_dynamic_libraries()
char * start;
register int i;
e = (ElfW(Ehdr) *) lm->l_addr;
e = (ElfW(Ehdr) *) lm->l_addr;
if (e == NULL)
continue;
p = ((ElfW(Phdr) *)(((char *)(e)) + e->e_phoff));
offset = ((unsigned long)(lm->l_addr));
for( i = 0; i < (int)(e->e_phnum); ((i++),(p++)) ) {
+5
View File
@@ -57,6 +57,7 @@
defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS) || \
defined(GC_DGUX386_THREADS) || defined(GC_DARWIN_THREADS) || \
defined(GC_AIX_THREADS) || defined(GC_NETBSD_THREADS) || \
defined(GC_OPENBSD_THREADS) || \
(defined(GC_WIN32_THREADS) && defined(__CYGWIN32__))
# define GC_PTHREADS
# endif
@@ -87,6 +88,10 @@
# define GC_DARWIN_THREADS
# define GC_PTHREADS
# endif
# if !defined(GC_PTHREADS) && defined(__OpenBSD__)
# define GC_OPENBSD_THREADS
# define GC_PTHREADS
# endif
# if !defined(GC_PTHREADS) && defined(__FreeBSD__)
# define GC_FREEBSD_THREADS
# define GC_PTHREADS
Loaded 100 of 8678 files, more files were not shown because too many files have changed in this diff. Show more