mono.git
14 years ago2009-11-02 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Tue, 3 Nov 2009 02:22:38 +0000 (02:22 -0000)]
2009-11-02 Jonathan Chambers <joncham@gmail.com>

* mini-x86.c: Put soft debugger functions behind a
#ifdef MONO_ARCH_SOFT_DEBUG_SUPPORTED.

Code contributed under MIT/X11 license.

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

14 years ago2009-11-02 Jonathan Chambers <joncham@novell.com>
Jonathan Chambers [Tue, 3 Nov 2009 02:20:47 +0000 (02:20 -0000)]
2009-11-02 Jonathan Chambers <joncham@novell.com>

* exceptions-x86.c (win32_handle_stack_overflow): Fix parameters
to mono_arch_find_jit_info_ext.

Code contributed under MIT/X11 license.

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

14 years ago2009-11-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Nov 2009 01:57:59 +0000 (01:57 -0000)]
2009-11-03  Zoltan Varga  <vargaz@gmail.com>

* debugger-agent.c: Add support for filtering events by assemblies.

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

14 years ago2009-11-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Nov 2009 01:55:03 +0000 (01:55 -0000)]
2009-11-03  Zoltan Varga  <vargaz@gmail.com>

* 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=/trunk/mcs/; revision=145244

14 years agoSystem.Reflection.Emit's turn to be de-ifdefified
Miguel de Icaza [Tue, 3 Nov 2009 01:30:22 +0000 (01:30 -0000)]
System.Reflection.Emit's turn to be de-ifdefified

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

14 years agoSystem.Reflection's turn to be de-ifdefified
Miguel de Icaza [Tue, 3 Nov 2009 01:22:00 +0000 (01:22 -0000)]
System.Reflection's turn to be de-ifdefified

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

14 years agoSystem.Reflection's turn to be de-ifdefified
Miguel de Icaza [Tue, 3 Nov 2009 01:20:56 +0000 (01:20 -0000)]
System.Reflection's turn to be de-ifdefified

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

14 years agoMore NET_2_0 removal
Miguel de Icaza [Tue, 3 Nov 2009 01:08:45 +0000 (01:08 -0000)]
More NET_2_0 removal

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

14 years agoJumbo NET_2_0 removal
Miguel de Icaza [Tue, 3 Nov 2009 01:07:23 +0000 (01:07 -0000)]
Jumbo NET_2_0 removal

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

14 years ago2009-11-02 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 3 Nov 2009 00:27:28 +0000 (00:27 -0000)]
2009-11-02  Miguel de Icaza  <miguel@novell.com>

        * Jumbo patch to drop support for pre-NET_2_0 code:

        Remove NET_2_0 defines assuming the value is true.

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

14 years ago2009-11-02 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 2 Nov 2009 23:22:40 +0000 (23:22 -0000)]
2009-11-02  Miguel de Icaza  <miguel@novell.com>

        * Jumbo patch to drop support for pre-NET_2_0 code:

        Remove ONLY_1_1 code
        Remove NET_1_0 only code
        Remove NET_2_0 defines assuming the value is true.

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

14 years ago2009-11-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Nov 2009 23:04:39 +0000 (23:04 -0000)]
2009-11-03  Zoltan Varga  <vargaz@gmail.com>

* debugger-agent.c (mono_debugger_agent_thread_interrupt): Return false if
the agent is not enabled.

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

14 years agoLAST one!
Gonzalo Paniagua Javier [Mon, 2 Nov 2009 21:02:41 +0000 (21:02 -0000)]
LAST one!

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

14 years agoone more
Gonzalo Paniagua Javier [Mon, 2 Nov 2009 20:53:59 +0000 (20:53 -0000)]
one more

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

14 years ago2009-11-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 2 Nov 2009 20:31:02 +0000 (20:31 -0000)]
2009-11-02 Gonzalo Paniagua Javier <gonzalo@novell.com>

* exceptions-x86.c: hopefully last change to fix the windows build.
This one courtesy of Jonathan Chambers.

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

14 years ago2009-11-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 2 Nov 2009 20:25:36 +0000 (20:25 -0000)]
2009-11-02 Gonzalo Paniagua Javier <gonzalo@novell.com>

* debugger-agent.c: remove unused function.

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

14 years agoAdd debugger-agent*
Gonzalo Paniagua Javier [Mon, 2 Nov 2009 20:23:07 +0000 (20:23 -0000)]
Add debugger-agent*

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

14 years ago2009-11-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 2 Nov 2009 20:18:47 +0000 (20:18 -0000)]
2009-11-02 Gonzalo Paniagua Javier <gonzalo@novell.com>

* 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=/trunk/mono/; revision=145218

14 years ago2009-11-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 2 Nov 2009 20:15:11 +0000 (20:15 -0000)]
2009-11-02 Gonzalo Paniagua Javier <gonzalo@novell.com>

* configure.in: add a few missing header file checks.

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

14 years ago2009-11-02 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 2 Nov 2009 20:05:35 +0000 (20:05 -0000)]
2009-11-02  Sebastien Pouliot  <sebastien@ximian.com>

* Thread.cs (set_CurrentUICulture): Delay setting in_currentculture
to true until after the null check and the return statement.

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

14 years ago2009-11-02 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 2 Nov 2009 19:16:56 +0000 (19:16 -0000)]
2009-11-02  Miguel de Icaza  <miguel@novell.com>

* More NET_2_0 define removal, assume that it is now always true.

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

14 years ago2009-11-02 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 2 Nov 2009 16:18:46 +0000 (16:18 -0000)]
2009-11-02  Jb Evain  <jbevain@novell.com>

* Mono.Tuner/MoonlightAssemblyStep.cs: adapt to the MT linker merge.

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

14 years ago2009-11-02 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 2 Nov 2009 16:15:17 +0000 (16:15 -0000)]
2009-11-02  Jb Evain  <jbevain@novell.com>

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=/trunk/mcs/; revision=145207

14 years ago2009-11-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Nov 2009 16:15:17 +0000 (16:15 -0000)]
2009-11-02  Zoltan Varga  <vargaz@gmail.com>

* tramp-x86.c (mono_arch_get_llvm_imt_trampoline): Comment this out for now
as it breaks the build.

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

14 years ago2009-11-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Nov 2009 16:12:33 +0000 (16:12 -0000)]
2009-11-02  Zoltan Varga  <vargaz@gmail.com>

* Makefile: Add Mono.Debugger.Soft.

In Mono.Debugger.Soft:

2009-11-02  Zoltan Varga  <vargaz@gmail.com>

* New directory containing the managed interface to the soft-mode debugger.

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

14 years ago2009-11-02 Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Mon, 2 Nov 2009 16:06:11 +0000 (16:06 -0000)]
2009-11-02  Jérémie Laval  <jeremie.laval@gmail.com>

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=/trunk/mcs/; revision=145203

14 years ago2009-07-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Nov 2009 15:44:56 +0000 (15:44 -0000)]
2009-07-01  Zoltan Varga  <vargaz@gmail.com>

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=/trunk/mono/; revision=145201

14 years ago2009-11-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Nov 2009 15:18:21 +0000 (15:18 -0000)]
2009-11-02  Zoltan Varga  <vargaz@gmail.com>

* 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=/trunk/mono/; revision=145200

14 years ago2009-11-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Nov 2009 12:41:19 +0000 (12:41 -0000)]
2009-11-02  Zoltan Varga  <vargaz@gmail.com>

* 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=/trunk/mono/; revision=145195

14 years ago2009-11-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Nov 2009 12:22:58 +0000 (12:22 -0000)]
2009-11-02  Zoltan Varga  <vargaz@gmail.com>

* tramp-x86.c (mono_arch_get_llvm_imt_trampoline): Implement this for x86.

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

14 years ago2009-11-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Nov 2009 11:59:28 +0000 (11:59 -0000)]
2009-11-02  Zoltan Varga  <vargaz@gmail.com>

* 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=/trunk/mono/; revision=145191

14 years ago2009-11-02 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 2 Nov 2009 06:25:38 +0000 (06:25 -0000)]
2009-11-02  Miguel de Icaza  <miguel@novell.com>

* Copy some collections from WindowsBase here for 4.0 support.

Add a handful of methods from 4.0 as well

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

14 years ago2009-11-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 1 Nov 2009 19:24:10 +0000 (19:24 -0000)]
2009-11-01  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Make the LLVM warning a bit more up-to-date.

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

14 years ago2009-11-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 1 Nov 2009 19:16:08 +0000 (19:16 -0000)]
2009-11-01  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am (llvm_sources): Enable the llvm option since it no longer breaks
the windows build.

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

14 years ago2009-11-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 1 Nov 2009 19:16:00 +0000 (19:16 -0000)]
2009-11-01  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Pass -mno-cygwin to CXX too on windows. Enable AC_PROG_CXX
since it now works on windows too.

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

14 years ago2009-11-01 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 1 Nov 2009 16:46:27 +0000 (16:46 -0000)]
2009-11-01  Sebastien Pouliot  <sebastien@ximian.com>

* MoonIsolatedStorageFile.cs: Add new CheckSearchPattern
validation method. Fix GetDirectoryNames to behave like
GetFileNames wrt searchPattern

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

14 years ago2009-11-01 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 1 Nov 2009 16:45:14 +0000 (16:45 -0000)]
2009-11-01  Sebastien Pouliot  <sebastien@ximian.com>

* ResourceManager.cs (GetResourceFilePath): Don't use
'resourceDir' which should always be null for Moonlight

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

14 years ago2009-11-01 Mark Probst <mark.probst@gmail.com>
Mark Probst [Sun, 1 Nov 2009 11:00:11 +0000 (11:00 -0000)]
2009-11-01  Mark Probst  <mark.probst@gmail.com>

* sgen-gc.c: Keep track of the reason for a major collection and
write it to the heap-dump file.

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

14 years ago2009-10-31 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 31 Oct 2009 22:31:24 +0000 (22:31 -0000)]
2009-10-31  Miguel de Icaza  <miguel@novell.com>

* 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=/trunk/mono/; revision=145153

14 years agoAdd new classes
Miguel de Icaza [Sat, 31 Oct 2009 17:15:25 +0000 (17:15 -0000)]
Add new classes

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

14 years ago2009-10-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 31 Oct 2009 16:19:24 +0000 (16:19 -0000)]
2009-10-31  Sebastien Pouliot  <sebastien@ximian.com>

* BinaryCommon.cs: Disable MONO_REFLECTION_SERIALIZER override
for Moonlight plugin.

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

14 years agoUpdate namespace
Miguel de Icaza [Sat, 31 Oct 2009 16:14:57 +0000 (16:14 -0000)]
Update namespace

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

14 years agoAdd BigInteger to System.Numerics from the Microsoft MS-PL'ed DLR
Miguel de Icaza [Sat, 31 Oct 2009 16:14:30 +0000 (16:14 -0000)]
Add BigInteger to System.Numerics from the Microsoft MS-PL'ed DLR

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

14 years ago2009-10-31 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 31 Oct 2009 14:08:38 +0000 (14:08 -0000)]
2009-10-31  Zoltan Varga  <vargaz@gmail.com>

* appdomain.c (mono_domain_try_unload): Applied patch from Romain Tartière.
Fix returning when WaitForSingleObjectEx returns WAIT_IO_COMPLETION.

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

14 years ago2009-10-31 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Sat, 31 Oct 2009 04:06:50 +0000 (04:06 -0000)]
2009-10-31 Gonzalo Paniagua Javier <gonzalo@novell.com>

* 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 <gonzalo@novell.com>

* mono-proclib.c: hz is only multiplied by the number of cpus when
requesting "_Total".

Fixes bug #523520.

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

14 years ago2009-10-30 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Fri, 30 Oct 2009 20:57:59 +0000 (20:57 -0000)]
2009-10-30  Veerapuram Varadhan  <vvaradhan@novell.com>

* DataTable.cs: Reuse old utility methods for raising DataTable
clearing/cleared events.
* DataRowCollection.cs (Clear): Raise DataTable clearing/cleared
events only for non 1.x profiles.  Fixes broken 1.x build.

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

14 years agoIn System.Reflection.Emit:
Sebastien Pouliot [Fri, 30 Oct 2009 20:12:20 +0000 (20:12 -0000)]
In System.Reflection.Emit:
2009-10-30  Sebastien Pouliot  <sebastien@ximian.com>

* MethodBuilder.cs: Add missing 'names' validations in
DefineGenericParameters

In Test/System.Reflection.Emit:
2009-10-30  Sebastien Pouliot  <sebastien@ximian.com>

* MethodBuilderTest.cs: Add (copy from TypeBuilderTest) test
cases for two DefineGenericParameters

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

14 years ago2009-10-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 30 Oct 2009 17:38:23 +0000 (17:38 -0000)]
2009-10-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* 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.

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

14 years ago2009-10-30 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 30 Oct 2009 15:58:33 +0000 (15:58 -0000)]
2009-10-30  Marek Habersack  <mhabersack@novell.com>

* PasswordRecovery.cs: mail message replacements should include <%
Password %> and <% UserName %> and matching should be
case-insensitive. Fixes bug #545370

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

14 years ago2009-10-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 30 Oct 2009 15:19:05 +0000 (15:19 -0000)]
2009-10-30  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_cleanup): Call profiler shutdown before shutting down the
runtime. Fixes #551228.

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

14 years ago2009-10-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 30 Oct 2009 15:04:29 +0000 (15:04 -0000)]
2009-10-30  Sebastien Pouliot  <sebastien@ximian.com>

* MonoMethod.cs: Remove CAS check in MonoCMethod.Invoke (just
like it was done for MonoMethod.Invoke sister method)

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

14 years ago2009-10-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 30 Oct 2009 15:02:31 +0000 (15:02 -0000)]
2009-10-30  Sebastien Pouliot  <sebastien@ximian.com>

* MonoType.cs: Don't pass null value to icalls
GetCorrespondingInflated[Constructor|Method]

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

14 years ago2009-10-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 30 Oct 2009 14:48:29 +0000 (14:48 -0000)]
2009-10-30  Marek Safar  <marek.safar@gmail.com>

* Makefile: Add System.Windows.Forms.DataVisualization

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

14 years ago2009-10-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 30 Oct 2009 14:39:44 +0000 (14:39 -0000)]
2009-10-30 Marek Safar  <marek.safar@gmail.com>

* SecurityRuleSet.cs, SecurityRulesAttribute.cs: Implemented.

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

14 years agoMore tests.
Marek Safar [Fri, 30 Oct 2009 13:32:29 +0000 (13:32 -0000)]
More tests.

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

14 years ago2009-10-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 30 Oct 2009 13:31:06 +0000 (13:31 -0000)]
2009-10-30  Marek Safar  <marek.safar@gmail.com>

* CSharpBinder.cs, CSharpInvokeMemberBinder.cs,
CSharpSetIndexBinder.cs: Simple member binder.

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

14 years ago2009-10-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 30 Oct 2009 13:29:03 +0000 (13:29 -0000)]
2009-10-30  Marek Safar  <marek.safar@gmail.com>

* dynamic.cs, convert.cs, assign.cs, constant.cs, expression.cs,
codegen.cs: Unary mutator on dynamic member access expression.

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

14 years ago* DataContractJsonSerializer.cs: SL accepts keys without "", so tweak
Andreia Gaita [Fri, 30 Oct 2009 02:23:40 +0000 (02:23 -0000)]
* DataContractJsonSerializer.cs: SL accepts keys without "", so tweak
the data to fix the quotes before passing it to the deserializer

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

14 years ago2009-10-30 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Fri, 30 Oct 2009 01:07:18 +0000 (01:07 -0000)]
2009-10-30  Veerapuram Varadhan  <vvaradhan@novell.com>

** Fixes 448296
* DataTable (Clear): Do not raise TableClearing/Cleared events as
they will be raised from DataRowCollection.Clear().  New utility methods
for raising TableClearing/TableCleared events from outside DataTable.
Don't manually reset indexes as ResetIndexes is called from
DataRowCollection.Clear
* DataRowCollection (Clear): Raise TableClearing/Cleared events accordingly.

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

14 years ago2009-10-30 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 30 Oct 2009 00:52:53 +0000 (00:52 -0000)]
2009-10-30  Marek Habersack  <mhabersack@novell.com>

* HttpRequest.cs: added internal property ClientFilePath, which
may have a different value than FilePath when virtual path has
been rewritten, but the caller specified that the client paths
should still be constructed using the original url.

* HttpContext.cs: RewritePath always sets Request.FilePath,
Request.ClientFilePath is set only when setClientFilePath is
true. This makes client urls work correctly when url rewriting is
being used.

2009-10-30  Marek Habersack  <mhabersack@novell.com>

* Control.cs: ResolveClientUrl takes base path from
Request.ClientFilePath, so that it works correctly for rewritten
urls.

2009-10-30  Marek Habersack  <mhabersack@novell.com>

* HtmlForm.cs: action is built using Request.ClientFilePath
(instead of Request.FilePath) and ResolveClientUrl, so that it's
correct even if url rewriting is being used.

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

14 years ago2009-10-29 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 29 Oct 2009 20:50:26 +0000 (20:50 -0000)]
2009-10-29  Veerapuram Varadhan  <vvaradhan@novell.com>

** Fixes 332875 - based on analysis by Ben Martin <ben@trustorm.com.au>
* XmlSchemaDataImporter.cs (AddParentKeyColumn): If a table already has a
PrimaryKey column defined, when called again, fill the PKCol data into the
passed DataColumn and return.

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

14 years agorename
Jonathan Pobst [Thu, 29 Oct 2009 20:18:16 +0000 (20:18 -0000)]
rename

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

14 years ago2009-10-29 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 29 Oct 2009 20:16:15 +0000 (20:16 -0000)]
2009-10-29  Jonathan Pobst  <monkey@jpobst.com>

* System.Windows.Forms.DataVisualization.sources: Add consts.cs and MonoTODO.cs.

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

14 years ago2009-10-29 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 29 Oct 2009 20:04:46 +0000 (20:04 -0000)]
2009-10-29  Jonathan Pobst  <monkey@jpobst.com>

- Commit Makefile and .sources.

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

14 years ago2009-10-29 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 29 Oct 2009 18:32:14 +0000 (18:32 -0000)]
2009-10-29  Veerapuram Varadhan  <vvaradhan@novell.com>

** Fixes #322695
* OracleParameter.cs: Use oracle returned rsize instead of
MAXBYTECOUNT.  Reduces the size of allocated buffer.

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

14 years ago2009-10-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 29 Oct 2009 18:31:38 +0000 (18:31 -0000)]
2009-10-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolTip.cs: ShowAlways works at the form level, not at the control
level. Fixes #544565.

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

14 years ago2009-10-29 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 29 Oct 2009 14:26:10 +0000 (14:26 -0000)]
2009-10-29  Mark Probst  <mark.probst@gmail.com>

        * mono-hash.c (mono_g_hash_mark): Don't use SET_NODE_KEY/VALUE here.

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

14 years agoIn Test/System.Globalization:
Sebastien Pouliot [Thu, 29 Oct 2009 14:11:53 +0000 (14:11 -0000)]
In Test/System.Globalization:
2009-10-29  Sebastien Pouliot  <sebastien@ximian.com>

* CompareInfoTest.cs: Add test cases to validate parameters

In System.Globalization:
2009-10-29  Sebastien Pouliot  <sebastien@ximian.com>

* CompareInfo.cs: Add/fix CompareOptions validations. Reduce code
duplication in Compare methods (wrt CompareOptions). Fix
calculation bug in Compare(string,int.string,int,CompareOptions).

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

14 years ago2009-10-29 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 29 Oct 2009 13:08:26 +0000 (13:08 -0000)]
2009-10-29  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_output_basic_block): Fix % 1. Fixes #550970.

* basic.cs: Add a test.

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

14 years agoIn System.Reflection.Emit:
Sebastien Pouliot [Thu, 29 Oct 2009 12:51:36 +0000 (12:51 -0000)]
In System.Reflection.Emit:
2009-10-29  Sebastien Pouliot  <sebastien@ximian.com>

* ModuleBuilder.cs: Add missing 'className' validations in GetType
* TypeBuilder.cs: Add missing 'names' validations in
DefineGenericParameters

In Test/System.Reflection.Emit:
2009-10-29  Sebastien Pouliot  <sebastien@ximian.com>

* ModuleBuilderTest.cs: Add test cases for GetType overloads
* TypeBuilderTest.cs: Remove NotWorking from two DefineGenericParameters test case.

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

14 years ago2009-10-29 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 29 Oct 2009 12:39:30 +0000 (12:39 -0000)]
2009-10-29  Veerapuram Varadhan  <vvaradhan@novell.com>

** Fixes #550960 - Patch by Stefano <stefano.sapienti@apsystems.it>
* DataTable.cs (BinarySerialize): Use datatype from DataColumn
instead of value of the column.

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

14 years ago2009-10-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 29 Oct 2009 12:09:47 +0000 (12:09 -0000)]
2009-10-29  Sebastien Pouliot  <sebastien@ximian.com>

* FileStream.cs: Reduce code duplication by merging FillBuffer
with FillBufferToStream

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

14 years ago2009-10-29 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 29 Oct 2009 12:08:47 +0000 (12:08 -0000)]
2009-10-29  Zoltan Varga  <vargaz@gmail.com>

* 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=/trunk/mono/; revision=145006

14 years ago2009-10-29 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 29 Oct 2009 10:49:19 +0000 (10:49 -0000)]
2009-10-29  Jb Evain  <jbevain@novell.com>

* ActivationServices.cs: avoid a static constructor.

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

14 years agoNew test.
Marek Safar [Thu, 29 Oct 2009 09:54:53 +0000 (09:54 -0000)]
New test.

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

14 years ago2009-10-29 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 29 Oct 2009 09:54:13 +0000 (09:54 -0000)]
2009-10-29  Marek Safar  <marek.safar@gmail.com>

A fix for bug #550580
* convert.cs: Don't eliminate explicit precission casts.

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

14 years ago2009-10-29 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 29 Oct 2009 02:02:12 +0000 (02:02 -0000)]
2009-10-29  Veerapuram Varadhan  <vvaradhan@novell.com>

        ** Fixes #321718
* OciCalls.cs: Add stub for OCILobCharSetForm to get the charset
        form associated with a CLOB/NCLOB.

        * OciLobLocator.cs: Add Environment handle property that is
        required to call OCILobCharSetForm and pass the output value to
OCILobRead.

        * OciDefineHandler.cs: Update Environment property of
        OCILobLocator.

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

14 years ago2009-10-28 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 28 Oct 2009 18:39:52 +0000 (18:39 -0000)]
2009-10-28  Lluis Sanchez Gual  <lluis@novell.com>

* 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=/trunk/mcs/; revision=144962

14 years agoNew tests.
Marek Safar [Wed, 28 Oct 2009 18:04:48 +0000 (18:04 -0000)]
New tests.

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

14 years agoWorkaround strange repl behaviour
Marek Safar [Wed, 28 Oct 2009 18:04:35 +0000 (18:04 -0000)]
Workaround strange repl behaviour

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

14 years ago2009-10-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 28 Oct 2009 18:00:22 +0000 (18:00 -0000)]
2009-10-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* 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 <surfzoid@gmail.com>.

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

14 years ago2009-10-28 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 28 Oct 2009 16:26:41 +0000 (16:26 -0000)]
2009-10-28  Marek Safar  <marek.safar@gmail.com>

A fix for bug #550404

* parameter.cs, iterators.cs, context.cs, anonymous.cs,
expression.cs, statement.cs, ecore.cs: Quote any nested expression
tree.

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

14 years ago2009-10-28 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 28 Oct 2009 15:57:18 +0000 (15:57 -0000)]
2009-10-28  Mark Probst  <mark.probst@gmail.com>

        * gc-internal.h, boehm-gc, sgen-gc.c, null-gc: Add
        mono_gc_get_suspend_signal(), which returns the suspend signal
        number used by the GC.

2009-10-28  Mark Probst  <mark.probst@gmail.com>

        * mini-posix.c (add_signal_handler): Use
        mono_gc_get_suspend_signal() instead of GC_get_suspend_signal().

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

14 years agoContributed under the terms of the MIT/X11 license by
Jerri Maine [Wed, 28 Oct 2009 14:51:08 +0000 (14:51 -0000)]
Contributed under the terms of the MIT/X11 license by
Jerry Maine <crashfourit@gail.com>.

* mini-x86.c (mono_arch_cpu_enumerate_simd_versions): Added code to detect
sse4a for simd intrinsics.

* mini-amd64.c (mono_arch_cpu_enumerate_simd_versions): Added code to detect
sse4a for simd intrinsics.

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

14 years ago2009-10-28 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 28 Oct 2009 14:01:21 +0000 (14:01 -0000)]
2009-10-28  Marek Habersack  <mhabersack@novell.com>

* ListControl.cs: OnDataBinding must call base implementation
before performing the binding, so that DataSource can be assigned
from within the handler.

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

14 years ago2009-10-28 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 28 Oct 2009 13:42:05 +0000 (13:42 -0000)]
2009-10-28  Sebastien Pouliot  <sebastien@ximian.com>

* 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)

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

14 years agosp.PropertyType is a _type_, ugh
Marek Habersack [Wed, 28 Oct 2009 10:37:19 +0000 (10:37 -0000)]
sp.PropertyType is a _type_, ugh

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

14 years ago2009-10-28 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 28 Oct 2009 10:19:17 +0000 (10:19 -0000)]
2009-10-28  Marek Habersack  <mhabersack@novell.com>

* Tokenizer.cs, Parser.jay: a work around for 3 reduce/reduce
conflicts (use of 'NOT LIKE' and 'NOT IN' which would previously
be ignored because of the conflicts). The grammar still has 6 more
of those - the real fix is to rewrite it.

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

14 years ago2009-10-27 Joerg Rosenkranz <joergr@voelcker.com>
Joerg Rosenkranz [Wed, 28 Oct 2009 08:36:34 +0000 (08:36 -0000)]
2009-10-27 Joerg Rosenkranz  <joergr@voelcker.com>

* OciCalls.cs: Wrong function name in trace.

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

14 years agoIn System:
Sebastien Pouliot [Tue, 27 Oct 2009 23:42:55 +0000 (23:42 -0000)]
In System:
2009-10-27  Sebastien Pouliot  <sebastien@ximian.com>

* 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.

In Test/System.Text:
2009-10-27  Sebastien Pouliot  <sebastien@ximian.com>

* 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).

In Test/System:
2009-10-27  Sebastien Pouliot  <sebastien@ximian.com>

* StringTest.cs: Add test case for methods that can return
empty strings.

In System.Globalization:
2009-10-27  Sebastien Pouliot  <sebastien@ximian.com>

* TextInfo.cs: Avoid allocating zero-length strings in ToLower
and ToUpper methods

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

14 years agoadd lc to spec
Andrew Jorgensen [Tue, 27 Oct 2009 21:14:41 +0000 (21:14 -0000)]
add lc to spec

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

14 years ago2009-10-28 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Tue, 27 Oct 2009 20:18:37 +0000 (20:18 -0000)]
2009-10-28  Veerapuram Varadhan  <vvaradhan@novell.com>

** 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 RowUpdatingEventHandlers.

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

14 years ago2009-10-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 27 Oct 2009 19:20:25 +0000 (19:20 -0000)]
2009-10-27  Zoltan Varga  <vargaz@gmail.com>

* ir-emit.h method-to-ir.c: Change a few _IMM macros to assign to inst_imm
instead of inst_p1 which is not the same on ILP32 platforms.

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

14 years ago2009-10-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 27 Oct 2009 18:49:41 +0000 (18:49 -0000)]
2009-10-24  Zoltan Varga  <vargaz@gmail.com>

* mini-ppc.c (mono_arch_emit_prolog): Load the current got address,
not the mscorlib one before calling mono_get_lmf_addr.

* tramp-ppc.c (mono_arch_create_trampoline_code_full): Fix the storing
of the ip to the LMF.

* method-to-ir.c (mono_method_to_ir): Fix the handling of the
immediate in the op->op_imm optimization.

* mini-ppc.c: Add a 'vtregs' field to ArgInfo to make the code easier to
understand. VTypes now work, but are not abi compliant, as they are
split into 4 byte parts instead of 8.
(emit_memcpy): Fix the unrolled case to work on the PS3.

* mini-ppc.c (get_delegate_invoke_impl): Fix this for the PS3.

* aot-compiler.c (mono_compile_assembly): Make the autoreg option
the default when static linking.

* mini-ppc.c (mono_arch_emit_prolog): Fix handling of I8 arguments.

* aot-compiler.c: Add an autoreg option to automatically register
statically linked aot modules using ELF .ctors.

* genmdesc.pl: Add __ppc64__ to allowed defines.

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

14 years ago2009-10-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 27 Oct 2009 18:49:34 +0000 (18:49 -0000)]
2009-10-27  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Add support for cross-compiling to ppc.

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

14 years agoCS1526 error recovery
Marek Safar [Tue, 27 Oct 2009 16:43:30 +0000 (16:43 -0000)]
CS1526 error recovery

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

14 years ago2009-10-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 27 Oct 2009 16:37:05 +0000 (16:37 -0000)]
2009-10-27  Marek Safar  <marek.safar@gmail.com>

* GenericTypeParameterBuilder.cs: Attributes work under NET_4_0.

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

14 years agoHave to step back here
Marek Safar [Tue, 27 Oct 2009 13:36:55 +0000 (13:36 -0000)]
Have to step back here

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

14 years ago2009-10-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 27 Oct 2009 13:36:26 +0000 (13:36 -0000)]
2009-10-27  Marek Safar  <marek.safar@gmail.com>

* constant.cs, nullable.cs: Create nullable-null as LiftedNull
constant.

* class.cs: Allow nullable binary user operators.

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

14 years ago2009-10-27 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 27 Oct 2009 13:10:34 +0000 (13:10 -0000)]
2009-10-27  Marek Habersack  <mhabersack@novell.com>

* ProfileBase.cs: CreateSettingsProperty sets the returned
property's DefaultValue to String.Empty if no default is specified
through the DefaultSettingValue attribute and the associated
property type is String.

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