[Lldb-commits] [lldb] [lldb] Add a "plugin" log category to the gdb-remote channel (PR #202359)
satyanarayana reddy janga via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 8 10:50:01 PDT 2026
https://github.com/satyajanga updated https://github.com/llvm/llvm-project/pull/202359
>From 47ecf48bc9c310fca1fba36851c7c87e962ab6c6 Mon Sep 17 00:00:00 2001
From: satya janga <satyajanga at fb.com>
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 debug 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..adbde66723eaf 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 debug 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..6e770780e6f78 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 debug server plugin activity
+ LLVM_MARK_AS_BITMASK_ENUM(Plugin)
};
LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE();
More information about the lldb-commits
mailing list