gdb: include gdb_wait.h in gdb_wait.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 12 Jan 2020 20:11:07 +0000 (15:11 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 12 Jan 2020 20:22:27 +0000 (15:22 -0500)
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.

gdb/ChangeLog
gdb/gdbsupport/gdb_wait.c

index 980114919dfce9a236f0a98ced1006a623fa84c1..da45e7bce6a83e35e1238cccb1e7c9d7848016e6 100644 (file)
@@ -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
index 6facc48495a330a0e9dd944cffeab0f7102aa893..32139949c62709ee975d68d372960a3033a9e640 100644 (file)
@@ -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
This page took 0.024692 seconds and 4 git commands to generate.