aboutsummaryrefslogtreecommitdiff
path: root/gdb/aarch32-tdep.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
commit23767560e57e43d7ce3e509835b91ef2eb7e0746 (patch)
tree006f080bd1acf1c03cc79b9a25c793242534b8bb /gdb/aarch32-tdep.c
parent6d91ce9a659f5b65bb6ad2d30d74250da342150c (diff)
downloadgdb-23767560e57e43d7ce3e509835b91ef2eb7e0746.zip
gdb-23767560e57e43d7ce3e509835b91ef2eb7e0746.tar.gz
gdb-23767560e57e43d7ce3e509835b91ef2eb7e0746.tar.bz2
Include aarch32-tdep.h in aarch32-tdep.c
The error below shows that aarch32-tdep.c is missing an include for aarch32-tdep.h, add it. CXX aarch32-tdep.o /home/smarchi/src/binutils-gdb/gdb/aarch32-tdep.c: In function ‘const target_desc* aarch32_read_description()’: /home/smarchi/src/binutils-gdb/gdb/aarch32-tdep.c:27:1: error: no previous declaration for ‘const target_desc* aarch32_read_description()’ [-Werror=missing-declarations] aarch32_read_description () ^~~~~~~~~~~~~~~~~~~~~~~~ Putting the include of aarch32-tdep.h early in aarch32-tdep.c gives us an error about target_desc not being defined. Indeed, aarch32-tdep.h uses target_desc without forward-declaring it or including the proper header. Add a forward-declaration for it. gdb/ChangeLog: * aarch32-tdep.c: Include aarch32-tdep.h. * aarch32-tdep.h: Forward-declare struct target_desc. Change-Id: Ica4be4de0fbd7f22d56a29a40fbf0a31b5abdb16
Diffstat (limited to 'gdb/aarch32-tdep.c')
-rw-r--r--gdb/aarch32-tdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/aarch32-tdep.c b/gdb/aarch32-tdep.c
index 12d4641..5b082fc 100644
--- a/gdb/aarch32-tdep.c
+++ b/gdb/aarch32-tdep.c
@@ -16,6 +16,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "gdbsupport/common-defs.h"
+
+#include "aarch32-tdep.h"
+
#include "gdbsupport/common-regcache.h"
#include "arch/aarch32.h"