This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Alpha completely broken: build_regcache never called


On Wednesday 03 April 2002 03:05 pm, Daniel Jacobowitz wrote:
> I believe this patch is responsible:
>
> 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
>
>         * regcache.c (_initialize_regcache): No need to call
>         build_regcache() at this time; it gets called whenever
>         the gdbarch changes.
>
> Alpha is completely non-multi-arch.  Thus the gdbarch appears to never
> change, and we crash very quickly.

Seems like we should just ifdef the call to build_regcache back in.

Index: regcache.c
===================================================================
RCS file: /cvs/src/src/gdb/regcache.c,v
retrieving revision 1.33
diff -u -p -r1.33 regcache.c
--- regcache.c	2002/03/21 02:13:05	1.33
+++ regcache.c	2002/04/03 23:18:15
@@ -802,6 +802,10 @@ build_regcache (void)
 void
 _initialize_regcache (void)
 {
+#if !GDB_MULTI_ARCH
+  build_regcache();
+#endif
+
   register_gdbarch_swap (&registers, sizeof (registers), NULL);
   register_gdbarch_swap (&register_valid, sizeof (register_valid), NULL);
   register_gdbarch_swap (NULL, 0, build_regcache);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]