https://github.com/satyajanga created https://github.com/llvm/llvm-project/pull/202359
Add a GDBRLog::Plugin category (enabled with `log enable gdb-remote plugin`) for logging lldb-server plugin activity, such as the accelerator plugins. >From b6719d9ec0b842eb0435b89bd1c037a4b5a1688b Mon Sep 17 00:00:00 2001 From: satya janga <[email protected]> Date: Mon, 8 Jun 2026 08:13:57 -0700 Subject: [PATCH] [lldb] Add a "plugin" log category to the gdb-remote channel Add a GDBRLog::Plugin category (enabled with `log enable gdb-remote plugin`) for logging lldb-server plugin activity, such as the accelerator plugins. --- lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp | 1 + lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp index f7cd658ea58fa..9530544fd41df 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp @@ -31,6 +31,7 @@ static constexpr Log::Category g_categories[] = { {{"step"}, {"log step related activities"}, GDBRLog::Step}, {{"thread"}, {"log thread events and activities"}, GDBRLog::Thread}, {{"watch"}, {"log watchpoint related activities"}, GDBRLog::Watchpoints}, + {{"plugin"}, {"log lldb-server plugin activities"}, GDBRLog::Plugin}, }; static Log::Channel g_channel(g_categories, GDBRLog::Packets); diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h index f08453fce9547..971090ac6c8f7 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h @@ -27,7 +27,8 @@ enum class GDBRLog : Log::MaskType { Step = Log::ChannelFlag<8>, Thread = Log::ChannelFlag<9>, Watchpoints = Log::ChannelFlag<10>, - LLVM_MARK_AS_BITMASK_ENUM(Watchpoints) + Plugin = Log::ChannelFlag<11>, // Log lldb-server plugin activity + LLVM_MARK_AS_BITMASK_ENUM(Plugin) }; LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE(); _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
