Commit 44797cdb authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

Debugger: Fix stack filename resolving on Windows



Task-number: QTCREATORBUG-13999
Change-Id: Ifc04a5592b8a07c95f152e73e802b7b686119d88
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 69edf1e2
......@@ -1566,6 +1566,9 @@ class Dumper(DumperBase):
return typeobj
def stackListFrames(self, args):
def fromNativePath(str):
return str.replace(os.path.sep, '/')
limit = int(args['limit'])
if limit <= 0:
limit = 10000
......@@ -1594,9 +1597,9 @@ class Dumper(DumperBase):
line = sal.line
symtab = sal.symtab
if not symtab is None:
objfile = symtab.objfile.filename
fileName = symtab.filename
fullName = symtab.fullname()
objfile = fromNativePath(symtab.objfile.filename)
fileName = fromNativePath(symtab.filename)
fullName = fromNativePath(symtab.fullname())
if self.nativeMixed:
if self.isReportableQmlFrame(functionName):
......
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