* 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 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
* 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
* 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
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
* 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
* 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
* 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-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
* 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
* 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-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
* 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
* 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
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
* 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
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
* 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-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
* 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-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
* 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
* 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
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
* 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
* 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
* 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
* 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 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
* 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
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* Makefile: Remove the MOON_A11Y_INTERNAL_HACK define
for MoonAtkBridge after audit finished r147098.
svn path=/branches/mono-2-6/mcs/; revision=147102
* 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
* 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
* 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
* 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
* 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
* 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 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 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
* 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
* 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
* 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-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
* 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
* 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
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
* 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
* 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 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 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
(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
* 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
* 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
* 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
* 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
* 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
* 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
* 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-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
[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
* 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
* 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-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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* debugger-agent.c (buffer_add_cattrs): Fix reading an uninitialized variable
when handling named arguments.
svn path=/branches/mono-2-6/mono/; revision=145652
*: 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
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
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
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
* 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
* 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
* HttpsTransportBindingElement.cs: Implement basic https transport
binding support for Moonlight and MonoTouch
svn path=/branches/mono-2-6/mcs/; revision=145558
* 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
* 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
* 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
* 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
* 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
* 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
* 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 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
* 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
* 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-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
* 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 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
* 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
* 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
* 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-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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
* 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
* 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
* 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
* MethodBuilderTest.cs: Add (copy from TypeBuilderTest) test
cases for two DefineGenericParameters
[Backport r145118]
svn path=/branches/mono-2-6/mcs/; revision=145120
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
** 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-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
* 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
* InterlockedTest.cs: Add test case for generic methods
CompareExchange and Exchange
[Backport r144840]
svn path=/branches/mono-2-6/mcs/; revision=144842
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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* CodeNamespaceImportCollection.cs: Properly update the internal
keys hashtable when there are changes in the items.
svn path=/branches/mono-2-6/mcs/; revision=144651
* 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
* 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
* 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
* SerializationMap.cs, KnownTypeCollection.cs: avoid using LINQ
on arrays as MonoTouch has issues with them.
svn path=/branches/mono-2-6/mcs/; revision=144550
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
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
* 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 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
* 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
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
* 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
* 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
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
* 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-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
* 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
* 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
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
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
* 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
* 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 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
* 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
* 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
* 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
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
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
* 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 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
* Decimal.cs: Use Compare method instead of directly using the
decimalCompare internal call.
[Backport r143554]
svn path=/branches/mono-2-6/mcs/; revision=143555
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
* 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
* BuildManager.cs: load/set the global resources assembly for
precompiled and merged sites correctly.
svn path=/branches/mono-2-6/mcs/; revision=143094
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
* 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
[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
* 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
* 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
* 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
* 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
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
* 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
* 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
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
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
* 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
* 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
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
* Mono.Cecil/BaseAssemblyResolver.cs: Search GACs specified in the
Loaded 100 of 1214 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.