X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fmicroblaze-tdep.c;h=5c804133040df7ab0e9f03fecaffc0f4c3912279;hb=bd920864f3dc2cad376989a642ab774aef6b2fce;hp=f5035904aec2c4da6ad8a05282218488a832b515;hpb=dca08e1fe158d04517ba3ddd7ece9dd1596c8e8c;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c index f5035904ae..5c80413304 100644 --- a/gdb/microblaze-tdep.c +++ b/gdb/microblaze-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for Xilinx MicroBlaze. - Copyright (C) 2009-2018 Free Software Foundation, Inc. + Copyright (C) 2009-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -31,7 +31,7 @@ #include "target.h" #include "frame-base.h" #include "frame-unwind.h" -#include "dwarf2-frame.h" +#include "dwarf2/frame.h" #include "osabi.h" #include "target-descriptions.h" #include "opcodes/microblaze-opcm.h" @@ -353,12 +353,13 @@ microblaze_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, instruction. */ { - unsigned op = (unsigned)insn >> 26; + unsigned ctrl_op = (unsigned)insn >> 26; /* continue if not control flow (branch, return). */ - if (op != 0x26 && op != 0x27 && op != 0x2d && op != 0x2e && op != 0x2f) + if (ctrl_op != 0x26 && ctrl_op != 0x27 && ctrl_op != 0x2d + && ctrl_op != 0x2e && ctrl_op != 0x2f) continue; - else if (op == 0x2c) + else if (ctrl_op == 0x2c) continue; /* continue if imm. */ } @@ -573,13 +574,13 @@ microblaze_store_return_value (struct type *type, struct regcache *regcache, { gdb_assert (len == 8); memcpy (buf, valbuf, 8); - regcache_cooked_write (regcache, MICROBLAZE_RETVAL_REGNUM+1, buf + 4); + regcache->cooked_write (MICROBLAZE_RETVAL_REGNUM+1, buf + 4); } else /* ??? Do we need to do any sign-extension here? */ memcpy (buf + 4 - len, valbuf, len); - regcache_cooked_write (regcache, MICROBLAZE_RETVAL_REGNUM, buf); + regcache->cooked_write (MICROBLAZE_RETVAL_REGNUM, buf); } static enum return_value_convention @@ -752,8 +753,9 @@ microblaze_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } +void _initialize_microblaze_tdep (); void -_initialize_microblaze_tdep (void) +_initialize_microblaze_tdep () { register_gdbarch_init (bfd_arch_microblaze, microblaze_gdbarch_init);