gdb: fix shellcheck warnings SC2154 (referenced but not assigned) in gdbarch.sh
[deliverable/binutils-gdb.git] / gdb / amd64-tdep.c
index 9264fe4026d44ec2349f8b5e1c16e0473ddac371..5c56a970d8c457db940a811dd7eddddd59cce242 100644 (file)
@@ -1511,7 +1511,8 @@ amd64_displaced_step_copy_insn (struct gdbarch *gdbarch,
       displaced_step_dump_bytes (gdb_stdlog, buf, len);
     }
 
-  return dsc;
+  /* This is a work around for a problem with g++ 4.8.  */
+  return displaced_step_closure_up (dsc.release ());
 }
 
 static int
This page took 0.0258 seconds and 4 git commands to generate.