From 1be173efcc23afa138786f13ea188db81d719a54 Mon Sep 17 00:00:00 2001
From: Robert Loehning <robert.loehning@nokia.com>
Date: Fri, 23 Apr 2010 13:12:32 +0200
Subject: [PATCH] gdbmacros: Escaping backslashes in filename

---
 share/qtcreator/gdbmacros/gdbmacros.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/qtcreator/gdbmacros/gdbmacros.py b/share/qtcreator/gdbmacros/gdbmacros.py
index ea2521c6e31..d8517218ba6 100644
--- a/share/qtcreator/gdbmacros/gdbmacros.py
+++ b/share/qtcreator/gdbmacros/gdbmacros.py
@@ -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)))
-- 
GitLab