[Lldb-commits] [lldb] [llvm] [lldb] Do not stop the process on SIGWINCH by default. (PR #163182)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 14 08:18:50 PDT 2025
https://github.com/da-viper updated https://github.com/llvm/llvm-project/pull/163182
>From 6496939fcb48b7ac415889b6b2477c68c5383a39 Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <yerimyah1 at gmail.com>
Date: Sun, 12 Oct 2025 17:45:43 +0100
Subject: [PATCH 1/3] [lldb] do not stop the process on SIGWINCH by default.
SIGWINCH is sent when the terminal window size changes..
Most people debugging do not want the process on this signal.
When using lldb-dap, the user may be using an integrated terminal
and may resize the pane/window mulitple times when debugging.
this causes the signal to be sent multiple times. It gets in the way.
The process ignores this signal by default
---
lldb/source/Plugins/Process/Utility/GDBRemoteSignals.cpp | 2 +-
lldb/source/Plugins/Process/Utility/LinuxSignals.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lldb/source/Plugins/Process/Utility/GDBRemoteSignals.cpp b/lldb/source/Plugins/Process/Utility/GDBRemoteSignals.cpp
index 15981a2c1cb80..a8d18f774c361 100644
--- a/lldb/source/Plugins/Process/Utility/GDBRemoteSignals.cpp
+++ b/lldb/source/Plugins/Process/Utility/GDBRemoteSignals.cpp
@@ -47,7 +47,7 @@ void GDBRemoteSignals::Reset() {
AddSignal(25, "SIGXFSZ", false, true, true, "file size limit exceeded");
AddSignal(26, "SIGVTALRM", false, true, true, "virtual time alarm");
AddSignal(27, "SIGPROF", false, false, false, "profiling time alarm");
- AddSignal(28, "SIGWINCH", false, true, true, "window size changes");
+ AddSignal(28, "SIGWINCH", false, false, false, "window size changes");
AddSignal(29, "SIGLOST", false, true, true, "resource lost");
AddSignal(30, "SIGUSR1", false, true, true, "user defined signal 1");
AddSignal(31, "SIGUSR2", false, true, true, "user defined signal 2");
diff --git a/lldb/source/Plugins/Process/Utility/LinuxSignals.cpp b/lldb/source/Plugins/Process/Utility/LinuxSignals.cpp
index 5346babc18576..dbbfc6a352e02 100644
--- a/lldb/source/Plugins/Process/Utility/LinuxSignals.cpp
+++ b/lldb/source/Plugins/Process/Utility/LinuxSignals.cpp
@@ -160,7 +160,7 @@ void LinuxSignals::Reset() {
ADD_LINUX_SIGNAL(25, "SIGXFSZ", false, true, true, "file size limit exceeded");
ADD_LINUX_SIGNAL(26, "SIGVTALRM", false, true, true, "virtual time alarm");
ADD_LINUX_SIGNAL(27, "SIGPROF", false, false, false, "profiling time alarm");
- ADD_LINUX_SIGNAL(28, "SIGWINCH", false, true, true, "window size changes");
+ ADD_LINUX_SIGNAL(28, "SIGWINCH", false, false, false, "window size changes");
ADD_LINUX_SIGNAL(29, "SIGIO", false, true, true, "input/output ready/Pollable event", "SIGPOLL");
ADD_LINUX_SIGNAL(30, "SIGPWR", false, true, true, "power failure");
ADD_LINUX_SIGNAL(31, "SIGSYS", false, true, true, "invalid system call");
>From 7a1c57f519cc38fa22aed05756c915d22fd0be9b Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <yerimyah1 at gmail.com>
Date: Tue, 14 Oct 2025 13:45:04 +0100
Subject: [PATCH 2/3] Add Release note.
---
llvm/docs/ReleaseNotes.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/llvm/docs/ReleaseNotes.md b/llvm/docs/ReleaseNotes.md
index 79d93d08b8398..6623b87ac1b31 100644
--- a/llvm/docs/ReleaseNotes.md
+++ b/llvm/docs/ReleaseNotes.md
@@ -169,6 +169,9 @@ Changes to LLDB
* LLDB can now set breakpoints, show backtraces, and display variables when
debugging Wasm with supported runtimes (WAMR and V8).
+* LLDB no longer stops processes by default when receiving SIGWINCH signals
+ (window resize events) on Linux. This is the default on other Unix platforms.
+
Changes to BOLT
---------------------------------
>From 60bfc828cd513a2047dc00f81ebfa3e54befa698 Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <yerimyah1 at gmail.com>
Date: Tue, 14 Oct 2025 16:18:35 +0100
Subject: [PATCH 3/3] Update ReleaseNotes.md
---
llvm/docs/ReleaseNotes.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/docs/ReleaseNotes.md b/llvm/docs/ReleaseNotes.md
index 6623b87ac1b31..e70e670ee3d29 100644
--- a/llvm/docs/ReleaseNotes.md
+++ b/llvm/docs/ReleaseNotes.md
@@ -171,6 +171,7 @@ Changes to LLDB
debugging Wasm with supported runtimes (WAMR and V8).
* LLDB no longer stops processes by default when receiving SIGWINCH signals
(window resize events) on Linux. This is the default on other Unix platforms.
+ You can re-enable it using `process handle --notify=false --stop=false SIGWINCH`.
Changes to BOLT
More information about the lldb-commits
mailing list