aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/ChangeLog
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2020-01-12 12:07:30 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2020-01-12 12:07:30 -0500
commitc0b0a14290e1909a6cc3febb443560c3e95562c2 (patch)
tree9fc785d0f022406d8230ea5c5945176d466598ce /gdb/gdbserver/ChangeLog
parentbb1183e25ae74ba21500fb4e39bc1ca9822e3086 (diff)
downloadgdb-c0b0a14290e1909a6cc3febb443560c3e95562c2.zip
gdb-c0b0a14290e1909a6cc3febb443560c3e95562c2.tar.gz
gdb-c0b0a14290e1909a6cc3febb443560c3e95562c2.tar.bz2
gdbserver: include linux-arm-tdesc.h in linux-arm-tdesc.c
When building with -Wmissing-declarations, I get: CXX linux-arm-tdesc.o /binutils-gdb/gdb/gdbserver/linux-arm-tdesc.c:29:1: error: no previous declaration for 'const target_desc* arm_linux_read_description(arm_fp_type)' [-Werror=missing-declarations] 29 | arm_linux_read_description (arm_fp_type fp_type) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /binutils-gdb/gdb/gdbserver/linux-arm-tdesc.c:49:1: error: no previous declaration for 'arm_fp_type arm_linux_get_tdesc_fp_type(const target_desc*)' [-Werror=missing-declarations] 49 | arm_linux_get_tdesc_fp_type (const target_desc *tdesc) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Include linux-arm-tdesc.h in linux-arm-tdesc.c to fix it. And because linux-arm-tdesc.h uses the arm_fp_type, it should include arch/arm.h as well. gdb/gdbserver/ChangeLog: * linux-arm-tdesc.c: Include linux-arm-tdesc.h. * linux-arm-tdesc.h: Include arch/arm.h.
Diffstat (limited to 'gdb/gdbserver/ChangeLog')
-rw-r--r--gdb/gdbserver/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 83be63c..67d39be 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
+ * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
+ * linux-arm-tdesc.h: Include arch/arm.h.
+
+2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
+
* linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>