This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] [ia64] No start when GDB built with -lmcheck


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]