forked from qt-creator/qt-creator
Debugger: Fix typos in gdbbridge
Change-Id: I33f35353b08fdb26a5b78231dff5bfeb80325d14 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -88,7 +88,7 @@ class PPCommand(gdb.Command):
|
|||||||
|
|
||||||
PPCommand()
|
PPCommand()
|
||||||
|
|
||||||
# Just convienience for 'python print gdb.parse_and_eval(...)'
|
# Just convenience for 'python print gdb.parse_and_eval(...)'
|
||||||
class PPPCommand(gdb.Command):
|
class PPPCommand(gdb.Command):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(PPPCommand, self).__init__('ppp', gdb.COMMAND_OBSCURE)
|
super(PPPCommand, self).__init__('ppp', gdb.COMMAND_OBSCURE)
|
||||||
@@ -169,7 +169,7 @@ registerCommand('importPlainDumpers', importPlainDumpers)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class OutputSafer:
|
class OutputSaver:
|
||||||
def __init__(self, d):
|
def __init__(self, d):
|
||||||
self.d = d
|
self.d = d
|
||||||
|
|
||||||
@@ -179,7 +179,7 @@ class OutputSafer:
|
|||||||
|
|
||||||
def __exit__(self, exType, exValue, exTraceBack):
|
def __exit__(self, exType, exValue, exTraceBack):
|
||||||
if self.d.passExceptions and not exType is None:
|
if self.d.passExceptions and not exType is None:
|
||||||
showException('OUTPUTSAFER', exType, exValue, exTraceBack)
|
showException('OUTPUTSAVER', exType, exValue, exTraceBack)
|
||||||
self.d.output = self.savedOutput
|
self.d.output = self.savedOutput
|
||||||
else:
|
else:
|
||||||
self.savedOutput += self.d.output
|
self.savedOutput += self.d.output
|
||||||
@@ -1312,7 +1312,7 @@ class Dumper(DumperBase):
|
|||||||
frame = gdb.newest_frame()
|
frame = gdb.newest_frame()
|
||||||
self.currentCallContext = None
|
self.currentCallContext = None
|
||||||
while i < limit and frame:
|
while i < limit and frame:
|
||||||
with OutputSafer(self):
|
with OutputSaver(self):
|
||||||
name = frame.name()
|
name = frame.name()
|
||||||
functionName = '??' if name is None else name
|
functionName = '??' if name is None else name
|
||||||
fileName = ''
|
fileName = ''
|
||||||
|
Reference in New Issue
Block a user