aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-08-22 13:35:00 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-08-22 13:35:00 +0000
commita3ecef734dbaff7879f2a372f00e280284f63245 (patch)
tree5ed1928720108b924a2c7c35f1754b93dbf7d753 /gdb/gdbarch.c
parentb2064611d4230414258b5a3a1e8f49e5b0af2f3f (diff)
downloadgdb-a3ecef734dbaff7879f2a372f00e280284f63245.zip
gdb-a3ecef734dbaff7879f2a372f00e280284f63245.tar.gz
gdb-a3ecef734dbaff7879f2a372f00e280284f63245.tar.bz2
* gdbarch.sh: Include "regcache.h" into gdbarch.c.
(deprecated_current_gdbarch_select_hack): Call registers_changed instead of reinit_frame_cache. * gdbarch.c: Regenerate.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r--gdb/gdbarch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 504cb77..cfe8be1 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -48,6 +48,7 @@
#include "osabi.h"
#include "gdb_obstack.h"
#include "observer.h"
+#include "regcache.h"
/* Static function declarations */
@@ -3666,7 +3667,7 @@ deprecated_current_gdbarch_select_hack (struct gdbarch *new_gdbarch)
gdb_assert (new_gdbarch->initialized_p);
current_gdbarch = new_gdbarch;
observer_notify_architecture_changed (new_gdbarch);
- reinit_frame_cache ();
+ registers_changed ();
}
extern void _initialize_gdbarch (void);