aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2020-01-12 15:11:07 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2020-01-12 15:22:27 -0500
commit58920b5be048726fca38e4e6ddcaa02ae6d9c1b8 (patch)
tree87047b48455f570be077d31f7419a8b925498118 /gdb
parentc0b0a14290e1909a6cc3febb443560c3e95562c2 (diff)
downloadgdb-58920b5be048726fca38e4e6ddcaa02ae6d9c1b8.zip
gdb-58920b5be048726fca38e4e6ddcaa02ae6d9c1b8.tar.gz
gdb-58920b5be048726fca38e4e6ddcaa02ae6d9c1b8.tar.bz2
gdb: include gdb_wait.h in gdb_wait.c
When building for mingw with -Wmissing-declarations, I get: CXX gdbsupport/gdb_wait.o /binutils-gdb/gdb/gdbsupport/gdb_wait.c:52:1: error: no previous declaration for 'int windows_status_to_termsig(long unsigned int)' [-Wer ror=missing-declarations] 52 | windows_status_to_termsig (unsigned long status) | ^~~~~~~~~~~~~~~~~~~~~~~~~ Make gdb_wait.c include gdb_wait.h to fix it. gdb/ChangeLog: * gdbsupport/gdb_wait.c: Include gdb_wait.h.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/gdbsupport/gdb_wait.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9801149..da45e7b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * gdbsupport/gdb_wait.c: Include gdb_wait.h.
+
2020-01-12 Pedro Alves <palves@redhat.com>
* bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
diff --git a/gdb/gdbsupport/gdb_wait.c b/gdb/gdbsupport/gdb_wait.c
index 6facc48..3213994 100644
--- a/gdb/gdbsupport/gdb_wait.c
+++ b/gdb/gdbsupport/gdb_wait.c
@@ -19,6 +19,8 @@
#include "common-defs.h"
+#include "gdb_wait.h"
+
#ifdef __MINGW32__
/* The underlying idea is that when a Windows program is terminated by