gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 25 Aug 2009 14:06:47 +0000 (14:06 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 25 Aug 2009 14:06:47 +0000 (14:06 +0000)
Fix ia64 start crash when GDB built with -lmcheck.
* ia64-tdep.c (ia64_gdbarch_init): Allocate TDEP as cleared.  Remove
specific clearing of TDEP SIGCONTEXT_REGISTER_ADDRESS and
PC_IN_SIGTRAMP.

gdb/ChangeLog
gdb/ia64-tdep.c

index 94b0431f9f5cc916e6bd7ad8784495d3e3433edf..e122110984d7f9f32e42b67236a5fb291ed94526 100644 (file)
@@ -1,3 +1,10 @@
+2009-08-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix ia64 start crash when GDB built with -lmcheck.
+       * ia64-tdep.c (ia64_gdbarch_init): Allocate TDEP as cleared.  Remove
+       specific clearing of TDEP SIGCONTEXT_REGISTER_ADDRESS and
+       PC_IN_SIGTRAMP.
+
 2009-08-24  Keith Seitz  <keiths@redhat.com>
 
        * c-exp.y (tokentab3): Add new token, ARROW_STAR. Changed all users.
index 9f2cf9856ea4a8db3b94e7659164e575f2008c2a..8b93db415ded361fd8c01c1fcc71b6e8431ee970 100644 (file)
@@ -3671,12 +3671,9 @@ ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   if (arches != NULL)
     return arches->gdbarch;
 
-  tdep = xmalloc (sizeof (struct gdbarch_tdep));
+  tdep = xzalloc (sizeof (struct gdbarch_tdep));
   gdbarch = gdbarch_alloc (&info, tdep);
 
-  tdep->sigcontext_register_address = 0;
-  tdep->pc_in_sigtramp = 0;
-
   /* According to the ia64 specs, instructions that store long double
      floats in memory use a long-double format different than that
      used in the floating registers.  The memory format matches the
This page took 0.029115 seconds and 4 git commands to generate.