[Lldb-commits] [lldb] [lldb][Process/FreeBSDKernelCore] Add command for refreshing thread list (PR #188692)
Minsoo Choo via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 25 23:47:07 PDT 2026
================
@@ -60,20 +62,61 @@ static PluginProperties &GetGlobalPluginProperties() {
return g_settings;
}
+class CommandObjectProcessFreeBSDKernelCoreRefreshThreads
+ : public CommandObjectParsed {
+public:
+ CommandObjectProcessFreeBSDKernelCoreRefreshThreads(
+ CommandInterpreter &interpreter)
+ : CommandObjectParsed(
+ interpreter, "process plugin refresh-threads",
+ "Refresh the thread list from the FreeBSD kernel core dump. "
+ "This flushes the memory cache and re-reads the kernel's "
+ "allproc/zombie lists to rebuild the thread list from scratch.",
+ "process plugin refresh-threads") {}
+
+ ~CommandObjectProcessFreeBSDKernelCoreRefreshThreads() override = default;
+
+protected:
+ void DoExecute(Args &command, CommandReturnObject &result) override {
+ // TODO: Return early for elf-core based implementation.
+
+ auto *process = static_cast<ProcessFreeBSDKernelCore *>(
----------------
mchoo7 wrote:
Just out of curiosity, does llvm coding style approve `auto` instead of `auto *`? The result is the same.
https://github.com/llvm/llvm-project/pull/188692
More information about the lldb-commits
mailing list