This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH/RFC] Per-architecture DWARF CFI register state initialization hooks
- From: Daniel Jacobowitz <drow at false dot org>
- To: Ulrich Weigand <weigand at i1 dot informatik dot uni-erlangen dot de>
- Cc: kettenis at chello dot nl, gdb-patches at gcc dot gnu dot org, cagney at gnu dot org
- Date: Sun, 15 Feb 2004 20:56:28 -0500
- Subject: Re: [PATCH/RFC] Per-architecture DWARF CFI register state initialization hooks
- References: <200402160127.CAA17805@faui1d.informatik.uni-erlangen.de>
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