From 90392397cba6c511a87fc7dcc353afefe2a6dee7 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 22 Jul 2019 11:00:22 +0200 Subject: [PATCH] Pdb: Fix missing marker for locations on Windows When parsing the file path of location information the GdbMi parser expects UNIX-style formatted paths. When debugging with the pdb on Windows we reported Windows-style paths which in turn made the parser fail and the stack never contained a file name and the current location also had never a marker displayed. Change-Id: I5216bbaf39ceead63efe8426561f132de3cd04a2 Reviewed-by: hjk --- share/qtcreator/debugger/pdbbridge.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/qtcreator/debugger/pdbbridge.py b/share/qtcreator/debugger/pdbbridge.py index 63304e6f853..76e213507dd 100644 --- a/share/qtcreator/debugger/pdbbridge.py +++ b/share/qtcreator/debugger/pdbbridge.py @@ -36,6 +36,7 @@ import inspect import traceback import linecache import fnmatch +import platform class QuitException(Exception): pass @@ -248,6 +249,8 @@ class Dumper: if not canonic: canonic = os.path.abspath(filename) canonic = os.path.normcase(canonic) + if platform.system() in ('Microsoft', 'Windows'): + canonic = canonic.replace('\\', '/') self.fncache[filename] = canonic return canonic