aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 13b9db4..bbf5812 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -854,6 +854,10 @@ regcache_write_pc (struct regcache *regcache, CORE_ADDR pc)
else
internal_error (__FILE__, __LINE__,
_("regcache_write_pc: Unable to update PC"));
+
+ /* Writing the PC (for instance, from "load") invalidates the
+ current frame. */
+ reinit_frame_cache ();
}