forked from qt-creator/qt-creator
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:
@@ -1566,6 +1566,9 @@ class Dumper(DumperBase):
|
|||||||
return typeobj
|
return typeobj
|
||||||
|
|
||||||
def stackListFrames(self, args):
|
def stackListFrames(self, args):
|
||||||
|
def fromNativePath(str):
|
||||||
|
return str.replace(os.path.sep, '/')
|
||||||
|
|
||||||
limit = int(args['limit'])
|
limit = int(args['limit'])
|
||||||
if limit <= 0:
|
if limit <= 0:
|
||||||
limit = 10000
|
limit = 10000
|
||||||
@@ -1594,9 +1597,9 @@ class Dumper(DumperBase):
|
|||||||
line = sal.line
|
line = sal.line
|
||||||
symtab = sal.symtab
|
symtab = sal.symtab
|
||||||
if not symtab is None:
|
if not symtab is None:
|
||||||
objfile = symtab.objfile.filename
|
objfile = fromNativePath(symtab.objfile.filename)
|
||||||
fileName = symtab.filename
|
fileName = fromNativePath(symtab.filename)
|
||||||
fullName = symtab.fullname()
|
fullName = fromNativePath(symtab.fullname())
|
||||||
|
|
||||||
if self.nativeMixed:
|
if self.nativeMixed:
|
||||||
if self.isReportableQmlFrame(functionName):
|
if self.isReportableQmlFrame(functionName):
|
||||||
|
Reference in New Issue
Block a user