aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2017-11-24 10:00:54 +0000
committerAlan Hayward <alan.hayward@arm.com>2017-11-24 11:18:19 +0000
commitda434ccbc3e0ed843700790cd16c1d4bb5882460 (patch)
tree06717af286e287317183ff9d739c142217180fe5 /gdb/arch
parent98ead37e9735438986934f9f1f35f020a093fe07 (diff)
downloadgdb-da434ccbc3e0ed843700790cd16c1d4bb5882460.zip
gdb-da434ccbc3e0ed843700790cd16c1d4bb5882460.tar.gz
gdb-da434ccbc3e0ed843700790cd16c1d4bb5882460.tar.bz2
Add aarch64_create_target_description
gdb/ * Makefile.in: Add new files. * aarch64-linux-nat.c (aarch64_linux_read_description): Call aarch64_read_description. * aarch64-linux-tdep.c (aarch64_linux_core_read_description): Call aarch64_read_description. * aarch64-tdep.c (aarch64_read_description): New function. (aarch64_gdbarch_init): Call aarch64_read_description. * aarch64-tdep.h (aarch64_read_description): New function. * arch/aarch64.c: New file. * configure.tgt: Add new files.
Diffstat (limited to 'gdb/arch')
-rw-r--r--gdb/arch/aarch64.c30
-rw-r--r--gdb/arch/aarch64.h4
2 files changed, 34 insertions, 0 deletions
diff --git a/gdb/arch/aarch64.c b/gdb/arch/aarch64.c
new file mode 100644
index 0000000..95d9906
--- /dev/null
+++ b/gdb/arch/aarch64.c
@@ -0,0 +1,30 @@
+/* Copyright (C) 2017 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+
+#include "aarch64.h"
+
+extern struct target_desc *tdesc_aarch64;
+
+/* Create the aarch64 target description. */
+
+target_desc *
+aarch64_create_target_description ()
+{
+ return tdesc_aarch64;
+}
+
diff --git a/gdb/arch/aarch64.h b/gdb/arch/aarch64.h
index b527405..ebb78c4 100644
--- a/gdb/arch/aarch64.h
+++ b/gdb/arch/aarch64.h
@@ -20,6 +20,10 @@
#ifndef ARCH_AARCH64_H
#define ARCH_AARCH64_H
+#include "tdesc.h"
+
+target_desc *aarch64_create_target_description ();
+
/* Register numbers of various important registers. */
enum aarch64_regnum
{