[Lldb-commits] [lldb] [lldb][test] Add missing includes (PR #201794)

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 5 02:19:31 PDT 2026


https://github.com/Teemperor created https://github.com/llvm/llvm-project/pull/201794

These tests only compiled by accident because libc indirectly included the needed headers.

>From 2f421e57d1979b7ad1b3805a4273010e2fb58af1 Mon Sep 17 00:00:00 2001
From: Raphael Isemann <rise at apple.com>
Date: Fri, 5 Jun 2026 10:18:45 +0100
Subject: [PATCH] [lldb][test] Add missing includes

These tests only compiled by accident because libc indirectly included
the needed headers.
---
 lldb/test/API/iohandler/sigint/cat.cpp           | 1 +
 lldb/test/API/tools/lldb-dap/breakpoint/main.cpp | 1 +
 2 files changed, 2 insertions(+)

diff --git a/lldb/test/API/iohandler/sigint/cat.cpp b/lldb/test/API/iohandler/sigint/cat.cpp
index 7e12cf7df7e58..368f5db75224c 100644
--- a/lldb/test/API/iohandler/sigint/cat.cpp
+++ b/lldb/test/API/iohandler/sigint/cat.cpp
@@ -1,3 +1,4 @@
+#include <cerrno>
 #include <cstdio>
 #include <string>
 #include <unistd.h>
diff --git a/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp b/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp
index 2206b07f19494..9788223d9d9b1 100644
--- a/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp
+++ b/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp
@@ -1,6 +1,7 @@
 #include <dlfcn.h>
 #include <stdexcept>
 #include <stdio.h>
+#include <stdlib.h>
 
 int twelve(int i) {
   return 12 + i; // break 12



More information about the lldb-commits mailing list