working deb scripts
This commit is contained in:
parent
f2ec9d2f22
commit
a957939eef
2
gdb/z.py
2
gdb/z.py
|
@ -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))
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue