aboutsummaryrefslogtreecommitdiff
path: root/gdb/m68k-tdep.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-09-07 17:52:41 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-09-07 17:52:41 +0000
commit1390fcc2ffc083210e3706235c9383b219383fac (patch)
treeaac7c6563a0ac5297ab37c348b834012d1f8a356 /gdb/m68k-tdep.c
parent307c948d206758be9b2331ae17d7c6163a5989a4 (diff)
downloadgdb-1390fcc2ffc083210e3706235c9383b219383fac.zip
gdb-1390fcc2ffc083210e3706235c9383b219383fac.tar.gz
gdb-1390fcc2ffc083210e3706235c9383b219383fac.tar.bz2
gdb/
* m68k-tdep.c (m68k_gdbarch_init): Allocate TDEP as cleared. * sparc-tdep.c (sparc32_gdbarch_init): Allocate TDEP as cleared. Remove explicit clearing of TDEP fields.
Diffstat (limited to 'gdb/m68k-tdep.c')
-rw-r--r--gdb/m68k-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index 507af65..7a49c23 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -1160,7 +1160,7 @@ m68k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
break;
}
- tdep = xmalloc (sizeof (struct gdbarch_tdep));
+ tdep = xzalloc (sizeof (struct gdbarch_tdep));
gdbarch = gdbarch_alloc (&info, tdep);
tdep->fpregs_present = has_fp;
tdep->flavour = flavour;