Commit f5dcc93b authored by Ray Donnelly's avatar Ray Donnelly
Browse files

Debugger: Handle case of os.path.sep being '/'

On MSYS2, if QtCreator is launched from one of the msys2 shells
then the MSYSTEM env. var is set and our Pythons set os.sep and
os.path.sep to '/' so that it aligns with the default separator
of those shells.

fromNativePath(str) then fails to convert '\' seprators embedded
in binaries since str.replace('/', '/') is a noop. The operation
we want here is to convert all '\' to '/' anyway so this is more
explicit regardless of any opinions on our choice to dynamically
vary os.sep and os.path.sep

Change-Id: I76c05b188abca41c6a1b516c68b584e0c06e7235
Reviewed-by: default avatarOrgad Shaneh <>
Reviewed-by: default avatarhjk <>
parent 79d3d234
......@@ -1545,7 +1545,7 @@ class Dumper(DumperBase):
def stackListFrames(self, args):
def fromNativePath(str):
return str.replace(os.path.sep, '/')
return str.replace('\\', '/')
limit = int(args['limit'])
if limit <= 0:
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