From 11376928090c3032d0d79b8590ced6c765ef65bf Mon Sep 17 00:00:00 2001
From: jD91mZM2 <me@krake.one>
Date: Tue, 23 Jul 2019 19:55:11 +0200
Subject: [PATCH] WIP(ptrace): Allow setting RIP

---
 src/arch/x86_64/macros.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/arch/x86_64/macros.rs b/src/arch/x86_64/macros.rs
index 6a406c5a..5ad34d8d 100644
--- a/src/arch/x86_64/macros.rs
+++ b/src/arch/x86_64/macros.rs
@@ -280,8 +280,8 @@ impl InterruptStack {
         self.scratch.rdx = all.rdx;
         self.scratch.rcx = all.rcx;
         self.scratch.rax = all.rax;
-        // self.iret.rip = all.rip;
-        // self.iret.cs = all.cs;
+        self.iret.rip = all.rip;
+        self.iret.cs = all.cs;
         // self.iret.rflags = all.eflags;
     }
     /// Enables the "Trap Flag" in the FLAGS register, causing the CPU
-- 
GitLab