X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Falpha-mdebug-tdep.c;h=cc10a5dd9871abb4fd502341ce767ec6a76bb545;hb=599956cfe164ca2f4f7d04b90aee1db98930a023;hp=2f58c64f4b7df0726555f8f34f80af8f582a0def;hpb=32d0add0a654c1204ab71dc8a55d9374538c4b33;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/alpha-mdebug-tdep.c b/gdb/alpha-mdebug-tdep.c index 2f58c64f4b..cc10a5dd98 100644 --- a/gdb/alpha-mdebug-tdep.c +++ b/gdb/alpha-mdebug-tdep.c @@ -1,5 +1,5 @@ /* Target-dependent mdebug code for the ALPHA architecture. - Copyright (C) 1993-2015 Free Software Foundation, Inc. + Copyright (C) 1993-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -27,6 +27,7 @@ #include "alpha-tdep.h" #include "mdebugread.h" +#include "gdbarch.h" /* FIXME: Some of this code should perhaps be merged with mips. */ @@ -107,7 +108,8 @@ find_proc_desc (CORE_ADDR pc) symbol reading. */ sym = NULL; else - sym = lookup_symbol (MDEBUG_EFI_SYMBOL_NAME, b, LABEL_DOMAIN, 0); + sym = lookup_symbol (MDEBUG_EFI_SYMBOL_NAME, b, LABEL_DOMAIN, + 0).symbol; } if (sym) @@ -196,7 +198,7 @@ alpha_mdebug_frame_unwind_cache (struct frame_info *this_frame, int ireg, returnreg; if (*this_prologue_cache) - return *this_prologue_cache; + return (struct alpha_mdebug_unwind_cache *) *this_prologue_cache; info = FRAME_OBSTACK_ZALLOC (struct alpha_mdebug_unwind_cache); *this_prologue_cache = info; @@ -401,8 +403,6 @@ alpha_mdebug_frame_base_sniffer (struct frame_info *this_frame) void alpha_mdebug_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) { - struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - frame_unwind_append_unwinder (gdbarch, &alpha_mdebug_frame_unwind); frame_base_append_sniffer (gdbarch, alpha_mdebug_frame_base_sniffer); }