Skip to content

Conversation

@mikem8361
Copy link
Contributor

Add the CLRMA exports on SOS.dll. Implement the CLRMA interfaces on top of ICrashInfoServices.

Update ICrashInfoService to be more generic and not JSON crash info specific.

Renamed IManagedException to IException.

Add IStackFrame.GetMethodName replacing Offset/MethodName.

Cleanup/change name of SOSHost.INativeClient

Change TraceError used in extensions lib not to depend on SOS globals being initialized

Add the CLRMA exports on SOS.dll. Implement the CLRMA interfaces on top of ICrashInfoServices.

Update ICrashInfoService to be more generic and not JSON crash info specific.

Renamed IManagedException to IException.

Add IStackFrame.GetMethodName replacing Offset/MethodName.

Cleanup/change name of SOSHost.INativeClient

Change TraceError used in extensions lib not to depend on SOS globals being initialized
@mikem8361 mikem8361 self-assigned this Dec 22, 2023
@mikem8361 mikem8361 requested a review from a team as a code owner December 22, 2023 19:27
@mikem8361 mikem8361 merged commit 684a636 into dotnet:main Dec 23, 2023
@mikem8361 mikem8361 deleted the clrma branch December 23, 2023 07:53

namespace SOS.Extensions.Clrma
{
public sealed class ExceptionWrapper : COMCallableIUnknown
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to put a managed<->native marshalling layer into SOS for this? My understanding was that CLRMA was able to interact with CLRMD directly using its managed API - couldn't we do the same when it interacts with SOS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CLRMA interfaces are all C++/COM. There was an managed C++ interop wrapper dll and C# provider that used CLRMD but it was abandoned and removed. It seemed a lot simpler to just do the interop myself since SOS already does this a lot.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants