Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike McLaughlin <mikem@microsoft.com>2020-04-10 20:22:01 +0300
committerGitHub <noreply@github.com>2020-04-10 20:22:01 +0300
commit11bf4b8f6e96a1b9deaef6470201d4e10f720b02 (patch)
tree1f9b8e0b5aef17ef22e6e58f80d30b35f731aa3f /src/coreclr/clrfeatures.cmake
parent3d3ad67f77d01d50e8157b78d9c927f73c5ce032 (diff)
Single-file diagnostic support for SOS. (#34697)
Single-file diagnostic support. This will allow SOS, dotnet-dump, etc. to work for single-file programs on Linux. An library called runtimeinfo_lib is generated that is to be linked into the single-file superhost containing coreclr. Added "DotNetRuntimeInfo" export/block containing the symbol index/build ids needed by the diagnostic tools. Added ICLRRuntimeLocator DAC interface for SOS and other DAC clients so their data targets can provide the single-file runtime base address. Added the GetModuleIndex tool to get build ids. PAL fix for single-file superhost. Fix elfreader allocation assert in debug. The 'new' did not use utilcode overrides but the 'delete' did. Added a line to the build-job.yml pipeline to build the new clr.diagtools subset before the native coreclr runtime build because it uses the build-runtime scripts directly. Added a Versions.props property for the Microsoft.FileFormats version and updated it to the latest. Changed the GetModuleIndex to take an input and output file instead of using output redirection to write it because some messages from the dotnet.cmd script used to run it got written to the output h file. Added FEATURE_SINGLE_FILE_DIAGNOSTICS cmake flag so build-runtime.sh can work without clr.buildtools subset
Diffstat (limited to 'src/coreclr/clrfeatures.cmake')
-rw-r--r--src/coreclr/clrfeatures.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/coreclr/clrfeatures.cmake b/src/coreclr/clrfeatures.cmake
index 9025602a3c6..1687bc50568 100644
--- a/src/coreclr/clrfeatures.cmake
+++ b/src/coreclr/clrfeatures.cmake
@@ -27,3 +27,9 @@ endif(NOT DEFINED FEATURE_STANDALONE_GC)
if(NOT DEFINED FEATURE_AUTO_TRACE)
set(FEATURE_AUTO_TRACE 0)
endif(NOT DEFINED FEATURE_AUTO_TRACE)
+
+if(NOT DEFINED FEATURE_SINGLE_FILE_DIAGNOSTICS)
+ if(CLR_CMAKE_HOST_LINUX OR CLR_CMAKE_HOST_WIN32)
+ set(FEATURE_SINGLE_FILE_DIAGNOSTICS 1)
+ endif(CLR_CMAKE_HOST_LINUX OR CLR_CMAKE_HOST_WIN32)
+endif(NOT DEFINED FEATURE_SINGLE_FILE_DIAGNOSTICS)