summaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorfredrikhederstierna <fredrik@hederstierna.com>2020-10-22 02:44:01 +0200
committerSimon Marchi <simon.marchi@polymtl.ca>2020-10-21 21:46:18 -0400
commit3bc35691f19d30960233e814e9341eb8c91c1434 (patch)
tree8d5777e671551a57decae984ab5f0c5baf5aac13 /gdb/arm-tdep.c
parentc53dcd7785debc2e2a5b8b2dede45bbf32f2438d (diff)
downloadbinutils-gdb-users/simark/arm-none-core-file.tar.gz
Support for corefiles for arm-none-eabi target.users/simark/arm-none-core-file
Change-Id: I8f4c57e653ae4e0400475ea55069f0dde280babb
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index a214f22d7ad..3ee444f09a7 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -50,6 +50,8 @@
#include "arch/arm.h"
#include "arch/arm-get-next-pcs.h"
#include "arm-tdep.h"
+#include "none-tdep.h"
+#include "arm-none-tdep.h"
#include "gdb/sim-arm.h"
#include "elf-bfd.h"
@@ -9453,6 +9455,11 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Virtual tables. */
set_gdbarch_vbit_in_delta (gdbarch, 1);
+ /* Default none core file support, can be overridden by osabi. */
+ none_init_corefile (info, gdbarch);
+ set_gdbarch_iterate_over_regset_sections (gdbarch,
+ arm_none_iterate_over_regset_sections);
+
/* Hook in the ABI-specific overrides, if they have been registered. */
gdbarch_init_osabi (info, gdbarch);