mono.git
15 years ago2008-07-09 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Wed, 9 Jul 2008 15:39:38 +0000 (15:39 -0000)]
2008-07-09  Bill Holmes  <billholmes54@gmail.com>

* mini.c (mono_codegen):  Allocate space at the end of the code block and store
  the unwind information for the method at the end of the allocated block.

* mini-amd64.h: Added declarations for the unwind routines and adding field to
  MonoCompileArch to hold the unwind info for SEH on Winx64

* mini-amd64.c (mono_arch_emit_prolog): Calls to the unwind routines added to store
  frame pointer info for the method being compiled.

* exceptions-amd64.c (mono_arch_get_throw_corlib_exception): Added a stack adjustment before
  the call to mono_exception_from_token.

* exceptions-amd64.c: Added mono_arch_unwindinfo* implementations.  This code is responsible
  storing the method prolog information in a format that the Winx64 SEH can understand.  This
  information is stored a the end of the method block because it is all 32-bit offset based.

Contributed under MIT/X11 license.

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

15 years ago2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Wed, 9 Jul 2008 15:38:21 +0000 (15:38 -0000)]
2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>

* Control.cs: Added OnSizeInitializedOrChanged.
* Form.cs: OnLoadInternal: Added a call to
Control.OnSizeInitializedOrChanged.
* InternalWindowManager.cs:
 * HandleTitleBarMouseMove: No longer invalidates the parent window.
 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
 * TitleButton: Added Entered.
 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
* MdiWindowManager.cs:
 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
 move over the maximized title buttons causes a change.
 * IsActive: Can now be called before the window is added to a MDI parent.
* Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
* ThemeVisualStyles.cs: Implemented proper managed window rendering.
* ThemeWin32Classic.cs:
 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
 * DrawTitleButton takes a new form parameter.
 * Added ManagedWindowTitleButtonHasHotElementStyle,
 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.

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

15 years agoFixes ##407208 - Validate for IP before calling DNS.GetHostEntry()
Veerapuram Varadhan [Wed, 9 Jul 2008 14:36:11 +0000 (14:36 -0000)]
Fixes ##407208 - Validate for IP before calling DNS.GetHostEntry()

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 14:00:28 +0000 (14:00 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Remove duplicate definitions of the mini_wapi_ functions.

* wapihandles.c: Fix warnings.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 12:00:46 +0000 (12:00 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (load_aot_module): Add a missing error message in aot-only
mode.

* mini-trampolines.c (mono_create_jit_trampoline_in_domain): Avoid calling
mono_jit_compile_method in aot-only mode since that calls the type
initializer.

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

15 years agoNew tests.
Marek Safar [Wed, 9 Jul 2008 11:46:19 +0000 (11:46 -0000)]
New tests.

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

15 years ago2008-07-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Jul 2008 11:46:07 +0000 (11:46 -0000)]
2008-07-09  Marek Safar  <marek.safar@gmail.com>

* ecore.cs: Report better error for extension method overload failures.

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

15 years ago2008-07-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Jul 2008 10:52:10 +0000 (10:52 -0000)]
2008-07-09  Atsushi Enomoto  <atsushi@ximian.com>

* MapCodeGenerator.cs : use explicit element name for explicitly added
  XmlElementAttribute. (exposed by some product from some company.)

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

15 years agoNew test.
Marek Safar [Wed, 9 Jul 2008 10:33:58 +0000 (10:33 -0000)]
New test.

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

15 years agoNew test.
Marek Safar [Wed, 9 Jul 2008 10:33:23 +0000 (10:33 -0000)]
New test.

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

15 years ago2008-07-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Jul 2008 10:33:12 +0000 (10:33 -0000)]
2008-07-09  Marek Safar  <marek.safar@gmail.com>

* expression.cs (Is): No need to box reference values.

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

15 years agoNew tests.
Marek Safar [Wed, 9 Jul 2008 09:36:29 +0000 (09:36 -0000)]
New tests.

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

15 years ago2008-07-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Jul 2008 09:35:43 +0000 (09:35 -0000)]
2008-07-09  Marek Safar  <marek.safar@gmail.com>

* class.cs: Use event resolve context when initializing CreateEmitContext.

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

15 years agoNew test.
Marek Safar [Wed, 9 Jul 2008 08:29:49 +0000 (08:29 -0000)]
New test.

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

15 years ago2008-07-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Jul 2008 08:29:28 +0000 (08:29 -0000)]
2008-07-09  Marek Safar  <marek.safar@gmail.com>

A fix for bug #394436
* anonymous.cs, class.cs, expression.cs, lambda.cs: Emit correctly extension
method used inside expression trees. Added more LINQ to expression tree
conversions.

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

15 years ago2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Wed, 9 Jul 2008 07:19:02 +0000 (07:19 -0000)]
2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeEngine.cs: ThemeVisualStyles is now selected if
Application.EnableVisualStyles has been called, even if the current system
configuration does not support rendering with Visual Styles.
* ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
Styles should not be used.
* ThemeElements.cs: ThemeElementsVisualStyles is now selected if
Application.EnableVisualStyles has been called, even if the current system
configuration does not support rendering with Visual Styles.
* TabControlPainter.cs, ToolStripPainter.cs: Now falls back to the default
implementation when Visual Styles should not be used.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 00:29:12 +0000 (00:29 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_create_delegate_trampoline): Avoid calling
get_delegate_invoke_impl in aot-only mode.

* mini.c (mono_global_codeman_reserve): Reenable the aot-only check.

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

15 years ago2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Tue, 8 Jul 2008 22:07:07 +0000 (22:07 -0000)]
2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>

* FormTest.cs: Disabled the MinimizedWindowSize test.

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

15 years ago2008-07-08 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 8 Jul 2008 21:53:05 +0000 (21:53 -0000)]
2008-07-08  Jonathan Pobst  <monkey@jpobst.com>

* ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
ComboBox in FormsTest.

2008-07-08  Jonathan Pobst  <monkey@jpobst.com>

* ComboBoxTest.cs: Test showing PreferredHeight is independent of
ItemHeight.

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

15 years ago2008-07-08 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Tue, 8 Jul 2008 21:29:06 +0000 (21:29 -0000)]
2008-07-08  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

* Char.cs: Remove obsolete lamespecs (it implements IConvertible), small formatting

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 21:13:57 +0000 (21:13 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* trace.c (mono_trace_enter_method): Fix printing of Type instances.

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

15 years ago2008-07-08 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Tue, 8 Jul 2008 21:00:26 +0000 (21:00 -0000)]
2008-07-08  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

* Char.cs: Optimize some Is* checks

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 20:07:51 +0000 (20:07 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (compile_method): Disable the check for GSHARED since it
is on by default.

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 19:58:34 +0000 (19:58 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* inssel-long.brg (reg): Add a rule for LCALL_REG (OP_I8CONST).

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 19:58:06 +0000 (19:58 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (mono_arch_nullify_plt_entry): Read the nullified class
init trampoline from the AOT file as well.

* mini-amd64.c (mono_arch_register_lowlevel_calls): Register
mono_amd64_throw_exception as a jit icall since it is needed by the aot-only
code.

* mini.c (mini_init): Move the call to mono_exceptions_init () after
mono_init.

* exceptions-amd64.c: Add _full variants for the remaining exception code
creation functions as well, allow emission of relocatable code, remove
caching since that is now done by the caller.

* mini-exceptions.c: Add _full variants for the remaining exception code
creation functions as well, add aot-only support.

* aot-compiler.c (compile_method): Allow calls to methods of constructed types
if we can determine a proper token for them.
(add_wrappers): Add a few more wrappers.
(emit_method_code): Remove some dead code.
(emit_trampolines): Emit exception code too.

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 19:57:52 +0000 (19:57 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (mono_arch_nullify_plt_entry): Read the nullified class
init trampoline from the AOT file as well.

* mini-amd64.c (mono_arch_register_lowlevel_calls): Register
mono_amd64_throw_exception as a jit icall since it is needed by the aot-only
code.

* mini.c (mini_init): Move the call to mono_exceptions_init () after
mono_init.

* exceptions-amd64.c: Add _full variants for the remaining exception code
creation functions as well, allow emission of relocatable code, remove
caching since that is now done by the caller.

* mini-exceptions.c: Add _full variants for the remaining exception code
creation functions as well, add aot-only support.

* aot-compiler.c (compile_method): Allow calls to methods of constructed types
if we can determine a proper token for them.
(add_wrappers): Add a few more wrappers.
(emit_method_code): Remove some dead code.
(emit_trampolines): Emit exception code too.

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 18:35:57 +0000 (18:35 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Call mono_array_new_2 if possible.

* jit-icalls.c (mono_array_new_2): New jit icall, specialized version of
mono_array_new_va which avoids varargs.

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

15 years ago2008-07-08 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 8 Jul 2008 16:48:44 +0000 (16:48 -0000)]
2008-07-08 Rodrigo Kumpera  <rkumpera@novell.com>

* object.c (mono_string_to_utf8): Avoid allocating a temp array.

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

15 years ago2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 8 Jul 2008 16:26:21 +0000 (16:26 -0000)]
2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>

* ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
for fixed toolwindows.

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

15 years ago2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Tue, 8 Jul 2008 15:19:37 +0000 (15:19 -0000)]
2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>

* Form.cs: SetBoundsCore: Added minimum size for minimized windows.
* FormTest.cs: Added the MinimizedWindowSize test.

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

15 years agoNew tests.
Marek Safar [Tue, 8 Jul 2008 14:57:53 +0000 (14:57 -0000)]
New tests.

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

15 years ago2008-07-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Jul 2008 14:56:46 +0000 (14:56 -0000)]
2008-07-08  Marek Safar  <marek.safar@gmail.com>

A fix for bug #378189, #370577
* lambda.cs, ecore.cs: Implemented 3.0 enhancement to better conversion
from expression.

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

15 years ago2008-07-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Jul 2008 14:28:29 +0000 (14:28 -0000)]
2008-07-08  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs, class.cs, decl.cs: Emit CompilerGenerated attribute
hierarchically.

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

15 years agoRevert
Marek Safar [Tue, 8 Jul 2008 10:52:46 +0000 (10:52 -0000)]
Revert

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

15 years agoNew tests.
Marek Safar [Tue, 8 Jul 2008 10:38:50 +0000 (10:38 -0000)]
New tests.

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

15 years ago2008-07-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Jul 2008 10:38:15 +0000 (10:38 -0000)]
2008-07-08  Marek Safar  <marek.safar@gmail.com>

A fix for bug #406702
* anonymous.cs: Always park anonymous method in the nearest parent storey.

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

15 years agoFixed few warnings
Marek Safar [Tue, 8 Jul 2008 10:34:18 +0000 (10:34 -0000)]
Fixed few warnings

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 04:36:46 +0000 (04:36 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c (mono_exceptions_init): Fix the ppc build.

* mini-trampolines.c: Call mono_create_specific_trampoline () instead of
mono_arch_create_specific_trampoline () in all places.

* aot-compiler.c aot-runtime.c: Refactor the trampoline emitting/loading code
a bit so it can be used for other things as well.

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 00:26:47 +0000 (00:26 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c (mono_exceptions_init): Initialize throw_exception_by_name
on demand as well.

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

15 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 23:02:23 +0000 (23:02 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Control.cs: CreateControl just returns if the Control is diposed
and doesn't throw ObjectDisposedException.
* ControlTest.cs: Add tests for the Dispose behavior.
[Fixes bug #406566]

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

15 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:53:30 +0000 (22:53 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Control.cs: Do not create the control if the parent isn't created
yet, e.g in the case of a parented form on which .Show is called.
It will be created when the parent is made visible/created.
Improves #402446.

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

15 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:49:22 +0000 (22:49 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Form.cs: Avoid recursively calling OnSizeChanged due to recursive
WM_WINDOWPOSCHANGED caused by the layouting code on win32.
[Fixes bug #406786]

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

15 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:45:35 +0000 (22:45 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Form.cs: When disposed set owner to null. Improves #402446.

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

15 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:42:55 +0000 (22:42 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
use children's PreferredSize if in AutoSize mode and ExplicitBounds
if not.
* Form.cs: Take the Padding into account for the PreferredSize.
[Fixes bug #402849]

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 22:42:08 +0000 (22:42 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* exceptions-amd64.c: Change the signature of the exception code creation
functions to allow the creation of relocatable code later.

* mini-exceptions.c: Add a set of functions to query the various
runtime-generated exception functions.

* mini.c mini-exceptions.c: Use the newly added functions instead of the
mono_arch_.. () functions.

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 22:41:46 +0000 (22:41 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* exceptions-amd64.c: Change the signature of the exception code creation
functions to allow the creation of relocatable code later.

* mini-exceptions.c: Add a set of functions to query the various
runtime-generated exception functions.

* mini.c mini-exceptions.c: Use the newly added functions instead of the
mono_arch_.. () functions.

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

15 years ago2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 7 Jul 2008 22:31:52 +0000 (22:31 -0000)]
2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TabControl.cs: Since we don't support more than one direction in
TabControl rows alignment (this is, the row becomes the
bottom row when selected), make Direction return always 1. This way
the layout doesn't get confused about a bad calculation.
Fixes #399582.

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

15 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:31:47 +0000 (22:31 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* TableLayout.cs: Controls bounds should be taken into account regardless
of their Dock and Anchor states.
* TableLayoutTest.cs: Add test for bug #402651
[Fixes bug #402651]

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

15 years ago2008-07-07 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 7 Jul 2008 22:29:35 +0000 (22:29 -0000)]
2008-07-07  Rodrigo Kumpera  <rkumpera@novell.com>

* ConfigurationManager.cs: Return the right path if the calling assembly is
not null. This happens when ConfigurationSession::GetRuntimeObject() is
called, SectionHandler != null and the handler itself calls
OpenExeConfigurationInternal ("").

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

15 years ago * ConfigurationManager.cs: Reaply the patch from Gert.
Rodrigo Kumpera [Mon, 7 Jul 2008 22:25:55 +0000 (22:25 -0000)]
* ConfigurationManager.cs: Reaply the patch from Gert.
This change doesn't contain any fix to to not clutter
the commit history.

2008-07-07  Rodrigo Kumpera  <rkumpera@novell.com>

* ClientConfigurationSystem.cs:

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

15 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:19:45 +0000 (22:19 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
so that the wparam is properly set.
Fixes form moving in the test case in bug 402446.

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

15 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 20:53:14 +0000 (20:53 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_aot_get_trampoline_code): Removed, no longer used.

* aot-runtime.c aot-compiler.c: AOT the generic trampolines in aot-only mode.

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

15 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 20:50:29 +0000 (20:50 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_get_imt_trampoline): Call mono_create_specific_trampoline ().
(mini_get_vtable_trampoline): Ditto.

* tramp-amd64.c (mono_arch_create_trampoline_code_full): Create relocatable
code in the AOT case by returning the code size and a list of relocations to
the caller.

* mini-trampolines.c (mono_create_specific_trampoline): New helper function.

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

15 years ago2008-07-07 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 7 Jul 2008 20:44:44 +0000 (20:44 -0000)]
2008-07-07  Bill Holmes  <billholmes54@gmail.com>
* libtest.c, winx64structs.cs :
  Adding tests to exercise bug 404729 on Winx64.

Contributed under MIT/X11 license.

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

15 years ago2008-07-07 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 7 Jul 2008 20:44:21 +0000 (20:44 -0000)]
2008-07-07  Bill Holmes  <billholmes54@gmail.com>

* mini-amd64.c:  On Winx64 the calling convention always requires the caller to
  clean the stack.

Contributed under MIT/X11 license.

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

15 years ago2008-07-07 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 7 Jul 2008 17:03:30 +0000 (17:03 -0000)]
2008-07-07  Bill Holmes  <billholmes54@gmail.com>

* ThreadTest.cs : Tests added for Thread.Interrupt.

Code is contributed under MIT/X11 license.

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

15 years ago2008-07-07 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 7 Jul 2008 17:02:16 +0000 (17:02 -0000)]
2008-07-07  Bill Holmes  <billholmes54@gmail.com>

* threads.c : Thread.Interrupt changes to ensure that ThreadInterruptedException
  is not throw too many times.

Code is contributed under MIT/X11 license.

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

15 years ago2008-07-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 7 Jul 2008 16:34:39 +0000 (16:34 -0000)]
2008-07-07  Jonathan Pobst  <monkey@jpobst.com>

* FolderBrowserDialog.cs: If we can't find the SelectedPath, display
the full tree instead of nothing.  [Improves bug #406584]

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

15 years ago2008-07-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 7 Jul 2008 15:58:52 +0000 (15:58 -0000)]
2008-07-07  Jonathan Pobst  <monkey@jpobst.com>

* ResXResourceReaderTest.cs: Ignore test that is dependent on
hashtable ordering.

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

15 years ago2008-07-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 7 Jul 2008 15:51:35 +0000 (15:51 -0000)]
2008-07-07  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutSettingsTypeConverterTest.cs: Make 'roundtrip' not
dependent on exact order of <Control> elements.

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

15 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 15:25:41 +0000 (15:25 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* mono-debug.c (mono_debug_find_method): Allow this to be called even when
debugging is turned off.

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

15 years ago2008-07-07 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 7 Jul 2008 14:01:18 +0000 (14:01 -0000)]
2008-07-07  Sebastien Pouliot  <sebastien@ximian.com>

* TestBitmap.cs: Add test case for #406763 and similar cases.

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

15 years ago2008-07-07 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 7 Jul 2008 14:00:14 +0000 (14:00 -0000)]
2008-07-07  Sebastien Pouliot  <sebastien@ximian.com>

* Bitmap.cs: Fix exceptions for some ctors.
* Image.cs: Throw ArgumentNullException for null streams.
[Fix bug #406763]

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

15 years ago2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Mon, 7 Jul 2008 13:37:08 +0000 (13:37 -0000)]
2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeWin32Classic.cs: Adjusted minimized window painting.

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

15 years agoIn .:
Rodrigo Kumpera [Mon, 7 Jul 2008 12:51:19 +0000 (12:51 -0000)]
In .:
2008-07-07  Rodrigo Kumpera  <rkumpera@novell.com>

* ClientConfigurationSystem.cs:
* ConfigurationManager.cs: The previous patch since it
causes a regression. It will remain reverted until we figure
out what's wrong and how to fix it.

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

15 years agoNew test.
Marek Safar [Mon, 7 Jul 2008 12:06:23 +0000 (12:06 -0000)]
New test.

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

15 years ago2008-07-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 7 Jul 2008 12:06:10 +0000 (12:06 -0000)]
2008-07-07  Marek Safar  <marek.safar@gmail.com>

A fix for bug #406648
* cs-parser.jay: Report nullable use in mcs for some cases.

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

15 years ago2008-07-07 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 7 Jul 2008 11:54:56 +0000 (11:54 -0000)]
2008-07-07  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceDescriptionSerializerBase2.cs,
  ServiceDescriptionSerializerBase.cs : regenerated with the latest
  sys.xml(.serialization).

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

15 years agoError messages update.
Marek Safar [Mon, 7 Jul 2008 11:17:55 +0000 (11:17 -0000)]
Error messages update.

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

15 years ago2008-07-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 7 Jul 2008 11:17:39 +0000 (11:17 -0000)]
2008-07-07  Marek Safar  <marek.safar@gmail.com>

* ecore.cs: Improved argument mismatch error messages.

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

15 years agoupdate
Jb Evain [Mon, 7 Jul 2008 11:13:20 +0000 (11:13 -0000)]
update

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

15 years ago2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Mon, 7 Jul 2008 10:33:15 +0000 (10:33 -0000)]
2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>

* InternalWindowManager.cs: No longer draws decorations for maximized MDI
children.

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

15 years agoNew tests.
Marek Safar [Mon, 7 Jul 2008 09:41:45 +0000 (09:41 -0000)]
New tests.

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

15 years ago2008-07-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 7 Jul 2008 09:40:13 +0000 (09:40 -0000)]
2008-07-07  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs: Don't cache generic delegates when reference MVAR argument.

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

15 years ago2008-07-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 7 Jul 2008 08:37:24 +0000 (08:37 -0000)]
2008-07-07  Marek Safar  <marek.safar@gmail.com>

* expression.cs (TypeOf): Mutate type argument.

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

15 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 00:33:38 +0000 (00:33 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am: Run the aot tests using --debug.

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

15 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 00:33:08 +0000 (00:33 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_exception_debug_info): Serialize the debug info first
so the buffer size can be computed correctly. Fixes #404735.

* debug-mini.c (mono_debug_serialize_debug_info): Lookup the debug info
normally as cfg->debug_info is already freed.

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

15 years ago2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 7 Jul 2008 00:19:15 +0000 (00:19 -0000)]
2008-07-06  Sebastien Pouliot  <sebastien@ximian.com>

* DbDataReader.cs: Replace a few Type.GetType by typeof
[Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]

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

15 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jul 2008 23:45:21 +0000 (23:45 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* resolve_field_bug.2.il: Fix this test.

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

15 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jul 2008 22:36:35 +0000 (22:36 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Make the patching done by --enable-quiet quiet.

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

15 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jul 2008 22:35:40 +0000 (22:35 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* scripts/patch-quiet.sh: Make this more precise.

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

15 years ago2008-07-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jul 2008 21:34:15 +0000 (21:34 -0000)]
2008-07-06  Zoltan Varga  <vargaz@gmail.com>

* pinvoke2.cs libtest.c: Add test for #404729.

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

15 years ago2008-07-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jul 2008 21:32:53 +0000 (21:32 -0000)]
2008-07-06  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c: For calls returning vtypes in registers, don't store
the return address on the stack, instead allocate a separate local for
it. Fixes #404729.

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

15 years ago2008-07-06 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Sun, 6 Jul 2008 21:25:35 +0000 (21:25 -0000)]
2008-07-06  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* MethodCallMessageWrapper.cs: Fix signatures

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

15 years ago2008-07-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jul 2008 20:36:55 +0000 (20:36 -0000)]
2008-07-06  Zoltan Varga  <vargaz@gmail.com>

* generic-sharing.c (mono_method_lookup_rgctx): Fix a warning.

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

15 years ago* SqlException.cs: Modified HResult/ErrorCode to match MS. Removed
Gert Driesen [Sun, 6 Jul 2008 18:18:34 +0000 (18:18 -0000)]
* SqlException.cs: Modified HResult/ErrorCode to match MS. Removed
unused FromTdsInternalException overload. Removed unnecessary check
for Errors.Count. Minor code formatting.

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

15 years ago2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 6 Jul 2008 18:06:42 +0000 (18:06 -0000)]
2008-07-06  Sebastien Pouliot  <sebastien@ximian.com>

* OracleDataReader.cs: Replace a few Type.GetType by typeof
[Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]

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

15 years agosvn path=/trunk/mcs/; revision=107345
Sebastien Pouliot [Sun, 6 Jul 2008 18:06:25 +0000 (18:06 -0000)]
svn path=/trunk/mcs/; revision=107345

15 years ago2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 6 Jul 2008 17:57:44 +0000 (17:57 -0000)]
2008-07-06  Sebastien Pouliot  <sebastien@ximian.com>

* SqliteDataSourceEnumerator.cs: Replace a few Type.GetType by typeof
[Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]

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

15 years ago2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 6 Jul 2008 17:56:27 +0000 (17:56 -0000)]
2008-07-06  Sebastien Pouliot  <sebastien@ximian.com>

* SqliteDataSourceEnumerator.cs: Replace a few Type.GetType by typeof
[Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]

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

15 years ago2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 6 Jul 2008 17:53:40 +0000 (17:53 -0000)]
2008-07-06  Sebastien Pouliot  <sebastien@ximian.com>
* Mono.Data.SybaseClient/SybaseDataReader.cs: Replace a few
Type.GetType by typeof
[Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]

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

15 years ago* Tds70.cs: Removed extra tabs, and changed spaces to tabs. Code
Gert Driesen [Sun, 6 Jul 2008 17:51:48 +0000 (17:51 -0000)]
* Tds70.cs: Removed extra tabs, and changed spaces to tabs. Code
formatting. Avoid calling Environment.UserDomainName if username
contains domain. Use String.Empty instead of "".
* TdsConnectionParameters.cs: Invoke Reset method for initializing
fields. Spaces to tabs.

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

15 years ago2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 6 Jul 2008 17:51:26 +0000 (17:51 -0000)]
2008-07-06  Sebastien Pouliot  <sebastien@ximian.com>

* TdsDataReader.cs: Replace a few Type.GetType by typeof
[Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]

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

15 years ago2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 6 Jul 2008 17:48:06 +0000 (17:48 -0000)]
2008-07-06  Sebastien Pouliot  <sebastien@ximian.com>

* DirectoryEntry.cs: Use typeof(LdapModification) instead of
Type.GetType and actually use the value afterward.
[Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]
* SearchResultCollection.cs: Avoid infinite recursion in
Contains(SearchResult).
[Found using Gendarme BadRecursiveInvocationRule]

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

15 years ago2008-07-06 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Sun, 6 Jul 2008 15:59:31 +0000 (15:59 -0000)]
2008-07-06  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

* DateTimeOffset.cs: Fix parameter name

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

15 years ago2008-07-06 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Sun, 6 Jul 2008 15:57:00 +0000 (15:57 -0000)]
2008-07-06  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

* DateTimeOffsetTest.cs: Fix wrong test (DateTimeOffset has no public CompareTo (object))

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

15 years ago2008-07-06 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Sun, 6 Jul 2008 15:53:54 +0000 (15:53 -0000)]
2008-07-06  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

* DateTimeOffsetTest.cs: Fix wrong test (DateTimeOffset has no public CompareTo (object))

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

15 years ago2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 6 Jul 2008 15:43:51 +0000 (15:43 -0000)]
2008-07-06  Sebastien Pouliot  <sebastien@ximian.com>

* OdbcDataReader.cs: Fix unneeded self-assignment for 'length'. Also
fix a bad setter where "value = behavior" instead of "behavior = value"
[Found using Gendarme ReviewSelfAssignmentRule]

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

15 years ago2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 6 Jul 2008 15:38:42 +0000 (15:38 -0000)]
2008-07-06  Sebastien Pouliot  <sebastien@ximian.com>

* Mono.Data.TdsClient/TdsCommand.cs: Fix unneeded assignment
for commandText (assigned to self). Also fix another unneeded
assignment (already taken care by the called ctor).
[Found using Gendarme ReviewSelfAssignmentRule]

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

15 years ago2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 6 Jul 2008 15:37:32 +0000 (15:37 -0000)]
2008-07-06  Sebastien Pouliot  <sebastien@ximian.com>

* Mono.Data.SybaseClient/SybaseCommand.cs: Fix unneeded assignment
for commandText (assigned to self). Also fix another unneeded
assignment (already taken care by the called ctor).
[Found using Gendarme ReviewSelfAssignmentRule]

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