crash printing non-local variable from nested subprogram
[deliverable/binutils-gdb.git] / gdb / m88k-tdep.c
index 47a8f579fd347dc46037b82f02f8131a4f82763f..abfd08203e16e8a073b291f62027f93cb64434cf 100644 (file)
@@ -533,9 +533,9 @@ m88k_analyze_prologue (struct gdbarch *gdbarch,
   /* Provide a dummy cache if necessary.  */
   if (cache == NULL)
     {
-      cache->saved_regs
-       = XALLOCAVEC (struct trad_frame_saved_reg, M88K_R31_REGNUM + 1);
       cache = XALLOCA (struct m88k_frame_cache);
+      cache->saved_regs =
+        XALLOCAVEC (struct trad_frame_saved_reg, M88K_R31_REGNUM + 1);
 
       /* We only initialize the members we care about.  */
       cache->saved_regs[M88K_R1_REGNUM].addr = -1;
This page took 0.023598 seconds and 4 git commands to generate.