From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3894 invoked by alias); 16 Feb 2004 01:56:45 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3882 invoked from network); 16 Feb 2004 01:56:42 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 16 Feb 2004 01:56:42 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1AsXzo-00049A-GF; Sun, 15 Feb 2004 20:56:28 -0500 Date: Mon, 16 Feb 2004 01:56:00 -0000 From: Daniel Jacobowitz To: Ulrich Weigand Cc: kettenis@chello.nl, gdb-patches@gcc.gnu.org, cagney@gnu.org Subject: Re: [PATCH/RFC] Per-architecture DWARF CFI register state initialization hooks Message-ID: <20040216015627.GA15870@nevyn.them.org> Mail-Followup-To: Ulrich Weigand , kettenis@chello.nl, gdb-patches@gcc.gnu.org, cagney@gnu.org References: <200402160127.CAA17805@faui1d.informatik.uni-erlangen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200402160127.CAA17805@faui1d.informatik.uni-erlangen.de> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-02/txt/msg00394.txt.bz2 On Mon, Feb 16, 2004 at 02:27:24AM +0100, Ulrich Weigand wrote: > +void > +dwarf2_frame_set_init_reg (struct gdbarch *gdbarch, > + void (*init_reg) (struct gdbarch *, int, > + struct dwarf2_frame_state_reg *)) > Unfortunately this now crashes on s390, because the > dwarf2_frame_init routine is called from within > _initialize_dwarf2_frame, while the s390 backend calls > dwarf2_frame_set_init_reg from within _initialize_s390_tdep. Er, how? You shouldn't have a gdbarch in _initialize_s390_tdep. You don't have one until s390_gdbarch_init. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer