GDB crash while stepping into function.
[deliverable/binutils-gdb.git] / gdb / infrun.c
index 3d6812d2e3bf42bfbb1974979c54c3312f24ccaa..426b8167e650f2e7089e037fbc921459416b9e02 100644 (file)
@@ -4066,6 +4066,11 @@ infrun: not switching back to stepped thread, it has vanished\n");
       return;
     }
 
+  /* Re-fetch current thread's frame in case the code above caused
+     the frame cache to be re-initialized, making our FRAME variable
+     a dangling pointer.  */
+  frame = get_current_frame ();
+
   /* If stepping through a line, keep going if still within it.
 
      Note that step_range_end is the address of the first instruction
This page took 0.03526 seconds and 4 git commands to generate.