X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fsparcobsd-tdep.c;h=6a40eb99f8e09c7e613dffc386a3d3953d7f9959;hb=93692b589dc7017d5a2fbdffdfad5f84f597d8f1;hp=b9e954001a4012614e925b4ee55aefbe374b31da;hpb=8fbca658f0643a6c3d5b61840351ae70e5bf2db6;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/sparcobsd-tdep.c b/gdb/sparcobsd-tdep.c index b9e954001a..6a40eb99f8 100644 --- a/gdb/sparcobsd-tdep.c +++ b/gdb/sparcobsd-tdep.c @@ -1,7 +1,6 @@ /* Target-dependent code for OpenBSD/sparc. - Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 - Free Software Foundation, Inc. + Copyright (C) 2004-2016 Free Software Foundation, Inc. This file is part of GDB. @@ -28,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" @@ -48,7 +45,7 @@ static const int sparc32obsd_page_size = 4096; static int -sparc32obsd_pc_in_sigtramp (CORE_ADDR pc, char *name) +sparc32obsd_pc_in_sigtramp (CORE_ADDR pc, const char *name) { CORE_ADDR start_pc = (pc & ~(sparc32obsd_page_size - 1)); unsigned long insn; @@ -77,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); @@ -91,7 +88,7 @@ sparc32obsd_sigtramp_frame_cache (struct frame_info *this_frame, /* Since we couldn't find the frame's function, the cache was initialized under the assumption that we're frameless. */ - cache->frameless_p = 0; + sparc_record_save_insn (cache); addr = get_frame_register_unsigned (this_frame, SPARC_FP_REGNUM); cache->base = addr; } @@ -128,7 +125,7 @@ sparc32obsd_sigtramp_frame_sniffer (const struct frame_unwind *self, void **this_cache) { CORE_ADDR pc = get_frame_pc (this_frame); - char *name; + const char *name; find_pc_partial_function (pc, &name, NULL, NULL); if (sparc32obsd_pc_in_sigtramp (pc, name))