summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-08-25 14:06:44 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-08-25 14:06:44 +0000
commit03cb63487db5c69b5b8866da075eed36069e94d7 (patch)
tree270f125e7df73792aa072300bce126888dc53381 /gdb
parent8c40367bf1be0d14b87c2503b68095d31d758f87 (diff)
downloadgdb-03cb63487db5c69b5b8866da075eed36069e94d7.tar.gz
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')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/ia64-tdep.c5
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 94b0431f9f5..e122110984d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index 9f2cf9856ea..8b93db415de 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