Skip to content

Commit

Permalink
Put back dumpasync native entrypoint
Browse files Browse the repository at this point in the history
To enable `!dumpasync` rather than `!ext dumpasync` in windbg/lldb
  • Loading branch information
stephentoub committed Mar 29, 2022
1 parent 18a9f37 commit 9070c4e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SOS/Strike/sos.def
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ EXPORTS
dumparray=DumpArray
DumpAssembly
dumpassembly=DumpAssembly
DumpAsync
dumpasync=DumpAsync
DumpClass
dumpclass=DumpClass
DumpDelegate
Expand Down
1 change: 1 addition & 0 deletions src/SOS/Strike/sos_unixexports.src
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dbgout
DumpALC
DumpArray
DumpAssembly
DumpAsync
DumpClass
DumpDelegate
DumpDomain
Expand Down
9 changes: 9 additions & 0 deletions src/SOS/Strike/strike.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16265,6 +16265,15 @@ DECLARE_API(clrmodules)
return ExecuteCommand("clrmodules", args);
}

//
// Dumps async stacks
//
DECLARE_API(DumpAsync)
{
INIT_API_EXT();
return ExecuteCommand("dumpasync", args);
}

//
// Enables and disables managed extension logging
//
Expand Down
1 change: 1 addition & 0 deletions src/SOS/lldbplugin/soscommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ sosCommandInitialize(lldb::SBDebugger debugger)
g_services->AddCommand("logging", new sosCommand("logging"), "Enable/disable internal SOS logging.");
g_services->AddCommand("dumpalc", new sosCommand("DumpALC"), "Displays details about a collectible AssemblyLoadContext to which the specified object is loaded.");
g_services->AddCommand("dumparray", new sosCommand("DumpArray"), "Displays details about a managed array.");
g_services->AddCommand("dumpasync", new sosCommand("DumpAsync"), "Displays information about async \"stacks\" on the garbage-collected heap.");
g_services->AddCommand("dumpassembly", new sosCommand("DumpAssembly"), "Displays details about an assembly.");
g_services->AddCommand("dumpclass", new sosCommand("DumpClass"), "Displays information about a EE class structure at the specified address.");
g_services->AddCommand("dumpdelegate", new sosCommand("DumpDelegate"), "Displays information about a delegate.");
Expand Down

0 comments on commit 9070c4e

Please sign in to comment.