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
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: gdb at sources dot redhat dot com, hunt at redhat dot com, cagney at redhat dot com
- Date: Thu, 4 Apr 2002 00:25:11 -0500
- Subject: Re: Alpha completely broken: build_regcache never called
- References: <20020403180530.A570@nevyn.them.org> <3CABE158.5080706@cygnus.com>
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