Commit 1be173ef authored by Robert Loehning's avatar Robert Loehning
Browse files

gdbmacros: Escaping backslashes in filename

parent e81e001f
......@@ -456,7 +456,7 @@ def qdump__QImage(d, item):
else:
# Write to an external file. Much faster ;-(
file = tempfile.mkstemp(prefix="gdbpy_")
filename = file[1]
filename = file[1].replace("\\", "\\\\")
p = bits.cast(gdb.lookup_type("unsigned char").pointer())
gdb.execute("dump binary memory %s %s %s" %
(filename, cleanAddress(p), cleanAddress(p + nbytes)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment