crash printing non-local variable from nested subprogram
[deliverable/binutils-gdb.git] / gdb / mep-tdep.c
index d2831dbe63cc52ee1b989ca1a0cc5b489d48d7d8..d6025765ae42a3db468c8bb9ee1c1d01f6cf638c 100644 (file)
@@ -2441,7 +2441,7 @@ mep_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
     if (gdbarch_tdep (arches->gdbarch)->me_module == me_module)
       return arches->gdbarch;
 
-  tdep = (struct gdbarch_tdep *) xmalloc (sizeof (struct gdbarch_tdep));
+  tdep = XNEW (struct gdbarch_tdep);
   gdbarch = gdbarch_alloc (&info, tdep);
 
   /* Get a CGEN CPU descriptor for this architecture.  */
This page took 0.025481 seconds and 4 git commands to generate.