gdb/infrun: move a 'regcache_read_pc' call down to first use
[deliverable/binutils-gdb.git] / gdb / s390-tdep.c
index 51d0203231f5af3db52c6365653128278f5ca6ec..d8c28c72e49c3015eacc2a4be3dacf3d0a70bd46 100644 (file)
@@ -477,7 +477,8 @@ s390_displaced_step_copy_insn (struct gdbarch *gdbarch,
       displaced_step_dump_bytes (gdb_stdlog, buf, len);
     }
 
-  return closure;
+  /* This is a work around for a problem with g++ 4.8.  */
+  return displaced_step_closure_up (closure.release ());
 }
 
 /* Fix up the state of registers and memory after having single-stepped
This page took 0.054975 seconds and 4 git commands to generate.