#include "symtab.h"
#include "arch-utils.h"
#include "xml-syscall.h"
+#include "infrun.h"
#include "i387-tdep.h"
#include "gdbsupport/x86-xstate.h"
which does not seem worth it. The same effect is achieved by patching that
'nop' instruction there instead. */
-static struct displaced_step_closure *
+static displaced_step_closure_up
i386_linux_displaced_step_copy_insn (struct gdbarch *gdbarch,
CORE_ADDR from, CORE_ADDR to,
struct regcache *regs)
{
- displaced_step_closure *closure_
+ displaced_step_closure_up closure_
= i386_displaced_step_copy_insn (gdbarch, from, to, regs);
if (i386_linux_get_syscall_number_from_regcache (regs) != -1)
/* The closure returned by i386_displaced_step_copy_insn is simply a
buffer with a copy of the instruction. */
i386_displaced_step_closure *closure
- = (i386_displaced_step_closure *) closure_;
+ = (i386_displaced_step_closure *) closure_.get ();
/* Fake nop. */
closure->buf[0] = 0x90;