Alpha completely broken: build_regcache never called
Daniel Jacobowitz
drow@mvista.com
Wed Apr 3 21:25:00 GMT 2002
On Thu, Apr 04, 2002 at 12:15:04AM -0500, Andrew Cagney 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.
>
> When non-multi-arch, that function should still be called via:
>
> initialize_non_multiarch ();
>
> is this not happening?
That function only initializes things created with
register_gdbarch_data... not register_gdbarch_swap. Adding a call to
init_gdbarch_swap (&startup_gdbarch) in initialize_non_multiarch causes
it to be called. Is that correct?
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
More information about the Gdb
mailing list