Fix PR 20345 - call_function_by_hand_dummy: Assertion `tp->thread_fsm == &sm->thread_...
[deliverable/binutils-gdb.git] / gdb / mt-tdep.c
index 21d081da7778f7a0dbbfaedb928fea778fb2707e..5d7f31cda5ac00ac08e305935c0e0a2539e09489 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for Morpho mt processor, for GDB.
 
-   Copyright (C) 2005-2015 Free Software Foundation, Inc.
+   Copyright (C) 2005-2016 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -676,12 +676,11 @@ mt_registers_info (struct gdbarch *gdbarch,
        {
          /* Special output handling for 38-bit context register.  */
          unsigned char *buff;
-         unsigned int *bytes, i, regsize;
+         unsigned int i, regsize;
 
          regsize = register_size (gdbarch, regnum);
 
          buff = (unsigned char *) alloca (regsize);
-         bytes = XALLOCAVEC (unsigned int, regsize);
 
          deprecated_frame_register_read (frame, regnum, buff);
 
@@ -915,7 +914,7 @@ mt_frame_unwind_cache (struct frame_info *this_frame,
   ULONGEST sp, fp;
 
   if ((*this_prologue_cache))
-    return (*this_prologue_cache);
+    return (struct mt_unwind_cache *) (*this_prologue_cache);
 
   gdbarch = get_frame_arch (this_frame);
   info = FRAME_OBSTACK_ZALLOC (struct mt_unwind_cache);
This page took 0.023438 seconds and 4 git commands to generate.