Add missing includes in dwarf-index-write.c and mi/mi-interp.c
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Nov 2019 17:12:00 +0000 (12:12 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Nov 2019 19:29:19 +0000 (14:29 -0500)
The following errors show that these files are missing the include of
their matching header, add them.

  CXX    dwarf-index-write.o
/home/smarchi/src/binutils-gdb/gdb/dwarf-index-write.c: In function ‘void write_psymtabs_to_index(dwarf2_per_objfile*, const char*, const char*, const char*, dw_index_kind)’:
/home/smarchi/src/binutils-gdb/gdb/dwarf-index-write.c:1670:1: error: no previous declaration for ‘void write_psymtabs_to_index(dwarf2_per_objfile*, const char*, const char*, const char*, dw_index_kind)’ [-Werror=missing-declarations]
 write_psymtabs_to_index (struct dwarf2_per_objfile *dwarf2_per_objfile,
 ^~~~~~~~~~~~~~~~~~~~~~~

  CXX    mi/mi-interp.o
/home/smarchi/src/binutils-gdb/gdb/mi/mi-interp.c: In function ‘void mi_output_solib_attribs(ui_out*, so_list*)’:
/home/smarchi/src/binutils-gdb/gdb/mi/mi-interp.c:1030:1: error: no previous declaration for ‘void mi_output_solib_attribs(ui_out*, so_list*)’ [-Werror=missing-declarations]
 mi_output_solib_attribs (ui_out *uiout, struct so_list *solib)
 ^~~~~~~~~~~~~~~~~~~~~~~

gdb/ChangeLog:

* dwarf-index-write.c: Include dwarf-index-write.h.
* mi/mi-interp.c: Include mi/mi-interp.h.

Change-Id: I0103b8669e16e0fcaa476f8c5e96f49608157745

gdb/ChangeLog
gdb/dwarf-index-write.c
gdb/mi/mi-interp.c

index 6f6019c9c04a321af72b44f8fd63f41c7db2314c..82b0adf0876cbfe0489b6ce07a15ee79afb05382 100644 (file)
@@ -1,3 +1,8 @@
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf-index-write.c: Include dwarf-index-write.h.
+       * mi/mi-interp.c: Include mi/mi-interp.h.
+
 2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
 
        * aarch32-tdep.c: Include aarch32-tdep.h.
index 7e89de433090318db84c68fdf4c7af5bddff51bb..cbad3084307afda194edeadbf579a95a4d7b84f9 100644 (file)
@@ -19,6 +19,8 @@
 
 #include "defs.h"
 
+#include "dwarf-index-write.h"
+
 #include "addrmap.h"
 #include "cli/cli-decode.h"
 #include "gdbsupport/byte-vector.h"
index 7659e2803823b927a2928d69c660b9e6ada59708..1cf3055f32405340b59f67b5a3d885c352ab73e2 100644 (file)
@@ -18,6 +18,9 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
+
+#include "mi-interp.h"
+
 #include "interps.h"
 #include "event-top.h"
 #include "event-loop.h"