aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-11-15 21:19:30 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-11-15 21:21:29 -0500
commit2d2bb0d3f2931198b0824914d9dcf3cb0249926f (patch)
tree04a7c01267f661ea800fd9e9ed136d13e839aefb /gdb
parenta66ddb5899d8e42bb22d84a05c570e98e85192fe (diff)
downloadgdb-2d2bb0d3f2931198b0824914d9dcf3cb0249926f.zip
gdb-2d2bb0d3f2931198b0824914d9dcf3cb0249926f.tar.gz
gdb-2d2bb0d3f2931198b0824914d9dcf3cb0249926f.tar.bz2
gdb: add arc-newlib-tdep.c to ALL_TARGET_OBS
This file is currently not compiled in an --enable-targets=all build, but it should be. Add it to ALL_TARGET_OBS. Update the gdbarch_tdep call that commit 345bd07cce33 ("gdb: fix gdbarch_tdep ODR violation") forgot to update. Change-Id: I86248a01493eea5e70186e9c46a298ad3994b034
Diffstat (limited to 'gdb')
-rw-r--r--gdb/Makefile.in1
-rw-r--r--gdb/arc-newlib-tdep.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index f71537f..a51d637 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -724,6 +724,7 @@ ALL_64_TARGET_OBS = \
ALL_TARGET_OBS = \
aarch32-tdep.o \
arc-linux-tdep.o \
+ arc-newlib-tdep.o \
arc-tdep.o \
arch/aarch32.o \
arch/arc.o \
diff --git a/gdb/arc-newlib-tdep.c b/gdb/arc-newlib-tdep.c
index 325e11b..b11fe22 100644
--- a/gdb/arc-newlib-tdep.c
+++ b/gdb/arc-newlib-tdep.c
@@ -36,7 +36,7 @@ arc_newlib_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
arc_newlib_debug_printf ("Initialization.");
- struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+ arc_gdbarch_tdep *tdep = (arc_gdbarch_tdep *) gdbarch_tdep (gdbarch);
/* Offset of original PC in longjmp jump buffer (in registers). Value of PC
offset can be found in newlib/libc/machine/arc/setjmp.S. */