Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into release branch #2444

Merged
merged 102 commits into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
1c9714c
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] May 27, 2021
92bffb2
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] May 27, 2021
bec3757
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] May 28, 2021
3ccfb52
[main] Update dependencies from dotnet/runtime (#2321)
dotnet-maestro[bot] May 30, 2021
4a77751
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] May 30, 2021
5114029
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] May 31, 2021
11f712d
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] May 31, 2021
2624296
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 1, 2021
deda636
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 1, 2021
e85eba2
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 2, 2021
17f22ce
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 2, 2021
1e330f4
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 3, 2021
31c28f2
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 3, 2021
dd57ff4
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 4, 2021
875e243
Update dependencies from https://github.com/microsoft/clrmd build 202…
dotnet-maestro[bot] Jun 4, 2021
2b97d46
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 4, 2021
564de98
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 5, 2021
9018382
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 5, 2021
9201cf9
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 5, 2021
080d27e
Fix a NullRefException by finished process (#2338)
sywhang Jun 6, 2021
7a29429
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 6, 2021
ef437fe
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 6, 2021
f9e24b0
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 7, 2021
73d2fa7
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 7, 2021
71320cd
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 8, 2021
1cad2e2
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 8, 2021
62fdde2
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 9, 2021
0c9868f
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 9, 2021
5555d2a
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 10, 2021
9682de2
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 10, 2021
3d57bee
Update `ThreadCounts` usage based on a change (#2324)
kouvel Jun 10, 2021
2e4a0c0
Remove the CLRMD dependency from Microsoft.Diagnostics.DebugServices …
mikem8361 Jun 11, 2021
fffa91f
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 11, 2021
74a1057
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 11, 2021
cf90c50
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 12, 2021
6e53498
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 12, 2021
6200057
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 13, 2021
b1420fc
Add IVT for Microsoft.Diagnostics.Monitoring.WebApi (#2355)
jander-msft Jun 15, 2021
605d548
[main] Update dependencies from dotnet/runtime (#2364)
dotnet-maestro[bot] Jun 16, 2021
24d52ed
[main] Update dependencies from dotnet/runtime (#2372)
dotnet-maestro[bot] Jun 17, 2021
2972bc3
[main] Update dependencies from dotnet/aspnetcore (#2365)
dotnet-maestro[bot] Jun 18, 2021
b6df99f
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 18, 2021
7b253a5
Add runtime resume option to dotnet-trace and dotnet-counters. (#2343)
lateralusX Jun 18, 2021
5e747b4
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 19, 2021
ac80218
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 19, 2021
29e7946
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 20, 2021
ca79977
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 20, 2021
3451a6d
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 21, 2021
aa0200f
[main] Update dependencies from dotnet/runtime (#2384)
dotnet-maestro[bot] Jun 23, 2021
92fdadf
[main] Update dependencies from dotnet/aspnetcore (#2383)
dotnet-maestro[bot] Jun 23, 2021
296bda6
Add adb port forward and usbmux support to dsrouter. (#2366)
lateralusX Jun 23, 2021
250740a
Updates scripts for LLVM/Clang versions that are double digits (#2386)
Thefrank Jun 24, 2021
ed4c547
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 24, 2021
f7d2b85
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 24, 2021
9ddcba5
Fix build break on xcode 12 (#2390)
mikem8361 Jun 25, 2021
084ef2c
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 25, 2021
038c84f
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 25, 2021
6f48c2a
Use a different way of recognizing a GC build using regions that work…
PeterSolMS Jun 25, 2021
c088402
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 26, 2021
fa415c4
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 26, 2021
a9389e9
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 27, 2021
e80ec9d
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 28, 2021
dfb97e8
Add new DiagnosticClient commands for IPC features (#2268)
davmason Jun 28, 2021
8e7cb4c
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 29, 2021
a584d05
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 29, 2021
ad0806f
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jun 30, 2021
74ee166
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jun 30, 2021
7f2fffa
Remove endpoint info, runtime info, and command line helper. (#2371)
jander-msft Jul 1, 2021
b1d8624
Add GetProcessInfo2 command, response, tests, and docs. (#2360)
jander-msft Jul 1, 2021
2307658
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jul 1, 2021
1704288
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jul 1, 2021
4e85e56
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jul 2, 2021
bc777c8
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jul 2, 2021
6296c96
Update DumpObj command to show TrackedType and TaggedMemory (#2407)
AaronRobinsonMSFT Jul 2, 2021
f4b0a88
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jul 3, 2021
b7544d9
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jul 3, 2021
4be19c7
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jul 5, 2021
b9f2ffb
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jul 5, 2021
f31ff2e
Clean up error code used by dotnet-counters and dotnet-trace (#2412)
sywhang Jul 6, 2021
aa95d90
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jul 6, 2021
b0fbc75
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jul 6, 2021
d6236fa
Add dsrouter client-client mode. (#2385)
lateralusX Jul 6, 2021
759138b
Fix DSRouter build break in diag client (#2421)
hoyosjs Jul 7, 2021
c40b61d
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jul 7, 2021
794e2b7
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jul 7, 2021
715a291
fix building native component for FreeBSD (#2419)
Thefrank Jul 7, 2021
2a4c122
Implement tooling support to connect using custom IPC channels. (#2374)
lateralusX Jul 8, 2021
5933cd8
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jul 8, 2021
429f3b7
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jul 8, 2021
fb5af08
Disable dsrouter single-file publish (#2337)
hoyosjs Jul 9, 2021
85aa8c9
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jul 9, 2021
0645689
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jul 9, 2021
086d6ed
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jul 10, 2021
1e8c64e
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Jul 10, 2021
82c004f
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jul 11, 2021
a01d3e9
[main] Update dependencies from dotnet/runtime (#2432)
dotnet-maestro[bot] Jul 12, 2021
2b2a188
Remove erroneous mentions of reverse server in comments (#2433)
davmason Jul 13, 2021
4d3906d
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jul 13, 2021
419db65
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Jul 14, 2021
ce3b20d
Fix clrstack -i crash (#2440)
mikem8361 Jul 16, 2021
9a79ec2
Fix fallback for resumeruntime (#2441)
Jul 20, 2021
8cffa1d
Merge branch 'main' into release/stable
hoyosjs Jul 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions compileoptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ if(CLR_CMAKE_PLATFORM_UNIX_ARM)
endif(ARM_SOFTFP)
endif(CLR_CMAKE_PLATFORM_UNIX_ARM)

if(CLR_CMAKE_PLATFORM_FREEBSD)
add_compile_options(-Wno-macro-redefined)
add_compile_options(-Wno-pointer-to-int-cast)
endif(CLR_CMAKE_PLATFORM_FREEBSD)

if (WIN32)
# Compile options for targeting windows

Expand Down
62 changes: 60 additions & 2 deletions documentation/design-docs/ipc-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,10 @@ See: [Profiler Commands](#Profiler-Commands)
```c++
enum class ProcessCommandId : uint8_t
{
ProcessInfo = 0x00,
ResumeRuntime = 0x01,
ProcessInfo = 0x00,
ResumeRuntime = 0x01,
ProcessEnvironment = 0x02,
ProcessInfo2 = 0x04,
// future
}
```
Expand Down Expand Up @@ -787,6 +789,62 @@ struct Payload
}
```

> Available since .NET 6.0

### `ProcessInfo2`

Command Code: `0x0404`

The `ProcessInfo2` command queries the runtime for some basic information about the process. The returned payload has the same information as that of the `ProcessInfo` command in addition to the managed entrypoint assembly name and CLR product version.

In the event of an [error](#Errors), the runtime will attempt to send an error message and subsequently close the connection.

#### Inputs:

Header: `{ Magic; Size; 0x0402; 0x0000 }`

There is no payload.

#### Returns (as an IPC Message Payload):

Header: `{ Magic; size; 0xFF00; 0x0000; }`

Payload:
* `int64 processId`: the process id in the process's PID-space
* `GUID runtimeCookie`: a 128-bit GUID that should be unique across PID-spaces
* `string commandLine`: the command line that invoked the process
* Windows: will be the same as the output of `GetCommandLineW`
* Non-Windows: will be the fully qualified path of the executable in `argv[0]` followed by all arguments as the appear in `argv` separated by spaces, i.e., `/full/path/to/argv[0] argv[1] argv[2] ...`
* `string OS`: the operating system that the process is running on
* macOS => `"macOS"`
* Windows => `"Windows"`
* Linux => `"Linux"`
* other => `"Unknown"`
* `string arch`: the architecture of the process
* 32-bit => `"x86"`
* 64-bit => `"x64"`
* ARM32 => `"arm32"`
* ARM64 => `"arm64"`
* Other => `"Unknown"`
* `string managedEntrypointAssemblyName`: the assembly name from the assembly identity of the entrypoint assembly of the process. This is the same value that is returned from executing `System.Reflection.Assembly.GetEntryAssembly().GetName().Name` in the target process.
* `string clrProductVersion`: the product version of the CLR of the process; may contain prerelease label information e.g. `6.0.0-preview.6.#####`

##### Details:

Returns:
```c++
struct Payload
{
uint64_t ProcessId;
LPCWSTR CommandLine;
LPCWSTR OS;
LPCWSTR Arch;
GUID RuntimeCookie;
LPCWSTR ManagedEntrypointAssemblyName;
LPCWSTR ClrProductVersion;
}
```

## Errors

In the event an error occurs in the handling of an Ipc Message, the Diagnostic Server will attempt to send an Ipc Message encoding the error and subsequently close the connection. The connection will be closed **regardless** of the success of sending the error message. The Client is expected to be resilient in the event of a connection being abruptly closed.
Expand Down
26 changes: 24 additions & 2 deletions documentation/diagnostics-client-library-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,36 @@ public static void PrintEventsLive(int processId)

This sample shows how to attach an ICorProfiler to a process (profiler attach).
```cs
public static int AttachProfiler(int processId, Guid profilerGuid, string profilerPath)
public static void AttachProfiler(int processId, Guid profilerGuid, string profilerPath)
{
var client = new DiagnosticsClient(processId);
return client.AttachProfiler(TimeSpan.FromSeconds(10), profilerGuid, profilerPath);
client.AttachProfiler(TimeSpan.FromSeconds(10), profilerGuid, profilerPath);
}
```

#### 8. Set an ICorProfiler to be used as the startup profiler

This sample shows how to request that the runtime use an ICorProfiler as the startup profiler (not as an attaching profiler). It is only valid to issue this command while the runtime is paused in "reverse server" mode.

```cs
public static void SetStartupProfilerProfiler(Guid profilerGuid, string profilerPath)
{
var client = new DiagnosticsClient(processId);
client.SetStartupProfiler(profilerGuid, profilerPath);
}
```

#### 9. Resume the runtime when it is paused in reverse server mode

This sample shows how a client can instruct the runtime to resume loading after it has been paused in "reverse server" mode.

```cs
public static void ResumeRuntime(Guid profilerGuid, string profilerPath)
{
var client = new DiagnosticsClient(processId);
client.ResumeRuntime();
}
```

## API Description

Expand Down
24 changes: 12 additions & 12 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<Uri>https://github.com/dotnet/symstore</Uri>
<Sha>3ed87724fe4e98c7ecc77617720591783ee2e676</Sha>
</Dependency>
<Dependency Name="Microsoft.Diagnostics.Runtime" Version="2.0.226801">
<Dependency Name="Microsoft.Diagnostics.Runtime" Version="2.0.230301">
<Uri>https://github.com/microsoft/clrmd</Uri>
<Sha>52b244f9b62e7a4e398f0cd9cb99d3c9a76f3130</Sha>
<Sha>957981f36eeccb6e9d266407df6522ca5cfbd899</Sha>
</Dependency>
<Dependency Name="Microsoft.Diagnostics.Runtime.Utilities" Version="2.0.226801">
<Dependency Name="Microsoft.Diagnostics.Runtime.Utilities" Version="2.0.230301">
<Uri>https://github.com/microsoft/clrmd</Uri>
<Sha>52b244f9b62e7a4e398f0cd9cb99d3c9a76f3130</Sha>
<Sha>957981f36eeccb6e9d266407df6522ca5cfbd899</Sha>
</Dependency>
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="6.0.100-preview.1.21103.13">
<Uri>https://github.com/dotnet/installer</Uri>
Expand All @@ -32,21 +32,21 @@
<Sha>7f13798e5f567b72ffe63205bf49839245f0f8c1</Sha>
<SourceBuild RepoName="arcade" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.AspNetCore.App.Ref.Internal" Version="6.0.0-preview.6.21275.8">
<Dependency Name="Microsoft.AspNetCore.App.Ref.Internal" Version="6.0.0-preview.7.21363.17">
<Uri>https://github.com/dotnet/aspnetcore</Uri>
<Sha>e7b5aa6f713e9f040ba0730b915ae407d35971c1</Sha>
<Sha>837b17847c427be12d69623cf32223c10a4ddba5</Sha>
</Dependency>
<Dependency Name="Microsoft.AspNetCore.App.Ref" Version="6.0.0-preview.6.21275.8">
<Dependency Name="Microsoft.AspNetCore.App.Ref" Version="6.0.0-preview.7.21363.17">
<Uri>https://github.com/dotnet/aspnetcore</Uri>
<Sha>e7b5aa6f713e9f040ba0730b915ae407d35971c1</Sha>
<Sha>837b17847c427be12d69623cf32223c10a4ddba5</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.App.Runtime.win-x64" Version="6.0.0-preview.6.21276.1">
<Dependency Name="Microsoft.NETCore.App.Runtime.win-x64" Version="6.0.0-preview.7.21361.10">
<Uri>https://github.com/dotnet/runtime</Uri>
<Sha>f584c7401a24781b4c8e8e2a8097b85462ee4941</Sha>
<Sha>98b7ed1a3b0543a31b5a0f9069cf44cb70c9230c</Sha>
</Dependency>
<Dependency Name="VS.Redist.Common.NetCore.SharedFramework.x64.6.0" Version="6.0.0-preview.6.21276.1">
<Dependency Name="VS.Redist.Common.NetCore.SharedFramework.x64.6.0" Version="6.0.0-preview.7.21361.10">
<Uri>https://github.com/dotnet/runtime</Uri>
<Sha>f584c7401a24781b4c8e8e2a8097b85462ee4941</Sha>
<Sha>98b7ed1a3b0543a31b5a0f9069cf44cb70c9230c</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
12 changes: 6 additions & 6 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<MicrosoftNETCoreApp50Version>5.0.6</MicrosoftNETCoreApp50Version>
<MicrosoftAspNetCoreApp50Version>$(MicrosoftNETCoreApp50Version)</MicrosoftAspNetCoreApp50Version>
<!-- Latest shared runtime version updated by darc -->
<VSRedistCommonNetCoreSharedFrameworkx6460Version>6.0.0-preview.6.21276.1</VSRedistCommonNetCoreSharedFrameworkx6460Version>
<MicrosoftNETCoreAppRuntimewinx64Version>6.0.0-preview.6.21276.1</MicrosoftNETCoreAppRuntimewinx64Version>
<VSRedistCommonNetCoreSharedFrameworkx6460Version>6.0.0-preview.7.21361.10</VSRedistCommonNetCoreSharedFrameworkx6460Version>
<MicrosoftNETCoreAppRuntimewinx64Version>6.0.0-preview.7.21361.10</MicrosoftNETCoreAppRuntimewinx64Version>
<!-- Latest shared aspnetcore version updated by darc -->
<MicrosoftAspNetCoreAppRefInternalVersion>6.0.0-preview.6.21275.8</MicrosoftAspNetCoreAppRefInternalVersion>
<MicrosoftAspNetCoreAppRefVersion>6.0.0-preview.6.21275.8</MicrosoftAspNetCoreAppRefVersion>
<MicrosoftAspNetCoreAppRefInternalVersion>6.0.0-preview.7.21363.17</MicrosoftAspNetCoreAppRefInternalVersion>
<MicrosoftAspNetCoreAppRefVersion>6.0.0-preview.7.21363.17</MicrosoftAspNetCoreAppRefVersion>
<!-- dotnet/installer: Testing version of the SDK. Needed for the signed & entitled host. -->
<MicrosoftDotnetSdkInternalVersion>6.0.100-preview.1.21103.13</MicrosoftDotnetSdkInternalVersion>
</PropertyGroup>
Expand All @@ -36,8 +36,8 @@
<MicrosoftWin32PrimitivesVersion>4.3.0</MicrosoftWin32PrimitivesVersion>
<!-- Other libs -->
<MicrosoftBclAsyncInterfacesVersion>1.1.0</MicrosoftBclAsyncInterfacesVersion>
<MicrosoftDiagnosticsRuntimeVersion>2.0.226801</MicrosoftDiagnosticsRuntimeVersion>
<MicrosoftDiagnosticsRuntimeUtilitiesVersion>2.0.226801</MicrosoftDiagnosticsRuntimeUtilitiesVersion>
<MicrosoftDiagnosticsRuntimeVersion>2.0.230301</MicrosoftDiagnosticsRuntimeVersion>
<MicrosoftDiagnosticsRuntimeUtilitiesVersion>2.0.230301</MicrosoftDiagnosticsRuntimeUtilitiesVersion>
<MicrosoftDiaSymReaderNativePackageVersion>16.9.0-beta1.21055.5</MicrosoftDiaSymReaderNativePackageVersion>
<MicrosoftDiagnosticsTracingTraceEventVersion>2.0.64</MicrosoftDiagnosticsTracingTraceEventVersion>
<MicrosoftExtensionsLoggingVersion>2.1.1</MicrosoftExtensionsLoggingVersion>
Expand Down
13 changes: 2 additions & 11 deletions eng/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ case $CPUName in
__HostArch=x86
;;

x86_64)
x86_64|amd64)
__BuildArch=x64
__HostArch=x64
;;
Expand Down Expand Up @@ -259,7 +259,7 @@ while :; do
-clang*)
__Compiler=clang
# clangx.y or clang-x.y
version="$(echo "$lowerI" | tr -d '[:alpha:]-=')"
version="$(echo "$1" | tr -d '[:alpha:]-=')"
parts=(${version//./ })
__ClangMajorVersion="${parts[0]}"
__ClangMinorVersion="${parts[1]}"
Expand Down Expand Up @@ -433,15 +433,6 @@ if [ "$__HostOS" == "OSX" ]; then

export MACOSX_DEPLOYMENT_TARGET=10.12

# If Xcode 9.2 exists (like on the CI/build machines), use that. Xcode 9.3 or
# greater (swift 4.1 lldb) doesn't work that well (seg faults on exit).
if [ -f "/Applications/Xcode_9.2.app/Contents/Developer/usr/bin/lldb" ]; then
if [ -f "/Applications/Xcode_9.2.app/Contents/SharedFrameworks/LLDB.framework/LLDB" ]; then
export LLDB_PATH=/Applications/Xcode_9.2.app/Contents/Developer/usr/bin/lldb
export LLDB_LIB=/Applications/Xcode_9.2.app/Contents/SharedFrameworks/LLDB.framework/LLDB
fi
fi

if [ ! -f $LLDB_LIB ]; then
echo "Cannot find the lldb library. Try installing Xcode."
exit 1
Expand Down
6 changes: 5 additions & 1 deletion eng/common/native/find-native-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ check_version_exists() {
desired_version="$1$2"
elif command -v "$compiler-$1$2" > /dev/null; then
desired_version="-$1$2"
elif command -v "$compiler$1" > /dev/null; then
desired_version="$1"
elif command -v "$compiler-$1" > /dev/null; then
desired_version="-$1"
fi

echo "$desired_version"
Expand All @@ -55,7 +59,7 @@ if [ -z "$CLR_CC" ]; then
# Set default versions
if [ -z "$majorVersion" ]; then
# note: gcc (all versions) and clang versions higher than 6 do not have minor version in file name, if it is zero.
if [ "$compiler" = "clang" ]; then versions=( 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5 )
if [ "$compiler" = "clang" ]; then versions=( 12 11 10 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5 )
elif [ "$compiler" = "gcc" ]; then versions=( 9 8 7 6 5 4.9 ); fi

for version in "${versions[@]}"; do
Expand Down
6 changes: 6 additions & 0 deletions eng/gen-buildsys-clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ elif command -v "clang$2$3" > /dev/null
elif command -v "clang-$2$3" > /dev/null
then
desired_llvm_version="-$2$3"
elif command -v "clang-$2" > /dev/null
then
desired_llvm_version="-$2"
elif command -v "clang$2" > /dev/null
then
desired_llvm_version="$2"
elif command -v clang > /dev/null
then
desired_llvm_version=
Expand Down
20 changes: 10 additions & 10 deletions src/Microsoft.Diagnostics.DebugServices.Implementation/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public enum Flags : byte

private readonly IDisposable _onChangeEvent;
private Flags _flags;
private PdbInfo _pdbInfo;
private PdbFileInfo _pdbFileInfo;
private ImmutableArray<byte> _buildId;
private VersionInfo? _version;
private VersionData _versionData;
private PEImage _peImage;

public readonly ServiceProvider ServiceProvider;
Expand Down Expand Up @@ -118,12 +118,12 @@ public bool? IsFileLayout
}
}

public PdbInfo PdbInfo
public PdbFileInfo PdbFileInfo
{
get
{
GetPEInfo();
return _pdbInfo;
return _pdbFileInfo;
}
}

Expand All @@ -147,10 +147,10 @@ public ImmutableArray<byte> BuildId
}
}

public virtual VersionInfo? Version
public virtual VersionData VersionData
{
get { return _version; }
set { _version = value; }
get { return _versionData; }
set { _versionData = value; }
}

public abstract string VersionString { get; }
Expand All @@ -162,7 +162,7 @@ protected void GetVersionFromVersionString()
GetPEInfo();

// If we can't get the version from the PE, search for version string embedded in the module data
if (!_version.HasValue && !IsPEImage)
if (_versionData is null && !IsPEImage)
{
string versionString = VersionString;
if (versionString != null)
Expand All @@ -178,7 +178,7 @@ protected void GetVersionFromVersionString()
try
{
Version version = System.Version.Parse(versionToParse);
_version = new VersionInfo(version.Major, version.Minor, version.Build, version.Revision);
_versionData = new VersionData(version.Major, version.Minor, version.Build, version.Revision);
}
catch (ArgumentException ex)
{
Expand All @@ -192,7 +192,7 @@ protected void GetVersionFromVersionString()
protected PEImage GetPEInfo()
{
if (InitializeValue(Flags.InitializePEInfo)) {
_peImage = ModuleService.GetPEInfo(ImageBase, ImageSize, ref _pdbInfo, ref _version, ref _flags);
_peImage = ModuleService.GetPEInfo(ImageBase, ImageSize, ref _pdbFileInfo, ref _versionData, ref _flags);
}
return _peImage;
}
Expand Down
Loading