diff options
Diffstat (limited to 'gdb/score-tdep.c')
-rw-r--r-- | gdb/score-tdep.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c index 09df712..7e56391 100644 --- a/gdb/score-tdep.c +++ b/gdb/score-tdep.c @@ -1322,7 +1322,7 @@ score_make_prologue_cache (struct frame_info *this_frame, void **this_cache) struct score_frame_cache *cache; if ((*this_cache) != NULL) - return (*this_cache); + return (struct score_frame_cache *) (*this_cache); cache = FRAME_OBSTACK_ZALLOC (struct score_frame_cache); (*this_cache) = cache; @@ -1338,15 +1338,17 @@ score_make_prologue_cache (struct frame_info *this_frame, void **this_cache) return cache; if (target_mach == bfd_mach_score3) - score3_analyze_prologue (start_addr, pc, this_frame, *this_cache); + score3_analyze_prologue (start_addr, pc, this_frame, + (struct score_frame_cache *) *this_cache); else - score7_analyze_prologue (start_addr, pc, this_frame, *this_cache); + score7_analyze_prologue (start_addr, pc, this_frame, + (struct score_frame_cache *) *this_cache); } /* Save SP. */ trad_frame_set_value (cache->saved_regs, SCORE_SP_REGNUM, cache->base); - return (*this_cache); + return (struct score_frame_cache *) (*this_cache); } static void |