working deb scripts

This commit is contained in:
pact 2024-03-18 14:38:37 +00:00
parent f2ec9d2f22
commit a957939eef
2 changed files with 2 additions and 2 deletions

View File

@ -14,4 +14,4 @@ else:
pattern = int(args[2], 16) # Convert pattern from hex to int
for i in range(num_bytes):
gdb.execute("set *((char*)%d + %d) = %d" % (start_address, i, pattern))
gdb.execute("set *((char*)%x + %x) = %x" % (start_address, i, pattern))

View File

@ -2,4 +2,4 @@
import gdb
for i in range(0, 128): # 128 bajtów
gdb.execute("set *((char*)0x1FF80 + %d) = 0" % i)
gdb.execute("set *((char*)(0x1FF80 + %x)) = 0xaa" % i)