git: 722b5557437c - main - editors/zed: workaround for GDB issue
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 31 Dec 2025 21:18:36 UTC
The branch main has been updated by mizhka:
URL: https://cgit.FreeBSD.org/ports/commit/?id=722b5557437c53b5dcf9f46d58474b0c575a043a
commit 722b5557437c53b5dcf9f46d58474b0c575a043a
Author: Michael Zhilin <mizhka@FreeBSD.org>
AuthorDate: 2025-12-28 09:25:52 +0000
Commit: Michael Zhilin <mizhka@FreeBSD.org>
CommitDate: 2025-12-31 21:18:27 +0000
editors/zed: workaround for GDB issue
This patch is temporary workaround for GDB issue reported in GitHub:
https://github.com/zed-industries/zed/issues/41753
The subtle is incorrect handling of "setExceptionBreakpoints" resulting into
message "error: notStopped". To avoid it let's skip this call for a while.
At least it works for me
PR: 291998
Approved by: tagattie@
---
editors/zed/Makefile | 1 +
.../patch-crates_project_src_debugger_session.rs | 19 +++++++++++++++++++
2 files changed, 20 insertions(+)
diff --git a/editors/zed/Makefile b/editors/zed/Makefile
index 043b80818de3..0412f6578f57 100644
--- a/editors/zed/Makefile
+++ b/editors/zed/Makefile
@@ -1,6 +1,7 @@
PORTNAME= zed
DISTVERSIONPREFIX= v
DISTVERSION= 0.217.3
+PORTREVISION= 1
CATEGORIES= editors
PKGNAMESUFFIX= -editor
diff --git a/editors/zed/files/patch-crates_project_src_debugger_session.rs b/editors/zed/files/patch-crates_project_src_debugger_session.rs
new file mode 100644
index 000000000000..c0a87ef09ee9
--- /dev/null
+++ b/editors/zed/files/patch-crates_project_src_debugger_session.rs
@@ -0,0 +1,19 @@
+--- crates/project/src/debugger/session.rs.orig 2025-12-27 19:42:13 UTC
++++ crates/project/src/debugger/session.rs
+@@ -496,6 +496,8 @@ impl RunningMode {
+ }
+ })?;
+
++ #[cfg(not(target_os = "freebsd"))]
++ {
+ if should_send_exception_breakpoints {
+ _ = session.update(cx, |this, _| {
+ filters.retain(|filter| {
+@@ -518,6 +520,7 @@ impl RunningMode {
+ this.send_exception_breakpoints(filters, supports_exception_filters)
+ .await
+ .ok();
++ }
+ }
+
+ if configuration_done_supported {