X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fsparcobsd-tdep.c;h=21c8d6a81489a7d21bf2e1a955c03dd9e33da860;hb=8d2a0a14e53945eb260c08752654bd03a240ecf7;hp=a8824cd4edabc730eb57ffbda338fa9ca858b594;hpb=2c02bd729076b940958bccf68f1cc0b1ecf8403b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/sparcobsd-tdep.c b/gdb/sparcobsd-tdep.c index a8824cd4ed..21c8d6a814 100644 --- a/gdb/sparcobsd-tdep.c +++ b/gdb/sparcobsd-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for OpenBSD/sparc. - Copyright (C) 2004-2012 Free Software Foundation, Inc. + Copyright (C) 2004-2016 Free Software Foundation, Inc. This file is part of GDB. @@ -27,8 +27,6 @@ #include "symtab.h" #include "trad-frame.h" -#include "gdb_assert.h" - #include "obsd-tdep.h" #include "sparc-tdep.h" #include "solib-svr4.h" @@ -76,7 +74,7 @@ sparc32obsd_sigtramp_frame_cache (struct frame_info *this_frame, CORE_ADDR addr; if (*this_cache) - return *this_cache; + return (struct sparc_frame_cache *) *this_cache; cache = sparc_frame_cache (this_frame, this_cache); gdb_assert (cache == *this_cache); @@ -236,8 +234,6 @@ sparc32obsd_collect_uthread(const struct regcache *regcache, static void sparc32obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) { - struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - /* OpenBSD/sparc is very similar to NetBSD/sparc ELF. */ sparc32nbsd_elf_init_abi (info, gdbarch);