From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31081 invoked by alias); 3 Apr 2002 23:23:34 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 31073 invoked from network); 3 Apr 2002 23:23:33 -0000 Received: from unknown (HELO localhost.localdomain) (12.230.181.242) by sources.redhat.com with SMTP; 3 Apr 2002 23:23:33 -0000 Received: from there (DRAGON [127.0.0.1]) by localhost.localdomain (8.11.6/8.11.6) with SMTP id g33NMse03622; Wed, 3 Apr 2002 15:22:54 -0800 Message-Id: <200204032322.g33NMse03622@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" From: "Martin M. Hunt" Organization: Red Hat Inc To: Daniel Jacobowitz , gdb@sources.redhat.com Subject: Re: Alpha completely broken: build_regcache never called Date: Wed, 03 Apr 2002 15:23:00 -0000 Cc: cagney@redhat.com References: <20020403180530.A570@nevyn.them.org> In-Reply-To: <20020403180530.A570@nevyn.them.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SW-Source: 2002-04/txt/msg00030.txt.bz2 On Wednesday 03 April 2002 03:05 pm, Daniel Jacobowitz wrote: > I believe this patch is responsible: > > 2002-03-20 Martin M. Hunt > > * 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 (®isters, sizeof (registers), NULL); register_gdbarch_swap (®ister_valid, sizeof (register_valid), NULL); register_gdbarch_swap (NULL, 0, build_regcache);