From 752e03a7c1ac5f3539c3294d71d943269e442643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Le=20Gouguec?= Date: Mon, 20 May 2024 17:22:50 +0200 Subject: gdb: Fix Windows build after #include shuffle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this patch, the build chokes on: ../../src/gdb/windows-nat.c:384:21: error: field 'm_debug_event_pending' has incomplete type 'std::atomic' 384 | std::atomic m_debug_event_pending { false }; | ^~~~~~~~~~~~~~~~~~~~~ In file included from […gcc tree…]/include/c++/13.2.1/bits/shared_ptr_atomic.h:33, from […gcc tree…]/include/c++/13.2.1/memory:81, from ../../src/gdb/../gdbsupport/gdb_unique_ptr.h:23, from ../../src/gdb/../gdbsupport/common-utils.h:26, from ../../src/gdb/../gdbsupport/common-defs.h:199, from ./../../src/gdb/defs.h:26, from : […gcc tree…]/include/c++/13.2.1/bits/atomic_base.h:174:12: note: declaration of 'struct std::atomic' 174 | struct atomic; | ^~~~~~ make.exe[2]: *** [Makefile:1947: windows-nat.o] Error 1 Presumably windows-nat.c relied on objfiles.h including , which was undone in 2024-05-16 "gdb: remove unused includes in objfiles.{c,h}" (f617661c110). --- gdb/windows-nat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 70f955d..e4feea1 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -41,6 +41,7 @@ #include #endif #include +#include #include #include -- cgit v1.1