This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Alpha completely broken: build_regcache never called
On Thu, Apr 04, 2002 at 09:23:28AM -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?
>
> Er, yes :-( Does it ``work'' (between the other two functions to match
> gdbarch_update_p())?
Yep. Want me to check it in?
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer