]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: fix include for gdb_signal in target/waitstatus.h
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 19 Apr 2024 20:04:32 +0000 (16:04 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 19 Apr 2024 20:07:59 +0000 (16:07 -0400)
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
gdb/target/waitstatus.c
gdb/target/waitstatus.h

index a5900fe4ee8f5fa4f563a8864ecfbfb81f184207..4378177bc8c49de31b4fc156eb0864ed0d7795c5 100644 (file)
@@ -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 <vector>
 
 extern char **environ;
index 30c0621326fd7ccb0fedc1e871da0c2a696a49a9..9e9b5633b12d803dc2e9d9ac95d38a232525e86c 100644 (file)
@@ -18,6 +18,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "waitstatus.h"
+#include "gdbsupport/gdb_signals.h"
 
 /* See waitstatus.h.  */
 
index dce1a7f3175eef0c284ee2df5ece85b32873a936..7d5ad3f97769c62b2555ec3efcf2a5abe5fc91a2 100644 (file)
@@ -21,7 +21,7 @@
 #define TARGET_WAITSTATUS_H
 
 #include "diagnostics.h"
-#include "gdbsupport/gdb_signals.h"
+#include "gdb/signals.h"
 
 /* Stuff for target_wait.  */