This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] [ia64] No start when GDB built with -lmcheck
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 17 Aug 2009 12:33:55 -0600
- Subject: Re: [patch] [ia64] No start when GDB built with -lmcheck
- References: <20090816185543.GA19581@host0.dyn.jankratochvil.net>
- Reply-to: tromey at redhat dot com
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> 2009-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
Jan> Fix ia64 start crash when GDB built with -lmcheck.
Jan> * ia64-tdep.c (ia64_gdbarch_init): Allocate TDEP as cleared.
I think if you go this route, you should remove the redundant
initializations a couple lines down:
tdep->sigcontext_register_address = 0;
tdep->pc_in_sigtramp = 0;
Or, initialize the new field there.
Either approach is pre-approved.
Tom