summaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2008-02-27 01:07:42 +0000
committerDaniel Jacobowitz <dan@debian.org>2008-02-27 01:07:42 +0000
commitdfa76b3703615c4f19bd5cfcda45fdc08d6aefdd (patch)
tree02ce06ccc8f7f638bbb87d801316474986e7764c /gdb/regcache.c
parent3164d9317ef04439bedf21cfec332050c8e859a3 (diff)
downloadgdb-dfa76b3703615c4f19bd5cfcda45fdc08d6aefdd.tar.gz
2008-02-26 Greg Law <glaw@undo-software.com>
* regcache.c (registers_changed): Call reinit_frame_cache.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 3e54c5f8de8..85763c7d04f 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -472,6 +472,9 @@ registers_changed (void)
regcache_xfree (current_regcache);
current_regcache = NULL;
+ /* Need to forget about any frames we have cached, too. */
+ reinit_frame_cache ();
+
/* Force cleanup of any alloca areas if using C alloca instead of
a builtin alloca. This particular call is used to clean up
areas allocated by low level target code which may build up