aboutsummaryrefslogtreecommitdiff
path: root/gdb/sentinel-frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/sentinel-frame.c')
-rw-r--r--gdb/sentinel-frame.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/sentinel-frame.c b/gdb/sentinel-frame.c
index 1bb62f4..c616b54 100644
--- a/gdb/sentinel-frame.c
+++ b/gdb/sentinel-frame.c
@@ -46,7 +46,8 @@ sentinel_frame_prev_register (struct frame_info *this_frame,
void **this_prologue_cache,
int regnum)
{
- struct frame_unwind_cache *cache = *this_prologue_cache;
+ struct frame_unwind_cache *cache
+ = (struct frame_unwind_cache *) *this_prologue_cache;
struct value *value;
value = regcache_cooked_read_value (cache->regcache, regnum);
@@ -70,7 +71,8 @@ static struct gdbarch *
sentinel_frame_prev_arch (struct frame_info *this_frame,
void **this_prologue_cache)
{
- struct frame_unwind_cache *cache = *this_prologue_cache;
+ struct frame_unwind_cache *cache
+ = (struct frame_unwind_cache *) *this_prologue_cache;
return get_regcache_arch (cache->regcache);
}