70 Commits

Author SHA1 Message Date
Sebastian Lackner
e5404d4bf6 mscoree: Avoid buffer overflow when mono print handler returns huge string at once.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-03 10:05:09 +09:00
Vincent Povirk
ccac8a455b mscoree: Enable crash chaining in Mono.
This allows winedbg to handle crashes and print native stack traces,
after Mono has attempted to print a managed stack trace.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-31 10:39:51 +09:00
Vincent Povirk
4dec065e2b mscoree: Restore previous domain whenever we set it.
Unmanaged APIs could be called directly or indirectly by managed code in
any domain, and we could create problems by not restoring the old one.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-09 18:41:05 +09:00
Charles Davis
fdeaf812e2 mscoree: Implement ICorRuntimeHost::CreateDomain{, Ex}().
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-18 21:05:48 +09:00
Paul Gofman
b9a0fe18e3 mscoree: Fix calling convention for mono callback functions.
ms_abi calling convention is required for x86_64 arch.

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-21 17:01:45 +09:00
Vincent Povirk
26c9bd9f15 mscoree: Remove "Install Mono for Windows" message.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 03:11:25 +09:00
Vincent Povirk
f34be7c690 mscoree: Remove search fallbacks when Wine Mono isn't installed.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 03:11:21 +09:00
Andrew Eikum
4d44363e60 mscoree: Set config path for default app domain.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 15:48:39 +09:00
Vincent Povirk
2ecd3772e3 mscoree: Send Mono's debug output to Unix stderr. 2015-09-07 15:03:49 +09:00
Vincent Povirk
6df7366e4e mscoree: Don't modify the PATH environment variable.
Wine Mono 4.5.4 eliminated the need for this.
2015-09-04 15:10:12 +09:00
Vincent Povirk
5cd6db0349 mscoree: Remove the runtime version selection logic and just use 4.0.
Mono has removed support for the .NET 2.0 profile, so we'll have to be
using 4.0 for everything next time we want to update.
2015-03-26 14:21:33 +09:00
Vincent Povirk
6ef156e656 mscoree: Use mono_runtime_quit in shutdown process. 2014-10-16 12:59:46 +09:00
Nikolay Sivov
a99d8cb21b mscoree: Use E_NOT_SUFFICIENT_BUFFER definition. 2014-10-16 12:58:52 +09:00
Vincent Povirk
805da6bf83 mscoree: Accept "v4.0" as a runtime version in config files. 2014-07-15 10:23:46 +02:00
Frédéric Delanoy
8cdcf47001 mscoree: Use BOOL type where appropriate. 2014-02-19 11:37:02 +01:00
Frédéric Delanoy
3c6a4fe554 mscoree: Constify a character string. 2013-12-17 08:45:40 +01:00
Alistair Leslie-Hughes
d8f54b4d49 mscoree: Implement IMetahostPolicy GetRequestedRuntime. 2013-11-22 11:35:57 +01:00
Alistair Leslie-Hughes
2d899505d7 mscoree: Rename function to match its use. 2013-10-30 11:21:31 +01:00
Frédéric Delanoy
38adec4ac5 mscoree: Use BOOL type where appropriate. 2013-10-25 13:36:01 +02:00
Vincent Povirk
5e81bad239 mscoree: Call Mono's System.Environment.Exit instead of duplicating it. 2013-10-25 13:35:36 +02:00
Vincent Povirk
770918a91b mscoree: Do a "normal" runtime shutdown from _CorExeMain.
This needs to work differently from CorExitProcess because we need to wait for
foreground threads and abort the rest.
2013-10-25 13:34:47 +02:00
Vincent Povirk
6b889fe918 mscoree: Remove support for multiple Mono ABI versions.
Having two instances of Mono loaded at once is problematic, and now that we
use the 2.0 runtime to support 1.x there's no need to support old versions.
2013-10-25 13:34:26 +02:00
Alistair Leslie-Hughes
3988ee9465 mscoree: Add support for ICLRMetaHostPolicy interface. 2013-10-17 20:29:41 +02:00
Alistair Leslie-Hughes
73ca9d2d0b mscoree: Partially implement ICLRMetaHost RequestRuntimeLoadedNotification. 2013-10-11 12:45:06 +02:00
Frédéric Delanoy
1214fb41dd mscoree: Use BOOL type where appropriate. 2013-10-08 09:09:36 +02:00
Alistair Leslie-Hughes
9dbeaf2586 mscoree: Redirect .NET 1.0 to .NET 2.0. 2013-08-16 13:07:40 +02:00
Daniel Jelinski
0eaa3ec9fb mscoree: Extract a helper function for getting file name from assembly. 2013-06-05 20:30:58 +02:00
Andrew Talbot
edea85dea6 mscoree: Remove unneeded address-of operator from function name. 2013-03-04 11:15:24 +01:00
Vincent Povirk
276d202e79 mscoree: Keep a reference to mscoree when shutting down. 2013-03-01 18:03:30 +01:00
Vincent Povirk
ad5c4671a5 mscoree: Add WINE_MONO_VERBOSE environment setting. 2013-02-28 21:00:17 +01:00
Andrew Talbot
14afcb8ccd mscoree: Avoid signed-unsigned integer comparisons. 2013-02-13 10:19:07 +01:00
Vincent Povirk
f2437c2b32 mscoree: Add support for tracing the entry point assembly. 2012-09-05 11:47:44 +02:00
Alistair Leslie-Hughes
c99754ef15 mscoree: Use .NET 2.0 for 1.0 assemblies. 2012-06-07 16:07:04 +02:00
Vincent Povirk
56484cc037 mscoree: Add a fallback for mono_image_open_from_module_handle. 2012-05-17 17:44:28 +02:00
Vincent Povirk
a629ba4949 mscoree: Implement vtable fixups. 2012-05-09 17:49:57 +02:00
Vincent Povirk
a824e8f659 mscoree: Use the main HMODULE in _CorExeMain instead of loading a new exe. 2012-05-03 11:51:36 +02:00
Vincent Povirk
3b4d278026 mscoree: Always call mono_thread_attach before invoking managed code. 2012-04-24 11:37:34 +02:00
Alistair Leslie-Hughes
d08e89a8d6 mscoree: Allow capital for version number. 2012-03-27 17:56:31 +02:00
Vincent Povirk
c110a55f12 mscoree: Search for an arch-specific mono dll first. 2012-03-26 12:41:28 +02:00
Alistair Leslie-Hughes
f67d34f7af mscoree: Better support RUNTIME_INFO_UPGRADE_VERSION in GetRequestedRuntimeInfo. 2012-03-16 13:02:53 +01:00
Thomas Faber
d3918683e6 mscoree: Fix build with MSVC. 2012-01-26 17:42:33 +01:00
Alistair Leslie-Hughes
acaa258054 mscoree: Implement CLRRuntimeHost_ExecuteInDefaultAppDomain. 2012-01-03 18:04:36 +01:00
Alistair Leslie-Hughes
bef72c4884 mscoree: Add ICorDebug interface support. 2011-09-28 12:37:47 +02:00
Andrew Talbot
fe29ad99a7 mscoree: Remove extern from function definitions. 2011-08-29 12:08:20 +02:00
Michael Stefaniuc
c8fcf420c2 mscoree: COM cleanup for the ICLRRuntimeInfo iface. 2011-08-22 16:14:35 +02:00
Marcus Meissner
ba9f4e807a mscoree: Mark internal symbols with hidden visibility and some vtables as static. 2011-05-20 10:32:32 +02:00
Vincent Povirk
92563de3ea mscoree: State the .NET and Mono versions when a runtime is missing. 2011-05-11 19:49:51 +02:00
Francois Gouget
d007d9feea mscoree: Force_get_runtime_info() is not used so remove it. 2011-03-16 16:31:52 +01:00
Michael Stefaniuc
c3afbcfd60 mscoree: COM cleanup in metahost.c. 2011-03-14 12:39:28 +01:00
Francois Gouget
e0b2307f9c mscoree: Add a '\n' to an ERR() trace. 2011-03-07 11:08:50 +01:00