about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-24 17:06:42 +0000
committerTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-24 17:06:42 +0000
commitbeff1e36ad067299be1c7e756e88cb388ce318e6 (patch)
tree37de0f52af5d58fedb1bd7348c1c3bdfb7b64bec /src
parent272f780033107960cb144302f64bb7504c45ea07 (diff)
downloadfocaccia-beff1e36ad067299be1c7e756e88cb388ce318e6.tar.gz
focaccia-beff1e36ad067299be1c7e756e88cb388ce318e6.zip
Correctly communicate TIDs to run.py
Diffstat (limited to 'src')
-rw-r--r--src/focaccia/qemu/target.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/focaccia/qemu/target.py b/src/focaccia/qemu/target.py
index 3877bcc..9bb2c5d 100644
--- a/src/focaccia/qemu/target.py
+++ b/src/focaccia/qemu/target.py
@@ -407,5 +407,6 @@ class GDBServerStateIterator(GDBServerConnector):
         return GDBProgramState(self._process, gdb.selected_frame(), self.arch)
 
     def context_switch(self, thread_number: int) -> None:
-        self.sock.send(bytes([thread_number]))
+        data = thread_number.to_bytes(8, byteorder='little', signed=False)
+        self.sock.send(data)