aboutsummaryrefslogtreecommitdiff
path: root/gdb/ia64-tdep.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-08-25 14:06:47 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-08-25 14:06:47 +0000
commit924d6a4f7fe3d5112356cfa903b178422501fe5f (patch)
treeb715b21fc5541b32192b9d93d9bf8ff6f64a59cf /gdb/ia64-tdep.c
parentff13a42d5c968badcfcb98c5c629917acb5d11a3 (diff)
downloadgdb-924d6a4f7fe3d5112356cfa903b178422501fe5f.zip
gdb-924d6a4f7fe3d5112356cfa903b178422501fe5f.tar.gz
gdb-924d6a4f7fe3d5112356cfa903b178422501fe5f.tar.bz2
gdb/
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.
Diffstat (limited to 'gdb/ia64-tdep.c')
-rw-r--r--gdb/ia64-tdep.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index 9f2cf98..8b93db4 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -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