public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed 1/3] gdb: add arc-newlib-tdep.c to ALL_TARGET_OBS
@ 2021-11-16  2:40 Simon Marchi
  2021-11-16  2:40 ` [pushed 2/3] gdb: remove unused variables in xtensa-linux-nat.c Simon Marchi
  2021-11-16  2:40 ` [pushed 3/3] gdb: adjust gdbarch_tdep calls in nat files Simon Marchi
  0 siblings, 2 replies; 10+ messages in thread
From: Simon Marchi @ 2021-11-16  2:40 UTC (permalink / raw)
  To: gdb-patches

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
---
 gdb/Makefile.in       | 1 +
 gdb/arc-newlib-tdep.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index f71537f65958..a51d63755ef9 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 325e11b39a2d..b11fe226389a 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.  */
-- 
2.33.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-11-18 15:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16  2:40 [pushed 1/3] gdb: add arc-newlib-tdep.c to ALL_TARGET_OBS Simon Marchi
2021-11-16  2:40 ` [pushed 2/3] gdb: remove unused variables in xtensa-linux-nat.c Simon Marchi
2021-11-16  2:40 ` [pushed 3/3] gdb: adjust gdbarch_tdep calls in nat files Simon Marchi
2021-11-17 14:42   ` [PUSHED] [gdb/build, s390x] Fix build after gdbarch_tdep changes Andreas Arnez
2021-11-17 14:47     ` Simon Marchi
2021-11-17 15:06       ` Tom Tromey
2021-11-17 15:41       ` Andreas Arnez
2021-11-17 16:45         ` Simon Marchi
2021-11-17 17:39           ` Andreas Arnez
2021-11-18 15:14         ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).