Add ThreadState to the set of allowed APIs in lldb (#2951)
authorJuan Hoyos <juan.s.hoyos@outlook.com>
Fri, 25 Mar 2022 19:11:58 +0000 (12:11 -0700)
committerGitHub <noreply@github.com>
Fri, 25 Mar 2022 19:11:58 +0000 (12:11 -0700)
src/SOS/lldbplugin/soscommand.cpp

index f597eae123d23484825f011dadf0aed8c73f1198..7c278ad2e2e5746e71a74cfd9dcbd1e546222bd6 100644 (file)
@@ -198,6 +198,7 @@ sosCommandInitialize(lldb::SBDebugger debugger)
     g_services->AddCommand("runtimes", new sosCommand("runtimes"), "List the runtimes in the target or change the default runtime.");
     g_services->AddCommand("sosflush", new sosCommand("SOSFlush"), "Flushes the DAC caches.");
     g_services->AddCommand("threadpool", new sosCommand("ThreadPool"), "Displays info about the runtime thread pool.");
+    g_services->AddCommand("threadstate", new sosCommand("ThreadState"), "Pretty prints the meaning of a threads state.");
     g_services->AddCommand("verifyheap", new sosCommand("VerifyHeap"), "Checks the GC heap for signs of corruption.");
     return true;
 }