unsigned int* exitCode);
#undef CORECLR_HOSTING_API
-
+
#endif // __CORECLR_HOST_H__
-
-
add_compile_options(-fPIC)
-if(FEATURE_GDBJIT)
- add_definitions(-DFEATURE_GDBJIT)
-endif(FEATURE_GDBJIT)
-
_add_library(unixcoreruncommon
STATIC
coreruncommon.cpp
// If set to 1, server GC is enabled on startup. If 0, server GC is
// disabled. Server GC is off by default.
static const char* serverGcVar = "CORECLR_SERVER_GC";
+
#if defined(__linux__)
#define symlinkEntrypointExecutable "/proc/self/exe"
#elif !defined(__APPLE__)
#include <utilcode.h>
#include <corhost.h>
#include <configuration.h>
+#ifdef FEATURE_GDBJIT
+#include "../../vm/gdbjithelpers.h"
+#endif // FEATURE_GDBJIT
typedef int (STDMETHODCALLTYPE *HostMain)(
const int argc,
if (!SUCCEEDED(hr))
{
- fprintf(stderr, "coreclr_create_delegate failed - status: 0x%08x\n", hr);
+ fprintf(stderr,
+ "Can't create delegate for 'System.Diagnostics.Debug.SymbolReader.SymbolReader.GetInfoForMethod' "
+ "method - status: 0x%08x\n", hr);
}
#endif
}
// ======================================================================================
-#ifdef FEATURE_GDBJIT
-struct SequencePointInfo
-{
- int lineNumber, ilOffset;
- char16_t* fileName;
-};
-
-struct MethodDebugInfo
-{
- SequencePointInfo* points;
- int size;
-};
-
-typedef int (*GetInfoForMethodDelegate)(const char*, unsigned int, MethodDebugInfo& methodDebugInfo);
-extern GetInfoForMethodDelegate getInfoForMethodDelegate;
-#endif // FEATURE_GDBJIT
-
#endif // __UtilCode_h__
if(FEATURE_GDBJIT)
set(VM_SOURCES_GDBJIT
- ../gc/gccommon.cpp
- ../gc/gcscan.cpp
- ../gc/gcsvr.cpp
- ../gc/gcwks.cpp
gdbjit.cpp
)
add_definitions(-DFEATURE_GDBJIT)
//*****************************************************************************
#include "common.h"
-#include "../inc/utilcode.h"
#include "gdbjit.h"
+#include "gdbjithelpers.h"
struct DebuggerILToNativeMap
{
--- /dev/null
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+//*****************************************************************************
+// File: gdbjithelpers.h
+//
+//
+// Helper file with managed delegate for GDB JIT interface implemenation.
+//
+//*****************************************************************************
+
+
+#ifndef __GDBJITHELPERS_H__
+#define __GDBJITHELPERS_H__
+
+struct SequencePointInfo
+{
+ int lineNumber, ilOffset;
+ char16_t* fileName;
+};
+
+struct MethodDebugInfo
+{
+ SequencePointInfo* points;
+ int size;
+};
+
+typedef int (*GetInfoForMethodDelegate)(const char*, unsigned int, MethodDebugInfo& methodDebugInfo);
+extern GetInfoForMethodDelegate getInfoForMethodDelegate;
+
+#endif // !__GDBJITHELPERS_H__