crash printing non-local variable from nested subprogram
[deliverable/binutils-gdb.git] / gdb / tic6x-tdep.c
index 2603f91c630576f5ef08b60a05a73eef19e68182..2cc38c5de3f8d5f4b8e273ada4992138854e3f66 100644 (file)
@@ -807,7 +807,7 @@ tic6x_return_value (struct gdbarch *gdbarch, struct value *function,
     {
       if (type != NULL)
        {
-         CHECK_TYPEDEF (type);
+         type = check_typedef (type);
          if (language_pass_by_reference (type))
            return RETURN_VALUE_STRUCT_CONVENTION;
        }
@@ -1268,7 +1268,7 @@ tic6x_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
        return arches->gdbarch;
     }
 
-  tdep = xcalloc (1, sizeof (struct gdbarch_tdep));
+  tdep = XCNEW (struct gdbarch_tdep);
 
   tdep->has_gp = has_gp;
   gdbarch = gdbarch_alloc (&info, tdep);
This page took 0.02407 seconds and 4 git commands to generate.