Debugger: Fix stack filename resolving on Windows

Task-number: QTCREATORBUG-13999
Change-Id: Ifc04a5592b8a07c95f152e73e802b7b686119d88
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-03-01 11:49:19 +02:00
committed by hjk
parent 69edf1e26d
commit 44797cdb52

View File

@@ -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):