debugger: python needs no semicolons

This commit is contained in:
hjk
2010-08-18 09:52:38 +02:00
parent ffdd4110ae
commit dc804c69e5

View File

@@ -305,7 +305,7 @@ class Children:
if self.d.passExceptions and not exType is None: if self.d.passExceptions and not exType is None:
showException("CHILDREN", exType, exValue, exTraceBack) showException("CHILDREN", exType, exValue, exTraceBack)
if self.d.currentMaxNumChilds < self.d.currentNumChilds: if self.d.currentMaxNumChilds < self.d.currentNumChilds:
self.d.putEllipsis(); self.d.putEllipsis()
self.d.currentChildType = self.savedChildType self.d.currentChildType = self.savedChildType
self.d.currentChildNumChild = self.savedChildNumChild self.d.currentChildNumChild = self.savedChildNumChild
self.d.currentNumChilds = self.savedNumChilds self.d.currentNumChilds = self.savedNumChilds
@@ -429,8 +429,8 @@ def listOfLocals(varList):
hasBlock = 'block' in __builtin__.dir(frame) hasBlock = 'block' in __builtin__.dir(frame)
items = [] items = []
#warn("HAS BLOCK: %s" % hasBlock); #warn("HAS BLOCK: %s" % hasBlock)
#warn("IS GOOD GDB: %s" % isGoodGdb()); #warn("IS GOOD GDB: %s" % isGoodGdb())
if hasBlock and isGoodGdb(): if hasBlock and isGoodGdb():
#warn("IS GOOD: %s " % varList) #warn("IS GOOD: %s " % varList)
try: try:
@@ -857,7 +857,7 @@ class SetupCommand(gdb.Command):
for key, value in module.__dict__.items(): for key, value in module.__dict__.items():
if key.startswith("qdump__"): if key.startswith("qdump__"):
name = key[7:] name = key[7:]
qqFormats[name] = qqFormats.get(name, ""); qqFormats[name] = qqFormats.get(name, "")
elif key.startswith("qform__"): elif key.startswith("qform__"):
name = key[7:] name = key[7:]
formats = "" formats = ""
@@ -982,7 +982,7 @@ class FrameCommand(gdb.Command):
d.put('addr="<not accessible>",') d.put('addr="<not accessible>",')
d.put('value="<not accessible>",') d.put('value="<not accessible>",')
d.put('type="%s",' % item.value.type) d.put('type="%s",' % item.value.type)
d.put('numchild="0"'); d.put('numchild="0"')
continue continue
type = item.value.type type = item.value.type
@@ -1054,7 +1054,7 @@ class FrameCommand(gdb.Command):
def handleWatch(self, d, exp, iname): def handleWatch(self, d, exp, iname):
exp = str(exp) exp = str(exp)
escapedExp = exp.replace('"', '\\"'); escapedExp = exp.replace('"', '\\"')
#warn("HANDLING WATCH %s, INAME: '%s'" % (exp, iname)) #warn("HANDLING WATCH %s, INAME: '%s'" % (exp, iname))
if exp.startswith("[") and exp.endswith("]"): if exp.startswith("[") and exp.endswith("]"):
#warn("EVAL: EXP: %s" % exp) #warn("EVAL: EXP: %s" % exp)
@@ -1303,7 +1303,7 @@ class Dumper:
return return
# FIXME: Gui shows references stripped? # FIXME: Gui shows references stripped?
#warn(" "); #warn(" ")
#warn("REAL INAME: %s " % item.iname) #warn("REAL INAME: %s " % item.iname)
#warn("REAL NAME: %s " % name) #warn("REAL NAME: %s " % name)
#warn("REAL TYPE: %s " % item.value.type) #warn("REAL TYPE: %s " % item.value.type)