From: Ulrich Weigand Date: Fri, 22 Aug 2008 13:35:00 +0000 (+0000) Subject: * gdbarch.sh: Include "regcache.h" into gdbarch.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3ecef734dbaff7879f2a372f00e280284f63245;p=binutils-gdb.git * gdbarch.sh: Include "regcache.h" into gdbarch.c. (deprecated_current_gdbarch_select_hack): Call registers_changed instead of reinit_frame_cache. * gdbarch.c: Regenerate. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4d60a94e107..c67ade7fd6d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2008-08-21 Ulrich Weigand + + * gdbarch.sh: Include "regcache.h" into gdbarch.c. + (deprecated_current_gdbarch_select_hack): Call registers_changed + instead of reinit_frame_cache. + * gdbarch.c: Regenerate. + 2008-08-21 Ulrich Weigand * elfread.c (elf_symtab_read): Do not relocate thread-local symbols. diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 504cb774f1c..cfe8be1c49c 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); diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index a9fcd80015a..222751d2e35 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -1137,6 +1137,7 @@ cat <initialized_p); current_gdbarch = new_gdbarch; observer_notify_architecture_changed (new_gdbarch); - reinit_frame_cache (); + registers_changed (); } extern void _initialize_gdbarch (void);