From 559798f82800e1d7a2ef8b86da4a0e169e07efee Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 19 Apr 2024 16:04:32 -0400 Subject: gdb: fix include for gdb_signal in target/waitstatus.h clangd tells me that the gdb_signals.h include in target/waitstatus.h is unused. This include was probably to give access to `enum gdb_signal`, but this is in fact defined in gdb/signals.h. Change the include to gdb/signals.h. Include gdbsupport/gdb_signals.h in some files that were relying on the transitive include. Change-Id: I6f4361b3d801394bf29abe8c1393aff110aa0ad6 --- gdb/nat/fork-inferior.c | 1 + gdb/target/waitstatus.c | 1 + gdb/target/waitstatus.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/nat/fork-inferior.c b/gdb/nat/fork-inferior.c index a5900fe..4378177 100644 --- a/gdb/nat/fork-inferior.c +++ b/gdb/nat/fork-inferior.c @@ -26,6 +26,7 @@ #include "gdbsupport/pathstuff.h" #include "gdbsupport/signals-state-save-restore.h" #include "gdbsupport/gdb_tilde_expand.h" +#include "gdbsupport/gdb_signals.h" #include extern char **environ; diff --git a/gdb/target/waitstatus.c b/gdb/target/waitstatus.c index 30c0621..9e9b563 100644 --- a/gdb/target/waitstatus.c +++ b/gdb/target/waitstatus.c @@ -18,6 +18,7 @@ along with this program. If not, see . */ #include "waitstatus.h" +#include "gdbsupport/gdb_signals.h" /* See waitstatus.h. */ diff --git a/gdb/target/waitstatus.h b/gdb/target/waitstatus.h index dce1a7f..7d5ad3f 100644 --- a/gdb/target/waitstatus.h +++ b/gdb/target/waitstatus.h @@ -21,7 +21,7 @@ #define TARGET_WAITSTATUS_H #include "diagnostics.h" -#include "gdbsupport/gdb_signals.h" +#include "gdb/signals.h" /* Stuff for target_wait. */ -- cgit v1.1