aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf-index-write.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2019-11-26 12:12:00 -0500
committerSimon Marchi <simon.marchi@efficios.com>2019-11-26 14:29:19 -0500
commit23baa4cc5ee5f1008aefa8a9e1010f9d2be6c5e3 (patch)
treedb2921640a272a07b4d037742223afe3cfe32d13 /gdb/dwarf-index-write.c
parent23767560e57e43d7ce3e509835b91ef2eb7e0746 (diff)
downloadgdb-23baa4cc5ee5f1008aefa8a9e1010f9d2be6c5e3.zip
gdb-23baa4cc5ee5f1008aefa8a9e1010f9d2be6c5e3.tar.gz
gdb-23baa4cc5ee5f1008aefa8a9e1010f9d2be6c5e3.tar.bz2
Add missing includes in dwarf-index-write.c and mi/mi-interp.c
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
Diffstat (limited to 'gdb/dwarf-index-write.c')
-rw-r--r--gdb/dwarf-index-write.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/dwarf-index-write.c b/gdb/dwarf-index-write.c
index 7e89de4..cbad308 100644
--- a/gdb/dwarf-index-write.c
+++ b/gdb/dwarf-index-write.c
@@ -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"