mono.git
16 years ago * mono-profiler-oprofile.c: First code drop of new logging profiler.
Massimiliano Mantione [Mon, 7 Jan 2008 15:10:41 +0000 (15:10 -0000)]
* mono-profiler-oprofile.c: First code drop of new logging profiler.
* Makefile.am: Added logging profiler, but commented in out to avoid
breaking the build on Windows.

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

16 years agoScriptManager implements IScriptManager interface
Igor Zelmanovich [Mon, 7 Jan 2008 14:32:14 +0000 (14:32 -0000)]
ScriptManager implements IScriptManager interface
and register itself with page with appropriate key

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

16 years ago2008-01-07 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 7 Jan 2008 14:24:43 +0000 (14:24 -0000)]
2008-01-07 Igor Zelmanovich <igorz@mainsoft.com>

* Page.cs: added internal API
* IScriptManager.cs: added new internal interface.

2007-01-07 Igor Zelmanovich <igorz@mainsoft.com>

* BaseCompareValidator.cs:
* BaseValidator.cs:
* CompareValidator.cs:
* CustomValidator.cs:
* RangeValidator.cs:
* RegularExpressionValidator.cs:
* RequiredFieldValidator.cs:
refactoring: If page contents instance of IScriptManager, validators call
it's API instead Page.ClientScript.

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

16 years agofixed CreateActionUrl
Igor Zelmanovich [Mon, 7 Jan 2008 14:06:27 +0000 (14:06 -0000)]
fixed CreateActionUrl

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

16 years ago2008-01-07 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 7 Jan 2008 13:38:38 +0000 (13:38 -0000)]
2008-01-07 Igor Zelmanovich <igorz@mainsoft.com>

* ClientScriptManager.cs:
* Control.jvm.cs:
* Page.cs:
* Page.jvm.cs:
for TARGET_J2EE ensure page life cycle is completed in CrossPagePostBack.

2007-01-07 Igor Zelmanovich <igorz@mainsoft.com>

* Button.cs:
* ImageButton.cs:
* LinkButton.cs:
for TARGET_J2EE used CreateActionUrl instead ResolveClientUrl
in GetPostBackOptions.

2007-01-07 Igor Zelmanovich  <igorz@mainsoft.com>

* HtmlForm.cs: refactoring.

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

16 years agouse ClassLoader.getResourceAsStream instead of ClassLoader.getResource for checking...
Konstantin Triger [Mon, 7 Jan 2008 13:36:15 +0000 (13:36 -0000)]
use ClassLoader.getResourceAsStream instead of ClassLoader.getResource for checking resource presence to remove leaks

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

16 years ago2008-01-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jan 2008 13:18:32 +0000 (13:18 -0000)]
2008-01-07  Zoltan Varga  <vargaz@gmail.com>

* boehm-gc.c (mono_gc_deregister_root): Fix win32 build.

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

16 years ago2008-01-07 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 7 Jan 2008 13:06:33 +0000 (13:06 -0000)]
2008-01-07  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Cil/CilWorker.cs:
Allow ldarg.s/ldloc.s/stloc.s to take a byte
instead of the actual parameter or variable. Fix #350606.

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

16 years ago2008-01-07 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 7 Jan 2008 13:00:59 +0000 (13:00 -0000)]
2008-01-07  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/ArrayType.cs:
Add a constructor with the array rank. Fix #351924.
Based on a patch by Rolf Kvinge <rkvinge@novell.com>.

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

16 years agointroduce new API IsProcessingInclude()
Igor Zelmanovich [Mon, 7 Jan 2008 12:33:04 +0000 (12:33 -0000)]
introduce new API IsProcessingInclude()

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

16 years ago2008-01-07 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 7 Jan 2008 11:50:21 +0000 (11:50 -0000)]
2008-01-07  Marek Habersack  <mhabersack@novell.com>

* CachingCompiler.cs: added an overload to the Compile method
which accepts a flag whether or not to include debug information
in the generated assembly.
2008-01-07  Marek Habersack  <mhabersack@novell.com>

* TemplateParser.cs: handle legacy 'src' attribute in the 2.0
profile in the correct way. Fixes bug #319016
BaseType is global by default.

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

16 years ago2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 7 Jan 2008 09:51:23 +0000 (09:51 -0000)]
2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListControlTest.cs: New SelectedValue property test.

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

16 years ago2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 7 Jan 2008 09:45:51 +0000 (09:45 -0000)]
2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListControl.cs: SelectedValue should return a null value if
SelectedIndex is -1. Also, when setting it, it should throw an
ArgumentNullException if the value is null, as well as taking
into account the String.Empty value, instead of ignoring it (we have
tests for that now).
Fixes part of #324286.

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

16 years ago* Mono.Mozilla/DOM/Navigation.cs: Fix calls to the nsIWebNavigation
Andreia Gaita [Mon, 7 Jan 2008 03:48:49 +0000 (03:48 -0000)]
* Mono.Mozilla/DOM/Navigation.cs: Fix calls to the nsIWebNavigation
interface (case change from being generated through xpidl2cs. that's what
I get for merging in batches :/ )

2008-01-07  Andreia Gaita <avidigal@novell.com>

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

16 years ago* Mono.Mozilla/Base.cs: Add GetProxyForObject method to create proxies
Andreia Gaita [Mon, 7 Jan 2008 03:36:23 +0000 (03:36 -0000)]
* Mono.Mozilla/Base.cs: Add GetProxyForObject method to create proxies
for mozilla objects.
Remove trace listener.

2008-01-07  Andreia Gaita <avidigal@novell.com>

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

16 years ago* Mono.Mozilla/interfaces/nsIDOMRange.cs,
Andreia Gaita [Mon, 7 Jan 2008 03:25:50 +0000 (03:25 -0000)]
* Mono.Mozilla/interfaces/nsIDOMRange.cs,
  Mono.Mozilla/interfaces/nsIDOMDocumentRange.cs:
Added to get the content of elements.

* Mono.Mozilla/interfaces/*.cs: Regenerated with the xpidl2cs.pl script.
Add helper class to create a proxy for all native mozilla interfaces.

* Mono.Mozilla/interfaces/extras/: classes for the mozilla interfaces that
don't get generated automatically, like enums, delegates, etc.

* Mono.Mozilla/interfaces/extras/nsIWriteSegmentFun.cs:
Delegate callback for a writer function for mozilla streams
(nsIInputStream.readSegments)

* Mono.Mozilla/interfaces/extras/Options.cs: Enum for nsIWebNavigation.stop

2008-01-07  Andreia Gaita <avidigal@novell.com>

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

16 years ago2008-01-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jan 2008 22:25:02 +0000 (22:25 -0000)]
2008-01-06  Zoltan Varga  <vargaz@gmail.com>

* FileTest.cs: Rename a helper method so it does not begin with Test.

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

16 years ago2008-01-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jan 2008 22:04:05 +0000 (22:04 -0000)]
2008-01-06  Zoltan Varga  <vargaz@gmail.com>

* ListTest.cs: Make some tests public.

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

16 years ago2008-01-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jan 2008 21:42:00 +0000 (21:42 -0000)]
2008-01-06  Zoltan Varga  <vargaz@gmail.com>

* appdomain.c (ves_icall_System_AppDomain_ExecuteAssembly): Change signature to
match managed version.

* appdomain.c: Bump corlib version.

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

16 years ago2008-01-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jan 2008 21:40:52 +0000 (21:40 -0000)]
2008-01-06  Zoltan Varga  <vargaz@gmail.com>

* AppDomain.cs: Move the assembly loading in ExecuteAssembly and
ExecuteAssemblyByName to managed to as said by the MSDN docs. Fixes #350530.

* Environment.cs: Bump corlib version.

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

16 years ago2008-01-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jan 2008 20:42:52 +0000 (20:42 -0000)]
2008-01-06  Zoltan Varga  <vargaz@gmail.com>

* appdomain.c (ves_icall_System_AppDomain_ExecuteAssembly): Check for a null
argument.

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

16 years ago2008-01-06 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sun, 6 Jan 2008 18:00:26 +0000 (18:00 -0000)]
2008-01-06  Ivan N. Zlatev  <contact@i-nz.net>

        * ServiceContainer.cs: Check DefaultServices in GetService in 2.0.
        * MenuCommand.cs: Invoke (args) should call Invoke () and leave
        args handling for subclasses.
        * ServiceContainerTest.cs: Test that DefaultServices is checked in
        GetService in 2.0.

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

16 years ago* AssemblyBuilderTest.cs: Added (NotWorking) test for bug #351932.
Gert Driesen [Sun, 6 Jan 2008 17:34:42 +0000 (17:34 -0000)]
* AssemblyBuilderTest.cs: Added (NotWorking) test for bug #351932.

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

16 years agofixed RegisterScriptDescriptors and RegisterScriptReference
Igor Zelmanovich [Sun, 6 Jan 2008 17:11:40 +0000 (17:11 -0000)]
fixed RegisterScriptDescriptors and RegisterScriptReference

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

16 years ago* AssemblyNameTest.cs: Improved tests for ProcessorArchictecture.
Gert Driesen [Sun, 6 Jan 2008 16:50:48 +0000 (16:50 -0000)]
* AssemblyNameTest.cs: Improved tests for ProcessorArchictecture.

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

16 years ago2008-01-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Sun, 6 Jan 2008 16:44:20 +0000 (16:44 -0000)]
2008-01-06  Jonathan Pobst  <monkey@jpobst.com>

* TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
SelectionStart is updated after pressing enter.  Fixes bug #351918.

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

16 years ago2008-01-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Sun, 6 Jan 2008 16:35:41 +0000 (16:35 -0000)]
2008-01-05  Jonathan Pobst  <monkey@jpobst.com>

* TextControl.cs: Revert a piece r92316 that prevented the fix
from working when there were multiple tags in the text box.
Fixes bug #351881.

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

16 years ago* icall.c (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies)
Gert Driesen [Sun, 6 Jan 2008 16:21:49 +0000 (16:21 -0000)]
* icall.c (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies)
Set public key token to zero-length byte array if assembly is not
strongnamed.

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

16 years ago2008-01-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 6 Jan 2008 15:39:22 +0000 (15:39 -0000)]
2008-01-06  Sebastien Pouliot  <sebastien@ximian.com>
* Assembly.cs: Fix typo in setter found with Gendarme (was used in a
single place, AppDomain, and set to true so it never caused a problem)

2008-01-04  Gert Driesen  <drieseng@users.sourceforge.net>

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

16 years agothe AppSettings collection's Add should behave as Set
Konstantin Triger [Sun, 6 Jan 2008 14:49:19 +0000 (14:49 -0000)]
the AppSettings collection's Add should behave as Set

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

16 years ago2007-01-06 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Sun, 6 Jan 2008 12:49:36 +0000 (12:49 -0000)]
2007-01-06 Igor Zelmanovich <igorz@mainsoft.com>

* DetailsView.cs: render invisible rows correct.

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

16 years ago2007-01-06 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Sun, 6 Jan 2008 12:45:15 +0000 (12:45 -0000)]
2007-01-06 Igor Zelmanovich <igorz@mainsoft.com>

* DataControlField.cs: prevent infinite recursion

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

16 years agotypo fix
Igor Zelmanovich [Sun, 6 Jan 2008 12:06:55 +0000 (12:06 -0000)]
typo fix

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

16 years ago2008-01-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jan 2008 11:13:47 +0000 (11:13 -0000)]
2008-01-06  Zoltan Varga  <vargaz@gmail.com>

* mono-hash.c: Don't include os/gc_wrapper.h.

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

16 years ago2008-01-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jan 2008 11:13:02 +0000 (11:13 -0000)]
2008-01-06  Zoltan Varga  <vargaz@gmail.com>

* mini.c driver.c: Don't include os/gc_wrapper.h.

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

16 years ago2008-01-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jan 2008 11:05:05 +0000 (11:05 -0000)]
2008-01-06  Zoltan Varga  <vargaz@gmail.com>

* Thread.cs (set_CurrentCulture): If the culture is read-only, cache the result
of serializing it.
(set_CurrentUICulture): Ditto.

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

16 years ago2008-01-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jan 2008 11:03:52 +0000 (11:03 -0000)]
2008-01-06  Zoltan Varga  <vargaz@gmail.com>

* CultureInfo.cs: Add a 'cached_serialized_form' field.

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

16 years agofixed exception handling for TARGET_J2EE
Igor Zelmanovich [Sun, 6 Jan 2008 10:19:09 +0000 (10:19 -0000)]
fixed exception handling for TARGET_J2EE

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

16 years agoadded missing resources
Igor Zelmanovich [Sun, 6 Jan 2008 10:17:14 +0000 (10:17 -0000)]
added missing resources

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

16 years ago* typemanager.cs: On 2.0 profile, GetPublicKeyToken returns an empty
Gert Driesen [Sun, 6 Jan 2008 09:51:44 +0000 (09:51 -0000)]
* typemanager.cs: On 2.0 profile, GetPublicKeyToken returns an empty
byte array for unsigned "baked" assemblies.
* gcs0281.cs: Modified expected error message now that fix for bug
#315057 has been applied.

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

16 years agoadded #if TARGET_DOTNET
Igor Zelmanovich [Sun, 6 Jan 2008 08:14:55 +0000 (08:14 -0000)]
added #if TARGET_DOTNET

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

16 years agoadded #if TARGET_DOTNET
Igor Zelmanovich [Sun, 6 Jan 2008 08:11:36 +0000 (08:11 -0000)]
added #if TARGET_DOTNET

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

16 years ago2008-01-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jan 2008 01:27:44 +0000 (01:27 -0000)]
2008-01-06  Zoltan Varga  <vargaz@gmail.com>

* CultureInfo.cs NumberFormatInfo.cs DateTimeFormatInfo.cs TextInfo.cs: Make
sure the components of a read-only culture object are read-only as well.

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

16 years ago2008-01-06 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sun, 6 Jan 2008 00:13:28 +0000 (00:13 -0000)]
2008-01-06  Marek Habersack  <mhabersack@novell.com>

* ApplicationHost.cs: make sure that application with virtualDir
"/a" and physicalDir "/b" and the other way around get different
domain_id values

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

16 years ago2008-01-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Sat, 5 Jan 2008 21:55:13 +0000 (21:55 -0000)]
2008-01-05  Jonathan Pobst  <monkey@jpobst.com>

* TextControl.cs: Apply patch from Luke Page that prevents an
NRE when determining the beginning of a paragraph.
Fixes bug #351886.

2008-01-05  Jonathan Pobst  <monkey@jpobst.com>

* RichTextBoxTest.cs: Add test for bug #351886.

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

16 years agoFixed year.
Gert Driesen [Sat, 5 Jan 2008 21:51:24 +0000 (21:51 -0000)]
Fixed year.

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

16 years ago* codegen.cs: AssemblyName.GetPublicKey returns a zero-length byte
Gert Driesen [Sat, 5 Jan 2008 21:45:14 +0000 (21:45 -0000)]
* codegen.cs: AssemblyName.GetPublicKey returns a zero-length byte
array for assemblies that are not strongnamed.

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

16 years ago2008-01-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Sat, 5 Jan 2008 21:39:30 +0000 (21:39 -0000)]
2008-01-05  Jonathan Pobst  <monkey@jpobst.com>

* TextBoxBase.cs: Apply patch from Luke Page that ensures the
caret gets moved with clicking away from a selected block of
text.  Fixes bug #351885.

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

16 years ago2008-01-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Sat, 5 Jan 2008 21:32:44 +0000 (21:32 -0000)]
2008-01-05  Jonathan Pobst  <monkey@jpobst.com>

* TextControl.cs: Apply patch from Luke Page that takes line
alignment into account for mouse selection, so that center and
right aligned text can be selected.
Fixes bug #351881.

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 20:06:50 +0000 (20:06 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_System_Array_SetValueImpl): Use a write barrier when
writing a vtype array elem.

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

16 years ago* AssemblyBuilder.cs (UnprotectedGetName): Set the public key token
Gert Driesen [Sat, 5 Jan 2008 19:35:02 +0000 (19:35 -0000)]
* AssemblyBuilder.cs (UnprotectedGetName): Set the public key token
as well.
* AssemblyBuilderTest.cs: Improved existing AssemblyName related tests.
Enabled AssemblyName tests that previously failed.
* AssemblyNameCas.cs: Sync test methods with AssemblyNameTest.cs.
* AssemblyNameTest.cs: Removed AssertEqualsByteArrays method since
NUnit supports this out-of-the-box. Use more meaningful names for
some existing tests. Improved existing tests and added lots more.
Enabled tests that were previously failing.  Fixed and improved
tests for public key; the original "public key" was actually a
key pair.
* AssemblyName.cs: Fixed default value for ProcessorArchitecture to
match MS. On 2.0 profile, return zero-length in FullName is no name
is set, and throw a SecurityException in FullName and GetPublicKeyToken
if a public key is set with no corresponding public key token.
Fixed FullName to also include PublicKeyToken spec with "null" value
if public key is empty byte array. Fixed corlib part of bug #351057.
In SetPublicKey, modify Flags accordingly. On the 2.0 profile, verify
the public key when the public key token is computed.

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

16 years ago* assembly.c (build_assembly_name): return FALSE if length of token is
Gert Driesen [Sat, 5 Jan 2008 19:34:43 +0000 (19:34 -0000)]
* assembly.c (build_assembly_name): return FALSE if length of token is
not 16 (if not "null").
(mono_assembly_name_parse_full): return FALSE if value of version,
culture, token or key is 0.
* icall.c (fill_reflection_assembly_name): add boolean arguments to
specify whether public key and public key token must be set to default
value (zero-length byte array) if not available. Set versioncompat to
SameMachine. If public key is available or the default is set, then
set PublicKey flag.
(ves_icall_System_Reflection_Assembly_FillName): if no public key
is available, use empty byte array as default value. On the 2.0
profile, use default value for public key token if not set.
(ves_icall_System_Reflection_InternalGetAssemblyName): on the 1.0
profile, use default value for public key if not set. On the 2.0
profile, use default value for public key token if not set.
(ves_icall_System_Reflection_AssemblyName_ParseName): do not set
default values for public key and public key token.

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 19:05:06 +0000 (19:05 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am (DIST_SUBDIRS): Use $(eglib_dir) instead of eglib to
fix make dist.

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 17:42:28 +0000 (17:42 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* object-internals.h (MonoReflectionAssemblyName): Add 'processor_architecture'
field to keep it in synch with the managed object.

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

16 years ago2008-01-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Sat, 5 Jan 2008 17:34:13 +0000 (17:34 -0000)]
2008-01-05  Jonathan Pobst  <monkey@jpobst.com>

* RichTextBox.cs: Apply patch from Luke Page that fixes some caret
issues after loading an RTF file by using the correct line feeds.
Fixes bug #351841.

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 17:30:34 +0000 (17:30 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (emit_marshal_object): Add support for byref marshalling of
delegates. Fixes #351520.

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

16 years ago2008-01-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Sat, 5 Jan 2008 17:23:40 +0000 (17:23 -0000)]
2008-01-05  Jonathan Pobst  <monkey@jpobst.com>

* TextControl.cs: When deleting multiple line selections, we need
to invalidate every line beginning at the first line of the selection.
Patch from Luke Page fixes bug #351791.

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

16 years ago2008-01-05 Andreas Faerber <andreas.faerber@web.de>
Andreas Färber [Sat, 5 Jan 2008 16:40:38 +0000 (16:40 -0000)]
2008-01-05  Andreas Faerber  <andreas.faerber@web.de>

* configure.in: Add support for building with eglib and VPATH.
Fixes #351893.

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

16 years ago2008-01-05 Andreas Faerber <andreas.faerber@web.de>
Andreas Färber [Sat, 5 Jan 2008 15:31:59 +0000 (15:31 -0000)]
2008-01-05  Andreas Faerber  <andreas.faerber@web.de>

* configure.in: Define eglib_dir.
* Makefile.am: Add eglib to subdirectory lists.

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 15:03:28 +0000 (15:03 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* sgen-gc.c (conservatively_pin_objects_from): Tell valgrind that the pin queue
contains defined memory.

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 15:00:17 +0000 (15:00 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* sgen-gc.c: Fix 64 bit warnings. Fix some typos. Update GC stats in mono_stats.

* sgen-gc.c (build_nursery_fragments): Handle half-constructed objects correctly.

* sgen-gc.c (check_consistency): New helper function to do a consistency check
of the GC data structures.

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 14:31:15 +0000 (14:31 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* mini.c (print_jit_stats): Print GC statistics if available.

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 14:30:11 +0000 (14:30 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* gc_wrapper.h: Move the REGISTER/UNREGISTER macros to metadata/gc-internal.h.

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 14:29:39 +0000 (14:29 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* gc-internal.h: Moved the REGISTER/UNREGISTER macros here from os/gc_wrapper.h.

* *.c: Include metadata/gc-internal.h instead of os/gc_wrapper.h.

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 14:27:49 +0000 (14:27 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* gc_wrapper.h: Move the REGISTER/UNREGISTER macros to metadata/gc-internal.h.

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 14:21:51 +0000 (14:21 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* object.c (mono_array_full_copy): Fix detection of whenever to use a write
barrier.
(mono_array_clone_in_domain): Ditto.
(mono_array_clone_in_domain): Ditto.

* threads.c (start_wrapper): Register the thread start argument as a GC root.
(cache_culture): Use a write barrier.

* icall.c (ves_icall_System_Array_SetValueImpl): Call a write barrier.
(ves_icall_get_property_info): Ditto.

* object.h (MONO_STRUCT_SETREF): New macro.

* class-internals.h (MonoStats): Add some GC statistics.

* boehm-gc.c null-gc.c: Define mono_gc_deregister_root ().

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 14:16:06 +0000 (14:16 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* gc_wrapper.h (MONO_GC_UNREGISTER_ROOT): New macro.

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

16 years ago2008-01-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Jan 2008 13:14:02 +0000 (13:14 -0000)]
2008-01-05  Zoltan Varga  <vargaz@gmail.com>

* gc_wrapper.h: Include <stdlib.h> to fix the --with-gc=none build. Fixes
#351635.

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

16 years ago * map.h, map.c: Flush; add new ST_NOEXEC, ST_REMOUNT, and ST_BIND MountFlags
Jonathan Pryor [Sat, 5 Jan 2008 12:31:40 +0000 (12:31 -0000)]
* map.h, map.c: Flush; add new ST_NOEXEC, ST_REMOUNT, and ST_BIND MountFlags
  enumeration values.

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

16 years ago * Syscall.cs: Add ST_NOEXEC, ST_REMOUNT, ST_BIND to MountFlags. Patch from
Jonathan Pryor [Sat, 5 Jan 2008 12:29:39 +0000 (12:29 -0000)]
* Syscall.cs: Add ST_NOEXEC, ST_REMOUNT, ST_BIND to MountFlags.  Patch from
  Joe Dluzen <jdluzen@gmail.com>.

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

16 years ago2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 5 Jan 2008 03:58:39 +0000 (03:58 -0000)]
2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListControl.cs: When getting a CurrencyManager.PositionChanged
event, don't set SelectedIndex if the number of items is 1. This is
because, for the first item, PositionChanged is fired _before_
ItemChanged (the place where we actually populate the items), and
leave us in a temporary invalid state (since items collection is
empty).
Fixes #349655.

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

16 years ago2008-01-04 Geoff Norton <gnorton@novell.com>
Geoff Norton [Fri, 4 Jan 2008 22:47:42 +0000 (22:47 -0000)]
2008-01-04  Geoff Norton  <gnorton@novell.com>

        * XplatUICarbon.cs:  Create native toolwindows instead of
        the managed drawing ones.

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

16 years ago2008-01-04 Geoff Norton <gnorton@novell.com>
Geoff Norton [Fri, 4 Jan 2008 22:44:31 +0000 (22:44 -0000)]
2008-01-04  Geoff Norton  <gnorton@novell.com>

        * Enums.cs: Fix a typo
        * MouseHandler.cs:  Send NC events in global coordinates.

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

16 years ago2008-01-04 Andreas Faerber <andreas.faerber@web.de>
Andreas Färber [Fri, 4 Jan 2008 22:40:38 +0000 (22:40 -0000)]
2008-01-04  Andreas Faerber  <andreas.faerber@web.de>

* exception.c (mono_exception_from_name_two_strings):
Break from loop after method is found.

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

16 years ago2008-01-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Jan 2008 20:28:30 +0000 (20:28 -0000)]
2008-01-04  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_allocate_vars): Align argument storage offsets to 8.

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

16 years ago2008-01-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 4 Jan 2008 20:26:26 +0000 (20:26 -0000)]
2008-01-03  Jonathan Pobst  <monkey@jpobst.com>

* LineTag.cs: If the line doesn't have any characters, return
0 for GetCharIndex.  Fixes an AOORE exception after certain
caret movements.  Fixes bug #351683.

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

16 years ago2008-01-04 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 4 Jan 2008 17:48:46 +0000 (17:48 -0000)]
2008-01-04  Marek Safar  <marek.safar@gmail.com>

A test for bug #351481

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

16 years agoNew test.
Marek Safar [Fri, 4 Jan 2008 17:48:00 +0000 (17:48 -0000)]
New test.

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

16 years ago2008-01-04 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 4 Jan 2008 17:47:48 +0000 (17:47 -0000)]
2008-01-04  Marek Safar  <marek.safar@gmail.com>

A fix for bug #351481
  * expression.cs (MemberAccess.ResolveNamespaceOrType): Use correct
  declaring type for nested generic types.

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

16 years agoNew test
Marek Safar [Fri, 4 Jan 2008 15:33:31 +0000 (15:33 -0000)]
New test

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

16 years ago2008-01-04 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 4 Jan 2008 15:31:58 +0000 (15:31 -0000)]
2008-01-04  Marek Safar  <marek.safar@gmail.com>

  * namespace.cs, class.cs, decl.cs, cs-parser.jay: Use GetSignatureForError
  instead of ToString.

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

16 years ago2008-01-04 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 4 Jan 2008 15:27:30 +0000 (15:27 -0000)]
2008-01-04  Dick Porter  <dick@ximian.com>

* versioninfo.c (VerQueryValue): Returned buffer length counts
chars not bytes for string data.  Fixes bug 345972 again.
(get_enclosing_section_header): Make sure values read are treated
as LE.  Fixes crash on ppc reported in bug 345972.

2008-01-04  Dick Porter  <dick@ximian.com>

* process.c (process_module_string_read): Rename variable to
reflect correct usage, after fixing bug 345972.

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

16 years ago2008-01-04 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 4 Jan 2008 15:26:08 +0000 (15:26 -0000)]
2008-01-04  Dick Porter  <dick@ximian.com>

* Makefile.am: Make it work on automake-1.6

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

16 years ago2008-01-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 4 Jan 2008 15:11:57 +0000 (15:11 -0000)]
2008-01-03  Jonathan Pobst  <monkey@jpobst.com>

* TextBoxBase.cs: Apply patch from Luke Page so when backspace
is hit when there is selected text, only the selected text gets
deleted, not the character in front of the selection as well.
Fixes bug #351578.

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

16 years ago2008-01-04 Jb Evain <jbevain@novell.com>
Jb Evain [Fri, 4 Jan 2008 14:07:46 +0000 (14:07 -0000)]
2008-01-04  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Cil/CilWorker.cs:
Allow ldarg/ldloc/stloc to take a integer
instead of the actual parameter or variable. Fix #350606.

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

16 years ago2008-01-04 Jb Evain <jbevain@novell.com>
Jb Evain [Fri, 4 Jan 2008 12:47:39 +0000 (12:47 -0000)]
2008-01-04  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/DefaultImporter.cs:
  Mono.Cecil/ReflectionHelper.cs:
Properly import nested types. Fix #351133.

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

16 years ago2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 4 Jan 2008 06:45:30 +0000 (06:45 -0000)]
2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ComboBox.cs: When the values are displayed, calculate the
ComboListBox scrollbar's LargeChange based on the visible area's
height and  the actuall ItemHeight, instead of calculating it
based on MaxDropItems value, since it's not used by our _current_
2.0 profile.
Fixes #332366.

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

16 years ago2008-01-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 4 Jan 2008 03:25:58 +0000 (03:25 -0000)]
2008-01-03  Jonathan Pobst  <monkey@jpobst.com>

* Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
Patch from Luke Page that fixes issues with font colors and styles
not showing up in a readonly RichTextBox.  Fixes bug #324354.

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

16 years ago2008-01-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Jan 2008 01:15:44 +0000 (01:15 -0000)]
2008-01-03  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (mono_type_create_fnptr_from_mono_method):
created a MonoType function pointer instance to be used during
verification. The verifier releases this memory at end.

* verify.c (mono_method_is_constructor): extracted repeated
checks for constructor into a single class.

* verify.c (do_push_field): use new extracted method
for constructor check.

* verify.c (do_newobj): same.

* verify.c (do_ldftn): renamed to do_load_function_ptr
and make it verify ldvirtftn too.

* verify.c (mono_method_verify: proper verification
of ldvirtftn. release created MonoMethod instances.

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

16 years ago2008-01-04 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 4 Jan 2008 00:30:05 +0000 (00:30 -0000)]
2008-01-04  Ivan N. Zlatev  <contact@i-nz.net>

        * ReflectionPropertyDescriptor.cs: Create Transactions with
        descriptions when setting/resetting the property.

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

16 years ago2008-01-04 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 4 Jan 2008 00:02:56 +0000 (00:02 -0000)]
2008-01-04  Ivan N. Zlatev  <contact@i-nz.net>

        * UndoEngine.cs: implemented.

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

16 years ago2008-01-04 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 4 Jan 2008 00:00:11 +0000 (00:00 -0000)]
2008-01-04  Ivan N. Zlatev  <contact@i-nz.net>

        * CodeDomComponentSerializationService.cs: implemented.
        * ComponentCodeDomSerializer.cs, CollectionCodeDomSerializer.cs,
        CodeDomSerializerBase.cs, CodeDomSerializer.cs,
        EventCodeDomSerializer.cs, RootCodeDomSerializer.cs,
        PropertyCodeDomSerializer.cs:
         - Change the serialization process logic not to require an
         ExpressionContext for full serialization of a component/instance.
         - Provide statement ordering hints for the RootCodeDomSerializer.
        * DesignerSerializationManager.cs: try-catch around
        * CreateInstance just in case.

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

16 years ago2008-01-04 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Jan 2008 23:45:41 +0000 (23:45 -0000)]
2008-01-04  Ivan N. Zlatev  <contact@i-nz.net>

        * CodeDomDesignerLoader.cs: Check for duplicate names in
        IsValidName.

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

16 years ago2008-01-04 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Jan 2008 23:36:07 +0000 (23:36 -0000)]
2008-01-04  Ivan N. Zlatev  <contact@i-nz.net>

        * ParentControlDesigner.cs: Create a Transaction when adding a
        component.

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

16 years ago2008-01-04 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Jan 2008 23:30:49 +0000 (23:30 -0000)]
2008-01-04  Ivan N. Zlatev  <contact@i-nz.net>

        * DesignerHost.cs: Fix lastTransaction to be set properly.
        Handle current != raiser transaction commit case.

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

16 years ago2008-01-04 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Jan 2008 23:22:55 +0000 (23:22 -0000)]
2008-01-04  Ivan N. Zlatev  <contact@i-nz.net>

        * SelectionService.cs: Remove the component from the current
        selection if it gets removed from the surface.

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

16 years ago2008-01-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 3 Jan 2008 22:33:45 +0000 (22:33 -0000)]
2008-01-03 Rodrigo Kumpera <rkumpera@novell.com>

* invalid_ldvirtftn_invalid_token_type.il: added.

* make_ldvirtftn_test.sh: added.

* invalid_ldvirtftn_invalid_token_out_of_bounds.il: added.

* make_ldftn_test.sh: changed to allow more tests.

* make_tests.sh: added new tests for ldvirtftn and
a buch more for ldftn.

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

16 years agoIn codegen:
Rodrigo Kumpera [Thu, 3 Jan 2008 21:52:54 +0000 (21:52 -0000)]
In codegen:
2008-01-03  Rodrigo Kumpera  <rkumpera@novell.com>

* EmiteByteInstr.cs: Fixed typo in class name.

In parser:
2008-01-03  Rodrigo Kumpera <rkumpera@novell.com>

* ILParser.jay: Fixed typo in EmitByteInstr class name.

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

16 years ago2008-01-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 3 Jan 2008 19:05:50 +0000 (19:05 -0000)]
2008-01-03  Zoltan Varga  <vargaz@gmail.com>

* Thread.cs (set_CurrentCulture): Avoid the serialization overhead if
the new culture is equal to the old one.

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

16 years ago* Component.cs: Moved Site property before Container to match MS. This
Gert Driesen [Thu, 3 Jan 2008 18:53:19 +0000 (18:53 -0000)]
* Component.cs: Moved Site property before Container to match MS. This
allows a unit test for ordered result of TypeDescriptor.GetProperties
to pass.
* TypeDescriptorProperties.cs: added test for order of
PropertyDescriptor instances returned by GetProperties.

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