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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/sentinel-frame.c b/gdb/sentinel-frame.c
index d5d8233..8c11d7b 100644
--- a/gdb/sentinel-frame.c
+++ b/gdb/sentinel-frame.c
@@ -36,6 +36,7 @@ sentinel_frame_cache (struct regcache *regcache)
{
struct frame_unwind_cache *cache =
FRAME_OBSTACK_ZALLOC (struct frame_unwind_cache);
+
cache->regcache = regcache;
return cache;
}
@@ -81,6 +82,7 @@ sentinel_frame_prev_arch (struct frame_info *this_frame,
void **this_prologue_cache)
{
struct frame_unwind_cache *cache = *this_prologue_cache;
+
return get_regcache_arch (cache->regcache);
}